configure revision 17a48c7c
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for xf86-video-apm 1.1.1. 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-apm' 425PACKAGE_TARNAME='xf86-video-apm' 426PACKAGE_VERSION='1.1.1' 427PACKAGE_STRING='xf86-video-apm 1.1.1' 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 moduledir PKG_CONFIG ac_pt_PKG_CONFIG XORG_CFLAGS XORG_LIBS XF86RUSH_CFLAGS XF86RUSH_LIBS XF86RUSH_TRUE XF86RUSH_FALSE INCLUDES DRIVER_NAME APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LINUXDOC PS2PDF BUILD_LINUXDOC_TRUE BUILD_LINUXDOC_FALSE BUILD_PDFDOC_TRUE BUILD_PDFDOC_FALSE MAKE_TEXT MAKE_PS MAKE_PDF MAKE_HTML 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 961ac_env_XF86RUSH_CFLAGS_set=${XF86RUSH_CFLAGS+set} 962ac_env_XF86RUSH_CFLAGS_value=$XF86RUSH_CFLAGS 963ac_cv_env_XF86RUSH_CFLAGS_set=${XF86RUSH_CFLAGS+set} 964ac_cv_env_XF86RUSH_CFLAGS_value=$XF86RUSH_CFLAGS 965ac_env_XF86RUSH_LIBS_set=${XF86RUSH_LIBS+set} 966ac_env_XF86RUSH_LIBS_value=$XF86RUSH_LIBS 967ac_cv_env_XF86RUSH_LIBS_set=${XF86RUSH_LIBS+set} 968ac_cv_env_XF86RUSH_LIBS_value=$XF86RUSH_LIBS 969 970# 971# Report the --help message. 972# 973if test "$ac_init_help" = "long"; then 974 # Omit some internal or obsolete options to make the list less imposing. 975 # This message is too long to be a string in the A/UX 3.1 sh. 976 cat <<_ACEOF 977\`configure' configures xf86-video-apm 1.1.1 to adapt to many kinds of systems. 978 979Usage: $0 [OPTION]... [VAR=VALUE]... 980 981To assign environment variables (e.g., CC, CFLAGS...), specify them as 982VAR=VALUE. See below for descriptions of some of the useful variables. 983 984Defaults for the options are specified in brackets. 985 986Configuration: 987 -h, --help display this help and exit 988 --help=short display options specific to this package 989 --help=recursive display the short help of all the included packages 990 -V, --version display version information and exit 991 -q, --quiet, --silent do not print \`checking...' messages 992 --cache-file=FILE cache test results in FILE [disabled] 993 -C, --config-cache alias for \`--cache-file=config.cache' 994 -n, --no-create do not create output files 995 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 996 997_ACEOF 998 999 cat <<_ACEOF 1000Installation directories: 1001 --prefix=PREFIX install architecture-independent files in PREFIX 1002 [$ac_default_prefix] 1003 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1004 [PREFIX] 1005 1006By default, \`make install' will install all the files in 1007\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1008an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1009for instance \`--prefix=\$HOME'. 1010 1011For better control, use the options below. 1012 1013Fine tuning of the installation directories: 1014 --bindir=DIR user executables [EPREFIX/bin] 1015 --sbindir=DIR system admin executables [EPREFIX/sbin] 1016 --libexecdir=DIR program executables [EPREFIX/libexec] 1017 --datadir=DIR read-only architecture-independent data [PREFIX/share] 1018 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1019 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1020 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1021 --libdir=DIR object code libraries [EPREFIX/lib] 1022 --includedir=DIR C header files [PREFIX/include] 1023 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1024 --infodir=DIR info documentation [PREFIX/info] 1025 --mandir=DIR man documentation [PREFIX/man] 1026_ACEOF 1027 1028 cat <<\_ACEOF 1029 1030Program names: 1031 --program-prefix=PREFIX prepend PREFIX to installed program names 1032 --program-suffix=SUFFIX append SUFFIX to installed program names 1033 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1034 1035System types: 1036 --build=BUILD configure for building on BUILD [guessed] 1037 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1038_ACEOF 1039fi 1040 1041if test -n "$ac_init_help"; then 1042 case $ac_init_help in 1043 short | recursive ) echo "Configuration of xf86-video-apm 1.1.1:";; 1044 esac 1045 cat <<\_ACEOF 1046 1047Optional Features: 1048 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1049 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1050 --enable-maintainer-mode enable make rules and dependencies not useful 1051 (and sometimes confusing) to the casual installer 1052 --enable-static[=PKGS] 1053 build static libraries [default=no] 1054 --enable-shared[=PKGS] 1055 build shared libraries [default=yes] 1056 --enable-fast-install[=PKGS] 1057 optimize for fast installation [default=yes] 1058 --disable-dependency-tracking speeds up one-time build 1059 --enable-dependency-tracking do not reject slow dependency extractors 1060 --disable-libtool-lock avoid locking (might break parallel builds) 1061 1062Optional Packages: 1063 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1064 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1065 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1066 --with-pic try to use only PIC/non-PIC objects [default=use 1067 both] 1068 --with-tags[=TAGS] 1069 include additional configurations [automatic] 1070 --with-xorg-module-dir=DIR 1071 --with-release-version=STRING 1072 Use release version string in package name 1073 1074Some influential environment variables: 1075 CC C compiler command 1076 CFLAGS C compiler flags 1077 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1078 nonstandard directory <lib dir> 1079 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1080 headers in a nonstandard directory <include dir> 1081 CPP C preprocessor 1082 CXX C++ compiler command 1083 CXXFLAGS C++ compiler flags 1084 CXXCPP C++ preprocessor 1085 F77 Fortran 77 compiler command 1086 FFLAGS Fortran 77 compiler flags 1087 PKG_CONFIG path to pkg-config utility 1088 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1089 XORG_LIBS linker flags for XORG, overriding pkg-config 1090 XF86RUSH_CFLAGS 1091 C compiler flags for XF86RUSH, overriding pkg-config 1092 XF86RUSH_LIBS 1093 linker flags for XF86RUSH, overriding pkg-config 1094 1095Use these variables to override the choices made by `configure' or to help 1096it to find libraries and programs with nonstandard names/locations. 1097 1098Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1099_ACEOF 1100fi 1101 1102if test "$ac_init_help" = "recursive"; then 1103 # If there are subdirs, report their specific --help. 1104 ac_popdir=`pwd` 1105 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1106 test -d $ac_dir || continue 1107 ac_builddir=. 1108 1109if test "$ac_dir" != .; then 1110 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1111 # A "../" for each directory in $ac_dir_suffix. 1112 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1113else 1114 ac_dir_suffix= ac_top_builddir= 1115fi 1116 1117case $srcdir in 1118 .) # No --srcdir option. We are building in place. 1119 ac_srcdir=. 1120 if test -z "$ac_top_builddir"; then 1121 ac_top_srcdir=. 1122 else 1123 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1124 fi ;; 1125 [\\/]* | ?:[\\/]* ) # Absolute path. 1126 ac_srcdir=$srcdir$ac_dir_suffix; 1127 ac_top_srcdir=$srcdir ;; 1128 *) # Relative path. 1129 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1130 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1131esac 1132 1133# Do not use `cd foo && pwd` to compute absolute paths, because 1134# the directories may not exist. 1135case `pwd` in 1136.) ac_abs_builddir="$ac_dir";; 1137*) 1138 case "$ac_dir" in 1139 .) ac_abs_builddir=`pwd`;; 1140 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1141 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1142 esac;; 1143esac 1144case $ac_abs_builddir in 1145.) ac_abs_top_builddir=${ac_top_builddir}.;; 1146*) 1147 case ${ac_top_builddir}. in 1148 .) ac_abs_top_builddir=$ac_abs_builddir;; 1149 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1150 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1151 esac;; 1152esac 1153case $ac_abs_builddir in 1154.) ac_abs_srcdir=$ac_srcdir;; 1155*) 1156 case $ac_srcdir in 1157 .) ac_abs_srcdir=$ac_abs_builddir;; 1158 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1159 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1160 esac;; 1161esac 1162case $ac_abs_builddir in 1163.) ac_abs_top_srcdir=$ac_top_srcdir;; 1164*) 1165 case $ac_top_srcdir in 1166 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1167 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1168 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1169 esac;; 1170esac 1171 1172 cd $ac_dir 1173 # Check for guested configure; otherwise get Cygnus style configure. 1174 if test -f $ac_srcdir/configure.gnu; then 1175 echo 1176 $SHELL $ac_srcdir/configure.gnu --help=recursive 1177 elif test -f $ac_srcdir/configure; then 1178 echo 1179 $SHELL $ac_srcdir/configure --help=recursive 1180 elif test -f $ac_srcdir/configure.ac || 1181 test -f $ac_srcdir/configure.in; then 1182 echo 1183 $ac_configure --help 1184 else 1185 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1186 fi 1187 cd $ac_popdir 1188 done 1189fi 1190 1191test -n "$ac_init_help" && exit 0 1192if $ac_init_version; then 1193 cat <<\_ACEOF 1194xf86-video-apm configure 1.1.1 1195generated by GNU Autoconf 2.59 1196 1197Copyright (C) 2003 Free Software Foundation, Inc. 1198This configure script is free software; the Free Software Foundation 1199gives unlimited permission to copy, distribute and modify it. 1200_ACEOF 1201 exit 0 1202fi 1203exec 5>config.log 1204cat >&5 <<_ACEOF 1205This file contains any messages produced by compilers while 1206running configure, to aid debugging if configure makes a mistake. 1207 1208It was created by xf86-video-apm $as_me 1.1.1, which was 1209generated by GNU Autoconf 2.59. Invocation command line was 1210 1211 $ $0 $@ 1212 1213_ACEOF 1214{ 1215cat <<_ASUNAME 1216## --------- ## 1217## Platform. ## 1218## --------- ## 1219 1220hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1221uname -m = `(uname -m) 2>/dev/null || echo unknown` 1222uname -r = `(uname -r) 2>/dev/null || echo unknown` 1223uname -s = `(uname -s) 2>/dev/null || echo unknown` 1224uname -v = `(uname -v) 2>/dev/null || echo unknown` 1225 1226/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1227/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1228 1229/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1230/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1231/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1232hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1233/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1234/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1235/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1236 1237_ASUNAME 1238 1239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1240for as_dir in $PATH 1241do 1242 IFS=$as_save_IFS 1243 test -z "$as_dir" && as_dir=. 1244 echo "PATH: $as_dir" 1245done 1246 1247} >&5 1248 1249cat >&5 <<_ACEOF 1250 1251 1252## ----------- ## 1253## Core tests. ## 1254## ----------- ## 1255 1256_ACEOF 1257 1258 1259# Keep a trace of the command line. 1260# Strip out --no-create and --no-recursion so they do not pile up. 1261# Strip out --silent because we don't want to record it for future runs. 1262# Also quote any args containing shell meta-characters. 1263# Make two passes to allow for proper duplicate-argument suppression. 1264ac_configure_args= 1265ac_configure_args0= 1266ac_configure_args1= 1267ac_sep= 1268ac_must_keep_next=false 1269for ac_pass in 1 2 1270do 1271 for ac_arg 1272 do 1273 case $ac_arg in 1274 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1276 | -silent | --silent | --silen | --sile | --sil) 1277 continue ;; 1278 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1279 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1280 esac 1281 case $ac_pass in 1282 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1283 2) 1284 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1285 if test $ac_must_keep_next = true; then 1286 ac_must_keep_next=false # Got value, back to normal. 1287 else 1288 case $ac_arg in 1289 *=* | --config-cache | -C | -disable-* | --disable-* \ 1290 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1291 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1292 | -with-* | --with-* | -without-* | --without-* | --x) 1293 case "$ac_configure_args0 " in 1294 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1295 esac 1296 ;; 1297 -* ) ac_must_keep_next=true ;; 1298 esac 1299 fi 1300 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1301 # Get rid of the leading space. 1302 ac_sep=" " 1303 ;; 1304 esac 1305 done 1306done 1307$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1308$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1309 1310# When interrupted or exit'd, cleanup temporary files, and complete 1311# config.log. We remove comments because anyway the quotes in there 1312# would cause problems or look ugly. 1313# WARNING: Be sure not to use single quotes in there, as some shells, 1314# such as our DU 5.0 friend, will then `close' the trap. 1315trap 'exit_status=$? 1316 # Save into config.log some information that might help in debugging. 1317 { 1318 echo 1319 1320 cat <<\_ASBOX 1321## ---------------- ## 1322## Cache variables. ## 1323## ---------------- ## 1324_ASBOX 1325 echo 1326 # The following way of writing the cache mishandles newlines in values, 1327{ 1328 (set) 2>&1 | 1329 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1330 *ac_space=\ *) 1331 sed -n \ 1332 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1334 ;; 1335 *) 1336 sed -n \ 1337 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1338 ;; 1339 esac; 1340} 1341 echo 1342 1343 cat <<\_ASBOX 1344## ----------------- ## 1345## Output variables. ## 1346## ----------------- ## 1347_ASBOX 1348 echo 1349 for ac_var in $ac_subst_vars 1350 do 1351 eval ac_val=$`echo $ac_var` 1352 echo "$ac_var='"'"'$ac_val'"'"'" 1353 done | sort 1354 echo 1355 1356 if test -n "$ac_subst_files"; then 1357 cat <<\_ASBOX 1358## ------------- ## 1359## Output files. ## 1360## ------------- ## 1361_ASBOX 1362 echo 1363 for ac_var in $ac_subst_files 1364 do 1365 eval ac_val=$`echo $ac_var` 1366 echo "$ac_var='"'"'$ac_val'"'"'" 1367 done | sort 1368 echo 1369 fi 1370 1371 if test -s confdefs.h; then 1372 cat <<\_ASBOX 1373## ----------- ## 1374## confdefs.h. ## 1375## ----------- ## 1376_ASBOX 1377 echo 1378 sed "/^$/d" confdefs.h | sort 1379 echo 1380 fi 1381 test "$ac_signal" != 0 && 1382 echo "$as_me: caught signal $ac_signal" 1383 echo "$as_me: exit $exit_status" 1384 } >&5 1385 rm -f core *.core && 1386 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1387 exit $exit_status 1388 ' 0 1389for ac_signal in 1 2 13 15; do 1390 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1391done 1392ac_signal=0 1393 1394# confdefs.h avoids OS command line length limits that DEFS can exceed. 1395rm -rf conftest* confdefs.h 1396# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1397echo >confdefs.h 1398 1399# Predefined preprocessor variables. 1400 1401cat >>confdefs.h <<_ACEOF 1402#define PACKAGE_NAME "$PACKAGE_NAME" 1403_ACEOF 1404 1405 1406cat >>confdefs.h <<_ACEOF 1407#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1408_ACEOF 1409 1410 1411cat >>confdefs.h <<_ACEOF 1412#define PACKAGE_VERSION "$PACKAGE_VERSION" 1413_ACEOF 1414 1415 1416cat >>confdefs.h <<_ACEOF 1417#define PACKAGE_STRING "$PACKAGE_STRING" 1418_ACEOF 1419 1420 1421cat >>confdefs.h <<_ACEOF 1422#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1423_ACEOF 1424 1425 1426# Let the site file select an alternate cache file if it wants to. 1427# Prefer explicitly selected file to automatically selected ones. 1428if test -z "$CONFIG_SITE"; then 1429 if test "x$prefix" != xNONE; then 1430 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1431 else 1432 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1433 fi 1434fi 1435for ac_site_file in $CONFIG_SITE; do 1436 if test -r "$ac_site_file"; then 1437 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1438echo "$as_me: loading site script $ac_site_file" >&6;} 1439 sed 's/^/| /' "$ac_site_file" >&5 1440 . "$ac_site_file" 1441 fi 1442done 1443 1444if test -r "$cache_file"; then 1445 # Some versions of bash will fail to source /dev/null (special 1446 # files actually), so we avoid doing that. 1447 if test -f "$cache_file"; then 1448 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1449echo "$as_me: loading cache $cache_file" >&6;} 1450 case $cache_file in 1451 [\\/]* | ?:[\\/]* ) . $cache_file;; 1452 *) . ./$cache_file;; 1453 esac 1454 fi 1455else 1456 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1457echo "$as_me: creating cache $cache_file" >&6;} 1458 >$cache_file 1459fi 1460 1461# Check that the precious variables saved in the cache have kept the same 1462# value. 1463ac_cache_corrupted=false 1464for ac_var in `(set) 2>&1 | 1465 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1466 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1467 eval ac_new_set=\$ac_env_${ac_var}_set 1468 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1469 eval ac_new_val="\$ac_env_${ac_var}_value" 1470 case $ac_old_set,$ac_new_set in 1471 set,) 1472 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1473echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1474 ac_cache_corrupted=: ;; 1475 ,set) 1476 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1477echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1478 ac_cache_corrupted=: ;; 1479 ,);; 1480 *) 1481 if test "x$ac_old_val" != "x$ac_new_val"; then 1482 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1483echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1484 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1485echo "$as_me: former value: $ac_old_val" >&2;} 1486 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1487echo "$as_me: current value: $ac_new_val" >&2;} 1488 ac_cache_corrupted=: 1489 fi;; 1490 esac 1491 # Pass precious variables to config.status. 1492 if test "$ac_new_set" = set; then 1493 case $ac_new_val in 1494 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1495 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1496 *) ac_arg=$ac_var=$ac_new_val ;; 1497 esac 1498 case " $ac_configure_args " in 1499 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1500 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1501 esac 1502 fi 1503done 1504if $ac_cache_corrupted; then 1505 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1506echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1507 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1508echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1509 { (exit 1); exit 1; }; } 1510fi 1511 1512ac_ext=c 1513ac_cpp='$CPP $CPPFLAGS' 1514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1516ac_compiler_gnu=$ac_cv_c_compiler_gnu 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 ac_config_headers="$ac_config_headers config.h" 1547 1548ac_aux_dir= 1549for ac_dir in . $srcdir/.; do 1550 if test -f $ac_dir/install-sh; then 1551 ac_aux_dir=$ac_dir 1552 ac_install_sh="$ac_aux_dir/install-sh -c" 1553 break 1554 elif test -f $ac_dir/install.sh; then 1555 ac_aux_dir=$ac_dir 1556 ac_install_sh="$ac_aux_dir/install.sh -c" 1557 break 1558 elif test -f $ac_dir/shtool; then 1559 ac_aux_dir=$ac_dir 1560 ac_install_sh="$ac_aux_dir/shtool install -c" 1561 break 1562 fi 1563done 1564if test -z "$ac_aux_dir"; then 1565 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5 1566echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;} 1567 { (exit 1); exit 1; }; } 1568fi 1569ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1570ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1571ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1572 1573 1574am__api_version="1.9" 1575# Find a good install program. We prefer a C program (faster), 1576# so one script is as good as another. But avoid the broken or 1577# incompatible versions: 1578# SysV /etc/install, /usr/sbin/install 1579# SunOS /usr/etc/install 1580# IRIX /sbin/install 1581# AIX /bin/install 1582# AmigaOS /C/install, which installs bootblocks on floppy discs 1583# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1584# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1585# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1586# OS/2's system install, which has a completely different semantic 1587# ./install, which can be erroneously created by make from ./install.sh. 1588echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1589echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1590if test -z "$INSTALL"; then 1591if test "${ac_cv_path_install+set}" = set; then 1592 echo $ECHO_N "(cached) $ECHO_C" >&6 1593else 1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1595for as_dir in $PATH 1596do 1597 IFS=$as_save_IFS 1598 test -z "$as_dir" && as_dir=. 1599 # Account for people who put trailing slashes in PATH elements. 1600case $as_dir/ in 1601 ./ | .// | /cC/* | \ 1602 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1603 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1604 /usr/ucb/* ) ;; 1605 *) 1606 # OSF1 and SCO ODT 3.0 have their own names for install. 1607 # Don't use installbsd from OSF since it installs stuff as root 1608 # by default. 1609 for ac_prog in ginstall scoinst install; do 1610 for ac_exec_ext in '' $ac_executable_extensions; do 1611 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1612 if test $ac_prog = install && 1613 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1614 # AIX install. It has an incompatible calling convention. 1615 : 1616 elif test $ac_prog = install && 1617 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1618 # program-specific install script used by HP pwplus--don't use. 1619 : 1620 else 1621 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1622 break 3 1623 fi 1624 fi 1625 done 1626 done 1627 ;; 1628esac 1629done 1630 1631 1632fi 1633 if test "${ac_cv_path_install+set}" = set; then 1634 INSTALL=$ac_cv_path_install 1635 else 1636 # As a last resort, use the slow shell script. We don't cache a 1637 # path for INSTALL within a source directory, because that will 1638 # break other packages using the cache if that directory is 1639 # removed, or if the path is relative. 1640 INSTALL=$ac_install_sh 1641 fi 1642fi 1643echo "$as_me:$LINENO: result: $INSTALL" >&5 1644echo "${ECHO_T}$INSTALL" >&6 1645 1646# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1647# It thinks the first close brace ends the variable substitution. 1648test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1649 1650test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1651 1652test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1653 1654echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1655echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1656# Just in case 1657sleep 1 1658echo timestamp > conftest.file 1659# Do `set' in a subshell so we don't clobber the current shell's 1660# arguments. Must try -L first in case configure is actually a 1661# symlink; some systems play weird games with the mod time of symlinks 1662# (eg FreeBSD returns the mod time of the symlink's containing 1663# directory). 1664if ( 1665 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1666 if test "$*" = "X"; then 1667 # -L didn't work. 1668 set X `ls -t $srcdir/configure conftest.file` 1669 fi 1670 rm -f conftest.file 1671 if test "$*" != "X $srcdir/configure conftest.file" \ 1672 && test "$*" != "X conftest.file $srcdir/configure"; then 1673 1674 # If neither matched, then we have a broken ls. This can happen 1675 # if, for instance, CONFIG_SHELL is bash and it inherits a 1676 # broken ls alias from the environment. This has actually 1677 # happened. Such a system could not be considered "sane". 1678 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1679alias in your environment" >&5 1680echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1681alias in your environment" >&2;} 1682 { (exit 1); exit 1; }; } 1683 fi 1684 1685 test "$2" = conftest.file 1686 ) 1687then 1688 # Ok. 1689 : 1690else 1691 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1692Check your system clock" >&5 1693echo "$as_me: error: newly created file is older than distributed files! 1694Check your system clock" >&2;} 1695 { (exit 1); exit 1; }; } 1696fi 1697echo "$as_me:$LINENO: result: yes" >&5 1698echo "${ECHO_T}yes" >&6 1699test "$program_prefix" != NONE && 1700 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1701# Use a double $ so make ignores it. 1702test "$program_suffix" != NONE && 1703 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1704# Double any \ or $. echo might interpret backslashes. 1705# By default was `s,x,x', remove it if useless. 1706cat <<\_ACEOF >conftest.sed 1707s/[\\$]/&&/g;s/;s,x,x,$// 1708_ACEOF 1709program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1710rm conftest.sed 1711 1712# expand $ac_aux_dir to an absolute path 1713am_aux_dir=`cd $ac_aux_dir && pwd` 1714 1715test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1716# Use eval to expand $SHELL 1717if eval "$MISSING --run true"; then 1718 am_missing_run="$MISSING --run " 1719else 1720 am_missing_run= 1721 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1722echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1723fi 1724 1725if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1726 # We used to keeping the `.' as first argument, in order to 1727 # allow $(mkdir_p) to be used without argument. As in 1728 # $(mkdir_p) $(somedir) 1729 # where $(somedir) is conditionally defined. However this is wrong 1730 # for two reasons: 1731 # 1. if the package is installed by a user who cannot write `.' 1732 # make install will fail, 1733 # 2. the above comment should most certainly read 1734 # $(mkdir_p) $(DESTDIR)$(somedir) 1735 # so it does not work when $(somedir) is undefined and 1736 # $(DESTDIR) is not. 1737 # To support the latter case, we have to write 1738 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1739 # so the `.' trick is pointless. 1740 mkdir_p='mkdir -p --' 1741else 1742 # On NextStep and OpenStep, the `mkdir' command does not 1743 # recognize any option. It will interpret all options as 1744 # directories to create, and then abort because `.' already 1745 # exists. 1746 for d in ./-p ./--version; 1747 do 1748 test -d $d && rmdir $d 1749 done 1750 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1751 if test -f "$ac_aux_dir/mkinstalldirs"; then 1752 mkdir_p='$(mkinstalldirs)' 1753 else 1754 mkdir_p='$(install_sh) -d' 1755 fi 1756fi 1757 1758for ac_prog in gawk mawk nawk awk 1759do 1760 # Extract the first word of "$ac_prog", so it can be a program name with args. 1761set dummy $ac_prog; ac_word=$2 1762echo "$as_me:$LINENO: checking for $ac_word" >&5 1763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1764if test "${ac_cv_prog_AWK+set}" = set; then 1765 echo $ECHO_N "(cached) $ECHO_C" >&6 1766else 1767 if test -n "$AWK"; then 1768 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1769else 1770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1771for as_dir in $PATH 1772do 1773 IFS=$as_save_IFS 1774 test -z "$as_dir" && as_dir=. 1775 for ac_exec_ext in '' $ac_executable_extensions; do 1776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1777 ac_cv_prog_AWK="$ac_prog" 1778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1779 break 2 1780 fi 1781done 1782done 1783 1784fi 1785fi 1786AWK=$ac_cv_prog_AWK 1787if test -n "$AWK"; then 1788 echo "$as_me:$LINENO: result: $AWK" >&5 1789echo "${ECHO_T}$AWK" >&6 1790else 1791 echo "$as_me:$LINENO: result: no" >&5 1792echo "${ECHO_T}no" >&6 1793fi 1794 1795 test -n "$AWK" && break 1796done 1797 1798echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1799echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1800set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1801if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1802 echo $ECHO_N "(cached) $ECHO_C" >&6 1803else 1804 cat >conftest.make <<\_ACEOF 1805all: 1806 @echo 'ac_maketemp="$(MAKE)"' 1807_ACEOF 1808# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1809eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1810if test -n "$ac_maketemp"; then 1811 eval ac_cv_prog_make_${ac_make}_set=yes 1812else 1813 eval ac_cv_prog_make_${ac_make}_set=no 1814fi 1815rm -f conftest.make 1816fi 1817if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1818 echo "$as_me:$LINENO: result: yes" >&5 1819echo "${ECHO_T}yes" >&6 1820 SET_MAKE= 1821else 1822 echo "$as_me:$LINENO: result: no" >&5 1823echo "${ECHO_T}no" >&6 1824 SET_MAKE="MAKE=${MAKE-make}" 1825fi 1826 1827rm -rf .tst 2>/dev/null 1828mkdir .tst 2>/dev/null 1829if test -d .tst; then 1830 am__leading_dot=. 1831else 1832 am__leading_dot=_ 1833fi 1834rmdir .tst 2>/dev/null 1835 1836# test to see if srcdir already configured 1837if test "`cd $srcdir && pwd`" != "`pwd`" && 1838 test -f $srcdir/config.status; then 1839 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1840echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1841 { (exit 1); exit 1; }; } 1842fi 1843 1844# test whether we have cygpath 1845if test -z "$CYGPATH_W"; then 1846 if (cygpath --version) >/dev/null 2>/dev/null; then 1847 CYGPATH_W='cygpath -w' 1848 else 1849 CYGPATH_W=echo 1850 fi 1851fi 1852 1853 1854# Define the identity of the package. 1855 PACKAGE='xf86-video-apm' 1856 VERSION='1.1.1' 1857 1858 1859cat >>confdefs.h <<_ACEOF 1860#define PACKAGE "$PACKAGE" 1861_ACEOF 1862 1863 1864cat >>confdefs.h <<_ACEOF 1865#define VERSION "$VERSION" 1866_ACEOF 1867 1868# Some tools Automake needs. 1869 1870ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1871 1872 1873AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1874 1875 1876AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1877 1878 1879AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1880 1881 1882MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1883 1884install_sh=${install_sh-"$am_aux_dir/install-sh"} 1885 1886# Installed binaries are usually stripped using `strip' when the user 1887# run `make install-strip'. However `strip' might not be the right 1888# tool to use in cross-compilation environments, therefore Automake 1889# will honor the `STRIP' environment variable to overrule this program. 1890if test "$cross_compiling" != no; then 1891 if test -n "$ac_tool_prefix"; then 1892 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1893set dummy ${ac_tool_prefix}strip; ac_word=$2 1894echo "$as_me:$LINENO: checking for $ac_word" >&5 1895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1896if test "${ac_cv_prog_STRIP+set}" = set; then 1897 echo $ECHO_N "(cached) $ECHO_C" >&6 1898else 1899 if test -n "$STRIP"; then 1900 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1901else 1902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1903for as_dir in $PATH 1904do 1905 IFS=$as_save_IFS 1906 test -z "$as_dir" && as_dir=. 1907 for ac_exec_ext in '' $ac_executable_extensions; do 1908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1909 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1911 break 2 1912 fi 1913done 1914done 1915 1916fi 1917fi 1918STRIP=$ac_cv_prog_STRIP 1919if test -n "$STRIP"; then 1920 echo "$as_me:$LINENO: result: $STRIP" >&5 1921echo "${ECHO_T}$STRIP" >&6 1922else 1923 echo "$as_me:$LINENO: result: no" >&5 1924echo "${ECHO_T}no" >&6 1925fi 1926 1927fi 1928if test -z "$ac_cv_prog_STRIP"; then 1929 ac_ct_STRIP=$STRIP 1930 # Extract the first word of "strip", so it can be a program name with args. 1931set dummy strip; ac_word=$2 1932echo "$as_me:$LINENO: checking for $ac_word" >&5 1933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1934if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1935 echo $ECHO_N "(cached) $ECHO_C" >&6 1936else 1937 if test -n "$ac_ct_STRIP"; then 1938 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1939else 1940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1941for as_dir in $PATH 1942do 1943 IFS=$as_save_IFS 1944 test -z "$as_dir" && as_dir=. 1945 for ac_exec_ext in '' $ac_executable_extensions; do 1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1947 ac_cv_prog_ac_ct_STRIP="strip" 1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1949 break 2 1950 fi 1951done 1952done 1953 1954 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1955fi 1956fi 1957ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1958if test -n "$ac_ct_STRIP"; then 1959 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1960echo "${ECHO_T}$ac_ct_STRIP" >&6 1961else 1962 echo "$as_me:$LINENO: result: no" >&5 1963echo "${ECHO_T}no" >&6 1964fi 1965 1966 STRIP=$ac_ct_STRIP 1967else 1968 STRIP="$ac_cv_prog_STRIP" 1969fi 1970 1971fi 1972INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1973 1974# We need awk for the "check" target. The system "awk" is bad on 1975# some platforms. 1976# Always define AMTAR for backward compatibility. 1977 1978AMTAR=${AMTAR-"${am_missing_run}tar"} 1979 1980am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1981 1982 1983 1984 1985 1986 1987echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1988echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1989 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1990if test "${enable_maintainer_mode+set}" = set; then 1991 enableval="$enable_maintainer_mode" 1992 USE_MAINTAINER_MODE=$enableval 1993else 1994 USE_MAINTAINER_MODE=no 1995fi; 1996 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1997echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1998 1999 2000if test $USE_MAINTAINER_MODE = yes; then 2001 MAINTAINER_MODE_TRUE= 2002 MAINTAINER_MODE_FALSE='#' 2003else 2004 MAINTAINER_MODE_TRUE='#' 2005 MAINTAINER_MODE_FALSE= 2006fi 2007 2008 MAINT=$MAINTAINER_MODE_TRUE 2009 2010 2011 2012# Checks for programs. 2013# Check whether --enable-static or --disable-static was given. 2014if test "${enable_static+set}" = set; then 2015 enableval="$enable_static" 2016 p=${PACKAGE-default} 2017 case $enableval in 2018 yes) enable_static=yes ;; 2019 no) enable_static=no ;; 2020 *) 2021 enable_static=no 2022 # Look at the argument we got. We use all the common list separators. 2023 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2024 for pkg in $enableval; do 2025 IFS="$lt_save_ifs" 2026 if test "X$pkg" = "X$p"; then 2027 enable_static=yes 2028 fi 2029 done 2030 IFS="$lt_save_ifs" 2031 ;; 2032 esac 2033else 2034 enable_static=no 2035fi; 2036 2037 2038# Check whether --enable-shared or --disable-shared was given. 2039if test "${enable_shared+set}" = set; then 2040 enableval="$enable_shared" 2041 p=${PACKAGE-default} 2042 case $enableval in 2043 yes) enable_shared=yes ;; 2044 no) enable_shared=no ;; 2045 *) 2046 enable_shared=no 2047 # Look at the argument we got. We use all the common list separators. 2048 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2049 for pkg in $enableval; do 2050 IFS="$lt_save_ifs" 2051 if test "X$pkg" = "X$p"; then 2052 enable_shared=yes 2053 fi 2054 done 2055 IFS="$lt_save_ifs" 2056 ;; 2057 esac 2058else 2059 enable_shared=yes 2060fi; 2061 2062# Check whether --enable-fast-install or --disable-fast-install was given. 2063if test "${enable_fast_install+set}" = set; then 2064 enableval="$enable_fast_install" 2065 p=${PACKAGE-default} 2066 case $enableval in 2067 yes) enable_fast_install=yes ;; 2068 no) enable_fast_install=no ;; 2069 *) 2070 enable_fast_install=no 2071 # Look at the argument we got. We use all the common list separators. 2072 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2073 for pkg in $enableval; do 2074 IFS="$lt_save_ifs" 2075 if test "X$pkg" = "X$p"; then 2076 enable_fast_install=yes 2077 fi 2078 done 2079 IFS="$lt_save_ifs" 2080 ;; 2081 esac 2082else 2083 enable_fast_install=yes 2084fi; 2085 2086# Make sure we can run config.sub. 2087$ac_config_sub sun4 >/dev/null 2>&1 || 2088 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 2089echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2090 { (exit 1); exit 1; }; } 2091 2092echo "$as_me:$LINENO: checking build system type" >&5 2093echo $ECHO_N "checking build system type... $ECHO_C" >&6 2094if test "${ac_cv_build+set}" = set; then 2095 echo $ECHO_N "(cached) $ECHO_C" >&6 2096else 2097 ac_cv_build_alias=$build_alias 2098test -z "$ac_cv_build_alias" && 2099 ac_cv_build_alias=`$ac_config_guess` 2100test -z "$ac_cv_build_alias" && 2101 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2102echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2103 { (exit 1); exit 1; }; } 2104ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2105 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 2106echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 2107 { (exit 1); exit 1; }; } 2108 2109fi 2110echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2111echo "${ECHO_T}$ac_cv_build" >&6 2112build=$ac_cv_build 2113build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2114build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2115build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2116 2117 2118echo "$as_me:$LINENO: checking host system type" >&5 2119echo $ECHO_N "checking host system type... $ECHO_C" >&6 2120if test "${ac_cv_host+set}" = set; then 2121 echo $ECHO_N "(cached) $ECHO_C" >&6 2122else 2123 ac_cv_host_alias=$host_alias 2124test -z "$ac_cv_host_alias" && 2125 ac_cv_host_alias=$ac_cv_build_alias 2126ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2127 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2128echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2129 { (exit 1); exit 1; }; } 2130 2131fi 2132echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2133echo "${ECHO_T}$ac_cv_host" >&6 2134host=$ac_cv_host 2135host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2136host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2137host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2138 2139 2140DEPDIR="${am__leading_dot}deps" 2141 2142 ac_config_commands="$ac_config_commands depfiles" 2143 2144 2145am_make=${MAKE-make} 2146cat > confinc << 'END' 2147am__doit: 2148 @echo done 2149.PHONY: am__doit 2150END 2151# If we don't find an include directive, just comment out the code. 2152echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2153echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2154am__include="#" 2155am__quote= 2156_am_result=none 2157# First try GNU make style include. 2158echo "include confinc" > confmf 2159# We grep out `Entering directory' and `Leaving directory' 2160# messages which can occur if `w' ends up in MAKEFLAGS. 2161# In particular we don't look at `^make:' because GNU make might 2162# be invoked under some other name (usually "gmake"), in which 2163# case it prints its new name instead of `make'. 2164if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2165 am__include=include 2166 am__quote= 2167 _am_result=GNU 2168fi 2169# Now try BSD make style include. 2170if test "$am__include" = "#"; then 2171 echo '.include "confinc"' > confmf 2172 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2173 am__include=.include 2174 am__quote="\"" 2175 _am_result=BSD 2176 fi 2177fi 2178 2179 2180echo "$as_me:$LINENO: result: $_am_result" >&5 2181echo "${ECHO_T}$_am_result" >&6 2182rm -f confinc confmf 2183 2184# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2185if test "${enable_dependency_tracking+set}" = set; then 2186 enableval="$enable_dependency_tracking" 2187 2188fi; 2189if test "x$enable_dependency_tracking" != xno; then 2190 am_depcomp="$ac_aux_dir/depcomp" 2191 AMDEPBACKSLASH='\' 2192fi 2193 2194 2195if test "x$enable_dependency_tracking" != xno; then 2196 AMDEP_TRUE= 2197 AMDEP_FALSE='#' 2198else 2199 AMDEP_TRUE='#' 2200 AMDEP_FALSE= 2201fi 2202 2203 2204 2205ac_ext=c 2206ac_cpp='$CPP $CPPFLAGS' 2207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2209ac_compiler_gnu=$ac_cv_c_compiler_gnu 2210if test -n "$ac_tool_prefix"; then 2211 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2212set dummy ${ac_tool_prefix}gcc; ac_word=$2 2213echo "$as_me:$LINENO: checking for $ac_word" >&5 2214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2215if test "${ac_cv_prog_CC+set}" = set; then 2216 echo $ECHO_N "(cached) $ECHO_C" >&6 2217else 2218 if test -n "$CC"; then 2219 ac_cv_prog_CC="$CC" # Let the user override the test. 2220else 2221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2222for as_dir in $PATH 2223do 2224 IFS=$as_save_IFS 2225 test -z "$as_dir" && as_dir=. 2226 for ac_exec_ext in '' $ac_executable_extensions; do 2227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2228 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2230 break 2 2231 fi 2232done 2233done 2234 2235fi 2236fi 2237CC=$ac_cv_prog_CC 2238if test -n "$CC"; then 2239 echo "$as_me:$LINENO: result: $CC" >&5 2240echo "${ECHO_T}$CC" >&6 2241else 2242 echo "$as_me:$LINENO: result: no" >&5 2243echo "${ECHO_T}no" >&6 2244fi 2245 2246fi 2247if test -z "$ac_cv_prog_CC"; then 2248 ac_ct_CC=$CC 2249 # Extract the first word of "gcc", so it can be a program name with args. 2250set dummy gcc; ac_word=$2 2251echo "$as_me:$LINENO: checking for $ac_word" >&5 2252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2253if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2254 echo $ECHO_N "(cached) $ECHO_C" >&6 2255else 2256 if test -n "$ac_ct_CC"; then 2257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2258else 2259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2260for as_dir in $PATH 2261do 2262 IFS=$as_save_IFS 2263 test -z "$as_dir" && as_dir=. 2264 for ac_exec_ext in '' $ac_executable_extensions; do 2265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2266 ac_cv_prog_ac_ct_CC="gcc" 2267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2268 break 2 2269 fi 2270done 2271done 2272 2273fi 2274fi 2275ac_ct_CC=$ac_cv_prog_ac_ct_CC 2276if test -n "$ac_ct_CC"; then 2277 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2278echo "${ECHO_T}$ac_ct_CC" >&6 2279else 2280 echo "$as_me:$LINENO: result: no" >&5 2281echo "${ECHO_T}no" >&6 2282fi 2283 2284 CC=$ac_ct_CC 2285else 2286 CC="$ac_cv_prog_CC" 2287fi 2288 2289if test -z "$CC"; then 2290 if test -n "$ac_tool_prefix"; then 2291 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2292set dummy ${ac_tool_prefix}cc; ac_word=$2 2293echo "$as_me:$LINENO: checking for $ac_word" >&5 2294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2295if test "${ac_cv_prog_CC+set}" = set; then 2296 echo $ECHO_N "(cached) $ECHO_C" >&6 2297else 2298 if test -n "$CC"; then 2299 ac_cv_prog_CC="$CC" # Let the user override the test. 2300else 2301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2302for as_dir in $PATH 2303do 2304 IFS=$as_save_IFS 2305 test -z "$as_dir" && as_dir=. 2306 for ac_exec_ext in '' $ac_executable_extensions; do 2307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2308 ac_cv_prog_CC="${ac_tool_prefix}cc" 2309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2310 break 2 2311 fi 2312done 2313done 2314 2315fi 2316fi 2317CC=$ac_cv_prog_CC 2318if test -n "$CC"; then 2319 echo "$as_me:$LINENO: result: $CC" >&5 2320echo "${ECHO_T}$CC" >&6 2321else 2322 echo "$as_me:$LINENO: result: no" >&5 2323echo "${ECHO_T}no" >&6 2324fi 2325 2326fi 2327if test -z "$ac_cv_prog_CC"; then 2328 ac_ct_CC=$CC 2329 # Extract the first word of "cc", so it can be a program name with args. 2330set dummy cc; ac_word=$2 2331echo "$as_me:$LINENO: checking for $ac_word" >&5 2332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2333if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2334 echo $ECHO_N "(cached) $ECHO_C" >&6 2335else 2336 if test -n "$ac_ct_CC"; then 2337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2338else 2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2340for as_dir in $PATH 2341do 2342 IFS=$as_save_IFS 2343 test -z "$as_dir" && as_dir=. 2344 for ac_exec_ext in '' $ac_executable_extensions; do 2345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2346 ac_cv_prog_ac_ct_CC="cc" 2347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2348 break 2 2349 fi 2350done 2351done 2352 2353fi 2354fi 2355ac_ct_CC=$ac_cv_prog_ac_ct_CC 2356if test -n "$ac_ct_CC"; then 2357 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2358echo "${ECHO_T}$ac_ct_CC" >&6 2359else 2360 echo "$as_me:$LINENO: result: no" >&5 2361echo "${ECHO_T}no" >&6 2362fi 2363 2364 CC=$ac_ct_CC 2365else 2366 CC="$ac_cv_prog_CC" 2367fi 2368 2369fi 2370if test -z "$CC"; then 2371 # Extract the first word of "cc", so it can be a program name with args. 2372set dummy cc; ac_word=$2 2373echo "$as_me:$LINENO: checking for $ac_word" >&5 2374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2375if test "${ac_cv_prog_CC+set}" = set; then 2376 echo $ECHO_N "(cached) $ECHO_C" >&6 2377else 2378 if test -n "$CC"; then 2379 ac_cv_prog_CC="$CC" # Let the user override the test. 2380else 2381 ac_prog_rejected=no 2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2383for as_dir in $PATH 2384do 2385 IFS=$as_save_IFS 2386 test -z "$as_dir" && as_dir=. 2387 for ac_exec_ext in '' $ac_executable_extensions; do 2388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2389 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2390 ac_prog_rejected=yes 2391 continue 2392 fi 2393 ac_cv_prog_CC="cc" 2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2395 break 2 2396 fi 2397done 2398done 2399 2400if test $ac_prog_rejected = yes; then 2401 # We found a bogon in the path, so make sure we never use it. 2402 set dummy $ac_cv_prog_CC 2403 shift 2404 if test $# != 0; then 2405 # We chose a different compiler from the bogus one. 2406 # However, it has the same basename, so the bogon will be chosen 2407 # first if we set CC to just the basename; use the full file name. 2408 shift 2409 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2410 fi 2411fi 2412fi 2413fi 2414CC=$ac_cv_prog_CC 2415if test -n "$CC"; then 2416 echo "$as_me:$LINENO: result: $CC" >&5 2417echo "${ECHO_T}$CC" >&6 2418else 2419 echo "$as_me:$LINENO: result: no" >&5 2420echo "${ECHO_T}no" >&6 2421fi 2422 2423fi 2424if test -z "$CC"; then 2425 if test -n "$ac_tool_prefix"; then 2426 for ac_prog in cl 2427 do 2428 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2429set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2430echo "$as_me:$LINENO: checking for $ac_word" >&5 2431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2432if test "${ac_cv_prog_CC+set}" = set; then 2433 echo $ECHO_N "(cached) $ECHO_C" >&6 2434else 2435 if test -n "$CC"; then 2436 ac_cv_prog_CC="$CC" # Let the user override the test. 2437else 2438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2439for as_dir in $PATH 2440do 2441 IFS=$as_save_IFS 2442 test -z "$as_dir" && as_dir=. 2443 for ac_exec_ext in '' $ac_executable_extensions; do 2444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2445 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2447 break 2 2448 fi 2449done 2450done 2451 2452fi 2453fi 2454CC=$ac_cv_prog_CC 2455if test -n "$CC"; then 2456 echo "$as_me:$LINENO: result: $CC" >&5 2457echo "${ECHO_T}$CC" >&6 2458else 2459 echo "$as_me:$LINENO: result: no" >&5 2460echo "${ECHO_T}no" >&6 2461fi 2462 2463 test -n "$CC" && break 2464 done 2465fi 2466if test -z "$CC"; then 2467 ac_ct_CC=$CC 2468 for ac_prog in cl 2469do 2470 # Extract the first word of "$ac_prog", so it can be a program name with args. 2471set dummy $ac_prog; ac_word=$2 2472echo "$as_me:$LINENO: checking for $ac_word" >&5 2473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2474if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2475 echo $ECHO_N "(cached) $ECHO_C" >&6 2476else 2477 if test -n "$ac_ct_CC"; then 2478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2479else 2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2481for as_dir in $PATH 2482do 2483 IFS=$as_save_IFS 2484 test -z "$as_dir" && as_dir=. 2485 for ac_exec_ext in '' $ac_executable_extensions; do 2486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2487 ac_cv_prog_ac_ct_CC="$ac_prog" 2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2489 break 2 2490 fi 2491done 2492done 2493 2494fi 2495fi 2496ac_ct_CC=$ac_cv_prog_ac_ct_CC 2497if test -n "$ac_ct_CC"; then 2498 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2499echo "${ECHO_T}$ac_ct_CC" >&6 2500else 2501 echo "$as_me:$LINENO: result: no" >&5 2502echo "${ECHO_T}no" >&6 2503fi 2504 2505 test -n "$ac_ct_CC" && break 2506done 2507 2508 CC=$ac_ct_CC 2509fi 2510 2511fi 2512 2513 2514test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2515See \`config.log' for more details." >&5 2516echo "$as_me: error: no acceptable C compiler found in \$PATH 2517See \`config.log' for more details." >&2;} 2518 { (exit 1); exit 1; }; } 2519 2520# Provide some information about the compiler. 2521echo "$as_me:$LINENO:" \ 2522 "checking for C compiler version" >&5 2523ac_compiler=`set X $ac_compile; echo $2` 2524{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2525 (eval $ac_compiler --version </dev/null >&5) 2>&5 2526 ac_status=$? 2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2528 (exit $ac_status); } 2529{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2530 (eval $ac_compiler -v </dev/null >&5) 2>&5 2531 ac_status=$? 2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2533 (exit $ac_status); } 2534{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2535 (eval $ac_compiler -V </dev/null >&5) 2>&5 2536 ac_status=$? 2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2538 (exit $ac_status); } 2539 2540cat >conftest.$ac_ext <<_ACEOF 2541/* confdefs.h. */ 2542_ACEOF 2543cat confdefs.h >>conftest.$ac_ext 2544cat >>conftest.$ac_ext <<_ACEOF 2545/* end confdefs.h. */ 2546 2547int 2548main () 2549{ 2550 2551 ; 2552 return 0; 2553} 2554_ACEOF 2555ac_clean_files_save=$ac_clean_files 2556ac_clean_files="$ac_clean_files a.out a.exe b.out" 2557# Try to create an executable without -o first, disregard a.out. 2558# It will help us diagnose broken compilers, and finding out an intuition 2559# of exeext. 2560echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2561echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2562ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2563if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2564 (eval $ac_link_default) 2>&5 2565 ac_status=$? 2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2567 (exit $ac_status); }; then 2568 # Find the output, starting from the most likely. This scheme is 2569# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2570# resort. 2571 2572# Be careful to initialize this variable, since it used to be cached. 2573# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2574ac_cv_exeext= 2575# b.out is created by i960 compilers. 2576for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2577do 2578 test -f "$ac_file" || continue 2579 case $ac_file in 2580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2581 ;; 2582 conftest.$ac_ext ) 2583 # This is the source file. 2584 ;; 2585 [ab].out ) 2586 # We found the default executable, but exeext='' is most 2587 # certainly right. 2588 break;; 2589 *.* ) 2590 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2591 # FIXME: I believe we export ac_cv_exeext for Libtool, 2592 # but it would be cool to find out if it's true. Does anybody 2593 # maintain Libtool? --akim. 2594 export ac_cv_exeext 2595 break;; 2596 * ) 2597 break;; 2598 esac 2599done 2600else 2601 echo "$as_me: failed program was:" >&5 2602sed 's/^/| /' conftest.$ac_ext >&5 2603 2604{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2605See \`config.log' for more details." >&5 2606echo "$as_me: error: C compiler cannot create executables 2607See \`config.log' for more details." >&2;} 2608 { (exit 77); exit 77; }; } 2609fi 2610 2611ac_exeext=$ac_cv_exeext 2612echo "$as_me:$LINENO: result: $ac_file" >&5 2613echo "${ECHO_T}$ac_file" >&6 2614 2615# Check the compiler produces executables we can run. If not, either 2616# the compiler is broken, or we cross compile. 2617echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2618echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2619# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2620# If not cross compiling, check that we can run a simple program. 2621if test "$cross_compiling" != yes; then 2622 if { ac_try='./$ac_file' 2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2624 (eval $ac_try) 2>&5 2625 ac_status=$? 2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2627 (exit $ac_status); }; }; then 2628 cross_compiling=no 2629 else 2630 if test "$cross_compiling" = maybe; then 2631 cross_compiling=yes 2632 else 2633 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2634If you meant to cross compile, use \`--host'. 2635See \`config.log' for more details." >&5 2636echo "$as_me: error: cannot run C compiled programs. 2637If you meant to cross compile, use \`--host'. 2638See \`config.log' for more details." >&2;} 2639 { (exit 1); exit 1; }; } 2640 fi 2641 fi 2642fi 2643echo "$as_me:$LINENO: result: yes" >&5 2644echo "${ECHO_T}yes" >&6 2645 2646rm -f a.out a.exe conftest$ac_cv_exeext b.out 2647ac_clean_files=$ac_clean_files_save 2648# Check the compiler produces executables we can run. If not, either 2649# the compiler is broken, or we cross compile. 2650echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2651echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2652echo "$as_me:$LINENO: result: $cross_compiling" >&5 2653echo "${ECHO_T}$cross_compiling" >&6 2654 2655echo "$as_me:$LINENO: checking for suffix of executables" >&5 2656echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2658 (eval $ac_link) 2>&5 2659 ac_status=$? 2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2661 (exit $ac_status); }; then 2662 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2663# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2664# work properly (i.e., refer to `conftest.exe'), while it won't with 2665# `rm'. 2666for ac_file in conftest.exe conftest conftest.*; do 2667 test -f "$ac_file" || continue 2668 case $ac_file in 2669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2670 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2671 export ac_cv_exeext 2672 break;; 2673 * ) break;; 2674 esac 2675done 2676else 2677 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2678See \`config.log' for more details." >&5 2679echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2680See \`config.log' for more details." >&2;} 2681 { (exit 1); exit 1; }; } 2682fi 2683 2684rm -f conftest$ac_cv_exeext 2685echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2686echo "${ECHO_T}$ac_cv_exeext" >&6 2687 2688rm -f conftest.$ac_ext 2689EXEEXT=$ac_cv_exeext 2690ac_exeext=$EXEEXT 2691echo "$as_me:$LINENO: checking for suffix of object files" >&5 2692echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2693if test "${ac_cv_objext+set}" = set; then 2694 echo $ECHO_N "(cached) $ECHO_C" >&6 2695else 2696 cat >conftest.$ac_ext <<_ACEOF 2697/* confdefs.h. */ 2698_ACEOF 2699cat confdefs.h >>conftest.$ac_ext 2700cat >>conftest.$ac_ext <<_ACEOF 2701/* end confdefs.h. */ 2702 2703int 2704main () 2705{ 2706 2707 ; 2708 return 0; 2709} 2710_ACEOF 2711rm -f conftest.o conftest.obj 2712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2713 (eval $ac_compile) 2>&5 2714 ac_status=$? 2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2716 (exit $ac_status); }; then 2717 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2718 case $ac_file in 2719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2720 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2721 break;; 2722 esac 2723done 2724else 2725 echo "$as_me: failed program was:" >&5 2726sed 's/^/| /' conftest.$ac_ext >&5 2727 2728{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2729See \`config.log' for more details." >&5 2730echo "$as_me: error: cannot compute suffix of object files: cannot compile 2731See \`config.log' for more details." >&2;} 2732 { (exit 1); exit 1; }; } 2733fi 2734 2735rm -f conftest.$ac_cv_objext conftest.$ac_ext 2736fi 2737echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2738echo "${ECHO_T}$ac_cv_objext" >&6 2739OBJEXT=$ac_cv_objext 2740ac_objext=$OBJEXT 2741echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2742echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2743if test "${ac_cv_c_compiler_gnu+set}" = set; then 2744 echo $ECHO_N "(cached) $ECHO_C" >&6 2745else 2746 cat >conftest.$ac_ext <<_ACEOF 2747/* confdefs.h. */ 2748_ACEOF 2749cat confdefs.h >>conftest.$ac_ext 2750cat >>conftest.$ac_ext <<_ACEOF 2751/* end confdefs.h. */ 2752 2753int 2754main () 2755{ 2756#ifndef __GNUC__ 2757 choke me 2758#endif 2759 2760 ; 2761 return 0; 2762} 2763_ACEOF 2764rm -f conftest.$ac_objext 2765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2766 (eval $ac_compile) 2>conftest.er1 2767 ac_status=$? 2768 grep -v '^ *+' conftest.er1 >conftest.err 2769 rm -f conftest.er1 2770 cat conftest.err >&5 2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2772 (exit $ac_status); } && 2773 { ac_try='test -z "$ac_c_werror_flag" 2774 || test ! -s conftest.err' 2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2776 (eval $ac_try) 2>&5 2777 ac_status=$? 2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2779 (exit $ac_status); }; } && 2780 { ac_try='test -s conftest.$ac_objext' 2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2782 (eval $ac_try) 2>&5 2783 ac_status=$? 2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2785 (exit $ac_status); }; }; then 2786 ac_compiler_gnu=yes 2787else 2788 echo "$as_me: failed program was:" >&5 2789sed 's/^/| /' conftest.$ac_ext >&5 2790 2791ac_compiler_gnu=no 2792fi 2793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2794ac_cv_c_compiler_gnu=$ac_compiler_gnu 2795 2796fi 2797echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2798echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2799GCC=`test $ac_compiler_gnu = yes && echo yes` 2800ac_test_CFLAGS=${CFLAGS+set} 2801ac_save_CFLAGS=$CFLAGS 2802CFLAGS="-g" 2803echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2804echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2805if test "${ac_cv_prog_cc_g+set}" = set; then 2806 echo $ECHO_N "(cached) $ECHO_C" >&6 2807else 2808 cat >conftest.$ac_ext <<_ACEOF 2809/* confdefs.h. */ 2810_ACEOF 2811cat confdefs.h >>conftest.$ac_ext 2812cat >>conftest.$ac_ext <<_ACEOF 2813/* end confdefs.h. */ 2814 2815int 2816main () 2817{ 2818 2819 ; 2820 return 0; 2821} 2822_ACEOF 2823rm -f conftest.$ac_objext 2824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2825 (eval $ac_compile) 2>conftest.er1 2826 ac_status=$? 2827 grep -v '^ *+' conftest.er1 >conftest.err 2828 rm -f conftest.er1 2829 cat conftest.err >&5 2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2831 (exit $ac_status); } && 2832 { ac_try='test -z "$ac_c_werror_flag" 2833 || test ! -s conftest.err' 2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2835 (eval $ac_try) 2>&5 2836 ac_status=$? 2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2838 (exit $ac_status); }; } && 2839 { ac_try='test -s conftest.$ac_objext' 2840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2841 (eval $ac_try) 2>&5 2842 ac_status=$? 2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2844 (exit $ac_status); }; }; then 2845 ac_cv_prog_cc_g=yes 2846else 2847 echo "$as_me: failed program was:" >&5 2848sed 's/^/| /' conftest.$ac_ext >&5 2849 2850ac_cv_prog_cc_g=no 2851fi 2852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2853fi 2854echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2855echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2856if test "$ac_test_CFLAGS" = set; then 2857 CFLAGS=$ac_save_CFLAGS 2858elif test $ac_cv_prog_cc_g = yes; then 2859 if test "$GCC" = yes; then 2860 CFLAGS="-g -O2" 2861 else 2862 CFLAGS="-g" 2863 fi 2864else 2865 if test "$GCC" = yes; then 2866 CFLAGS="-O2" 2867 else 2868 CFLAGS= 2869 fi 2870fi 2871echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2872echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2873if test "${ac_cv_prog_cc_stdc+set}" = set; then 2874 echo $ECHO_N "(cached) $ECHO_C" >&6 2875else 2876 ac_cv_prog_cc_stdc=no 2877ac_save_CC=$CC 2878cat >conftest.$ac_ext <<_ACEOF 2879/* confdefs.h. */ 2880_ACEOF 2881cat confdefs.h >>conftest.$ac_ext 2882cat >>conftest.$ac_ext <<_ACEOF 2883/* end confdefs.h. */ 2884#include <stdarg.h> 2885#include <stdio.h> 2886#include <sys/types.h> 2887#include <sys/stat.h> 2888/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2889struct buf { int x; }; 2890FILE * (*rcsopen) (struct buf *, struct stat *, int); 2891static char *e (p, i) 2892 char **p; 2893 int i; 2894{ 2895 return p[i]; 2896} 2897static char *f (char * (*g) (char **, int), char **p, ...) 2898{ 2899 char *s; 2900 va_list v; 2901 va_start (v,p); 2902 s = g (p, va_arg (v,int)); 2903 va_end (v); 2904 return s; 2905} 2906 2907/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2908 function prototypes and stuff, but not '\xHH' hex character constants. 2909 These don't provoke an error unfortunately, instead are silently treated 2910 as 'x'. The following induces an error, until -std1 is added to get 2911 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2912 array size at least. It's necessary to write '\x00'==0 to get something 2913 that's true only with -std1. */ 2914int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2915 2916int test (int i, double x); 2917struct s1 {int (*f) (int a);}; 2918struct s2 {int (*f) (double a);}; 2919int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2920int argc; 2921char **argv; 2922int 2923main () 2924{ 2925return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2926 ; 2927 return 0; 2928} 2929_ACEOF 2930# Don't try gcc -ansi; that turns off useful extensions and 2931# breaks some systems' header files. 2932# AIX -qlanglvl=ansi 2933# Ultrix and OSF/1 -std1 2934# HP-UX 10.20 and later -Ae 2935# HP-UX older versions -Aa -D_HPUX_SOURCE 2936# SVR4 -Xc -D__EXTENSIONS__ 2937for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2938do 2939 CC="$ac_save_CC $ac_arg" 2940 rm -f conftest.$ac_objext 2941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2942 (eval $ac_compile) 2>conftest.er1 2943 ac_status=$? 2944 grep -v '^ *+' conftest.er1 >conftest.err 2945 rm -f conftest.er1 2946 cat conftest.err >&5 2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2948 (exit $ac_status); } && 2949 { ac_try='test -z "$ac_c_werror_flag" 2950 || test ! -s conftest.err' 2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2952 (eval $ac_try) 2>&5 2953 ac_status=$? 2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2955 (exit $ac_status); }; } && 2956 { ac_try='test -s conftest.$ac_objext' 2957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2958 (eval $ac_try) 2>&5 2959 ac_status=$? 2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2961 (exit $ac_status); }; }; then 2962 ac_cv_prog_cc_stdc=$ac_arg 2963break 2964else 2965 echo "$as_me: failed program was:" >&5 2966sed 's/^/| /' conftest.$ac_ext >&5 2967 2968fi 2969rm -f conftest.err conftest.$ac_objext 2970done 2971rm -f conftest.$ac_ext conftest.$ac_objext 2972CC=$ac_save_CC 2973 2974fi 2975 2976case "x$ac_cv_prog_cc_stdc" in 2977 x|xno) 2978 echo "$as_me:$LINENO: result: none needed" >&5 2979echo "${ECHO_T}none needed" >&6 ;; 2980 *) 2981 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2982echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2983 CC="$CC $ac_cv_prog_cc_stdc" ;; 2984esac 2985 2986# Some people use a C++ compiler to compile C. Since we use `exit', 2987# in C++ we need to declare it. In case someone uses the same compiler 2988# for both compiling C and C++ we need to have the C++ compiler decide 2989# the declaration of exit, since it's the most demanding environment. 2990cat >conftest.$ac_ext <<_ACEOF 2991#ifndef __cplusplus 2992 choke me 2993#endif 2994_ACEOF 2995rm -f conftest.$ac_objext 2996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2997 (eval $ac_compile) 2>conftest.er1 2998 ac_status=$? 2999 grep -v '^ *+' conftest.er1 >conftest.err 3000 rm -f conftest.er1 3001 cat conftest.err >&5 3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3003 (exit $ac_status); } && 3004 { ac_try='test -z "$ac_c_werror_flag" 3005 || test ! -s conftest.err' 3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3007 (eval $ac_try) 2>&5 3008 ac_status=$? 3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3010 (exit $ac_status); }; } && 3011 { ac_try='test -s conftest.$ac_objext' 3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3013 (eval $ac_try) 2>&5 3014 ac_status=$? 3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3016 (exit $ac_status); }; }; then 3017 for ac_declaration in \ 3018 '' \ 3019 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3020 'extern "C" void std::exit (int); using std::exit;' \ 3021 'extern "C" void exit (int) throw ();' \ 3022 'extern "C" void exit (int);' \ 3023 'void exit (int);' 3024do 3025 cat >conftest.$ac_ext <<_ACEOF 3026/* confdefs.h. */ 3027_ACEOF 3028cat confdefs.h >>conftest.$ac_ext 3029cat >>conftest.$ac_ext <<_ACEOF 3030/* end confdefs.h. */ 3031$ac_declaration 3032#include <stdlib.h> 3033int 3034main () 3035{ 3036exit (42); 3037 ; 3038 return 0; 3039} 3040_ACEOF 3041rm -f conftest.$ac_objext 3042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3043 (eval $ac_compile) 2>conftest.er1 3044 ac_status=$? 3045 grep -v '^ *+' conftest.er1 >conftest.err 3046 rm -f conftest.er1 3047 cat conftest.err >&5 3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3049 (exit $ac_status); } && 3050 { ac_try='test -z "$ac_c_werror_flag" 3051 || test ! -s conftest.err' 3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3053 (eval $ac_try) 2>&5 3054 ac_status=$? 3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3056 (exit $ac_status); }; } && 3057 { ac_try='test -s conftest.$ac_objext' 3058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3059 (eval $ac_try) 2>&5 3060 ac_status=$? 3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3062 (exit $ac_status); }; }; then 3063 : 3064else 3065 echo "$as_me: failed program was:" >&5 3066sed 's/^/| /' conftest.$ac_ext >&5 3067 3068continue 3069fi 3070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3071 cat >conftest.$ac_ext <<_ACEOF 3072/* confdefs.h. */ 3073_ACEOF 3074cat confdefs.h >>conftest.$ac_ext 3075cat >>conftest.$ac_ext <<_ACEOF 3076/* end confdefs.h. */ 3077$ac_declaration 3078int 3079main () 3080{ 3081exit (42); 3082 ; 3083 return 0; 3084} 3085_ACEOF 3086rm -f conftest.$ac_objext 3087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3088 (eval $ac_compile) 2>conftest.er1 3089 ac_status=$? 3090 grep -v '^ *+' conftest.er1 >conftest.err 3091 rm -f conftest.er1 3092 cat conftest.err >&5 3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3094 (exit $ac_status); } && 3095 { ac_try='test -z "$ac_c_werror_flag" 3096 || test ! -s conftest.err' 3097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3098 (eval $ac_try) 2>&5 3099 ac_status=$? 3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3101 (exit $ac_status); }; } && 3102 { ac_try='test -s conftest.$ac_objext' 3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3104 (eval $ac_try) 2>&5 3105 ac_status=$? 3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3107 (exit $ac_status); }; }; then 3108 break 3109else 3110 echo "$as_me: failed program was:" >&5 3111sed 's/^/| /' conftest.$ac_ext >&5 3112 3113fi 3114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3115done 3116rm -f conftest* 3117if test -n "$ac_declaration"; then 3118 echo '#ifdef __cplusplus' >>confdefs.h 3119 echo $ac_declaration >>confdefs.h 3120 echo '#endif' >>confdefs.h 3121fi 3122 3123else 3124 echo "$as_me: failed program was:" >&5 3125sed 's/^/| /' conftest.$ac_ext >&5 3126 3127fi 3128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3129ac_ext=c 3130ac_cpp='$CPP $CPPFLAGS' 3131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3133ac_compiler_gnu=$ac_cv_c_compiler_gnu 3134 3135depcc="$CC" am_compiler_list= 3136 3137echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3138echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3139if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3140 echo $ECHO_N "(cached) $ECHO_C" >&6 3141else 3142 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3143 # We make a subdir and do the tests there. Otherwise we can end up 3144 # making bogus files that we don't know about and never remove. For 3145 # instance it was reported that on HP-UX the gcc test will end up 3146 # making a dummy file named `D' -- because `-MD' means `put the output 3147 # in D'. 3148 mkdir conftest.dir 3149 # Copy depcomp to subdir because otherwise we won't find it if we're 3150 # using a relative directory. 3151 cp "$am_depcomp" conftest.dir 3152 cd conftest.dir 3153 # We will build objects and dependencies in a subdirectory because 3154 # it helps to detect inapplicable dependency modes. For instance 3155 # both Tru64's cc and ICC support -MD to output dependencies as a 3156 # side effect of compilation, but ICC will put the dependencies in 3157 # the current directory while Tru64 will put them in the object 3158 # directory. 3159 mkdir sub 3160 3161 am_cv_CC_dependencies_compiler_type=none 3162 if test "$am_compiler_list" = ""; then 3163 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3164 fi 3165 for depmode in $am_compiler_list; do 3166 # Setup a source with many dependencies, because some compilers 3167 # like to wrap large dependency lists on column 80 (with \), and 3168 # we should not choose a depcomp mode which is confused by this. 3169 # 3170 # We need to recreate these files for each test, as the compiler may 3171 # overwrite some of them when testing with obscure command lines. 3172 # This happens at least with the AIX C compiler. 3173 : > sub/conftest.c 3174 for i in 1 2 3 4 5 6; do 3175 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3176 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3177 # Solaris 8's {/usr,}/bin/sh. 3178 touch sub/conftst$i.h 3179 done 3180 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3181 3182 case $depmode in 3183 nosideeffect) 3184 # after this tag, mechanisms are not by side-effect, so they'll 3185 # only be used when explicitly requested 3186 if test "x$enable_dependency_tracking" = xyes; then 3187 continue 3188 else 3189 break 3190 fi 3191 ;; 3192 none) break ;; 3193 esac 3194 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3195 # mode. It turns out that the SunPro C++ compiler does not properly 3196 # handle `-M -o', and we need to detect this. 3197 if depmode=$depmode \ 3198 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3199 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3200 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3201 >/dev/null 2>conftest.err && 3202 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3203 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3204 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3205 # icc doesn't choke on unknown options, it will just issue warnings 3206 # or remarks (even with -Werror). So we grep stderr for any message 3207 # that says an option was ignored or not supported. 3208 # When given -MP, icc 7.0 and 7.1 complain thusly: 3209 # icc: Command line warning: ignoring option '-M'; no argument required 3210 # The diagnosis changed in icc 8.0: 3211 # icc: Command line remark: option '-MP' not supported 3212 if (grep 'ignoring option' conftest.err || 3213 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3214 am_cv_CC_dependencies_compiler_type=$depmode 3215 break 3216 fi 3217 fi 3218 done 3219 3220 cd .. 3221 rm -rf conftest.dir 3222else 3223 am_cv_CC_dependencies_compiler_type=none 3224fi 3225 3226fi 3227echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3228echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3229CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3230 3231 3232 3233if 3234 test "x$enable_dependency_tracking" != xno \ 3235 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3236 am__fastdepCC_TRUE= 3237 am__fastdepCC_FALSE='#' 3238else 3239 am__fastdepCC_TRUE='#' 3240 am__fastdepCC_FALSE= 3241fi 3242 3243 3244echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3245echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3246if test "${lt_cv_path_SED+set}" = set; then 3247 echo $ECHO_N "(cached) $ECHO_C" >&6 3248else 3249 # Loop through the user's path and test for sed and gsed. 3250# Then use that list of sed's as ones to test for truncation. 3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3252for as_dir in $PATH 3253do 3254 IFS=$as_save_IFS 3255 test -z "$as_dir" && as_dir=. 3256 for lt_ac_prog in sed gsed; do 3257 for ac_exec_ext in '' $ac_executable_extensions; do 3258 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3259 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3260 fi 3261 done 3262 done 3263done 3264lt_ac_max=0 3265lt_ac_count=0 3266# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3267# along with /bin/sed that truncates output. 3268for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3269 test ! -f $lt_ac_sed && continue 3270 cat /dev/null > conftest.in 3271 lt_ac_count=0 3272 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3273 # Check for GNU sed and select it if it is found. 3274 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3275 lt_cv_path_SED=$lt_ac_sed 3276 break 3277 fi 3278 while true; do 3279 cat conftest.in conftest.in >conftest.tmp 3280 mv conftest.tmp conftest.in 3281 cp conftest.in conftest.nl 3282 echo >>conftest.nl 3283 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3284 cmp -s conftest.out conftest.nl || break 3285 # 10000 chars as input seems more than enough 3286 test $lt_ac_count -gt 10 && break 3287 lt_ac_count=`expr $lt_ac_count + 1` 3288 if test $lt_ac_count -gt $lt_ac_max; then 3289 lt_ac_max=$lt_ac_count 3290 lt_cv_path_SED=$lt_ac_sed 3291 fi 3292 done 3293done 3294 3295fi 3296 3297SED=$lt_cv_path_SED 3298echo "$as_me:$LINENO: result: $SED" >&5 3299echo "${ECHO_T}$SED" >&6 3300 3301echo "$as_me:$LINENO: checking for egrep" >&5 3302echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3303if test "${ac_cv_prog_egrep+set}" = set; then 3304 echo $ECHO_N "(cached) $ECHO_C" >&6 3305else 3306 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3307 then ac_cv_prog_egrep='grep -E' 3308 else ac_cv_prog_egrep='egrep' 3309 fi 3310fi 3311echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3312echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3313 EGREP=$ac_cv_prog_egrep 3314 3315 3316 3317# Check whether --with-gnu-ld or --without-gnu-ld was given. 3318if test "${with_gnu_ld+set}" = set; then 3319 withval="$with_gnu_ld" 3320 test "$withval" = no || with_gnu_ld=yes 3321else 3322 with_gnu_ld=no 3323fi; 3324ac_prog=ld 3325if test "$GCC" = yes; then 3326 # Check if gcc -print-prog-name=ld gives a path. 3327 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3328echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3329 case $host in 3330 *-*-mingw*) 3331 # gcc leaves a trailing carriage return which upsets mingw 3332 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3333 *) 3334 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3335 esac 3336 case $ac_prog in 3337 # Accept absolute paths. 3338 [\\/]* | ?:[\\/]*) 3339 re_direlt='/[^/][^/]*/\.\./' 3340 # Canonicalize the pathname of ld 3341 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3342 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3343 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3344 done 3345 test -z "$LD" && LD="$ac_prog" 3346 ;; 3347 "") 3348 # If it fails, then pretend we aren't using GCC. 3349 ac_prog=ld 3350 ;; 3351 *) 3352 # If it is relative, then search for the first ld in PATH. 3353 with_gnu_ld=unknown 3354 ;; 3355 esac 3356elif test "$with_gnu_ld" = yes; then 3357 echo "$as_me:$LINENO: checking for GNU ld" >&5 3358echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3359else 3360 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3361echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3362fi 3363if test "${lt_cv_path_LD+set}" = set; then 3364 echo $ECHO_N "(cached) $ECHO_C" >&6 3365else 3366 if test -z "$LD"; then 3367 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3368 for ac_dir in $PATH; do 3369 IFS="$lt_save_ifs" 3370 test -z "$ac_dir" && ac_dir=. 3371 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3372 lt_cv_path_LD="$ac_dir/$ac_prog" 3373 # Check to see if the program is GNU ld. I'd rather use --version, 3374 # but apparently some variants of GNU ld only accept -v. 3375 # Break only if it was the GNU/non-GNU ld that we prefer. 3376 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3377 *GNU* | *'with BFD'*) 3378 test "$with_gnu_ld" != no && break 3379 ;; 3380 *) 3381 test "$with_gnu_ld" != yes && break 3382 ;; 3383 esac 3384 fi 3385 done 3386 IFS="$lt_save_ifs" 3387else 3388 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3389fi 3390fi 3391 3392LD="$lt_cv_path_LD" 3393if test -n "$LD"; then 3394 echo "$as_me:$LINENO: result: $LD" >&5 3395echo "${ECHO_T}$LD" >&6 3396else 3397 echo "$as_me:$LINENO: result: no" >&5 3398echo "${ECHO_T}no" >&6 3399fi 3400test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3401echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3402 { (exit 1); exit 1; }; } 3403echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3404echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3405if test "${lt_cv_prog_gnu_ld+set}" = set; then 3406 echo $ECHO_N "(cached) $ECHO_C" >&6 3407else 3408 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3409case `$LD -v 2>&1 </dev/null` in 3410*GNU* | *'with BFD'*) 3411 lt_cv_prog_gnu_ld=yes 3412 ;; 3413*) 3414 lt_cv_prog_gnu_ld=no 3415 ;; 3416esac 3417fi 3418echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3419echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3420with_gnu_ld=$lt_cv_prog_gnu_ld 3421 3422 3423echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3424echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3425if test "${lt_cv_ld_reload_flag+set}" = set; then 3426 echo $ECHO_N "(cached) $ECHO_C" >&6 3427else 3428 lt_cv_ld_reload_flag='-r' 3429fi 3430echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3431echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3432reload_flag=$lt_cv_ld_reload_flag 3433case $reload_flag in 3434"" | " "*) ;; 3435*) reload_flag=" $reload_flag" ;; 3436esac 3437reload_cmds='$LD$reload_flag -o $output$reload_objs' 3438case $host_os in 3439 darwin*) 3440 if test "$GCC" = yes; then 3441 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3442 else 3443 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3444 fi 3445 ;; 3446esac 3447 3448echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3449echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3450if test "${lt_cv_path_NM+set}" = set; then 3451 echo $ECHO_N "(cached) $ECHO_C" >&6 3452else 3453 if test -n "$NM"; then 3454 # Let the user override the test. 3455 lt_cv_path_NM="$NM" 3456else 3457 lt_nm_to_check="${ac_tool_prefix}nm" 3458 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3459 lt_nm_to_check="$lt_nm_to_check nm" 3460 fi 3461 for lt_tmp_nm in $lt_nm_to_check; do 3462 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3463 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3464 IFS="$lt_save_ifs" 3465 test -z "$ac_dir" && ac_dir=. 3466 tmp_nm="$ac_dir/$lt_tmp_nm" 3467 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3468 # Check to see if the nm accepts a BSD-compat flag. 3469 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3470 # nm: unknown option "B" ignored 3471 # Tru64's nm complains that /dev/null is an invalid object file 3472 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3473 */dev/null* | *'Invalid file or object type'*) 3474 lt_cv_path_NM="$tmp_nm -B" 3475 break 3476 ;; 3477 *) 3478 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3479 */dev/null*) 3480 lt_cv_path_NM="$tmp_nm -p" 3481 break 3482 ;; 3483 *) 3484 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3485 continue # so that we can try to find one that supports BSD flags 3486 ;; 3487 esac 3488 ;; 3489 esac 3490 fi 3491 done 3492 IFS="$lt_save_ifs" 3493 done 3494 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3495fi 3496fi 3497echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3498echo "${ECHO_T}$lt_cv_path_NM" >&6 3499NM="$lt_cv_path_NM" 3500 3501echo "$as_me:$LINENO: checking whether ln -s works" >&5 3502echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3503LN_S=$as_ln_s 3504if test "$LN_S" = "ln -s"; then 3505 echo "$as_me:$LINENO: result: yes" >&5 3506echo "${ECHO_T}yes" >&6 3507else 3508 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3509echo "${ECHO_T}no, using $LN_S" >&6 3510fi 3511 3512echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3513echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3514if test "${lt_cv_deplibs_check_method+set}" = set; then 3515 echo $ECHO_N "(cached) $ECHO_C" >&6 3516else 3517 lt_cv_file_magic_cmd='$MAGIC_CMD' 3518lt_cv_file_magic_test_file= 3519lt_cv_deplibs_check_method='unknown' 3520# Need to set the preceding variable on all platforms that support 3521# interlibrary dependencies. 3522# 'none' -- dependencies not supported. 3523# `unknown' -- same as none, but documents that we really don't know. 3524# 'pass_all' -- all dependencies passed with no checks. 3525# 'test_compile' -- check by making test program. 3526# 'file_magic [[regex]]' -- check by looking for files in library path 3527# which responds to the $file_magic_cmd with a given extended regex. 3528# If you have `file' or equivalent on your system and you're not sure 3529# whether `pass_all' will *always* work, you probably want this one. 3530 3531case $host_os in 3532aix4* | aix5*) 3533 lt_cv_deplibs_check_method=pass_all 3534 ;; 3535 3536beos*) 3537 lt_cv_deplibs_check_method=pass_all 3538 ;; 3539 3540bsdi[45]*) 3541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3542 lt_cv_file_magic_cmd='/usr/bin/file -L' 3543 lt_cv_file_magic_test_file=/shlib/libc.so 3544 ;; 3545 3546cygwin*) 3547 # func_win32_libid is a shell function defined in ltmain.sh 3548 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3549 lt_cv_file_magic_cmd='func_win32_libid' 3550 ;; 3551 3552mingw* | pw32*) 3553 # Base MSYS/MinGW do not provide the 'file' command needed by 3554 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3555 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3556 lt_cv_file_magic_cmd='$OBJDUMP -f' 3557 ;; 3558 3559darwin* | rhapsody*) 3560 lt_cv_deplibs_check_method=pass_all 3561 ;; 3562 3563freebsd* | kfreebsd*-gnu | dragonfly*) 3564 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3565 case $host_cpu in 3566 i*86 ) 3567 # Not sure whether the presence of OpenBSD here was a mistake. 3568 # Let's accept both of them until this is cleared up. 3569 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 3570 lt_cv_file_magic_cmd=/usr/bin/file 3571 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3572 ;; 3573 esac 3574 else 3575 lt_cv_deplibs_check_method=pass_all 3576 fi 3577 ;; 3578 3579gnu*) 3580 lt_cv_deplibs_check_method=pass_all 3581 ;; 3582 3583hpux10.20* | hpux11*) 3584 lt_cv_file_magic_cmd=/usr/bin/file 3585 case $host_cpu in 3586 ia64*) 3587 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3588 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3589 ;; 3590 hppa*64*) 3591 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]' 3592 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3593 ;; 3594 *) 3595 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3596 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3597 ;; 3598 esac 3599 ;; 3600 3601interix3*) 3602 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 3603 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 3604 ;; 3605 3606irix5* | irix6* | nonstopux*) 3607 case $LD in 3608 *-32|*"-32 ") libmagic=32-bit;; 3609 *-n32|*"-n32 ") libmagic=N32;; 3610 *-64|*"-64 ") libmagic=64-bit;; 3611 *) libmagic=never-match;; 3612 esac 3613 lt_cv_deplibs_check_method=pass_all 3614 ;; 3615 3616# This must be Linux ELF. 3617linux*) 3618 lt_cv_deplibs_check_method=pass_all 3619 ;; 3620 3621netbsd*) 3622 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3624 else 3625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3626 fi 3627 ;; 3628 3629newos6*) 3630 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3631 lt_cv_file_magic_cmd=/usr/bin/file 3632 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3633 ;; 3634 3635nto-qnx*) 3636 lt_cv_deplibs_check_method=unknown 3637 ;; 3638 3639openbsd*) 3640 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 3642 else 3643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3644 fi 3645 ;; 3646 3647osf3* | osf4* | osf5*) 3648 lt_cv_deplibs_check_method=pass_all 3649 ;; 3650 3651solaris*) 3652 lt_cv_deplibs_check_method=pass_all 3653 ;; 3654 3655sysv4 | sysv4.3*) 3656 case $host_vendor in 3657 motorola) 3658 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]' 3659 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3660 ;; 3661 ncr) 3662 lt_cv_deplibs_check_method=pass_all 3663 ;; 3664 sequent) 3665 lt_cv_file_magic_cmd='/bin/file' 3666 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3667 ;; 3668 sni) 3669 lt_cv_file_magic_cmd='/bin/file' 3670 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3671 lt_cv_file_magic_test_file=/lib/libc.so 3672 ;; 3673 siemens) 3674 lt_cv_deplibs_check_method=pass_all 3675 ;; 3676 pc) 3677 lt_cv_deplibs_check_method=pass_all 3678 ;; 3679 esac 3680 ;; 3681 3682sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3683 lt_cv_deplibs_check_method=pass_all 3684 ;; 3685esac 3686 3687fi 3688echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3689echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3690file_magic_cmd=$lt_cv_file_magic_cmd 3691deplibs_check_method=$lt_cv_deplibs_check_method 3692test -z "$deplibs_check_method" && deplibs_check_method=unknown 3693 3694 3695 3696 3697# If no C compiler was specified, use CC. 3698LTCC=${LTCC-"$CC"} 3699 3700# If no C compiler flags were specified, use CFLAGS. 3701LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 3702 3703# Allow CC to be a program name with arguments. 3704compiler=$CC 3705 3706 3707# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3708if test "${enable_libtool_lock+set}" = set; then 3709 enableval="$enable_libtool_lock" 3710 3711fi; 3712test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3713 3714# Some flags need to be propagated to the compiler or linker for good 3715# libtool support. 3716case $host in 3717ia64-*-hpux*) 3718 # Find out which ABI we are using. 3719 echo 'int i;' > conftest.$ac_ext 3720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3721 (eval $ac_compile) 2>&5 3722 ac_status=$? 3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3724 (exit $ac_status); }; then 3725 case `/usr/bin/file conftest.$ac_objext` in 3726 *ELF-32*) 3727 HPUX_IA64_MODE="32" 3728 ;; 3729 *ELF-64*) 3730 HPUX_IA64_MODE="64" 3731 ;; 3732 esac 3733 fi 3734 rm -rf conftest* 3735 ;; 3736*-*-irix6*) 3737 # Find out which ABI we are using. 3738 echo '#line 3738 "configure"' > conftest.$ac_ext 3739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3740 (eval $ac_compile) 2>&5 3741 ac_status=$? 3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3743 (exit $ac_status); }; then 3744 if test "$lt_cv_prog_gnu_ld" = yes; then 3745 case `/usr/bin/file conftest.$ac_objext` in 3746 *32-bit*) 3747 LD="${LD-ld} -melf32bsmip" 3748 ;; 3749 *N32*) 3750 LD="${LD-ld} -melf32bmipn32" 3751 ;; 3752 *64-bit*) 3753 LD="${LD-ld} -melf64bmip" 3754 ;; 3755 esac 3756 else 3757 case `/usr/bin/file conftest.$ac_objext` in 3758 *32-bit*) 3759 LD="${LD-ld} -32" 3760 ;; 3761 *N32*) 3762 LD="${LD-ld} -n32" 3763 ;; 3764 *64-bit*) 3765 LD="${LD-ld} -64" 3766 ;; 3767 esac 3768 fi 3769 fi 3770 rm -rf conftest* 3771 ;; 3772 3773x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3774 # Find out which ABI we are using. 3775 echo 'int i;' > conftest.$ac_ext 3776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3777 (eval $ac_compile) 2>&5 3778 ac_status=$? 3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3780 (exit $ac_status); }; then 3781 case `/usr/bin/file conftest.o` in 3782 *32-bit*) 3783 case $host in 3784 x86_64-*linux*) 3785 LD="${LD-ld} -m elf_i386" 3786 ;; 3787 ppc64-*linux*|powerpc64-*linux*) 3788 LD="${LD-ld} -m elf32ppclinux" 3789 ;; 3790 s390x-*linux*) 3791 LD="${LD-ld} -m elf_s390" 3792 ;; 3793 sparc64-*linux*) 3794 LD="${LD-ld} -m elf32_sparc" 3795 ;; 3796 esac 3797 ;; 3798 *64-bit*) 3799 case $host in 3800 x86_64-*linux*) 3801 LD="${LD-ld} -m elf_x86_64" 3802 ;; 3803 ppc*-*linux*|powerpc*-*linux*) 3804 LD="${LD-ld} -m elf64ppc" 3805 ;; 3806 s390*-*linux*) 3807 LD="${LD-ld} -m elf64_s390" 3808 ;; 3809 sparc*-*linux*) 3810 LD="${LD-ld} -m elf64_sparc" 3811 ;; 3812 esac 3813 ;; 3814 esac 3815 fi 3816 rm -rf conftest* 3817 ;; 3818 3819*-*-sco3.2v5*) 3820 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3821 SAVE_CFLAGS="$CFLAGS" 3822 CFLAGS="$CFLAGS -belf" 3823 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3824echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3825if test "${lt_cv_cc_needs_belf+set}" = set; then 3826 echo $ECHO_N "(cached) $ECHO_C" >&6 3827else 3828 ac_ext=c 3829ac_cpp='$CPP $CPPFLAGS' 3830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3832ac_compiler_gnu=$ac_cv_c_compiler_gnu 3833 3834 cat >conftest.$ac_ext <<_ACEOF 3835/* confdefs.h. */ 3836_ACEOF 3837cat confdefs.h >>conftest.$ac_ext 3838cat >>conftest.$ac_ext <<_ACEOF 3839/* end confdefs.h. */ 3840 3841int 3842main () 3843{ 3844 3845 ; 3846 return 0; 3847} 3848_ACEOF 3849rm -f conftest.$ac_objext conftest$ac_exeext 3850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3851 (eval $ac_link) 2>conftest.er1 3852 ac_status=$? 3853 grep -v '^ *+' conftest.er1 >conftest.err 3854 rm -f conftest.er1 3855 cat conftest.err >&5 3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3857 (exit $ac_status); } && 3858 { ac_try='test -z "$ac_c_werror_flag" 3859 || test ! -s conftest.err' 3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3861 (eval $ac_try) 2>&5 3862 ac_status=$? 3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3864 (exit $ac_status); }; } && 3865 { ac_try='test -s conftest$ac_exeext' 3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3867 (eval $ac_try) 2>&5 3868 ac_status=$? 3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3870 (exit $ac_status); }; }; then 3871 lt_cv_cc_needs_belf=yes 3872else 3873 echo "$as_me: failed program was:" >&5 3874sed 's/^/| /' conftest.$ac_ext >&5 3875 3876lt_cv_cc_needs_belf=no 3877fi 3878rm -f conftest.err conftest.$ac_objext \ 3879 conftest$ac_exeext conftest.$ac_ext 3880 ac_ext=c 3881ac_cpp='$CPP $CPPFLAGS' 3882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3884ac_compiler_gnu=$ac_cv_c_compiler_gnu 3885 3886fi 3887echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3888echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3889 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3890 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3891 CFLAGS="$SAVE_CFLAGS" 3892 fi 3893 ;; 3894sparc*-*solaris*) 3895 # Find out which ABI we are using. 3896 echo 'int i;' > conftest.$ac_ext 3897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3898 (eval $ac_compile) 2>&5 3899 ac_status=$? 3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3901 (exit $ac_status); }; then 3902 case `/usr/bin/file conftest.o` in 3903 *64-bit*) 3904 case $lt_cv_prog_gnu_ld in 3905 yes*) LD="${LD-ld} -m elf64_sparc" ;; 3906 *) LD="${LD-ld} -64" ;; 3907 esac 3908 ;; 3909 esac 3910 fi 3911 rm -rf conftest* 3912 ;; 3913 3914 3915esac 3916 3917need_locks="$enable_libtool_lock" 3918 3919 3920ac_ext=c 3921ac_cpp='$CPP $CPPFLAGS' 3922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3924ac_compiler_gnu=$ac_cv_c_compiler_gnu 3925echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3926echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3927# On Suns, sometimes $CPP names a directory. 3928if test -n "$CPP" && test -d "$CPP"; then 3929 CPP= 3930fi 3931if test -z "$CPP"; then 3932 if test "${ac_cv_prog_CPP+set}" = set; then 3933 echo $ECHO_N "(cached) $ECHO_C" >&6 3934else 3935 # Double quotes because CPP needs to be expanded 3936 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3937 do 3938 ac_preproc_ok=false 3939for ac_c_preproc_warn_flag in '' yes 3940do 3941 # Use a header file that comes with gcc, so configuring glibc 3942 # with a fresh cross-compiler works. 3943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3944 # <limits.h> exists even on freestanding compilers. 3945 # On the NeXT, cc -E runs the code through the compiler's parser, 3946 # not just through cpp. "Syntax error" is here to catch this case. 3947 cat >conftest.$ac_ext <<_ACEOF 3948/* confdefs.h. */ 3949_ACEOF 3950cat confdefs.h >>conftest.$ac_ext 3951cat >>conftest.$ac_ext <<_ACEOF 3952/* end confdefs.h. */ 3953#ifdef __STDC__ 3954# include <limits.h> 3955#else 3956# include <assert.h> 3957#endif 3958 Syntax error 3959_ACEOF 3960if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3962 ac_status=$? 3963 grep -v '^ *+' conftest.er1 >conftest.err 3964 rm -f conftest.er1 3965 cat conftest.err >&5 3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3967 (exit $ac_status); } >/dev/null; then 3968 if test -s conftest.err; then 3969 ac_cpp_err=$ac_c_preproc_warn_flag 3970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3971 else 3972 ac_cpp_err= 3973 fi 3974else 3975 ac_cpp_err=yes 3976fi 3977if test -z "$ac_cpp_err"; then 3978 : 3979else 3980 echo "$as_me: failed program was:" >&5 3981sed 's/^/| /' conftest.$ac_ext >&5 3982 3983 # Broken: fails on valid input. 3984continue 3985fi 3986rm -f conftest.err conftest.$ac_ext 3987 3988 # OK, works on sane cases. Now check whether non-existent headers 3989 # can be detected and how. 3990 cat >conftest.$ac_ext <<_ACEOF 3991/* confdefs.h. */ 3992_ACEOF 3993cat confdefs.h >>conftest.$ac_ext 3994cat >>conftest.$ac_ext <<_ACEOF 3995/* end confdefs.h. */ 3996#include <ac_nonexistent.h> 3997_ACEOF 3998if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4000 ac_status=$? 4001 grep -v '^ *+' conftest.er1 >conftest.err 4002 rm -f conftest.er1 4003 cat conftest.err >&5 4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4005 (exit $ac_status); } >/dev/null; then 4006 if test -s conftest.err; then 4007 ac_cpp_err=$ac_c_preproc_warn_flag 4008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4009 else 4010 ac_cpp_err= 4011 fi 4012else 4013 ac_cpp_err=yes 4014fi 4015if test -z "$ac_cpp_err"; then 4016 # Broken: success on invalid input. 4017continue 4018else 4019 echo "$as_me: failed program was:" >&5 4020sed 's/^/| /' conftest.$ac_ext >&5 4021 4022 # Passes both tests. 4023ac_preproc_ok=: 4024break 4025fi 4026rm -f conftest.err conftest.$ac_ext 4027 4028done 4029# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4030rm -f conftest.err conftest.$ac_ext 4031if $ac_preproc_ok; then 4032 break 4033fi 4034 4035 done 4036 ac_cv_prog_CPP=$CPP 4037 4038fi 4039 CPP=$ac_cv_prog_CPP 4040else 4041 ac_cv_prog_CPP=$CPP 4042fi 4043echo "$as_me:$LINENO: result: $CPP" >&5 4044echo "${ECHO_T}$CPP" >&6 4045ac_preproc_ok=false 4046for ac_c_preproc_warn_flag in '' yes 4047do 4048 # Use a header file that comes with gcc, so configuring glibc 4049 # with a fresh cross-compiler works. 4050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4051 # <limits.h> exists even on freestanding compilers. 4052 # On the NeXT, cc -E runs the code through the compiler's parser, 4053 # not just through cpp. "Syntax error" is here to catch this case. 4054 cat >conftest.$ac_ext <<_ACEOF 4055/* confdefs.h. */ 4056_ACEOF 4057cat confdefs.h >>conftest.$ac_ext 4058cat >>conftest.$ac_ext <<_ACEOF 4059/* end confdefs.h. */ 4060#ifdef __STDC__ 4061# include <limits.h> 4062#else 4063# include <assert.h> 4064#endif 4065 Syntax error 4066_ACEOF 4067if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4069 ac_status=$? 4070 grep -v '^ *+' conftest.er1 >conftest.err 4071 rm -f conftest.er1 4072 cat conftest.err >&5 4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4074 (exit $ac_status); } >/dev/null; then 4075 if test -s conftest.err; then 4076 ac_cpp_err=$ac_c_preproc_warn_flag 4077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4078 else 4079 ac_cpp_err= 4080 fi 4081else 4082 ac_cpp_err=yes 4083fi 4084if test -z "$ac_cpp_err"; then 4085 : 4086else 4087 echo "$as_me: failed program was:" >&5 4088sed 's/^/| /' conftest.$ac_ext >&5 4089 4090 # Broken: fails on valid input. 4091continue 4092fi 4093rm -f conftest.err conftest.$ac_ext 4094 4095 # OK, works on sane cases. Now check whether non-existent headers 4096 # can be detected and how. 4097 cat >conftest.$ac_ext <<_ACEOF 4098/* confdefs.h. */ 4099_ACEOF 4100cat confdefs.h >>conftest.$ac_ext 4101cat >>conftest.$ac_ext <<_ACEOF 4102/* end confdefs.h. */ 4103#include <ac_nonexistent.h> 4104_ACEOF 4105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4107 ac_status=$? 4108 grep -v '^ *+' conftest.er1 >conftest.err 4109 rm -f conftest.er1 4110 cat conftest.err >&5 4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4112 (exit $ac_status); } >/dev/null; then 4113 if test -s conftest.err; then 4114 ac_cpp_err=$ac_c_preproc_warn_flag 4115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4116 else 4117 ac_cpp_err= 4118 fi 4119else 4120 ac_cpp_err=yes 4121fi 4122if test -z "$ac_cpp_err"; then 4123 # Broken: success on invalid input. 4124continue 4125else 4126 echo "$as_me: failed program was:" >&5 4127sed 's/^/| /' conftest.$ac_ext >&5 4128 4129 # Passes both tests. 4130ac_preproc_ok=: 4131break 4132fi 4133rm -f conftest.err conftest.$ac_ext 4134 4135done 4136# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4137rm -f conftest.err conftest.$ac_ext 4138if $ac_preproc_ok; then 4139 : 4140else 4141 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4142See \`config.log' for more details." >&5 4143echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4144See \`config.log' for more details." >&2;} 4145 { (exit 1); exit 1; }; } 4146fi 4147 4148ac_ext=c 4149ac_cpp='$CPP $CPPFLAGS' 4150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4152ac_compiler_gnu=$ac_cv_c_compiler_gnu 4153 4154 4155echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4156echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4157if test "${ac_cv_header_stdc+set}" = set; then 4158 echo $ECHO_N "(cached) $ECHO_C" >&6 4159else 4160 cat >conftest.$ac_ext <<_ACEOF 4161/* confdefs.h. */ 4162_ACEOF 4163cat confdefs.h >>conftest.$ac_ext 4164cat >>conftest.$ac_ext <<_ACEOF 4165/* end confdefs.h. */ 4166#include <stdlib.h> 4167#include <stdarg.h> 4168#include <string.h> 4169#include <float.h> 4170 4171int 4172main () 4173{ 4174 4175 ; 4176 return 0; 4177} 4178_ACEOF 4179rm -f conftest.$ac_objext 4180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4181 (eval $ac_compile) 2>conftest.er1 4182 ac_status=$? 4183 grep -v '^ *+' conftest.er1 >conftest.err 4184 rm -f conftest.er1 4185 cat conftest.err >&5 4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4187 (exit $ac_status); } && 4188 { ac_try='test -z "$ac_c_werror_flag" 4189 || test ! -s conftest.err' 4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4191 (eval $ac_try) 2>&5 4192 ac_status=$? 4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4194 (exit $ac_status); }; } && 4195 { ac_try='test -s conftest.$ac_objext' 4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4197 (eval $ac_try) 2>&5 4198 ac_status=$? 4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4200 (exit $ac_status); }; }; then 4201 ac_cv_header_stdc=yes 4202else 4203 echo "$as_me: failed program was:" >&5 4204sed 's/^/| /' conftest.$ac_ext >&5 4205 4206ac_cv_header_stdc=no 4207fi 4208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4209 4210if test $ac_cv_header_stdc = yes; then 4211 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4212 cat >conftest.$ac_ext <<_ACEOF 4213/* confdefs.h. */ 4214_ACEOF 4215cat confdefs.h >>conftest.$ac_ext 4216cat >>conftest.$ac_ext <<_ACEOF 4217/* end confdefs.h. */ 4218#include <string.h> 4219 4220_ACEOF 4221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4222 $EGREP "memchr" >/dev/null 2>&1; then 4223 : 4224else 4225 ac_cv_header_stdc=no 4226fi 4227rm -f conftest* 4228 4229fi 4230 4231if test $ac_cv_header_stdc = yes; then 4232 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4233 cat >conftest.$ac_ext <<_ACEOF 4234/* confdefs.h. */ 4235_ACEOF 4236cat confdefs.h >>conftest.$ac_ext 4237cat >>conftest.$ac_ext <<_ACEOF 4238/* end confdefs.h. */ 4239#include <stdlib.h> 4240 4241_ACEOF 4242if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4243 $EGREP "free" >/dev/null 2>&1; then 4244 : 4245else 4246 ac_cv_header_stdc=no 4247fi 4248rm -f conftest* 4249 4250fi 4251 4252if test $ac_cv_header_stdc = yes; then 4253 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4254 if test "$cross_compiling" = yes; then 4255 : 4256else 4257 cat >conftest.$ac_ext <<_ACEOF 4258/* confdefs.h. */ 4259_ACEOF 4260cat confdefs.h >>conftest.$ac_ext 4261cat >>conftest.$ac_ext <<_ACEOF 4262/* end confdefs.h. */ 4263#include <ctype.h> 4264#if ((' ' & 0x0FF) == 0x020) 4265# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4266# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4267#else 4268# define ISLOWER(c) \ 4269 (('a' <= (c) && (c) <= 'i') \ 4270 || ('j' <= (c) && (c) <= 'r') \ 4271 || ('s' <= (c) && (c) <= 'z')) 4272# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4273#endif 4274 4275#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4276int 4277main () 4278{ 4279 int i; 4280 for (i = 0; i < 256; i++) 4281 if (XOR (islower (i), ISLOWER (i)) 4282 || toupper (i) != TOUPPER (i)) 4283 exit(2); 4284 exit (0); 4285} 4286_ACEOF 4287rm -f conftest$ac_exeext 4288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4289 (eval $ac_link) 2>&5 4290 ac_status=$? 4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4294 (eval $ac_try) 2>&5 4295 ac_status=$? 4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4297 (exit $ac_status); }; }; then 4298 : 4299else 4300 echo "$as_me: program exited with status $ac_status" >&5 4301echo "$as_me: failed program was:" >&5 4302sed 's/^/| /' conftest.$ac_ext >&5 4303 4304( exit $ac_status ) 4305ac_cv_header_stdc=no 4306fi 4307rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4308fi 4309fi 4310fi 4311echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4312echo "${ECHO_T}$ac_cv_header_stdc" >&6 4313if test $ac_cv_header_stdc = yes; then 4314 4315cat >>confdefs.h <<\_ACEOF 4316#define STDC_HEADERS 1 4317_ACEOF 4318 4319fi 4320 4321# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4332 inttypes.h stdint.h unistd.h 4333do 4334as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4335echo "$as_me:$LINENO: checking for $ac_header" >&5 4336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4337if eval "test \"\${$as_ac_Header+set}\" = set"; then 4338 echo $ECHO_N "(cached) $ECHO_C" >&6 4339else 4340 cat >conftest.$ac_ext <<_ACEOF 4341/* confdefs.h. */ 4342_ACEOF 4343cat confdefs.h >>conftest.$ac_ext 4344cat >>conftest.$ac_ext <<_ACEOF 4345/* end confdefs.h. */ 4346$ac_includes_default 4347 4348#include <$ac_header> 4349_ACEOF 4350rm -f conftest.$ac_objext 4351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4352 (eval $ac_compile) 2>conftest.er1 4353 ac_status=$? 4354 grep -v '^ *+' conftest.er1 >conftest.err 4355 rm -f conftest.er1 4356 cat conftest.err >&5 4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4358 (exit $ac_status); } && 4359 { ac_try='test -z "$ac_c_werror_flag" 4360 || test ! -s conftest.err' 4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4362 (eval $ac_try) 2>&5 4363 ac_status=$? 4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4365 (exit $ac_status); }; } && 4366 { ac_try='test -s conftest.$ac_objext' 4367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4368 (eval $ac_try) 2>&5 4369 ac_status=$? 4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4371 (exit $ac_status); }; }; then 4372 eval "$as_ac_Header=yes" 4373else 4374 echo "$as_me: failed program was:" >&5 4375sed 's/^/| /' conftest.$ac_ext >&5 4376 4377eval "$as_ac_Header=no" 4378fi 4379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4380fi 4381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4382echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4383if test `eval echo '${'$as_ac_Header'}'` = yes; then 4384 cat >>confdefs.h <<_ACEOF 4385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4386_ACEOF 4387 4388fi 4389 4390done 4391 4392 4393 4394for ac_header in dlfcn.h 4395do 4396as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4397if eval "test \"\${$as_ac_Header+set}\" = set"; then 4398 echo "$as_me:$LINENO: checking for $ac_header" >&5 4399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4400if eval "test \"\${$as_ac_Header+set}\" = set"; then 4401 echo $ECHO_N "(cached) $ECHO_C" >&6 4402fi 4403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4404echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4405else 4406 # Is the header compilable? 4407echo "$as_me:$LINENO: checking $ac_header usability" >&5 4408echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4409cat >conftest.$ac_ext <<_ACEOF 4410/* confdefs.h. */ 4411_ACEOF 4412cat confdefs.h >>conftest.$ac_ext 4413cat >>conftest.$ac_ext <<_ACEOF 4414/* end confdefs.h. */ 4415$ac_includes_default 4416#include <$ac_header> 4417_ACEOF 4418rm -f conftest.$ac_objext 4419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4420 (eval $ac_compile) 2>conftest.er1 4421 ac_status=$? 4422 grep -v '^ *+' conftest.er1 >conftest.err 4423 rm -f conftest.er1 4424 cat conftest.err >&5 4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4426 (exit $ac_status); } && 4427 { ac_try='test -z "$ac_c_werror_flag" 4428 || test ! -s conftest.err' 4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4430 (eval $ac_try) 2>&5 4431 ac_status=$? 4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4433 (exit $ac_status); }; } && 4434 { ac_try='test -s conftest.$ac_objext' 4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4436 (eval $ac_try) 2>&5 4437 ac_status=$? 4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4439 (exit $ac_status); }; }; then 4440 ac_header_compiler=yes 4441else 4442 echo "$as_me: failed program was:" >&5 4443sed 's/^/| /' conftest.$ac_ext >&5 4444 4445ac_header_compiler=no 4446fi 4447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4448echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4449echo "${ECHO_T}$ac_header_compiler" >&6 4450 4451# Is the header present? 4452echo "$as_me:$LINENO: checking $ac_header presence" >&5 4453echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4454cat >conftest.$ac_ext <<_ACEOF 4455/* confdefs.h. */ 4456_ACEOF 4457cat confdefs.h >>conftest.$ac_ext 4458cat >>conftest.$ac_ext <<_ACEOF 4459/* end confdefs.h. */ 4460#include <$ac_header> 4461_ACEOF 4462if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4464 ac_status=$? 4465 grep -v '^ *+' conftest.er1 >conftest.err 4466 rm -f conftest.er1 4467 cat conftest.err >&5 4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4469 (exit $ac_status); } >/dev/null; then 4470 if test -s conftest.err; then 4471 ac_cpp_err=$ac_c_preproc_warn_flag 4472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4473 else 4474 ac_cpp_err= 4475 fi 4476else 4477 ac_cpp_err=yes 4478fi 4479if test -z "$ac_cpp_err"; then 4480 ac_header_preproc=yes 4481else 4482 echo "$as_me: failed program was:" >&5 4483sed 's/^/| /' conftest.$ac_ext >&5 4484 4485 ac_header_preproc=no 4486fi 4487rm -f conftest.err conftest.$ac_ext 4488echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4489echo "${ECHO_T}$ac_header_preproc" >&6 4490 4491# So? What about this header? 4492case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4493 yes:no: ) 4494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4495echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4497echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4498 ac_header_preproc=yes 4499 ;; 4500 no:yes:* ) 4501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4502echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4504echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4506echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4508echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4510echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4512echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4513 ( 4514 cat <<\_ASBOX 4515## ---------------------------------------------------------------------- ## 4516## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 4517## ---------------------------------------------------------------------- ## 4518_ASBOX 4519 ) | 4520 sed "s/^/$as_me: WARNING: /" >&2 4521 ;; 4522esac 4523echo "$as_me:$LINENO: checking for $ac_header" >&5 4524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4525if eval "test \"\${$as_ac_Header+set}\" = set"; then 4526 echo $ECHO_N "(cached) $ECHO_C" >&6 4527else 4528 eval "$as_ac_Header=\$ac_header_preproc" 4529fi 4530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4531echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4532 4533fi 4534if test `eval echo '${'$as_ac_Header'}'` = yes; then 4535 cat >>confdefs.h <<_ACEOF 4536#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4537_ACEOF 4538 4539fi 4540 4541done 4542 4543ac_ext=cc 4544ac_cpp='$CXXCPP $CPPFLAGS' 4545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4548if test -n "$ac_tool_prefix"; then 4549 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4550 do 4551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4552set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4553echo "$as_me:$LINENO: checking for $ac_word" >&5 4554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4555if test "${ac_cv_prog_CXX+set}" = set; then 4556 echo $ECHO_N "(cached) $ECHO_C" >&6 4557else 4558 if test -n "$CXX"; then 4559 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4560else 4561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4562for as_dir in $PATH 4563do 4564 IFS=$as_save_IFS 4565 test -z "$as_dir" && as_dir=. 4566 for ac_exec_ext in '' $ac_executable_extensions; do 4567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4568 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4570 break 2 4571 fi 4572done 4573done 4574 4575fi 4576fi 4577CXX=$ac_cv_prog_CXX 4578if test -n "$CXX"; then 4579 echo "$as_me:$LINENO: result: $CXX" >&5 4580echo "${ECHO_T}$CXX" >&6 4581else 4582 echo "$as_me:$LINENO: result: no" >&5 4583echo "${ECHO_T}no" >&6 4584fi 4585 4586 test -n "$CXX" && break 4587 done 4588fi 4589if test -z "$CXX"; then 4590 ac_ct_CXX=$CXX 4591 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4592do 4593 # Extract the first word of "$ac_prog", so it can be a program name with args. 4594set dummy $ac_prog; ac_word=$2 4595echo "$as_me:$LINENO: checking for $ac_word" >&5 4596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4597if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4598 echo $ECHO_N "(cached) $ECHO_C" >&6 4599else 4600 if test -n "$ac_ct_CXX"; then 4601 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4602else 4603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4604for as_dir in $PATH 4605do 4606 IFS=$as_save_IFS 4607 test -z "$as_dir" && as_dir=. 4608 for ac_exec_ext in '' $ac_executable_extensions; do 4609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4610 ac_cv_prog_ac_ct_CXX="$ac_prog" 4611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4612 break 2 4613 fi 4614done 4615done 4616 4617fi 4618fi 4619ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4620if test -n "$ac_ct_CXX"; then 4621 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4622echo "${ECHO_T}$ac_ct_CXX" >&6 4623else 4624 echo "$as_me:$LINENO: result: no" >&5 4625echo "${ECHO_T}no" >&6 4626fi 4627 4628 test -n "$ac_ct_CXX" && break 4629done 4630test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4631 4632 CXX=$ac_ct_CXX 4633fi 4634 4635 4636# Provide some information about the compiler. 4637echo "$as_me:$LINENO:" \ 4638 "checking for C++ compiler version" >&5 4639ac_compiler=`set X $ac_compile; echo $2` 4640{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4641 (eval $ac_compiler --version </dev/null >&5) 2>&5 4642 ac_status=$? 4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4644 (exit $ac_status); } 4645{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4646 (eval $ac_compiler -v </dev/null >&5) 2>&5 4647 ac_status=$? 4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4649 (exit $ac_status); } 4650{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4651 (eval $ac_compiler -V </dev/null >&5) 2>&5 4652 ac_status=$? 4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4654 (exit $ac_status); } 4655 4656echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4657echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4658if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4659 echo $ECHO_N "(cached) $ECHO_C" >&6 4660else 4661 cat >conftest.$ac_ext <<_ACEOF 4662/* confdefs.h. */ 4663_ACEOF 4664cat confdefs.h >>conftest.$ac_ext 4665cat >>conftest.$ac_ext <<_ACEOF 4666/* end confdefs.h. */ 4667 4668int 4669main () 4670{ 4671#ifndef __GNUC__ 4672 choke me 4673#endif 4674 4675 ; 4676 return 0; 4677} 4678_ACEOF 4679rm -f conftest.$ac_objext 4680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4681 (eval $ac_compile) 2>conftest.er1 4682 ac_status=$? 4683 grep -v '^ *+' conftest.er1 >conftest.err 4684 rm -f conftest.er1 4685 cat conftest.err >&5 4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4687 (exit $ac_status); } && 4688 { ac_try='test -z "$ac_cxx_werror_flag" 4689 || test ! -s conftest.err' 4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4691 (eval $ac_try) 2>&5 4692 ac_status=$? 4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4694 (exit $ac_status); }; } && 4695 { ac_try='test -s conftest.$ac_objext' 4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4697 (eval $ac_try) 2>&5 4698 ac_status=$? 4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4700 (exit $ac_status); }; }; then 4701 ac_compiler_gnu=yes 4702else 4703 echo "$as_me: failed program was:" >&5 4704sed 's/^/| /' conftest.$ac_ext >&5 4705 4706ac_compiler_gnu=no 4707fi 4708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4709ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4710 4711fi 4712echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4713echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4714GXX=`test $ac_compiler_gnu = yes && echo yes` 4715ac_test_CXXFLAGS=${CXXFLAGS+set} 4716ac_save_CXXFLAGS=$CXXFLAGS 4717CXXFLAGS="-g" 4718echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4719echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4720if test "${ac_cv_prog_cxx_g+set}" = set; then 4721 echo $ECHO_N "(cached) $ECHO_C" >&6 4722else 4723 cat >conftest.$ac_ext <<_ACEOF 4724/* confdefs.h. */ 4725_ACEOF 4726cat confdefs.h >>conftest.$ac_ext 4727cat >>conftest.$ac_ext <<_ACEOF 4728/* end confdefs.h. */ 4729 4730int 4731main () 4732{ 4733 4734 ; 4735 return 0; 4736} 4737_ACEOF 4738rm -f conftest.$ac_objext 4739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4740 (eval $ac_compile) 2>conftest.er1 4741 ac_status=$? 4742 grep -v '^ *+' conftest.er1 >conftest.err 4743 rm -f conftest.er1 4744 cat conftest.err >&5 4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4746 (exit $ac_status); } && 4747 { ac_try='test -z "$ac_cxx_werror_flag" 4748 || test ! -s conftest.err' 4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4750 (eval $ac_try) 2>&5 4751 ac_status=$? 4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4753 (exit $ac_status); }; } && 4754 { ac_try='test -s conftest.$ac_objext' 4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4756 (eval $ac_try) 2>&5 4757 ac_status=$? 4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4759 (exit $ac_status); }; }; then 4760 ac_cv_prog_cxx_g=yes 4761else 4762 echo "$as_me: failed program was:" >&5 4763sed 's/^/| /' conftest.$ac_ext >&5 4764 4765ac_cv_prog_cxx_g=no 4766fi 4767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4768fi 4769echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4770echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4771if test "$ac_test_CXXFLAGS" = set; then 4772 CXXFLAGS=$ac_save_CXXFLAGS 4773elif test $ac_cv_prog_cxx_g = yes; then 4774 if test "$GXX" = yes; then 4775 CXXFLAGS="-g -O2" 4776 else 4777 CXXFLAGS="-g" 4778 fi 4779else 4780 if test "$GXX" = yes; then 4781 CXXFLAGS="-O2" 4782 else 4783 CXXFLAGS= 4784 fi 4785fi 4786for ac_declaration in \ 4787 '' \ 4788 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4789 'extern "C" void std::exit (int); using std::exit;' \ 4790 'extern "C" void exit (int) throw ();' \ 4791 'extern "C" void exit (int);' \ 4792 'void exit (int);' 4793do 4794 cat >conftest.$ac_ext <<_ACEOF 4795/* confdefs.h. */ 4796_ACEOF 4797cat confdefs.h >>conftest.$ac_ext 4798cat >>conftest.$ac_ext <<_ACEOF 4799/* end confdefs.h. */ 4800$ac_declaration 4801#include <stdlib.h> 4802int 4803main () 4804{ 4805exit (42); 4806 ; 4807 return 0; 4808} 4809_ACEOF 4810rm -f conftest.$ac_objext 4811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4812 (eval $ac_compile) 2>conftest.er1 4813 ac_status=$? 4814 grep -v '^ *+' conftest.er1 >conftest.err 4815 rm -f conftest.er1 4816 cat conftest.err >&5 4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4818 (exit $ac_status); } && 4819 { ac_try='test -z "$ac_cxx_werror_flag" 4820 || test ! -s conftest.err' 4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4822 (eval $ac_try) 2>&5 4823 ac_status=$? 4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4825 (exit $ac_status); }; } && 4826 { ac_try='test -s conftest.$ac_objext' 4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4828 (eval $ac_try) 2>&5 4829 ac_status=$? 4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4831 (exit $ac_status); }; }; then 4832 : 4833else 4834 echo "$as_me: failed program was:" >&5 4835sed 's/^/| /' conftest.$ac_ext >&5 4836 4837continue 4838fi 4839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4840 cat >conftest.$ac_ext <<_ACEOF 4841/* confdefs.h. */ 4842_ACEOF 4843cat confdefs.h >>conftest.$ac_ext 4844cat >>conftest.$ac_ext <<_ACEOF 4845/* end confdefs.h. */ 4846$ac_declaration 4847int 4848main () 4849{ 4850exit (42); 4851 ; 4852 return 0; 4853} 4854_ACEOF 4855rm -f conftest.$ac_objext 4856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4857 (eval $ac_compile) 2>conftest.er1 4858 ac_status=$? 4859 grep -v '^ *+' conftest.er1 >conftest.err 4860 rm -f conftest.er1 4861 cat conftest.err >&5 4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4863 (exit $ac_status); } && 4864 { ac_try='test -z "$ac_cxx_werror_flag" 4865 || test ! -s conftest.err' 4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4867 (eval $ac_try) 2>&5 4868 ac_status=$? 4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4870 (exit $ac_status); }; } && 4871 { ac_try='test -s conftest.$ac_objext' 4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4873 (eval $ac_try) 2>&5 4874 ac_status=$? 4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4876 (exit $ac_status); }; }; then 4877 break 4878else 4879 echo "$as_me: failed program was:" >&5 4880sed 's/^/| /' conftest.$ac_ext >&5 4881 4882fi 4883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4884done 4885rm -f conftest* 4886if test -n "$ac_declaration"; then 4887 echo '#ifdef __cplusplus' >>confdefs.h 4888 echo $ac_declaration >>confdefs.h 4889 echo '#endif' >>confdefs.h 4890fi 4891 4892ac_ext=cc 4893ac_cpp='$CXXCPP $CPPFLAGS' 4894ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4895ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4896ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4897 4898depcc="$CXX" am_compiler_list= 4899 4900echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4901echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4902if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4903 echo $ECHO_N "(cached) $ECHO_C" >&6 4904else 4905 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4906 # We make a subdir and do the tests there. Otherwise we can end up 4907 # making bogus files that we don't know about and never remove. For 4908 # instance it was reported that on HP-UX the gcc test will end up 4909 # making a dummy file named `D' -- because `-MD' means `put the output 4910 # in D'. 4911 mkdir conftest.dir 4912 # Copy depcomp to subdir because otherwise we won't find it if we're 4913 # using a relative directory. 4914 cp "$am_depcomp" conftest.dir 4915 cd conftest.dir 4916 # We will build objects and dependencies in a subdirectory because 4917 # it helps to detect inapplicable dependency modes. For instance 4918 # both Tru64's cc and ICC support -MD to output dependencies as a 4919 # side effect of compilation, but ICC will put the dependencies in 4920 # the current directory while Tru64 will put them in the object 4921 # directory. 4922 mkdir sub 4923 4924 am_cv_CXX_dependencies_compiler_type=none 4925 if test "$am_compiler_list" = ""; then 4926 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4927 fi 4928 for depmode in $am_compiler_list; do 4929 # Setup a source with many dependencies, because some compilers 4930 # like to wrap large dependency lists on column 80 (with \), and 4931 # we should not choose a depcomp mode which is confused by this. 4932 # 4933 # We need to recreate these files for each test, as the compiler may 4934 # overwrite some of them when testing with obscure command lines. 4935 # This happens at least with the AIX C compiler. 4936 : > sub/conftest.c 4937 for i in 1 2 3 4 5 6; do 4938 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4939 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4940 # Solaris 8's {/usr,}/bin/sh. 4941 touch sub/conftst$i.h 4942 done 4943 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4944 4945 case $depmode in 4946 nosideeffect) 4947 # after this tag, mechanisms are not by side-effect, so they'll 4948 # only be used when explicitly requested 4949 if test "x$enable_dependency_tracking" = xyes; then 4950 continue 4951 else 4952 break 4953 fi 4954 ;; 4955 none) break ;; 4956 esac 4957 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4958 # mode. It turns out that the SunPro C++ compiler does not properly 4959 # handle `-M -o', and we need to detect this. 4960 if depmode=$depmode \ 4961 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4962 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4963 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4964 >/dev/null 2>conftest.err && 4965 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4966 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4967 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4968 # icc doesn't choke on unknown options, it will just issue warnings 4969 # or remarks (even with -Werror). So we grep stderr for any message 4970 # that says an option was ignored or not supported. 4971 # When given -MP, icc 7.0 and 7.1 complain thusly: 4972 # icc: Command line warning: ignoring option '-M'; no argument required 4973 # The diagnosis changed in icc 8.0: 4974 # icc: Command line remark: option '-MP' not supported 4975 if (grep 'ignoring option' conftest.err || 4976 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4977 am_cv_CXX_dependencies_compiler_type=$depmode 4978 break 4979 fi 4980 fi 4981 done 4982 4983 cd .. 4984 rm -rf conftest.dir 4985else 4986 am_cv_CXX_dependencies_compiler_type=none 4987fi 4988 4989fi 4990echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 4991echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 4992CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4993 4994 4995 4996if 4997 test "x$enable_dependency_tracking" != xno \ 4998 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4999 am__fastdepCXX_TRUE= 5000 am__fastdepCXX_FALSE='#' 5001else 5002 am__fastdepCXX_TRUE='#' 5003 am__fastdepCXX_FALSE= 5004fi 5005 5006 5007 5008 5009if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5010 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5011 (test "X$CXX" != "Xg++"))) ; then 5012 ac_ext=cc 5013ac_cpp='$CXXCPP $CPPFLAGS' 5014ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5015ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5016ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5017echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5018echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5019if test -z "$CXXCPP"; then 5020 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5021 echo $ECHO_N "(cached) $ECHO_C" >&6 5022else 5023 # Double quotes because CXXCPP needs to be expanded 5024 for CXXCPP in "$CXX -E" "/lib/cpp" 5025 do 5026 ac_preproc_ok=false 5027for ac_cxx_preproc_warn_flag in '' yes 5028do 5029 # Use a header file that comes with gcc, so configuring glibc 5030 # with a fresh cross-compiler works. 5031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5032 # <limits.h> exists even on freestanding compilers. 5033 # On the NeXT, cc -E runs the code through the compiler's parser, 5034 # not just through cpp. "Syntax error" is here to catch this case. 5035 cat >conftest.$ac_ext <<_ACEOF 5036/* confdefs.h. */ 5037_ACEOF 5038cat confdefs.h >>conftest.$ac_ext 5039cat >>conftest.$ac_ext <<_ACEOF 5040/* end confdefs.h. */ 5041#ifdef __STDC__ 5042# include <limits.h> 5043#else 5044# include <assert.h> 5045#endif 5046 Syntax error 5047_ACEOF 5048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5050 ac_status=$? 5051 grep -v '^ *+' conftest.er1 >conftest.err 5052 rm -f conftest.er1 5053 cat conftest.err >&5 5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5055 (exit $ac_status); } >/dev/null; then 5056 if test -s conftest.err; then 5057 ac_cpp_err=$ac_cxx_preproc_warn_flag 5058 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5059 else 5060 ac_cpp_err= 5061 fi 5062else 5063 ac_cpp_err=yes 5064fi 5065if test -z "$ac_cpp_err"; then 5066 : 5067else 5068 echo "$as_me: failed program was:" >&5 5069sed 's/^/| /' conftest.$ac_ext >&5 5070 5071 # Broken: fails on valid input. 5072continue 5073fi 5074rm -f conftest.err conftest.$ac_ext 5075 5076 # OK, works on sane cases. Now check whether non-existent headers 5077 # can be detected and how. 5078 cat >conftest.$ac_ext <<_ACEOF 5079/* confdefs.h. */ 5080_ACEOF 5081cat confdefs.h >>conftest.$ac_ext 5082cat >>conftest.$ac_ext <<_ACEOF 5083/* end confdefs.h. */ 5084#include <ac_nonexistent.h> 5085_ACEOF 5086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5088 ac_status=$? 5089 grep -v '^ *+' conftest.er1 >conftest.err 5090 rm -f conftest.er1 5091 cat conftest.err >&5 5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5093 (exit $ac_status); } >/dev/null; then 5094 if test -s conftest.err; then 5095 ac_cpp_err=$ac_cxx_preproc_warn_flag 5096 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5097 else 5098 ac_cpp_err= 5099 fi 5100else 5101 ac_cpp_err=yes 5102fi 5103if test -z "$ac_cpp_err"; then 5104 # Broken: success on invalid input. 5105continue 5106else 5107 echo "$as_me: failed program was:" >&5 5108sed 's/^/| /' conftest.$ac_ext >&5 5109 5110 # Passes both tests. 5111ac_preproc_ok=: 5112break 5113fi 5114rm -f conftest.err conftest.$ac_ext 5115 5116done 5117# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5118rm -f conftest.err conftest.$ac_ext 5119if $ac_preproc_ok; then 5120 break 5121fi 5122 5123 done 5124 ac_cv_prog_CXXCPP=$CXXCPP 5125 5126fi 5127 CXXCPP=$ac_cv_prog_CXXCPP 5128else 5129 ac_cv_prog_CXXCPP=$CXXCPP 5130fi 5131echo "$as_me:$LINENO: result: $CXXCPP" >&5 5132echo "${ECHO_T}$CXXCPP" >&6 5133ac_preproc_ok=false 5134for ac_cxx_preproc_warn_flag in '' yes 5135do 5136 # Use a header file that comes with gcc, so configuring glibc 5137 # with a fresh cross-compiler works. 5138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5139 # <limits.h> exists even on freestanding compilers. 5140 # On the NeXT, cc -E runs the code through the compiler's parser, 5141 # not just through cpp. "Syntax error" is here to catch this case. 5142 cat >conftest.$ac_ext <<_ACEOF 5143/* confdefs.h. */ 5144_ACEOF 5145cat confdefs.h >>conftest.$ac_ext 5146cat >>conftest.$ac_ext <<_ACEOF 5147/* end confdefs.h. */ 5148#ifdef __STDC__ 5149# include <limits.h> 5150#else 5151# include <assert.h> 5152#endif 5153 Syntax error 5154_ACEOF 5155if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5157 ac_status=$? 5158 grep -v '^ *+' conftest.er1 >conftest.err 5159 rm -f conftest.er1 5160 cat conftest.err >&5 5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5162 (exit $ac_status); } >/dev/null; then 5163 if test -s conftest.err; then 5164 ac_cpp_err=$ac_cxx_preproc_warn_flag 5165 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5166 else 5167 ac_cpp_err= 5168 fi 5169else 5170 ac_cpp_err=yes 5171fi 5172if test -z "$ac_cpp_err"; then 5173 : 5174else 5175 echo "$as_me: failed program was:" >&5 5176sed 's/^/| /' conftest.$ac_ext >&5 5177 5178 # Broken: fails on valid input. 5179continue 5180fi 5181rm -f conftest.err conftest.$ac_ext 5182 5183 # OK, works on sane cases. Now check whether non-existent headers 5184 # can be detected and how. 5185 cat >conftest.$ac_ext <<_ACEOF 5186/* confdefs.h. */ 5187_ACEOF 5188cat confdefs.h >>conftest.$ac_ext 5189cat >>conftest.$ac_ext <<_ACEOF 5190/* end confdefs.h. */ 5191#include <ac_nonexistent.h> 5192_ACEOF 5193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5195 ac_status=$? 5196 grep -v '^ *+' conftest.er1 >conftest.err 5197 rm -f conftest.er1 5198 cat conftest.err >&5 5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5200 (exit $ac_status); } >/dev/null; then 5201 if test -s conftest.err; then 5202 ac_cpp_err=$ac_cxx_preproc_warn_flag 5203 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5204 else 5205 ac_cpp_err= 5206 fi 5207else 5208 ac_cpp_err=yes 5209fi 5210if test -z "$ac_cpp_err"; then 5211 # Broken: success on invalid input. 5212continue 5213else 5214 echo "$as_me: failed program was:" >&5 5215sed 's/^/| /' conftest.$ac_ext >&5 5216 5217 # Passes both tests. 5218ac_preproc_ok=: 5219break 5220fi 5221rm -f conftest.err conftest.$ac_ext 5222 5223done 5224# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5225rm -f conftest.err conftest.$ac_ext 5226if $ac_preproc_ok; then 5227 : 5228else 5229 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5230See \`config.log' for more details." >&5 5231echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5232See \`config.log' for more details." >&2;} 5233 { (exit 1); exit 1; }; } 5234fi 5235 5236ac_ext=cc 5237ac_cpp='$CXXCPP $CPPFLAGS' 5238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5241 5242fi 5243 5244 5245ac_ext=f 5246ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5247ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5248ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5249if test -n "$ac_tool_prefix"; then 5250 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5251 do 5252 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5253set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5254echo "$as_me:$LINENO: checking for $ac_word" >&5 5255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5256if test "${ac_cv_prog_F77+set}" = set; then 5257 echo $ECHO_N "(cached) $ECHO_C" >&6 5258else 5259 if test -n "$F77"; then 5260 ac_cv_prog_F77="$F77" # Let the user override the test. 5261else 5262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5263for as_dir in $PATH 5264do 5265 IFS=$as_save_IFS 5266 test -z "$as_dir" && as_dir=. 5267 for ac_exec_ext in '' $ac_executable_extensions; do 5268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5269 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5271 break 2 5272 fi 5273done 5274done 5275 5276fi 5277fi 5278F77=$ac_cv_prog_F77 5279if test -n "$F77"; then 5280 echo "$as_me:$LINENO: result: $F77" >&5 5281echo "${ECHO_T}$F77" >&6 5282else 5283 echo "$as_me:$LINENO: result: no" >&5 5284echo "${ECHO_T}no" >&6 5285fi 5286 5287 test -n "$F77" && break 5288 done 5289fi 5290if test -z "$F77"; then 5291 ac_ct_F77=$F77 5292 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5293do 5294 # Extract the first word of "$ac_prog", so it can be a program name with args. 5295set dummy $ac_prog; ac_word=$2 5296echo "$as_me:$LINENO: checking for $ac_word" >&5 5297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5298if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5299 echo $ECHO_N "(cached) $ECHO_C" >&6 5300else 5301 if test -n "$ac_ct_F77"; then 5302 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5303else 5304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5305for as_dir in $PATH 5306do 5307 IFS=$as_save_IFS 5308 test -z "$as_dir" && as_dir=. 5309 for ac_exec_ext in '' $ac_executable_extensions; do 5310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5311 ac_cv_prog_ac_ct_F77="$ac_prog" 5312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5313 break 2 5314 fi 5315done 5316done 5317 5318fi 5319fi 5320ac_ct_F77=$ac_cv_prog_ac_ct_F77 5321if test -n "$ac_ct_F77"; then 5322 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5323echo "${ECHO_T}$ac_ct_F77" >&6 5324else 5325 echo "$as_me:$LINENO: result: no" >&5 5326echo "${ECHO_T}no" >&6 5327fi 5328 5329 test -n "$ac_ct_F77" && break 5330done 5331 5332 F77=$ac_ct_F77 5333fi 5334 5335 5336# Provide some information about the compiler. 5337echo "$as_me:5337:" \ 5338 "checking for Fortran 77 compiler version" >&5 5339ac_compiler=`set X $ac_compile; echo $2` 5340{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5341 (eval $ac_compiler --version </dev/null >&5) 2>&5 5342 ac_status=$? 5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5344 (exit $ac_status); } 5345{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5346 (eval $ac_compiler -v </dev/null >&5) 2>&5 5347 ac_status=$? 5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5349 (exit $ac_status); } 5350{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5351 (eval $ac_compiler -V </dev/null >&5) 2>&5 5352 ac_status=$? 5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5354 (exit $ac_status); } 5355rm -f a.out 5356 5357# If we don't use `.F' as extension, the preprocessor is not run on the 5358# input file. (Note that this only needs to work for GNU compilers.) 5359ac_save_ext=$ac_ext 5360ac_ext=F 5361echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5362echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5363if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5364 echo $ECHO_N "(cached) $ECHO_C" >&6 5365else 5366 cat >conftest.$ac_ext <<_ACEOF 5367 program main 5368#ifndef __GNUC__ 5369 choke me 5370#endif 5371 5372 end 5373_ACEOF 5374rm -f conftest.$ac_objext 5375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5376 (eval $ac_compile) 2>conftest.er1 5377 ac_status=$? 5378 grep -v '^ *+' conftest.er1 >conftest.err 5379 rm -f conftest.er1 5380 cat conftest.err >&5 5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5382 (exit $ac_status); } && 5383 { ac_try='test -z "$ac_f77_werror_flag" 5384 || test ! -s conftest.err' 5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5386 (eval $ac_try) 2>&5 5387 ac_status=$? 5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5389 (exit $ac_status); }; } && 5390 { ac_try='test -s conftest.$ac_objext' 5391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5392 (eval $ac_try) 2>&5 5393 ac_status=$? 5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5395 (exit $ac_status); }; }; then 5396 ac_compiler_gnu=yes 5397else 5398 echo "$as_me: failed program was:" >&5 5399sed 's/^/| /' conftest.$ac_ext >&5 5400 5401ac_compiler_gnu=no 5402fi 5403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5404ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5405 5406fi 5407echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5408echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5409ac_ext=$ac_save_ext 5410ac_test_FFLAGS=${FFLAGS+set} 5411ac_save_FFLAGS=$FFLAGS 5412FFLAGS= 5413echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5414echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5415if test "${ac_cv_prog_f77_g+set}" = set; then 5416 echo $ECHO_N "(cached) $ECHO_C" >&6 5417else 5418 FFLAGS=-g 5419cat >conftest.$ac_ext <<_ACEOF 5420 program main 5421 5422 end 5423_ACEOF 5424rm -f conftest.$ac_objext 5425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5426 (eval $ac_compile) 2>conftest.er1 5427 ac_status=$? 5428 grep -v '^ *+' conftest.er1 >conftest.err 5429 rm -f conftest.er1 5430 cat conftest.err >&5 5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5432 (exit $ac_status); } && 5433 { ac_try='test -z "$ac_f77_werror_flag" 5434 || test ! -s conftest.err' 5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5436 (eval $ac_try) 2>&5 5437 ac_status=$? 5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5439 (exit $ac_status); }; } && 5440 { ac_try='test -s conftest.$ac_objext' 5441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5442 (eval $ac_try) 2>&5 5443 ac_status=$? 5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5445 (exit $ac_status); }; }; then 5446 ac_cv_prog_f77_g=yes 5447else 5448 echo "$as_me: failed program was:" >&5 5449sed 's/^/| /' conftest.$ac_ext >&5 5450 5451ac_cv_prog_f77_g=no 5452fi 5453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5454 5455fi 5456echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5457echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5458if test "$ac_test_FFLAGS" = set; then 5459 FFLAGS=$ac_save_FFLAGS 5460elif test $ac_cv_prog_f77_g = yes; then 5461 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5462 FFLAGS="-g -O2" 5463 else 5464 FFLAGS="-g" 5465 fi 5466else 5467 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5468 FFLAGS="-O2" 5469 else 5470 FFLAGS= 5471 fi 5472fi 5473 5474G77=`test $ac_compiler_gnu = yes && echo yes` 5475ac_ext=c 5476ac_cpp='$CPP $CPPFLAGS' 5477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5479ac_compiler_gnu=$ac_cv_c_compiler_gnu 5480 5481 5482 5483# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5484 5485# find the maximum length of command line arguments 5486echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5487echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5488if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5489 echo $ECHO_N "(cached) $ECHO_C" >&6 5490else 5491 i=0 5492 teststring="ABCD" 5493 5494 case $build_os in 5495 msdosdjgpp*) 5496 # On DJGPP, this test can blow up pretty badly due to problems in libc 5497 # (any single argument exceeding 2000 bytes causes a buffer overrun 5498 # during glob expansion). Even if it were fixed, the result of this 5499 # check would be larger than it should be. 5500 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5501 ;; 5502 5503 gnu*) 5504 # Under GNU Hurd, this test is not required because there is 5505 # no limit to the length of command line arguments. 5506 # Libtool will interpret -1 as no limit whatsoever 5507 lt_cv_sys_max_cmd_len=-1; 5508 ;; 5509 5510 cygwin* | mingw*) 5511 # On Win9x/ME, this test blows up -- it succeeds, but takes 5512 # about 5 minutes as the teststring grows exponentially. 5513 # Worse, since 9x/ME are not pre-emptively multitasking, 5514 # you end up with a "frozen" computer, even though with patience 5515 # the test eventually succeeds (with a max line length of 256k). 5516 # Instead, let's just punt: use the minimum linelength reported by 5517 # all of the supported platforms: 8192 (on NT/2K/XP). 5518 lt_cv_sys_max_cmd_len=8192; 5519 ;; 5520 5521 amigaos*) 5522 # On AmigaOS with pdksh, this test takes hours, literally. 5523 # So we just punt and use a minimum line length of 8192. 5524 lt_cv_sys_max_cmd_len=8192; 5525 ;; 5526 5527 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5528 # This has been around since 386BSD, at least. Likely further. 5529 if test -x /sbin/sysctl; then 5530 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5531 elif test -x /usr/sbin/sysctl; then 5532 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5533 else 5534 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5535 fi 5536 # And add a safety zone 5537 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5538 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5539 ;; 5540 5541 interix*) 5542 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5543 lt_cv_sys_max_cmd_len=196608 5544 ;; 5545 5546 osf*) 5547 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5548 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5549 # nice to cause kernel panics so lets avoid the loop below. 5550 # First set a reasonable default. 5551 lt_cv_sys_max_cmd_len=16384 5552 # 5553 if test -x /sbin/sysconfig; then 5554 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5555 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5556 esac 5557 fi 5558 ;; 5559 sco3.2v5*) 5560 lt_cv_sys_max_cmd_len=102400 5561 ;; 5562 sysv5* | sco5v6* | sysv4.2uw2*) 5563 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5564 if test -n "$kargmax"; then 5565 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5566 else 5567 lt_cv_sys_max_cmd_len=32768 5568 fi 5569 ;; 5570 *) 5571 # If test is not a shell built-in, we'll probably end up computing a 5572 # maximum length that is only half of the actual maximum length, but 5573 # we can't tell. 5574 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5575 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5576 = "XX$teststring") >/dev/null 2>&1 && 5577 new_result=`expr "X$teststring" : ".*" 2>&1` && 5578 lt_cv_sys_max_cmd_len=$new_result && 5579 test $i != 17 # 1/2 MB should be enough 5580 do 5581 i=`expr $i + 1` 5582 teststring=$teststring$teststring 5583 done 5584 teststring= 5585 # Add a significant safety factor because C++ compilers can tack on massive 5586 # amounts of additional arguments before passing them to the linker. 5587 # It appears as though 1/2 is a usable value. 5588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5589 ;; 5590 esac 5591 5592fi 5593 5594if test -n $lt_cv_sys_max_cmd_len ; then 5595 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5596echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5597else 5598 echo "$as_me:$LINENO: result: none" >&5 5599echo "${ECHO_T}none" >&6 5600fi 5601 5602 5603 5604 5605# Check for command to grab the raw symbol name followed by C symbol from nm. 5606echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5607echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5608if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5609 echo $ECHO_N "(cached) $ECHO_C" >&6 5610else 5611 5612# These are sane defaults that work on at least a few old systems. 5613# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5614 5615# Character class describing NM global symbol codes. 5616symcode='[BCDEGRST]' 5617 5618# Regexp to match symbols that can be accessed directly from C. 5619sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5620 5621# Transform an extracted symbol line into a proper C declaration 5622lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5623 5624# Transform an extracted symbol line into symbol name and symbol address 5625lt_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'" 5626 5627# Define system-specific variables. 5628case $host_os in 5629aix*) 5630 symcode='[BCDT]' 5631 ;; 5632cygwin* | mingw* | pw32*) 5633 symcode='[ABCDGISTW]' 5634 ;; 5635hpux*) # Its linker distinguishes data from code symbols 5636 if test "$host_cpu" = ia64; then 5637 symcode='[ABCDEGRST]' 5638 fi 5639 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5640 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'" 5641 ;; 5642linux*) 5643 if test "$host_cpu" = ia64; then 5644 symcode='[ABCDGIRSTW]' 5645 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5646 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'" 5647 fi 5648 ;; 5649irix* | nonstopux*) 5650 symcode='[BCDEGRST]' 5651 ;; 5652osf*) 5653 symcode='[BCDEGQRST]' 5654 ;; 5655solaris*) 5656 symcode='[BDRT]' 5657 ;; 5658sco3.2v5*) 5659 symcode='[DT]' 5660 ;; 5661sysv4.2uw2*) 5662 symcode='[DT]' 5663 ;; 5664sysv5* | sco5v6* | unixware* | OpenUNIX*) 5665 symcode='[ABDT]' 5666 ;; 5667sysv4) 5668 symcode='[DFNSTU]' 5669 ;; 5670esac 5671 5672# Handle CRLF in mingw tool chain 5673opt_cr= 5674case $build_os in 5675mingw*) 5676 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5677 ;; 5678esac 5679 5680# If we're using GNU nm, then use its standard symbol codes. 5681case `$NM -V 2>&1` in 5682*GNU* | *'with BFD'*) 5683 symcode='[ABCDGIRSTW]' ;; 5684esac 5685 5686# Try without a prefix undercore, then with it. 5687for ac_symprfx in "" "_"; do 5688 5689 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5690 symxfrm="\\1 $ac_symprfx\\2 \\2" 5691 5692 # Write the raw and C identifiers. 5693 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5694 5695 # Check to see that the pipe works correctly. 5696 pipe_works=no 5697 5698 rm -f conftest* 5699 cat > conftest.$ac_ext <<EOF 5700#ifdef __cplusplus 5701extern "C" { 5702#endif 5703char nm_test_var; 5704void nm_test_func(){} 5705#ifdef __cplusplus 5706} 5707#endif 5708int main(){nm_test_var='a';nm_test_func();return(0);} 5709EOF 5710 5711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5712 (eval $ac_compile) 2>&5 5713 ac_status=$? 5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5715 (exit $ac_status); }; then 5716 # Now try to grab the symbols. 5717 nlist=conftest.nm 5718 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5719 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5720 ac_status=$? 5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5722 (exit $ac_status); } && test -s "$nlist"; then 5723 # Try sorting and uniquifying the output. 5724 if sort "$nlist" | uniq > "$nlist"T; then 5725 mv -f "$nlist"T "$nlist" 5726 else 5727 rm -f "$nlist"T 5728 fi 5729 5730 # Make sure that we snagged all the symbols we need. 5731 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5732 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5733 cat <<EOF > conftest.$ac_ext 5734#ifdef __cplusplus 5735extern "C" { 5736#endif 5737 5738EOF 5739 # Now generate the symbol file. 5740 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5741 5742 cat <<EOF >> conftest.$ac_ext 5743#if defined (__STDC__) && __STDC__ 5744# define lt_ptr_t void * 5745#else 5746# define lt_ptr_t char * 5747# define const 5748#endif 5749 5750/* The mapping between symbol names and symbols. */ 5751const struct { 5752 const char *name; 5753 lt_ptr_t address; 5754} 5755lt_preloaded_symbols[] = 5756{ 5757EOF 5758 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5759 cat <<\EOF >> conftest.$ac_ext 5760 {0, (lt_ptr_t) 0} 5761}; 5762 5763#ifdef __cplusplus 5764} 5765#endif 5766EOF 5767 # Now try linking the two files. 5768 mv conftest.$ac_objext conftstm.$ac_objext 5769 lt_save_LIBS="$LIBS" 5770 lt_save_CFLAGS="$CFLAGS" 5771 LIBS="conftstm.$ac_objext" 5772 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5774 (eval $ac_link) 2>&5 5775 ac_status=$? 5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5777 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5778 pipe_works=yes 5779 fi 5780 LIBS="$lt_save_LIBS" 5781 CFLAGS="$lt_save_CFLAGS" 5782 else 5783 echo "cannot find nm_test_func in $nlist" >&5 5784 fi 5785 else 5786 echo "cannot find nm_test_var in $nlist" >&5 5787 fi 5788 else 5789 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5790 fi 5791 else 5792 echo "$progname: failed program was:" >&5 5793 cat conftest.$ac_ext >&5 5794 fi 5795 rm -f conftest* conftst* 5796 5797 # Do not use the global_symbol_pipe unless it works. 5798 if test "$pipe_works" = yes; then 5799 break 5800 else 5801 lt_cv_sys_global_symbol_pipe= 5802 fi 5803done 5804 5805fi 5806 5807if test -z "$lt_cv_sys_global_symbol_pipe"; then 5808 lt_cv_sys_global_symbol_to_cdecl= 5809fi 5810if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5811 echo "$as_me:$LINENO: result: failed" >&5 5812echo "${ECHO_T}failed" >&6 5813else 5814 echo "$as_me:$LINENO: result: ok" >&5 5815echo "${ECHO_T}ok" >&6 5816fi 5817 5818echo "$as_me:$LINENO: checking for objdir" >&5 5819echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5820if test "${lt_cv_objdir+set}" = set; then 5821 echo $ECHO_N "(cached) $ECHO_C" >&6 5822else 5823 rm -f .libs 2>/dev/null 5824mkdir .libs 2>/dev/null 5825if test -d .libs; then 5826 lt_cv_objdir=.libs 5827else 5828 # MS-DOS does not allow filenames that begin with a dot. 5829 lt_cv_objdir=_libs 5830fi 5831rmdir .libs 2>/dev/null 5832fi 5833echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5834echo "${ECHO_T}$lt_cv_objdir" >&6 5835objdir=$lt_cv_objdir 5836 5837 5838 5839 5840 5841case $host_os in 5842aix3*) 5843 # AIX sometimes has problems with the GCC collect2 program. For some 5844 # reason, if we set the COLLECT_NAMES environment variable, the problems 5845 # vanish in a puff of smoke. 5846 if test "X${COLLECT_NAMES+set}" != Xset; then 5847 COLLECT_NAMES= 5848 export COLLECT_NAMES 5849 fi 5850 ;; 5851esac 5852 5853# Sed substitution that helps us do robust quoting. It backslashifies 5854# metacharacters that are still active within double-quoted strings. 5855Xsed='sed -e 1s/^X//' 5856sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5857 5858# Same as above, but do not quote variable references. 5859double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5860 5861# Sed substitution to delay expansion of an escaped shell variable in a 5862# double_quote_subst'ed string. 5863delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5864 5865# Sed substitution to avoid accidental globbing in evaled expressions 5866no_glob_subst='s/\*/\\\*/g' 5867 5868# Constants: 5869rm="rm -f" 5870 5871# Global variables: 5872default_ofile=libtool 5873can_build_shared=yes 5874 5875# All known linkers require a `.a' archive for static linking (except MSVC, 5876# which needs '.lib'). 5877libext=a 5878ltmain="$ac_aux_dir/ltmain.sh" 5879ofile="$default_ofile" 5880with_gnu_ld="$lt_cv_prog_gnu_ld" 5881 5882if test -n "$ac_tool_prefix"; then 5883 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5884set dummy ${ac_tool_prefix}ar; ac_word=$2 5885echo "$as_me:$LINENO: checking for $ac_word" >&5 5886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5887if test "${ac_cv_prog_AR+set}" = set; then 5888 echo $ECHO_N "(cached) $ECHO_C" >&6 5889else 5890 if test -n "$AR"; then 5891 ac_cv_prog_AR="$AR" # Let the user override the test. 5892else 5893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5894for as_dir in $PATH 5895do 5896 IFS=$as_save_IFS 5897 test -z "$as_dir" && as_dir=. 5898 for ac_exec_ext in '' $ac_executable_extensions; do 5899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5900 ac_cv_prog_AR="${ac_tool_prefix}ar" 5901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5902 break 2 5903 fi 5904done 5905done 5906 5907fi 5908fi 5909AR=$ac_cv_prog_AR 5910if test -n "$AR"; then 5911 echo "$as_me:$LINENO: result: $AR" >&5 5912echo "${ECHO_T}$AR" >&6 5913else 5914 echo "$as_me:$LINENO: result: no" >&5 5915echo "${ECHO_T}no" >&6 5916fi 5917 5918fi 5919if test -z "$ac_cv_prog_AR"; then 5920 ac_ct_AR=$AR 5921 # Extract the first word of "ar", so it can be a program name with args. 5922set dummy ar; ac_word=$2 5923echo "$as_me:$LINENO: checking for $ac_word" >&5 5924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5925if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5926 echo $ECHO_N "(cached) $ECHO_C" >&6 5927else 5928 if test -n "$ac_ct_AR"; then 5929 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5930else 5931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5932for as_dir in $PATH 5933do 5934 IFS=$as_save_IFS 5935 test -z "$as_dir" && as_dir=. 5936 for ac_exec_ext in '' $ac_executable_extensions; do 5937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5938 ac_cv_prog_ac_ct_AR="ar" 5939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5940 break 2 5941 fi 5942done 5943done 5944 5945 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5946fi 5947fi 5948ac_ct_AR=$ac_cv_prog_ac_ct_AR 5949if test -n "$ac_ct_AR"; then 5950 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5951echo "${ECHO_T}$ac_ct_AR" >&6 5952else 5953 echo "$as_me:$LINENO: result: no" >&5 5954echo "${ECHO_T}no" >&6 5955fi 5956 5957 AR=$ac_ct_AR 5958else 5959 AR="$ac_cv_prog_AR" 5960fi 5961 5962if test -n "$ac_tool_prefix"; then 5963 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5964set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5965echo "$as_me:$LINENO: checking for $ac_word" >&5 5966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5967if test "${ac_cv_prog_RANLIB+set}" = set; then 5968 echo $ECHO_N "(cached) $ECHO_C" >&6 5969else 5970 if test -n "$RANLIB"; then 5971 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5972else 5973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5974for as_dir in $PATH 5975do 5976 IFS=$as_save_IFS 5977 test -z "$as_dir" && as_dir=. 5978 for ac_exec_ext in '' $ac_executable_extensions; do 5979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5980 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5982 break 2 5983 fi 5984done 5985done 5986 5987fi 5988fi 5989RANLIB=$ac_cv_prog_RANLIB 5990if test -n "$RANLIB"; then 5991 echo "$as_me:$LINENO: result: $RANLIB" >&5 5992echo "${ECHO_T}$RANLIB" >&6 5993else 5994 echo "$as_me:$LINENO: result: no" >&5 5995echo "${ECHO_T}no" >&6 5996fi 5997 5998fi 5999if test -z "$ac_cv_prog_RANLIB"; then 6000 ac_ct_RANLIB=$RANLIB 6001 # Extract the first word of "ranlib", so it can be a program name with args. 6002set dummy ranlib; ac_word=$2 6003echo "$as_me:$LINENO: checking for $ac_word" >&5 6004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6005if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6006 echo $ECHO_N "(cached) $ECHO_C" >&6 6007else 6008 if test -n "$ac_ct_RANLIB"; then 6009 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6010else 6011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6012for as_dir in $PATH 6013do 6014 IFS=$as_save_IFS 6015 test -z "$as_dir" && as_dir=. 6016 for ac_exec_ext in '' $ac_executable_extensions; do 6017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6018 ac_cv_prog_ac_ct_RANLIB="ranlib" 6019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6020 break 2 6021 fi 6022done 6023done 6024 6025 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6026fi 6027fi 6028ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6029if test -n "$ac_ct_RANLIB"; then 6030 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6031echo "${ECHO_T}$ac_ct_RANLIB" >&6 6032else 6033 echo "$as_me:$LINENO: result: no" >&5 6034echo "${ECHO_T}no" >&6 6035fi 6036 6037 RANLIB=$ac_ct_RANLIB 6038else 6039 RANLIB="$ac_cv_prog_RANLIB" 6040fi 6041 6042if test -n "$ac_tool_prefix"; then 6043 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6044set dummy ${ac_tool_prefix}strip; ac_word=$2 6045echo "$as_me:$LINENO: checking for $ac_word" >&5 6046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6047if test "${ac_cv_prog_STRIP+set}" = set; then 6048 echo $ECHO_N "(cached) $ECHO_C" >&6 6049else 6050 if test -n "$STRIP"; then 6051 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6052else 6053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6054for as_dir in $PATH 6055do 6056 IFS=$as_save_IFS 6057 test -z "$as_dir" && as_dir=. 6058 for ac_exec_ext in '' $ac_executable_extensions; do 6059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6060 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6062 break 2 6063 fi 6064done 6065done 6066 6067fi 6068fi 6069STRIP=$ac_cv_prog_STRIP 6070if test -n "$STRIP"; then 6071 echo "$as_me:$LINENO: result: $STRIP" >&5 6072echo "${ECHO_T}$STRIP" >&6 6073else 6074 echo "$as_me:$LINENO: result: no" >&5 6075echo "${ECHO_T}no" >&6 6076fi 6077 6078fi 6079if test -z "$ac_cv_prog_STRIP"; then 6080 ac_ct_STRIP=$STRIP 6081 # Extract the first word of "strip", so it can be a program name with args. 6082set dummy strip; ac_word=$2 6083echo "$as_me:$LINENO: checking for $ac_word" >&5 6084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6085if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6086 echo $ECHO_N "(cached) $ECHO_C" >&6 6087else 6088 if test -n "$ac_ct_STRIP"; then 6089 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6090else 6091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6092for as_dir in $PATH 6093do 6094 IFS=$as_save_IFS 6095 test -z "$as_dir" && as_dir=. 6096 for ac_exec_ext in '' $ac_executable_extensions; do 6097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6098 ac_cv_prog_ac_ct_STRIP="strip" 6099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6100 break 2 6101 fi 6102done 6103done 6104 6105 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6106fi 6107fi 6108ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6109if test -n "$ac_ct_STRIP"; then 6110 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6111echo "${ECHO_T}$ac_ct_STRIP" >&6 6112else 6113 echo "$as_me:$LINENO: result: no" >&5 6114echo "${ECHO_T}no" >&6 6115fi 6116 6117 STRIP=$ac_ct_STRIP 6118else 6119 STRIP="$ac_cv_prog_STRIP" 6120fi 6121 6122 6123old_CC="$CC" 6124old_CFLAGS="$CFLAGS" 6125 6126# Set sane defaults for various variables 6127test -z "$AR" && AR=ar 6128test -z "$AR_FLAGS" && AR_FLAGS=cru 6129test -z "$AS" && AS=as 6130test -z "$CC" && CC=cc 6131test -z "$LTCC" && LTCC=$CC 6132test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6133test -z "$DLLTOOL" && DLLTOOL=dlltool 6134test -z "$LD" && LD=ld 6135test -z "$LN_S" && LN_S="ln -s" 6136test -z "$MAGIC_CMD" && MAGIC_CMD=file 6137test -z "$NM" && NM=nm 6138test -z "$SED" && SED=sed 6139test -z "$OBJDUMP" && OBJDUMP=objdump 6140test -z "$RANLIB" && RANLIB=: 6141test -z "$STRIP" && STRIP=: 6142test -z "$ac_objext" && ac_objext=o 6143 6144# Determine commands to create old-style static archives. 6145old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6146old_postinstall_cmds='chmod 644 $oldlib' 6147old_postuninstall_cmds= 6148 6149if test -n "$RANLIB"; then 6150 case $host_os in 6151 openbsd*) 6152 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6153 ;; 6154 *) 6155 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6156 ;; 6157 esac 6158 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6159fi 6160 6161for cc_temp in $compiler""; do 6162 case $cc_temp in 6163 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6164 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6165 \-*) ;; 6166 *) break;; 6167 esac 6168done 6169cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6170 6171 6172# Only perform the check for file, if the check method requires it 6173case $deplibs_check_method in 6174file_magic*) 6175 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6176 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6177echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6178if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6179 echo $ECHO_N "(cached) $ECHO_C" >&6 6180else 6181 case $MAGIC_CMD in 6182[\\/*] | ?:[\\/]*) 6183 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6184 ;; 6185*) 6186 lt_save_MAGIC_CMD="$MAGIC_CMD" 6187 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6188 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6189 for ac_dir in $ac_dummy; do 6190 IFS="$lt_save_ifs" 6191 test -z "$ac_dir" && ac_dir=. 6192 if test -f $ac_dir/${ac_tool_prefix}file; then 6193 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6194 if test -n "$file_magic_test_file"; then 6195 case $deplibs_check_method in 6196 "file_magic "*) 6197 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6198 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6199 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6200 $EGREP "$file_magic_regex" > /dev/null; then 6201 : 6202 else 6203 cat <<EOF 1>&2 6204 6205*** Warning: the command libtool uses to detect shared libraries, 6206*** $file_magic_cmd, produces output that libtool cannot recognize. 6207*** The result is that libtool may fail to recognize shared libraries 6208*** as such. This will affect the creation of libtool libraries that 6209*** depend on shared libraries, but programs linked with such libtool 6210*** libraries will work regardless of this problem. Nevertheless, you 6211*** may want to report the problem to your system manager and/or to 6212*** bug-libtool@gnu.org 6213 6214EOF 6215 fi ;; 6216 esac 6217 fi 6218 break 6219 fi 6220 done 6221 IFS="$lt_save_ifs" 6222 MAGIC_CMD="$lt_save_MAGIC_CMD" 6223 ;; 6224esac 6225fi 6226 6227MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6228if test -n "$MAGIC_CMD"; then 6229 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6230echo "${ECHO_T}$MAGIC_CMD" >&6 6231else 6232 echo "$as_me:$LINENO: result: no" >&5 6233echo "${ECHO_T}no" >&6 6234fi 6235 6236if test -z "$lt_cv_path_MAGIC_CMD"; then 6237 if test -n "$ac_tool_prefix"; then 6238 echo "$as_me:$LINENO: checking for file" >&5 6239echo $ECHO_N "checking for file... $ECHO_C" >&6 6240if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6241 echo $ECHO_N "(cached) $ECHO_C" >&6 6242else 6243 case $MAGIC_CMD in 6244[\\/*] | ?:[\\/]*) 6245 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6246 ;; 6247*) 6248 lt_save_MAGIC_CMD="$MAGIC_CMD" 6249 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6250 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6251 for ac_dir in $ac_dummy; do 6252 IFS="$lt_save_ifs" 6253 test -z "$ac_dir" && ac_dir=. 6254 if test -f $ac_dir/file; then 6255 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6256 if test -n "$file_magic_test_file"; then 6257 case $deplibs_check_method in 6258 "file_magic "*) 6259 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6260 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6261 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6262 $EGREP "$file_magic_regex" > /dev/null; then 6263 : 6264 else 6265 cat <<EOF 1>&2 6266 6267*** Warning: the command libtool uses to detect shared libraries, 6268*** $file_magic_cmd, produces output that libtool cannot recognize. 6269*** The result is that libtool may fail to recognize shared libraries 6270*** as such. This will affect the creation of libtool libraries that 6271*** depend on shared libraries, but programs linked with such libtool 6272*** libraries will work regardless of this problem. Nevertheless, you 6273*** may want to report the problem to your system manager and/or to 6274*** bug-libtool@gnu.org 6275 6276EOF 6277 fi ;; 6278 esac 6279 fi 6280 break 6281 fi 6282 done 6283 IFS="$lt_save_ifs" 6284 MAGIC_CMD="$lt_save_MAGIC_CMD" 6285 ;; 6286esac 6287fi 6288 6289MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6290if test -n "$MAGIC_CMD"; then 6291 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6292echo "${ECHO_T}$MAGIC_CMD" >&6 6293else 6294 echo "$as_me:$LINENO: result: no" >&5 6295echo "${ECHO_T}no" >&6 6296fi 6297 6298 else 6299 MAGIC_CMD=: 6300 fi 6301fi 6302 6303 fi 6304 ;; 6305esac 6306 6307enable_dlopen=no 6308enable_win32_dll=no 6309 6310# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6311if test "${enable_libtool_lock+set}" = set; then 6312 enableval="$enable_libtool_lock" 6313 6314fi; 6315test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6316 6317 6318# Check whether --with-pic or --without-pic was given. 6319if test "${with_pic+set}" = set; then 6320 withval="$with_pic" 6321 pic_mode="$withval" 6322else 6323 pic_mode=default 6324fi; 6325test -z "$pic_mode" && pic_mode=default 6326 6327# Use C for the default configuration in the libtool script 6328tagname= 6329lt_save_CC="$CC" 6330ac_ext=c 6331ac_cpp='$CPP $CPPFLAGS' 6332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6334ac_compiler_gnu=$ac_cv_c_compiler_gnu 6335 6336 6337# Source file extension for C test sources. 6338ac_ext=c 6339 6340# Object file extension for compiled C test sources. 6341objext=o 6342objext=$objext 6343 6344# Code to be used in simple compile tests 6345lt_simple_compile_test_code="int some_variable = 0;\n" 6346 6347# Code to be used in simple link tests 6348lt_simple_link_test_code='int main(){return(0);}\n' 6349 6350 6351# If no C compiler was specified, use CC. 6352LTCC=${LTCC-"$CC"} 6353 6354# If no C compiler flags were specified, use CFLAGS. 6355LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6356 6357# Allow CC to be a program name with arguments. 6358compiler=$CC 6359 6360 6361# save warnings/boilerplate of simple test code 6362ac_outfile=conftest.$ac_objext 6363printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6364eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6365_lt_compiler_boilerplate=`cat conftest.err` 6366$rm conftest* 6367 6368ac_outfile=conftest.$ac_objext 6369printf "$lt_simple_link_test_code" >conftest.$ac_ext 6370eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6371_lt_linker_boilerplate=`cat conftest.err` 6372$rm conftest* 6373 6374 6375 6376lt_prog_compiler_no_builtin_flag= 6377 6378if test "$GCC" = yes; then 6379 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6380 6381 6382echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6383echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6384if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6385 echo $ECHO_N "(cached) $ECHO_C" >&6 6386else 6387 lt_cv_prog_compiler_rtti_exceptions=no 6388 ac_outfile=conftest.$ac_objext 6389 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6390 lt_compiler_flag="-fno-rtti -fno-exceptions" 6391 # Insert the option either (1) after the last *FLAGS variable, or 6392 # (2) before a word containing "conftest.", or (3) at the end. 6393 # Note that $ac_compile itself does not contain backslashes and begins 6394 # with a dollar sign (not a hyphen), so the echo should work correctly. 6395 # The option is referenced via a variable to avoid confusing sed. 6396 lt_compile=`echo "$ac_compile" | $SED \ 6397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6399 -e 's:$: $lt_compiler_flag:'` 6400 (eval echo "\"\$as_me:6400: $lt_compile\"" >&5) 6401 (eval "$lt_compile" 2>conftest.err) 6402 ac_status=$? 6403 cat conftest.err >&5 6404 echo "$as_me:6404: \$? = $ac_status" >&5 6405 if (exit $ac_status) && test -s "$ac_outfile"; then 6406 # The compiler can only warn and ignore the option if not recognized 6407 # So say no if there are warnings other than the usual output. 6408 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6409 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6410 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6411 lt_cv_prog_compiler_rtti_exceptions=yes 6412 fi 6413 fi 6414 $rm conftest* 6415 6416fi 6417echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6418echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6419 6420if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6421 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6422else 6423 : 6424fi 6425 6426fi 6427 6428lt_prog_compiler_wl= 6429lt_prog_compiler_pic= 6430lt_prog_compiler_static= 6431 6432echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6433echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6434 6435 if test "$GCC" = yes; then 6436 lt_prog_compiler_wl='-Wl,' 6437 lt_prog_compiler_static='-static' 6438 6439 case $host_os in 6440 aix*) 6441 # All AIX code is PIC. 6442 if test "$host_cpu" = ia64; then 6443 # AIX 5 now supports IA64 processor 6444 lt_prog_compiler_static='-Bstatic' 6445 fi 6446 ;; 6447 6448 amigaos*) 6449 # FIXME: we need at least 68020 code to build shared libraries, but 6450 # adding the `-m68020' flag to GCC prevents building anything better, 6451 # like `-m68040'. 6452 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6453 ;; 6454 6455 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6456 # PIC is the default for these OSes. 6457 ;; 6458 6459 mingw* | pw32* | os2*) 6460 # This hack is so that the source file can tell whether it is being 6461 # built for inclusion in a dll (and should export symbols for example). 6462 lt_prog_compiler_pic='-DDLL_EXPORT' 6463 ;; 6464 6465 darwin* | rhapsody*) 6466 # PIC is the default on this platform 6467 # Common symbols not allowed in MH_DYLIB files 6468 lt_prog_compiler_pic='-fno-common' 6469 ;; 6470 6471 interix3*) 6472 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6473 # Instead, we relocate shared libraries at runtime. 6474 ;; 6475 6476 msdosdjgpp*) 6477 # Just because we use GCC doesn't mean we suddenly get shared libraries 6478 # on systems that don't support them. 6479 lt_prog_compiler_can_build_shared=no 6480 enable_shared=no 6481 ;; 6482 6483 sysv4*MP*) 6484 if test -d /usr/nec; then 6485 lt_prog_compiler_pic=-Kconform_pic 6486 fi 6487 ;; 6488 6489 hpux*) 6490 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6491 # not for PA HP-UX. 6492 case $host_cpu in 6493 hppa*64*|ia64*) 6494 # +Z the default 6495 ;; 6496 *) 6497 lt_prog_compiler_pic='-fPIC' 6498 ;; 6499 esac 6500 ;; 6501 6502 *) 6503 lt_prog_compiler_pic='-fPIC' 6504 ;; 6505 esac 6506 else 6507 # PORTME Check for flag to pass linker flags through the system compiler. 6508 case $host_os in 6509 aix*) 6510 lt_prog_compiler_wl='-Wl,' 6511 if test "$host_cpu" = ia64; then 6512 # AIX 5 now supports IA64 processor 6513 lt_prog_compiler_static='-Bstatic' 6514 else 6515 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6516 fi 6517 ;; 6518 darwin*) 6519 # PIC is the default on this platform 6520 # Common symbols not allowed in MH_DYLIB files 6521 case $cc_basename in 6522 xlc*) 6523 lt_prog_compiler_pic='-qnocommon' 6524 lt_prog_compiler_wl='-Wl,' 6525 ;; 6526 esac 6527 ;; 6528 6529 mingw* | pw32* | os2*) 6530 # This hack is so that the source file can tell whether it is being 6531 # built for inclusion in a dll (and should export symbols for example). 6532 lt_prog_compiler_pic='-DDLL_EXPORT' 6533 ;; 6534 6535 hpux9* | hpux10* | hpux11*) 6536 lt_prog_compiler_wl='-Wl,' 6537 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6538 # not for PA HP-UX. 6539 case $host_cpu in 6540 hppa*64*|ia64*) 6541 # +Z the default 6542 ;; 6543 *) 6544 lt_prog_compiler_pic='+Z' 6545 ;; 6546 esac 6547 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6548 lt_prog_compiler_static='${wl}-a ${wl}archive' 6549 ;; 6550 6551 irix5* | irix6* | nonstopux*) 6552 lt_prog_compiler_wl='-Wl,' 6553 # PIC (with -KPIC) is the default. 6554 lt_prog_compiler_static='-non_shared' 6555 ;; 6556 6557 newsos6) 6558 lt_prog_compiler_pic='-KPIC' 6559 lt_prog_compiler_static='-Bstatic' 6560 ;; 6561 6562 linux*) 6563 case $cc_basename in 6564 icc* | ecc*) 6565 lt_prog_compiler_wl='-Wl,' 6566 lt_prog_compiler_pic='-KPIC' 6567 lt_prog_compiler_static='-static' 6568 ;; 6569 pgcc* | pgf77* | pgf90* | pgf95*) 6570 # Portland Group compilers (*not* the Pentium gcc compiler, 6571 # which looks to be a dead project) 6572 lt_prog_compiler_wl='-Wl,' 6573 lt_prog_compiler_pic='-fpic' 6574 lt_prog_compiler_static='-Bstatic' 6575 ;; 6576 ccc*) 6577 lt_prog_compiler_wl='-Wl,' 6578 # All Alpha code is PIC. 6579 lt_prog_compiler_static='-non_shared' 6580 ;; 6581 esac 6582 ;; 6583 6584 osf3* | osf4* | osf5*) 6585 lt_prog_compiler_wl='-Wl,' 6586 # All OSF/1 code is PIC. 6587 lt_prog_compiler_static='-non_shared' 6588 ;; 6589 6590 solaris*) 6591 lt_prog_compiler_pic='-KPIC' 6592 lt_prog_compiler_static='-Bstatic' 6593 case $cc_basename in 6594 f77* | f90* | f95*) 6595 lt_prog_compiler_wl='-Qoption ld ';; 6596 *) 6597 lt_prog_compiler_wl='-Wl,';; 6598 esac 6599 ;; 6600 6601 sunos4*) 6602 lt_prog_compiler_wl='-Qoption ld ' 6603 lt_prog_compiler_pic='-PIC' 6604 lt_prog_compiler_static='-Bstatic' 6605 ;; 6606 6607 sysv4 | sysv4.2uw2* | sysv4.3*) 6608 lt_prog_compiler_wl='-Wl,' 6609 lt_prog_compiler_pic='-KPIC' 6610 lt_prog_compiler_static='-Bstatic' 6611 ;; 6612 6613 sysv4*MP*) 6614 if test -d /usr/nec ;then 6615 lt_prog_compiler_pic='-Kconform_pic' 6616 lt_prog_compiler_static='-Bstatic' 6617 fi 6618 ;; 6619 6620 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6621 lt_prog_compiler_wl='-Wl,' 6622 lt_prog_compiler_pic='-KPIC' 6623 lt_prog_compiler_static='-Bstatic' 6624 ;; 6625 6626 unicos*) 6627 lt_prog_compiler_wl='-Wl,' 6628 lt_prog_compiler_can_build_shared=no 6629 ;; 6630 6631 uts4*) 6632 lt_prog_compiler_pic='-pic' 6633 lt_prog_compiler_static='-Bstatic' 6634 ;; 6635 6636 *) 6637 lt_prog_compiler_can_build_shared=no 6638 ;; 6639 esac 6640 fi 6641 6642echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6643echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6644 6645# 6646# Check to make sure the PIC flag actually works. 6647# 6648if test -n "$lt_prog_compiler_pic"; then 6649 6650echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6651echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6652if test "${lt_prog_compiler_pic_works+set}" = set; then 6653 echo $ECHO_N "(cached) $ECHO_C" >&6 6654else 6655 lt_prog_compiler_pic_works=no 6656 ac_outfile=conftest.$ac_objext 6657 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6658 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6659 # Insert the option either (1) after the last *FLAGS variable, or 6660 # (2) before a word containing "conftest.", or (3) at the end. 6661 # Note that $ac_compile itself does not contain backslashes and begins 6662 # with a dollar sign (not a hyphen), so the echo should work correctly. 6663 # The option is referenced via a variable to avoid confusing sed. 6664 lt_compile=`echo "$ac_compile" | $SED \ 6665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6667 -e 's:$: $lt_compiler_flag:'` 6668 (eval echo "\"\$as_me:6668: $lt_compile\"" >&5) 6669 (eval "$lt_compile" 2>conftest.err) 6670 ac_status=$? 6671 cat conftest.err >&5 6672 echo "$as_me:6672: \$? = $ac_status" >&5 6673 if (exit $ac_status) && test -s "$ac_outfile"; then 6674 # The compiler can only warn and ignore the option if not recognized 6675 # So say no if there are warnings other than the usual output. 6676 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6678 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6679 lt_prog_compiler_pic_works=yes 6680 fi 6681 fi 6682 $rm conftest* 6683 6684fi 6685echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6686echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6687 6688if test x"$lt_prog_compiler_pic_works" = xyes; then 6689 case $lt_prog_compiler_pic in 6690 "" | " "*) ;; 6691 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6692 esac 6693else 6694 lt_prog_compiler_pic= 6695 lt_prog_compiler_can_build_shared=no 6696fi 6697 6698fi 6699case $host_os in 6700 # For platforms which do not support PIC, -DPIC is meaningless: 6701 *djgpp*) 6702 lt_prog_compiler_pic= 6703 ;; 6704 *) 6705 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6706 ;; 6707esac 6708 6709# 6710# Check to make sure the static flag actually works. 6711# 6712wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 6713echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 6714echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 6715if test "${lt_prog_compiler_static_works+set}" = set; then 6716 echo $ECHO_N "(cached) $ECHO_C" >&6 6717else 6718 lt_prog_compiler_static_works=no 6719 save_LDFLAGS="$LDFLAGS" 6720 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 6721 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6722 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6723 # The linker can only warn and ignore the option if not recognized 6724 # So say no if there are warnings 6725 if test -s conftest.err; then 6726 # Append any errors to the config.log. 6727 cat conftest.err 1>&5 6728 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 6729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6730 if diff conftest.exp conftest.er2 >/dev/null; then 6731 lt_prog_compiler_static_works=yes 6732 fi 6733 else 6734 lt_prog_compiler_static_works=yes 6735 fi 6736 fi 6737 $rm conftest* 6738 LDFLAGS="$save_LDFLAGS" 6739 6740fi 6741echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6742echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6743 6744if test x"$lt_prog_compiler_static_works" = xyes; then 6745 : 6746else 6747 lt_prog_compiler_static= 6748fi 6749 6750 6751echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6752echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6753if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6754 echo $ECHO_N "(cached) $ECHO_C" >&6 6755else 6756 lt_cv_prog_compiler_c_o=no 6757 $rm -r conftest 2>/dev/null 6758 mkdir conftest 6759 cd conftest 6760 mkdir out 6761 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6762 6763 lt_compiler_flag="-o out/conftest2.$ac_objext" 6764 # Insert the option either (1) after the last *FLAGS variable, or 6765 # (2) before a word containing "conftest.", or (3) at the end. 6766 # Note that $ac_compile itself does not contain backslashes and begins 6767 # with a dollar sign (not a hyphen), so the echo should work correctly. 6768 lt_compile=`echo "$ac_compile" | $SED \ 6769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6771 -e 's:$: $lt_compiler_flag:'` 6772 (eval echo "\"\$as_me:6772: $lt_compile\"" >&5) 6773 (eval "$lt_compile" 2>out/conftest.err) 6774 ac_status=$? 6775 cat out/conftest.err >&5 6776 echo "$as_me:6776: \$? = $ac_status" >&5 6777 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6778 then 6779 # The compiler can only warn and ignore the option if not recognized 6780 # So say no if there are warnings 6781 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 6782 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 6783 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6784 lt_cv_prog_compiler_c_o=yes 6785 fi 6786 fi 6787 chmod u+w . 2>&5 6788 $rm conftest* 6789 # SGI C++ compiler will create directory out/ii_files/ for 6790 # template instantiation 6791 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6792 $rm out/* && rmdir out 6793 cd .. 6794 rmdir conftest 6795 $rm conftest* 6796 6797fi 6798echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6799echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6800 6801 6802hard_links="nottested" 6803if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6804 # do not overwrite the value of need_locks provided by the user 6805 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6806echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6807 hard_links=yes 6808 $rm conftest* 6809 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6810 touch conftest.a 6811 ln conftest.a conftest.b 2>&5 || hard_links=no 6812 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6813 echo "$as_me:$LINENO: result: $hard_links" >&5 6814echo "${ECHO_T}$hard_links" >&6 6815 if test "$hard_links" = no; then 6816 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6817echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6818 need_locks=warn 6819 fi 6820else 6821 need_locks=no 6822fi 6823 6824echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6825echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6826 6827 runpath_var= 6828 allow_undefined_flag= 6829 enable_shared_with_static_runtimes=no 6830 archive_cmds= 6831 archive_expsym_cmds= 6832 old_archive_From_new_cmds= 6833 old_archive_from_expsyms_cmds= 6834 export_dynamic_flag_spec= 6835 whole_archive_flag_spec= 6836 thread_safe_flag_spec= 6837 hardcode_libdir_flag_spec= 6838 hardcode_libdir_flag_spec_ld= 6839 hardcode_libdir_separator= 6840 hardcode_direct=no 6841 hardcode_minus_L=no 6842 hardcode_shlibpath_var=unsupported 6843 link_all_deplibs=unknown 6844 hardcode_automatic=no 6845 module_cmds= 6846 module_expsym_cmds= 6847 always_export_symbols=no 6848 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6849 # include_expsyms should be a list of space-separated symbols to be *always* 6850 # included in the symbol list 6851 include_expsyms= 6852 # exclude_expsyms can be an extended regexp of symbols to exclude 6853 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6854 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6855 # as well as any symbol that contains `d'. 6856 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6857 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6858 # platforms (ab)use it in PIC code, but their linkers get confused if 6859 # the symbol is explicitly referenced. Since portable code cannot 6860 # rely on this symbol name, it's probably fine to never include it in 6861 # preloaded symbol tables. 6862 extract_expsyms_cmds= 6863 # Just being paranoid about ensuring that cc_basename is set. 6864 for cc_temp in $compiler""; do 6865 case $cc_temp in 6866 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6867 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6868 \-*) ;; 6869 *) break;; 6870 esac 6871done 6872cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6873 6874 case $host_os in 6875 cygwin* | mingw* | pw32*) 6876 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6877 # When not using gcc, we currently assume that we are using 6878 # Microsoft Visual C++. 6879 if test "$GCC" != yes; then 6880 with_gnu_ld=no 6881 fi 6882 ;; 6883 interix*) 6884 # we just hope/assume this is gcc and not c89 (= MSVC++) 6885 with_gnu_ld=yes 6886 ;; 6887 openbsd*) 6888 with_gnu_ld=no 6889 ;; 6890 esac 6891 6892 ld_shlibs=yes 6893 if test "$with_gnu_ld" = yes; then 6894 # If archive_cmds runs LD, not CC, wlarc should be empty 6895 wlarc='${wl}' 6896 6897 # Set some defaults for GNU ld with shared library support. These 6898 # are reset later if shared libraries are not supported. Putting them 6899 # here allows them to be overridden if necessary. 6900 runpath_var=LD_RUN_PATH 6901 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6902 export_dynamic_flag_spec='${wl}--export-dynamic' 6903 # ancient GNU ld didn't support --whole-archive et. al. 6904 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6905 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6906 else 6907 whole_archive_flag_spec= 6908 fi 6909 supports_anon_versioning=no 6910 case `$LD -v 2>/dev/null` in 6911 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6912 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6913 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6914 *\ 2.11.*) ;; # other 2.11 versions 6915 *) supports_anon_versioning=yes ;; 6916 esac 6917 6918 # See if GNU ld supports shared libraries. 6919 case $host_os in 6920 aix3* | aix4* | aix5*) 6921 # On AIX/PPC, the GNU linker is very broken 6922 if test "$host_cpu" != ia64; then 6923 ld_shlibs=no 6924 cat <<EOF 1>&2 6925 6926*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6927*** to be unable to reliably create shared libraries on AIX. 6928*** Therefore, libtool is disabling shared libraries support. If you 6929*** really care for shared libraries, you may want to modify your PATH 6930*** so that a non-GNU linker is found, and then restart. 6931 6932EOF 6933 fi 6934 ;; 6935 6936 amigaos*) 6937 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)' 6938 hardcode_libdir_flag_spec='-L$libdir' 6939 hardcode_minus_L=yes 6940 6941 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6942 # that the semantics of dynamic libraries on AmigaOS, at least up 6943 # to version 4, is to share data among multiple programs linked 6944 # with the same dynamic library. Since this doesn't match the 6945 # behavior of shared libraries on other platforms, we can't use 6946 # them. 6947 ld_shlibs=no 6948 ;; 6949 6950 beos*) 6951 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6952 allow_undefined_flag=unsupported 6953 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6954 # support --undefined. This deserves some investigation. FIXME 6955 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6956 else 6957 ld_shlibs=no 6958 fi 6959 ;; 6960 6961 cygwin* | mingw* | pw32*) 6962 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6963 # as there is no search path for DLLs. 6964 hardcode_libdir_flag_spec='-L$libdir' 6965 allow_undefined_flag=unsupported 6966 always_export_symbols=no 6967 enable_shared_with_static_runtimes=yes 6968 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6969 6970 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6972 # If the export-symbols file already is a .def file (1st line 6973 # is EXPORTS), use it as is; otherwise, prepend... 6974 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6975 cp $export_symbols $output_objdir/$soname.def; 6976 else 6977 echo EXPORTS > $output_objdir/$soname.def; 6978 cat $export_symbols >> $output_objdir/$soname.def; 6979 fi~ 6980 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6981 else 6982 ld_shlibs=no 6983 fi 6984 ;; 6985 6986 interix3*) 6987 hardcode_direct=no 6988 hardcode_shlibpath_var=no 6989 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6990 export_dynamic_flag_spec='${wl}-E' 6991 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6992 # Instead, shared libraries are loaded at an image base (0x10000000 by 6993 # default) and relocated if they conflict, which is a slow very memory 6994 # consuming and fragmenting process. To avoid this, we pick a random, 6995 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6996 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6997 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6998 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' 6999 ;; 7000 7001 linux*) 7002 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7003 tmp_addflag= 7004 case $cc_basename,$host_cpu in 7005 pgcc*) # Portland Group C compiler 7006 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' 7007 tmp_addflag=' $pic_flag' 7008 ;; 7009 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7010 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' 7011 tmp_addflag=' $pic_flag -Mnomain' ;; 7012 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7013 tmp_addflag=' -i_dynamic' ;; 7014 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7015 tmp_addflag=' -i_dynamic -nofor_main' ;; 7016 ifc* | ifort*) # Intel Fortran compiler 7017 tmp_addflag=' -nofor_main' ;; 7018 esac 7019 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7020 7021 if test $supports_anon_versioning = yes; then 7022 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7023 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7024 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7025 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7026 fi 7027 else 7028 ld_shlibs=no 7029 fi 7030 ;; 7031 7032 netbsd*) 7033 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7034 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7035 wlarc= 7036 else 7037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7038 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7039 fi 7040 ;; 7041 7042 solaris*) 7043 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7044 ld_shlibs=no 7045 cat <<EOF 1>&2 7046 7047*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7048*** create shared libraries on Solaris systems. Therefore, libtool 7049*** is disabling shared libraries support. We urge you to upgrade GNU 7050*** binutils to release 2.9.1 or newer. Another option is to modify 7051*** your PATH or compiler configuration so that the native linker is 7052*** used, and then restart. 7053 7054EOF 7055 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7057 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7058 else 7059 ld_shlibs=no 7060 fi 7061 ;; 7062 7063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7064 case `$LD -v 2>&1` in 7065 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7066 ld_shlibs=no 7067 cat <<_LT_EOF 1>&2 7068 7069*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7070*** reliably create shared libraries on SCO systems. Therefore, libtool 7071*** is disabling shared libraries support. We urge you to upgrade GNU 7072*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7073*** your PATH or compiler configuration so that the native linker is 7074*** used, and then restart. 7075 7076_LT_EOF 7077 ;; 7078 *) 7079 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7080 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7081 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7082 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7083 else 7084 ld_shlibs=no 7085 fi 7086 ;; 7087 esac 7088 ;; 7089 7090 sunos4*) 7091 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7092 wlarc= 7093 hardcode_direct=yes 7094 hardcode_shlibpath_var=no 7095 ;; 7096 7097 *) 7098 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7099 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7100 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7101 else 7102 ld_shlibs=no 7103 fi 7104 ;; 7105 esac 7106 7107 if test "$ld_shlibs" = no; then 7108 runpath_var= 7109 hardcode_libdir_flag_spec= 7110 export_dynamic_flag_spec= 7111 whole_archive_flag_spec= 7112 fi 7113 else 7114 # PORTME fill in a description of your system's linker (not GNU ld) 7115 case $host_os in 7116 aix3*) 7117 allow_undefined_flag=unsupported 7118 always_export_symbols=yes 7119 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' 7120 # Note: this linker hardcodes the directories in LIBPATH if there 7121 # are no directories specified by -L. 7122 hardcode_minus_L=yes 7123 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7124 # Neither direct hardcoding nor static linking is supported with a 7125 # broken collect2. 7126 hardcode_direct=unsupported 7127 fi 7128 ;; 7129 7130 aix4* | aix5*) 7131 if test "$host_cpu" = ia64; then 7132 # On IA64, the linker does run time linking by default, so we don't 7133 # have to do anything special. 7134 aix_use_runtimelinking=no 7135 exp_sym_flag='-Bexport' 7136 no_entry_flag="" 7137 else 7138 # If we're using GNU nm, then we don't want the "-C" option. 7139 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7140 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7141 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' 7142 else 7143 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' 7144 fi 7145 aix_use_runtimelinking=no 7146 7147 # Test if we are trying to use run time linking or normal 7148 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7149 # need to do runtime linking. 7150 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7151 for ld_flag in $LDFLAGS; do 7152 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7153 aix_use_runtimelinking=yes 7154 break 7155 fi 7156 done 7157 ;; 7158 esac 7159 7160 exp_sym_flag='-bexport' 7161 no_entry_flag='-bnoentry' 7162 fi 7163 7164 # When large executables or shared objects are built, AIX ld can 7165 # have problems creating the table of contents. If linking a library 7166 # or program results in "error TOC overflow" add -mminimal-toc to 7167 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7168 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7169 7170 archive_cmds='' 7171 hardcode_direct=yes 7172 hardcode_libdir_separator=':' 7173 link_all_deplibs=yes 7174 7175 if test "$GCC" = yes; then 7176 case $host_os in aix4.[012]|aix4.[012].*) 7177 # We only want to do this on AIX 4.2 and lower, the check 7178 # below for broken collect2 doesn't work under 4.3+ 7179 collect2name=`${CC} -print-prog-name=collect2` 7180 if test -f "$collect2name" && \ 7181 strings "$collect2name" | grep resolve_lib_name >/dev/null 7182 then 7183 # We have reworked collect2 7184 hardcode_direct=yes 7185 else 7186 # We have old collect2 7187 hardcode_direct=unsupported 7188 # It fails to find uninstalled libraries when the uninstalled 7189 # path is not listed in the libpath. Setting hardcode_minus_L 7190 # to unsupported forces relinking 7191 hardcode_minus_L=yes 7192 hardcode_libdir_flag_spec='-L$libdir' 7193 hardcode_libdir_separator= 7194 fi 7195 ;; 7196 esac 7197 shared_flag='-shared' 7198 if test "$aix_use_runtimelinking" = yes; then 7199 shared_flag="$shared_flag "'${wl}-G' 7200 fi 7201 else 7202 # not using gcc 7203 if test "$host_cpu" = ia64; then 7204 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7205 # chokes on -Wl,-G. The following line is correct: 7206 shared_flag='-G' 7207 else 7208 if test "$aix_use_runtimelinking" = yes; then 7209 shared_flag='${wl}-G' 7210 else 7211 shared_flag='${wl}-bM:SRE' 7212 fi 7213 fi 7214 fi 7215 7216 # It seems that -bexpall does not export symbols beginning with 7217 # underscore (_), so it is better to generate a list of symbols to export. 7218 always_export_symbols=yes 7219 if test "$aix_use_runtimelinking" = yes; then 7220 # Warning - without using the other runtime loading flags (-brtl), 7221 # -berok will link without error, but may produce a broken library. 7222 allow_undefined_flag='-berok' 7223 # Determine the default libpath from the value encoded in an empty executable. 7224 cat >conftest.$ac_ext <<_ACEOF 7225/* confdefs.h. */ 7226_ACEOF 7227cat confdefs.h >>conftest.$ac_ext 7228cat >>conftest.$ac_ext <<_ACEOF 7229/* end confdefs.h. */ 7230 7231int 7232main () 7233{ 7234 7235 ; 7236 return 0; 7237} 7238_ACEOF 7239rm -f conftest.$ac_objext conftest$ac_exeext 7240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7241 (eval $ac_link) 2>conftest.er1 7242 ac_status=$? 7243 grep -v '^ *+' conftest.er1 >conftest.err 7244 rm -f conftest.er1 7245 cat conftest.err >&5 7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7247 (exit $ac_status); } && 7248 { ac_try='test -z "$ac_c_werror_flag" 7249 || test ! -s conftest.err' 7250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7251 (eval $ac_try) 2>&5 7252 ac_status=$? 7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7254 (exit $ac_status); }; } && 7255 { ac_try='test -s conftest$ac_exeext' 7256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7257 (eval $ac_try) 2>&5 7258 ac_status=$? 7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7260 (exit $ac_status); }; }; then 7261 7262aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7263}'` 7264# Check for a 64-bit object if we didn't find anything. 7265if 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; } 7266}'`; fi 7267else 7268 echo "$as_me: failed program was:" >&5 7269sed 's/^/| /' conftest.$ac_ext >&5 7270 7271fi 7272rm -f conftest.err conftest.$ac_objext \ 7273 conftest$ac_exeext conftest.$ac_ext 7274if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7275 7276 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7277 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" 7278 else 7279 if test "$host_cpu" = ia64; then 7280 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7281 allow_undefined_flag="-z nodefs" 7282 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" 7283 else 7284 # Determine the default libpath from the value encoded in an empty executable. 7285 cat >conftest.$ac_ext <<_ACEOF 7286/* confdefs.h. */ 7287_ACEOF 7288cat confdefs.h >>conftest.$ac_ext 7289cat >>conftest.$ac_ext <<_ACEOF 7290/* end confdefs.h. */ 7291 7292int 7293main () 7294{ 7295 7296 ; 7297 return 0; 7298} 7299_ACEOF 7300rm -f conftest.$ac_objext conftest$ac_exeext 7301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7302 (eval $ac_link) 2>conftest.er1 7303 ac_status=$? 7304 grep -v '^ *+' conftest.er1 >conftest.err 7305 rm -f conftest.er1 7306 cat conftest.err >&5 7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7308 (exit $ac_status); } && 7309 { ac_try='test -z "$ac_c_werror_flag" 7310 || test ! -s conftest.err' 7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7312 (eval $ac_try) 2>&5 7313 ac_status=$? 7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7315 (exit $ac_status); }; } && 7316 { ac_try='test -s conftest$ac_exeext' 7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7318 (eval $ac_try) 2>&5 7319 ac_status=$? 7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7321 (exit $ac_status); }; }; then 7322 7323aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7324}'` 7325# Check for a 64-bit object if we didn't find anything. 7326if 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; } 7327}'`; fi 7328else 7329 echo "$as_me: failed program was:" >&5 7330sed 's/^/| /' conftest.$ac_ext >&5 7331 7332fi 7333rm -f conftest.err conftest.$ac_objext \ 7334 conftest$ac_exeext conftest.$ac_ext 7335if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7336 7337 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7338 # Warning - without using the other run time loading flags, 7339 # -berok will link without error, but may produce a broken library. 7340 no_undefined_flag=' ${wl}-bernotok' 7341 allow_undefined_flag=' ${wl}-berok' 7342 # Exported symbols can be pulled into shared objects from archives 7343 whole_archive_flag_spec='$convenience' 7344 archive_cmds_need_lc=yes 7345 # This is similar to how AIX traditionally builds its shared libraries. 7346 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' 7347 fi 7348 fi 7349 ;; 7350 7351 amigaos*) 7352 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)' 7353 hardcode_libdir_flag_spec='-L$libdir' 7354 hardcode_minus_L=yes 7355 # see comment about different semantics on the GNU ld section 7356 ld_shlibs=no 7357 ;; 7358 7359 bsdi[45]*) 7360 export_dynamic_flag_spec=-rdynamic 7361 ;; 7362 7363 cygwin* | mingw* | pw32*) 7364 # When not using gcc, we currently assume that we are using 7365 # Microsoft Visual C++. 7366 # hardcode_libdir_flag_spec is actually meaningless, as there is 7367 # no search path for DLLs. 7368 hardcode_libdir_flag_spec=' ' 7369 allow_undefined_flag=unsupported 7370 # Tell ltmain to make .lib files, not .a files. 7371 libext=lib 7372 # Tell ltmain to make .dll files, not .so files. 7373 shrext_cmds=".dll" 7374 # FIXME: Setting linknames here is a bad hack. 7375 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7376 # The linker will automatically build a .lib file if we build a DLL. 7377 old_archive_From_new_cmds='true' 7378 # FIXME: Should let the user specify the lib program. 7379 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7380 fix_srcfile_path='`cygpath -w "$srcfile"`' 7381 enable_shared_with_static_runtimes=yes 7382 ;; 7383 7384 darwin* | rhapsody*) 7385 case $host_os in 7386 rhapsody* | darwin1.[012]) 7387 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7388 ;; 7389 *) # Darwin 1.3 on 7390 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7391 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7392 else 7393 case ${MACOSX_DEPLOYMENT_TARGET} in 7394 10.[012]) 7395 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7396 ;; 7397 10.*) 7398 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7399 ;; 7400 esac 7401 fi 7402 ;; 7403 esac 7404 archive_cmds_need_lc=no 7405 hardcode_direct=no 7406 hardcode_automatic=yes 7407 hardcode_shlibpath_var=unsupported 7408 whole_archive_flag_spec='' 7409 link_all_deplibs=yes 7410 if test "$GCC" = yes ; then 7411 output_verbose_link_cmd='echo' 7412 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7413 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7414 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7415 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}' 7416 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}' 7417 else 7418 case $cc_basename in 7419 xlc*) 7420 output_verbose_link_cmd='echo' 7421 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7422 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7423 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7424 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}' 7425 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}' 7426 ;; 7427 *) 7428 ld_shlibs=no 7429 ;; 7430 esac 7431 fi 7432 ;; 7433 7434 dgux*) 7435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7436 hardcode_libdir_flag_spec='-L$libdir' 7437 hardcode_shlibpath_var=no 7438 ;; 7439 7440 freebsd1*) 7441 ld_shlibs=no 7442 ;; 7443 7444 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7445 # support. Future versions do this automatically, but an explicit c++rt0.o 7446 # does not break anything, and helps significantly (at the cost of a little 7447 # extra space). 7448 freebsd2.2*) 7449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7450 hardcode_libdir_flag_spec='-R$libdir' 7451 hardcode_direct=yes 7452 hardcode_shlibpath_var=no 7453 ;; 7454 7455 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7456 freebsd2*) 7457 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7458 hardcode_direct=yes 7459 hardcode_minus_L=yes 7460 hardcode_shlibpath_var=no 7461 ;; 7462 7463 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7464 freebsd* | kfreebsd*-gnu | dragonfly*) 7465 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7466 hardcode_libdir_flag_spec='-R$libdir' 7467 hardcode_direct=yes 7468 hardcode_shlibpath_var=no 7469 ;; 7470 7471 hpux9*) 7472 if test "$GCC" = yes; then 7473 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' 7474 else 7475 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' 7476 fi 7477 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7478 hardcode_libdir_separator=: 7479 hardcode_direct=yes 7480 7481 # hardcode_minus_L: Not really in the search PATH, 7482 # but as the default location of the library. 7483 hardcode_minus_L=yes 7484 export_dynamic_flag_spec='${wl}-E' 7485 ;; 7486 7487 hpux10*) 7488 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7489 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7490 else 7491 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7492 fi 7493 if test "$with_gnu_ld" = no; then 7494 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7495 hardcode_libdir_separator=: 7496 7497 hardcode_direct=yes 7498 export_dynamic_flag_spec='${wl}-E' 7499 7500 # hardcode_minus_L: Not really in the search PATH, 7501 # but as the default location of the library. 7502 hardcode_minus_L=yes 7503 fi 7504 ;; 7505 7506 hpux11*) 7507 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7508 case $host_cpu in 7509 hppa*64*) 7510 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7511 ;; 7512 ia64*) 7513 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7514 ;; 7515 *) 7516 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7517 ;; 7518 esac 7519 else 7520 case $host_cpu in 7521 hppa*64*) 7522 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7523 ;; 7524 ia64*) 7525 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7526 ;; 7527 *) 7528 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7529 ;; 7530 esac 7531 fi 7532 if test "$with_gnu_ld" = no; then 7533 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7534 hardcode_libdir_separator=: 7535 7536 case $host_cpu in 7537 hppa*64*|ia64*) 7538 hardcode_libdir_flag_spec_ld='+b $libdir' 7539 hardcode_direct=no 7540 hardcode_shlibpath_var=no 7541 ;; 7542 *) 7543 hardcode_direct=yes 7544 export_dynamic_flag_spec='${wl}-E' 7545 7546 # hardcode_minus_L: Not really in the search PATH, 7547 # but as the default location of the library. 7548 hardcode_minus_L=yes 7549 ;; 7550 esac 7551 fi 7552 ;; 7553 7554 irix5* | irix6* | nonstopux*) 7555 if test "$GCC" = yes; then 7556 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' 7557 else 7558 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' 7559 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7560 fi 7561 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7562 hardcode_libdir_separator=: 7563 link_all_deplibs=yes 7564 ;; 7565 7566 netbsd*) 7567 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7568 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7569 else 7570 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7571 fi 7572 hardcode_libdir_flag_spec='-R$libdir' 7573 hardcode_direct=yes 7574 hardcode_shlibpath_var=no 7575 ;; 7576 7577 newsos6) 7578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7579 hardcode_direct=yes 7580 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7581 hardcode_libdir_separator=: 7582 hardcode_shlibpath_var=no 7583 ;; 7584 7585 openbsd*) 7586 hardcode_direct=yes 7587 hardcode_shlibpath_var=no 7588 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7589 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7590 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7591 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7592 export_dynamic_flag_spec='${wl}-E' 7593 else 7594 case $host_os in 7595 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7597 hardcode_libdir_flag_spec='-R$libdir' 7598 ;; 7599 *) 7600 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7601 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7602 ;; 7603 esac 7604 fi 7605 ;; 7606 7607 os2*) 7608 hardcode_libdir_flag_spec='-L$libdir' 7609 hardcode_minus_L=yes 7610 allow_undefined_flag=unsupported 7611 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' 7612 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7613 ;; 7614 7615 osf3*) 7616 if test "$GCC" = yes; then 7617 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7618 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' 7619 else 7620 allow_undefined_flag=' -expect_unresolved \*' 7621 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' 7622 fi 7623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7624 hardcode_libdir_separator=: 7625 ;; 7626 7627 osf4* | osf5*) # as osf3* with the addition of -msym flag 7628 if test "$GCC" = yes; then 7629 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7630 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' 7631 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7632 else 7633 allow_undefined_flag=' -expect_unresolved \*' 7634 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' 7635 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7636 $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' 7637 7638 # Both c and cxx compiler support -rpath directly 7639 hardcode_libdir_flag_spec='-rpath $libdir' 7640 fi 7641 hardcode_libdir_separator=: 7642 ;; 7643 7644 solaris*) 7645 no_undefined_flag=' -z text' 7646 if test "$GCC" = yes; then 7647 wlarc='${wl}' 7648 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7649 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7650 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7651 else 7652 wlarc='' 7653 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7654 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7655 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7656 fi 7657 hardcode_libdir_flag_spec='-R$libdir' 7658 hardcode_shlibpath_var=no 7659 case $host_os in 7660 solaris2.[0-5] | solaris2.[0-5].*) ;; 7661 *) 7662 # The compiler driver will combine linker options so we 7663 # cannot just pass the convience library names through 7664 # without $wl, iff we do not link with $LD. 7665 # Luckily, gcc supports the same syntax we need for Sun Studio. 7666 # Supported since Solaris 2.6 (maybe 2.5.1?) 7667 case $wlarc in 7668 '') 7669 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7670 *) 7671 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' ;; 7672 esac ;; 7673 esac 7674 link_all_deplibs=yes 7675 ;; 7676 7677 sunos4*) 7678 if test "x$host_vendor" = xsequent; then 7679 # Use $CC to link under sequent, because it throws in some extra .o 7680 # files that make .init and .fini sections work. 7681 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7682 else 7683 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7684 fi 7685 hardcode_libdir_flag_spec='-L$libdir' 7686 hardcode_direct=yes 7687 hardcode_minus_L=yes 7688 hardcode_shlibpath_var=no 7689 ;; 7690 7691 sysv4) 7692 case $host_vendor in 7693 sni) 7694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7695 hardcode_direct=yes # is this really true??? 7696 ;; 7697 siemens) 7698 ## LD is ld it makes a PLAMLIB 7699 ## CC just makes a GrossModule. 7700 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7701 reload_cmds='$CC -r -o $output$reload_objs' 7702 hardcode_direct=no 7703 ;; 7704 motorola) 7705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7706 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7707 ;; 7708 esac 7709 runpath_var='LD_RUN_PATH' 7710 hardcode_shlibpath_var=no 7711 ;; 7712 7713 sysv4.3*) 7714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7715 hardcode_shlibpath_var=no 7716 export_dynamic_flag_spec='-Bexport' 7717 ;; 7718 7719 sysv4*MP*) 7720 if test -d /usr/nec; then 7721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7722 hardcode_shlibpath_var=no 7723 runpath_var=LD_RUN_PATH 7724 hardcode_runpath_var=yes 7725 ld_shlibs=yes 7726 fi 7727 ;; 7728 7729 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 7730 no_undefined_flag='${wl}-z,text' 7731 archive_cmds_need_lc=no 7732 hardcode_shlibpath_var=no 7733 runpath_var='LD_RUN_PATH' 7734 7735 if test "$GCC" = yes; then 7736 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7737 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7738 else 7739 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7740 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7741 fi 7742 ;; 7743 7744 sysv5* | sco3.2v5* | sco5v6*) 7745 # Note: We can NOT use -z defs as we might desire, because we do not 7746 # link with -lc, and that would cause any symbols used from libc to 7747 # always be unresolved, which means just about no library would 7748 # ever link correctly. If we're not using GNU ld we use -z text 7749 # though, which does catch some bad symbols but isn't as heavy-handed 7750 # as -z defs. 7751 no_undefined_flag='${wl}-z,text' 7752 allow_undefined_flag='${wl}-z,nodefs' 7753 archive_cmds_need_lc=no 7754 hardcode_shlibpath_var=no 7755 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 7756 hardcode_libdir_separator=':' 7757 link_all_deplibs=yes 7758 export_dynamic_flag_spec='${wl}-Bexport' 7759 runpath_var='LD_RUN_PATH' 7760 7761 if test "$GCC" = yes; then 7762 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7763 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7764 else 7765 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7766 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7767 fi 7768 ;; 7769 7770 uts4*) 7771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7772 hardcode_libdir_flag_spec='-L$libdir' 7773 hardcode_shlibpath_var=no 7774 ;; 7775 7776 *) 7777 ld_shlibs=no 7778 ;; 7779 esac 7780 fi 7781 7782echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7783echo "${ECHO_T}$ld_shlibs" >&6 7784test "$ld_shlibs" = no && can_build_shared=no 7785 7786# 7787# Do we need to explicitly link libc? 7788# 7789case "x$archive_cmds_need_lc" in 7790x|xyes) 7791 # Assume -lc should be added 7792 archive_cmds_need_lc=yes 7793 7794 if test "$enable_shared" = yes && test "$GCC" = yes; then 7795 case $archive_cmds in 7796 *'~'*) 7797 # FIXME: we may have to deal with multi-command sequences. 7798 ;; 7799 '$CC '*) 7800 # Test whether the compiler implicitly links with -lc since on some 7801 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7802 # to ld, don't add -lc before -lgcc. 7803 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7804echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7805 $rm conftest* 7806 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7807 7808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7809 (eval $ac_compile) 2>&5 7810 ac_status=$? 7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7812 (exit $ac_status); } 2>conftest.err; then 7813 soname=conftest 7814 lib=conftest 7815 libobjs=conftest.$ac_objext 7816 deplibs= 7817 wl=$lt_prog_compiler_wl 7818 pic_flag=$lt_prog_compiler_pic 7819 compiler_flags=-v 7820 linker_flags=-v 7821 verstring= 7822 output_objdir=. 7823 libname=conftest 7824 lt_save_allow_undefined_flag=$allow_undefined_flag 7825 allow_undefined_flag= 7826 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7827 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7828 ac_status=$? 7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7830 (exit $ac_status); } 7831 then 7832 archive_cmds_need_lc=no 7833 else 7834 archive_cmds_need_lc=yes 7835 fi 7836 allow_undefined_flag=$lt_save_allow_undefined_flag 7837 else 7838 cat conftest.err 1>&5 7839 fi 7840 $rm conftest* 7841 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7842echo "${ECHO_T}$archive_cmds_need_lc" >&6 7843 ;; 7844 esac 7845 fi 7846 ;; 7847esac 7848 7849echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7850echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7851library_names_spec= 7852libname_spec='lib$name' 7853soname_spec= 7854shrext_cmds=".so" 7855postinstall_cmds= 7856postuninstall_cmds= 7857finish_cmds= 7858finish_eval= 7859shlibpath_var= 7860shlibpath_overrides_runpath=unknown 7861version_type=none 7862dynamic_linker="$host_os ld.so" 7863sys_lib_dlsearch_path_spec="/lib /usr/lib" 7864if test "$GCC" = yes; then 7865 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7866 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7867 # if the path contains ";" then we assume it to be the separator 7868 # otherwise default to the standard path separator (i.e. ":") - it is 7869 # assumed that no part of a normal pathname contains ";" but that should 7870 # okay in the real world where ";" in dirpaths is itself problematic. 7871 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7872 else 7873 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7874 fi 7875else 7876 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7877fi 7878need_lib_prefix=unknown 7879hardcode_into_libs=no 7880 7881# when you set need_version to no, make sure it does not cause -set_version 7882# flags to be left without arguments 7883need_version=unknown 7884 7885case $host_os in 7886aix3*) 7887 version_type=linux 7888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7889 shlibpath_var=LIBPATH 7890 7891 # AIX 3 has no versioning support, so we append a major version to the name. 7892 soname_spec='${libname}${release}${shared_ext}$major' 7893 ;; 7894 7895aix4* | aix5*) 7896 version_type=linux 7897 need_lib_prefix=no 7898 need_version=no 7899 hardcode_into_libs=yes 7900 if test "$host_cpu" = ia64; then 7901 # AIX 5 supports IA64 7902 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7903 shlibpath_var=LD_LIBRARY_PATH 7904 else 7905 # With GCC up to 2.95.x, collect2 would create an import file 7906 # for dependence libraries. The import file would start with 7907 # the line `#! .'. This would cause the generated library to 7908 # depend on `.', always an invalid library. This was fixed in 7909 # development snapshots of GCC prior to 3.0. 7910 case $host_os in 7911 aix4 | aix4.[01] | aix4.[01].*) 7912 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7913 echo ' yes ' 7914 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7915 : 7916 else 7917 can_build_shared=no 7918 fi 7919 ;; 7920 esac 7921 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7922 # soname into executable. Probably we can add versioning support to 7923 # collect2, so additional links can be useful in future. 7924 if test "$aix_use_runtimelinking" = yes; then 7925 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7926 # instead of lib<name>.a to let people know that these are not 7927 # typical AIX shared libraries. 7928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7929 else 7930 # We preserve .a as extension for shared libraries through AIX4.2 7931 # and later when we are not doing run time linking. 7932 library_names_spec='${libname}${release}.a $libname.a' 7933 soname_spec='${libname}${release}${shared_ext}$major' 7934 fi 7935 shlibpath_var=LIBPATH 7936 fi 7937 ;; 7938 7939amigaos*) 7940 library_names_spec='$libname.ixlibrary $libname.a' 7941 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7942 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' 7943 ;; 7944 7945beos*) 7946 library_names_spec='${libname}${shared_ext}' 7947 dynamic_linker="$host_os ld.so" 7948 shlibpath_var=LIBRARY_PATH 7949 ;; 7950 7951bsdi[45]*) 7952 version_type=linux 7953 need_version=no 7954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7955 soname_spec='${libname}${release}${shared_ext}$major' 7956 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7957 shlibpath_var=LD_LIBRARY_PATH 7958 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7959 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7960 # the default ld.so.conf also contains /usr/contrib/lib and 7961 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7962 # libtool to hard-code these into programs 7963 ;; 7964 7965cygwin* | mingw* | pw32*) 7966 version_type=windows 7967 shrext_cmds=".dll" 7968 need_version=no 7969 need_lib_prefix=no 7970 7971 case $GCC,$host_os in 7972 yes,cygwin* | yes,mingw* | yes,pw32*) 7973 library_names_spec='$libname.dll.a' 7974 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7975 postinstall_cmds='base_file=`basename \${file}`~ 7976 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7977 dldir=$destdir/`dirname \$dlpath`~ 7978 test -d \$dldir || mkdir -p \$dldir~ 7979 $install_prog $dir/$dlname \$dldir/$dlname~ 7980 chmod a+x \$dldir/$dlname' 7981 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7982 dlpath=$dir/\$dldll~ 7983 $rm \$dlpath' 7984 shlibpath_overrides_runpath=yes 7985 7986 case $host_os in 7987 cygwin*) 7988 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7989 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7990 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7991 ;; 7992 mingw*) 7993 # MinGW DLLs use traditional 'lib' prefix 7994 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7995 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7996 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7997 # It is most probably a Windows format PATH printed by 7998 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7999 # path with ; separators, and with drive letters. We can handle the 8000 # drive letters (cygwin fileutils understands them), so leave them, 8001 # especially as we might pass files found there to a mingw objdump, 8002 # which wouldn't understand a cygwinified path. Ahh. 8003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8004 else 8005 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8006 fi 8007 ;; 8008 pw32*) 8009 # pw32 DLLs use 'pw' prefix rather than 'lib' 8010 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8011 ;; 8012 esac 8013 ;; 8014 8015 *) 8016 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8017 ;; 8018 esac 8019 dynamic_linker='Win32 ld.exe' 8020 # FIXME: first we should search . and the directory the executable is in 8021 shlibpath_var=PATH 8022 ;; 8023 8024darwin* | rhapsody*) 8025 dynamic_linker="$host_os dyld" 8026 version_type=darwin 8027 need_lib_prefix=no 8028 need_version=no 8029 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8030 soname_spec='${libname}${release}${major}$shared_ext' 8031 shlibpath_overrides_runpath=yes 8032 shlibpath_var=DYLD_LIBRARY_PATH 8033 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8034 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8035 if test "$GCC" = yes; then 8036 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"` 8037 else 8038 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8039 fi 8040 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8041 ;; 8042 8043dgux*) 8044 version_type=linux 8045 need_lib_prefix=no 8046 need_version=no 8047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8048 soname_spec='${libname}${release}${shared_ext}$major' 8049 shlibpath_var=LD_LIBRARY_PATH 8050 ;; 8051 8052freebsd1*) 8053 dynamic_linker=no 8054 ;; 8055 8056kfreebsd*-gnu) 8057 version_type=linux 8058 need_lib_prefix=no 8059 need_version=no 8060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8061 soname_spec='${libname}${release}${shared_ext}$major' 8062 shlibpath_var=LD_LIBRARY_PATH 8063 shlibpath_overrides_runpath=no 8064 hardcode_into_libs=yes 8065 dynamic_linker='GNU ld.so' 8066 ;; 8067 8068freebsd* | dragonfly*) 8069 # DragonFly does not have aout. When/if they implement a new 8070 # versioning mechanism, adjust this. 8071 if test -x /usr/bin/objformat; then 8072 objformat=`/usr/bin/objformat` 8073 else 8074 case $host_os in 8075 freebsd[123]*) objformat=aout ;; 8076 *) objformat=elf ;; 8077 esac 8078 fi 8079 version_type=freebsd-$objformat 8080 case $version_type in 8081 freebsd-elf*) 8082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8083 need_version=no 8084 need_lib_prefix=no 8085 ;; 8086 freebsd-*) 8087 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8088 need_version=yes 8089 ;; 8090 esac 8091 shlibpath_var=LD_LIBRARY_PATH 8092 case $host_os in 8093 freebsd2*) 8094 shlibpath_overrides_runpath=yes 8095 ;; 8096 freebsd3.[01]* | freebsdelf3.[01]*) 8097 shlibpath_overrides_runpath=yes 8098 hardcode_into_libs=yes 8099 ;; 8100 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8101 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8102 shlibpath_overrides_runpath=no 8103 hardcode_into_libs=yes 8104 ;; 8105 freebsd*) # from 4.6 on 8106 shlibpath_overrides_runpath=yes 8107 hardcode_into_libs=yes 8108 ;; 8109 esac 8110 ;; 8111 8112gnu*) 8113 version_type=linux 8114 need_lib_prefix=no 8115 need_version=no 8116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8117 soname_spec='${libname}${release}${shared_ext}$major' 8118 shlibpath_var=LD_LIBRARY_PATH 8119 hardcode_into_libs=yes 8120 ;; 8121 8122hpux9* | hpux10* | hpux11*) 8123 # Give a soname corresponding to the major version so that dld.sl refuses to 8124 # link against other versions. 8125 version_type=sunos 8126 need_lib_prefix=no 8127 need_version=no 8128 case $host_cpu in 8129 ia64*) 8130 shrext_cmds='.so' 8131 hardcode_into_libs=yes 8132 dynamic_linker="$host_os dld.so" 8133 shlibpath_var=LD_LIBRARY_PATH 8134 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8136 soname_spec='${libname}${release}${shared_ext}$major' 8137 if test "X$HPUX_IA64_MODE" = X32; then 8138 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8139 else 8140 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8141 fi 8142 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8143 ;; 8144 hppa*64*) 8145 shrext_cmds='.sl' 8146 hardcode_into_libs=yes 8147 dynamic_linker="$host_os dld.sl" 8148 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8149 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8153 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8154 ;; 8155 *) 8156 shrext_cmds='.sl' 8157 dynamic_linker="$host_os dld.sl" 8158 shlibpath_var=SHLIB_PATH 8159 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8161 soname_spec='${libname}${release}${shared_ext}$major' 8162 ;; 8163 esac 8164 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8165 postinstall_cmds='chmod 555 $lib' 8166 ;; 8167 8168interix3*) 8169 version_type=linux 8170 need_lib_prefix=no 8171 need_version=no 8172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8173 soname_spec='${libname}${release}${shared_ext}$major' 8174 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8175 shlibpath_var=LD_LIBRARY_PATH 8176 shlibpath_overrides_runpath=no 8177 hardcode_into_libs=yes 8178 ;; 8179 8180irix5* | irix6* | nonstopux*) 8181 case $host_os in 8182 nonstopux*) version_type=nonstopux ;; 8183 *) 8184 if test "$lt_cv_prog_gnu_ld" = yes; then 8185 version_type=linux 8186 else 8187 version_type=irix 8188 fi ;; 8189 esac 8190 need_lib_prefix=no 8191 need_version=no 8192 soname_spec='${libname}${release}${shared_ext}$major' 8193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8194 case $host_os in 8195 irix5* | nonstopux*) 8196 libsuff= shlibsuff= 8197 ;; 8198 *) 8199 case $LD in # libtool.m4 will add one of these switches to LD 8200 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8201 libsuff= shlibsuff= libmagic=32-bit;; 8202 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8203 libsuff=32 shlibsuff=N32 libmagic=N32;; 8204 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8205 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8206 *) libsuff= shlibsuff= libmagic=never-match;; 8207 esac 8208 ;; 8209 esac 8210 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8211 shlibpath_overrides_runpath=no 8212 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8213 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8214 hardcode_into_libs=yes 8215 ;; 8216 8217# No shared lib support for Linux oldld, aout, or coff. 8218linux*oldld* | linux*aout* | linux*coff*) 8219 dynamic_linker=no 8220 ;; 8221 8222# This must be Linux ELF. 8223linux*) 8224 version_type=linux 8225 need_lib_prefix=no 8226 need_version=no 8227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8228 soname_spec='${libname}${release}${shared_ext}$major' 8229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8230 shlibpath_var=LD_LIBRARY_PATH 8231 shlibpath_overrides_runpath=no 8232 # This implies no fast_install, which is unacceptable. 8233 # Some rework will be needed to allow for fast_install 8234 # before this can be enabled. 8235 hardcode_into_libs=yes 8236 8237 # find out which ABI we are using 8238 libsuff= 8239 case "$host_cpu" in 8240 x86_64*|s390x*|powerpc64*) 8241 echo '#line 8241 "configure"' > conftest.$ac_ext 8242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8243 (eval $ac_compile) 2>&5 8244 ac_status=$? 8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8246 (exit $ac_status); }; then 8247 case `/usr/bin/file conftest.$ac_objext` in 8248 *64-bit*) 8249 libsuff=64 8250 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 8251 ;; 8252 esac 8253 fi 8254 rm -rf conftest* 8255 ;; 8256 esac 8257 8258 # Append ld.so.conf contents to the search path 8259 if test -f /etc/ld.so.conf; then 8260 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' ' '` 8261 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 8262 fi 8263 8264 # We used to test for /lib/ld.so.1 and disable shared libraries on 8265 # powerpc, because MkLinux only supported shared libraries with the 8266 # GNU dynamic linker. Since this was broken with cross compilers, 8267 # most powerpc-linux boxes support dynamic linking these days and 8268 # people can always --disable-shared, the test was removed, and we 8269 # assume the GNU/Linux dynamic linker is in use. 8270 dynamic_linker='GNU/Linux ld.so' 8271 ;; 8272 8273knetbsd*-gnu) 8274 version_type=linux 8275 need_lib_prefix=no 8276 need_version=no 8277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8278 soname_spec='${libname}${release}${shared_ext}$major' 8279 shlibpath_var=LD_LIBRARY_PATH 8280 shlibpath_overrides_runpath=no 8281 hardcode_into_libs=yes 8282 dynamic_linker='GNU ld.so' 8283 ;; 8284 8285netbsd*) 8286 version_type=sunos 8287 need_lib_prefix=no 8288 need_version=no 8289 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8292 dynamic_linker='NetBSD (a.out) ld.so' 8293 else 8294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8295 soname_spec='${libname}${release}${shared_ext}$major' 8296 dynamic_linker='NetBSD ld.elf_so' 8297 fi 8298 shlibpath_var=LD_LIBRARY_PATH 8299 shlibpath_overrides_runpath=yes 8300 hardcode_into_libs=yes 8301 ;; 8302 8303newsos6) 8304 version_type=linux 8305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8306 shlibpath_var=LD_LIBRARY_PATH 8307 shlibpath_overrides_runpath=yes 8308 ;; 8309 8310nto-qnx*) 8311 version_type=linux 8312 need_lib_prefix=no 8313 need_version=no 8314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8315 soname_spec='${libname}${release}${shared_ext}$major' 8316 shlibpath_var=LD_LIBRARY_PATH 8317 shlibpath_overrides_runpath=yes 8318 ;; 8319 8320openbsd*) 8321 version_type=sunos 8322 sys_lib_dlsearch_path_spec="/usr/lib" 8323 need_lib_prefix=no 8324 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8325 case $host_os in 8326 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8327 *) need_version=no ;; 8328 esac 8329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8331 shlibpath_var=LD_LIBRARY_PATH 8332 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8333 case $host_os in 8334 openbsd2.[89] | openbsd2.[89].*) 8335 shlibpath_overrides_runpath=no 8336 ;; 8337 *) 8338 shlibpath_overrides_runpath=yes 8339 ;; 8340 esac 8341 else 8342 shlibpath_overrides_runpath=yes 8343 fi 8344 ;; 8345 8346os2*) 8347 libname_spec='$name' 8348 shrext_cmds=".dll" 8349 need_lib_prefix=no 8350 library_names_spec='$libname${shared_ext} $libname.a' 8351 dynamic_linker='OS/2 ld.exe' 8352 shlibpath_var=LIBPATH 8353 ;; 8354 8355osf3* | osf4* | osf5*) 8356 version_type=osf 8357 need_lib_prefix=no 8358 need_version=no 8359 soname_spec='${libname}${release}${shared_ext}$major' 8360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8361 shlibpath_var=LD_LIBRARY_PATH 8362 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8363 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8364 ;; 8365 8366solaris*) 8367 version_type=linux 8368 need_lib_prefix=no 8369 need_version=no 8370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8371 soname_spec='${libname}${release}${shared_ext}$major' 8372 shlibpath_var=LD_LIBRARY_PATH 8373 shlibpath_overrides_runpath=yes 8374 hardcode_into_libs=yes 8375 # ldd complains unless libraries are executable 8376 postinstall_cmds='chmod +x $lib' 8377 ;; 8378 8379sunos4*) 8380 version_type=sunos 8381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8382 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8383 shlibpath_var=LD_LIBRARY_PATH 8384 shlibpath_overrides_runpath=yes 8385 if test "$with_gnu_ld" = yes; then 8386 need_lib_prefix=no 8387 fi 8388 need_version=yes 8389 ;; 8390 8391sysv4 | sysv4.3*) 8392 version_type=linux 8393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8394 soname_spec='${libname}${release}${shared_ext}$major' 8395 shlibpath_var=LD_LIBRARY_PATH 8396 case $host_vendor in 8397 sni) 8398 shlibpath_overrides_runpath=no 8399 need_lib_prefix=no 8400 export_dynamic_flag_spec='${wl}-Blargedynsym' 8401 runpath_var=LD_RUN_PATH 8402 ;; 8403 siemens) 8404 need_lib_prefix=no 8405 ;; 8406 motorola) 8407 need_lib_prefix=no 8408 need_version=no 8409 shlibpath_overrides_runpath=no 8410 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8411 ;; 8412 esac 8413 ;; 8414 8415sysv4*MP*) 8416 if test -d /usr/nec ;then 8417 version_type=linux 8418 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8419 soname_spec='$libname${shared_ext}.$major' 8420 shlibpath_var=LD_LIBRARY_PATH 8421 fi 8422 ;; 8423 8424sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8425 version_type=freebsd-elf 8426 need_lib_prefix=no 8427 need_version=no 8428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8429 soname_spec='${libname}${release}${shared_ext}$major' 8430 shlibpath_var=LD_LIBRARY_PATH 8431 hardcode_into_libs=yes 8432 if test "$with_gnu_ld" = yes; then 8433 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 8434 shlibpath_overrides_runpath=no 8435 else 8436 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 8437 shlibpath_overrides_runpath=yes 8438 case $host_os in 8439 sco3.2v5*) 8440 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 8441 ;; 8442 esac 8443 fi 8444 sys_lib_dlsearch_path_spec='/usr/lib' 8445 ;; 8446 8447uts4*) 8448 version_type=linux 8449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8450 soname_spec='${libname}${release}${shared_ext}$major' 8451 shlibpath_var=LD_LIBRARY_PATH 8452 ;; 8453 8454*) 8455 dynamic_linker=no 8456 ;; 8457esac 8458echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8459echo "${ECHO_T}$dynamic_linker" >&6 8460test "$dynamic_linker" = no && can_build_shared=no 8461 8462variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8463if test "$GCC" = yes; then 8464 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8465fi 8466 8467echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8468echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8469hardcode_action= 8470if test -n "$hardcode_libdir_flag_spec" || \ 8471 test -n "$runpath_var" || \ 8472 test "X$hardcode_automatic" = "Xyes" ; then 8473 8474 # We can hardcode non-existant directories. 8475 if test "$hardcode_direct" != no && 8476 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8477 # have to relink, otherwise we might link with an installed library 8478 # when we should be linking with a yet-to-be-installed one 8479 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8480 test "$hardcode_minus_L" != no; then 8481 # Linking always hardcodes the temporary library directory. 8482 hardcode_action=relink 8483 else 8484 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8485 hardcode_action=immediate 8486 fi 8487else 8488 # We cannot hardcode anything, or else we can only hardcode existing 8489 # directories. 8490 hardcode_action=unsupported 8491fi 8492echo "$as_me:$LINENO: result: $hardcode_action" >&5 8493echo "${ECHO_T}$hardcode_action" >&6 8494 8495if test "$hardcode_action" = relink; then 8496 # Fast installation is not supported 8497 enable_fast_install=no 8498elif test "$shlibpath_overrides_runpath" = yes || 8499 test "$enable_shared" = no; then 8500 # Fast installation is not necessary 8501 enable_fast_install=needless 8502fi 8503 8504striplib= 8505old_striplib= 8506echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8507echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8508if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8509 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8510 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8511 echo "$as_me:$LINENO: result: yes" >&5 8512echo "${ECHO_T}yes" >&6 8513else 8514# FIXME - insert some real tests, host_os isn't really good enough 8515 case $host_os in 8516 darwin*) 8517 if test -n "$STRIP" ; then 8518 striplib="$STRIP -x" 8519 echo "$as_me:$LINENO: result: yes" >&5 8520echo "${ECHO_T}yes" >&6 8521 else 8522 echo "$as_me:$LINENO: result: no" >&5 8523echo "${ECHO_T}no" >&6 8524fi 8525 ;; 8526 *) 8527 echo "$as_me:$LINENO: result: no" >&5 8528echo "${ECHO_T}no" >&6 8529 ;; 8530 esac 8531fi 8532 8533if test "x$enable_dlopen" != xyes; then 8534 enable_dlopen=unknown 8535 enable_dlopen_self=unknown 8536 enable_dlopen_self_static=unknown 8537else 8538 lt_cv_dlopen=no 8539 lt_cv_dlopen_libs= 8540 8541 case $host_os in 8542 beos*) 8543 lt_cv_dlopen="load_add_on" 8544 lt_cv_dlopen_libs= 8545 lt_cv_dlopen_self=yes 8546 ;; 8547 8548 mingw* | pw32*) 8549 lt_cv_dlopen="LoadLibrary" 8550 lt_cv_dlopen_libs= 8551 ;; 8552 8553 cygwin*) 8554 lt_cv_dlopen="dlopen" 8555 lt_cv_dlopen_libs= 8556 ;; 8557 8558 darwin*) 8559 # if libdl is installed we need to link against it 8560 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8561echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8562if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8563 echo $ECHO_N "(cached) $ECHO_C" >&6 8564else 8565 ac_check_lib_save_LIBS=$LIBS 8566LIBS="-ldl $LIBS" 8567cat >conftest.$ac_ext <<_ACEOF 8568/* confdefs.h. */ 8569_ACEOF 8570cat confdefs.h >>conftest.$ac_ext 8571cat >>conftest.$ac_ext <<_ACEOF 8572/* end confdefs.h. */ 8573 8574/* Override any gcc2 internal prototype to avoid an error. */ 8575#ifdef __cplusplus 8576extern "C" 8577#endif 8578/* We use char because int might match the return type of a gcc2 8579 builtin and then its argument prototype would still apply. */ 8580char dlopen (); 8581int 8582main () 8583{ 8584dlopen (); 8585 ; 8586 return 0; 8587} 8588_ACEOF 8589rm -f conftest.$ac_objext conftest$ac_exeext 8590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8591 (eval $ac_link) 2>conftest.er1 8592 ac_status=$? 8593 grep -v '^ *+' conftest.er1 >conftest.err 8594 rm -f conftest.er1 8595 cat conftest.err >&5 8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8597 (exit $ac_status); } && 8598 { ac_try='test -z "$ac_c_werror_flag" 8599 || test ! -s conftest.err' 8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8601 (eval $ac_try) 2>&5 8602 ac_status=$? 8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8604 (exit $ac_status); }; } && 8605 { ac_try='test -s conftest$ac_exeext' 8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8607 (eval $ac_try) 2>&5 8608 ac_status=$? 8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8610 (exit $ac_status); }; }; then 8611 ac_cv_lib_dl_dlopen=yes 8612else 8613 echo "$as_me: failed program was:" >&5 8614sed 's/^/| /' conftest.$ac_ext >&5 8615 8616ac_cv_lib_dl_dlopen=no 8617fi 8618rm -f conftest.err conftest.$ac_objext \ 8619 conftest$ac_exeext conftest.$ac_ext 8620LIBS=$ac_check_lib_save_LIBS 8621fi 8622echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8623echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8624if test $ac_cv_lib_dl_dlopen = yes; then 8625 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8626else 8627 8628 lt_cv_dlopen="dyld" 8629 lt_cv_dlopen_libs= 8630 lt_cv_dlopen_self=yes 8631 8632fi 8633 8634 ;; 8635 8636 *) 8637 echo "$as_me:$LINENO: checking for shl_load" >&5 8638echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8639if test "${ac_cv_func_shl_load+set}" = set; then 8640 echo $ECHO_N "(cached) $ECHO_C" >&6 8641else 8642 cat >conftest.$ac_ext <<_ACEOF 8643/* confdefs.h. */ 8644_ACEOF 8645cat confdefs.h >>conftest.$ac_ext 8646cat >>conftest.$ac_ext <<_ACEOF 8647/* end confdefs.h. */ 8648/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8649 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8650#define shl_load innocuous_shl_load 8651 8652/* System header to define __stub macros and hopefully few prototypes, 8653 which can conflict with char shl_load (); below. 8654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8655 <limits.h> exists even on freestanding compilers. */ 8656 8657#ifdef __STDC__ 8658# include <limits.h> 8659#else 8660# include <assert.h> 8661#endif 8662 8663#undef shl_load 8664 8665/* Override any gcc2 internal prototype to avoid an error. */ 8666#ifdef __cplusplus 8667extern "C" 8668{ 8669#endif 8670/* We use char because int might match the return type of a gcc2 8671 builtin and then its argument prototype would still apply. */ 8672char shl_load (); 8673/* The GNU C library defines this for functions which it implements 8674 to always fail with ENOSYS. Some functions are actually named 8675 something starting with __ and the normal name is an alias. */ 8676#if defined (__stub_shl_load) || defined (__stub___shl_load) 8677choke me 8678#else 8679char (*f) () = shl_load; 8680#endif 8681#ifdef __cplusplus 8682} 8683#endif 8684 8685int 8686main () 8687{ 8688return f != shl_load; 8689 ; 8690 return 0; 8691} 8692_ACEOF 8693rm -f conftest.$ac_objext conftest$ac_exeext 8694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8695 (eval $ac_link) 2>conftest.er1 8696 ac_status=$? 8697 grep -v '^ *+' conftest.er1 >conftest.err 8698 rm -f conftest.er1 8699 cat conftest.err >&5 8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8701 (exit $ac_status); } && 8702 { ac_try='test -z "$ac_c_werror_flag" 8703 || test ! -s conftest.err' 8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8705 (eval $ac_try) 2>&5 8706 ac_status=$? 8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8708 (exit $ac_status); }; } && 8709 { ac_try='test -s conftest$ac_exeext' 8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8711 (eval $ac_try) 2>&5 8712 ac_status=$? 8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8714 (exit $ac_status); }; }; then 8715 ac_cv_func_shl_load=yes 8716else 8717 echo "$as_me: failed program was:" >&5 8718sed 's/^/| /' conftest.$ac_ext >&5 8719 8720ac_cv_func_shl_load=no 8721fi 8722rm -f conftest.err conftest.$ac_objext \ 8723 conftest$ac_exeext conftest.$ac_ext 8724fi 8725echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8726echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8727if test $ac_cv_func_shl_load = yes; then 8728 lt_cv_dlopen="shl_load" 8729else 8730 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8731echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8732if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8733 echo $ECHO_N "(cached) $ECHO_C" >&6 8734else 8735 ac_check_lib_save_LIBS=$LIBS 8736LIBS="-ldld $LIBS" 8737cat >conftest.$ac_ext <<_ACEOF 8738/* confdefs.h. */ 8739_ACEOF 8740cat confdefs.h >>conftest.$ac_ext 8741cat >>conftest.$ac_ext <<_ACEOF 8742/* end confdefs.h. */ 8743 8744/* Override any gcc2 internal prototype to avoid an error. */ 8745#ifdef __cplusplus 8746extern "C" 8747#endif 8748/* We use char because int might match the return type of a gcc2 8749 builtin and then its argument prototype would still apply. */ 8750char shl_load (); 8751int 8752main () 8753{ 8754shl_load (); 8755 ; 8756 return 0; 8757} 8758_ACEOF 8759rm -f conftest.$ac_objext conftest$ac_exeext 8760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8761 (eval $ac_link) 2>conftest.er1 8762 ac_status=$? 8763 grep -v '^ *+' conftest.er1 >conftest.err 8764 rm -f conftest.er1 8765 cat conftest.err >&5 8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8767 (exit $ac_status); } && 8768 { ac_try='test -z "$ac_c_werror_flag" 8769 || test ! -s conftest.err' 8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8771 (eval $ac_try) 2>&5 8772 ac_status=$? 8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8774 (exit $ac_status); }; } && 8775 { ac_try='test -s conftest$ac_exeext' 8776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8777 (eval $ac_try) 2>&5 8778 ac_status=$? 8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8780 (exit $ac_status); }; }; then 8781 ac_cv_lib_dld_shl_load=yes 8782else 8783 echo "$as_me: failed program was:" >&5 8784sed 's/^/| /' conftest.$ac_ext >&5 8785 8786ac_cv_lib_dld_shl_load=no 8787fi 8788rm -f conftest.err conftest.$ac_objext \ 8789 conftest$ac_exeext conftest.$ac_ext 8790LIBS=$ac_check_lib_save_LIBS 8791fi 8792echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8793echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8794if test $ac_cv_lib_dld_shl_load = yes; then 8795 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8796else 8797 echo "$as_me:$LINENO: checking for dlopen" >&5 8798echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8799if test "${ac_cv_func_dlopen+set}" = set; then 8800 echo $ECHO_N "(cached) $ECHO_C" >&6 8801else 8802 cat >conftest.$ac_ext <<_ACEOF 8803/* confdefs.h. */ 8804_ACEOF 8805cat confdefs.h >>conftest.$ac_ext 8806cat >>conftest.$ac_ext <<_ACEOF 8807/* end confdefs.h. */ 8808/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8809 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8810#define dlopen innocuous_dlopen 8811 8812/* System header to define __stub macros and hopefully few prototypes, 8813 which can conflict with char dlopen (); below. 8814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8815 <limits.h> exists even on freestanding compilers. */ 8816 8817#ifdef __STDC__ 8818# include <limits.h> 8819#else 8820# include <assert.h> 8821#endif 8822 8823#undef dlopen 8824 8825/* Override any gcc2 internal prototype to avoid an error. */ 8826#ifdef __cplusplus 8827extern "C" 8828{ 8829#endif 8830/* We use char because int might match the return type of a gcc2 8831 builtin and then its argument prototype would still apply. */ 8832char dlopen (); 8833/* The GNU C library defines this for functions which it implements 8834 to always fail with ENOSYS. Some functions are actually named 8835 something starting with __ and the normal name is an alias. */ 8836#if defined (__stub_dlopen) || defined (__stub___dlopen) 8837choke me 8838#else 8839char (*f) () = dlopen; 8840#endif 8841#ifdef __cplusplus 8842} 8843#endif 8844 8845int 8846main () 8847{ 8848return f != dlopen; 8849 ; 8850 return 0; 8851} 8852_ACEOF 8853rm -f conftest.$ac_objext conftest$ac_exeext 8854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8855 (eval $ac_link) 2>conftest.er1 8856 ac_status=$? 8857 grep -v '^ *+' conftest.er1 >conftest.err 8858 rm -f conftest.er1 8859 cat conftest.err >&5 8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8861 (exit $ac_status); } && 8862 { ac_try='test -z "$ac_c_werror_flag" 8863 || test ! -s conftest.err' 8864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8865 (eval $ac_try) 2>&5 8866 ac_status=$? 8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8868 (exit $ac_status); }; } && 8869 { ac_try='test -s conftest$ac_exeext' 8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8871 (eval $ac_try) 2>&5 8872 ac_status=$? 8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8874 (exit $ac_status); }; }; then 8875 ac_cv_func_dlopen=yes 8876else 8877 echo "$as_me: failed program was:" >&5 8878sed 's/^/| /' conftest.$ac_ext >&5 8879 8880ac_cv_func_dlopen=no 8881fi 8882rm -f conftest.err conftest.$ac_objext \ 8883 conftest$ac_exeext conftest.$ac_ext 8884fi 8885echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8886echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8887if test $ac_cv_func_dlopen = yes; then 8888 lt_cv_dlopen="dlopen" 8889else 8890 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8891echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8892if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8893 echo $ECHO_N "(cached) $ECHO_C" >&6 8894else 8895 ac_check_lib_save_LIBS=$LIBS 8896LIBS="-ldl $LIBS" 8897cat >conftest.$ac_ext <<_ACEOF 8898/* confdefs.h. */ 8899_ACEOF 8900cat confdefs.h >>conftest.$ac_ext 8901cat >>conftest.$ac_ext <<_ACEOF 8902/* end confdefs.h. */ 8903 8904/* Override any gcc2 internal prototype to avoid an error. */ 8905#ifdef __cplusplus 8906extern "C" 8907#endif 8908/* We use char because int might match the return type of a gcc2 8909 builtin and then its argument prototype would still apply. */ 8910char dlopen (); 8911int 8912main () 8913{ 8914dlopen (); 8915 ; 8916 return 0; 8917} 8918_ACEOF 8919rm -f conftest.$ac_objext conftest$ac_exeext 8920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8921 (eval $ac_link) 2>conftest.er1 8922 ac_status=$? 8923 grep -v '^ *+' conftest.er1 >conftest.err 8924 rm -f conftest.er1 8925 cat conftest.err >&5 8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8927 (exit $ac_status); } && 8928 { ac_try='test -z "$ac_c_werror_flag" 8929 || test ! -s conftest.err' 8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8931 (eval $ac_try) 2>&5 8932 ac_status=$? 8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8934 (exit $ac_status); }; } && 8935 { ac_try='test -s conftest$ac_exeext' 8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8937 (eval $ac_try) 2>&5 8938 ac_status=$? 8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8940 (exit $ac_status); }; }; then 8941 ac_cv_lib_dl_dlopen=yes 8942else 8943 echo "$as_me: failed program was:" >&5 8944sed 's/^/| /' conftest.$ac_ext >&5 8945 8946ac_cv_lib_dl_dlopen=no 8947fi 8948rm -f conftest.err conftest.$ac_objext \ 8949 conftest$ac_exeext conftest.$ac_ext 8950LIBS=$ac_check_lib_save_LIBS 8951fi 8952echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8953echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8954if test $ac_cv_lib_dl_dlopen = yes; then 8955 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8956else 8957 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8958echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8959if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8960 echo $ECHO_N "(cached) $ECHO_C" >&6 8961else 8962 ac_check_lib_save_LIBS=$LIBS 8963LIBS="-lsvld $LIBS" 8964cat >conftest.$ac_ext <<_ACEOF 8965/* confdefs.h. */ 8966_ACEOF 8967cat confdefs.h >>conftest.$ac_ext 8968cat >>conftest.$ac_ext <<_ACEOF 8969/* end confdefs.h. */ 8970 8971/* Override any gcc2 internal prototype to avoid an error. */ 8972#ifdef __cplusplus 8973extern "C" 8974#endif 8975/* We use char because int might match the return type of a gcc2 8976 builtin and then its argument prototype would still apply. */ 8977char dlopen (); 8978int 8979main () 8980{ 8981dlopen (); 8982 ; 8983 return 0; 8984} 8985_ACEOF 8986rm -f conftest.$ac_objext conftest$ac_exeext 8987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8988 (eval $ac_link) 2>conftest.er1 8989 ac_status=$? 8990 grep -v '^ *+' conftest.er1 >conftest.err 8991 rm -f conftest.er1 8992 cat conftest.err >&5 8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8994 (exit $ac_status); } && 8995 { ac_try='test -z "$ac_c_werror_flag" 8996 || test ! -s conftest.err' 8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8998 (eval $ac_try) 2>&5 8999 ac_status=$? 9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9001 (exit $ac_status); }; } && 9002 { ac_try='test -s conftest$ac_exeext' 9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9004 (eval $ac_try) 2>&5 9005 ac_status=$? 9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9007 (exit $ac_status); }; }; then 9008 ac_cv_lib_svld_dlopen=yes 9009else 9010 echo "$as_me: failed program was:" >&5 9011sed 's/^/| /' conftest.$ac_ext >&5 9012 9013ac_cv_lib_svld_dlopen=no 9014fi 9015rm -f conftest.err conftest.$ac_objext \ 9016 conftest$ac_exeext conftest.$ac_ext 9017LIBS=$ac_check_lib_save_LIBS 9018fi 9019echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9020echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 9021if test $ac_cv_lib_svld_dlopen = yes; then 9022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9023else 9024 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9025echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 9026if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9027 echo $ECHO_N "(cached) $ECHO_C" >&6 9028else 9029 ac_check_lib_save_LIBS=$LIBS 9030LIBS="-ldld $LIBS" 9031cat >conftest.$ac_ext <<_ACEOF 9032/* confdefs.h. */ 9033_ACEOF 9034cat confdefs.h >>conftest.$ac_ext 9035cat >>conftest.$ac_ext <<_ACEOF 9036/* end confdefs.h. */ 9037 9038/* Override any gcc2 internal prototype to avoid an error. */ 9039#ifdef __cplusplus 9040extern "C" 9041#endif 9042/* We use char because int might match the return type of a gcc2 9043 builtin and then its argument prototype would still apply. */ 9044char dld_link (); 9045int 9046main () 9047{ 9048dld_link (); 9049 ; 9050 return 0; 9051} 9052_ACEOF 9053rm -f conftest.$ac_objext conftest$ac_exeext 9054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9055 (eval $ac_link) 2>conftest.er1 9056 ac_status=$? 9057 grep -v '^ *+' conftest.er1 >conftest.err 9058 rm -f conftest.er1 9059 cat conftest.err >&5 9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9061 (exit $ac_status); } && 9062 { ac_try='test -z "$ac_c_werror_flag" 9063 || test ! -s conftest.err' 9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9065 (eval $ac_try) 2>&5 9066 ac_status=$? 9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9068 (exit $ac_status); }; } && 9069 { ac_try='test -s conftest$ac_exeext' 9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9071 (eval $ac_try) 2>&5 9072 ac_status=$? 9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9074 (exit $ac_status); }; }; then 9075 ac_cv_lib_dld_dld_link=yes 9076else 9077 echo "$as_me: failed program was:" >&5 9078sed 's/^/| /' conftest.$ac_ext >&5 9079 9080ac_cv_lib_dld_dld_link=no 9081fi 9082rm -f conftest.err conftest.$ac_objext \ 9083 conftest$ac_exeext conftest.$ac_ext 9084LIBS=$ac_check_lib_save_LIBS 9085fi 9086echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9087echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9088if test $ac_cv_lib_dld_dld_link = yes; then 9089 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9090fi 9091 9092 9093fi 9094 9095 9096fi 9097 9098 9099fi 9100 9101 9102fi 9103 9104 9105fi 9106 9107 ;; 9108 esac 9109 9110 if test "x$lt_cv_dlopen" != xno; then 9111 enable_dlopen=yes 9112 else 9113 enable_dlopen=no 9114 fi 9115 9116 case $lt_cv_dlopen in 9117 dlopen) 9118 save_CPPFLAGS="$CPPFLAGS" 9119 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9120 9121 save_LDFLAGS="$LDFLAGS" 9122 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9123 9124 save_LIBS="$LIBS" 9125 LIBS="$lt_cv_dlopen_libs $LIBS" 9126 9127 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9128echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9129if test "${lt_cv_dlopen_self+set}" = set; then 9130 echo $ECHO_N "(cached) $ECHO_C" >&6 9131else 9132 if test "$cross_compiling" = yes; then : 9133 lt_cv_dlopen_self=cross 9134else 9135 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9136 lt_status=$lt_dlunknown 9137 cat > conftest.$ac_ext <<EOF 9138#line 9138 "configure" 9139#include "confdefs.h" 9140 9141#if HAVE_DLFCN_H 9142#include <dlfcn.h> 9143#endif 9144 9145#include <stdio.h> 9146 9147#ifdef RTLD_GLOBAL 9148# define LT_DLGLOBAL RTLD_GLOBAL 9149#else 9150# ifdef DL_GLOBAL 9151# define LT_DLGLOBAL DL_GLOBAL 9152# else 9153# define LT_DLGLOBAL 0 9154# endif 9155#endif 9156 9157/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9158 find out it does not work in some platform. */ 9159#ifndef LT_DLLAZY_OR_NOW 9160# ifdef RTLD_LAZY 9161# define LT_DLLAZY_OR_NOW RTLD_LAZY 9162# else 9163# ifdef DL_LAZY 9164# define LT_DLLAZY_OR_NOW DL_LAZY 9165# else 9166# ifdef RTLD_NOW 9167# define LT_DLLAZY_OR_NOW RTLD_NOW 9168# else 9169# ifdef DL_NOW 9170# define LT_DLLAZY_OR_NOW DL_NOW 9171# else 9172# define LT_DLLAZY_OR_NOW 0 9173# endif 9174# endif 9175# endif 9176# endif 9177#endif 9178 9179#ifdef __cplusplus 9180extern "C" void exit (int); 9181#endif 9182 9183void fnord() { int i=42;} 9184int main () 9185{ 9186 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9187 int status = $lt_dlunknown; 9188 9189 if (self) 9190 { 9191 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9192 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9193 /* dlclose (self); */ 9194 } 9195 else 9196 puts (dlerror ()); 9197 9198 exit (status); 9199} 9200EOF 9201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9202 (eval $ac_link) 2>&5 9203 ac_status=$? 9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9205 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9206 (./conftest; exit; ) >&5 2>/dev/null 9207 lt_status=$? 9208 case x$lt_status in 9209 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9210 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9211 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9212 esac 9213 else : 9214 # compilation failed 9215 lt_cv_dlopen_self=no 9216 fi 9217fi 9218rm -fr conftest* 9219 9220 9221fi 9222echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9223echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9224 9225 if test "x$lt_cv_dlopen_self" = xyes; then 9226 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9227 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9228echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9229if test "${lt_cv_dlopen_self_static+set}" = set; then 9230 echo $ECHO_N "(cached) $ECHO_C" >&6 9231else 9232 if test "$cross_compiling" = yes; then : 9233 lt_cv_dlopen_self_static=cross 9234else 9235 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9236 lt_status=$lt_dlunknown 9237 cat > conftest.$ac_ext <<EOF 9238#line 9238 "configure" 9239#include "confdefs.h" 9240 9241#if HAVE_DLFCN_H 9242#include <dlfcn.h> 9243#endif 9244 9245#include <stdio.h> 9246 9247#ifdef RTLD_GLOBAL 9248# define LT_DLGLOBAL RTLD_GLOBAL 9249#else 9250# ifdef DL_GLOBAL 9251# define LT_DLGLOBAL DL_GLOBAL 9252# else 9253# define LT_DLGLOBAL 0 9254# endif 9255#endif 9256 9257/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9258 find out it does not work in some platform. */ 9259#ifndef LT_DLLAZY_OR_NOW 9260# ifdef RTLD_LAZY 9261# define LT_DLLAZY_OR_NOW RTLD_LAZY 9262# else 9263# ifdef DL_LAZY 9264# define LT_DLLAZY_OR_NOW DL_LAZY 9265# else 9266# ifdef RTLD_NOW 9267# define LT_DLLAZY_OR_NOW RTLD_NOW 9268# else 9269# ifdef DL_NOW 9270# define LT_DLLAZY_OR_NOW DL_NOW 9271# else 9272# define LT_DLLAZY_OR_NOW 0 9273# endif 9274# endif 9275# endif 9276# endif 9277#endif 9278 9279#ifdef __cplusplus 9280extern "C" void exit (int); 9281#endif 9282 9283void fnord() { int i=42;} 9284int main () 9285{ 9286 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9287 int status = $lt_dlunknown; 9288 9289 if (self) 9290 { 9291 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9292 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9293 /* dlclose (self); */ 9294 } 9295 else 9296 puts (dlerror ()); 9297 9298 exit (status); 9299} 9300EOF 9301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9302 (eval $ac_link) 2>&5 9303 ac_status=$? 9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9305 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9306 (./conftest; exit; ) >&5 2>/dev/null 9307 lt_status=$? 9308 case x$lt_status in 9309 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9310 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9311 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9312 esac 9313 else : 9314 # compilation failed 9315 lt_cv_dlopen_self_static=no 9316 fi 9317fi 9318rm -fr conftest* 9319 9320 9321fi 9322echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9323echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9324 fi 9325 9326 CPPFLAGS="$save_CPPFLAGS" 9327 LDFLAGS="$save_LDFLAGS" 9328 LIBS="$save_LIBS" 9329 ;; 9330 esac 9331 9332 case $lt_cv_dlopen_self in 9333 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9334 *) enable_dlopen_self=unknown ;; 9335 esac 9336 9337 case $lt_cv_dlopen_self_static in 9338 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9339 *) enable_dlopen_self_static=unknown ;; 9340 esac 9341fi 9342 9343 9344# Report which library types will actually be built 9345echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9346echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9347echo "$as_me:$LINENO: result: $can_build_shared" >&5 9348echo "${ECHO_T}$can_build_shared" >&6 9349 9350echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9351echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9352test "$can_build_shared" = "no" && enable_shared=no 9353 9354# On AIX, shared libraries and static libraries use the same namespace, and 9355# are all built from PIC. 9356case $host_os in 9357aix3*) 9358 test "$enable_shared" = yes && enable_static=no 9359 if test -n "$RANLIB"; then 9360 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9361 postinstall_cmds='$RANLIB $lib' 9362 fi 9363 ;; 9364 9365aix4* | aix5*) 9366 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9367 test "$enable_shared" = yes && enable_static=no 9368 fi 9369 ;; 9370esac 9371echo "$as_me:$LINENO: result: $enable_shared" >&5 9372echo "${ECHO_T}$enable_shared" >&6 9373 9374echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9375echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9376# Make sure either enable_shared or enable_static is yes. 9377test "$enable_shared" = yes || enable_static=yes 9378echo "$as_me:$LINENO: result: $enable_static" >&5 9379echo "${ECHO_T}$enable_static" >&6 9380 9381# The else clause should only fire when bootstrapping the 9382# libtool distribution, otherwise you forgot to ship ltmain.sh 9383# with your package, and you will get complaints that there are 9384# no rules to generate ltmain.sh. 9385if test -f "$ltmain"; then 9386 # See if we are running on zsh, and set the options which allow our commands through 9387 # without removal of \ escapes. 9388 if test -n "${ZSH_VERSION+set}" ; then 9389 setopt NO_GLOB_SUBST 9390 fi 9391 # Now quote all the things that may contain metacharacters while being 9392 # careful not to overquote the AC_SUBSTed values. We take copies of the 9393 # variables and quote the copies for generation of the libtool script. 9394 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9395 SED SHELL STRIP \ 9396 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9397 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9398 deplibs_check_method reload_flag reload_cmds need_locks \ 9399 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9400 lt_cv_sys_global_symbol_to_c_name_address \ 9401 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9402 old_postinstall_cmds old_postuninstall_cmds \ 9403 compiler \ 9404 CC \ 9405 LD \ 9406 lt_prog_compiler_wl \ 9407 lt_prog_compiler_pic \ 9408 lt_prog_compiler_static \ 9409 lt_prog_compiler_no_builtin_flag \ 9410 export_dynamic_flag_spec \ 9411 thread_safe_flag_spec \ 9412 whole_archive_flag_spec \ 9413 enable_shared_with_static_runtimes \ 9414 old_archive_cmds \ 9415 old_archive_from_new_cmds \ 9416 predep_objects \ 9417 postdep_objects \ 9418 predeps \ 9419 postdeps \ 9420 compiler_lib_search_path \ 9421 archive_cmds \ 9422 archive_expsym_cmds \ 9423 postinstall_cmds \ 9424 postuninstall_cmds \ 9425 old_archive_from_expsyms_cmds \ 9426 allow_undefined_flag \ 9427 no_undefined_flag \ 9428 export_symbols_cmds \ 9429 hardcode_libdir_flag_spec \ 9430 hardcode_libdir_flag_spec_ld \ 9431 hardcode_libdir_separator \ 9432 hardcode_automatic \ 9433 module_cmds \ 9434 module_expsym_cmds \ 9435 lt_cv_prog_compiler_c_o \ 9436 exclude_expsyms \ 9437 include_expsyms; do 9438 9439 case $var in 9440 old_archive_cmds | \ 9441 old_archive_from_new_cmds | \ 9442 archive_cmds | \ 9443 archive_expsym_cmds | \ 9444 module_cmds | \ 9445 module_expsym_cmds | \ 9446 old_archive_from_expsyms_cmds | \ 9447 export_symbols_cmds | \ 9448 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9449 postinstall_cmds | postuninstall_cmds | \ 9450 old_postinstall_cmds | old_postuninstall_cmds | \ 9451 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9452 # Double-quote double-evaled strings. 9453 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9454 ;; 9455 *) 9456 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9457 ;; 9458 esac 9459 done 9460 9461 case $lt_echo in 9462 *'\$0 --fallback-echo"') 9463 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9464 ;; 9465 esac 9466 9467cfgfile="${ofile}T" 9468 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9469 $rm -f "$cfgfile" 9470 { echo "$as_me:$LINENO: creating $ofile" >&5 9471echo "$as_me: creating $ofile" >&6;} 9472 9473 cat <<__EOF__ >> "$cfgfile" 9474#! $SHELL 9475 9476# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9477# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9478# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9479# 9480# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9481# Free Software Foundation, Inc. 9482# 9483# This file is part of GNU Libtool: 9484# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9485# 9486# This program is free software; you can redistribute it and/or modify 9487# it under the terms of the GNU General Public License as published by 9488# the Free Software Foundation; either version 2 of the License, or 9489# (at your option) any later version. 9490# 9491# This program is distributed in the hope that it will be useful, but 9492# WITHOUT ANY WARRANTY; without even the implied warranty of 9493# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9494# General Public License for more details. 9495# 9496# You should have received a copy of the GNU General Public License 9497# along with this program; if not, write to the Free Software 9498# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9499# 9500# As a special exception to the GNU General Public License, if you 9501# distribute this file as part of a program that contains a 9502# configuration script generated by Autoconf, you may include it under 9503# the same distribution terms that you use for the rest of that program. 9504 9505# A sed program that does not truncate output. 9506SED=$lt_SED 9507 9508# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9509Xsed="$SED -e 1s/^X//" 9510 9511# The HP-UX ksh and POSIX shell print the target directory to stdout 9512# if CDPATH is set. 9513(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9514 9515# The names of the tagged configurations supported by this script. 9516available_tags= 9517 9518# ### BEGIN LIBTOOL CONFIG 9519 9520# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9521 9522# Shell to use when invoking shell scripts. 9523SHELL=$lt_SHELL 9524 9525# Whether or not to build shared libraries. 9526build_libtool_libs=$enable_shared 9527 9528# Whether or not to build static libraries. 9529build_old_libs=$enable_static 9530 9531# Whether or not to add -lc for building shared libraries. 9532build_libtool_need_lc=$archive_cmds_need_lc 9533 9534# Whether or not to disallow shared libs when runtime libs are static 9535allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9536 9537# Whether or not to optimize for fast installation. 9538fast_install=$enable_fast_install 9539 9540# The host system. 9541host_alias=$host_alias 9542host=$host 9543host_os=$host_os 9544 9545# The build system. 9546build_alias=$build_alias 9547build=$build 9548build_os=$build_os 9549 9550# An echo program that does not interpret backslashes. 9551echo=$lt_echo 9552 9553# The archiver. 9554AR=$lt_AR 9555AR_FLAGS=$lt_AR_FLAGS 9556 9557# A C compiler. 9558LTCC=$lt_LTCC 9559 9560# LTCC compiler flags. 9561LTCFLAGS=$lt_LTCFLAGS 9562 9563# A language-specific compiler. 9564CC=$lt_compiler 9565 9566# Is the compiler the GNU C compiler? 9567with_gcc=$GCC 9568 9569# An ERE matcher. 9570EGREP=$lt_EGREP 9571 9572# The linker used to build libraries. 9573LD=$lt_LD 9574 9575# Whether we need hard or soft links. 9576LN_S=$lt_LN_S 9577 9578# A BSD-compatible nm program. 9579NM=$lt_NM 9580 9581# A symbol stripping program 9582STRIP=$lt_STRIP 9583 9584# Used to examine libraries when file_magic_cmd begins "file" 9585MAGIC_CMD=$MAGIC_CMD 9586 9587# Used on cygwin: DLL creation program. 9588DLLTOOL="$DLLTOOL" 9589 9590# Used on cygwin: object dumper. 9591OBJDUMP="$OBJDUMP" 9592 9593# Used on cygwin: assembler. 9594AS="$AS" 9595 9596# The name of the directory that contains temporary libtool files. 9597objdir=$objdir 9598 9599# How to create reloadable object files. 9600reload_flag=$lt_reload_flag 9601reload_cmds=$lt_reload_cmds 9602 9603# How to pass a linker flag through the compiler. 9604wl=$lt_lt_prog_compiler_wl 9605 9606# Object file suffix (normally "o"). 9607objext="$ac_objext" 9608 9609# Old archive suffix (normally "a"). 9610libext="$libext" 9611 9612# Shared library suffix (normally ".so"). 9613shrext_cmds='$shrext_cmds' 9614 9615# Executable file suffix (normally ""). 9616exeext="$exeext" 9617 9618# Additional compiler flags for building library objects. 9619pic_flag=$lt_lt_prog_compiler_pic 9620pic_mode=$pic_mode 9621 9622# What is the maximum length of a command? 9623max_cmd_len=$lt_cv_sys_max_cmd_len 9624 9625# Does compiler simultaneously support -c and -o options? 9626compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9627 9628# Must we lock files when doing compilation? 9629need_locks=$lt_need_locks 9630 9631# Do we need the lib prefix for modules? 9632need_lib_prefix=$need_lib_prefix 9633 9634# Do we need a version for libraries? 9635need_version=$need_version 9636 9637# Whether dlopen is supported. 9638dlopen_support=$enable_dlopen 9639 9640# Whether dlopen of programs is supported. 9641dlopen_self=$enable_dlopen_self 9642 9643# Whether dlopen of statically linked programs is supported. 9644dlopen_self_static=$enable_dlopen_self_static 9645 9646# Compiler flag to prevent dynamic linking. 9647link_static_flag=$lt_lt_prog_compiler_static 9648 9649# Compiler flag to turn off builtin functions. 9650no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9651 9652# Compiler flag to allow reflexive dlopens. 9653export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9654 9655# Compiler flag to generate shared objects directly from archives. 9656whole_archive_flag_spec=$lt_whole_archive_flag_spec 9657 9658# Compiler flag to generate thread-safe objects. 9659thread_safe_flag_spec=$lt_thread_safe_flag_spec 9660 9661# Library versioning type. 9662version_type=$version_type 9663 9664# Format of library name prefix. 9665libname_spec=$lt_libname_spec 9666 9667# List of archive names. First name is the real one, the rest are links. 9668# The last name is the one that the linker finds with -lNAME. 9669library_names_spec=$lt_library_names_spec 9670 9671# The coded name of the library, if different from the real name. 9672soname_spec=$lt_soname_spec 9673 9674# Commands used to build and install an old-style archive. 9675RANLIB=$lt_RANLIB 9676old_archive_cmds=$lt_old_archive_cmds 9677old_postinstall_cmds=$lt_old_postinstall_cmds 9678old_postuninstall_cmds=$lt_old_postuninstall_cmds 9679 9680# Create an old-style archive from a shared archive. 9681old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9682 9683# Create a temporary old-style archive to link instead of a shared archive. 9684old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9685 9686# Commands used to build and install a shared archive. 9687archive_cmds=$lt_archive_cmds 9688archive_expsym_cmds=$lt_archive_expsym_cmds 9689postinstall_cmds=$lt_postinstall_cmds 9690postuninstall_cmds=$lt_postuninstall_cmds 9691 9692# Commands used to build a loadable module (assumed same as above if empty) 9693module_cmds=$lt_module_cmds 9694module_expsym_cmds=$lt_module_expsym_cmds 9695 9696# Commands to strip libraries. 9697old_striplib=$lt_old_striplib 9698striplib=$lt_striplib 9699 9700# Dependencies to place before the objects being linked to create a 9701# shared library. 9702predep_objects=$lt_predep_objects 9703 9704# Dependencies to place after the objects being linked to create a 9705# shared library. 9706postdep_objects=$lt_postdep_objects 9707 9708# Dependencies to place before the objects being linked to create a 9709# shared library. 9710predeps=$lt_predeps 9711 9712# Dependencies to place after the objects being linked to create a 9713# shared library. 9714postdeps=$lt_postdeps 9715 9716# The library search path used internally by the compiler when linking 9717# a shared library. 9718compiler_lib_search_path=$lt_compiler_lib_search_path 9719 9720# Method to check whether dependent libraries are shared objects. 9721deplibs_check_method=$lt_deplibs_check_method 9722 9723# Command to use when deplibs_check_method == file_magic. 9724file_magic_cmd=$lt_file_magic_cmd 9725 9726# Flag that allows shared libraries with undefined symbols to be built. 9727allow_undefined_flag=$lt_allow_undefined_flag 9728 9729# Flag that forces no undefined symbols. 9730no_undefined_flag=$lt_no_undefined_flag 9731 9732# Commands used to finish a libtool library installation in a directory. 9733finish_cmds=$lt_finish_cmds 9734 9735# Same as above, but a single script fragment to be evaled but not shown. 9736finish_eval=$lt_finish_eval 9737 9738# Take the output of nm and produce a listing of raw symbols and C names. 9739global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9740 9741# Transform the output of nm in a proper C declaration 9742global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9743 9744# Transform the output of nm in a C name address pair 9745global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9746 9747# This is the shared library runtime path variable. 9748runpath_var=$runpath_var 9749 9750# This is the shared library path variable. 9751shlibpath_var=$shlibpath_var 9752 9753# Is shlibpath searched before the hard-coded library search path? 9754shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9755 9756# How to hardcode a shared library path into an executable. 9757hardcode_action=$hardcode_action 9758 9759# Whether we should hardcode library paths into libraries. 9760hardcode_into_libs=$hardcode_into_libs 9761 9762# Flag to hardcode \$libdir into a binary during linking. 9763# This must work even if \$libdir does not exist. 9764hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9765 9766# If ld is used when linking, flag to hardcode \$libdir into 9767# a binary during linking. This must work even if \$libdir does 9768# not exist. 9769hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9770 9771# Whether we need a single -rpath flag with a separated argument. 9772hardcode_libdir_separator=$lt_hardcode_libdir_separator 9773 9774# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9775# resulting binary. 9776hardcode_direct=$hardcode_direct 9777 9778# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9779# resulting binary. 9780hardcode_minus_L=$hardcode_minus_L 9781 9782# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9783# the resulting binary. 9784hardcode_shlibpath_var=$hardcode_shlibpath_var 9785 9786# Set to yes if building a shared library automatically hardcodes DIR into the library 9787# and all subsequent libraries and executables linked against it. 9788hardcode_automatic=$hardcode_automatic 9789 9790# Variables whose values should be saved in libtool wrapper scripts and 9791# restored at relink time. 9792variables_saved_for_relink="$variables_saved_for_relink" 9793 9794# Whether libtool must link a program against all its dependency libraries. 9795link_all_deplibs=$link_all_deplibs 9796 9797# Compile-time system search path for libraries 9798sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9799 9800# Run-time system search path for libraries 9801sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9802 9803# Fix the shell variable \$srcfile for the compiler. 9804fix_srcfile_path="$fix_srcfile_path" 9805 9806# Set to yes if exported symbols are required. 9807always_export_symbols=$always_export_symbols 9808 9809# The commands to list exported symbols. 9810export_symbols_cmds=$lt_export_symbols_cmds 9811 9812# The commands to extract the exported symbol list from a shared archive. 9813extract_expsyms_cmds=$lt_extract_expsyms_cmds 9814 9815# Symbols that should not be listed in the preloaded symbols. 9816exclude_expsyms=$lt_exclude_expsyms 9817 9818# Symbols that must always be exported. 9819include_expsyms=$lt_include_expsyms 9820 9821# ### END LIBTOOL CONFIG 9822 9823__EOF__ 9824 9825 9826 case $host_os in 9827 aix3*) 9828 cat <<\EOF >> "$cfgfile" 9829 9830# AIX sometimes has problems with the GCC collect2 program. For some 9831# reason, if we set the COLLECT_NAMES environment variable, the problems 9832# vanish in a puff of smoke. 9833if test "X${COLLECT_NAMES+set}" != Xset; then 9834 COLLECT_NAMES= 9835 export COLLECT_NAMES 9836fi 9837EOF 9838 ;; 9839 esac 9840 9841 # We use sed instead of cat because bash on DJGPP gets confused if 9842 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9843 # text mode, it properly converts lines to CR/LF. This bash problem 9844 # is reportedly fixed, but why not run on old versions too? 9845 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9846 9847 mv -f "$cfgfile" "$ofile" || \ 9848 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9849 chmod +x "$ofile" 9850 9851else 9852 # If there is no Makefile yet, we rely on a make rule to execute 9853 # `config.status --recheck' to rerun these tests and create the 9854 # libtool script then. 9855 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9856 if test -f "$ltmain_in"; then 9857 test -f Makefile && make "$ltmain" 9858 fi 9859fi 9860 9861 9862ac_ext=c 9863ac_cpp='$CPP $CPPFLAGS' 9864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9866ac_compiler_gnu=$ac_cv_c_compiler_gnu 9867 9868CC="$lt_save_CC" 9869 9870 9871# Check whether --with-tags or --without-tags was given. 9872if test "${with_tags+set}" = set; then 9873 withval="$with_tags" 9874 tagnames="$withval" 9875fi; 9876 9877if test -f "$ltmain" && test -n "$tagnames"; then 9878 if test ! -f "${ofile}"; then 9879 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9880echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9881 fi 9882 9883 if test -z "$LTCC"; then 9884 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9885 if test -z "$LTCC"; then 9886 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9887echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9888 else 9889 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9890echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9891 fi 9892 fi 9893 if test -z "$LTCFLAGS"; then 9894 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 9895 fi 9896 9897 # Extract list of available tagged configurations in $ofile. 9898 # Note that this assumes the entire list is on one line. 9899 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9900 9901 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9902 for tagname in $tagnames; do 9903 IFS="$lt_save_ifs" 9904 # Check whether tagname contains only valid characters 9905 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9906 "") ;; 9907 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9908echo "$as_me: error: invalid tag name: $tagname" >&2;} 9909 { (exit 1); exit 1; }; } 9910 ;; 9911 esac 9912 9913 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9914 then 9915 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9916echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9917 { (exit 1); exit 1; }; } 9918 fi 9919 9920 # Update the list of available tags. 9921 if test -n "$tagname"; then 9922 echo appending configuration tag \"$tagname\" to $ofile 9923 9924 case $tagname in 9925 CXX) 9926 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9927 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9928 (test "X$CXX" != "Xg++"))) ; then 9929 ac_ext=cc 9930ac_cpp='$CXXCPP $CPPFLAGS' 9931ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9932ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9933ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9934 9935 9936 9937 9938archive_cmds_need_lc_CXX=no 9939allow_undefined_flag_CXX= 9940always_export_symbols_CXX=no 9941archive_expsym_cmds_CXX= 9942export_dynamic_flag_spec_CXX= 9943hardcode_direct_CXX=no 9944hardcode_libdir_flag_spec_CXX= 9945hardcode_libdir_flag_spec_ld_CXX= 9946hardcode_libdir_separator_CXX= 9947hardcode_minus_L_CXX=no 9948hardcode_shlibpath_var_CXX=unsupported 9949hardcode_automatic_CXX=no 9950module_cmds_CXX= 9951module_expsym_cmds_CXX= 9952link_all_deplibs_CXX=unknown 9953old_archive_cmds_CXX=$old_archive_cmds 9954no_undefined_flag_CXX= 9955whole_archive_flag_spec_CXX= 9956enable_shared_with_static_runtimes_CXX=no 9957 9958# Dependencies to place before and after the object being linked: 9959predep_objects_CXX= 9960postdep_objects_CXX= 9961predeps_CXX= 9962postdeps_CXX= 9963compiler_lib_search_path_CXX= 9964 9965# Source file extension for C++ test sources. 9966ac_ext=cpp 9967 9968# Object file extension for compiled C++ test sources. 9969objext=o 9970objext_CXX=$objext 9971 9972# Code to be used in simple compile tests 9973lt_simple_compile_test_code="int some_variable = 0;\n" 9974 9975# Code to be used in simple link tests 9976lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 9977 9978# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9979 9980# If no C compiler was specified, use CC. 9981LTCC=${LTCC-"$CC"} 9982 9983# If no C compiler flags were specified, use CFLAGS. 9984LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9985 9986# Allow CC to be a program name with arguments. 9987compiler=$CC 9988 9989 9990# save warnings/boilerplate of simple test code 9991ac_outfile=conftest.$ac_objext 9992printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9993eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9994_lt_compiler_boilerplate=`cat conftest.err` 9995$rm conftest* 9996 9997ac_outfile=conftest.$ac_objext 9998printf "$lt_simple_link_test_code" >conftest.$ac_ext 9999eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10000_lt_linker_boilerplate=`cat conftest.err` 10001$rm conftest* 10002 10003 10004# Allow CC to be a program name with arguments. 10005lt_save_CC=$CC 10006lt_save_LD=$LD 10007lt_save_GCC=$GCC 10008GCC=$GXX 10009lt_save_with_gnu_ld=$with_gnu_ld 10010lt_save_path_LD=$lt_cv_path_LD 10011if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10012 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10013else 10014 $as_unset lt_cv_prog_gnu_ld 10015fi 10016if test -n "${lt_cv_path_LDCXX+set}"; then 10017 lt_cv_path_LD=$lt_cv_path_LDCXX 10018else 10019 $as_unset lt_cv_path_LD 10020fi 10021test -z "${LDCXX+set}" || LD=$LDCXX 10022CC=${CXX-"c++"} 10023compiler=$CC 10024compiler_CXX=$CC 10025for cc_temp in $compiler""; do 10026 case $cc_temp in 10027 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10028 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10029 \-*) ;; 10030 *) break;; 10031 esac 10032done 10033cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10034 10035 10036# We don't want -fno-exception wen compiling C++ code, so set the 10037# no_builtin_flag separately 10038if test "$GXX" = yes; then 10039 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10040else 10041 lt_prog_compiler_no_builtin_flag_CXX= 10042fi 10043 10044if test "$GXX" = yes; then 10045 # Set up default GNU C++ configuration 10046 10047 10048# Check whether --with-gnu-ld or --without-gnu-ld was given. 10049if test "${with_gnu_ld+set}" = set; then 10050 withval="$with_gnu_ld" 10051 test "$withval" = no || with_gnu_ld=yes 10052else 10053 with_gnu_ld=no 10054fi; 10055ac_prog=ld 10056if test "$GCC" = yes; then 10057 # Check if gcc -print-prog-name=ld gives a path. 10058 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10059echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 10060 case $host in 10061 *-*-mingw*) 10062 # gcc leaves a trailing carriage return which upsets mingw 10063 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10064 *) 10065 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10066 esac 10067 case $ac_prog in 10068 # Accept absolute paths. 10069 [\\/]* | ?:[\\/]*) 10070 re_direlt='/[^/][^/]*/\.\./' 10071 # Canonicalize the pathname of ld 10072 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10073 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10074 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10075 done 10076 test -z "$LD" && LD="$ac_prog" 10077 ;; 10078 "") 10079 # If it fails, then pretend we aren't using GCC. 10080 ac_prog=ld 10081 ;; 10082 *) 10083 # If it is relative, then search for the first ld in PATH. 10084 with_gnu_ld=unknown 10085 ;; 10086 esac 10087elif test "$with_gnu_ld" = yes; then 10088 echo "$as_me:$LINENO: checking for GNU ld" >&5 10089echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10090else 10091 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10092echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10093fi 10094if test "${lt_cv_path_LD+set}" = set; then 10095 echo $ECHO_N "(cached) $ECHO_C" >&6 10096else 10097 if test -z "$LD"; then 10098 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10099 for ac_dir in $PATH; do 10100 IFS="$lt_save_ifs" 10101 test -z "$ac_dir" && ac_dir=. 10102 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10103 lt_cv_path_LD="$ac_dir/$ac_prog" 10104 # Check to see if the program is GNU ld. I'd rather use --version, 10105 # but apparently some variants of GNU ld only accept -v. 10106 # Break only if it was the GNU/non-GNU ld that we prefer. 10107 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10108 *GNU* | *'with BFD'*) 10109 test "$with_gnu_ld" != no && break 10110 ;; 10111 *) 10112 test "$with_gnu_ld" != yes && break 10113 ;; 10114 esac 10115 fi 10116 done 10117 IFS="$lt_save_ifs" 10118else 10119 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10120fi 10121fi 10122 10123LD="$lt_cv_path_LD" 10124if test -n "$LD"; then 10125 echo "$as_me:$LINENO: result: $LD" >&5 10126echo "${ECHO_T}$LD" >&6 10127else 10128 echo "$as_me:$LINENO: result: no" >&5 10129echo "${ECHO_T}no" >&6 10130fi 10131test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10132echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10133 { (exit 1); exit 1; }; } 10134echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10135echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10136if test "${lt_cv_prog_gnu_ld+set}" = set; then 10137 echo $ECHO_N "(cached) $ECHO_C" >&6 10138else 10139 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10140case `$LD -v 2>&1 </dev/null` in 10141*GNU* | *'with BFD'*) 10142 lt_cv_prog_gnu_ld=yes 10143 ;; 10144*) 10145 lt_cv_prog_gnu_ld=no 10146 ;; 10147esac 10148fi 10149echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10150echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10151with_gnu_ld=$lt_cv_prog_gnu_ld 10152 10153 10154 10155 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10156 # archiving commands below assume that GNU ld is being used. 10157 if test "$with_gnu_ld" = yes; then 10158 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10159 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' 10160 10161 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10162 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10163 10164 # If archive_cmds runs LD, not CC, wlarc should be empty 10165 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10166 # investigate it a little bit more. (MM) 10167 wlarc='${wl}' 10168 10169 # ancient GNU ld didn't support --whole-archive et. al. 10170 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10171 grep 'no-whole-archive' > /dev/null; then 10172 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10173 else 10174 whole_archive_flag_spec_CXX= 10175 fi 10176 else 10177 with_gnu_ld=no 10178 wlarc= 10179 10180 # A generic and very simple default shared library creation 10181 # command for GNU C++ for the case where it uses the native 10182 # linker, instead of GNU ld. If possible, this setting should 10183 # overridden to take advantage of the native linker features on 10184 # the platform it is being used on. 10185 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10186 fi 10187 10188 # Commands to make compiler produce verbose output that lists 10189 # what "hidden" libraries, object files and flags are used when 10190 # linking a shared library. 10191 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10192 10193else 10194 GXX=no 10195 with_gnu_ld=no 10196 wlarc= 10197fi 10198 10199# PORTME: fill in a description of your system's C++ link characteristics 10200echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10201echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10202ld_shlibs_CXX=yes 10203case $host_os in 10204 aix3*) 10205 # FIXME: insert proper C++ library support 10206 ld_shlibs_CXX=no 10207 ;; 10208 aix4* | aix5*) 10209 if test "$host_cpu" = ia64; then 10210 # On IA64, the linker does run time linking by default, so we don't 10211 # have to do anything special. 10212 aix_use_runtimelinking=no 10213 exp_sym_flag='-Bexport' 10214 no_entry_flag="" 10215 else 10216 aix_use_runtimelinking=no 10217 10218 # Test if we are trying to use run time linking or normal 10219 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10220 # need to do runtime linking. 10221 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10222 for ld_flag in $LDFLAGS; do 10223 case $ld_flag in 10224 *-brtl*) 10225 aix_use_runtimelinking=yes 10226 break 10227 ;; 10228 esac 10229 done 10230 ;; 10231 esac 10232 10233 exp_sym_flag='-bexport' 10234 no_entry_flag='-bnoentry' 10235 fi 10236 10237 # When large executables or shared objects are built, AIX ld can 10238 # have problems creating the table of contents. If linking a library 10239 # or program results in "error TOC overflow" add -mminimal-toc to 10240 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10241 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10242 10243 archive_cmds_CXX='' 10244 hardcode_direct_CXX=yes 10245 hardcode_libdir_separator_CXX=':' 10246 link_all_deplibs_CXX=yes 10247 10248 if test "$GXX" = yes; then 10249 case $host_os in aix4.[012]|aix4.[012].*) 10250 # We only want to do this on AIX 4.2 and lower, the check 10251 # below for broken collect2 doesn't work under 4.3+ 10252 collect2name=`${CC} -print-prog-name=collect2` 10253 if test -f "$collect2name" && \ 10254 strings "$collect2name" | grep resolve_lib_name >/dev/null 10255 then 10256 # We have reworked collect2 10257 hardcode_direct_CXX=yes 10258 else 10259 # We have old collect2 10260 hardcode_direct_CXX=unsupported 10261 # It fails to find uninstalled libraries when the uninstalled 10262 # path is not listed in the libpath. Setting hardcode_minus_L 10263 # to unsupported forces relinking 10264 hardcode_minus_L_CXX=yes 10265 hardcode_libdir_flag_spec_CXX='-L$libdir' 10266 hardcode_libdir_separator_CXX= 10267 fi 10268 ;; 10269 esac 10270 shared_flag='-shared' 10271 if test "$aix_use_runtimelinking" = yes; then 10272 shared_flag="$shared_flag "'${wl}-G' 10273 fi 10274 else 10275 # not using gcc 10276 if test "$host_cpu" = ia64; then 10277 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10278 # chokes on -Wl,-G. The following line is correct: 10279 shared_flag='-G' 10280 else 10281 if test "$aix_use_runtimelinking" = yes; then 10282 shared_flag='${wl}-G' 10283 else 10284 shared_flag='${wl}-bM:SRE' 10285 fi 10286 fi 10287 fi 10288 10289 # It seems that -bexpall does not export symbols beginning with 10290 # underscore (_), so it is better to generate a list of symbols to export. 10291 always_export_symbols_CXX=yes 10292 if test "$aix_use_runtimelinking" = yes; then 10293 # Warning - without using the other runtime loading flags (-brtl), 10294 # -berok will link without error, but may produce a broken library. 10295 allow_undefined_flag_CXX='-berok' 10296 # Determine the default libpath from the value encoded in an empty executable. 10297 cat >conftest.$ac_ext <<_ACEOF 10298/* confdefs.h. */ 10299_ACEOF 10300cat confdefs.h >>conftest.$ac_ext 10301cat >>conftest.$ac_ext <<_ACEOF 10302/* end confdefs.h. */ 10303 10304int 10305main () 10306{ 10307 10308 ; 10309 return 0; 10310} 10311_ACEOF 10312rm -f conftest.$ac_objext conftest$ac_exeext 10313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10314 (eval $ac_link) 2>conftest.er1 10315 ac_status=$? 10316 grep -v '^ *+' conftest.er1 >conftest.err 10317 rm -f conftest.er1 10318 cat conftest.err >&5 10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10320 (exit $ac_status); } && 10321 { ac_try='test -z "$ac_cxx_werror_flag" 10322 || test ! -s conftest.err' 10323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10324 (eval $ac_try) 2>&5 10325 ac_status=$? 10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10327 (exit $ac_status); }; } && 10328 { ac_try='test -s conftest$ac_exeext' 10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10330 (eval $ac_try) 2>&5 10331 ac_status=$? 10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10333 (exit $ac_status); }; }; then 10334 10335aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10336}'` 10337# Check for a 64-bit object if we didn't find anything. 10338if 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; } 10339}'`; fi 10340else 10341 echo "$as_me: failed program was:" >&5 10342sed 's/^/| /' conftest.$ac_ext >&5 10343 10344fi 10345rm -f conftest.err conftest.$ac_objext \ 10346 conftest$ac_exeext conftest.$ac_ext 10347if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10348 10349 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10350 10351 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" 10352 else 10353 if test "$host_cpu" = ia64; then 10354 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10355 allow_undefined_flag_CXX="-z nodefs" 10356 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" 10357 else 10358 # Determine the default libpath from the value encoded in an empty executable. 10359 cat >conftest.$ac_ext <<_ACEOF 10360/* confdefs.h. */ 10361_ACEOF 10362cat confdefs.h >>conftest.$ac_ext 10363cat >>conftest.$ac_ext <<_ACEOF 10364/* end confdefs.h. */ 10365 10366int 10367main () 10368{ 10369 10370 ; 10371 return 0; 10372} 10373_ACEOF 10374rm -f conftest.$ac_objext conftest$ac_exeext 10375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10376 (eval $ac_link) 2>conftest.er1 10377 ac_status=$? 10378 grep -v '^ *+' conftest.er1 >conftest.err 10379 rm -f conftest.er1 10380 cat conftest.err >&5 10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10382 (exit $ac_status); } && 10383 { ac_try='test -z "$ac_cxx_werror_flag" 10384 || test ! -s conftest.err' 10385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10386 (eval $ac_try) 2>&5 10387 ac_status=$? 10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10389 (exit $ac_status); }; } && 10390 { ac_try='test -s conftest$ac_exeext' 10391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10392 (eval $ac_try) 2>&5 10393 ac_status=$? 10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10395 (exit $ac_status); }; }; then 10396 10397aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10398}'` 10399# Check for a 64-bit object if we didn't find anything. 10400if 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; } 10401}'`; fi 10402else 10403 echo "$as_me: failed program was:" >&5 10404sed 's/^/| /' conftest.$ac_ext >&5 10405 10406fi 10407rm -f conftest.err conftest.$ac_objext \ 10408 conftest$ac_exeext conftest.$ac_ext 10409if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10410 10411 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10412 # Warning - without using the other run time loading flags, 10413 # -berok will link without error, but may produce a broken library. 10414 no_undefined_flag_CXX=' ${wl}-bernotok' 10415 allow_undefined_flag_CXX=' ${wl}-berok' 10416 # Exported symbols can be pulled into shared objects from archives 10417 whole_archive_flag_spec_CXX='$convenience' 10418 archive_cmds_need_lc_CXX=yes 10419 # This is similar to how AIX traditionally builds its shared libraries. 10420 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' 10421 fi 10422 fi 10423 ;; 10424 10425 beos*) 10426 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10427 allow_undefined_flag_CXX=unsupported 10428 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10429 # support --undefined. This deserves some investigation. FIXME 10430 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10431 else 10432 ld_shlibs_CXX=no 10433 fi 10434 ;; 10435 10436 chorus*) 10437 case $cc_basename in 10438 *) 10439 # FIXME: insert proper C++ library support 10440 ld_shlibs_CXX=no 10441 ;; 10442 esac 10443 ;; 10444 10445 cygwin* | mingw* | pw32*) 10446 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10447 # as there is no search path for DLLs. 10448 hardcode_libdir_flag_spec_CXX='-L$libdir' 10449 allow_undefined_flag_CXX=unsupported 10450 always_export_symbols_CXX=no 10451 enable_shared_with_static_runtimes_CXX=yes 10452 10453 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10454 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' 10455 # If the export-symbols file already is a .def file (1st line 10456 # is EXPORTS), use it as is; otherwise, prepend... 10457 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10458 cp $export_symbols $output_objdir/$soname.def; 10459 else 10460 echo EXPORTS > $output_objdir/$soname.def; 10461 cat $export_symbols >> $output_objdir/$soname.def; 10462 fi~ 10463 $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' 10464 else 10465 ld_shlibs_CXX=no 10466 fi 10467 ;; 10468 darwin* | rhapsody*) 10469 case $host_os in 10470 rhapsody* | darwin1.[012]) 10471 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10472 ;; 10473 *) # Darwin 1.3 on 10474 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10475 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10476 else 10477 case ${MACOSX_DEPLOYMENT_TARGET} in 10478 10.[012]) 10479 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10480 ;; 10481 10.*) 10482 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10483 ;; 10484 esac 10485 fi 10486 ;; 10487 esac 10488 archive_cmds_need_lc_CXX=no 10489 hardcode_direct_CXX=no 10490 hardcode_automatic_CXX=yes 10491 hardcode_shlibpath_var_CXX=unsupported 10492 whole_archive_flag_spec_CXX='' 10493 link_all_deplibs_CXX=yes 10494 10495 if test "$GXX" = yes ; then 10496 lt_int_apple_cc_single_mod=no 10497 output_verbose_link_cmd='echo' 10498 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10499 lt_int_apple_cc_single_mod=yes 10500 fi 10501 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10502 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10503 else 10504 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' 10505 fi 10506 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10507 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10508 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10509 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}' 10510 else 10511 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}' 10512 fi 10513 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}' 10514 else 10515 case $cc_basename in 10516 xlc*) 10517 output_verbose_link_cmd='echo' 10518 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' 10519 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10520 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10521 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}' 10522 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}' 10523 ;; 10524 *) 10525 ld_shlibs_CXX=no 10526 ;; 10527 esac 10528 fi 10529 ;; 10530 10531 dgux*) 10532 case $cc_basename in 10533 ec++*) 10534 # FIXME: insert proper C++ library support 10535 ld_shlibs_CXX=no 10536 ;; 10537 ghcx*) 10538 # Green Hills C++ Compiler 10539 # FIXME: insert proper C++ library support 10540 ld_shlibs_CXX=no 10541 ;; 10542 *) 10543 # FIXME: insert proper C++ library support 10544 ld_shlibs_CXX=no 10545 ;; 10546 esac 10547 ;; 10548 freebsd[12]*) 10549 # C++ shared libraries reported to be fairly broken before switch to ELF 10550 ld_shlibs_CXX=no 10551 ;; 10552 freebsd-elf*) 10553 archive_cmds_need_lc_CXX=no 10554 ;; 10555 freebsd* | kfreebsd*-gnu | dragonfly*) 10556 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10557 # conventions 10558 ld_shlibs_CXX=yes 10559 ;; 10560 gnu*) 10561 ;; 10562 hpux9*) 10563 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10564 hardcode_libdir_separator_CXX=: 10565 export_dynamic_flag_spec_CXX='${wl}-E' 10566 hardcode_direct_CXX=yes 10567 hardcode_minus_L_CXX=yes # Not in the search PATH, 10568 # but as the default 10569 # location of the library. 10570 10571 case $cc_basename in 10572 CC*) 10573 # FIXME: insert proper C++ library support 10574 ld_shlibs_CXX=no 10575 ;; 10576 aCC*) 10577 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' 10578 # Commands to make compiler produce verbose output that lists 10579 # what "hidden" libraries, object files and flags are used when 10580 # linking a shared library. 10581 # 10582 # There doesn't appear to be a way to prevent this compiler from 10583 # explicitly linking system object files so we need to strip them 10584 # from the output so that they don't get included in the library 10585 # dependencies. 10586 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' 10587 ;; 10588 *) 10589 if test "$GXX" = yes; then 10590 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' 10591 else 10592 # FIXME: insert proper C++ library support 10593 ld_shlibs_CXX=no 10594 fi 10595 ;; 10596 esac 10597 ;; 10598 hpux10*|hpux11*) 10599 if test $with_gnu_ld = no; then 10600 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10601 hardcode_libdir_separator_CXX=: 10602 10603 case $host_cpu in 10604 hppa*64*|ia64*) 10605 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10606 ;; 10607 *) 10608 export_dynamic_flag_spec_CXX='${wl}-E' 10609 ;; 10610 esac 10611 fi 10612 case $host_cpu in 10613 hppa*64*|ia64*) 10614 hardcode_direct_CXX=no 10615 hardcode_shlibpath_var_CXX=no 10616 ;; 10617 *) 10618 hardcode_direct_CXX=yes 10619 hardcode_minus_L_CXX=yes # Not in the search PATH, 10620 # but as the default 10621 # location of the library. 10622 ;; 10623 esac 10624 10625 case $cc_basename in 10626 CC*) 10627 # FIXME: insert proper C++ library support 10628 ld_shlibs_CXX=no 10629 ;; 10630 aCC*) 10631 case $host_cpu in 10632 hppa*64*) 10633 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10634 ;; 10635 ia64*) 10636 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10637 ;; 10638 *) 10639 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10640 ;; 10641 esac 10642 # Commands to make compiler produce verbose output that lists 10643 # what "hidden" libraries, object files and flags are used when 10644 # linking a shared library. 10645 # 10646 # There doesn't appear to be a way to prevent this compiler from 10647 # explicitly linking system object files so we need to strip them 10648 # from the output so that they don't get included in the library 10649 # dependencies. 10650 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' 10651 ;; 10652 *) 10653 if test "$GXX" = yes; then 10654 if test $with_gnu_ld = no; then 10655 case $host_cpu in 10656 hppa*64*) 10657 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10658 ;; 10659 ia64*) 10660 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10661 ;; 10662 *) 10663 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' 10664 ;; 10665 esac 10666 fi 10667 else 10668 # FIXME: insert proper C++ library support 10669 ld_shlibs_CXX=no 10670 fi 10671 ;; 10672 esac 10673 ;; 10674 interix3*) 10675 hardcode_direct_CXX=no 10676 hardcode_shlibpath_var_CXX=no 10677 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10678 export_dynamic_flag_spec_CXX='${wl}-E' 10679 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10680 # Instead, shared libraries are loaded at an image base (0x10000000 by 10681 # default) and relocated if they conflict, which is a slow very memory 10682 # consuming and fragmenting process. To avoid this, we pick a random, 10683 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10684 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10685 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' 10686 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' 10687 ;; 10688 irix5* | irix6*) 10689 case $cc_basename in 10690 CC*) 10691 # SGI C++ 10692 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' 10693 10694 # Archives containing C++ object files must be created using 10695 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10696 # necessary to make sure instantiated templates are included 10697 # in the archive. 10698 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10699 ;; 10700 *) 10701 if test "$GXX" = yes; then 10702 if test "$with_gnu_ld" = no; then 10703 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' 10704 else 10705 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' 10706 fi 10707 fi 10708 link_all_deplibs_CXX=yes 10709 ;; 10710 esac 10711 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10712 hardcode_libdir_separator_CXX=: 10713 ;; 10714 linux*) 10715 case $cc_basename in 10716 KCC*) 10717 # Kuck and Associates, Inc. (KAI) C++ Compiler 10718 10719 # KCC will only create a shared library if the output file 10720 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10721 # to its proper name (with version) after linking. 10722 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' 10723 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' 10724 # Commands to make compiler produce verbose output that lists 10725 # what "hidden" libraries, object files and flags are used when 10726 # linking a shared library. 10727 # 10728 # There doesn't appear to be a way to prevent this compiler from 10729 # explicitly linking system object files so we need to strip them 10730 # from the output so that they don't get included in the library 10731 # dependencies. 10732 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' 10733 10734 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10735 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10736 10737 # Archives containing C++ object files must be created using 10738 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10739 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10740 ;; 10741 icpc*) 10742 # Intel C++ 10743 with_gnu_ld=yes 10744 # version 8.0 and above of icpc choke on multiply defined symbols 10745 # if we add $predep_objects and $postdep_objects, however 7.1 and 10746 # earlier do not add the objects themselves. 10747 case `$CC -V 2>&1` in 10748 *"Version 7."*) 10749 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10750 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' 10751 ;; 10752 *) # Version 8.0 or newer 10753 tmp_idyn= 10754 case $host_cpu in 10755 ia64*) tmp_idyn=' -i_dynamic';; 10756 esac 10757 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10758 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' 10759 ;; 10760 esac 10761 archive_cmds_need_lc_CXX=no 10762 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10763 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10764 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10765 ;; 10766 pgCC*) 10767 # Portland Group C++ compiler 10768 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 10769 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' 10770 10771 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10772 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10773 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' 10774 ;; 10775 cxx*) 10776 # Compaq C++ 10777 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10778 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' 10779 10780 runpath_var=LD_RUN_PATH 10781 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10782 hardcode_libdir_separator_CXX=: 10783 10784 # Commands to make compiler produce verbose output that lists 10785 # what "hidden" libraries, object files and flags are used when 10786 # linking a shared library. 10787 # 10788 # There doesn't appear to be a way to prevent this compiler from 10789 # explicitly linking system object files so we need to strip them 10790 # from the output so that they don't get included in the library 10791 # dependencies. 10792 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' 10793 ;; 10794 esac 10795 ;; 10796 lynxos*) 10797 # FIXME: insert proper C++ library support 10798 ld_shlibs_CXX=no 10799 ;; 10800 m88k*) 10801 # FIXME: insert proper C++ library support 10802 ld_shlibs_CXX=no 10803 ;; 10804 mvs*) 10805 case $cc_basename in 10806 cxx*) 10807 # FIXME: insert proper C++ library support 10808 ld_shlibs_CXX=no 10809 ;; 10810 *) 10811 # FIXME: insert proper C++ library support 10812 ld_shlibs_CXX=no 10813 ;; 10814 esac 10815 ;; 10816 netbsd*) 10817 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10818 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10819 wlarc= 10820 hardcode_libdir_flag_spec_CXX='-R$libdir' 10821 hardcode_direct_CXX=yes 10822 hardcode_shlibpath_var_CXX=no 10823 fi 10824 # Workaround some broken pre-1.5 toolchains 10825 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10826 ;; 10827 openbsd2*) 10828 # C++ shared libraries are fairly broken 10829 ld_shlibs_CXX=no 10830 ;; 10831 openbsd*) 10832 hardcode_direct_CXX=yes 10833 hardcode_shlibpath_var_CXX=no 10834 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10835 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10836 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10837 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10838 export_dynamic_flag_spec_CXX='${wl}-E' 10839 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10840 fi 10841 output_verbose_link_cmd='echo' 10842 ;; 10843 osf3*) 10844 case $cc_basename in 10845 KCC*) 10846 # Kuck and Associates, Inc. (KAI) C++ Compiler 10847 10848 # KCC will only create a shared library if the output file 10849 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10850 # to its proper name (with version) after linking. 10851 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' 10852 10853 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10854 hardcode_libdir_separator_CXX=: 10855 10856 # Archives containing C++ object files must be created using 10857 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10858 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10859 10860 ;; 10861 RCC*) 10862 # Rational C++ 2.4.1 10863 # FIXME: insert proper C++ library support 10864 ld_shlibs_CXX=no 10865 ;; 10866 cxx*) 10867 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10868 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' 10869 10870 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10871 hardcode_libdir_separator_CXX=: 10872 10873 # Commands to make compiler produce verbose output that lists 10874 # what "hidden" libraries, object files and flags are used when 10875 # linking a shared library. 10876 # 10877 # There doesn't appear to be a way to prevent this compiler from 10878 # explicitly linking system object files so we need to strip them 10879 # from the output so that they don't get included in the library 10880 # dependencies. 10881 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' 10882 ;; 10883 *) 10884 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10885 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10886 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' 10887 10888 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10889 hardcode_libdir_separator_CXX=: 10890 10891 # Commands to make compiler produce verbose output that lists 10892 # what "hidden" libraries, object files and flags are used when 10893 # linking a shared library. 10894 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10895 10896 else 10897 # FIXME: insert proper C++ library support 10898 ld_shlibs_CXX=no 10899 fi 10900 ;; 10901 esac 10902 ;; 10903 osf4* | osf5*) 10904 case $cc_basename in 10905 KCC*) 10906 # Kuck and Associates, Inc. (KAI) C++ Compiler 10907 10908 # KCC will only create a shared library if the output file 10909 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10910 # to its proper name (with version) after linking. 10911 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' 10912 10913 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10914 hardcode_libdir_separator_CXX=: 10915 10916 # Archives containing C++ object files must be created using 10917 # the KAI C++ compiler. 10918 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10919 ;; 10920 RCC*) 10921 # Rational C++ 2.4.1 10922 # FIXME: insert proper C++ library support 10923 ld_shlibs_CXX=no 10924 ;; 10925 cxx*) 10926 allow_undefined_flag_CXX=' -expect_unresolved \*' 10927 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' 10928 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10929 echo "-hidden">> $lib.exp~ 10930 $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~ 10931 $rm $lib.exp' 10932 10933 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10934 hardcode_libdir_separator_CXX=: 10935 10936 # Commands to make compiler produce verbose output that lists 10937 # what "hidden" libraries, object files and flags are used when 10938 # linking a shared library. 10939 # 10940 # There doesn't appear to be a way to prevent this compiler from 10941 # explicitly linking system object files so we need to strip them 10942 # from the output so that they don't get included in the library 10943 # dependencies. 10944 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' 10945 ;; 10946 *) 10947 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10948 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10949 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' 10950 10951 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10952 hardcode_libdir_separator_CXX=: 10953 10954 # Commands to make compiler produce verbose output that lists 10955 # what "hidden" libraries, object files and flags are used when 10956 # linking a shared library. 10957 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10958 10959 else 10960 # FIXME: insert proper C++ library support 10961 ld_shlibs_CXX=no 10962 fi 10963 ;; 10964 esac 10965 ;; 10966 psos*) 10967 # FIXME: insert proper C++ library support 10968 ld_shlibs_CXX=no 10969 ;; 10970 sunos4*) 10971 case $cc_basename in 10972 CC*) 10973 # Sun C++ 4.x 10974 # FIXME: insert proper C++ library support 10975 ld_shlibs_CXX=no 10976 ;; 10977 lcc*) 10978 # Lucid 10979 # FIXME: insert proper C++ library support 10980 ld_shlibs_CXX=no 10981 ;; 10982 *) 10983 # FIXME: insert proper C++ library support 10984 ld_shlibs_CXX=no 10985 ;; 10986 esac 10987 ;; 10988 solaris*) 10989 case $cc_basename in 10990 CC*) 10991 # Sun C++ 4.2, 5.x and Centerline C++ 10992 archive_cmds_need_lc_CXX=yes 10993 no_undefined_flag_CXX=' -zdefs' 10994 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10995 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10996 $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' 10997 10998 hardcode_libdir_flag_spec_CXX='-R$libdir' 10999 hardcode_shlibpath_var_CXX=no 11000 case $host_os in 11001 solaris2.[0-5] | solaris2.[0-5].*) ;; 11002 *) 11003 # The C++ compiler is used as linker so we must use $wl 11004 # flag to pass the commands to the underlying system 11005 # linker. We must also pass each convience library through 11006 # to the system linker between allextract/defaultextract. 11007 # The C++ compiler will combine linker options so we 11008 # cannot just pass the convience library names through 11009 # without $wl. 11010 # Supported since Solaris 2.6 (maybe 2.5.1?) 11011 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' 11012 ;; 11013 esac 11014 link_all_deplibs_CXX=yes 11015 11016 output_verbose_link_cmd='echo' 11017 11018 # Archives containing C++ object files must be created using 11019 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11020 # necessary to make sure instantiated templates are included 11021 # in the archive. 11022 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11023 ;; 11024 gcx*) 11025 # Green Hills C++ Compiler 11026 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11027 11028 # The C++ compiler must be used to create the archive. 11029 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11030 ;; 11031 *) 11032 # GNU C++ compiler with Solaris linker 11033 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11034 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11035 if $CC --version | grep -v '^2\.7' > /dev/null; then 11036 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11037 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11038 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11039 11040 # Commands to make compiler produce verbose output that lists 11041 # what "hidden" libraries, object files and flags are used when 11042 # linking a shared library. 11043 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11044 else 11045 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11046 # platform. 11047 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11048 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11049 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11050 11051 # Commands to make compiler produce verbose output that lists 11052 # what "hidden" libraries, object files and flags are used when 11053 # linking a shared library. 11054 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11055 fi 11056 11057 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11058 fi 11059 ;; 11060 esac 11061 ;; 11062 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11063 no_undefined_flag_CXX='${wl}-z,text' 11064 archive_cmds_need_lc_CXX=no 11065 hardcode_shlibpath_var_CXX=no 11066 runpath_var='LD_RUN_PATH' 11067 11068 case $cc_basename in 11069 CC*) 11070 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11071 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11072 ;; 11073 *) 11074 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11075 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11076 ;; 11077 esac 11078 ;; 11079 sysv5* | sco3.2v5* | sco5v6*) 11080 # Note: We can NOT use -z defs as we might desire, because we do not 11081 # link with -lc, and that would cause any symbols used from libc to 11082 # always be unresolved, which means just about no library would 11083 # ever link correctly. If we're not using GNU ld we use -z text 11084 # though, which does catch some bad symbols but isn't as heavy-handed 11085 # as -z defs. 11086 # For security reasons, it is highly recommended that you always 11087 # use absolute paths for naming shared libraries, and exclude the 11088 # DT_RUNPATH tag from executables and libraries. But doing so 11089 # requires that you compile everything twice, which is a pain. 11090 # So that behaviour is only enabled if SCOABSPATH is set to a 11091 # non-empty value in the environment. Most likely only useful for 11092 # creating official distributions of packages. 11093 # This is a hack until libtool officially supports absolute path 11094 # names for shared libraries. 11095 no_undefined_flag_CXX='${wl}-z,text' 11096 allow_undefined_flag_CXX='${wl}-z,nodefs' 11097 archive_cmds_need_lc_CXX=no 11098 hardcode_shlibpath_var_CXX=no 11099 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11100 hardcode_libdir_separator_CXX=':' 11101 link_all_deplibs_CXX=yes 11102 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11103 runpath_var='LD_RUN_PATH' 11104 11105 case $cc_basename in 11106 CC*) 11107 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11108 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11109 ;; 11110 *) 11111 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11112 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11113 ;; 11114 esac 11115 ;; 11116 tandem*) 11117 case $cc_basename in 11118 NCC*) 11119 # NonStop-UX NCC 3.20 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 ;; 11127 esac 11128 ;; 11129 vxworks*) 11130 # FIXME: insert proper C++ library support 11131 ld_shlibs_CXX=no 11132 ;; 11133 *) 11134 # FIXME: insert proper C++ library support 11135 ld_shlibs_CXX=no 11136 ;; 11137esac 11138echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11139echo "${ECHO_T}$ld_shlibs_CXX" >&6 11140test "$ld_shlibs_CXX" = no && can_build_shared=no 11141 11142GCC_CXX="$GXX" 11143LD_CXX="$LD" 11144 11145 11146cat > conftest.$ac_ext <<EOF 11147class Foo 11148{ 11149public: 11150 Foo (void) { a = 0; } 11151private: 11152 int a; 11153}; 11154EOF 11155 11156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11157 (eval $ac_compile) 2>&5 11158 ac_status=$? 11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11160 (exit $ac_status); }; then 11161 # Parse the compiler output and extract the necessary 11162 # objects, libraries and library flags. 11163 11164 # Sentinel used to keep track of whether or not we are before 11165 # the conftest object file. 11166 pre_test_object_deps_done=no 11167 11168 # The `*' in the case matches for architectures that use `case' in 11169 # $output_verbose_cmd can trigger glob expansion during the loop 11170 # eval without this substitution. 11171 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11172 11173 for p in `eval $output_verbose_link_cmd`; do 11174 case $p in 11175 11176 -L* | -R* | -l*) 11177 # Some compilers place space between "-{L,R}" and the path. 11178 # Remove the space. 11179 if test $p = "-L" \ 11180 || test $p = "-R"; then 11181 prev=$p 11182 continue 11183 else 11184 prev= 11185 fi 11186 11187 if test "$pre_test_object_deps_done" = no; then 11188 case $p in 11189 -L* | -R*) 11190 # Internal compiler library paths should come after those 11191 # provided the user. The postdeps already come after the 11192 # user supplied libs so there is no need to process them. 11193 if test -z "$compiler_lib_search_path_CXX"; then 11194 compiler_lib_search_path_CXX="${prev}${p}" 11195 else 11196 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11197 fi 11198 ;; 11199 # The "-l" case would never come before the object being 11200 # linked, so don't bother handling this case. 11201 esac 11202 else 11203 if test -z "$postdeps_CXX"; then 11204 postdeps_CXX="${prev}${p}" 11205 else 11206 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11207 fi 11208 fi 11209 ;; 11210 11211 *.$objext) 11212 # This assumes that the test object file only shows up 11213 # once in the compiler output. 11214 if test "$p" = "conftest.$objext"; then 11215 pre_test_object_deps_done=yes 11216 continue 11217 fi 11218 11219 if test "$pre_test_object_deps_done" = no; then 11220 if test -z "$predep_objects_CXX"; then 11221 predep_objects_CXX="$p" 11222 else 11223 predep_objects_CXX="$predep_objects_CXX $p" 11224 fi 11225 else 11226 if test -z "$postdep_objects_CXX"; then 11227 postdep_objects_CXX="$p" 11228 else 11229 postdep_objects_CXX="$postdep_objects_CXX $p" 11230 fi 11231 fi 11232 ;; 11233 11234 *) ;; # Ignore the rest. 11235 11236 esac 11237 done 11238 11239 # Clean up. 11240 rm -f a.out a.exe 11241else 11242 echo "libtool.m4: error: problem compiling CXX test program" 11243fi 11244 11245$rm -f confest.$objext 11246 11247# PORTME: override above test on systems where it is broken 11248case $host_os in 11249interix3*) 11250 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11251 # hack all around it, let's just trust "g++" to DTRT. 11252 predep_objects_CXX= 11253 postdep_objects_CXX= 11254 postdeps_CXX= 11255 ;; 11256 11257solaris*) 11258 case $cc_basename in 11259 CC*) 11260 # Adding this requires a known-good setup of shared libraries for 11261 # Sun compiler versions before 5.6, else PIC objects from an old 11262 # archive will be linked into the output, leading to subtle bugs. 11263 postdeps_CXX='-lCstd -lCrun' 11264 ;; 11265 esac 11266 ;; 11267esac 11268 11269 11270case " $postdeps_CXX " in 11271*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11272esac 11273 11274lt_prog_compiler_wl_CXX= 11275lt_prog_compiler_pic_CXX= 11276lt_prog_compiler_static_CXX= 11277 11278echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11279echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11280 11281 # C++ specific cases for pic, static, wl, etc. 11282 if test "$GXX" = yes; then 11283 lt_prog_compiler_wl_CXX='-Wl,' 11284 lt_prog_compiler_static_CXX='-static' 11285 11286 case $host_os in 11287 aix*) 11288 # All AIX code is PIC. 11289 if test "$host_cpu" = ia64; then 11290 # AIX 5 now supports IA64 processor 11291 lt_prog_compiler_static_CXX='-Bstatic' 11292 fi 11293 ;; 11294 amigaos*) 11295 # FIXME: we need at least 68020 code to build shared libraries, but 11296 # adding the `-m68020' flag to GCC prevents building anything better, 11297 # like `-m68040'. 11298 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11299 ;; 11300 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11301 # PIC is the default for these OSes. 11302 ;; 11303 mingw* | os2* | pw32*) 11304 # This hack is so that the source file can tell whether it is being 11305 # built for inclusion in a dll (and should export symbols for example). 11306 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11307 ;; 11308 darwin* | rhapsody*) 11309 # PIC is the default on this platform 11310 # Common symbols not allowed in MH_DYLIB files 11311 lt_prog_compiler_pic_CXX='-fno-common' 11312 ;; 11313 *djgpp*) 11314 # DJGPP does not support shared libraries at all 11315 lt_prog_compiler_pic_CXX= 11316 ;; 11317 interix3*) 11318 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11319 # Instead, we relocate shared libraries at runtime. 11320 ;; 11321 sysv4*MP*) 11322 if test -d /usr/nec; then 11323 lt_prog_compiler_pic_CXX=-Kconform_pic 11324 fi 11325 ;; 11326 hpux*) 11327 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11328 # not for PA HP-UX. 11329 case $host_cpu in 11330 hppa*64*|ia64*) 11331 ;; 11332 *) 11333 lt_prog_compiler_pic_CXX='-fPIC' 11334 ;; 11335 esac 11336 ;; 11337 *) 11338 lt_prog_compiler_pic_CXX='-fPIC' 11339 ;; 11340 esac 11341 else 11342 case $host_os in 11343 aix4* | aix5*) 11344 # All AIX code is PIC. 11345 if test "$host_cpu" = ia64; then 11346 # AIX 5 now supports IA64 processor 11347 lt_prog_compiler_static_CXX='-Bstatic' 11348 else 11349 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11350 fi 11351 ;; 11352 chorus*) 11353 case $cc_basename in 11354 cxch68*) 11355 # Green Hills C++ Compiler 11356 # _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" 11357 ;; 11358 esac 11359 ;; 11360 darwin*) 11361 # PIC is the default on this platform 11362 # Common symbols not allowed in MH_DYLIB files 11363 case $cc_basename in 11364 xlc*) 11365 lt_prog_compiler_pic_CXX='-qnocommon' 11366 lt_prog_compiler_wl_CXX='-Wl,' 11367 ;; 11368 esac 11369 ;; 11370 dgux*) 11371 case $cc_basename in 11372 ec++*) 11373 lt_prog_compiler_pic_CXX='-KPIC' 11374 ;; 11375 ghcx*) 11376 # Green Hills C++ Compiler 11377 lt_prog_compiler_pic_CXX='-pic' 11378 ;; 11379 *) 11380 ;; 11381 esac 11382 ;; 11383 freebsd* | kfreebsd*-gnu | dragonfly*) 11384 # FreeBSD uses GNU C++ 11385 ;; 11386 hpux9* | hpux10* | hpux11*) 11387 case $cc_basename in 11388 CC*) 11389 lt_prog_compiler_wl_CXX='-Wl,' 11390 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11391 if test "$host_cpu" != ia64; then 11392 lt_prog_compiler_pic_CXX='+Z' 11393 fi 11394 ;; 11395 aCC*) 11396 lt_prog_compiler_wl_CXX='-Wl,' 11397 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11398 case $host_cpu in 11399 hppa*64*|ia64*) 11400 # +Z the default 11401 ;; 11402 *) 11403 lt_prog_compiler_pic_CXX='+Z' 11404 ;; 11405 esac 11406 ;; 11407 *) 11408 ;; 11409 esac 11410 ;; 11411 interix*) 11412 # This is c89, which is MS Visual C++ (no shared libs) 11413 # Anyone wants to do a port? 11414 ;; 11415 irix5* | irix6* | nonstopux*) 11416 case $cc_basename in 11417 CC*) 11418 lt_prog_compiler_wl_CXX='-Wl,' 11419 lt_prog_compiler_static_CXX='-non_shared' 11420 # CC pic flag -KPIC is the default. 11421 ;; 11422 *) 11423 ;; 11424 esac 11425 ;; 11426 linux*) 11427 case $cc_basename in 11428 KCC*) 11429 # KAI C++ Compiler 11430 lt_prog_compiler_wl_CXX='--backend -Wl,' 11431 lt_prog_compiler_pic_CXX='-fPIC' 11432 ;; 11433 icpc* | ecpc*) 11434 # Intel C++ 11435 lt_prog_compiler_wl_CXX='-Wl,' 11436 lt_prog_compiler_pic_CXX='-KPIC' 11437 lt_prog_compiler_static_CXX='-static' 11438 ;; 11439 pgCC*) 11440 # Portland Group C++ compiler. 11441 lt_prog_compiler_wl_CXX='-Wl,' 11442 lt_prog_compiler_pic_CXX='-fpic' 11443 lt_prog_compiler_static_CXX='-Bstatic' 11444 ;; 11445 cxx*) 11446 # Compaq C++ 11447 # Make sure the PIC flag is empty. It appears that all Alpha 11448 # Linux and Compaq Tru64 Unix objects are PIC. 11449 lt_prog_compiler_pic_CXX= 11450 lt_prog_compiler_static_CXX='-non_shared' 11451 ;; 11452 *) 11453 ;; 11454 esac 11455 ;; 11456 lynxos*) 11457 ;; 11458 m88k*) 11459 ;; 11460 mvs*) 11461 case $cc_basename in 11462 cxx*) 11463 lt_prog_compiler_pic_CXX='-W c,exportall' 11464 ;; 11465 *) 11466 ;; 11467 esac 11468 ;; 11469 netbsd*) 11470 ;; 11471 osf3* | osf4* | osf5*) 11472 case $cc_basename in 11473 KCC*) 11474 lt_prog_compiler_wl_CXX='--backend -Wl,' 11475 ;; 11476 RCC*) 11477 # Rational C++ 2.4.1 11478 lt_prog_compiler_pic_CXX='-pic' 11479 ;; 11480 cxx*) 11481 # Digital/Compaq C++ 11482 lt_prog_compiler_wl_CXX='-Wl,' 11483 # Make sure the PIC flag is empty. It appears that all Alpha 11484 # Linux and Compaq Tru64 Unix objects are PIC. 11485 lt_prog_compiler_pic_CXX= 11486 lt_prog_compiler_static_CXX='-non_shared' 11487 ;; 11488 *) 11489 ;; 11490 esac 11491 ;; 11492 psos*) 11493 ;; 11494 solaris*) 11495 case $cc_basename in 11496 CC*) 11497 # Sun C++ 4.2, 5.x and Centerline C++ 11498 lt_prog_compiler_pic_CXX='-KPIC' 11499 lt_prog_compiler_static_CXX='-Bstatic' 11500 lt_prog_compiler_wl_CXX='-Qoption ld ' 11501 ;; 11502 gcx*) 11503 # Green Hills C++ Compiler 11504 lt_prog_compiler_pic_CXX='-PIC' 11505 ;; 11506 *) 11507 ;; 11508 esac 11509 ;; 11510 sunos4*) 11511 case $cc_basename in 11512 CC*) 11513 # Sun C++ 4.x 11514 lt_prog_compiler_pic_CXX='-pic' 11515 lt_prog_compiler_static_CXX='-Bstatic' 11516 ;; 11517 lcc*) 11518 # Lucid 11519 lt_prog_compiler_pic_CXX='-pic' 11520 ;; 11521 *) 11522 ;; 11523 esac 11524 ;; 11525 tandem*) 11526 case $cc_basename in 11527 NCC*) 11528 # NonStop-UX NCC 3.20 11529 lt_prog_compiler_pic_CXX='-KPIC' 11530 ;; 11531 *) 11532 ;; 11533 esac 11534 ;; 11535 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11536 case $cc_basename in 11537 CC*) 11538 lt_prog_compiler_wl_CXX='-Wl,' 11539 lt_prog_compiler_pic_CXX='-KPIC' 11540 lt_prog_compiler_static_CXX='-Bstatic' 11541 ;; 11542 esac 11543 ;; 11544 vxworks*) 11545 ;; 11546 *) 11547 lt_prog_compiler_can_build_shared_CXX=no 11548 ;; 11549 esac 11550 fi 11551 11552echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11553echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11554 11555# 11556# Check to make sure the PIC flag actually works. 11557# 11558if test -n "$lt_prog_compiler_pic_CXX"; then 11559 11560echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11561echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11562if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11563 echo $ECHO_N "(cached) $ECHO_C" >&6 11564else 11565 lt_prog_compiler_pic_works_CXX=no 11566 ac_outfile=conftest.$ac_objext 11567 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11568 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11569 # Insert the option either (1) after the last *FLAGS variable, or 11570 # (2) before a word containing "conftest.", or (3) at the end. 11571 # Note that $ac_compile itself does not contain backslashes and begins 11572 # with a dollar sign (not a hyphen), so the echo should work correctly. 11573 # The option is referenced via a variable to avoid confusing sed. 11574 lt_compile=`echo "$ac_compile" | $SED \ 11575 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11577 -e 's:$: $lt_compiler_flag:'` 11578 (eval echo "\"\$as_me:11578: $lt_compile\"" >&5) 11579 (eval "$lt_compile" 2>conftest.err) 11580 ac_status=$? 11581 cat conftest.err >&5 11582 echo "$as_me:11582: \$? = $ac_status" >&5 11583 if (exit $ac_status) && test -s "$ac_outfile"; then 11584 # The compiler can only warn and ignore the option if not recognized 11585 # So say no if there are warnings other than the usual output. 11586 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 11587 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11588 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11589 lt_prog_compiler_pic_works_CXX=yes 11590 fi 11591 fi 11592 $rm conftest* 11593 11594fi 11595echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11596echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11597 11598if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11599 case $lt_prog_compiler_pic_CXX in 11600 "" | " "*) ;; 11601 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11602 esac 11603else 11604 lt_prog_compiler_pic_CXX= 11605 lt_prog_compiler_can_build_shared_CXX=no 11606fi 11607 11608fi 11609case $host_os in 11610 # For platforms which do not support PIC, -DPIC is meaningless: 11611 *djgpp*) 11612 lt_prog_compiler_pic_CXX= 11613 ;; 11614 *) 11615 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11616 ;; 11617esac 11618 11619# 11620# Check to make sure the static flag actually works. 11621# 11622wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 11623echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11624echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 11625if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 11626 echo $ECHO_N "(cached) $ECHO_C" >&6 11627else 11628 lt_prog_compiler_static_works_CXX=no 11629 save_LDFLAGS="$LDFLAGS" 11630 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11631 printf "$lt_simple_link_test_code" > conftest.$ac_ext 11632 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11633 # The linker can only warn and ignore the option if not recognized 11634 # So say no if there are warnings 11635 if test -s conftest.err; then 11636 # Append any errors to the config.log. 11637 cat conftest.err 1>&5 11638 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 11639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11640 if diff conftest.exp conftest.er2 >/dev/null; then 11641 lt_prog_compiler_static_works_CXX=yes 11642 fi 11643 else 11644 lt_prog_compiler_static_works_CXX=yes 11645 fi 11646 fi 11647 $rm conftest* 11648 LDFLAGS="$save_LDFLAGS" 11649 11650fi 11651echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 11652echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 11653 11654if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 11655 : 11656else 11657 lt_prog_compiler_static_CXX= 11658fi 11659 11660 11661echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11662echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11663if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11664 echo $ECHO_N "(cached) $ECHO_C" >&6 11665else 11666 lt_cv_prog_compiler_c_o_CXX=no 11667 $rm -r conftest 2>/dev/null 11668 mkdir conftest 11669 cd conftest 11670 mkdir out 11671 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11672 11673 lt_compiler_flag="-o out/conftest2.$ac_objext" 11674 # Insert the option either (1) after the last *FLAGS variable, or 11675 # (2) before a word containing "conftest.", or (3) at the end. 11676 # Note that $ac_compile itself does not contain backslashes and begins 11677 # with a dollar sign (not a hyphen), so the echo should work correctly. 11678 lt_compile=`echo "$ac_compile" | $SED \ 11679 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11680 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11681 -e 's:$: $lt_compiler_flag:'` 11682 (eval echo "\"\$as_me:11682: $lt_compile\"" >&5) 11683 (eval "$lt_compile" 2>out/conftest.err) 11684 ac_status=$? 11685 cat out/conftest.err >&5 11686 echo "$as_me:11686: \$? = $ac_status" >&5 11687 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11688 then 11689 # The compiler can only warn and ignore the option if not recognized 11690 # So say no if there are warnings 11691 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 11692 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11693 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11694 lt_cv_prog_compiler_c_o_CXX=yes 11695 fi 11696 fi 11697 chmod u+w . 2>&5 11698 $rm conftest* 11699 # SGI C++ compiler will create directory out/ii_files/ for 11700 # template instantiation 11701 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11702 $rm out/* && rmdir out 11703 cd .. 11704 rmdir conftest 11705 $rm conftest* 11706 11707fi 11708echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11709echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11710 11711 11712hard_links="nottested" 11713if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11714 # do not overwrite the value of need_locks provided by the user 11715 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11716echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11717 hard_links=yes 11718 $rm conftest* 11719 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11720 touch conftest.a 11721 ln conftest.a conftest.b 2>&5 || hard_links=no 11722 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11723 echo "$as_me:$LINENO: result: $hard_links" >&5 11724echo "${ECHO_T}$hard_links" >&6 11725 if test "$hard_links" = no; then 11726 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11727echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11728 need_locks=warn 11729 fi 11730else 11731 need_locks=no 11732fi 11733 11734echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11735echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11736 11737 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11738 case $host_os in 11739 aix4* | aix5*) 11740 # If we're using GNU nm, then we don't want the "-C" option. 11741 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11742 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11743 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' 11744 else 11745 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' 11746 fi 11747 ;; 11748 pw32*) 11749 export_symbols_cmds_CXX="$ltdll_cmds" 11750 ;; 11751 cygwin* | mingw*) 11752 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' 11753 ;; 11754 *) 11755 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11756 ;; 11757 esac 11758 11759echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11760echo "${ECHO_T}$ld_shlibs_CXX" >&6 11761test "$ld_shlibs_CXX" = no && can_build_shared=no 11762 11763# 11764# Do we need to explicitly link libc? 11765# 11766case "x$archive_cmds_need_lc_CXX" in 11767x|xyes) 11768 # Assume -lc should be added 11769 archive_cmds_need_lc_CXX=yes 11770 11771 if test "$enable_shared" = yes && test "$GCC" = yes; then 11772 case $archive_cmds_CXX in 11773 *'~'*) 11774 # FIXME: we may have to deal with multi-command sequences. 11775 ;; 11776 '$CC '*) 11777 # Test whether the compiler implicitly links with -lc since on some 11778 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11779 # to ld, don't add -lc before -lgcc. 11780 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11781echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11782 $rm conftest* 11783 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11784 11785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11786 (eval $ac_compile) 2>&5 11787 ac_status=$? 11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11789 (exit $ac_status); } 2>conftest.err; then 11790 soname=conftest 11791 lib=conftest 11792 libobjs=conftest.$ac_objext 11793 deplibs= 11794 wl=$lt_prog_compiler_wl_CXX 11795 pic_flag=$lt_prog_compiler_pic_CXX 11796 compiler_flags=-v 11797 linker_flags=-v 11798 verstring= 11799 output_objdir=. 11800 libname=conftest 11801 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11802 allow_undefined_flag_CXX= 11803 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11804 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11805 ac_status=$? 11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11807 (exit $ac_status); } 11808 then 11809 archive_cmds_need_lc_CXX=no 11810 else 11811 archive_cmds_need_lc_CXX=yes 11812 fi 11813 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11814 else 11815 cat conftest.err 1>&5 11816 fi 11817 $rm conftest* 11818 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11819echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11820 ;; 11821 esac 11822 fi 11823 ;; 11824esac 11825 11826echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11827echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11828library_names_spec= 11829libname_spec='lib$name' 11830soname_spec= 11831shrext_cmds=".so" 11832postinstall_cmds= 11833postuninstall_cmds= 11834finish_cmds= 11835finish_eval= 11836shlibpath_var= 11837shlibpath_overrides_runpath=unknown 11838version_type=none 11839dynamic_linker="$host_os ld.so" 11840sys_lib_dlsearch_path_spec="/lib /usr/lib" 11841if test "$GCC" = yes; then 11842 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11843 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11844 # if the path contains ";" then we assume it to be the separator 11845 # otherwise default to the standard path separator (i.e. ":") - it is 11846 # assumed that no part of a normal pathname contains ";" but that should 11847 # okay in the real world where ";" in dirpaths is itself problematic. 11848 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11849 else 11850 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11851 fi 11852else 11853 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11854fi 11855need_lib_prefix=unknown 11856hardcode_into_libs=no 11857 11858# when you set need_version to no, make sure it does not cause -set_version 11859# flags to be left without arguments 11860need_version=unknown 11861 11862case $host_os in 11863aix3*) 11864 version_type=linux 11865 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11866 shlibpath_var=LIBPATH 11867 11868 # AIX 3 has no versioning support, so we append a major version to the name. 11869 soname_spec='${libname}${release}${shared_ext}$major' 11870 ;; 11871 11872aix4* | aix5*) 11873 version_type=linux 11874 need_lib_prefix=no 11875 need_version=no 11876 hardcode_into_libs=yes 11877 if test "$host_cpu" = ia64; then 11878 # AIX 5 supports IA64 11879 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11880 shlibpath_var=LD_LIBRARY_PATH 11881 else 11882 # With GCC up to 2.95.x, collect2 would create an import file 11883 # for dependence libraries. The import file would start with 11884 # the line `#! .'. This would cause the generated library to 11885 # depend on `.', always an invalid library. This was fixed in 11886 # development snapshots of GCC prior to 3.0. 11887 case $host_os in 11888 aix4 | aix4.[01] | aix4.[01].*) 11889 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11890 echo ' yes ' 11891 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11892 : 11893 else 11894 can_build_shared=no 11895 fi 11896 ;; 11897 esac 11898 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11899 # soname into executable. Probably we can add versioning support to 11900 # collect2, so additional links can be useful in future. 11901 if test "$aix_use_runtimelinking" = yes; then 11902 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11903 # instead of lib<name>.a to let people know that these are not 11904 # typical AIX shared libraries. 11905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11906 else 11907 # We preserve .a as extension for shared libraries through AIX4.2 11908 # and later when we are not doing run time linking. 11909 library_names_spec='${libname}${release}.a $libname.a' 11910 soname_spec='${libname}${release}${shared_ext}$major' 11911 fi 11912 shlibpath_var=LIBPATH 11913 fi 11914 ;; 11915 11916amigaos*) 11917 library_names_spec='$libname.ixlibrary $libname.a' 11918 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11919 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' 11920 ;; 11921 11922beos*) 11923 library_names_spec='${libname}${shared_ext}' 11924 dynamic_linker="$host_os ld.so" 11925 shlibpath_var=LIBRARY_PATH 11926 ;; 11927 11928bsdi[45]*) 11929 version_type=linux 11930 need_version=no 11931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11932 soname_spec='${libname}${release}${shared_ext}$major' 11933 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11934 shlibpath_var=LD_LIBRARY_PATH 11935 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11936 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11937 # the default ld.so.conf also contains /usr/contrib/lib and 11938 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11939 # libtool to hard-code these into programs 11940 ;; 11941 11942cygwin* | mingw* | pw32*) 11943 version_type=windows 11944 shrext_cmds=".dll" 11945 need_version=no 11946 need_lib_prefix=no 11947 11948 case $GCC,$host_os in 11949 yes,cygwin* | yes,mingw* | yes,pw32*) 11950 library_names_spec='$libname.dll.a' 11951 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11952 postinstall_cmds='base_file=`basename \${file}`~ 11953 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11954 dldir=$destdir/`dirname \$dlpath`~ 11955 test -d \$dldir || mkdir -p \$dldir~ 11956 $install_prog $dir/$dlname \$dldir/$dlname~ 11957 chmod a+x \$dldir/$dlname' 11958 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11959 dlpath=$dir/\$dldll~ 11960 $rm \$dlpath' 11961 shlibpath_overrides_runpath=yes 11962 11963 case $host_os in 11964 cygwin*) 11965 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11966 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11967 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11968 ;; 11969 mingw*) 11970 # MinGW DLLs use traditional 'lib' prefix 11971 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11972 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11973 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11974 # It is most probably a Windows format PATH printed by 11975 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11976 # path with ; separators, and with drive letters. We can handle the 11977 # drive letters (cygwin fileutils understands them), so leave them, 11978 # especially as we might pass files found there to a mingw objdump, 11979 # which wouldn't understand a cygwinified path. Ahh. 11980 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11981 else 11982 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11983 fi 11984 ;; 11985 pw32*) 11986 # pw32 DLLs use 'pw' prefix rather than 'lib' 11987 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11988 ;; 11989 esac 11990 ;; 11991 11992 *) 11993 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11994 ;; 11995 esac 11996 dynamic_linker='Win32 ld.exe' 11997 # FIXME: first we should search . and the directory the executable is in 11998 shlibpath_var=PATH 11999 ;; 12000 12001darwin* | rhapsody*) 12002 dynamic_linker="$host_os dyld" 12003 version_type=darwin 12004 need_lib_prefix=no 12005 need_version=no 12006 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12007 soname_spec='${libname}${release}${major}$shared_ext' 12008 shlibpath_overrides_runpath=yes 12009 shlibpath_var=DYLD_LIBRARY_PATH 12010 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12011 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12012 if test "$GCC" = yes; then 12013 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"` 12014 else 12015 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12016 fi 12017 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12018 ;; 12019 12020dgux*) 12021 version_type=linux 12022 need_lib_prefix=no 12023 need_version=no 12024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12025 soname_spec='${libname}${release}${shared_ext}$major' 12026 shlibpath_var=LD_LIBRARY_PATH 12027 ;; 12028 12029freebsd1*) 12030 dynamic_linker=no 12031 ;; 12032 12033kfreebsd*-gnu) 12034 version_type=linux 12035 need_lib_prefix=no 12036 need_version=no 12037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12038 soname_spec='${libname}${release}${shared_ext}$major' 12039 shlibpath_var=LD_LIBRARY_PATH 12040 shlibpath_overrides_runpath=no 12041 hardcode_into_libs=yes 12042 dynamic_linker='GNU ld.so' 12043 ;; 12044 12045freebsd* | dragonfly*) 12046 # DragonFly does not have aout. When/if they implement a new 12047 # versioning mechanism, adjust this. 12048 if test -x /usr/bin/objformat; then 12049 objformat=`/usr/bin/objformat` 12050 else 12051 case $host_os in 12052 freebsd[123]*) objformat=aout ;; 12053 *) objformat=elf ;; 12054 esac 12055 fi 12056 version_type=freebsd-$objformat 12057 case $version_type in 12058 freebsd-elf*) 12059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12060 need_version=no 12061 need_lib_prefix=no 12062 ;; 12063 freebsd-*) 12064 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12065 need_version=yes 12066 ;; 12067 esac 12068 shlibpath_var=LD_LIBRARY_PATH 12069 case $host_os in 12070 freebsd2*) 12071 shlibpath_overrides_runpath=yes 12072 ;; 12073 freebsd3.[01]* | freebsdelf3.[01]*) 12074 shlibpath_overrides_runpath=yes 12075 hardcode_into_libs=yes 12076 ;; 12077 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12078 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12079 shlibpath_overrides_runpath=no 12080 hardcode_into_libs=yes 12081 ;; 12082 freebsd*) # from 4.6 on 12083 shlibpath_overrides_runpath=yes 12084 hardcode_into_libs=yes 12085 ;; 12086 esac 12087 ;; 12088 12089gnu*) 12090 version_type=linux 12091 need_lib_prefix=no 12092 need_version=no 12093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12094 soname_spec='${libname}${release}${shared_ext}$major' 12095 shlibpath_var=LD_LIBRARY_PATH 12096 hardcode_into_libs=yes 12097 ;; 12098 12099hpux9* | hpux10* | hpux11*) 12100 # Give a soname corresponding to the major version so that dld.sl refuses to 12101 # link against other versions. 12102 version_type=sunos 12103 need_lib_prefix=no 12104 need_version=no 12105 case $host_cpu in 12106 ia64*) 12107 shrext_cmds='.so' 12108 hardcode_into_libs=yes 12109 dynamic_linker="$host_os dld.so" 12110 shlibpath_var=LD_LIBRARY_PATH 12111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12113 soname_spec='${libname}${release}${shared_ext}$major' 12114 if test "X$HPUX_IA64_MODE" = X32; then 12115 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12116 else 12117 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12118 fi 12119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12120 ;; 12121 hppa*64*) 12122 shrext_cmds='.sl' 12123 hardcode_into_libs=yes 12124 dynamic_linker="$host_os dld.sl" 12125 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12130 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12131 ;; 12132 *) 12133 shrext_cmds='.sl' 12134 dynamic_linker="$host_os dld.sl" 12135 shlibpath_var=SHLIB_PATH 12136 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12138 soname_spec='${libname}${release}${shared_ext}$major' 12139 ;; 12140 esac 12141 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12142 postinstall_cmds='chmod 555 $lib' 12143 ;; 12144 12145interix3*) 12146 version_type=linux 12147 need_lib_prefix=no 12148 need_version=no 12149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12150 soname_spec='${libname}${release}${shared_ext}$major' 12151 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12152 shlibpath_var=LD_LIBRARY_PATH 12153 shlibpath_overrides_runpath=no 12154 hardcode_into_libs=yes 12155 ;; 12156 12157irix5* | irix6* | nonstopux*) 12158 case $host_os in 12159 nonstopux*) version_type=nonstopux ;; 12160 *) 12161 if test "$lt_cv_prog_gnu_ld" = yes; then 12162 version_type=linux 12163 else 12164 version_type=irix 12165 fi ;; 12166 esac 12167 need_lib_prefix=no 12168 need_version=no 12169 soname_spec='${libname}${release}${shared_ext}$major' 12170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12171 case $host_os in 12172 irix5* | nonstopux*) 12173 libsuff= shlibsuff= 12174 ;; 12175 *) 12176 case $LD in # libtool.m4 will add one of these switches to LD 12177 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12178 libsuff= shlibsuff= libmagic=32-bit;; 12179 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12180 libsuff=32 shlibsuff=N32 libmagic=N32;; 12181 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12182 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12183 *) libsuff= shlibsuff= libmagic=never-match;; 12184 esac 12185 ;; 12186 esac 12187 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12188 shlibpath_overrides_runpath=no 12189 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12190 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12191 hardcode_into_libs=yes 12192 ;; 12193 12194# No shared lib support for Linux oldld, aout, or coff. 12195linux*oldld* | linux*aout* | linux*coff*) 12196 dynamic_linker=no 12197 ;; 12198 12199# This must be Linux ELF. 12200linux*) 12201 version_type=linux 12202 need_lib_prefix=no 12203 need_version=no 12204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12205 soname_spec='${libname}${release}${shared_ext}$major' 12206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12207 shlibpath_var=LD_LIBRARY_PATH 12208 shlibpath_overrides_runpath=no 12209 # This implies no fast_install, which is unacceptable. 12210 # Some rework will be needed to allow for fast_install 12211 # before this can be enabled. 12212 hardcode_into_libs=yes 12213 12214 # find out which ABI we are using 12215 libsuff= 12216 case "$host_cpu" in 12217 x86_64*|s390x*|powerpc64*) 12218 echo '#line 12218 "configure"' > conftest.$ac_ext 12219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12220 (eval $ac_compile) 2>&5 12221 ac_status=$? 12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12223 (exit $ac_status); }; then 12224 case `/usr/bin/file conftest.$ac_objext` in 12225 *64-bit*) 12226 libsuff=64 12227 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 12228 ;; 12229 esac 12230 fi 12231 rm -rf conftest* 12232 ;; 12233 esac 12234 12235 # Append ld.so.conf contents to the search path 12236 if test -f /etc/ld.so.conf; then 12237 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' ' '` 12238 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 12239 fi 12240 12241 # We used to test for /lib/ld.so.1 and disable shared libraries on 12242 # powerpc, because MkLinux only supported shared libraries with the 12243 # GNU dynamic linker. Since this was broken with cross compilers, 12244 # most powerpc-linux boxes support dynamic linking these days and 12245 # people can always --disable-shared, the test was removed, and we 12246 # assume the GNU/Linux dynamic linker is in use. 12247 dynamic_linker='GNU/Linux ld.so' 12248 ;; 12249 12250knetbsd*-gnu) 12251 version_type=linux 12252 need_lib_prefix=no 12253 need_version=no 12254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12255 soname_spec='${libname}${release}${shared_ext}$major' 12256 shlibpath_var=LD_LIBRARY_PATH 12257 shlibpath_overrides_runpath=no 12258 hardcode_into_libs=yes 12259 dynamic_linker='GNU ld.so' 12260 ;; 12261 12262netbsd*) 12263 version_type=sunos 12264 need_lib_prefix=no 12265 need_version=no 12266 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12269 dynamic_linker='NetBSD (a.out) ld.so' 12270 else 12271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12272 soname_spec='${libname}${release}${shared_ext}$major' 12273 dynamic_linker='NetBSD ld.elf_so' 12274 fi 12275 shlibpath_var=LD_LIBRARY_PATH 12276 shlibpath_overrides_runpath=yes 12277 hardcode_into_libs=yes 12278 ;; 12279 12280newsos6) 12281 version_type=linux 12282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12283 shlibpath_var=LD_LIBRARY_PATH 12284 shlibpath_overrides_runpath=yes 12285 ;; 12286 12287nto-qnx*) 12288 version_type=linux 12289 need_lib_prefix=no 12290 need_version=no 12291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12292 soname_spec='${libname}${release}${shared_ext}$major' 12293 shlibpath_var=LD_LIBRARY_PATH 12294 shlibpath_overrides_runpath=yes 12295 ;; 12296 12297openbsd*) 12298 version_type=sunos 12299 sys_lib_dlsearch_path_spec="/usr/lib" 12300 need_lib_prefix=no 12301 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12302 case $host_os in 12303 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12304 *) need_version=no ;; 12305 esac 12306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12308 shlibpath_var=LD_LIBRARY_PATH 12309 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12310 case $host_os in 12311 openbsd2.[89] | openbsd2.[89].*) 12312 shlibpath_overrides_runpath=no 12313 ;; 12314 *) 12315 shlibpath_overrides_runpath=yes 12316 ;; 12317 esac 12318 else 12319 shlibpath_overrides_runpath=yes 12320 fi 12321 ;; 12322 12323os2*) 12324 libname_spec='$name' 12325 shrext_cmds=".dll" 12326 need_lib_prefix=no 12327 library_names_spec='$libname${shared_ext} $libname.a' 12328 dynamic_linker='OS/2 ld.exe' 12329 shlibpath_var=LIBPATH 12330 ;; 12331 12332osf3* | osf4* | osf5*) 12333 version_type=osf 12334 need_lib_prefix=no 12335 need_version=no 12336 soname_spec='${libname}${release}${shared_ext}$major' 12337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12338 shlibpath_var=LD_LIBRARY_PATH 12339 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12340 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12341 ;; 12342 12343solaris*) 12344 version_type=linux 12345 need_lib_prefix=no 12346 need_version=no 12347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12348 soname_spec='${libname}${release}${shared_ext}$major' 12349 shlibpath_var=LD_LIBRARY_PATH 12350 shlibpath_overrides_runpath=yes 12351 hardcode_into_libs=yes 12352 # ldd complains unless libraries are executable 12353 postinstall_cmds='chmod +x $lib' 12354 ;; 12355 12356sunos4*) 12357 version_type=sunos 12358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12359 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12360 shlibpath_var=LD_LIBRARY_PATH 12361 shlibpath_overrides_runpath=yes 12362 if test "$with_gnu_ld" = yes; then 12363 need_lib_prefix=no 12364 fi 12365 need_version=yes 12366 ;; 12367 12368sysv4 | sysv4.3*) 12369 version_type=linux 12370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12371 soname_spec='${libname}${release}${shared_ext}$major' 12372 shlibpath_var=LD_LIBRARY_PATH 12373 case $host_vendor in 12374 sni) 12375 shlibpath_overrides_runpath=no 12376 need_lib_prefix=no 12377 export_dynamic_flag_spec='${wl}-Blargedynsym' 12378 runpath_var=LD_RUN_PATH 12379 ;; 12380 siemens) 12381 need_lib_prefix=no 12382 ;; 12383 motorola) 12384 need_lib_prefix=no 12385 need_version=no 12386 shlibpath_overrides_runpath=no 12387 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12388 ;; 12389 esac 12390 ;; 12391 12392sysv4*MP*) 12393 if test -d /usr/nec ;then 12394 version_type=linux 12395 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12396 soname_spec='$libname${shared_ext}.$major' 12397 shlibpath_var=LD_LIBRARY_PATH 12398 fi 12399 ;; 12400 12401sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12402 version_type=freebsd-elf 12403 need_lib_prefix=no 12404 need_version=no 12405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12406 soname_spec='${libname}${release}${shared_ext}$major' 12407 shlibpath_var=LD_LIBRARY_PATH 12408 hardcode_into_libs=yes 12409 if test "$with_gnu_ld" = yes; then 12410 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12411 shlibpath_overrides_runpath=no 12412 else 12413 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12414 shlibpath_overrides_runpath=yes 12415 case $host_os in 12416 sco3.2v5*) 12417 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12418 ;; 12419 esac 12420 fi 12421 sys_lib_dlsearch_path_spec='/usr/lib' 12422 ;; 12423 12424uts4*) 12425 version_type=linux 12426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12427 soname_spec='${libname}${release}${shared_ext}$major' 12428 shlibpath_var=LD_LIBRARY_PATH 12429 ;; 12430 12431*) 12432 dynamic_linker=no 12433 ;; 12434esac 12435echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12436echo "${ECHO_T}$dynamic_linker" >&6 12437test "$dynamic_linker" = no && can_build_shared=no 12438 12439variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12440if test "$GCC" = yes; then 12441 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12442fi 12443 12444echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12445echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12446hardcode_action_CXX= 12447if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12448 test -n "$runpath_var_CXX" || \ 12449 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12450 12451 # We can hardcode non-existant directories. 12452 if test "$hardcode_direct_CXX" != no && 12453 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12454 # have to relink, otherwise we might link with an installed library 12455 # when we should be linking with a yet-to-be-installed one 12456 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12457 test "$hardcode_minus_L_CXX" != no; then 12458 # Linking always hardcodes the temporary library directory. 12459 hardcode_action_CXX=relink 12460 else 12461 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12462 hardcode_action_CXX=immediate 12463 fi 12464else 12465 # We cannot hardcode anything, or else we can only hardcode existing 12466 # directories. 12467 hardcode_action_CXX=unsupported 12468fi 12469echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12470echo "${ECHO_T}$hardcode_action_CXX" >&6 12471 12472if test "$hardcode_action_CXX" = relink; then 12473 # Fast installation is not supported 12474 enable_fast_install=no 12475elif test "$shlibpath_overrides_runpath" = yes || 12476 test "$enable_shared" = no; then 12477 # Fast installation is not necessary 12478 enable_fast_install=needless 12479fi 12480 12481 12482# The else clause should only fire when bootstrapping the 12483# libtool distribution, otherwise you forgot to ship ltmain.sh 12484# with your package, and you will get complaints that there are 12485# no rules to generate ltmain.sh. 12486if test -f "$ltmain"; then 12487 # See if we are running on zsh, and set the options which allow our commands through 12488 # without removal of \ escapes. 12489 if test -n "${ZSH_VERSION+set}" ; then 12490 setopt NO_GLOB_SUBST 12491 fi 12492 # Now quote all the things that may contain metacharacters while being 12493 # careful not to overquote the AC_SUBSTed values. We take copies of the 12494 # variables and quote the copies for generation of the libtool script. 12495 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 12496 SED SHELL STRIP \ 12497 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12498 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12499 deplibs_check_method reload_flag reload_cmds need_locks \ 12500 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12501 lt_cv_sys_global_symbol_to_c_name_address \ 12502 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12503 old_postinstall_cmds old_postuninstall_cmds \ 12504 compiler_CXX \ 12505 CC_CXX \ 12506 LD_CXX \ 12507 lt_prog_compiler_wl_CXX \ 12508 lt_prog_compiler_pic_CXX \ 12509 lt_prog_compiler_static_CXX \ 12510 lt_prog_compiler_no_builtin_flag_CXX \ 12511 export_dynamic_flag_spec_CXX \ 12512 thread_safe_flag_spec_CXX \ 12513 whole_archive_flag_spec_CXX \ 12514 enable_shared_with_static_runtimes_CXX \ 12515 old_archive_cmds_CXX \ 12516 old_archive_from_new_cmds_CXX \ 12517 predep_objects_CXX \ 12518 postdep_objects_CXX \ 12519 predeps_CXX \ 12520 postdeps_CXX \ 12521 compiler_lib_search_path_CXX \ 12522 archive_cmds_CXX \ 12523 archive_expsym_cmds_CXX \ 12524 postinstall_cmds_CXX \ 12525 postuninstall_cmds_CXX \ 12526 old_archive_from_expsyms_cmds_CXX \ 12527 allow_undefined_flag_CXX \ 12528 no_undefined_flag_CXX \ 12529 export_symbols_cmds_CXX \ 12530 hardcode_libdir_flag_spec_CXX \ 12531 hardcode_libdir_flag_spec_ld_CXX \ 12532 hardcode_libdir_separator_CXX \ 12533 hardcode_automatic_CXX \ 12534 module_cmds_CXX \ 12535 module_expsym_cmds_CXX \ 12536 lt_cv_prog_compiler_c_o_CXX \ 12537 exclude_expsyms_CXX \ 12538 include_expsyms_CXX; do 12539 12540 case $var in 12541 old_archive_cmds_CXX | \ 12542 old_archive_from_new_cmds_CXX | \ 12543 archive_cmds_CXX | \ 12544 archive_expsym_cmds_CXX | \ 12545 module_cmds_CXX | \ 12546 module_expsym_cmds_CXX | \ 12547 old_archive_from_expsyms_cmds_CXX | \ 12548 export_symbols_cmds_CXX | \ 12549 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12550 postinstall_cmds | postuninstall_cmds | \ 12551 old_postinstall_cmds | old_postuninstall_cmds | \ 12552 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12553 # Double-quote double-evaled strings. 12554 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12555 ;; 12556 *) 12557 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12558 ;; 12559 esac 12560 done 12561 12562 case $lt_echo in 12563 *'\$0 --fallback-echo"') 12564 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12565 ;; 12566 esac 12567 12568cfgfile="$ofile" 12569 12570 cat <<__EOF__ >> "$cfgfile" 12571# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12572 12573# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12574 12575# Shell to use when invoking shell scripts. 12576SHELL=$lt_SHELL 12577 12578# Whether or not to build shared libraries. 12579build_libtool_libs=$enable_shared 12580 12581# Whether or not to build static libraries. 12582build_old_libs=$enable_static 12583 12584# Whether or not to add -lc for building shared libraries. 12585build_libtool_need_lc=$archive_cmds_need_lc_CXX 12586 12587# Whether or not to disallow shared libs when runtime libs are static 12588allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12589 12590# Whether or not to optimize for fast installation. 12591fast_install=$enable_fast_install 12592 12593# The host system. 12594host_alias=$host_alias 12595host=$host 12596host_os=$host_os 12597 12598# The build system. 12599build_alias=$build_alias 12600build=$build 12601build_os=$build_os 12602 12603# An echo program that does not interpret backslashes. 12604echo=$lt_echo 12605 12606# The archiver. 12607AR=$lt_AR 12608AR_FLAGS=$lt_AR_FLAGS 12609 12610# A C compiler. 12611LTCC=$lt_LTCC 12612 12613# LTCC compiler flags. 12614LTCFLAGS=$lt_LTCFLAGS 12615 12616# A language-specific compiler. 12617CC=$lt_compiler_CXX 12618 12619# Is the compiler the GNU C compiler? 12620with_gcc=$GCC_CXX 12621 12622# An ERE matcher. 12623EGREP=$lt_EGREP 12624 12625# The linker used to build libraries. 12626LD=$lt_LD_CXX 12627 12628# Whether we need hard or soft links. 12629LN_S=$lt_LN_S 12630 12631# A BSD-compatible nm program. 12632NM=$lt_NM 12633 12634# A symbol stripping program 12635STRIP=$lt_STRIP 12636 12637# Used to examine libraries when file_magic_cmd begins "file" 12638MAGIC_CMD=$MAGIC_CMD 12639 12640# Used on cygwin: DLL creation program. 12641DLLTOOL="$DLLTOOL" 12642 12643# Used on cygwin: object dumper. 12644OBJDUMP="$OBJDUMP" 12645 12646# Used on cygwin: assembler. 12647AS="$AS" 12648 12649# The name of the directory that contains temporary libtool files. 12650objdir=$objdir 12651 12652# How to create reloadable object files. 12653reload_flag=$lt_reload_flag 12654reload_cmds=$lt_reload_cmds 12655 12656# How to pass a linker flag through the compiler. 12657wl=$lt_lt_prog_compiler_wl_CXX 12658 12659# Object file suffix (normally "o"). 12660objext="$ac_objext" 12661 12662# Old archive suffix (normally "a"). 12663libext="$libext" 12664 12665# Shared library suffix (normally ".so"). 12666shrext_cmds='$shrext_cmds' 12667 12668# Executable file suffix (normally ""). 12669exeext="$exeext" 12670 12671# Additional compiler flags for building library objects. 12672pic_flag=$lt_lt_prog_compiler_pic_CXX 12673pic_mode=$pic_mode 12674 12675# What is the maximum length of a command? 12676max_cmd_len=$lt_cv_sys_max_cmd_len 12677 12678# Does compiler simultaneously support -c and -o options? 12679compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12680 12681# Must we lock files when doing compilation? 12682need_locks=$lt_need_locks 12683 12684# Do we need the lib prefix for modules? 12685need_lib_prefix=$need_lib_prefix 12686 12687# Do we need a version for libraries? 12688need_version=$need_version 12689 12690# Whether dlopen is supported. 12691dlopen_support=$enable_dlopen 12692 12693# Whether dlopen of programs is supported. 12694dlopen_self=$enable_dlopen_self 12695 12696# Whether dlopen of statically linked programs is supported. 12697dlopen_self_static=$enable_dlopen_self_static 12698 12699# Compiler flag to prevent dynamic linking. 12700link_static_flag=$lt_lt_prog_compiler_static_CXX 12701 12702# Compiler flag to turn off builtin functions. 12703no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12704 12705# Compiler flag to allow reflexive dlopens. 12706export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12707 12708# Compiler flag to generate shared objects directly from archives. 12709whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12710 12711# Compiler flag to generate thread-safe objects. 12712thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12713 12714# Library versioning type. 12715version_type=$version_type 12716 12717# Format of library name prefix. 12718libname_spec=$lt_libname_spec 12719 12720# List of archive names. First name is the real one, the rest are links. 12721# The last name is the one that the linker finds with -lNAME. 12722library_names_spec=$lt_library_names_spec 12723 12724# The coded name of the library, if different from the real name. 12725soname_spec=$lt_soname_spec 12726 12727# Commands used to build and install an old-style archive. 12728RANLIB=$lt_RANLIB 12729old_archive_cmds=$lt_old_archive_cmds_CXX 12730old_postinstall_cmds=$lt_old_postinstall_cmds 12731old_postuninstall_cmds=$lt_old_postuninstall_cmds 12732 12733# Create an old-style archive from a shared archive. 12734old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12735 12736# Create a temporary old-style archive to link instead of a shared archive. 12737old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12738 12739# Commands used to build and install a shared archive. 12740archive_cmds=$lt_archive_cmds_CXX 12741archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12742postinstall_cmds=$lt_postinstall_cmds 12743postuninstall_cmds=$lt_postuninstall_cmds 12744 12745# Commands used to build a loadable module (assumed same as above if empty) 12746module_cmds=$lt_module_cmds_CXX 12747module_expsym_cmds=$lt_module_expsym_cmds_CXX 12748 12749# Commands to strip libraries. 12750old_striplib=$lt_old_striplib 12751striplib=$lt_striplib 12752 12753# Dependencies to place before the objects being linked to create a 12754# shared library. 12755predep_objects=$lt_predep_objects_CXX 12756 12757# Dependencies to place after the objects being linked to create a 12758# shared library. 12759postdep_objects=$lt_postdep_objects_CXX 12760 12761# Dependencies to place before the objects being linked to create a 12762# shared library. 12763predeps=$lt_predeps_CXX 12764 12765# Dependencies to place after the objects being linked to create a 12766# shared library. 12767postdeps=$lt_postdeps_CXX 12768 12769# The library search path used internally by the compiler when linking 12770# a shared library. 12771compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 12772 12773# Method to check whether dependent libraries are shared objects. 12774deplibs_check_method=$lt_deplibs_check_method 12775 12776# Command to use when deplibs_check_method == file_magic. 12777file_magic_cmd=$lt_file_magic_cmd 12778 12779# Flag that allows shared libraries with undefined symbols to be built. 12780allow_undefined_flag=$lt_allow_undefined_flag_CXX 12781 12782# Flag that forces no undefined symbols. 12783no_undefined_flag=$lt_no_undefined_flag_CXX 12784 12785# Commands used to finish a libtool library installation in a directory. 12786finish_cmds=$lt_finish_cmds 12787 12788# Same as above, but a single script fragment to be evaled but not shown. 12789finish_eval=$lt_finish_eval 12790 12791# Take the output of nm and produce a listing of raw symbols and C names. 12792global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12793 12794# Transform the output of nm in a proper C declaration 12795global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12796 12797# Transform the output of nm in a C name address pair 12798global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12799 12800# This is the shared library runtime path variable. 12801runpath_var=$runpath_var 12802 12803# This is the shared library path variable. 12804shlibpath_var=$shlibpath_var 12805 12806# Is shlibpath searched before the hard-coded library search path? 12807shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12808 12809# How to hardcode a shared library path into an executable. 12810hardcode_action=$hardcode_action_CXX 12811 12812# Whether we should hardcode library paths into libraries. 12813hardcode_into_libs=$hardcode_into_libs 12814 12815# Flag to hardcode \$libdir into a binary during linking. 12816# This must work even if \$libdir does not exist. 12817hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 12818 12819# If ld is used when linking, flag to hardcode \$libdir into 12820# a binary during linking. This must work even if \$libdir does 12821# not exist. 12822hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 12823 12824# Whether we need a single -rpath flag with a separated argument. 12825hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 12826 12827# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12828# resulting binary. 12829hardcode_direct=$hardcode_direct_CXX 12830 12831# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12832# resulting binary. 12833hardcode_minus_L=$hardcode_minus_L_CXX 12834 12835# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12836# the resulting binary. 12837hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 12838 12839# Set to yes if building a shared library automatically hardcodes DIR into the library 12840# and all subsequent libraries and executables linked against it. 12841hardcode_automatic=$hardcode_automatic_CXX 12842 12843# Variables whose values should be saved in libtool wrapper scripts and 12844# restored at relink time. 12845variables_saved_for_relink="$variables_saved_for_relink" 12846 12847# Whether libtool must link a program against all its dependency libraries. 12848link_all_deplibs=$link_all_deplibs_CXX 12849 12850# Compile-time system search path for libraries 12851sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12852 12853# Run-time system search path for libraries 12854sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12855 12856# Fix the shell variable \$srcfile for the compiler. 12857fix_srcfile_path="$fix_srcfile_path_CXX" 12858 12859# Set to yes if exported symbols are required. 12860always_export_symbols=$always_export_symbols_CXX 12861 12862# The commands to list exported symbols. 12863export_symbols_cmds=$lt_export_symbols_cmds_CXX 12864 12865# The commands to extract the exported symbol list from a shared archive. 12866extract_expsyms_cmds=$lt_extract_expsyms_cmds 12867 12868# Symbols that should not be listed in the preloaded symbols. 12869exclude_expsyms=$lt_exclude_expsyms_CXX 12870 12871# Symbols that must always be exported. 12872include_expsyms=$lt_include_expsyms_CXX 12873 12874# ### END LIBTOOL TAG CONFIG: $tagname 12875 12876__EOF__ 12877 12878 12879else 12880 # If there is no Makefile yet, we rely on a make rule to execute 12881 # `config.status --recheck' to rerun these tests and create the 12882 # libtool script then. 12883 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12884 if test -f "$ltmain_in"; then 12885 test -f Makefile && make "$ltmain" 12886 fi 12887fi 12888 12889 12890ac_ext=c 12891ac_cpp='$CPP $CPPFLAGS' 12892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12894ac_compiler_gnu=$ac_cv_c_compiler_gnu 12895 12896CC=$lt_save_CC 12897LDCXX=$LD 12898LD=$lt_save_LD 12899GCC=$lt_save_GCC 12900with_gnu_ldcxx=$with_gnu_ld 12901with_gnu_ld=$lt_save_with_gnu_ld 12902lt_cv_path_LDCXX=$lt_cv_path_LD 12903lt_cv_path_LD=$lt_save_path_LD 12904lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 12905lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 12906 12907 else 12908 tagname="" 12909 fi 12910 ;; 12911 12912 F77) 12913 if test -n "$F77" && test "X$F77" != "Xno"; then 12914 12915ac_ext=f 12916ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12917ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12918ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12919 12920 12921archive_cmds_need_lc_F77=no 12922allow_undefined_flag_F77= 12923always_export_symbols_F77=no 12924archive_expsym_cmds_F77= 12925export_dynamic_flag_spec_F77= 12926hardcode_direct_F77=no 12927hardcode_libdir_flag_spec_F77= 12928hardcode_libdir_flag_spec_ld_F77= 12929hardcode_libdir_separator_F77= 12930hardcode_minus_L_F77=no 12931hardcode_automatic_F77=no 12932module_cmds_F77= 12933module_expsym_cmds_F77= 12934link_all_deplibs_F77=unknown 12935old_archive_cmds_F77=$old_archive_cmds 12936no_undefined_flag_F77= 12937whole_archive_flag_spec_F77= 12938enable_shared_with_static_runtimes_F77=no 12939 12940# Source file extension for f77 test sources. 12941ac_ext=f 12942 12943# Object file extension for compiled f77 test sources. 12944objext=o 12945objext_F77=$objext 12946 12947# Code to be used in simple compile tests 12948lt_simple_compile_test_code=" subroutine t\n return\n end\n" 12949 12950# Code to be used in simple link tests 12951lt_simple_link_test_code=" program t\n end\n" 12952 12953# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12954 12955# If no C compiler was specified, use CC. 12956LTCC=${LTCC-"$CC"} 12957 12958# If no C compiler flags were specified, use CFLAGS. 12959LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12960 12961# Allow CC to be a program name with arguments. 12962compiler=$CC 12963 12964 12965# save warnings/boilerplate of simple test code 12966ac_outfile=conftest.$ac_objext 12967printf "$lt_simple_compile_test_code" >conftest.$ac_ext 12968eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12969_lt_compiler_boilerplate=`cat conftest.err` 12970$rm conftest* 12971 12972ac_outfile=conftest.$ac_objext 12973printf "$lt_simple_link_test_code" >conftest.$ac_ext 12974eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12975_lt_linker_boilerplate=`cat conftest.err` 12976$rm conftest* 12977 12978 12979# Allow CC to be a program name with arguments. 12980lt_save_CC="$CC" 12981CC=${F77-"f77"} 12982compiler=$CC 12983compiler_F77=$CC 12984for cc_temp in $compiler""; do 12985 case $cc_temp in 12986 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12987 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12988 \-*) ;; 12989 *) break;; 12990 esac 12991done 12992cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12993 12994 12995echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12996echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 12997echo "$as_me:$LINENO: result: $can_build_shared" >&5 12998echo "${ECHO_T}$can_build_shared" >&6 12999 13000echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13001echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13002test "$can_build_shared" = "no" && enable_shared=no 13003 13004# On AIX, shared libraries and static libraries use the same namespace, and 13005# are all built from PIC. 13006case $host_os in 13007aix3*) 13008 test "$enable_shared" = yes && enable_static=no 13009 if test -n "$RANLIB"; then 13010 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13011 postinstall_cmds='$RANLIB $lib' 13012 fi 13013 ;; 13014aix4* | aix5*) 13015 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13016 test "$enable_shared" = yes && enable_static=no 13017 fi 13018 ;; 13019esac 13020echo "$as_me:$LINENO: result: $enable_shared" >&5 13021echo "${ECHO_T}$enable_shared" >&6 13022 13023echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13024echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13025# Make sure either enable_shared or enable_static is yes. 13026test "$enable_shared" = yes || enable_static=yes 13027echo "$as_me:$LINENO: result: $enable_static" >&5 13028echo "${ECHO_T}$enable_static" >&6 13029 13030GCC_F77="$G77" 13031LD_F77="$LD" 13032 13033lt_prog_compiler_wl_F77= 13034lt_prog_compiler_pic_F77= 13035lt_prog_compiler_static_F77= 13036 13037echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13038echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13039 13040 if test "$GCC" = yes; then 13041 lt_prog_compiler_wl_F77='-Wl,' 13042 lt_prog_compiler_static_F77='-static' 13043 13044 case $host_os in 13045 aix*) 13046 # All AIX code is PIC. 13047 if test "$host_cpu" = ia64; then 13048 # AIX 5 now supports IA64 processor 13049 lt_prog_compiler_static_F77='-Bstatic' 13050 fi 13051 ;; 13052 13053 amigaos*) 13054 # FIXME: we need at least 68020 code to build shared libraries, but 13055 # adding the `-m68020' flag to GCC prevents building anything better, 13056 # like `-m68040'. 13057 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13058 ;; 13059 13060 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13061 # PIC is the default for these OSes. 13062 ;; 13063 13064 mingw* | pw32* | os2*) 13065 # This hack is so that the source file can tell whether it is being 13066 # built for inclusion in a dll (and should export symbols for example). 13067 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13068 ;; 13069 13070 darwin* | rhapsody*) 13071 # PIC is the default on this platform 13072 # Common symbols not allowed in MH_DYLIB files 13073 lt_prog_compiler_pic_F77='-fno-common' 13074 ;; 13075 13076 interix3*) 13077 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13078 # Instead, we relocate shared libraries at runtime. 13079 ;; 13080 13081 msdosdjgpp*) 13082 # Just because we use GCC doesn't mean we suddenly get shared libraries 13083 # on systems that don't support them. 13084 lt_prog_compiler_can_build_shared_F77=no 13085 enable_shared=no 13086 ;; 13087 13088 sysv4*MP*) 13089 if test -d /usr/nec; then 13090 lt_prog_compiler_pic_F77=-Kconform_pic 13091 fi 13092 ;; 13093 13094 hpux*) 13095 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13096 # not for PA HP-UX. 13097 case $host_cpu in 13098 hppa*64*|ia64*) 13099 # +Z the default 13100 ;; 13101 *) 13102 lt_prog_compiler_pic_F77='-fPIC' 13103 ;; 13104 esac 13105 ;; 13106 13107 *) 13108 lt_prog_compiler_pic_F77='-fPIC' 13109 ;; 13110 esac 13111 else 13112 # PORTME Check for flag to pass linker flags through the system compiler. 13113 case $host_os in 13114 aix*) 13115 lt_prog_compiler_wl_F77='-Wl,' 13116 if test "$host_cpu" = ia64; then 13117 # AIX 5 now supports IA64 processor 13118 lt_prog_compiler_static_F77='-Bstatic' 13119 else 13120 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13121 fi 13122 ;; 13123 darwin*) 13124 # PIC is the default on this platform 13125 # Common symbols not allowed in MH_DYLIB files 13126 case $cc_basename in 13127 xlc*) 13128 lt_prog_compiler_pic_F77='-qnocommon' 13129 lt_prog_compiler_wl_F77='-Wl,' 13130 ;; 13131 esac 13132 ;; 13133 13134 mingw* | pw32* | os2*) 13135 # This hack is so that the source file can tell whether it is being 13136 # built for inclusion in a dll (and should export symbols for example). 13137 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13138 ;; 13139 13140 hpux9* | hpux10* | hpux11*) 13141 lt_prog_compiler_wl_F77='-Wl,' 13142 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13143 # not for PA HP-UX. 13144 case $host_cpu in 13145 hppa*64*|ia64*) 13146 # +Z the default 13147 ;; 13148 *) 13149 lt_prog_compiler_pic_F77='+Z' 13150 ;; 13151 esac 13152 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13153 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13154 ;; 13155 13156 irix5* | irix6* | nonstopux*) 13157 lt_prog_compiler_wl_F77='-Wl,' 13158 # PIC (with -KPIC) is the default. 13159 lt_prog_compiler_static_F77='-non_shared' 13160 ;; 13161 13162 newsos6) 13163 lt_prog_compiler_pic_F77='-KPIC' 13164 lt_prog_compiler_static_F77='-Bstatic' 13165 ;; 13166 13167 linux*) 13168 case $cc_basename in 13169 icc* | ecc*) 13170 lt_prog_compiler_wl_F77='-Wl,' 13171 lt_prog_compiler_pic_F77='-KPIC' 13172 lt_prog_compiler_static_F77='-static' 13173 ;; 13174 pgcc* | pgf77* | pgf90* | pgf95*) 13175 # Portland Group compilers (*not* the Pentium gcc compiler, 13176 # which looks to be a dead project) 13177 lt_prog_compiler_wl_F77='-Wl,' 13178 lt_prog_compiler_pic_F77='-fpic' 13179 lt_prog_compiler_static_F77='-Bstatic' 13180 ;; 13181 ccc*) 13182 lt_prog_compiler_wl_F77='-Wl,' 13183 # All Alpha code is PIC. 13184 lt_prog_compiler_static_F77='-non_shared' 13185 ;; 13186 esac 13187 ;; 13188 13189 osf3* | osf4* | osf5*) 13190 lt_prog_compiler_wl_F77='-Wl,' 13191 # All OSF/1 code is PIC. 13192 lt_prog_compiler_static_F77='-non_shared' 13193 ;; 13194 13195 solaris*) 13196 lt_prog_compiler_pic_F77='-KPIC' 13197 lt_prog_compiler_static_F77='-Bstatic' 13198 case $cc_basename in 13199 f77* | f90* | f95*) 13200 lt_prog_compiler_wl_F77='-Qoption ld ';; 13201 *) 13202 lt_prog_compiler_wl_F77='-Wl,';; 13203 esac 13204 ;; 13205 13206 sunos4*) 13207 lt_prog_compiler_wl_F77='-Qoption ld ' 13208 lt_prog_compiler_pic_F77='-PIC' 13209 lt_prog_compiler_static_F77='-Bstatic' 13210 ;; 13211 13212 sysv4 | sysv4.2uw2* | sysv4.3*) 13213 lt_prog_compiler_wl_F77='-Wl,' 13214 lt_prog_compiler_pic_F77='-KPIC' 13215 lt_prog_compiler_static_F77='-Bstatic' 13216 ;; 13217 13218 sysv4*MP*) 13219 if test -d /usr/nec ;then 13220 lt_prog_compiler_pic_F77='-Kconform_pic' 13221 lt_prog_compiler_static_F77='-Bstatic' 13222 fi 13223 ;; 13224 13225 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13226 lt_prog_compiler_wl_F77='-Wl,' 13227 lt_prog_compiler_pic_F77='-KPIC' 13228 lt_prog_compiler_static_F77='-Bstatic' 13229 ;; 13230 13231 unicos*) 13232 lt_prog_compiler_wl_F77='-Wl,' 13233 lt_prog_compiler_can_build_shared_F77=no 13234 ;; 13235 13236 uts4*) 13237 lt_prog_compiler_pic_F77='-pic' 13238 lt_prog_compiler_static_F77='-Bstatic' 13239 ;; 13240 13241 *) 13242 lt_prog_compiler_can_build_shared_F77=no 13243 ;; 13244 esac 13245 fi 13246 13247echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13248echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13249 13250# 13251# Check to make sure the PIC flag actually works. 13252# 13253if test -n "$lt_prog_compiler_pic_F77"; then 13254 13255echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13256echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13257if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13258 echo $ECHO_N "(cached) $ECHO_C" >&6 13259else 13260 lt_prog_compiler_pic_works_F77=no 13261 ac_outfile=conftest.$ac_objext 13262 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13263 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13264 # Insert the option either (1) after the last *FLAGS variable, or 13265 # (2) before a word containing "conftest.", or (3) at the end. 13266 # Note that $ac_compile itself does not contain backslashes and begins 13267 # with a dollar sign (not a hyphen), so the echo should work correctly. 13268 # The option is referenced via a variable to avoid confusing sed. 13269 lt_compile=`echo "$ac_compile" | $SED \ 13270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13272 -e 's:$: $lt_compiler_flag:'` 13273 (eval echo "\"\$as_me:13273: $lt_compile\"" >&5) 13274 (eval "$lt_compile" 2>conftest.err) 13275 ac_status=$? 13276 cat conftest.err >&5 13277 echo "$as_me:13277: \$? = $ac_status" >&5 13278 if (exit $ac_status) && test -s "$ac_outfile"; then 13279 # The compiler can only warn and ignore the option if not recognized 13280 # So say no if there are warnings other than the usual output. 13281 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13282 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13283 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13284 lt_prog_compiler_pic_works_F77=yes 13285 fi 13286 fi 13287 $rm conftest* 13288 13289fi 13290echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13291echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13292 13293if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13294 case $lt_prog_compiler_pic_F77 in 13295 "" | " "*) ;; 13296 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13297 esac 13298else 13299 lt_prog_compiler_pic_F77= 13300 lt_prog_compiler_can_build_shared_F77=no 13301fi 13302 13303fi 13304case $host_os in 13305 # For platforms which do not support PIC, -DPIC is meaningless: 13306 *djgpp*) 13307 lt_prog_compiler_pic_F77= 13308 ;; 13309 *) 13310 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13311 ;; 13312esac 13313 13314# 13315# Check to make sure the static flag actually works. 13316# 13317wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13318echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13319echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 13320if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13321 echo $ECHO_N "(cached) $ECHO_C" >&6 13322else 13323 lt_prog_compiler_static_works_F77=no 13324 save_LDFLAGS="$LDFLAGS" 13325 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13326 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13327 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13328 # The linker can only warn and ignore the option if not recognized 13329 # So say no if there are warnings 13330 if test -s conftest.err; then 13331 # Append any errors to the config.log. 13332 cat conftest.err 1>&5 13333 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13335 if diff conftest.exp conftest.er2 >/dev/null; then 13336 lt_prog_compiler_static_works_F77=yes 13337 fi 13338 else 13339 lt_prog_compiler_static_works_F77=yes 13340 fi 13341 fi 13342 $rm conftest* 13343 LDFLAGS="$save_LDFLAGS" 13344 13345fi 13346echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13347echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 13348 13349if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13350 : 13351else 13352 lt_prog_compiler_static_F77= 13353fi 13354 13355 13356echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13357echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13358if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13359 echo $ECHO_N "(cached) $ECHO_C" >&6 13360else 13361 lt_cv_prog_compiler_c_o_F77=no 13362 $rm -r conftest 2>/dev/null 13363 mkdir conftest 13364 cd conftest 13365 mkdir out 13366 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13367 13368 lt_compiler_flag="-o out/conftest2.$ac_objext" 13369 # Insert the option either (1) after the last *FLAGS variable, or 13370 # (2) before a word containing "conftest.", or (3) at the end. 13371 # Note that $ac_compile itself does not contain backslashes and begins 13372 # with a dollar sign (not a hyphen), so the echo should work correctly. 13373 lt_compile=`echo "$ac_compile" | $SED \ 13374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13376 -e 's:$: $lt_compiler_flag:'` 13377 (eval echo "\"\$as_me:13377: $lt_compile\"" >&5) 13378 (eval "$lt_compile" 2>out/conftest.err) 13379 ac_status=$? 13380 cat out/conftest.err >&5 13381 echo "$as_me:13381: \$? = $ac_status" >&5 13382 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13383 then 13384 # The compiler can only warn and ignore the option if not recognized 13385 # So say no if there are warnings 13386 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13387 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13388 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13389 lt_cv_prog_compiler_c_o_F77=yes 13390 fi 13391 fi 13392 chmod u+w . 2>&5 13393 $rm conftest* 13394 # SGI C++ compiler will create directory out/ii_files/ for 13395 # template instantiation 13396 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13397 $rm out/* && rmdir out 13398 cd .. 13399 rmdir conftest 13400 $rm conftest* 13401 13402fi 13403echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13404echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13405 13406 13407hard_links="nottested" 13408if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13409 # do not overwrite the value of need_locks provided by the user 13410 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13411echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13412 hard_links=yes 13413 $rm conftest* 13414 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13415 touch conftest.a 13416 ln conftest.a conftest.b 2>&5 || hard_links=no 13417 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13418 echo "$as_me:$LINENO: result: $hard_links" >&5 13419echo "${ECHO_T}$hard_links" >&6 13420 if test "$hard_links" = no; then 13421 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13422echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13423 need_locks=warn 13424 fi 13425else 13426 need_locks=no 13427fi 13428 13429echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13430echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13431 13432 runpath_var= 13433 allow_undefined_flag_F77= 13434 enable_shared_with_static_runtimes_F77=no 13435 archive_cmds_F77= 13436 archive_expsym_cmds_F77= 13437 old_archive_From_new_cmds_F77= 13438 old_archive_from_expsyms_cmds_F77= 13439 export_dynamic_flag_spec_F77= 13440 whole_archive_flag_spec_F77= 13441 thread_safe_flag_spec_F77= 13442 hardcode_libdir_flag_spec_F77= 13443 hardcode_libdir_flag_spec_ld_F77= 13444 hardcode_libdir_separator_F77= 13445 hardcode_direct_F77=no 13446 hardcode_minus_L_F77=no 13447 hardcode_shlibpath_var_F77=unsupported 13448 link_all_deplibs_F77=unknown 13449 hardcode_automatic_F77=no 13450 module_cmds_F77= 13451 module_expsym_cmds_F77= 13452 always_export_symbols_F77=no 13453 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13454 # include_expsyms should be a list of space-separated symbols to be *always* 13455 # included in the symbol list 13456 include_expsyms_F77= 13457 # exclude_expsyms can be an extended regexp of symbols to exclude 13458 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13459 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13460 # as well as any symbol that contains `d'. 13461 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13462 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13463 # platforms (ab)use it in PIC code, but their linkers get confused if 13464 # the symbol is explicitly referenced. Since portable code cannot 13465 # rely on this symbol name, it's probably fine to never include it in 13466 # preloaded symbol tables. 13467 extract_expsyms_cmds= 13468 # Just being paranoid about ensuring that cc_basename is set. 13469 for cc_temp in $compiler""; do 13470 case $cc_temp in 13471 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13472 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13473 \-*) ;; 13474 *) break;; 13475 esac 13476done 13477cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13478 13479 case $host_os in 13480 cygwin* | mingw* | pw32*) 13481 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13482 # When not using gcc, we currently assume that we are using 13483 # Microsoft Visual C++. 13484 if test "$GCC" != yes; then 13485 with_gnu_ld=no 13486 fi 13487 ;; 13488 interix*) 13489 # we just hope/assume this is gcc and not c89 (= MSVC++) 13490 with_gnu_ld=yes 13491 ;; 13492 openbsd*) 13493 with_gnu_ld=no 13494 ;; 13495 esac 13496 13497 ld_shlibs_F77=yes 13498 if test "$with_gnu_ld" = yes; then 13499 # If archive_cmds runs LD, not CC, wlarc should be empty 13500 wlarc='${wl}' 13501 13502 # Set some defaults for GNU ld with shared library support. These 13503 # are reset later if shared libraries are not supported. Putting them 13504 # here allows them to be overridden if necessary. 13505 runpath_var=LD_RUN_PATH 13506 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13507 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13508 # ancient GNU ld didn't support --whole-archive et. al. 13509 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13510 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13511 else 13512 whole_archive_flag_spec_F77= 13513 fi 13514 supports_anon_versioning=no 13515 case `$LD -v 2>/dev/null` in 13516 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13517 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13518 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13519 *\ 2.11.*) ;; # other 2.11 versions 13520 *) supports_anon_versioning=yes ;; 13521 esac 13522 13523 # See if GNU ld supports shared libraries. 13524 case $host_os in 13525 aix3* | aix4* | aix5*) 13526 # On AIX/PPC, the GNU linker is very broken 13527 if test "$host_cpu" != ia64; then 13528 ld_shlibs_F77=no 13529 cat <<EOF 1>&2 13530 13531*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13532*** to be unable to reliably create shared libraries on AIX. 13533*** Therefore, libtool is disabling shared libraries support. If you 13534*** really care for shared libraries, you may want to modify your PATH 13535*** so that a non-GNU linker is found, and then restart. 13536 13537EOF 13538 fi 13539 ;; 13540 13541 amigaos*) 13542 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)' 13543 hardcode_libdir_flag_spec_F77='-L$libdir' 13544 hardcode_minus_L_F77=yes 13545 13546 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13547 # that the semantics of dynamic libraries on AmigaOS, at least up 13548 # to version 4, is to share data among multiple programs linked 13549 # with the same dynamic library. Since this doesn't match the 13550 # behavior of shared libraries on other platforms, we can't use 13551 # them. 13552 ld_shlibs_F77=no 13553 ;; 13554 13555 beos*) 13556 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13557 allow_undefined_flag_F77=unsupported 13558 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13559 # support --undefined. This deserves some investigation. FIXME 13560 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13561 else 13562 ld_shlibs_F77=no 13563 fi 13564 ;; 13565 13566 cygwin* | mingw* | pw32*) 13567 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13568 # as there is no search path for DLLs. 13569 hardcode_libdir_flag_spec_F77='-L$libdir' 13570 allow_undefined_flag_F77=unsupported 13571 always_export_symbols_F77=no 13572 enable_shared_with_static_runtimes_F77=yes 13573 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13574 13575 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13576 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13577 # If the export-symbols file already is a .def file (1st line 13578 # is EXPORTS), use it as is; otherwise, prepend... 13579 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13580 cp $export_symbols $output_objdir/$soname.def; 13581 else 13582 echo EXPORTS > $output_objdir/$soname.def; 13583 cat $export_symbols >> $output_objdir/$soname.def; 13584 fi~ 13585 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13586 else 13587 ld_shlibs_F77=no 13588 fi 13589 ;; 13590 13591 interix3*) 13592 hardcode_direct_F77=no 13593 hardcode_shlibpath_var_F77=no 13594 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13595 export_dynamic_flag_spec_F77='${wl}-E' 13596 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13597 # Instead, shared libraries are loaded at an image base (0x10000000 by 13598 # default) and relocated if they conflict, which is a slow very memory 13599 # consuming and fragmenting process. To avoid this, we pick a random, 13600 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13601 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13602 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' 13603 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' 13604 ;; 13605 13606 linux*) 13607 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13608 tmp_addflag= 13609 case $cc_basename,$host_cpu in 13610 pgcc*) # Portland Group C compiler 13611 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 13612 tmp_addflag=' $pic_flag' 13613 ;; 13614 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 13615 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' 13616 tmp_addflag=' $pic_flag -Mnomain' ;; 13617 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13618 tmp_addflag=' -i_dynamic' ;; 13619 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13620 tmp_addflag=' -i_dynamic -nofor_main' ;; 13621 ifc* | ifort*) # Intel Fortran compiler 13622 tmp_addflag=' -nofor_main' ;; 13623 esac 13624 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13625 13626 if test $supports_anon_versioning = yes; then 13627 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13628 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13629 $echo "local: *; };" >> $output_objdir/$libname.ver~ 13630 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13631 fi 13632 else 13633 ld_shlibs_F77=no 13634 fi 13635 ;; 13636 13637 netbsd*) 13638 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13639 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13640 wlarc= 13641 else 13642 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13643 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13644 fi 13645 ;; 13646 13647 solaris*) 13648 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13649 ld_shlibs_F77=no 13650 cat <<EOF 1>&2 13651 13652*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13653*** create shared libraries on Solaris systems. Therefore, libtool 13654*** is disabling shared libraries support. We urge you to upgrade GNU 13655*** binutils to release 2.9.1 or newer. Another option is to modify 13656*** your PATH or compiler configuration so that the native linker is 13657*** used, and then restart. 13658 13659EOF 13660 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13661 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13662 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13663 else 13664 ld_shlibs_F77=no 13665 fi 13666 ;; 13667 13668 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13669 case `$LD -v 2>&1` in 13670 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13671 ld_shlibs_F77=no 13672 cat <<_LT_EOF 1>&2 13673 13674*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 13675*** reliably create shared libraries on SCO systems. Therefore, libtool 13676*** is disabling shared libraries support. We urge you to upgrade GNU 13677*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13678*** your PATH or compiler configuration so that the native linker is 13679*** used, and then restart. 13680 13681_LT_EOF 13682 ;; 13683 *) 13684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13685 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 13686 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 13687 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 13688 else 13689 ld_shlibs_F77=no 13690 fi 13691 ;; 13692 esac 13693 ;; 13694 13695 sunos4*) 13696 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13697 wlarc= 13698 hardcode_direct_F77=yes 13699 hardcode_shlibpath_var_F77=no 13700 ;; 13701 13702 *) 13703 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13704 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13705 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13706 else 13707 ld_shlibs_F77=no 13708 fi 13709 ;; 13710 esac 13711 13712 if test "$ld_shlibs_F77" = no; then 13713 runpath_var= 13714 hardcode_libdir_flag_spec_F77= 13715 export_dynamic_flag_spec_F77= 13716 whole_archive_flag_spec_F77= 13717 fi 13718 else 13719 # PORTME fill in a description of your system's linker (not GNU ld) 13720 case $host_os in 13721 aix3*) 13722 allow_undefined_flag_F77=unsupported 13723 always_export_symbols_F77=yes 13724 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' 13725 # Note: this linker hardcodes the directories in LIBPATH if there 13726 # are no directories specified by -L. 13727 hardcode_minus_L_F77=yes 13728 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 13729 # Neither direct hardcoding nor static linking is supported with a 13730 # broken collect2. 13731 hardcode_direct_F77=unsupported 13732 fi 13733 ;; 13734 13735 aix4* | aix5*) 13736 if test "$host_cpu" = ia64; then 13737 # On IA64, the linker does run time linking by default, so we don't 13738 # have to do anything special. 13739 aix_use_runtimelinking=no 13740 exp_sym_flag='-Bexport' 13741 no_entry_flag="" 13742 else 13743 # If we're using GNU nm, then we don't want the "-C" option. 13744 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13745 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13746 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' 13747 else 13748 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' 13749 fi 13750 aix_use_runtimelinking=no 13751 13752 # Test if we are trying to use run time linking or normal 13753 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13754 # need to do runtime linking. 13755 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13756 for ld_flag in $LDFLAGS; do 13757 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13758 aix_use_runtimelinking=yes 13759 break 13760 fi 13761 done 13762 ;; 13763 esac 13764 13765 exp_sym_flag='-bexport' 13766 no_entry_flag='-bnoentry' 13767 fi 13768 13769 # When large executables or shared objects are built, AIX ld can 13770 # have problems creating the table of contents. If linking a library 13771 # or program results in "error TOC overflow" add -mminimal-toc to 13772 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13773 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13774 13775 archive_cmds_F77='' 13776 hardcode_direct_F77=yes 13777 hardcode_libdir_separator_F77=':' 13778 link_all_deplibs_F77=yes 13779 13780 if test "$GCC" = yes; then 13781 case $host_os in aix4.[012]|aix4.[012].*) 13782 # We only want to do this on AIX 4.2 and lower, the check 13783 # below for broken collect2 doesn't work under 4.3+ 13784 collect2name=`${CC} -print-prog-name=collect2` 13785 if test -f "$collect2name" && \ 13786 strings "$collect2name" | grep resolve_lib_name >/dev/null 13787 then 13788 # We have reworked collect2 13789 hardcode_direct_F77=yes 13790 else 13791 # We have old collect2 13792 hardcode_direct_F77=unsupported 13793 # It fails to find uninstalled libraries when the uninstalled 13794 # path is not listed in the libpath. Setting hardcode_minus_L 13795 # to unsupported forces relinking 13796 hardcode_minus_L_F77=yes 13797 hardcode_libdir_flag_spec_F77='-L$libdir' 13798 hardcode_libdir_separator_F77= 13799 fi 13800 ;; 13801 esac 13802 shared_flag='-shared' 13803 if test "$aix_use_runtimelinking" = yes; then 13804 shared_flag="$shared_flag "'${wl}-G' 13805 fi 13806 else 13807 # not using gcc 13808 if test "$host_cpu" = ia64; then 13809 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13810 # chokes on -Wl,-G. The following line is correct: 13811 shared_flag='-G' 13812 else 13813 if test "$aix_use_runtimelinking" = yes; then 13814 shared_flag='${wl}-G' 13815 else 13816 shared_flag='${wl}-bM:SRE' 13817 fi 13818 fi 13819 fi 13820 13821 # It seems that -bexpall does not export symbols beginning with 13822 # underscore (_), so it is better to generate a list of symbols to export. 13823 always_export_symbols_F77=yes 13824 if test "$aix_use_runtimelinking" = yes; then 13825 # Warning - without using the other runtime loading flags (-brtl), 13826 # -berok will link without error, but may produce a broken library. 13827 allow_undefined_flag_F77='-berok' 13828 # Determine the default libpath from the value encoded in an empty executable. 13829 cat >conftest.$ac_ext <<_ACEOF 13830 program main 13831 13832 end 13833_ACEOF 13834rm -f conftest.$ac_objext conftest$ac_exeext 13835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13836 (eval $ac_link) 2>conftest.er1 13837 ac_status=$? 13838 grep -v '^ *+' conftest.er1 >conftest.err 13839 rm -f conftest.er1 13840 cat conftest.err >&5 13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13842 (exit $ac_status); } && 13843 { ac_try='test -z "$ac_f77_werror_flag" 13844 || test ! -s conftest.err' 13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13846 (eval $ac_try) 2>&5 13847 ac_status=$? 13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13849 (exit $ac_status); }; } && 13850 { ac_try='test -s conftest$ac_exeext' 13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13852 (eval $ac_try) 2>&5 13853 ac_status=$? 13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13855 (exit $ac_status); }; }; then 13856 13857aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13858}'` 13859# Check for a 64-bit object if we didn't find anything. 13860if 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; } 13861}'`; fi 13862else 13863 echo "$as_me: failed program was:" >&5 13864sed 's/^/| /' conftest.$ac_ext >&5 13865 13866fi 13867rm -f conftest.err conftest.$ac_objext \ 13868 conftest$ac_exeext conftest.$ac_ext 13869if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13870 13871 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13872 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" 13873 else 13874 if test "$host_cpu" = ia64; then 13875 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13876 allow_undefined_flag_F77="-z nodefs" 13877 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" 13878 else 13879 # Determine the default libpath from the value encoded in an empty executable. 13880 cat >conftest.$ac_ext <<_ACEOF 13881 program main 13882 13883 end 13884_ACEOF 13885rm -f conftest.$ac_objext conftest$ac_exeext 13886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13887 (eval $ac_link) 2>conftest.er1 13888 ac_status=$? 13889 grep -v '^ *+' conftest.er1 >conftest.err 13890 rm -f conftest.er1 13891 cat conftest.err >&5 13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13893 (exit $ac_status); } && 13894 { ac_try='test -z "$ac_f77_werror_flag" 13895 || test ! -s conftest.err' 13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13897 (eval $ac_try) 2>&5 13898 ac_status=$? 13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13900 (exit $ac_status); }; } && 13901 { ac_try='test -s conftest$ac_exeext' 13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13903 (eval $ac_try) 2>&5 13904 ac_status=$? 13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13906 (exit $ac_status); }; }; then 13907 13908aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13909}'` 13910# Check for a 64-bit object if we didn't find anything. 13911if 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; } 13912}'`; fi 13913else 13914 echo "$as_me: failed program was:" >&5 13915sed 's/^/| /' conftest.$ac_ext >&5 13916 13917fi 13918rm -f conftest.err conftest.$ac_objext \ 13919 conftest$ac_exeext conftest.$ac_ext 13920if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13921 13922 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13923 # Warning - without using the other run time loading flags, 13924 # -berok will link without error, but may produce a broken library. 13925 no_undefined_flag_F77=' ${wl}-bernotok' 13926 allow_undefined_flag_F77=' ${wl}-berok' 13927 # Exported symbols can be pulled into shared objects from archives 13928 whole_archive_flag_spec_F77='$convenience' 13929 archive_cmds_need_lc_F77=yes 13930 # This is similar to how AIX traditionally builds its shared libraries. 13931 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' 13932 fi 13933 fi 13934 ;; 13935 13936 amigaos*) 13937 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)' 13938 hardcode_libdir_flag_spec_F77='-L$libdir' 13939 hardcode_minus_L_F77=yes 13940 # see comment about different semantics on the GNU ld section 13941 ld_shlibs_F77=no 13942 ;; 13943 13944 bsdi[45]*) 13945 export_dynamic_flag_spec_F77=-rdynamic 13946 ;; 13947 13948 cygwin* | mingw* | pw32*) 13949 # When not using gcc, we currently assume that we are using 13950 # Microsoft Visual C++. 13951 # hardcode_libdir_flag_spec is actually meaningless, as there is 13952 # no search path for DLLs. 13953 hardcode_libdir_flag_spec_F77=' ' 13954 allow_undefined_flag_F77=unsupported 13955 # Tell ltmain to make .lib files, not .a files. 13956 libext=lib 13957 # Tell ltmain to make .dll files, not .so files. 13958 shrext_cmds=".dll" 13959 # FIXME: Setting linknames here is a bad hack. 13960 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 13961 # The linker will automatically build a .lib file if we build a DLL. 13962 old_archive_From_new_cmds_F77='true' 13963 # FIXME: Should let the user specify the lib program. 13964 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 13965 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 13966 enable_shared_with_static_runtimes_F77=yes 13967 ;; 13968 13969 darwin* | rhapsody*) 13970 case $host_os in 13971 rhapsody* | darwin1.[012]) 13972 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 13973 ;; 13974 *) # Darwin 1.3 on 13975 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 13976 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13977 else 13978 case ${MACOSX_DEPLOYMENT_TARGET} in 13979 10.[012]) 13980 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13981 ;; 13982 10.*) 13983 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 13984 ;; 13985 esac 13986 fi 13987 ;; 13988 esac 13989 archive_cmds_need_lc_F77=no 13990 hardcode_direct_F77=no 13991 hardcode_automatic_F77=yes 13992 hardcode_shlibpath_var_F77=unsupported 13993 whole_archive_flag_spec_F77='' 13994 link_all_deplibs_F77=yes 13995 if test "$GCC" = yes ; then 13996 output_verbose_link_cmd='echo' 13997 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13998 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13999 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14000 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}' 14001 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}' 14002 else 14003 case $cc_basename in 14004 xlc*) 14005 output_verbose_link_cmd='echo' 14006 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14007 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14008 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14009 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}' 14010 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}' 14011 ;; 14012 *) 14013 ld_shlibs_F77=no 14014 ;; 14015 esac 14016 fi 14017 ;; 14018 14019 dgux*) 14020 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14021 hardcode_libdir_flag_spec_F77='-L$libdir' 14022 hardcode_shlibpath_var_F77=no 14023 ;; 14024 14025 freebsd1*) 14026 ld_shlibs_F77=no 14027 ;; 14028 14029 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14030 # support. Future versions do this automatically, but an explicit c++rt0.o 14031 # does not break anything, and helps significantly (at the cost of a little 14032 # extra space). 14033 freebsd2.2*) 14034 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14035 hardcode_libdir_flag_spec_F77='-R$libdir' 14036 hardcode_direct_F77=yes 14037 hardcode_shlibpath_var_F77=no 14038 ;; 14039 14040 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14041 freebsd2*) 14042 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14043 hardcode_direct_F77=yes 14044 hardcode_minus_L_F77=yes 14045 hardcode_shlibpath_var_F77=no 14046 ;; 14047 14048 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14049 freebsd* | kfreebsd*-gnu | dragonfly*) 14050 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14051 hardcode_libdir_flag_spec_F77='-R$libdir' 14052 hardcode_direct_F77=yes 14053 hardcode_shlibpath_var_F77=no 14054 ;; 14055 14056 hpux9*) 14057 if test "$GCC" = yes; then 14058 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' 14059 else 14060 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' 14061 fi 14062 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14063 hardcode_libdir_separator_F77=: 14064 hardcode_direct_F77=yes 14065 14066 # hardcode_minus_L: Not really in the search PATH, 14067 # but as the default location of the library. 14068 hardcode_minus_L_F77=yes 14069 export_dynamic_flag_spec_F77='${wl}-E' 14070 ;; 14071 14072 hpux10*) 14073 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14074 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14075 else 14076 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14077 fi 14078 if test "$with_gnu_ld" = no; then 14079 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14080 hardcode_libdir_separator_F77=: 14081 14082 hardcode_direct_F77=yes 14083 export_dynamic_flag_spec_F77='${wl}-E' 14084 14085 # hardcode_minus_L: Not really in the search PATH, 14086 # but as the default location of the library. 14087 hardcode_minus_L_F77=yes 14088 fi 14089 ;; 14090 14091 hpux11*) 14092 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14093 case $host_cpu in 14094 hppa*64*) 14095 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14096 ;; 14097 ia64*) 14098 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14099 ;; 14100 *) 14101 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14102 ;; 14103 esac 14104 else 14105 case $host_cpu in 14106 hppa*64*) 14107 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14108 ;; 14109 ia64*) 14110 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14111 ;; 14112 *) 14113 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14114 ;; 14115 esac 14116 fi 14117 if test "$with_gnu_ld" = no; then 14118 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14119 hardcode_libdir_separator_F77=: 14120 14121 case $host_cpu in 14122 hppa*64*|ia64*) 14123 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14124 hardcode_direct_F77=no 14125 hardcode_shlibpath_var_F77=no 14126 ;; 14127 *) 14128 hardcode_direct_F77=yes 14129 export_dynamic_flag_spec_F77='${wl}-E' 14130 14131 # hardcode_minus_L: Not really in the search PATH, 14132 # but as the default location of the library. 14133 hardcode_minus_L_F77=yes 14134 ;; 14135 esac 14136 fi 14137 ;; 14138 14139 irix5* | irix6* | nonstopux*) 14140 if test "$GCC" = yes; then 14141 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' 14142 else 14143 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' 14144 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14145 fi 14146 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14147 hardcode_libdir_separator_F77=: 14148 link_all_deplibs_F77=yes 14149 ;; 14150 14151 netbsd*) 14152 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14153 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14154 else 14155 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14156 fi 14157 hardcode_libdir_flag_spec_F77='-R$libdir' 14158 hardcode_direct_F77=yes 14159 hardcode_shlibpath_var_F77=no 14160 ;; 14161 14162 newsos6) 14163 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14164 hardcode_direct_F77=yes 14165 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14166 hardcode_libdir_separator_F77=: 14167 hardcode_shlibpath_var_F77=no 14168 ;; 14169 14170 openbsd*) 14171 hardcode_direct_F77=yes 14172 hardcode_shlibpath_var_F77=no 14173 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14174 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14175 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14176 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14177 export_dynamic_flag_spec_F77='${wl}-E' 14178 else 14179 case $host_os in 14180 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14181 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14182 hardcode_libdir_flag_spec_F77='-R$libdir' 14183 ;; 14184 *) 14185 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14186 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14187 ;; 14188 esac 14189 fi 14190 ;; 14191 14192 os2*) 14193 hardcode_libdir_flag_spec_F77='-L$libdir' 14194 hardcode_minus_L_F77=yes 14195 allow_undefined_flag_F77=unsupported 14196 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' 14197 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14198 ;; 14199 14200 osf3*) 14201 if test "$GCC" = yes; then 14202 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14203 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' 14204 else 14205 allow_undefined_flag_F77=' -expect_unresolved \*' 14206 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' 14207 fi 14208 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14209 hardcode_libdir_separator_F77=: 14210 ;; 14211 14212 osf4* | osf5*) # as osf3* with the addition of -msym flag 14213 if test "$GCC" = yes; then 14214 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14215 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' 14216 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14217 else 14218 allow_undefined_flag_F77=' -expect_unresolved \*' 14219 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' 14220 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~ 14221 $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' 14222 14223 # Both c and cxx compiler support -rpath directly 14224 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14225 fi 14226 hardcode_libdir_separator_F77=: 14227 ;; 14228 14229 solaris*) 14230 no_undefined_flag_F77=' -z text' 14231 if test "$GCC" = yes; then 14232 wlarc='${wl}' 14233 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14234 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14235 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14236 else 14237 wlarc='' 14238 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14239 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14240 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14241 fi 14242 hardcode_libdir_flag_spec_F77='-R$libdir' 14243 hardcode_shlibpath_var_F77=no 14244 case $host_os in 14245 solaris2.[0-5] | solaris2.[0-5].*) ;; 14246 *) 14247 # The compiler driver will combine linker options so we 14248 # cannot just pass the convience library names through 14249 # without $wl, iff we do not link with $LD. 14250 # Luckily, gcc supports the same syntax we need for Sun Studio. 14251 # Supported since Solaris 2.6 (maybe 2.5.1?) 14252 case $wlarc in 14253 '') 14254 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14255 *) 14256 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' ;; 14257 esac ;; 14258 esac 14259 link_all_deplibs_F77=yes 14260 ;; 14261 14262 sunos4*) 14263 if test "x$host_vendor" = xsequent; then 14264 # Use $CC to link under sequent, because it throws in some extra .o 14265 # files that make .init and .fini sections work. 14266 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14267 else 14268 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14269 fi 14270 hardcode_libdir_flag_spec_F77='-L$libdir' 14271 hardcode_direct_F77=yes 14272 hardcode_minus_L_F77=yes 14273 hardcode_shlibpath_var_F77=no 14274 ;; 14275 14276 sysv4) 14277 case $host_vendor in 14278 sni) 14279 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14280 hardcode_direct_F77=yes # is this really true??? 14281 ;; 14282 siemens) 14283 ## LD is ld it makes a PLAMLIB 14284 ## CC just makes a GrossModule. 14285 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14286 reload_cmds_F77='$CC -r -o $output$reload_objs' 14287 hardcode_direct_F77=no 14288 ;; 14289 motorola) 14290 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14291 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14292 ;; 14293 esac 14294 runpath_var='LD_RUN_PATH' 14295 hardcode_shlibpath_var_F77=no 14296 ;; 14297 14298 sysv4.3*) 14299 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14300 hardcode_shlibpath_var_F77=no 14301 export_dynamic_flag_spec_F77='-Bexport' 14302 ;; 14303 14304 sysv4*MP*) 14305 if test -d /usr/nec; then 14306 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14307 hardcode_shlibpath_var_F77=no 14308 runpath_var=LD_RUN_PATH 14309 hardcode_runpath_var=yes 14310 ld_shlibs_F77=yes 14311 fi 14312 ;; 14313 14314 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14315 no_undefined_flag_F77='${wl}-z,text' 14316 archive_cmds_need_lc_F77=no 14317 hardcode_shlibpath_var_F77=no 14318 runpath_var='LD_RUN_PATH' 14319 14320 if test "$GCC" = yes; then 14321 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14322 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14323 else 14324 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14325 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14326 fi 14327 ;; 14328 14329 sysv5* | sco3.2v5* | sco5v6*) 14330 # Note: We can NOT use -z defs as we might desire, because we do not 14331 # link with -lc, and that would cause any symbols used from libc to 14332 # always be unresolved, which means just about no library would 14333 # ever link correctly. If we're not using GNU ld we use -z text 14334 # though, which does catch some bad symbols but isn't as heavy-handed 14335 # as -z defs. 14336 no_undefined_flag_F77='${wl}-z,text' 14337 allow_undefined_flag_F77='${wl}-z,nodefs' 14338 archive_cmds_need_lc_F77=no 14339 hardcode_shlibpath_var_F77=no 14340 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14341 hardcode_libdir_separator_F77=':' 14342 link_all_deplibs_F77=yes 14343 export_dynamic_flag_spec_F77='${wl}-Bexport' 14344 runpath_var='LD_RUN_PATH' 14345 14346 if test "$GCC" = yes; then 14347 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14348 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14349 else 14350 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14351 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14352 fi 14353 ;; 14354 14355 uts4*) 14356 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14357 hardcode_libdir_flag_spec_F77='-L$libdir' 14358 hardcode_shlibpath_var_F77=no 14359 ;; 14360 14361 *) 14362 ld_shlibs_F77=no 14363 ;; 14364 esac 14365 fi 14366 14367echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14368echo "${ECHO_T}$ld_shlibs_F77" >&6 14369test "$ld_shlibs_F77" = no && can_build_shared=no 14370 14371# 14372# Do we need to explicitly link libc? 14373# 14374case "x$archive_cmds_need_lc_F77" in 14375x|xyes) 14376 # Assume -lc should be added 14377 archive_cmds_need_lc_F77=yes 14378 14379 if test "$enable_shared" = yes && test "$GCC" = yes; then 14380 case $archive_cmds_F77 in 14381 *'~'*) 14382 # FIXME: we may have to deal with multi-command sequences. 14383 ;; 14384 '$CC '*) 14385 # Test whether the compiler implicitly links with -lc since on some 14386 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14387 # to ld, don't add -lc before -lgcc. 14388 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14389echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14390 $rm conftest* 14391 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14392 14393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14394 (eval $ac_compile) 2>&5 14395 ac_status=$? 14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14397 (exit $ac_status); } 2>conftest.err; then 14398 soname=conftest 14399 lib=conftest 14400 libobjs=conftest.$ac_objext 14401 deplibs= 14402 wl=$lt_prog_compiler_wl_F77 14403 pic_flag=$lt_prog_compiler_pic_F77 14404 compiler_flags=-v 14405 linker_flags=-v 14406 verstring= 14407 output_objdir=. 14408 libname=conftest 14409 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14410 allow_undefined_flag_F77= 14411 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14412 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14413 ac_status=$? 14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14415 (exit $ac_status); } 14416 then 14417 archive_cmds_need_lc_F77=no 14418 else 14419 archive_cmds_need_lc_F77=yes 14420 fi 14421 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14422 else 14423 cat conftest.err 1>&5 14424 fi 14425 $rm conftest* 14426 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14427echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14428 ;; 14429 esac 14430 fi 14431 ;; 14432esac 14433 14434echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14435echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14436library_names_spec= 14437libname_spec='lib$name' 14438soname_spec= 14439shrext_cmds=".so" 14440postinstall_cmds= 14441postuninstall_cmds= 14442finish_cmds= 14443finish_eval= 14444shlibpath_var= 14445shlibpath_overrides_runpath=unknown 14446version_type=none 14447dynamic_linker="$host_os ld.so" 14448sys_lib_dlsearch_path_spec="/lib /usr/lib" 14449if test "$GCC" = yes; then 14450 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14451 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14452 # if the path contains ";" then we assume it to be the separator 14453 # otherwise default to the standard path separator (i.e. ":") - it is 14454 # assumed that no part of a normal pathname contains ";" but that should 14455 # okay in the real world where ";" in dirpaths is itself problematic. 14456 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14457 else 14458 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14459 fi 14460else 14461 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14462fi 14463need_lib_prefix=unknown 14464hardcode_into_libs=no 14465 14466# when you set need_version to no, make sure it does not cause -set_version 14467# flags to be left without arguments 14468need_version=unknown 14469 14470case $host_os in 14471aix3*) 14472 version_type=linux 14473 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14474 shlibpath_var=LIBPATH 14475 14476 # AIX 3 has no versioning support, so we append a major version to the name. 14477 soname_spec='${libname}${release}${shared_ext}$major' 14478 ;; 14479 14480aix4* | aix5*) 14481 version_type=linux 14482 need_lib_prefix=no 14483 need_version=no 14484 hardcode_into_libs=yes 14485 if test "$host_cpu" = ia64; then 14486 # AIX 5 supports IA64 14487 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14488 shlibpath_var=LD_LIBRARY_PATH 14489 else 14490 # With GCC up to 2.95.x, collect2 would create an import file 14491 # for dependence libraries. The import file would start with 14492 # the line `#! .'. This would cause the generated library to 14493 # depend on `.', always an invalid library. This was fixed in 14494 # development snapshots of GCC prior to 3.0. 14495 case $host_os in 14496 aix4 | aix4.[01] | aix4.[01].*) 14497 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14498 echo ' yes ' 14499 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14500 : 14501 else 14502 can_build_shared=no 14503 fi 14504 ;; 14505 esac 14506 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14507 # soname into executable. Probably we can add versioning support to 14508 # collect2, so additional links can be useful in future. 14509 if test "$aix_use_runtimelinking" = yes; then 14510 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14511 # instead of lib<name>.a to let people know that these are not 14512 # typical AIX shared libraries. 14513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14514 else 14515 # We preserve .a as extension for shared libraries through AIX4.2 14516 # and later when we are not doing run time linking. 14517 library_names_spec='${libname}${release}.a $libname.a' 14518 soname_spec='${libname}${release}${shared_ext}$major' 14519 fi 14520 shlibpath_var=LIBPATH 14521 fi 14522 ;; 14523 14524amigaos*) 14525 library_names_spec='$libname.ixlibrary $libname.a' 14526 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14527 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' 14528 ;; 14529 14530beos*) 14531 library_names_spec='${libname}${shared_ext}' 14532 dynamic_linker="$host_os ld.so" 14533 shlibpath_var=LIBRARY_PATH 14534 ;; 14535 14536bsdi[45]*) 14537 version_type=linux 14538 need_version=no 14539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14540 soname_spec='${libname}${release}${shared_ext}$major' 14541 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14542 shlibpath_var=LD_LIBRARY_PATH 14543 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14544 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14545 # the default ld.so.conf also contains /usr/contrib/lib and 14546 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14547 # libtool to hard-code these into programs 14548 ;; 14549 14550cygwin* | mingw* | pw32*) 14551 version_type=windows 14552 shrext_cmds=".dll" 14553 need_version=no 14554 need_lib_prefix=no 14555 14556 case $GCC,$host_os in 14557 yes,cygwin* | yes,mingw* | yes,pw32*) 14558 library_names_spec='$libname.dll.a' 14559 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14560 postinstall_cmds='base_file=`basename \${file}`~ 14561 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14562 dldir=$destdir/`dirname \$dlpath`~ 14563 test -d \$dldir || mkdir -p \$dldir~ 14564 $install_prog $dir/$dlname \$dldir/$dlname~ 14565 chmod a+x \$dldir/$dlname' 14566 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14567 dlpath=$dir/\$dldll~ 14568 $rm \$dlpath' 14569 shlibpath_overrides_runpath=yes 14570 14571 case $host_os in 14572 cygwin*) 14573 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14574 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14575 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14576 ;; 14577 mingw*) 14578 # MinGW DLLs use traditional 'lib' prefix 14579 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14580 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14581 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14582 # It is most probably a Windows format PATH printed by 14583 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14584 # path with ; separators, and with drive letters. We can handle the 14585 # drive letters (cygwin fileutils understands them), so leave them, 14586 # especially as we might pass files found there to a mingw objdump, 14587 # which wouldn't understand a cygwinified path. Ahh. 14588 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14589 else 14590 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14591 fi 14592 ;; 14593 pw32*) 14594 # pw32 DLLs use 'pw' prefix rather than 'lib' 14595 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14596 ;; 14597 esac 14598 ;; 14599 14600 *) 14601 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14602 ;; 14603 esac 14604 dynamic_linker='Win32 ld.exe' 14605 # FIXME: first we should search . and the directory the executable is in 14606 shlibpath_var=PATH 14607 ;; 14608 14609darwin* | rhapsody*) 14610 dynamic_linker="$host_os dyld" 14611 version_type=darwin 14612 need_lib_prefix=no 14613 need_version=no 14614 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14615 soname_spec='${libname}${release}${major}$shared_ext' 14616 shlibpath_overrides_runpath=yes 14617 shlibpath_var=DYLD_LIBRARY_PATH 14618 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14619 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14620 if test "$GCC" = yes; then 14621 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"` 14622 else 14623 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14624 fi 14625 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14626 ;; 14627 14628dgux*) 14629 version_type=linux 14630 need_lib_prefix=no 14631 need_version=no 14632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14633 soname_spec='${libname}${release}${shared_ext}$major' 14634 shlibpath_var=LD_LIBRARY_PATH 14635 ;; 14636 14637freebsd1*) 14638 dynamic_linker=no 14639 ;; 14640 14641kfreebsd*-gnu) 14642 version_type=linux 14643 need_lib_prefix=no 14644 need_version=no 14645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14646 soname_spec='${libname}${release}${shared_ext}$major' 14647 shlibpath_var=LD_LIBRARY_PATH 14648 shlibpath_overrides_runpath=no 14649 hardcode_into_libs=yes 14650 dynamic_linker='GNU ld.so' 14651 ;; 14652 14653freebsd* | dragonfly*) 14654 # DragonFly does not have aout. When/if they implement a new 14655 # versioning mechanism, adjust this. 14656 if test -x /usr/bin/objformat; then 14657 objformat=`/usr/bin/objformat` 14658 else 14659 case $host_os in 14660 freebsd[123]*) objformat=aout ;; 14661 *) objformat=elf ;; 14662 esac 14663 fi 14664 version_type=freebsd-$objformat 14665 case $version_type in 14666 freebsd-elf*) 14667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14668 need_version=no 14669 need_lib_prefix=no 14670 ;; 14671 freebsd-*) 14672 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14673 need_version=yes 14674 ;; 14675 esac 14676 shlibpath_var=LD_LIBRARY_PATH 14677 case $host_os in 14678 freebsd2*) 14679 shlibpath_overrides_runpath=yes 14680 ;; 14681 freebsd3.[01]* | freebsdelf3.[01]*) 14682 shlibpath_overrides_runpath=yes 14683 hardcode_into_libs=yes 14684 ;; 14685 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14686 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14687 shlibpath_overrides_runpath=no 14688 hardcode_into_libs=yes 14689 ;; 14690 freebsd*) # from 4.6 on 14691 shlibpath_overrides_runpath=yes 14692 hardcode_into_libs=yes 14693 ;; 14694 esac 14695 ;; 14696 14697gnu*) 14698 version_type=linux 14699 need_lib_prefix=no 14700 need_version=no 14701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14702 soname_spec='${libname}${release}${shared_ext}$major' 14703 shlibpath_var=LD_LIBRARY_PATH 14704 hardcode_into_libs=yes 14705 ;; 14706 14707hpux9* | hpux10* | hpux11*) 14708 # Give a soname corresponding to the major version so that dld.sl refuses to 14709 # link against other versions. 14710 version_type=sunos 14711 need_lib_prefix=no 14712 need_version=no 14713 case $host_cpu in 14714 ia64*) 14715 shrext_cmds='.so' 14716 hardcode_into_libs=yes 14717 dynamic_linker="$host_os dld.so" 14718 shlibpath_var=LD_LIBRARY_PATH 14719 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14721 soname_spec='${libname}${release}${shared_ext}$major' 14722 if test "X$HPUX_IA64_MODE" = X32; then 14723 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14724 else 14725 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14726 fi 14727 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14728 ;; 14729 hppa*64*) 14730 shrext_cmds='.sl' 14731 hardcode_into_libs=yes 14732 dynamic_linker="$host_os dld.sl" 14733 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14734 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14738 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14739 ;; 14740 *) 14741 shrext_cmds='.sl' 14742 dynamic_linker="$host_os dld.sl" 14743 shlibpath_var=SHLIB_PATH 14744 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14746 soname_spec='${libname}${release}${shared_ext}$major' 14747 ;; 14748 esac 14749 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14750 postinstall_cmds='chmod 555 $lib' 14751 ;; 14752 14753interix3*) 14754 version_type=linux 14755 need_lib_prefix=no 14756 need_version=no 14757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14758 soname_spec='${libname}${release}${shared_ext}$major' 14759 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14760 shlibpath_var=LD_LIBRARY_PATH 14761 shlibpath_overrides_runpath=no 14762 hardcode_into_libs=yes 14763 ;; 14764 14765irix5* | irix6* | nonstopux*) 14766 case $host_os in 14767 nonstopux*) version_type=nonstopux ;; 14768 *) 14769 if test "$lt_cv_prog_gnu_ld" = yes; then 14770 version_type=linux 14771 else 14772 version_type=irix 14773 fi ;; 14774 esac 14775 need_lib_prefix=no 14776 need_version=no 14777 soname_spec='${libname}${release}${shared_ext}$major' 14778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14779 case $host_os in 14780 irix5* | nonstopux*) 14781 libsuff= shlibsuff= 14782 ;; 14783 *) 14784 case $LD in # libtool.m4 will add one of these switches to LD 14785 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14786 libsuff= shlibsuff= libmagic=32-bit;; 14787 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14788 libsuff=32 shlibsuff=N32 libmagic=N32;; 14789 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14790 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14791 *) libsuff= shlibsuff= libmagic=never-match;; 14792 esac 14793 ;; 14794 esac 14795 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14796 shlibpath_overrides_runpath=no 14797 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14798 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14799 hardcode_into_libs=yes 14800 ;; 14801 14802# No shared lib support for Linux oldld, aout, or coff. 14803linux*oldld* | linux*aout* | linux*coff*) 14804 dynamic_linker=no 14805 ;; 14806 14807# This must be Linux ELF. 14808linux*) 14809 version_type=linux 14810 need_lib_prefix=no 14811 need_version=no 14812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14813 soname_spec='${libname}${release}${shared_ext}$major' 14814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14815 shlibpath_var=LD_LIBRARY_PATH 14816 shlibpath_overrides_runpath=no 14817 # This implies no fast_install, which is unacceptable. 14818 # Some rework will be needed to allow for fast_install 14819 # before this can be enabled. 14820 hardcode_into_libs=yes 14821 14822 # find out which ABI we are using 14823 libsuff= 14824 case "$host_cpu" in 14825 x86_64*|s390x*|powerpc64*) 14826 echo '#line 14826 "configure"' > conftest.$ac_ext 14827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14828 (eval $ac_compile) 2>&5 14829 ac_status=$? 14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14831 (exit $ac_status); }; then 14832 case `/usr/bin/file conftest.$ac_objext` in 14833 *64-bit*) 14834 libsuff=64 14835 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 14836 ;; 14837 esac 14838 fi 14839 rm -rf conftest* 14840 ;; 14841 esac 14842 14843 # Append ld.so.conf contents to the search path 14844 if test -f /etc/ld.so.conf; then 14845 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' ' '` 14846 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 14847 fi 14848 14849 # We used to test for /lib/ld.so.1 and disable shared libraries on 14850 # powerpc, because MkLinux only supported shared libraries with the 14851 # GNU dynamic linker. Since this was broken with cross compilers, 14852 # most powerpc-linux boxes support dynamic linking these days and 14853 # people can always --disable-shared, the test was removed, and we 14854 # assume the GNU/Linux dynamic linker is in use. 14855 dynamic_linker='GNU/Linux ld.so' 14856 ;; 14857 14858knetbsd*-gnu) 14859 version_type=linux 14860 need_lib_prefix=no 14861 need_version=no 14862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14863 soname_spec='${libname}${release}${shared_ext}$major' 14864 shlibpath_var=LD_LIBRARY_PATH 14865 shlibpath_overrides_runpath=no 14866 hardcode_into_libs=yes 14867 dynamic_linker='GNU ld.so' 14868 ;; 14869 14870netbsd*) 14871 version_type=sunos 14872 need_lib_prefix=no 14873 need_version=no 14874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14877 dynamic_linker='NetBSD (a.out) ld.so' 14878 else 14879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14880 soname_spec='${libname}${release}${shared_ext}$major' 14881 dynamic_linker='NetBSD ld.elf_so' 14882 fi 14883 shlibpath_var=LD_LIBRARY_PATH 14884 shlibpath_overrides_runpath=yes 14885 hardcode_into_libs=yes 14886 ;; 14887 14888newsos6) 14889 version_type=linux 14890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14891 shlibpath_var=LD_LIBRARY_PATH 14892 shlibpath_overrides_runpath=yes 14893 ;; 14894 14895nto-qnx*) 14896 version_type=linux 14897 need_lib_prefix=no 14898 need_version=no 14899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14900 soname_spec='${libname}${release}${shared_ext}$major' 14901 shlibpath_var=LD_LIBRARY_PATH 14902 shlibpath_overrides_runpath=yes 14903 ;; 14904 14905openbsd*) 14906 version_type=sunos 14907 sys_lib_dlsearch_path_spec="/usr/lib" 14908 need_lib_prefix=no 14909 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14910 case $host_os in 14911 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14912 *) need_version=no ;; 14913 esac 14914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14916 shlibpath_var=LD_LIBRARY_PATH 14917 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14918 case $host_os in 14919 openbsd2.[89] | openbsd2.[89].*) 14920 shlibpath_overrides_runpath=no 14921 ;; 14922 *) 14923 shlibpath_overrides_runpath=yes 14924 ;; 14925 esac 14926 else 14927 shlibpath_overrides_runpath=yes 14928 fi 14929 ;; 14930 14931os2*) 14932 libname_spec='$name' 14933 shrext_cmds=".dll" 14934 need_lib_prefix=no 14935 library_names_spec='$libname${shared_ext} $libname.a' 14936 dynamic_linker='OS/2 ld.exe' 14937 shlibpath_var=LIBPATH 14938 ;; 14939 14940osf3* | osf4* | osf5*) 14941 version_type=osf 14942 need_lib_prefix=no 14943 need_version=no 14944 soname_spec='${libname}${release}${shared_ext}$major' 14945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14946 shlibpath_var=LD_LIBRARY_PATH 14947 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14948 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14949 ;; 14950 14951solaris*) 14952 version_type=linux 14953 need_lib_prefix=no 14954 need_version=no 14955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14956 soname_spec='${libname}${release}${shared_ext}$major' 14957 shlibpath_var=LD_LIBRARY_PATH 14958 shlibpath_overrides_runpath=yes 14959 hardcode_into_libs=yes 14960 # ldd complains unless libraries are executable 14961 postinstall_cmds='chmod +x $lib' 14962 ;; 14963 14964sunos4*) 14965 version_type=sunos 14966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14967 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14968 shlibpath_var=LD_LIBRARY_PATH 14969 shlibpath_overrides_runpath=yes 14970 if test "$with_gnu_ld" = yes; then 14971 need_lib_prefix=no 14972 fi 14973 need_version=yes 14974 ;; 14975 14976sysv4 | sysv4.3*) 14977 version_type=linux 14978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14979 soname_spec='${libname}${release}${shared_ext}$major' 14980 shlibpath_var=LD_LIBRARY_PATH 14981 case $host_vendor in 14982 sni) 14983 shlibpath_overrides_runpath=no 14984 need_lib_prefix=no 14985 export_dynamic_flag_spec='${wl}-Blargedynsym' 14986 runpath_var=LD_RUN_PATH 14987 ;; 14988 siemens) 14989 need_lib_prefix=no 14990 ;; 14991 motorola) 14992 need_lib_prefix=no 14993 need_version=no 14994 shlibpath_overrides_runpath=no 14995 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14996 ;; 14997 esac 14998 ;; 14999 15000sysv4*MP*) 15001 if test -d /usr/nec ;then 15002 version_type=linux 15003 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15004 soname_spec='$libname${shared_ext}.$major' 15005 shlibpath_var=LD_LIBRARY_PATH 15006 fi 15007 ;; 15008 15009sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15010 version_type=freebsd-elf 15011 need_lib_prefix=no 15012 need_version=no 15013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15014 soname_spec='${libname}${release}${shared_ext}$major' 15015 shlibpath_var=LD_LIBRARY_PATH 15016 hardcode_into_libs=yes 15017 if test "$with_gnu_ld" = yes; then 15018 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15019 shlibpath_overrides_runpath=no 15020 else 15021 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15022 shlibpath_overrides_runpath=yes 15023 case $host_os in 15024 sco3.2v5*) 15025 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15026 ;; 15027 esac 15028 fi 15029 sys_lib_dlsearch_path_spec='/usr/lib' 15030 ;; 15031 15032uts4*) 15033 version_type=linux 15034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15035 soname_spec='${libname}${release}${shared_ext}$major' 15036 shlibpath_var=LD_LIBRARY_PATH 15037 ;; 15038 15039*) 15040 dynamic_linker=no 15041 ;; 15042esac 15043echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15044echo "${ECHO_T}$dynamic_linker" >&6 15045test "$dynamic_linker" = no && can_build_shared=no 15046 15047variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15048if test "$GCC" = yes; then 15049 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15050fi 15051 15052echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15053echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15054hardcode_action_F77= 15055if test -n "$hardcode_libdir_flag_spec_F77" || \ 15056 test -n "$runpath_var_F77" || \ 15057 test "X$hardcode_automatic_F77" = "Xyes" ; then 15058 15059 # We can hardcode non-existant directories. 15060 if test "$hardcode_direct_F77" != no && 15061 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15062 # have to relink, otherwise we might link with an installed library 15063 # when we should be linking with a yet-to-be-installed one 15064 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15065 test "$hardcode_minus_L_F77" != no; then 15066 # Linking always hardcodes the temporary library directory. 15067 hardcode_action_F77=relink 15068 else 15069 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15070 hardcode_action_F77=immediate 15071 fi 15072else 15073 # We cannot hardcode anything, or else we can only hardcode existing 15074 # directories. 15075 hardcode_action_F77=unsupported 15076fi 15077echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15078echo "${ECHO_T}$hardcode_action_F77" >&6 15079 15080if test "$hardcode_action_F77" = relink; then 15081 # Fast installation is not supported 15082 enable_fast_install=no 15083elif test "$shlibpath_overrides_runpath" = yes || 15084 test "$enable_shared" = no; then 15085 # Fast installation is not necessary 15086 enable_fast_install=needless 15087fi 15088 15089 15090# The else clause should only fire when bootstrapping the 15091# libtool distribution, otherwise you forgot to ship ltmain.sh 15092# with your package, and you will get complaints that there are 15093# no rules to generate ltmain.sh. 15094if test -f "$ltmain"; then 15095 # See if we are running on zsh, and set the options which allow our commands through 15096 # without removal of \ escapes. 15097 if test -n "${ZSH_VERSION+set}" ; then 15098 setopt NO_GLOB_SUBST 15099 fi 15100 # Now quote all the things that may contain metacharacters while being 15101 # careful not to overquote the AC_SUBSTed values. We take copies of the 15102 # variables and quote the copies for generation of the libtool script. 15103 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15104 SED SHELL STRIP \ 15105 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15106 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15107 deplibs_check_method reload_flag reload_cmds need_locks \ 15108 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15109 lt_cv_sys_global_symbol_to_c_name_address \ 15110 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15111 old_postinstall_cmds old_postuninstall_cmds \ 15112 compiler_F77 \ 15113 CC_F77 \ 15114 LD_F77 \ 15115 lt_prog_compiler_wl_F77 \ 15116 lt_prog_compiler_pic_F77 \ 15117 lt_prog_compiler_static_F77 \ 15118 lt_prog_compiler_no_builtin_flag_F77 \ 15119 export_dynamic_flag_spec_F77 \ 15120 thread_safe_flag_spec_F77 \ 15121 whole_archive_flag_spec_F77 \ 15122 enable_shared_with_static_runtimes_F77 \ 15123 old_archive_cmds_F77 \ 15124 old_archive_from_new_cmds_F77 \ 15125 predep_objects_F77 \ 15126 postdep_objects_F77 \ 15127 predeps_F77 \ 15128 postdeps_F77 \ 15129 compiler_lib_search_path_F77 \ 15130 archive_cmds_F77 \ 15131 archive_expsym_cmds_F77 \ 15132 postinstall_cmds_F77 \ 15133 postuninstall_cmds_F77 \ 15134 old_archive_from_expsyms_cmds_F77 \ 15135 allow_undefined_flag_F77 \ 15136 no_undefined_flag_F77 \ 15137 export_symbols_cmds_F77 \ 15138 hardcode_libdir_flag_spec_F77 \ 15139 hardcode_libdir_flag_spec_ld_F77 \ 15140 hardcode_libdir_separator_F77 \ 15141 hardcode_automatic_F77 \ 15142 module_cmds_F77 \ 15143 module_expsym_cmds_F77 \ 15144 lt_cv_prog_compiler_c_o_F77 \ 15145 exclude_expsyms_F77 \ 15146 include_expsyms_F77; do 15147 15148 case $var in 15149 old_archive_cmds_F77 | \ 15150 old_archive_from_new_cmds_F77 | \ 15151 archive_cmds_F77 | \ 15152 archive_expsym_cmds_F77 | \ 15153 module_cmds_F77 | \ 15154 module_expsym_cmds_F77 | \ 15155 old_archive_from_expsyms_cmds_F77 | \ 15156 export_symbols_cmds_F77 | \ 15157 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15158 postinstall_cmds | postuninstall_cmds | \ 15159 old_postinstall_cmds | old_postuninstall_cmds | \ 15160 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15161 # Double-quote double-evaled strings. 15162 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15163 ;; 15164 *) 15165 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15166 ;; 15167 esac 15168 done 15169 15170 case $lt_echo in 15171 *'\$0 --fallback-echo"') 15172 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15173 ;; 15174 esac 15175 15176cfgfile="$ofile" 15177 15178 cat <<__EOF__ >> "$cfgfile" 15179# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15180 15181# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15182 15183# Shell to use when invoking shell scripts. 15184SHELL=$lt_SHELL 15185 15186# Whether or not to build shared libraries. 15187build_libtool_libs=$enable_shared 15188 15189# Whether or not to build static libraries. 15190build_old_libs=$enable_static 15191 15192# Whether or not to add -lc for building shared libraries. 15193build_libtool_need_lc=$archive_cmds_need_lc_F77 15194 15195# Whether or not to disallow shared libs when runtime libs are static 15196allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15197 15198# Whether or not to optimize for fast installation. 15199fast_install=$enable_fast_install 15200 15201# The host system. 15202host_alias=$host_alias 15203host=$host 15204host_os=$host_os 15205 15206# The build system. 15207build_alias=$build_alias 15208build=$build 15209build_os=$build_os 15210 15211# An echo program that does not interpret backslashes. 15212echo=$lt_echo 15213 15214# The archiver. 15215AR=$lt_AR 15216AR_FLAGS=$lt_AR_FLAGS 15217 15218# A C compiler. 15219LTCC=$lt_LTCC 15220 15221# LTCC compiler flags. 15222LTCFLAGS=$lt_LTCFLAGS 15223 15224# A language-specific compiler. 15225CC=$lt_compiler_F77 15226 15227# Is the compiler the GNU C compiler? 15228with_gcc=$GCC_F77 15229 15230# An ERE matcher. 15231EGREP=$lt_EGREP 15232 15233# The linker used to build libraries. 15234LD=$lt_LD_F77 15235 15236# Whether we need hard or soft links. 15237LN_S=$lt_LN_S 15238 15239# A BSD-compatible nm program. 15240NM=$lt_NM 15241 15242# A symbol stripping program 15243STRIP=$lt_STRIP 15244 15245# Used to examine libraries when file_magic_cmd begins "file" 15246MAGIC_CMD=$MAGIC_CMD 15247 15248# Used on cygwin: DLL creation program. 15249DLLTOOL="$DLLTOOL" 15250 15251# Used on cygwin: object dumper. 15252OBJDUMP="$OBJDUMP" 15253 15254# Used on cygwin: assembler. 15255AS="$AS" 15256 15257# The name of the directory that contains temporary libtool files. 15258objdir=$objdir 15259 15260# How to create reloadable object files. 15261reload_flag=$lt_reload_flag 15262reload_cmds=$lt_reload_cmds 15263 15264# How to pass a linker flag through the compiler. 15265wl=$lt_lt_prog_compiler_wl_F77 15266 15267# Object file suffix (normally "o"). 15268objext="$ac_objext" 15269 15270# Old archive suffix (normally "a"). 15271libext="$libext" 15272 15273# Shared library suffix (normally ".so"). 15274shrext_cmds='$shrext_cmds' 15275 15276# Executable file suffix (normally ""). 15277exeext="$exeext" 15278 15279# Additional compiler flags for building library objects. 15280pic_flag=$lt_lt_prog_compiler_pic_F77 15281pic_mode=$pic_mode 15282 15283# What is the maximum length of a command? 15284max_cmd_len=$lt_cv_sys_max_cmd_len 15285 15286# Does compiler simultaneously support -c and -o options? 15287compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15288 15289# Must we lock files when doing compilation? 15290need_locks=$lt_need_locks 15291 15292# Do we need the lib prefix for modules? 15293need_lib_prefix=$need_lib_prefix 15294 15295# Do we need a version for libraries? 15296need_version=$need_version 15297 15298# Whether dlopen is supported. 15299dlopen_support=$enable_dlopen 15300 15301# Whether dlopen of programs is supported. 15302dlopen_self=$enable_dlopen_self 15303 15304# Whether dlopen of statically linked programs is supported. 15305dlopen_self_static=$enable_dlopen_self_static 15306 15307# Compiler flag to prevent dynamic linking. 15308link_static_flag=$lt_lt_prog_compiler_static_F77 15309 15310# Compiler flag to turn off builtin functions. 15311no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15312 15313# Compiler flag to allow reflexive dlopens. 15314export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15315 15316# Compiler flag to generate shared objects directly from archives. 15317whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15318 15319# Compiler flag to generate thread-safe objects. 15320thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15321 15322# Library versioning type. 15323version_type=$version_type 15324 15325# Format of library name prefix. 15326libname_spec=$lt_libname_spec 15327 15328# List of archive names. First name is the real one, the rest are links. 15329# The last name is the one that the linker finds with -lNAME. 15330library_names_spec=$lt_library_names_spec 15331 15332# The coded name of the library, if different from the real name. 15333soname_spec=$lt_soname_spec 15334 15335# Commands used to build and install an old-style archive. 15336RANLIB=$lt_RANLIB 15337old_archive_cmds=$lt_old_archive_cmds_F77 15338old_postinstall_cmds=$lt_old_postinstall_cmds 15339old_postuninstall_cmds=$lt_old_postuninstall_cmds 15340 15341# Create an old-style archive from a shared archive. 15342old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15343 15344# Create a temporary old-style archive to link instead of a shared archive. 15345old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15346 15347# Commands used to build and install a shared archive. 15348archive_cmds=$lt_archive_cmds_F77 15349archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15350postinstall_cmds=$lt_postinstall_cmds 15351postuninstall_cmds=$lt_postuninstall_cmds 15352 15353# Commands used to build a loadable module (assumed same as above if empty) 15354module_cmds=$lt_module_cmds_F77 15355module_expsym_cmds=$lt_module_expsym_cmds_F77 15356 15357# Commands to strip libraries. 15358old_striplib=$lt_old_striplib 15359striplib=$lt_striplib 15360 15361# Dependencies to place before the objects being linked to create a 15362# shared library. 15363predep_objects=$lt_predep_objects_F77 15364 15365# Dependencies to place after the objects being linked to create a 15366# shared library. 15367postdep_objects=$lt_postdep_objects_F77 15368 15369# Dependencies to place before the objects being linked to create a 15370# shared library. 15371predeps=$lt_predeps_F77 15372 15373# Dependencies to place after the objects being linked to create a 15374# shared library. 15375postdeps=$lt_postdeps_F77 15376 15377# The library search path used internally by the compiler when linking 15378# a shared library. 15379compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15380 15381# Method to check whether dependent libraries are shared objects. 15382deplibs_check_method=$lt_deplibs_check_method 15383 15384# Command to use when deplibs_check_method == file_magic. 15385file_magic_cmd=$lt_file_magic_cmd 15386 15387# Flag that allows shared libraries with undefined symbols to be built. 15388allow_undefined_flag=$lt_allow_undefined_flag_F77 15389 15390# Flag that forces no undefined symbols. 15391no_undefined_flag=$lt_no_undefined_flag_F77 15392 15393# Commands used to finish a libtool library installation in a directory. 15394finish_cmds=$lt_finish_cmds 15395 15396# Same as above, but a single script fragment to be evaled but not shown. 15397finish_eval=$lt_finish_eval 15398 15399# Take the output of nm and produce a listing of raw symbols and C names. 15400global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15401 15402# Transform the output of nm in a proper C declaration 15403global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15404 15405# Transform the output of nm in a C name address pair 15406global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15407 15408# This is the shared library runtime path variable. 15409runpath_var=$runpath_var 15410 15411# This is the shared library path variable. 15412shlibpath_var=$shlibpath_var 15413 15414# Is shlibpath searched before the hard-coded library search path? 15415shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15416 15417# How to hardcode a shared library path into an executable. 15418hardcode_action=$hardcode_action_F77 15419 15420# Whether we should hardcode library paths into libraries. 15421hardcode_into_libs=$hardcode_into_libs 15422 15423# Flag to hardcode \$libdir into a binary during linking. 15424# This must work even if \$libdir does not exist. 15425hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15426 15427# If ld is used when linking, flag to hardcode \$libdir into 15428# a binary during linking. This must work even if \$libdir does 15429# not exist. 15430hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15431 15432# Whether we need a single -rpath flag with a separated argument. 15433hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15434 15435# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15436# resulting binary. 15437hardcode_direct=$hardcode_direct_F77 15438 15439# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15440# resulting binary. 15441hardcode_minus_L=$hardcode_minus_L_F77 15442 15443# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15444# the resulting binary. 15445hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15446 15447# Set to yes if building a shared library automatically hardcodes DIR into the library 15448# and all subsequent libraries and executables linked against it. 15449hardcode_automatic=$hardcode_automatic_F77 15450 15451# Variables whose values should be saved in libtool wrapper scripts and 15452# restored at relink time. 15453variables_saved_for_relink="$variables_saved_for_relink" 15454 15455# Whether libtool must link a program against all its dependency libraries. 15456link_all_deplibs=$link_all_deplibs_F77 15457 15458# Compile-time system search path for libraries 15459sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15460 15461# Run-time system search path for libraries 15462sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15463 15464# Fix the shell variable \$srcfile for the compiler. 15465fix_srcfile_path="$fix_srcfile_path_F77" 15466 15467# Set to yes if exported symbols are required. 15468always_export_symbols=$always_export_symbols_F77 15469 15470# The commands to list exported symbols. 15471export_symbols_cmds=$lt_export_symbols_cmds_F77 15472 15473# The commands to extract the exported symbol list from a shared archive. 15474extract_expsyms_cmds=$lt_extract_expsyms_cmds 15475 15476# Symbols that should not be listed in the preloaded symbols. 15477exclude_expsyms=$lt_exclude_expsyms_F77 15478 15479# Symbols that must always be exported. 15480include_expsyms=$lt_include_expsyms_F77 15481 15482# ### END LIBTOOL TAG CONFIG: $tagname 15483 15484__EOF__ 15485 15486 15487else 15488 # If there is no Makefile yet, we rely on a make rule to execute 15489 # `config.status --recheck' to rerun these tests and create the 15490 # libtool script then. 15491 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15492 if test -f "$ltmain_in"; then 15493 test -f Makefile && make "$ltmain" 15494 fi 15495fi 15496 15497 15498ac_ext=c 15499ac_cpp='$CPP $CPPFLAGS' 15500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15502ac_compiler_gnu=$ac_cv_c_compiler_gnu 15503 15504CC="$lt_save_CC" 15505 15506 else 15507 tagname="" 15508 fi 15509 ;; 15510 15511 GCJ) 15512 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15513 15514 15515 15516# Source file extension for Java test sources. 15517ac_ext=java 15518 15519# Object file extension for compiled Java test sources. 15520objext=o 15521objext_GCJ=$objext 15522 15523# Code to be used in simple compile tests 15524lt_simple_compile_test_code="class foo {}\n" 15525 15526# Code to be used in simple link tests 15527lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 15528 15529# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15530 15531# If no C compiler was specified, use CC. 15532LTCC=${LTCC-"$CC"} 15533 15534# If no C compiler flags were specified, use CFLAGS. 15535LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15536 15537# Allow CC to be a program name with arguments. 15538compiler=$CC 15539 15540 15541# save warnings/boilerplate of simple test code 15542ac_outfile=conftest.$ac_objext 15543printf "$lt_simple_compile_test_code" >conftest.$ac_ext 15544eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15545_lt_compiler_boilerplate=`cat conftest.err` 15546$rm conftest* 15547 15548ac_outfile=conftest.$ac_objext 15549printf "$lt_simple_link_test_code" >conftest.$ac_ext 15550eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15551_lt_linker_boilerplate=`cat conftest.err` 15552$rm conftest* 15553 15554 15555# Allow CC to be a program name with arguments. 15556lt_save_CC="$CC" 15557CC=${GCJ-"gcj"} 15558compiler=$CC 15559compiler_GCJ=$CC 15560for cc_temp in $compiler""; do 15561 case $cc_temp in 15562 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15563 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15564 \-*) ;; 15565 *) break;; 15566 esac 15567done 15568cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15569 15570 15571# GCJ did not exist at the time GCC didn't implicitly link libc in. 15572archive_cmds_need_lc_GCJ=no 15573 15574old_archive_cmds_GCJ=$old_archive_cmds 15575 15576 15577lt_prog_compiler_no_builtin_flag_GCJ= 15578 15579if test "$GCC" = yes; then 15580 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15581 15582 15583echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15584echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15585if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15586 echo $ECHO_N "(cached) $ECHO_C" >&6 15587else 15588 lt_cv_prog_compiler_rtti_exceptions=no 15589 ac_outfile=conftest.$ac_objext 15590 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15591 lt_compiler_flag="-fno-rtti -fno-exceptions" 15592 # Insert the option either (1) after the last *FLAGS variable, or 15593 # (2) before a word containing "conftest.", or (3) at the end. 15594 # Note that $ac_compile itself does not contain backslashes and begins 15595 # with a dollar sign (not a hyphen), so the echo should work correctly. 15596 # The option is referenced via a variable to avoid confusing sed. 15597 lt_compile=`echo "$ac_compile" | $SED \ 15598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15600 -e 's:$: $lt_compiler_flag:'` 15601 (eval echo "\"\$as_me:15601: $lt_compile\"" >&5) 15602 (eval "$lt_compile" 2>conftest.err) 15603 ac_status=$? 15604 cat conftest.err >&5 15605 echo "$as_me:15605: \$? = $ac_status" >&5 15606 if (exit $ac_status) && test -s "$ac_outfile"; then 15607 # The compiler can only warn and ignore the option if not recognized 15608 # So say no if there are warnings other than the usual output. 15609 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15610 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15611 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15612 lt_cv_prog_compiler_rtti_exceptions=yes 15613 fi 15614 fi 15615 $rm conftest* 15616 15617fi 15618echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15619echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15620 15621if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15622 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15623else 15624 : 15625fi 15626 15627fi 15628 15629lt_prog_compiler_wl_GCJ= 15630lt_prog_compiler_pic_GCJ= 15631lt_prog_compiler_static_GCJ= 15632 15633echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15634echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15635 15636 if test "$GCC" = yes; then 15637 lt_prog_compiler_wl_GCJ='-Wl,' 15638 lt_prog_compiler_static_GCJ='-static' 15639 15640 case $host_os in 15641 aix*) 15642 # All AIX code is PIC. 15643 if test "$host_cpu" = ia64; then 15644 # AIX 5 now supports IA64 processor 15645 lt_prog_compiler_static_GCJ='-Bstatic' 15646 fi 15647 ;; 15648 15649 amigaos*) 15650 # FIXME: we need at least 68020 code to build shared libraries, but 15651 # adding the `-m68020' flag to GCC prevents building anything better, 15652 # like `-m68040'. 15653 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15654 ;; 15655 15656 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15657 # PIC is the default for these OSes. 15658 ;; 15659 15660 mingw* | pw32* | os2*) 15661 # This hack is so that the source file can tell whether it is being 15662 # built for inclusion in a dll (and should export symbols for example). 15663 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15664 ;; 15665 15666 darwin* | rhapsody*) 15667 # PIC is the default on this platform 15668 # Common symbols not allowed in MH_DYLIB files 15669 lt_prog_compiler_pic_GCJ='-fno-common' 15670 ;; 15671 15672 interix3*) 15673 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15674 # Instead, we relocate shared libraries at runtime. 15675 ;; 15676 15677 msdosdjgpp*) 15678 # Just because we use GCC doesn't mean we suddenly get shared libraries 15679 # on systems that don't support them. 15680 lt_prog_compiler_can_build_shared_GCJ=no 15681 enable_shared=no 15682 ;; 15683 15684 sysv4*MP*) 15685 if test -d /usr/nec; then 15686 lt_prog_compiler_pic_GCJ=-Kconform_pic 15687 fi 15688 ;; 15689 15690 hpux*) 15691 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15692 # not for PA HP-UX. 15693 case $host_cpu in 15694 hppa*64*|ia64*) 15695 # +Z the default 15696 ;; 15697 *) 15698 lt_prog_compiler_pic_GCJ='-fPIC' 15699 ;; 15700 esac 15701 ;; 15702 15703 *) 15704 lt_prog_compiler_pic_GCJ='-fPIC' 15705 ;; 15706 esac 15707 else 15708 # PORTME Check for flag to pass linker flags through the system compiler. 15709 case $host_os in 15710 aix*) 15711 lt_prog_compiler_wl_GCJ='-Wl,' 15712 if test "$host_cpu" = ia64; then 15713 # AIX 5 now supports IA64 processor 15714 lt_prog_compiler_static_GCJ='-Bstatic' 15715 else 15716 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15717 fi 15718 ;; 15719 darwin*) 15720 # PIC is the default on this platform 15721 # Common symbols not allowed in MH_DYLIB files 15722 case $cc_basename in 15723 xlc*) 15724 lt_prog_compiler_pic_GCJ='-qnocommon' 15725 lt_prog_compiler_wl_GCJ='-Wl,' 15726 ;; 15727 esac 15728 ;; 15729 15730 mingw* | pw32* | os2*) 15731 # This hack is so that the source file can tell whether it is being 15732 # built for inclusion in a dll (and should export symbols for example). 15733 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15734 ;; 15735 15736 hpux9* | hpux10* | hpux11*) 15737 lt_prog_compiler_wl_GCJ='-Wl,' 15738 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15739 # not for PA HP-UX. 15740 case $host_cpu in 15741 hppa*64*|ia64*) 15742 # +Z the default 15743 ;; 15744 *) 15745 lt_prog_compiler_pic_GCJ='+Z' 15746 ;; 15747 esac 15748 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15749 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15750 ;; 15751 15752 irix5* | irix6* | nonstopux*) 15753 lt_prog_compiler_wl_GCJ='-Wl,' 15754 # PIC (with -KPIC) is the default. 15755 lt_prog_compiler_static_GCJ='-non_shared' 15756 ;; 15757 15758 newsos6) 15759 lt_prog_compiler_pic_GCJ='-KPIC' 15760 lt_prog_compiler_static_GCJ='-Bstatic' 15761 ;; 15762 15763 linux*) 15764 case $cc_basename in 15765 icc* | ecc*) 15766 lt_prog_compiler_wl_GCJ='-Wl,' 15767 lt_prog_compiler_pic_GCJ='-KPIC' 15768 lt_prog_compiler_static_GCJ='-static' 15769 ;; 15770 pgcc* | pgf77* | pgf90* | pgf95*) 15771 # Portland Group compilers (*not* the Pentium gcc compiler, 15772 # which looks to be a dead project) 15773 lt_prog_compiler_wl_GCJ='-Wl,' 15774 lt_prog_compiler_pic_GCJ='-fpic' 15775 lt_prog_compiler_static_GCJ='-Bstatic' 15776 ;; 15777 ccc*) 15778 lt_prog_compiler_wl_GCJ='-Wl,' 15779 # All Alpha code is PIC. 15780 lt_prog_compiler_static_GCJ='-non_shared' 15781 ;; 15782 esac 15783 ;; 15784 15785 osf3* | osf4* | osf5*) 15786 lt_prog_compiler_wl_GCJ='-Wl,' 15787 # All OSF/1 code is PIC. 15788 lt_prog_compiler_static_GCJ='-non_shared' 15789 ;; 15790 15791 solaris*) 15792 lt_prog_compiler_pic_GCJ='-KPIC' 15793 lt_prog_compiler_static_GCJ='-Bstatic' 15794 case $cc_basename in 15795 f77* | f90* | f95*) 15796 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 15797 *) 15798 lt_prog_compiler_wl_GCJ='-Wl,';; 15799 esac 15800 ;; 15801 15802 sunos4*) 15803 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15804 lt_prog_compiler_pic_GCJ='-PIC' 15805 lt_prog_compiler_static_GCJ='-Bstatic' 15806 ;; 15807 15808 sysv4 | sysv4.2uw2* | sysv4.3*) 15809 lt_prog_compiler_wl_GCJ='-Wl,' 15810 lt_prog_compiler_pic_GCJ='-KPIC' 15811 lt_prog_compiler_static_GCJ='-Bstatic' 15812 ;; 15813 15814 sysv4*MP*) 15815 if test -d /usr/nec ;then 15816 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15817 lt_prog_compiler_static_GCJ='-Bstatic' 15818 fi 15819 ;; 15820 15821 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15822 lt_prog_compiler_wl_GCJ='-Wl,' 15823 lt_prog_compiler_pic_GCJ='-KPIC' 15824 lt_prog_compiler_static_GCJ='-Bstatic' 15825 ;; 15826 15827 unicos*) 15828 lt_prog_compiler_wl_GCJ='-Wl,' 15829 lt_prog_compiler_can_build_shared_GCJ=no 15830 ;; 15831 15832 uts4*) 15833 lt_prog_compiler_pic_GCJ='-pic' 15834 lt_prog_compiler_static_GCJ='-Bstatic' 15835 ;; 15836 15837 *) 15838 lt_prog_compiler_can_build_shared_GCJ=no 15839 ;; 15840 esac 15841 fi 15842 15843echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 15844echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 15845 15846# 15847# Check to make sure the PIC flag actually works. 15848# 15849if test -n "$lt_prog_compiler_pic_GCJ"; then 15850 15851echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15852echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 15853if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 15854 echo $ECHO_N "(cached) $ECHO_C" >&6 15855else 15856 lt_prog_compiler_pic_works_GCJ=no 15857 ac_outfile=conftest.$ac_objext 15858 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15859 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15860 # Insert the option either (1) after the last *FLAGS variable, or 15861 # (2) before a word containing "conftest.", or (3) at the end. 15862 # Note that $ac_compile itself does not contain backslashes and begins 15863 # with a dollar sign (not a hyphen), so the echo should work correctly. 15864 # The option is referenced via a variable to avoid confusing sed. 15865 lt_compile=`echo "$ac_compile" | $SED \ 15866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15868 -e 's:$: $lt_compiler_flag:'` 15869 (eval echo "\"\$as_me:15869: $lt_compile\"" >&5) 15870 (eval "$lt_compile" 2>conftest.err) 15871 ac_status=$? 15872 cat conftest.err >&5 15873 echo "$as_me:15873: \$? = $ac_status" >&5 15874 if (exit $ac_status) && test -s "$ac_outfile"; then 15875 # The compiler can only warn and ignore the option if not recognized 15876 # So say no if there are warnings other than the usual output. 15877 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15879 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15880 lt_prog_compiler_pic_works_GCJ=yes 15881 fi 15882 fi 15883 $rm conftest* 15884 15885fi 15886echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 15887echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 15888 15889if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 15890 case $lt_prog_compiler_pic_GCJ in 15891 "" | " "*) ;; 15892 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15893 esac 15894else 15895 lt_prog_compiler_pic_GCJ= 15896 lt_prog_compiler_can_build_shared_GCJ=no 15897fi 15898 15899fi 15900case $host_os in 15901 # For platforms which do not support PIC, -DPIC is meaningless: 15902 *djgpp*) 15903 lt_prog_compiler_pic_GCJ= 15904 ;; 15905 *) 15906 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15907 ;; 15908esac 15909 15910# 15911# Check to make sure the static flag actually works. 15912# 15913wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 15914echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15915echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 15916if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 15917 echo $ECHO_N "(cached) $ECHO_C" >&6 15918else 15919 lt_prog_compiler_static_works_GCJ=no 15920 save_LDFLAGS="$LDFLAGS" 15921 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15922 printf "$lt_simple_link_test_code" > conftest.$ac_ext 15923 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15924 # The linker can only warn and ignore the option if not recognized 15925 # So say no if there are warnings 15926 if test -s conftest.err; then 15927 # Append any errors to the config.log. 15928 cat conftest.err 1>&5 15929 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15931 if diff conftest.exp conftest.er2 >/dev/null; then 15932 lt_prog_compiler_static_works_GCJ=yes 15933 fi 15934 else 15935 lt_prog_compiler_static_works_GCJ=yes 15936 fi 15937 fi 15938 $rm conftest* 15939 LDFLAGS="$save_LDFLAGS" 15940 15941fi 15942echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 15943echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 15944 15945if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 15946 : 15947else 15948 lt_prog_compiler_static_GCJ= 15949fi 15950 15951 15952echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15953echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15954if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15955 echo $ECHO_N "(cached) $ECHO_C" >&6 15956else 15957 lt_cv_prog_compiler_c_o_GCJ=no 15958 $rm -r conftest 2>/dev/null 15959 mkdir conftest 15960 cd conftest 15961 mkdir out 15962 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15963 15964 lt_compiler_flag="-o out/conftest2.$ac_objext" 15965 # Insert the option either (1) after the last *FLAGS variable, or 15966 # (2) before a word containing "conftest.", or (3) at the end. 15967 # Note that $ac_compile itself does not contain backslashes and begins 15968 # with a dollar sign (not a hyphen), so the echo should work correctly. 15969 lt_compile=`echo "$ac_compile" | $SED \ 15970 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15972 -e 's:$: $lt_compiler_flag:'` 15973 (eval echo "\"\$as_me:15973: $lt_compile\"" >&5) 15974 (eval "$lt_compile" 2>out/conftest.err) 15975 ac_status=$? 15976 cat out/conftest.err >&5 15977 echo "$as_me:15977: \$? = $ac_status" >&5 15978 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15979 then 15980 # The compiler can only warn and ignore the option if not recognized 15981 # So say no if there are warnings 15982 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15983 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15984 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15985 lt_cv_prog_compiler_c_o_GCJ=yes 15986 fi 15987 fi 15988 chmod u+w . 2>&5 15989 $rm conftest* 15990 # SGI C++ compiler will create directory out/ii_files/ for 15991 # template instantiation 15992 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15993 $rm out/* && rmdir out 15994 cd .. 15995 rmdir conftest 15996 $rm conftest* 15997 15998fi 15999echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16000echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16001 16002 16003hard_links="nottested" 16004if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16005 # do not overwrite the value of need_locks provided by the user 16006 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16007echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16008 hard_links=yes 16009 $rm conftest* 16010 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16011 touch conftest.a 16012 ln conftest.a conftest.b 2>&5 || hard_links=no 16013 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16014 echo "$as_me:$LINENO: result: $hard_links" >&5 16015echo "${ECHO_T}$hard_links" >&6 16016 if test "$hard_links" = no; then 16017 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16018echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16019 need_locks=warn 16020 fi 16021else 16022 need_locks=no 16023fi 16024 16025echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16026echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16027 16028 runpath_var= 16029 allow_undefined_flag_GCJ= 16030 enable_shared_with_static_runtimes_GCJ=no 16031 archive_cmds_GCJ= 16032 archive_expsym_cmds_GCJ= 16033 old_archive_From_new_cmds_GCJ= 16034 old_archive_from_expsyms_cmds_GCJ= 16035 export_dynamic_flag_spec_GCJ= 16036 whole_archive_flag_spec_GCJ= 16037 thread_safe_flag_spec_GCJ= 16038 hardcode_libdir_flag_spec_GCJ= 16039 hardcode_libdir_flag_spec_ld_GCJ= 16040 hardcode_libdir_separator_GCJ= 16041 hardcode_direct_GCJ=no 16042 hardcode_minus_L_GCJ=no 16043 hardcode_shlibpath_var_GCJ=unsupported 16044 link_all_deplibs_GCJ=unknown 16045 hardcode_automatic_GCJ=no 16046 module_cmds_GCJ= 16047 module_expsym_cmds_GCJ= 16048 always_export_symbols_GCJ=no 16049 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16050 # include_expsyms should be a list of space-separated symbols to be *always* 16051 # included in the symbol list 16052 include_expsyms_GCJ= 16053 # exclude_expsyms can be an extended regexp of symbols to exclude 16054 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16055 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16056 # as well as any symbol that contains `d'. 16057 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16058 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16059 # platforms (ab)use it in PIC code, but their linkers get confused if 16060 # the symbol is explicitly referenced. Since portable code cannot 16061 # rely on this symbol name, it's probably fine to never include it in 16062 # preloaded symbol tables. 16063 extract_expsyms_cmds= 16064 # Just being paranoid about ensuring that cc_basename is set. 16065 for cc_temp in $compiler""; do 16066 case $cc_temp in 16067 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16068 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16069 \-*) ;; 16070 *) break;; 16071 esac 16072done 16073cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16074 16075 case $host_os in 16076 cygwin* | mingw* | pw32*) 16077 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16078 # When not using gcc, we currently assume that we are using 16079 # Microsoft Visual C++. 16080 if test "$GCC" != yes; then 16081 with_gnu_ld=no 16082 fi 16083 ;; 16084 interix*) 16085 # we just hope/assume this is gcc and not c89 (= MSVC++) 16086 with_gnu_ld=yes 16087 ;; 16088 openbsd*) 16089 with_gnu_ld=no 16090 ;; 16091 esac 16092 16093 ld_shlibs_GCJ=yes 16094 if test "$with_gnu_ld" = yes; then 16095 # If archive_cmds runs LD, not CC, wlarc should be empty 16096 wlarc='${wl}' 16097 16098 # Set some defaults for GNU ld with shared library support. These 16099 # are reset later if shared libraries are not supported. Putting them 16100 # here allows them to be overridden if necessary. 16101 runpath_var=LD_RUN_PATH 16102 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16103 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16104 # ancient GNU ld didn't support --whole-archive et. al. 16105 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16106 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16107 else 16108 whole_archive_flag_spec_GCJ= 16109 fi 16110 supports_anon_versioning=no 16111 case `$LD -v 2>/dev/null` in 16112 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16113 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16114 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16115 *\ 2.11.*) ;; # other 2.11 versions 16116 *) supports_anon_versioning=yes ;; 16117 esac 16118 16119 # See if GNU ld supports shared libraries. 16120 case $host_os in 16121 aix3* | aix4* | aix5*) 16122 # On AIX/PPC, the GNU linker is very broken 16123 if test "$host_cpu" != ia64; then 16124 ld_shlibs_GCJ=no 16125 cat <<EOF 1>&2 16126 16127*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16128*** to be unable to reliably create shared libraries on AIX. 16129*** Therefore, libtool is disabling shared libraries support. If you 16130*** really care for shared libraries, you may want to modify your PATH 16131*** so that a non-GNU linker is found, and then restart. 16132 16133EOF 16134 fi 16135 ;; 16136 16137 amigaos*) 16138 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)' 16139 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16140 hardcode_minus_L_GCJ=yes 16141 16142 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16143 # that the semantics of dynamic libraries on AmigaOS, at least up 16144 # to version 4, is to share data among multiple programs linked 16145 # with the same dynamic library. Since this doesn't match the 16146 # behavior of shared libraries on other platforms, we can't use 16147 # them. 16148 ld_shlibs_GCJ=no 16149 ;; 16150 16151 beos*) 16152 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16153 allow_undefined_flag_GCJ=unsupported 16154 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16155 # support --undefined. This deserves some investigation. FIXME 16156 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16157 else 16158 ld_shlibs_GCJ=no 16159 fi 16160 ;; 16161 16162 cygwin* | mingw* | pw32*) 16163 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16164 # as there is no search path for DLLs. 16165 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16166 allow_undefined_flag_GCJ=unsupported 16167 always_export_symbols_GCJ=no 16168 enable_shared_with_static_runtimes_GCJ=yes 16169 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16170 16171 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16172 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16173 # If the export-symbols file already is a .def file (1st line 16174 # is EXPORTS), use it as is; otherwise, prepend... 16175 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16176 cp $export_symbols $output_objdir/$soname.def; 16177 else 16178 echo EXPORTS > $output_objdir/$soname.def; 16179 cat $export_symbols >> $output_objdir/$soname.def; 16180 fi~ 16181 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16182 else 16183 ld_shlibs_GCJ=no 16184 fi 16185 ;; 16186 16187 interix3*) 16188 hardcode_direct_GCJ=no 16189 hardcode_shlibpath_var_GCJ=no 16190 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16191 export_dynamic_flag_spec_GCJ='${wl}-E' 16192 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16193 # Instead, shared libraries are loaded at an image base (0x10000000 by 16194 # default) and relocated if they conflict, which is a slow very memory 16195 # consuming and fragmenting process. To avoid this, we pick a random, 16196 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16197 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16198 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' 16199 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' 16200 ;; 16201 16202 linux*) 16203 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16204 tmp_addflag= 16205 case $cc_basename,$host_cpu in 16206 pgcc*) # Portland Group C compiler 16207 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' 16208 tmp_addflag=' $pic_flag' 16209 ;; 16210 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16211 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' 16212 tmp_addflag=' $pic_flag -Mnomain' ;; 16213 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16214 tmp_addflag=' -i_dynamic' ;; 16215 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16216 tmp_addflag=' -i_dynamic -nofor_main' ;; 16217 ifc* | ifort*) # Intel Fortran compiler 16218 tmp_addflag=' -nofor_main' ;; 16219 esac 16220 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16221 16222 if test $supports_anon_versioning = yes; then 16223 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16224 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16225 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16226 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16227 fi 16228 else 16229 ld_shlibs_GCJ=no 16230 fi 16231 ;; 16232 16233 netbsd*) 16234 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16235 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16236 wlarc= 16237 else 16238 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16239 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16240 fi 16241 ;; 16242 16243 solaris*) 16244 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16245 ld_shlibs_GCJ=no 16246 cat <<EOF 1>&2 16247 16248*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16249*** create shared libraries on Solaris systems. Therefore, libtool 16250*** is disabling shared libraries support. We urge you to upgrade GNU 16251*** binutils to release 2.9.1 or newer. Another option is to modify 16252*** your PATH or compiler configuration so that the native linker is 16253*** used, and then restart. 16254 16255EOF 16256 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16257 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16258 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16259 else 16260 ld_shlibs_GCJ=no 16261 fi 16262 ;; 16263 16264 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16265 case `$LD -v 2>&1` in 16266 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16267 ld_shlibs_GCJ=no 16268 cat <<_LT_EOF 1>&2 16269 16270*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16271*** reliably create shared libraries on SCO systems. Therefore, libtool 16272*** is disabling shared libraries support. We urge you to upgrade GNU 16273*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16274*** your PATH or compiler configuration so that the native linker is 16275*** used, and then restart. 16276 16277_LT_EOF 16278 ;; 16279 *) 16280 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16281 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16282 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16283 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16284 else 16285 ld_shlibs_GCJ=no 16286 fi 16287 ;; 16288 esac 16289 ;; 16290 16291 sunos4*) 16292 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16293 wlarc= 16294 hardcode_direct_GCJ=yes 16295 hardcode_shlibpath_var_GCJ=no 16296 ;; 16297 16298 *) 16299 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16300 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16301 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16302 else 16303 ld_shlibs_GCJ=no 16304 fi 16305 ;; 16306 esac 16307 16308 if test "$ld_shlibs_GCJ" = no; then 16309 runpath_var= 16310 hardcode_libdir_flag_spec_GCJ= 16311 export_dynamic_flag_spec_GCJ= 16312 whole_archive_flag_spec_GCJ= 16313 fi 16314 else 16315 # PORTME fill in a description of your system's linker (not GNU ld) 16316 case $host_os in 16317 aix3*) 16318 allow_undefined_flag_GCJ=unsupported 16319 always_export_symbols_GCJ=yes 16320 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' 16321 # Note: this linker hardcodes the directories in LIBPATH if there 16322 # are no directories specified by -L. 16323 hardcode_minus_L_GCJ=yes 16324 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16325 # Neither direct hardcoding nor static linking is supported with a 16326 # broken collect2. 16327 hardcode_direct_GCJ=unsupported 16328 fi 16329 ;; 16330 16331 aix4* | aix5*) 16332 if test "$host_cpu" = ia64; then 16333 # On IA64, the linker does run time linking by default, so we don't 16334 # have to do anything special. 16335 aix_use_runtimelinking=no 16336 exp_sym_flag='-Bexport' 16337 no_entry_flag="" 16338 else 16339 # If we're using GNU nm, then we don't want the "-C" option. 16340 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16341 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16342 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' 16343 else 16344 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' 16345 fi 16346 aix_use_runtimelinking=no 16347 16348 # Test if we are trying to use run time linking or normal 16349 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16350 # need to do runtime linking. 16351 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16352 for ld_flag in $LDFLAGS; do 16353 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16354 aix_use_runtimelinking=yes 16355 break 16356 fi 16357 done 16358 ;; 16359 esac 16360 16361 exp_sym_flag='-bexport' 16362 no_entry_flag='-bnoentry' 16363 fi 16364 16365 # When large executables or shared objects are built, AIX ld can 16366 # have problems creating the table of contents. If linking a library 16367 # or program results in "error TOC overflow" add -mminimal-toc to 16368 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16369 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16370 16371 archive_cmds_GCJ='' 16372 hardcode_direct_GCJ=yes 16373 hardcode_libdir_separator_GCJ=':' 16374 link_all_deplibs_GCJ=yes 16375 16376 if test "$GCC" = yes; then 16377 case $host_os in aix4.[012]|aix4.[012].*) 16378 # We only want to do this on AIX 4.2 and lower, the check 16379 # below for broken collect2 doesn't work under 4.3+ 16380 collect2name=`${CC} -print-prog-name=collect2` 16381 if test -f "$collect2name" && \ 16382 strings "$collect2name" | grep resolve_lib_name >/dev/null 16383 then 16384 # We have reworked collect2 16385 hardcode_direct_GCJ=yes 16386 else 16387 # We have old collect2 16388 hardcode_direct_GCJ=unsupported 16389 # It fails to find uninstalled libraries when the uninstalled 16390 # path is not listed in the libpath. Setting hardcode_minus_L 16391 # to unsupported forces relinking 16392 hardcode_minus_L_GCJ=yes 16393 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16394 hardcode_libdir_separator_GCJ= 16395 fi 16396 ;; 16397 esac 16398 shared_flag='-shared' 16399 if test "$aix_use_runtimelinking" = yes; then 16400 shared_flag="$shared_flag "'${wl}-G' 16401 fi 16402 else 16403 # not using gcc 16404 if test "$host_cpu" = ia64; then 16405 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16406 # chokes on -Wl,-G. The following line is correct: 16407 shared_flag='-G' 16408 else 16409 if test "$aix_use_runtimelinking" = yes; then 16410 shared_flag='${wl}-G' 16411 else 16412 shared_flag='${wl}-bM:SRE' 16413 fi 16414 fi 16415 fi 16416 16417 # It seems that -bexpall does not export symbols beginning with 16418 # underscore (_), so it is better to generate a list of symbols to export. 16419 always_export_symbols_GCJ=yes 16420 if test "$aix_use_runtimelinking" = yes; then 16421 # Warning - without using the other runtime loading flags (-brtl), 16422 # -berok will link without error, but may produce a broken library. 16423 allow_undefined_flag_GCJ='-berok' 16424 # Determine the default libpath from the value encoded in an empty executable. 16425 cat >conftest.$ac_ext <<_ACEOF 16426/* confdefs.h. */ 16427_ACEOF 16428cat confdefs.h >>conftest.$ac_ext 16429cat >>conftest.$ac_ext <<_ACEOF 16430/* end confdefs.h. */ 16431 16432int 16433main () 16434{ 16435 16436 ; 16437 return 0; 16438} 16439_ACEOF 16440rm -f conftest.$ac_objext conftest$ac_exeext 16441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16442 (eval $ac_link) 2>conftest.er1 16443 ac_status=$? 16444 grep -v '^ *+' conftest.er1 >conftest.err 16445 rm -f conftest.er1 16446 cat conftest.err >&5 16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16448 (exit $ac_status); } && 16449 { ac_try='test -z "$ac_c_werror_flag" 16450 || test ! -s conftest.err' 16451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16452 (eval $ac_try) 2>&5 16453 ac_status=$? 16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16455 (exit $ac_status); }; } && 16456 { ac_try='test -s conftest$ac_exeext' 16457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16458 (eval $ac_try) 2>&5 16459 ac_status=$? 16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16461 (exit $ac_status); }; }; then 16462 16463aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16464}'` 16465# Check for a 64-bit object if we didn't find anything. 16466if 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; } 16467}'`; fi 16468else 16469 echo "$as_me: failed program was:" >&5 16470sed 's/^/| /' conftest.$ac_ext >&5 16471 16472fi 16473rm -f conftest.err conftest.$ac_objext \ 16474 conftest$ac_exeext conftest.$ac_ext 16475if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16476 16477 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16478 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" 16479 else 16480 if test "$host_cpu" = ia64; then 16481 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16482 allow_undefined_flag_GCJ="-z nodefs" 16483 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" 16484 else 16485 # Determine the default libpath from the value encoded in an empty executable. 16486 cat >conftest.$ac_ext <<_ACEOF 16487/* confdefs.h. */ 16488_ACEOF 16489cat confdefs.h >>conftest.$ac_ext 16490cat >>conftest.$ac_ext <<_ACEOF 16491/* end confdefs.h. */ 16492 16493int 16494main () 16495{ 16496 16497 ; 16498 return 0; 16499} 16500_ACEOF 16501rm -f conftest.$ac_objext conftest$ac_exeext 16502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16503 (eval $ac_link) 2>conftest.er1 16504 ac_status=$? 16505 grep -v '^ *+' conftest.er1 >conftest.err 16506 rm -f conftest.er1 16507 cat conftest.err >&5 16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16509 (exit $ac_status); } && 16510 { ac_try='test -z "$ac_c_werror_flag" 16511 || test ! -s conftest.err' 16512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16513 (eval $ac_try) 2>&5 16514 ac_status=$? 16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16516 (exit $ac_status); }; } && 16517 { ac_try='test -s conftest$ac_exeext' 16518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16519 (eval $ac_try) 2>&5 16520 ac_status=$? 16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16522 (exit $ac_status); }; }; then 16523 16524aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16525}'` 16526# Check for a 64-bit object if we didn't find anything. 16527if 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; } 16528}'`; fi 16529else 16530 echo "$as_me: failed program was:" >&5 16531sed 's/^/| /' conftest.$ac_ext >&5 16532 16533fi 16534rm -f conftest.err conftest.$ac_objext \ 16535 conftest$ac_exeext conftest.$ac_ext 16536if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16537 16538 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16539 # Warning - without using the other run time loading flags, 16540 # -berok will link without error, but may produce a broken library. 16541 no_undefined_flag_GCJ=' ${wl}-bernotok' 16542 allow_undefined_flag_GCJ=' ${wl}-berok' 16543 # Exported symbols can be pulled into shared objects from archives 16544 whole_archive_flag_spec_GCJ='$convenience' 16545 archive_cmds_need_lc_GCJ=yes 16546 # This is similar to how AIX traditionally builds its shared libraries. 16547 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' 16548 fi 16549 fi 16550 ;; 16551 16552 amigaos*) 16553 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)' 16554 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16555 hardcode_minus_L_GCJ=yes 16556 # see comment about different semantics on the GNU ld section 16557 ld_shlibs_GCJ=no 16558 ;; 16559 16560 bsdi[45]*) 16561 export_dynamic_flag_spec_GCJ=-rdynamic 16562 ;; 16563 16564 cygwin* | mingw* | pw32*) 16565 # When not using gcc, we currently assume that we are using 16566 # Microsoft Visual C++. 16567 # hardcode_libdir_flag_spec is actually meaningless, as there is 16568 # no search path for DLLs. 16569 hardcode_libdir_flag_spec_GCJ=' ' 16570 allow_undefined_flag_GCJ=unsupported 16571 # Tell ltmain to make .lib files, not .a files. 16572 libext=lib 16573 # Tell ltmain to make .dll files, not .so files. 16574 shrext_cmds=".dll" 16575 # FIXME: Setting linknames here is a bad hack. 16576 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16577 # The linker will automatically build a .lib file if we build a DLL. 16578 old_archive_From_new_cmds_GCJ='true' 16579 # FIXME: Should let the user specify the lib program. 16580 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16581 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 16582 enable_shared_with_static_runtimes_GCJ=yes 16583 ;; 16584 16585 darwin* | rhapsody*) 16586 case $host_os in 16587 rhapsody* | darwin1.[012]) 16588 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 16589 ;; 16590 *) # Darwin 1.3 on 16591 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16592 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16593 else 16594 case ${MACOSX_DEPLOYMENT_TARGET} in 16595 10.[012]) 16596 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16597 ;; 16598 10.*) 16599 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 16600 ;; 16601 esac 16602 fi 16603 ;; 16604 esac 16605 archive_cmds_need_lc_GCJ=no 16606 hardcode_direct_GCJ=no 16607 hardcode_automatic_GCJ=yes 16608 hardcode_shlibpath_var_GCJ=unsupported 16609 whole_archive_flag_spec_GCJ='' 16610 link_all_deplibs_GCJ=yes 16611 if test "$GCC" = yes ; then 16612 output_verbose_link_cmd='echo' 16613 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16614 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16615 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16616 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}' 16617 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}' 16618 else 16619 case $cc_basename in 16620 xlc*) 16621 output_verbose_link_cmd='echo' 16622 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16623 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16624 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16625 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}' 16626 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}' 16627 ;; 16628 *) 16629 ld_shlibs_GCJ=no 16630 ;; 16631 esac 16632 fi 16633 ;; 16634 16635 dgux*) 16636 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16637 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16638 hardcode_shlibpath_var_GCJ=no 16639 ;; 16640 16641 freebsd1*) 16642 ld_shlibs_GCJ=no 16643 ;; 16644 16645 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16646 # support. Future versions do this automatically, but an explicit c++rt0.o 16647 # does not break anything, and helps significantly (at the cost of a little 16648 # extra space). 16649 freebsd2.2*) 16650 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16651 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16652 hardcode_direct_GCJ=yes 16653 hardcode_shlibpath_var_GCJ=no 16654 ;; 16655 16656 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16657 freebsd2*) 16658 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16659 hardcode_direct_GCJ=yes 16660 hardcode_minus_L_GCJ=yes 16661 hardcode_shlibpath_var_GCJ=no 16662 ;; 16663 16664 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16665 freebsd* | kfreebsd*-gnu | dragonfly*) 16666 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16667 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16668 hardcode_direct_GCJ=yes 16669 hardcode_shlibpath_var_GCJ=no 16670 ;; 16671 16672 hpux9*) 16673 if test "$GCC" = yes; then 16674 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' 16675 else 16676 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' 16677 fi 16678 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16679 hardcode_libdir_separator_GCJ=: 16680 hardcode_direct_GCJ=yes 16681 16682 # hardcode_minus_L: Not really in the search PATH, 16683 # but as the default location of the library. 16684 hardcode_minus_L_GCJ=yes 16685 export_dynamic_flag_spec_GCJ='${wl}-E' 16686 ;; 16687 16688 hpux10*) 16689 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16690 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16691 else 16692 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16693 fi 16694 if test "$with_gnu_ld" = no; then 16695 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16696 hardcode_libdir_separator_GCJ=: 16697 16698 hardcode_direct_GCJ=yes 16699 export_dynamic_flag_spec_GCJ='${wl}-E' 16700 16701 # hardcode_minus_L: Not really in the search PATH, 16702 # but as the default location of the library. 16703 hardcode_minus_L_GCJ=yes 16704 fi 16705 ;; 16706 16707 hpux11*) 16708 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16709 case $host_cpu in 16710 hppa*64*) 16711 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16712 ;; 16713 ia64*) 16714 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16715 ;; 16716 *) 16717 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16718 ;; 16719 esac 16720 else 16721 case $host_cpu in 16722 hppa*64*) 16723 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16724 ;; 16725 ia64*) 16726 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16727 ;; 16728 *) 16729 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16730 ;; 16731 esac 16732 fi 16733 if test "$with_gnu_ld" = no; then 16734 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16735 hardcode_libdir_separator_GCJ=: 16736 16737 case $host_cpu in 16738 hppa*64*|ia64*) 16739 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16740 hardcode_direct_GCJ=no 16741 hardcode_shlibpath_var_GCJ=no 16742 ;; 16743 *) 16744 hardcode_direct_GCJ=yes 16745 export_dynamic_flag_spec_GCJ='${wl}-E' 16746 16747 # hardcode_minus_L: Not really in the search PATH, 16748 # but as the default location of the library. 16749 hardcode_minus_L_GCJ=yes 16750 ;; 16751 esac 16752 fi 16753 ;; 16754 16755 irix5* | irix6* | nonstopux*) 16756 if test "$GCC" = yes; then 16757 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' 16758 else 16759 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' 16760 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16761 fi 16762 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16763 hardcode_libdir_separator_GCJ=: 16764 link_all_deplibs_GCJ=yes 16765 ;; 16766 16767 netbsd*) 16768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16769 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16770 else 16771 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16772 fi 16773 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16774 hardcode_direct_GCJ=yes 16775 hardcode_shlibpath_var_GCJ=no 16776 ;; 16777 16778 newsos6) 16779 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16780 hardcode_direct_GCJ=yes 16781 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16782 hardcode_libdir_separator_GCJ=: 16783 hardcode_shlibpath_var_GCJ=no 16784 ;; 16785 16786 openbsd*) 16787 hardcode_direct_GCJ=yes 16788 hardcode_shlibpath_var_GCJ=no 16789 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16790 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16791 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16792 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16793 export_dynamic_flag_spec_GCJ='${wl}-E' 16794 else 16795 case $host_os in 16796 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16797 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16798 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16799 ;; 16800 *) 16801 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16802 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16803 ;; 16804 esac 16805 fi 16806 ;; 16807 16808 os2*) 16809 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16810 hardcode_minus_L_GCJ=yes 16811 allow_undefined_flag_GCJ=unsupported 16812 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' 16813 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16814 ;; 16815 16816 osf3*) 16817 if test "$GCC" = yes; then 16818 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16819 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' 16820 else 16821 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16822 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' 16823 fi 16824 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16825 hardcode_libdir_separator_GCJ=: 16826 ;; 16827 16828 osf4* | osf5*) # as osf3* with the addition of -msym flag 16829 if test "$GCC" = yes; then 16830 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16831 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' 16832 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16833 else 16834 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16835 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' 16836 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~ 16837 $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' 16838 16839 # Both c and cxx compiler support -rpath directly 16840 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16841 fi 16842 hardcode_libdir_separator_GCJ=: 16843 ;; 16844 16845 solaris*) 16846 no_undefined_flag_GCJ=' -z text' 16847 if test "$GCC" = yes; then 16848 wlarc='${wl}' 16849 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16850 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16851 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16852 else 16853 wlarc='' 16854 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16855 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16856 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16857 fi 16858 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16859 hardcode_shlibpath_var_GCJ=no 16860 case $host_os in 16861 solaris2.[0-5] | solaris2.[0-5].*) ;; 16862 *) 16863 # The compiler driver will combine linker options so we 16864 # cannot just pass the convience library names through 16865 # without $wl, iff we do not link with $LD. 16866 # Luckily, gcc supports the same syntax we need for Sun Studio. 16867 # Supported since Solaris 2.6 (maybe 2.5.1?) 16868 case $wlarc in 16869 '') 16870 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 16871 *) 16872 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' ;; 16873 esac ;; 16874 esac 16875 link_all_deplibs_GCJ=yes 16876 ;; 16877 16878 sunos4*) 16879 if test "x$host_vendor" = xsequent; then 16880 # Use $CC to link under sequent, because it throws in some extra .o 16881 # files that make .init and .fini sections work. 16882 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16883 else 16884 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16885 fi 16886 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16887 hardcode_direct_GCJ=yes 16888 hardcode_minus_L_GCJ=yes 16889 hardcode_shlibpath_var_GCJ=no 16890 ;; 16891 16892 sysv4) 16893 case $host_vendor in 16894 sni) 16895 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16896 hardcode_direct_GCJ=yes # is this really true??? 16897 ;; 16898 siemens) 16899 ## LD is ld it makes a PLAMLIB 16900 ## CC just makes a GrossModule. 16901 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16902 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16903 hardcode_direct_GCJ=no 16904 ;; 16905 motorola) 16906 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16907 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16908 ;; 16909 esac 16910 runpath_var='LD_RUN_PATH' 16911 hardcode_shlibpath_var_GCJ=no 16912 ;; 16913 16914 sysv4.3*) 16915 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16916 hardcode_shlibpath_var_GCJ=no 16917 export_dynamic_flag_spec_GCJ='-Bexport' 16918 ;; 16919 16920 sysv4*MP*) 16921 if test -d /usr/nec; then 16922 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16923 hardcode_shlibpath_var_GCJ=no 16924 runpath_var=LD_RUN_PATH 16925 hardcode_runpath_var=yes 16926 ld_shlibs_GCJ=yes 16927 fi 16928 ;; 16929 16930 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 16931 no_undefined_flag_GCJ='${wl}-z,text' 16932 archive_cmds_need_lc_GCJ=no 16933 hardcode_shlibpath_var_GCJ=no 16934 runpath_var='LD_RUN_PATH' 16935 16936 if test "$GCC" = yes; then 16937 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16938 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16939 else 16940 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16941 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16942 fi 16943 ;; 16944 16945 sysv5* | sco3.2v5* | sco5v6*) 16946 # Note: We can NOT use -z defs as we might desire, because we do not 16947 # link with -lc, and that would cause any symbols used from libc to 16948 # always be unresolved, which means just about no library would 16949 # ever link correctly. If we're not using GNU ld we use -z text 16950 # though, which does catch some bad symbols but isn't as heavy-handed 16951 # as -z defs. 16952 no_undefined_flag_GCJ='${wl}-z,text' 16953 allow_undefined_flag_GCJ='${wl}-z,nodefs' 16954 archive_cmds_need_lc_GCJ=no 16955 hardcode_shlibpath_var_GCJ=no 16956 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 16957 hardcode_libdir_separator_GCJ=':' 16958 link_all_deplibs_GCJ=yes 16959 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16960 runpath_var='LD_RUN_PATH' 16961 16962 if test "$GCC" = yes; then 16963 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16964 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16965 else 16966 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16967 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16968 fi 16969 ;; 16970 16971 uts4*) 16972 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16973 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16974 hardcode_shlibpath_var_GCJ=no 16975 ;; 16976 16977 *) 16978 ld_shlibs_GCJ=no 16979 ;; 16980 esac 16981 fi 16982 16983echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 16984echo "${ECHO_T}$ld_shlibs_GCJ" >&6 16985test "$ld_shlibs_GCJ" = no && can_build_shared=no 16986 16987# 16988# Do we need to explicitly link libc? 16989# 16990case "x$archive_cmds_need_lc_GCJ" in 16991x|xyes) 16992 # Assume -lc should be added 16993 archive_cmds_need_lc_GCJ=yes 16994 16995 if test "$enable_shared" = yes && test "$GCC" = yes; then 16996 case $archive_cmds_GCJ in 16997 *'~'*) 16998 # FIXME: we may have to deal with multi-command sequences. 16999 ;; 17000 '$CC '*) 17001 # Test whether the compiler implicitly links with -lc since on some 17002 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17003 # to ld, don't add -lc before -lgcc. 17004 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17005echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17006 $rm conftest* 17007 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17008 17009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17010 (eval $ac_compile) 2>&5 17011 ac_status=$? 17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17013 (exit $ac_status); } 2>conftest.err; then 17014 soname=conftest 17015 lib=conftest 17016 libobjs=conftest.$ac_objext 17017 deplibs= 17018 wl=$lt_prog_compiler_wl_GCJ 17019 pic_flag=$lt_prog_compiler_pic_GCJ 17020 compiler_flags=-v 17021 linker_flags=-v 17022 verstring= 17023 output_objdir=. 17024 libname=conftest 17025 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17026 allow_undefined_flag_GCJ= 17027 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17028 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17029 ac_status=$? 17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17031 (exit $ac_status); } 17032 then 17033 archive_cmds_need_lc_GCJ=no 17034 else 17035 archive_cmds_need_lc_GCJ=yes 17036 fi 17037 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17038 else 17039 cat conftest.err 1>&5 17040 fi 17041 $rm conftest* 17042 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17043echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17044 ;; 17045 esac 17046 fi 17047 ;; 17048esac 17049 17050echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17051echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17052library_names_spec= 17053libname_spec='lib$name' 17054soname_spec= 17055shrext_cmds=".so" 17056postinstall_cmds= 17057postuninstall_cmds= 17058finish_cmds= 17059finish_eval= 17060shlibpath_var= 17061shlibpath_overrides_runpath=unknown 17062version_type=none 17063dynamic_linker="$host_os ld.so" 17064sys_lib_dlsearch_path_spec="/lib /usr/lib" 17065if test "$GCC" = yes; then 17066 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17067 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17068 # if the path contains ";" then we assume it to be the separator 17069 # otherwise default to the standard path separator (i.e. ":") - it is 17070 # assumed that no part of a normal pathname contains ";" but that should 17071 # okay in the real world where ";" in dirpaths is itself problematic. 17072 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17073 else 17074 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17075 fi 17076else 17077 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17078fi 17079need_lib_prefix=unknown 17080hardcode_into_libs=no 17081 17082# when you set need_version to no, make sure it does not cause -set_version 17083# flags to be left without arguments 17084need_version=unknown 17085 17086case $host_os in 17087aix3*) 17088 version_type=linux 17089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17090 shlibpath_var=LIBPATH 17091 17092 # AIX 3 has no versioning support, so we append a major version to the name. 17093 soname_spec='${libname}${release}${shared_ext}$major' 17094 ;; 17095 17096aix4* | aix5*) 17097 version_type=linux 17098 need_lib_prefix=no 17099 need_version=no 17100 hardcode_into_libs=yes 17101 if test "$host_cpu" = ia64; then 17102 # AIX 5 supports IA64 17103 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17104 shlibpath_var=LD_LIBRARY_PATH 17105 else 17106 # With GCC up to 2.95.x, collect2 would create an import file 17107 # for dependence libraries. The import file would start with 17108 # the line `#! .'. This would cause the generated library to 17109 # depend on `.', always an invalid library. This was fixed in 17110 # development snapshots of GCC prior to 3.0. 17111 case $host_os in 17112 aix4 | aix4.[01] | aix4.[01].*) 17113 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17114 echo ' yes ' 17115 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17116 : 17117 else 17118 can_build_shared=no 17119 fi 17120 ;; 17121 esac 17122 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17123 # soname into executable. Probably we can add versioning support to 17124 # collect2, so additional links can be useful in future. 17125 if test "$aix_use_runtimelinking" = yes; then 17126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17127 # instead of lib<name>.a to let people know that these are not 17128 # typical AIX shared libraries. 17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17130 else 17131 # We preserve .a as extension for shared libraries through AIX4.2 17132 # and later when we are not doing run time linking. 17133 library_names_spec='${libname}${release}.a $libname.a' 17134 soname_spec='${libname}${release}${shared_ext}$major' 17135 fi 17136 shlibpath_var=LIBPATH 17137 fi 17138 ;; 17139 17140amigaos*) 17141 library_names_spec='$libname.ixlibrary $libname.a' 17142 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17143 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' 17144 ;; 17145 17146beos*) 17147 library_names_spec='${libname}${shared_ext}' 17148 dynamic_linker="$host_os ld.so" 17149 shlibpath_var=LIBRARY_PATH 17150 ;; 17151 17152bsdi[45]*) 17153 version_type=linux 17154 need_version=no 17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17156 soname_spec='${libname}${release}${shared_ext}$major' 17157 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17158 shlibpath_var=LD_LIBRARY_PATH 17159 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17160 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17161 # the default ld.so.conf also contains /usr/contrib/lib and 17162 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17163 # libtool to hard-code these into programs 17164 ;; 17165 17166cygwin* | mingw* | pw32*) 17167 version_type=windows 17168 shrext_cmds=".dll" 17169 need_version=no 17170 need_lib_prefix=no 17171 17172 case $GCC,$host_os in 17173 yes,cygwin* | yes,mingw* | yes,pw32*) 17174 library_names_spec='$libname.dll.a' 17175 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17176 postinstall_cmds='base_file=`basename \${file}`~ 17177 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17178 dldir=$destdir/`dirname \$dlpath`~ 17179 test -d \$dldir || mkdir -p \$dldir~ 17180 $install_prog $dir/$dlname \$dldir/$dlname~ 17181 chmod a+x \$dldir/$dlname' 17182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17183 dlpath=$dir/\$dldll~ 17184 $rm \$dlpath' 17185 shlibpath_overrides_runpath=yes 17186 17187 case $host_os in 17188 cygwin*) 17189 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17190 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17191 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17192 ;; 17193 mingw*) 17194 # MinGW DLLs use traditional 'lib' prefix 17195 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17196 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17197 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17198 # It is most probably a Windows format PATH printed by 17199 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17200 # path with ; separators, and with drive letters. We can handle the 17201 # drive letters (cygwin fileutils understands them), so leave them, 17202 # especially as we might pass files found there to a mingw objdump, 17203 # which wouldn't understand a cygwinified path. Ahh. 17204 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17205 else 17206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17207 fi 17208 ;; 17209 pw32*) 17210 # pw32 DLLs use 'pw' prefix rather than 'lib' 17211 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17212 ;; 17213 esac 17214 ;; 17215 17216 *) 17217 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17218 ;; 17219 esac 17220 dynamic_linker='Win32 ld.exe' 17221 # FIXME: first we should search . and the directory the executable is in 17222 shlibpath_var=PATH 17223 ;; 17224 17225darwin* | rhapsody*) 17226 dynamic_linker="$host_os dyld" 17227 version_type=darwin 17228 need_lib_prefix=no 17229 need_version=no 17230 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17231 soname_spec='${libname}${release}${major}$shared_ext' 17232 shlibpath_overrides_runpath=yes 17233 shlibpath_var=DYLD_LIBRARY_PATH 17234 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17235 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17236 if test "$GCC" = yes; then 17237 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"` 17238 else 17239 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17240 fi 17241 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17242 ;; 17243 17244dgux*) 17245 version_type=linux 17246 need_lib_prefix=no 17247 need_version=no 17248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17249 soname_spec='${libname}${release}${shared_ext}$major' 17250 shlibpath_var=LD_LIBRARY_PATH 17251 ;; 17252 17253freebsd1*) 17254 dynamic_linker=no 17255 ;; 17256 17257kfreebsd*-gnu) 17258 version_type=linux 17259 need_lib_prefix=no 17260 need_version=no 17261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17262 soname_spec='${libname}${release}${shared_ext}$major' 17263 shlibpath_var=LD_LIBRARY_PATH 17264 shlibpath_overrides_runpath=no 17265 hardcode_into_libs=yes 17266 dynamic_linker='GNU ld.so' 17267 ;; 17268 17269freebsd* | dragonfly*) 17270 # DragonFly does not have aout. When/if they implement a new 17271 # versioning mechanism, adjust this. 17272 if test -x /usr/bin/objformat; then 17273 objformat=`/usr/bin/objformat` 17274 else 17275 case $host_os in 17276 freebsd[123]*) objformat=aout ;; 17277 *) objformat=elf ;; 17278 esac 17279 fi 17280 version_type=freebsd-$objformat 17281 case $version_type in 17282 freebsd-elf*) 17283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17284 need_version=no 17285 need_lib_prefix=no 17286 ;; 17287 freebsd-*) 17288 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17289 need_version=yes 17290 ;; 17291 esac 17292 shlibpath_var=LD_LIBRARY_PATH 17293 case $host_os in 17294 freebsd2*) 17295 shlibpath_overrides_runpath=yes 17296 ;; 17297 freebsd3.[01]* | freebsdelf3.[01]*) 17298 shlibpath_overrides_runpath=yes 17299 hardcode_into_libs=yes 17300 ;; 17301 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17302 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17303 shlibpath_overrides_runpath=no 17304 hardcode_into_libs=yes 17305 ;; 17306 freebsd*) # from 4.6 on 17307 shlibpath_overrides_runpath=yes 17308 hardcode_into_libs=yes 17309 ;; 17310 esac 17311 ;; 17312 17313gnu*) 17314 version_type=linux 17315 need_lib_prefix=no 17316 need_version=no 17317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17318 soname_spec='${libname}${release}${shared_ext}$major' 17319 shlibpath_var=LD_LIBRARY_PATH 17320 hardcode_into_libs=yes 17321 ;; 17322 17323hpux9* | hpux10* | hpux11*) 17324 # Give a soname corresponding to the major version so that dld.sl refuses to 17325 # link against other versions. 17326 version_type=sunos 17327 need_lib_prefix=no 17328 need_version=no 17329 case $host_cpu in 17330 ia64*) 17331 shrext_cmds='.so' 17332 hardcode_into_libs=yes 17333 dynamic_linker="$host_os dld.so" 17334 shlibpath_var=LD_LIBRARY_PATH 17335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17337 soname_spec='${libname}${release}${shared_ext}$major' 17338 if test "X$HPUX_IA64_MODE" = X32; then 17339 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17340 else 17341 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17342 fi 17343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17344 ;; 17345 hppa*64*) 17346 shrext_cmds='.sl' 17347 hardcode_into_libs=yes 17348 dynamic_linker="$host_os dld.sl" 17349 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17355 ;; 17356 *) 17357 shrext_cmds='.sl' 17358 dynamic_linker="$host_os dld.sl" 17359 shlibpath_var=SHLIB_PATH 17360 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17362 soname_spec='${libname}${release}${shared_ext}$major' 17363 ;; 17364 esac 17365 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17366 postinstall_cmds='chmod 555 $lib' 17367 ;; 17368 17369interix3*) 17370 version_type=linux 17371 need_lib_prefix=no 17372 need_version=no 17373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17374 soname_spec='${libname}${release}${shared_ext}$major' 17375 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17376 shlibpath_var=LD_LIBRARY_PATH 17377 shlibpath_overrides_runpath=no 17378 hardcode_into_libs=yes 17379 ;; 17380 17381irix5* | irix6* | nonstopux*) 17382 case $host_os in 17383 nonstopux*) version_type=nonstopux ;; 17384 *) 17385 if test "$lt_cv_prog_gnu_ld" = yes; then 17386 version_type=linux 17387 else 17388 version_type=irix 17389 fi ;; 17390 esac 17391 need_lib_prefix=no 17392 need_version=no 17393 soname_spec='${libname}${release}${shared_ext}$major' 17394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17395 case $host_os in 17396 irix5* | nonstopux*) 17397 libsuff= shlibsuff= 17398 ;; 17399 *) 17400 case $LD in # libtool.m4 will add one of these switches to LD 17401 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17402 libsuff= shlibsuff= libmagic=32-bit;; 17403 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17404 libsuff=32 shlibsuff=N32 libmagic=N32;; 17405 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17406 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17407 *) libsuff= shlibsuff= libmagic=never-match;; 17408 esac 17409 ;; 17410 esac 17411 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17412 shlibpath_overrides_runpath=no 17413 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17414 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17415 hardcode_into_libs=yes 17416 ;; 17417 17418# No shared lib support for Linux oldld, aout, or coff. 17419linux*oldld* | linux*aout* | linux*coff*) 17420 dynamic_linker=no 17421 ;; 17422 17423# This must be Linux ELF. 17424linux*) 17425 version_type=linux 17426 need_lib_prefix=no 17427 need_version=no 17428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17429 soname_spec='${libname}${release}${shared_ext}$major' 17430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17431 shlibpath_var=LD_LIBRARY_PATH 17432 shlibpath_overrides_runpath=no 17433 # This implies no fast_install, which is unacceptable. 17434 # Some rework will be needed to allow for fast_install 17435 # before this can be enabled. 17436 hardcode_into_libs=yes 17437 17438 # find out which ABI we are using 17439 libsuff= 17440 case "$host_cpu" in 17441 x86_64*|s390x*|powerpc64*) 17442 echo '#line 17442 "configure"' > conftest.$ac_ext 17443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17444 (eval $ac_compile) 2>&5 17445 ac_status=$? 17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17447 (exit $ac_status); }; then 17448 case `/usr/bin/file conftest.$ac_objext` in 17449 *64-bit*) 17450 libsuff=64 17451 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 17452 ;; 17453 esac 17454 fi 17455 rm -rf conftest* 17456 ;; 17457 esac 17458 17459 # Append ld.so.conf contents to the search path 17460 if test -f /etc/ld.so.conf; then 17461 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' ' '` 17462 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 17463 fi 17464 17465 # We used to test for /lib/ld.so.1 and disable shared libraries on 17466 # powerpc, because MkLinux only supported shared libraries with the 17467 # GNU dynamic linker. Since this was broken with cross compilers, 17468 # most powerpc-linux boxes support dynamic linking these days and 17469 # people can always --disable-shared, the test was removed, and we 17470 # assume the GNU/Linux dynamic linker is in use. 17471 dynamic_linker='GNU/Linux ld.so' 17472 ;; 17473 17474knetbsd*-gnu) 17475 version_type=linux 17476 need_lib_prefix=no 17477 need_version=no 17478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17479 soname_spec='${libname}${release}${shared_ext}$major' 17480 shlibpath_var=LD_LIBRARY_PATH 17481 shlibpath_overrides_runpath=no 17482 hardcode_into_libs=yes 17483 dynamic_linker='GNU ld.so' 17484 ;; 17485 17486netbsd*) 17487 version_type=sunos 17488 need_lib_prefix=no 17489 need_version=no 17490 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17493 dynamic_linker='NetBSD (a.out) ld.so' 17494 else 17495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17496 soname_spec='${libname}${release}${shared_ext}$major' 17497 dynamic_linker='NetBSD ld.elf_so' 17498 fi 17499 shlibpath_var=LD_LIBRARY_PATH 17500 shlibpath_overrides_runpath=yes 17501 hardcode_into_libs=yes 17502 ;; 17503 17504newsos6) 17505 version_type=linux 17506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17507 shlibpath_var=LD_LIBRARY_PATH 17508 shlibpath_overrides_runpath=yes 17509 ;; 17510 17511nto-qnx*) 17512 version_type=linux 17513 need_lib_prefix=no 17514 need_version=no 17515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17516 soname_spec='${libname}${release}${shared_ext}$major' 17517 shlibpath_var=LD_LIBRARY_PATH 17518 shlibpath_overrides_runpath=yes 17519 ;; 17520 17521openbsd*) 17522 version_type=sunos 17523 sys_lib_dlsearch_path_spec="/usr/lib" 17524 need_lib_prefix=no 17525 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17526 case $host_os in 17527 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17528 *) need_version=no ;; 17529 esac 17530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17532 shlibpath_var=LD_LIBRARY_PATH 17533 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17534 case $host_os in 17535 openbsd2.[89] | openbsd2.[89].*) 17536 shlibpath_overrides_runpath=no 17537 ;; 17538 *) 17539 shlibpath_overrides_runpath=yes 17540 ;; 17541 esac 17542 else 17543 shlibpath_overrides_runpath=yes 17544 fi 17545 ;; 17546 17547os2*) 17548 libname_spec='$name' 17549 shrext_cmds=".dll" 17550 need_lib_prefix=no 17551 library_names_spec='$libname${shared_ext} $libname.a' 17552 dynamic_linker='OS/2 ld.exe' 17553 shlibpath_var=LIBPATH 17554 ;; 17555 17556osf3* | osf4* | osf5*) 17557 version_type=osf 17558 need_lib_prefix=no 17559 need_version=no 17560 soname_spec='${libname}${release}${shared_ext}$major' 17561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17562 shlibpath_var=LD_LIBRARY_PATH 17563 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17564 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17565 ;; 17566 17567solaris*) 17568 version_type=linux 17569 need_lib_prefix=no 17570 need_version=no 17571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17572 soname_spec='${libname}${release}${shared_ext}$major' 17573 shlibpath_var=LD_LIBRARY_PATH 17574 shlibpath_overrides_runpath=yes 17575 hardcode_into_libs=yes 17576 # ldd complains unless libraries are executable 17577 postinstall_cmds='chmod +x $lib' 17578 ;; 17579 17580sunos4*) 17581 version_type=sunos 17582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17583 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17584 shlibpath_var=LD_LIBRARY_PATH 17585 shlibpath_overrides_runpath=yes 17586 if test "$with_gnu_ld" = yes; then 17587 need_lib_prefix=no 17588 fi 17589 need_version=yes 17590 ;; 17591 17592sysv4 | sysv4.3*) 17593 version_type=linux 17594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17595 soname_spec='${libname}${release}${shared_ext}$major' 17596 shlibpath_var=LD_LIBRARY_PATH 17597 case $host_vendor in 17598 sni) 17599 shlibpath_overrides_runpath=no 17600 need_lib_prefix=no 17601 export_dynamic_flag_spec='${wl}-Blargedynsym' 17602 runpath_var=LD_RUN_PATH 17603 ;; 17604 siemens) 17605 need_lib_prefix=no 17606 ;; 17607 motorola) 17608 need_lib_prefix=no 17609 need_version=no 17610 shlibpath_overrides_runpath=no 17611 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17612 ;; 17613 esac 17614 ;; 17615 17616sysv4*MP*) 17617 if test -d /usr/nec ;then 17618 version_type=linux 17619 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17620 soname_spec='$libname${shared_ext}.$major' 17621 shlibpath_var=LD_LIBRARY_PATH 17622 fi 17623 ;; 17624 17625sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17626 version_type=freebsd-elf 17627 need_lib_prefix=no 17628 need_version=no 17629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17630 soname_spec='${libname}${release}${shared_ext}$major' 17631 shlibpath_var=LD_LIBRARY_PATH 17632 hardcode_into_libs=yes 17633 if test "$with_gnu_ld" = yes; then 17634 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17635 shlibpath_overrides_runpath=no 17636 else 17637 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17638 shlibpath_overrides_runpath=yes 17639 case $host_os in 17640 sco3.2v5*) 17641 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17642 ;; 17643 esac 17644 fi 17645 sys_lib_dlsearch_path_spec='/usr/lib' 17646 ;; 17647 17648uts4*) 17649 version_type=linux 17650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17651 soname_spec='${libname}${release}${shared_ext}$major' 17652 shlibpath_var=LD_LIBRARY_PATH 17653 ;; 17654 17655*) 17656 dynamic_linker=no 17657 ;; 17658esac 17659echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17660echo "${ECHO_T}$dynamic_linker" >&6 17661test "$dynamic_linker" = no && can_build_shared=no 17662 17663variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17664if test "$GCC" = yes; then 17665 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17666fi 17667 17668echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17669echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17670hardcode_action_GCJ= 17671if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17672 test -n "$runpath_var_GCJ" || \ 17673 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 17674 17675 # We can hardcode non-existant directories. 17676 if test "$hardcode_direct_GCJ" != no && 17677 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17678 # have to relink, otherwise we might link with an installed library 17679 # when we should be linking with a yet-to-be-installed one 17680 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17681 test "$hardcode_minus_L_GCJ" != no; then 17682 # Linking always hardcodes the temporary library directory. 17683 hardcode_action_GCJ=relink 17684 else 17685 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17686 hardcode_action_GCJ=immediate 17687 fi 17688else 17689 # We cannot hardcode anything, or else we can only hardcode existing 17690 # directories. 17691 hardcode_action_GCJ=unsupported 17692fi 17693echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17694echo "${ECHO_T}$hardcode_action_GCJ" >&6 17695 17696if test "$hardcode_action_GCJ" = relink; then 17697 # Fast installation is not supported 17698 enable_fast_install=no 17699elif test "$shlibpath_overrides_runpath" = yes || 17700 test "$enable_shared" = no; then 17701 # Fast installation is not necessary 17702 enable_fast_install=needless 17703fi 17704 17705 17706# The else clause should only fire when bootstrapping the 17707# libtool distribution, otherwise you forgot to ship ltmain.sh 17708# with your package, and you will get complaints that there are 17709# no rules to generate ltmain.sh. 17710if test -f "$ltmain"; then 17711 # See if we are running on zsh, and set the options which allow our commands through 17712 # without removal of \ escapes. 17713 if test -n "${ZSH_VERSION+set}" ; then 17714 setopt NO_GLOB_SUBST 17715 fi 17716 # Now quote all the things that may contain metacharacters while being 17717 # careful not to overquote the AC_SUBSTed values. We take copies of the 17718 # variables and quote the copies for generation of the libtool script. 17719 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17720 SED SHELL STRIP \ 17721 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17722 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17723 deplibs_check_method reload_flag reload_cmds need_locks \ 17724 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17725 lt_cv_sys_global_symbol_to_c_name_address \ 17726 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17727 old_postinstall_cmds old_postuninstall_cmds \ 17728 compiler_GCJ \ 17729 CC_GCJ \ 17730 LD_GCJ \ 17731 lt_prog_compiler_wl_GCJ \ 17732 lt_prog_compiler_pic_GCJ \ 17733 lt_prog_compiler_static_GCJ \ 17734 lt_prog_compiler_no_builtin_flag_GCJ \ 17735 export_dynamic_flag_spec_GCJ \ 17736 thread_safe_flag_spec_GCJ \ 17737 whole_archive_flag_spec_GCJ \ 17738 enable_shared_with_static_runtimes_GCJ \ 17739 old_archive_cmds_GCJ \ 17740 old_archive_from_new_cmds_GCJ \ 17741 predep_objects_GCJ \ 17742 postdep_objects_GCJ \ 17743 predeps_GCJ \ 17744 postdeps_GCJ \ 17745 compiler_lib_search_path_GCJ \ 17746 archive_cmds_GCJ \ 17747 archive_expsym_cmds_GCJ \ 17748 postinstall_cmds_GCJ \ 17749 postuninstall_cmds_GCJ \ 17750 old_archive_from_expsyms_cmds_GCJ \ 17751 allow_undefined_flag_GCJ \ 17752 no_undefined_flag_GCJ \ 17753 export_symbols_cmds_GCJ \ 17754 hardcode_libdir_flag_spec_GCJ \ 17755 hardcode_libdir_flag_spec_ld_GCJ \ 17756 hardcode_libdir_separator_GCJ \ 17757 hardcode_automatic_GCJ \ 17758 module_cmds_GCJ \ 17759 module_expsym_cmds_GCJ \ 17760 lt_cv_prog_compiler_c_o_GCJ \ 17761 exclude_expsyms_GCJ \ 17762 include_expsyms_GCJ; do 17763 17764 case $var in 17765 old_archive_cmds_GCJ | \ 17766 old_archive_from_new_cmds_GCJ | \ 17767 archive_cmds_GCJ | \ 17768 archive_expsym_cmds_GCJ | \ 17769 module_cmds_GCJ | \ 17770 module_expsym_cmds_GCJ | \ 17771 old_archive_from_expsyms_cmds_GCJ | \ 17772 export_symbols_cmds_GCJ | \ 17773 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17774 postinstall_cmds | postuninstall_cmds | \ 17775 old_postinstall_cmds | old_postuninstall_cmds | \ 17776 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17777 # Double-quote double-evaled strings. 17778 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17779 ;; 17780 *) 17781 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17782 ;; 17783 esac 17784 done 17785 17786 case $lt_echo in 17787 *'\$0 --fallback-echo"') 17788 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17789 ;; 17790 esac 17791 17792cfgfile="$ofile" 17793 17794 cat <<__EOF__ >> "$cfgfile" 17795# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17796 17797# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17798 17799# Shell to use when invoking shell scripts. 17800SHELL=$lt_SHELL 17801 17802# Whether or not to build shared libraries. 17803build_libtool_libs=$enable_shared 17804 17805# Whether or not to build static libraries. 17806build_old_libs=$enable_static 17807 17808# Whether or not to add -lc for building shared libraries. 17809build_libtool_need_lc=$archive_cmds_need_lc_GCJ 17810 17811# Whether or not to disallow shared libs when runtime libs are static 17812allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 17813 17814# Whether or not to optimize for fast installation. 17815fast_install=$enable_fast_install 17816 17817# The host system. 17818host_alias=$host_alias 17819host=$host 17820host_os=$host_os 17821 17822# The build system. 17823build_alias=$build_alias 17824build=$build 17825build_os=$build_os 17826 17827# An echo program that does not interpret backslashes. 17828echo=$lt_echo 17829 17830# The archiver. 17831AR=$lt_AR 17832AR_FLAGS=$lt_AR_FLAGS 17833 17834# A C compiler. 17835LTCC=$lt_LTCC 17836 17837# LTCC compiler flags. 17838LTCFLAGS=$lt_LTCFLAGS 17839 17840# A language-specific compiler. 17841CC=$lt_compiler_GCJ 17842 17843# Is the compiler the GNU C compiler? 17844with_gcc=$GCC_GCJ 17845 17846# An ERE matcher. 17847EGREP=$lt_EGREP 17848 17849# The linker used to build libraries. 17850LD=$lt_LD_GCJ 17851 17852# Whether we need hard or soft links. 17853LN_S=$lt_LN_S 17854 17855# A BSD-compatible nm program. 17856NM=$lt_NM 17857 17858# A symbol stripping program 17859STRIP=$lt_STRIP 17860 17861# Used to examine libraries when file_magic_cmd begins "file" 17862MAGIC_CMD=$MAGIC_CMD 17863 17864# Used on cygwin: DLL creation program. 17865DLLTOOL="$DLLTOOL" 17866 17867# Used on cygwin: object dumper. 17868OBJDUMP="$OBJDUMP" 17869 17870# Used on cygwin: assembler. 17871AS="$AS" 17872 17873# The name of the directory that contains temporary libtool files. 17874objdir=$objdir 17875 17876# How to create reloadable object files. 17877reload_flag=$lt_reload_flag 17878reload_cmds=$lt_reload_cmds 17879 17880# How to pass a linker flag through the compiler. 17881wl=$lt_lt_prog_compiler_wl_GCJ 17882 17883# Object file suffix (normally "o"). 17884objext="$ac_objext" 17885 17886# Old archive suffix (normally "a"). 17887libext="$libext" 17888 17889# Shared library suffix (normally ".so"). 17890shrext_cmds='$shrext_cmds' 17891 17892# Executable file suffix (normally ""). 17893exeext="$exeext" 17894 17895# Additional compiler flags for building library objects. 17896pic_flag=$lt_lt_prog_compiler_pic_GCJ 17897pic_mode=$pic_mode 17898 17899# What is the maximum length of a command? 17900max_cmd_len=$lt_cv_sys_max_cmd_len 17901 17902# Does compiler simultaneously support -c and -o options? 17903compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 17904 17905# Must we lock files when doing compilation? 17906need_locks=$lt_need_locks 17907 17908# Do we need the lib prefix for modules? 17909need_lib_prefix=$need_lib_prefix 17910 17911# Do we need a version for libraries? 17912need_version=$need_version 17913 17914# Whether dlopen is supported. 17915dlopen_support=$enable_dlopen 17916 17917# Whether dlopen of programs is supported. 17918dlopen_self=$enable_dlopen_self 17919 17920# Whether dlopen of statically linked programs is supported. 17921dlopen_self_static=$enable_dlopen_self_static 17922 17923# Compiler flag to prevent dynamic linking. 17924link_static_flag=$lt_lt_prog_compiler_static_GCJ 17925 17926# Compiler flag to turn off builtin functions. 17927no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 17928 17929# Compiler flag to allow reflexive dlopens. 17930export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 17931 17932# Compiler flag to generate shared objects directly from archives. 17933whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 17934 17935# Compiler flag to generate thread-safe objects. 17936thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 17937 17938# Library versioning type. 17939version_type=$version_type 17940 17941# Format of library name prefix. 17942libname_spec=$lt_libname_spec 17943 17944# List of archive names. First name is the real one, the rest are links. 17945# The last name is the one that the linker finds with -lNAME. 17946library_names_spec=$lt_library_names_spec 17947 17948# The coded name of the library, if different from the real name. 17949soname_spec=$lt_soname_spec 17950 17951# Commands used to build and install an old-style archive. 17952RANLIB=$lt_RANLIB 17953old_archive_cmds=$lt_old_archive_cmds_GCJ 17954old_postinstall_cmds=$lt_old_postinstall_cmds 17955old_postuninstall_cmds=$lt_old_postuninstall_cmds 17956 17957# Create an old-style archive from a shared archive. 17958old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 17959 17960# Create a temporary old-style archive to link instead of a shared archive. 17961old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 17962 17963# Commands used to build and install a shared archive. 17964archive_cmds=$lt_archive_cmds_GCJ 17965archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 17966postinstall_cmds=$lt_postinstall_cmds 17967postuninstall_cmds=$lt_postuninstall_cmds 17968 17969# Commands used to build a loadable module (assumed same as above if empty) 17970module_cmds=$lt_module_cmds_GCJ 17971module_expsym_cmds=$lt_module_expsym_cmds_GCJ 17972 17973# Commands to strip libraries. 17974old_striplib=$lt_old_striplib 17975striplib=$lt_striplib 17976 17977# Dependencies to place before the objects being linked to create a 17978# shared library. 17979predep_objects=$lt_predep_objects_GCJ 17980 17981# Dependencies to place after the objects being linked to create a 17982# shared library. 17983postdep_objects=$lt_postdep_objects_GCJ 17984 17985# Dependencies to place before the objects being linked to create a 17986# shared library. 17987predeps=$lt_predeps_GCJ 17988 17989# Dependencies to place after the objects being linked to create a 17990# shared library. 17991postdeps=$lt_postdeps_GCJ 17992 17993# The library search path used internally by the compiler when linking 17994# a shared library. 17995compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 17996 17997# Method to check whether dependent libraries are shared objects. 17998deplibs_check_method=$lt_deplibs_check_method 17999 18000# Command to use when deplibs_check_method == file_magic. 18001file_magic_cmd=$lt_file_magic_cmd 18002 18003# Flag that allows shared libraries with undefined symbols to be built. 18004allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18005 18006# Flag that forces no undefined symbols. 18007no_undefined_flag=$lt_no_undefined_flag_GCJ 18008 18009# Commands used to finish a libtool library installation in a directory. 18010finish_cmds=$lt_finish_cmds 18011 18012# Same as above, but a single script fragment to be evaled but not shown. 18013finish_eval=$lt_finish_eval 18014 18015# Take the output of nm and produce a listing of raw symbols and C names. 18016global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18017 18018# Transform the output of nm in a proper C declaration 18019global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18020 18021# Transform the output of nm in a C name address pair 18022global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18023 18024# This is the shared library runtime path variable. 18025runpath_var=$runpath_var 18026 18027# This is the shared library path variable. 18028shlibpath_var=$shlibpath_var 18029 18030# Is shlibpath searched before the hard-coded library search path? 18031shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18032 18033# How to hardcode a shared library path into an executable. 18034hardcode_action=$hardcode_action_GCJ 18035 18036# Whether we should hardcode library paths into libraries. 18037hardcode_into_libs=$hardcode_into_libs 18038 18039# Flag to hardcode \$libdir into a binary during linking. 18040# This must work even if \$libdir does not exist. 18041hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18042 18043# If ld is used when linking, flag to hardcode \$libdir into 18044# a binary during linking. This must work even if \$libdir does 18045# not exist. 18046hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18047 18048# Whether we need a single -rpath flag with a separated argument. 18049hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18050 18051# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18052# resulting binary. 18053hardcode_direct=$hardcode_direct_GCJ 18054 18055# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18056# resulting binary. 18057hardcode_minus_L=$hardcode_minus_L_GCJ 18058 18059# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18060# the resulting binary. 18061hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18062 18063# Set to yes if building a shared library automatically hardcodes DIR into the library 18064# and all subsequent libraries and executables linked against it. 18065hardcode_automatic=$hardcode_automatic_GCJ 18066 18067# Variables whose values should be saved in libtool wrapper scripts and 18068# restored at relink time. 18069variables_saved_for_relink="$variables_saved_for_relink" 18070 18071# Whether libtool must link a program against all its dependency libraries. 18072link_all_deplibs=$link_all_deplibs_GCJ 18073 18074# Compile-time system search path for libraries 18075sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18076 18077# Run-time system search path for libraries 18078sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18079 18080# Fix the shell variable \$srcfile for the compiler. 18081fix_srcfile_path="$fix_srcfile_path_GCJ" 18082 18083# Set to yes if exported symbols are required. 18084always_export_symbols=$always_export_symbols_GCJ 18085 18086# The commands to list exported symbols. 18087export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18088 18089# The commands to extract the exported symbol list from a shared archive. 18090extract_expsyms_cmds=$lt_extract_expsyms_cmds 18091 18092# Symbols that should not be listed in the preloaded symbols. 18093exclude_expsyms=$lt_exclude_expsyms_GCJ 18094 18095# Symbols that must always be exported. 18096include_expsyms=$lt_include_expsyms_GCJ 18097 18098# ### END LIBTOOL TAG CONFIG: $tagname 18099 18100__EOF__ 18101 18102 18103else 18104 # If there is no Makefile yet, we rely on a make rule to execute 18105 # `config.status --recheck' to rerun these tests and create the 18106 # libtool script then. 18107 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18108 if test -f "$ltmain_in"; then 18109 test -f Makefile && make "$ltmain" 18110 fi 18111fi 18112 18113 18114ac_ext=c 18115ac_cpp='$CPP $CPPFLAGS' 18116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18118ac_compiler_gnu=$ac_cv_c_compiler_gnu 18119 18120CC="$lt_save_CC" 18121 18122 else 18123 tagname="" 18124 fi 18125 ;; 18126 18127 RC) 18128 18129 18130 18131# Source file extension for RC test sources. 18132ac_ext=rc 18133 18134# Object file extension for compiled RC test sources. 18135objext=o 18136objext_RC=$objext 18137 18138# Code to be used in simple compile tests 18139lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18140 18141# Code to be used in simple link tests 18142lt_simple_link_test_code="$lt_simple_compile_test_code" 18143 18144# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18145 18146# If no C compiler was specified, use CC. 18147LTCC=${LTCC-"$CC"} 18148 18149# If no C compiler flags were specified, use CFLAGS. 18150LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18151 18152# Allow CC to be a program name with arguments. 18153compiler=$CC 18154 18155 18156# save warnings/boilerplate of simple test code 18157ac_outfile=conftest.$ac_objext 18158printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18159eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18160_lt_compiler_boilerplate=`cat conftest.err` 18161$rm conftest* 18162 18163ac_outfile=conftest.$ac_objext 18164printf "$lt_simple_link_test_code" >conftest.$ac_ext 18165eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18166_lt_linker_boilerplate=`cat conftest.err` 18167$rm conftest* 18168 18169 18170# Allow CC to be a program name with arguments. 18171lt_save_CC="$CC" 18172CC=${RC-"windres"} 18173compiler=$CC 18174compiler_RC=$CC 18175for cc_temp in $compiler""; do 18176 case $cc_temp in 18177 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18178 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18179 \-*) ;; 18180 *) break;; 18181 esac 18182done 18183cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18184 18185lt_cv_prog_compiler_c_o_RC=yes 18186 18187# The else clause should only fire when bootstrapping the 18188# libtool distribution, otherwise you forgot to ship ltmain.sh 18189# with your package, and you will get complaints that there are 18190# no rules to generate ltmain.sh. 18191if test -f "$ltmain"; then 18192 # See if we are running on zsh, and set the options which allow our commands through 18193 # without removal of \ escapes. 18194 if test -n "${ZSH_VERSION+set}" ; then 18195 setopt NO_GLOB_SUBST 18196 fi 18197 # Now quote all the things that may contain metacharacters while being 18198 # careful not to overquote the AC_SUBSTed values. We take copies of the 18199 # variables and quote the copies for generation of the libtool script. 18200 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18201 SED SHELL STRIP \ 18202 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18203 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18204 deplibs_check_method reload_flag reload_cmds need_locks \ 18205 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18206 lt_cv_sys_global_symbol_to_c_name_address \ 18207 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18208 old_postinstall_cmds old_postuninstall_cmds \ 18209 compiler_RC \ 18210 CC_RC \ 18211 LD_RC \ 18212 lt_prog_compiler_wl_RC \ 18213 lt_prog_compiler_pic_RC \ 18214 lt_prog_compiler_static_RC \ 18215 lt_prog_compiler_no_builtin_flag_RC \ 18216 export_dynamic_flag_spec_RC \ 18217 thread_safe_flag_spec_RC \ 18218 whole_archive_flag_spec_RC \ 18219 enable_shared_with_static_runtimes_RC \ 18220 old_archive_cmds_RC \ 18221 old_archive_from_new_cmds_RC \ 18222 predep_objects_RC \ 18223 postdep_objects_RC \ 18224 predeps_RC \ 18225 postdeps_RC \ 18226 compiler_lib_search_path_RC \ 18227 archive_cmds_RC \ 18228 archive_expsym_cmds_RC \ 18229 postinstall_cmds_RC \ 18230 postuninstall_cmds_RC \ 18231 old_archive_from_expsyms_cmds_RC \ 18232 allow_undefined_flag_RC \ 18233 no_undefined_flag_RC \ 18234 export_symbols_cmds_RC \ 18235 hardcode_libdir_flag_spec_RC \ 18236 hardcode_libdir_flag_spec_ld_RC \ 18237 hardcode_libdir_separator_RC \ 18238 hardcode_automatic_RC \ 18239 module_cmds_RC \ 18240 module_expsym_cmds_RC \ 18241 lt_cv_prog_compiler_c_o_RC \ 18242 exclude_expsyms_RC \ 18243 include_expsyms_RC; do 18244 18245 case $var in 18246 old_archive_cmds_RC | \ 18247 old_archive_from_new_cmds_RC | \ 18248 archive_cmds_RC | \ 18249 archive_expsym_cmds_RC | \ 18250 module_cmds_RC | \ 18251 module_expsym_cmds_RC | \ 18252 old_archive_from_expsyms_cmds_RC | \ 18253 export_symbols_cmds_RC | \ 18254 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18255 postinstall_cmds | postuninstall_cmds | \ 18256 old_postinstall_cmds | old_postuninstall_cmds | \ 18257 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18258 # Double-quote double-evaled strings. 18259 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18260 ;; 18261 *) 18262 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18263 ;; 18264 esac 18265 done 18266 18267 case $lt_echo in 18268 *'\$0 --fallback-echo"') 18269 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18270 ;; 18271 esac 18272 18273cfgfile="$ofile" 18274 18275 cat <<__EOF__ >> "$cfgfile" 18276# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18277 18278# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18279 18280# Shell to use when invoking shell scripts. 18281SHELL=$lt_SHELL 18282 18283# Whether or not to build shared libraries. 18284build_libtool_libs=$enable_shared 18285 18286# Whether or not to build static libraries. 18287build_old_libs=$enable_static 18288 18289# Whether or not to add -lc for building shared libraries. 18290build_libtool_need_lc=$archive_cmds_need_lc_RC 18291 18292# Whether or not to disallow shared libs when runtime libs are static 18293allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18294 18295# Whether or not to optimize for fast installation. 18296fast_install=$enable_fast_install 18297 18298# The host system. 18299host_alias=$host_alias 18300host=$host 18301host_os=$host_os 18302 18303# The build system. 18304build_alias=$build_alias 18305build=$build 18306build_os=$build_os 18307 18308# An echo program that does not interpret backslashes. 18309echo=$lt_echo 18310 18311# The archiver. 18312AR=$lt_AR 18313AR_FLAGS=$lt_AR_FLAGS 18314 18315# A C compiler. 18316LTCC=$lt_LTCC 18317 18318# LTCC compiler flags. 18319LTCFLAGS=$lt_LTCFLAGS 18320 18321# A language-specific compiler. 18322CC=$lt_compiler_RC 18323 18324# Is the compiler the GNU C compiler? 18325with_gcc=$GCC_RC 18326 18327# An ERE matcher. 18328EGREP=$lt_EGREP 18329 18330# The linker used to build libraries. 18331LD=$lt_LD_RC 18332 18333# Whether we need hard or soft links. 18334LN_S=$lt_LN_S 18335 18336# A BSD-compatible nm program. 18337NM=$lt_NM 18338 18339# A symbol stripping program 18340STRIP=$lt_STRIP 18341 18342# Used to examine libraries when file_magic_cmd begins "file" 18343MAGIC_CMD=$MAGIC_CMD 18344 18345# Used on cygwin: DLL creation program. 18346DLLTOOL="$DLLTOOL" 18347 18348# Used on cygwin: object dumper. 18349OBJDUMP="$OBJDUMP" 18350 18351# Used on cygwin: assembler. 18352AS="$AS" 18353 18354# The name of the directory that contains temporary libtool files. 18355objdir=$objdir 18356 18357# How to create reloadable object files. 18358reload_flag=$lt_reload_flag 18359reload_cmds=$lt_reload_cmds 18360 18361# How to pass a linker flag through the compiler. 18362wl=$lt_lt_prog_compiler_wl_RC 18363 18364# Object file suffix (normally "o"). 18365objext="$ac_objext" 18366 18367# Old archive suffix (normally "a"). 18368libext="$libext" 18369 18370# Shared library suffix (normally ".so"). 18371shrext_cmds='$shrext_cmds' 18372 18373# Executable file suffix (normally ""). 18374exeext="$exeext" 18375 18376# Additional compiler flags for building library objects. 18377pic_flag=$lt_lt_prog_compiler_pic_RC 18378pic_mode=$pic_mode 18379 18380# What is the maximum length of a command? 18381max_cmd_len=$lt_cv_sys_max_cmd_len 18382 18383# Does compiler simultaneously support -c and -o options? 18384compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18385 18386# Must we lock files when doing compilation? 18387need_locks=$lt_need_locks 18388 18389# Do we need the lib prefix for modules? 18390need_lib_prefix=$need_lib_prefix 18391 18392# Do we need a version for libraries? 18393need_version=$need_version 18394 18395# Whether dlopen is supported. 18396dlopen_support=$enable_dlopen 18397 18398# Whether dlopen of programs is supported. 18399dlopen_self=$enable_dlopen_self 18400 18401# Whether dlopen of statically linked programs is supported. 18402dlopen_self_static=$enable_dlopen_self_static 18403 18404# Compiler flag to prevent dynamic linking. 18405link_static_flag=$lt_lt_prog_compiler_static_RC 18406 18407# Compiler flag to turn off builtin functions. 18408no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18409 18410# Compiler flag to allow reflexive dlopens. 18411export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18412 18413# Compiler flag to generate shared objects directly from archives. 18414whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18415 18416# Compiler flag to generate thread-safe objects. 18417thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18418 18419# Library versioning type. 18420version_type=$version_type 18421 18422# Format of library name prefix. 18423libname_spec=$lt_libname_spec 18424 18425# List of archive names. First name is the real one, the rest are links. 18426# The last name is the one that the linker finds with -lNAME. 18427library_names_spec=$lt_library_names_spec 18428 18429# The coded name of the library, if different from the real name. 18430soname_spec=$lt_soname_spec 18431 18432# Commands used to build and install an old-style archive. 18433RANLIB=$lt_RANLIB 18434old_archive_cmds=$lt_old_archive_cmds_RC 18435old_postinstall_cmds=$lt_old_postinstall_cmds 18436old_postuninstall_cmds=$lt_old_postuninstall_cmds 18437 18438# Create an old-style archive from a shared archive. 18439old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18440 18441# Create a temporary old-style archive to link instead of a shared archive. 18442old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18443 18444# Commands used to build and install a shared archive. 18445archive_cmds=$lt_archive_cmds_RC 18446archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18447postinstall_cmds=$lt_postinstall_cmds 18448postuninstall_cmds=$lt_postuninstall_cmds 18449 18450# Commands used to build a loadable module (assumed same as above if empty) 18451module_cmds=$lt_module_cmds_RC 18452module_expsym_cmds=$lt_module_expsym_cmds_RC 18453 18454# Commands to strip libraries. 18455old_striplib=$lt_old_striplib 18456striplib=$lt_striplib 18457 18458# Dependencies to place before the objects being linked to create a 18459# shared library. 18460predep_objects=$lt_predep_objects_RC 18461 18462# Dependencies to place after the objects being linked to create a 18463# shared library. 18464postdep_objects=$lt_postdep_objects_RC 18465 18466# Dependencies to place before the objects being linked to create a 18467# shared library. 18468predeps=$lt_predeps_RC 18469 18470# Dependencies to place after the objects being linked to create a 18471# shared library. 18472postdeps=$lt_postdeps_RC 18473 18474# The library search path used internally by the compiler when linking 18475# a shared library. 18476compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18477 18478# Method to check whether dependent libraries are shared objects. 18479deplibs_check_method=$lt_deplibs_check_method 18480 18481# Command to use when deplibs_check_method == file_magic. 18482file_magic_cmd=$lt_file_magic_cmd 18483 18484# Flag that allows shared libraries with undefined symbols to be built. 18485allow_undefined_flag=$lt_allow_undefined_flag_RC 18486 18487# Flag that forces no undefined symbols. 18488no_undefined_flag=$lt_no_undefined_flag_RC 18489 18490# Commands used to finish a libtool library installation in a directory. 18491finish_cmds=$lt_finish_cmds 18492 18493# Same as above, but a single script fragment to be evaled but not shown. 18494finish_eval=$lt_finish_eval 18495 18496# Take the output of nm and produce a listing of raw symbols and C names. 18497global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18498 18499# Transform the output of nm in a proper C declaration 18500global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18501 18502# Transform the output of nm in a C name address pair 18503global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18504 18505# This is the shared library runtime path variable. 18506runpath_var=$runpath_var 18507 18508# This is the shared library path variable. 18509shlibpath_var=$shlibpath_var 18510 18511# Is shlibpath searched before the hard-coded library search path? 18512shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18513 18514# How to hardcode a shared library path into an executable. 18515hardcode_action=$hardcode_action_RC 18516 18517# Whether we should hardcode library paths into libraries. 18518hardcode_into_libs=$hardcode_into_libs 18519 18520# Flag to hardcode \$libdir into a binary during linking. 18521# This must work even if \$libdir does not exist. 18522hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18523 18524# If ld is used when linking, flag to hardcode \$libdir into 18525# a binary during linking. This must work even if \$libdir does 18526# not exist. 18527hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18528 18529# Whether we need a single -rpath flag with a separated argument. 18530hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18531 18532# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18533# resulting binary. 18534hardcode_direct=$hardcode_direct_RC 18535 18536# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18537# resulting binary. 18538hardcode_minus_L=$hardcode_minus_L_RC 18539 18540# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18541# the resulting binary. 18542hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 18543 18544# Set to yes if building a shared library automatically hardcodes DIR into the library 18545# and all subsequent libraries and executables linked against it. 18546hardcode_automatic=$hardcode_automatic_RC 18547 18548# Variables whose values should be saved in libtool wrapper scripts and 18549# restored at relink time. 18550variables_saved_for_relink="$variables_saved_for_relink" 18551 18552# Whether libtool must link a program against all its dependency libraries. 18553link_all_deplibs=$link_all_deplibs_RC 18554 18555# Compile-time system search path for libraries 18556sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18557 18558# Run-time system search path for libraries 18559sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18560 18561# Fix the shell variable \$srcfile for the compiler. 18562fix_srcfile_path="$fix_srcfile_path_RC" 18563 18564# Set to yes if exported symbols are required. 18565always_export_symbols=$always_export_symbols_RC 18566 18567# The commands to list exported symbols. 18568export_symbols_cmds=$lt_export_symbols_cmds_RC 18569 18570# The commands to extract the exported symbol list from a shared archive. 18571extract_expsyms_cmds=$lt_extract_expsyms_cmds 18572 18573# Symbols that should not be listed in the preloaded symbols. 18574exclude_expsyms=$lt_exclude_expsyms_RC 18575 18576# Symbols that must always be exported. 18577include_expsyms=$lt_include_expsyms_RC 18578 18579# ### END LIBTOOL TAG CONFIG: $tagname 18580 18581__EOF__ 18582 18583 18584else 18585 # If there is no Makefile yet, we rely on a make rule to execute 18586 # `config.status --recheck' to rerun these tests and create the 18587 # libtool script then. 18588 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18589 if test -f "$ltmain_in"; then 18590 test -f Makefile && make "$ltmain" 18591 fi 18592fi 18593 18594 18595ac_ext=c 18596ac_cpp='$CPP $CPPFLAGS' 18597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18599ac_compiler_gnu=$ac_cv_c_compiler_gnu 18600 18601CC="$lt_save_CC" 18602 18603 ;; 18604 18605 *) 18606 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 18607echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 18608 { (exit 1); exit 1; }; } 18609 ;; 18610 esac 18611 18612 # Append the new tag name to the list of available tags. 18613 if test -n "$tagname" ; then 18614 available_tags="$available_tags $tagname" 18615 fi 18616 fi 18617 done 18618 IFS="$lt_save_ifs" 18619 18620 # Now substitute the updated list of available tags. 18621 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 18622 mv "${ofile}T" "$ofile" 18623 chmod +x "$ofile" 18624 else 18625 rm -f "${ofile}T" 18626 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 18627echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 18628 { (exit 1); exit 1; }; } 18629 fi 18630fi 18631 18632 18633 18634# This can be used to rebuild libtool when needed 18635LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 18636 18637# Always use our own libtool. 18638LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18639 18640# Prevent multiple expansion 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661ac_ext=c 18662ac_cpp='$CPP $CPPFLAGS' 18663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18665ac_compiler_gnu=$ac_cv_c_compiler_gnu 18666if test -n "$ac_tool_prefix"; then 18667 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 18668set dummy ${ac_tool_prefix}gcc; ac_word=$2 18669echo "$as_me:$LINENO: checking for $ac_word" >&5 18670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18671if test "${ac_cv_prog_CC+set}" = set; then 18672 echo $ECHO_N "(cached) $ECHO_C" >&6 18673else 18674 if test -n "$CC"; then 18675 ac_cv_prog_CC="$CC" # Let the user override the test. 18676else 18677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18678for as_dir in $PATH 18679do 18680 IFS=$as_save_IFS 18681 test -z "$as_dir" && as_dir=. 18682 for ac_exec_ext in '' $ac_executable_extensions; do 18683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18684 ac_cv_prog_CC="${ac_tool_prefix}gcc" 18685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18686 break 2 18687 fi 18688done 18689done 18690 18691fi 18692fi 18693CC=$ac_cv_prog_CC 18694if test -n "$CC"; then 18695 echo "$as_me:$LINENO: result: $CC" >&5 18696echo "${ECHO_T}$CC" >&6 18697else 18698 echo "$as_me:$LINENO: result: no" >&5 18699echo "${ECHO_T}no" >&6 18700fi 18701 18702fi 18703if test -z "$ac_cv_prog_CC"; then 18704 ac_ct_CC=$CC 18705 # Extract the first word of "gcc", so it can be a program name with args. 18706set dummy gcc; ac_word=$2 18707echo "$as_me:$LINENO: checking for $ac_word" >&5 18708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18709if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 18710 echo $ECHO_N "(cached) $ECHO_C" >&6 18711else 18712 if test -n "$ac_ct_CC"; then 18713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18714else 18715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18716for as_dir in $PATH 18717do 18718 IFS=$as_save_IFS 18719 test -z "$as_dir" && as_dir=. 18720 for ac_exec_ext in '' $ac_executable_extensions; do 18721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18722 ac_cv_prog_ac_ct_CC="gcc" 18723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18724 break 2 18725 fi 18726done 18727done 18728 18729fi 18730fi 18731ac_ct_CC=$ac_cv_prog_ac_ct_CC 18732if test -n "$ac_ct_CC"; then 18733 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 18734echo "${ECHO_T}$ac_ct_CC" >&6 18735else 18736 echo "$as_me:$LINENO: result: no" >&5 18737echo "${ECHO_T}no" >&6 18738fi 18739 18740 CC=$ac_ct_CC 18741else 18742 CC="$ac_cv_prog_CC" 18743fi 18744 18745if test -z "$CC"; then 18746 if test -n "$ac_tool_prefix"; then 18747 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 18748set dummy ${ac_tool_prefix}cc; ac_word=$2 18749echo "$as_me:$LINENO: checking for $ac_word" >&5 18750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18751if test "${ac_cv_prog_CC+set}" = set; then 18752 echo $ECHO_N "(cached) $ECHO_C" >&6 18753else 18754 if test -n "$CC"; then 18755 ac_cv_prog_CC="$CC" # Let the user override the test. 18756else 18757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18758for as_dir in $PATH 18759do 18760 IFS=$as_save_IFS 18761 test -z "$as_dir" && as_dir=. 18762 for ac_exec_ext in '' $ac_executable_extensions; do 18763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18764 ac_cv_prog_CC="${ac_tool_prefix}cc" 18765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18766 break 2 18767 fi 18768done 18769done 18770 18771fi 18772fi 18773CC=$ac_cv_prog_CC 18774if test -n "$CC"; then 18775 echo "$as_me:$LINENO: result: $CC" >&5 18776echo "${ECHO_T}$CC" >&6 18777else 18778 echo "$as_me:$LINENO: result: no" >&5 18779echo "${ECHO_T}no" >&6 18780fi 18781 18782fi 18783if test -z "$ac_cv_prog_CC"; then 18784 ac_ct_CC=$CC 18785 # Extract the first word of "cc", so it can be a program name with args. 18786set dummy cc; ac_word=$2 18787echo "$as_me:$LINENO: checking for $ac_word" >&5 18788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18789if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 18790 echo $ECHO_N "(cached) $ECHO_C" >&6 18791else 18792 if test -n "$ac_ct_CC"; then 18793 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18794else 18795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18796for as_dir in $PATH 18797do 18798 IFS=$as_save_IFS 18799 test -z "$as_dir" && as_dir=. 18800 for ac_exec_ext in '' $ac_executable_extensions; do 18801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18802 ac_cv_prog_ac_ct_CC="cc" 18803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18804 break 2 18805 fi 18806done 18807done 18808 18809fi 18810fi 18811ac_ct_CC=$ac_cv_prog_ac_ct_CC 18812if test -n "$ac_ct_CC"; then 18813 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 18814echo "${ECHO_T}$ac_ct_CC" >&6 18815else 18816 echo "$as_me:$LINENO: result: no" >&5 18817echo "${ECHO_T}no" >&6 18818fi 18819 18820 CC=$ac_ct_CC 18821else 18822 CC="$ac_cv_prog_CC" 18823fi 18824 18825fi 18826if test -z "$CC"; then 18827 # Extract the first word of "cc", so it can be a program name with args. 18828set dummy cc; ac_word=$2 18829echo "$as_me:$LINENO: checking for $ac_word" >&5 18830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18831if test "${ac_cv_prog_CC+set}" = set; then 18832 echo $ECHO_N "(cached) $ECHO_C" >&6 18833else 18834 if test -n "$CC"; then 18835 ac_cv_prog_CC="$CC" # Let the user override the test. 18836else 18837 ac_prog_rejected=no 18838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18839for as_dir in $PATH 18840do 18841 IFS=$as_save_IFS 18842 test -z "$as_dir" && as_dir=. 18843 for ac_exec_ext in '' $ac_executable_extensions; do 18844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18845 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 18846 ac_prog_rejected=yes 18847 continue 18848 fi 18849 ac_cv_prog_CC="cc" 18850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18851 break 2 18852 fi 18853done 18854done 18855 18856if test $ac_prog_rejected = yes; then 18857 # We found a bogon in the path, so make sure we never use it. 18858 set dummy $ac_cv_prog_CC 18859 shift 18860 if test $# != 0; then 18861 # We chose a different compiler from the bogus one. 18862 # However, it has the same basename, so the bogon will be chosen 18863 # first if we set CC to just the basename; use the full file name. 18864 shift 18865 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 18866 fi 18867fi 18868fi 18869fi 18870CC=$ac_cv_prog_CC 18871if test -n "$CC"; then 18872 echo "$as_me:$LINENO: result: $CC" >&5 18873echo "${ECHO_T}$CC" >&6 18874else 18875 echo "$as_me:$LINENO: result: no" >&5 18876echo "${ECHO_T}no" >&6 18877fi 18878 18879fi 18880if test -z "$CC"; then 18881 if test -n "$ac_tool_prefix"; then 18882 for ac_prog in cl 18883 do 18884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 18885set dummy $ac_tool_prefix$ac_prog; ac_word=$2 18886echo "$as_me:$LINENO: checking for $ac_word" >&5 18887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18888if test "${ac_cv_prog_CC+set}" = set; then 18889 echo $ECHO_N "(cached) $ECHO_C" >&6 18890else 18891 if test -n "$CC"; then 18892 ac_cv_prog_CC="$CC" # Let the user override the test. 18893else 18894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18895for as_dir in $PATH 18896do 18897 IFS=$as_save_IFS 18898 test -z "$as_dir" && as_dir=. 18899 for ac_exec_ext in '' $ac_executable_extensions; do 18900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18901 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 18902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18903 break 2 18904 fi 18905done 18906done 18907 18908fi 18909fi 18910CC=$ac_cv_prog_CC 18911if test -n "$CC"; then 18912 echo "$as_me:$LINENO: result: $CC" >&5 18913echo "${ECHO_T}$CC" >&6 18914else 18915 echo "$as_me:$LINENO: result: no" >&5 18916echo "${ECHO_T}no" >&6 18917fi 18918 18919 test -n "$CC" && break 18920 done 18921fi 18922if test -z "$CC"; then 18923 ac_ct_CC=$CC 18924 for ac_prog in cl 18925do 18926 # Extract the first word of "$ac_prog", so it can be a program name with args. 18927set dummy $ac_prog; ac_word=$2 18928echo "$as_me:$LINENO: checking for $ac_word" >&5 18929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18930if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 18931 echo $ECHO_N "(cached) $ECHO_C" >&6 18932else 18933 if test -n "$ac_ct_CC"; then 18934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18935else 18936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18937for as_dir in $PATH 18938do 18939 IFS=$as_save_IFS 18940 test -z "$as_dir" && as_dir=. 18941 for ac_exec_ext in '' $ac_executable_extensions; do 18942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18943 ac_cv_prog_ac_ct_CC="$ac_prog" 18944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18945 break 2 18946 fi 18947done 18948done 18949 18950fi 18951fi 18952ac_ct_CC=$ac_cv_prog_ac_ct_CC 18953if test -n "$ac_ct_CC"; then 18954 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 18955echo "${ECHO_T}$ac_ct_CC" >&6 18956else 18957 echo "$as_me:$LINENO: result: no" >&5 18958echo "${ECHO_T}no" >&6 18959fi 18960 18961 test -n "$ac_ct_CC" && break 18962done 18963 18964 CC=$ac_ct_CC 18965fi 18966 18967fi 18968 18969 18970test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 18971See \`config.log' for more details." >&5 18972echo "$as_me: error: no acceptable C compiler found in \$PATH 18973See \`config.log' for more details." >&2;} 18974 { (exit 1); exit 1; }; } 18975 18976# Provide some information about the compiler. 18977echo "$as_me:$LINENO:" \ 18978 "checking for C compiler version" >&5 18979ac_compiler=`set X $ac_compile; echo $2` 18980{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 18981 (eval $ac_compiler --version </dev/null >&5) 2>&5 18982 ac_status=$? 18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18984 (exit $ac_status); } 18985{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 18986 (eval $ac_compiler -v </dev/null >&5) 2>&5 18987 ac_status=$? 18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18989 (exit $ac_status); } 18990{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 18991 (eval $ac_compiler -V </dev/null >&5) 2>&5 18992 ac_status=$? 18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18994 (exit $ac_status); } 18995 18996echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 18997echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 18998if test "${ac_cv_c_compiler_gnu+set}" = set; then 18999 echo $ECHO_N "(cached) $ECHO_C" >&6 19000else 19001 cat >conftest.$ac_ext <<_ACEOF 19002/* confdefs.h. */ 19003_ACEOF 19004cat confdefs.h >>conftest.$ac_ext 19005cat >>conftest.$ac_ext <<_ACEOF 19006/* end confdefs.h. */ 19007 19008int 19009main () 19010{ 19011#ifndef __GNUC__ 19012 choke me 19013#endif 19014 19015 ; 19016 return 0; 19017} 19018_ACEOF 19019rm -f conftest.$ac_objext 19020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19021 (eval $ac_compile) 2>conftest.er1 19022 ac_status=$? 19023 grep -v '^ *+' conftest.er1 >conftest.err 19024 rm -f conftest.er1 19025 cat conftest.err >&5 19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19027 (exit $ac_status); } && 19028 { ac_try='test -z "$ac_c_werror_flag" 19029 || test ! -s conftest.err' 19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19031 (eval $ac_try) 2>&5 19032 ac_status=$? 19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19034 (exit $ac_status); }; } && 19035 { ac_try='test -s conftest.$ac_objext' 19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19037 (eval $ac_try) 2>&5 19038 ac_status=$? 19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19040 (exit $ac_status); }; }; then 19041 ac_compiler_gnu=yes 19042else 19043 echo "$as_me: failed program was:" >&5 19044sed 's/^/| /' conftest.$ac_ext >&5 19045 19046ac_compiler_gnu=no 19047fi 19048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19049ac_cv_c_compiler_gnu=$ac_compiler_gnu 19050 19051fi 19052echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 19053echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 19054GCC=`test $ac_compiler_gnu = yes && echo yes` 19055ac_test_CFLAGS=${CFLAGS+set} 19056ac_save_CFLAGS=$CFLAGS 19057CFLAGS="-g" 19058echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 19059echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 19060if test "${ac_cv_prog_cc_g+set}" = set; then 19061 echo $ECHO_N "(cached) $ECHO_C" >&6 19062else 19063 cat >conftest.$ac_ext <<_ACEOF 19064/* confdefs.h. */ 19065_ACEOF 19066cat confdefs.h >>conftest.$ac_ext 19067cat >>conftest.$ac_ext <<_ACEOF 19068/* end confdefs.h. */ 19069 19070int 19071main () 19072{ 19073 19074 ; 19075 return 0; 19076} 19077_ACEOF 19078rm -f conftest.$ac_objext 19079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19080 (eval $ac_compile) 2>conftest.er1 19081 ac_status=$? 19082 grep -v '^ *+' conftest.er1 >conftest.err 19083 rm -f conftest.er1 19084 cat conftest.err >&5 19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19086 (exit $ac_status); } && 19087 { ac_try='test -z "$ac_c_werror_flag" 19088 || test ! -s conftest.err' 19089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19090 (eval $ac_try) 2>&5 19091 ac_status=$? 19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19093 (exit $ac_status); }; } && 19094 { ac_try='test -s conftest.$ac_objext' 19095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19096 (eval $ac_try) 2>&5 19097 ac_status=$? 19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19099 (exit $ac_status); }; }; then 19100 ac_cv_prog_cc_g=yes 19101else 19102 echo "$as_me: failed program was:" >&5 19103sed 's/^/| /' conftest.$ac_ext >&5 19104 19105ac_cv_prog_cc_g=no 19106fi 19107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19108fi 19109echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 19110echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 19111if test "$ac_test_CFLAGS" = set; then 19112 CFLAGS=$ac_save_CFLAGS 19113elif test $ac_cv_prog_cc_g = yes; then 19114 if test "$GCC" = yes; then 19115 CFLAGS="-g -O2" 19116 else 19117 CFLAGS="-g" 19118 fi 19119else 19120 if test "$GCC" = yes; then 19121 CFLAGS="-O2" 19122 else 19123 CFLAGS= 19124 fi 19125fi 19126echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 19127echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 19128if test "${ac_cv_prog_cc_stdc+set}" = set; then 19129 echo $ECHO_N "(cached) $ECHO_C" >&6 19130else 19131 ac_cv_prog_cc_stdc=no 19132ac_save_CC=$CC 19133cat >conftest.$ac_ext <<_ACEOF 19134/* confdefs.h. */ 19135_ACEOF 19136cat confdefs.h >>conftest.$ac_ext 19137cat >>conftest.$ac_ext <<_ACEOF 19138/* end confdefs.h. */ 19139#include <stdarg.h> 19140#include <stdio.h> 19141#include <sys/types.h> 19142#include <sys/stat.h> 19143/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 19144struct buf { int x; }; 19145FILE * (*rcsopen) (struct buf *, struct stat *, int); 19146static char *e (p, i) 19147 char **p; 19148 int i; 19149{ 19150 return p[i]; 19151} 19152static char *f (char * (*g) (char **, int), char **p, ...) 19153{ 19154 char *s; 19155 va_list v; 19156 va_start (v,p); 19157 s = g (p, va_arg (v,int)); 19158 va_end (v); 19159 return s; 19160} 19161 19162/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 19163 function prototypes and stuff, but not '\xHH' hex character constants. 19164 These don't provoke an error unfortunately, instead are silently treated 19165 as 'x'. The following induces an error, until -std1 is added to get 19166 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 19167 array size at least. It's necessary to write '\x00'==0 to get something 19168 that's true only with -std1. */ 19169int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 19170 19171int test (int i, double x); 19172struct s1 {int (*f) (int a);}; 19173struct s2 {int (*f) (double a);}; 19174int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 19175int argc; 19176char **argv; 19177int 19178main () 19179{ 19180return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 19181 ; 19182 return 0; 19183} 19184_ACEOF 19185# Don't try gcc -ansi; that turns off useful extensions and 19186# breaks some systems' header files. 19187# AIX -qlanglvl=ansi 19188# Ultrix and OSF/1 -std1 19189# HP-UX 10.20 and later -Ae 19190# HP-UX older versions -Aa -D_HPUX_SOURCE 19191# SVR4 -Xc -D__EXTENSIONS__ 19192for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 19193do 19194 CC="$ac_save_CC $ac_arg" 19195 rm -f conftest.$ac_objext 19196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19197 (eval $ac_compile) 2>conftest.er1 19198 ac_status=$? 19199 grep -v '^ *+' conftest.er1 >conftest.err 19200 rm -f conftest.er1 19201 cat conftest.err >&5 19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19203 (exit $ac_status); } && 19204 { ac_try='test -z "$ac_c_werror_flag" 19205 || test ! -s conftest.err' 19206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19207 (eval $ac_try) 2>&5 19208 ac_status=$? 19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19210 (exit $ac_status); }; } && 19211 { ac_try='test -s conftest.$ac_objext' 19212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19213 (eval $ac_try) 2>&5 19214 ac_status=$? 19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19216 (exit $ac_status); }; }; then 19217 ac_cv_prog_cc_stdc=$ac_arg 19218break 19219else 19220 echo "$as_me: failed program was:" >&5 19221sed 's/^/| /' conftest.$ac_ext >&5 19222 19223fi 19224rm -f conftest.err conftest.$ac_objext 19225done 19226rm -f conftest.$ac_ext conftest.$ac_objext 19227CC=$ac_save_CC 19228 19229fi 19230 19231case "x$ac_cv_prog_cc_stdc" in 19232 x|xno) 19233 echo "$as_me:$LINENO: result: none needed" >&5 19234echo "${ECHO_T}none needed" >&6 ;; 19235 *) 19236 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 19237echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 19238 CC="$CC $ac_cv_prog_cc_stdc" ;; 19239esac 19240 19241# Some people use a C++ compiler to compile C. Since we use `exit', 19242# in C++ we need to declare it. In case someone uses the same compiler 19243# for both compiling C and C++ we need to have the C++ compiler decide 19244# the declaration of exit, since it's the most demanding environment. 19245cat >conftest.$ac_ext <<_ACEOF 19246#ifndef __cplusplus 19247 choke me 19248#endif 19249_ACEOF 19250rm -f conftest.$ac_objext 19251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19252 (eval $ac_compile) 2>conftest.er1 19253 ac_status=$? 19254 grep -v '^ *+' conftest.er1 >conftest.err 19255 rm -f conftest.er1 19256 cat conftest.err >&5 19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19258 (exit $ac_status); } && 19259 { ac_try='test -z "$ac_c_werror_flag" 19260 || test ! -s conftest.err' 19261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19262 (eval $ac_try) 2>&5 19263 ac_status=$? 19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19265 (exit $ac_status); }; } && 19266 { ac_try='test -s conftest.$ac_objext' 19267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19268 (eval $ac_try) 2>&5 19269 ac_status=$? 19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19271 (exit $ac_status); }; }; then 19272 for ac_declaration in \ 19273 '' \ 19274 'extern "C" void std::exit (int) throw (); using std::exit;' \ 19275 'extern "C" void std::exit (int); using std::exit;' \ 19276 'extern "C" void exit (int) throw ();' \ 19277 'extern "C" void exit (int);' \ 19278 'void exit (int);' 19279do 19280 cat >conftest.$ac_ext <<_ACEOF 19281/* confdefs.h. */ 19282_ACEOF 19283cat confdefs.h >>conftest.$ac_ext 19284cat >>conftest.$ac_ext <<_ACEOF 19285/* end confdefs.h. */ 19286$ac_declaration 19287#include <stdlib.h> 19288int 19289main () 19290{ 19291exit (42); 19292 ; 19293 return 0; 19294} 19295_ACEOF 19296rm -f conftest.$ac_objext 19297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19298 (eval $ac_compile) 2>conftest.er1 19299 ac_status=$? 19300 grep -v '^ *+' conftest.er1 >conftest.err 19301 rm -f conftest.er1 19302 cat conftest.err >&5 19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19304 (exit $ac_status); } && 19305 { ac_try='test -z "$ac_c_werror_flag" 19306 || test ! -s conftest.err' 19307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19308 (eval $ac_try) 2>&5 19309 ac_status=$? 19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19311 (exit $ac_status); }; } && 19312 { ac_try='test -s conftest.$ac_objext' 19313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19314 (eval $ac_try) 2>&5 19315 ac_status=$? 19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19317 (exit $ac_status); }; }; then 19318 : 19319else 19320 echo "$as_me: failed program was:" >&5 19321sed 's/^/| /' conftest.$ac_ext >&5 19322 19323continue 19324fi 19325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19326 cat >conftest.$ac_ext <<_ACEOF 19327/* confdefs.h. */ 19328_ACEOF 19329cat confdefs.h >>conftest.$ac_ext 19330cat >>conftest.$ac_ext <<_ACEOF 19331/* end confdefs.h. */ 19332$ac_declaration 19333int 19334main () 19335{ 19336exit (42); 19337 ; 19338 return 0; 19339} 19340_ACEOF 19341rm -f conftest.$ac_objext 19342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19343 (eval $ac_compile) 2>conftest.er1 19344 ac_status=$? 19345 grep -v '^ *+' conftest.er1 >conftest.err 19346 rm -f conftest.er1 19347 cat conftest.err >&5 19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19349 (exit $ac_status); } && 19350 { ac_try='test -z "$ac_c_werror_flag" 19351 || test ! -s conftest.err' 19352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19353 (eval $ac_try) 2>&5 19354 ac_status=$? 19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19356 (exit $ac_status); }; } && 19357 { ac_try='test -s conftest.$ac_objext' 19358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19359 (eval $ac_try) 2>&5 19360 ac_status=$? 19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19362 (exit $ac_status); }; }; then 19363 break 19364else 19365 echo "$as_me: failed program was:" >&5 19366sed 's/^/| /' conftest.$ac_ext >&5 19367 19368fi 19369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19370done 19371rm -f conftest* 19372if test -n "$ac_declaration"; then 19373 echo '#ifdef __cplusplus' >>confdefs.h 19374 echo $ac_declaration >>confdefs.h 19375 echo '#endif' >>confdefs.h 19376fi 19377 19378else 19379 echo "$as_me: failed program was:" >&5 19380sed 's/^/| /' conftest.$ac_ext >&5 19381 19382fi 19383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19384ac_ext=c 19385ac_cpp='$CPP $CPPFLAGS' 19386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19388ac_compiler_gnu=$ac_cv_c_compiler_gnu 19389 19390depcc="$CC" am_compiler_list= 19391 19392echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 19393echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 19394if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 19395 echo $ECHO_N "(cached) $ECHO_C" >&6 19396else 19397 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 19398 # We make a subdir and do the tests there. Otherwise we can end up 19399 # making bogus files that we don't know about and never remove. For 19400 # instance it was reported that on HP-UX the gcc test will end up 19401 # making a dummy file named `D' -- because `-MD' means `put the output 19402 # in D'. 19403 mkdir conftest.dir 19404 # Copy depcomp to subdir because otherwise we won't find it if we're 19405 # using a relative directory. 19406 cp "$am_depcomp" conftest.dir 19407 cd conftest.dir 19408 # We will build objects and dependencies in a subdirectory because 19409 # it helps to detect inapplicable dependency modes. For instance 19410 # both Tru64's cc and ICC support -MD to output dependencies as a 19411 # side effect of compilation, but ICC will put the dependencies in 19412 # the current directory while Tru64 will put them in the object 19413 # directory. 19414 mkdir sub 19415 19416 am_cv_CC_dependencies_compiler_type=none 19417 if test "$am_compiler_list" = ""; then 19418 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 19419 fi 19420 for depmode in $am_compiler_list; do 19421 # Setup a source with many dependencies, because some compilers 19422 # like to wrap large dependency lists on column 80 (with \), and 19423 # we should not choose a depcomp mode which is confused by this. 19424 # 19425 # We need to recreate these files for each test, as the compiler may 19426 # overwrite some of them when testing with obscure command lines. 19427 # This happens at least with the AIX C compiler. 19428 : > sub/conftest.c 19429 for i in 1 2 3 4 5 6; do 19430 echo '#include "conftst'$i'.h"' >> sub/conftest.c 19431 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 19432 # Solaris 8's {/usr,}/bin/sh. 19433 touch sub/conftst$i.h 19434 done 19435 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 19436 19437 case $depmode in 19438 nosideeffect) 19439 # after this tag, mechanisms are not by side-effect, so they'll 19440 # only be used when explicitly requested 19441 if test "x$enable_dependency_tracking" = xyes; then 19442 continue 19443 else 19444 break 19445 fi 19446 ;; 19447 none) break ;; 19448 esac 19449 # We check with `-c' and `-o' for the sake of the "dashmstdout" 19450 # mode. It turns out that the SunPro C++ compiler does not properly 19451 # handle `-M -o', and we need to detect this. 19452 if depmode=$depmode \ 19453 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 19454 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 19455 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 19456 >/dev/null 2>conftest.err && 19457 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 19458 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 19459 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 19460 # icc doesn't choke on unknown options, it will just issue warnings 19461 # or remarks (even with -Werror). So we grep stderr for any message 19462 # that says an option was ignored or not supported. 19463 # When given -MP, icc 7.0 and 7.1 complain thusly: 19464 # icc: Command line warning: ignoring option '-M'; no argument required 19465 # The diagnosis changed in icc 8.0: 19466 # icc: Command line remark: option '-MP' not supported 19467 if (grep 'ignoring option' conftest.err || 19468 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 19469 am_cv_CC_dependencies_compiler_type=$depmode 19470 break 19471 fi 19472 fi 19473 done 19474 19475 cd .. 19476 rm -rf conftest.dir 19477else 19478 am_cv_CC_dependencies_compiler_type=none 19479fi 19480 19481fi 19482echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 19483echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 19484CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 19485 19486 19487 19488if 19489 test "x$enable_dependency_tracking" != xno \ 19490 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 19491 am__fastdepCC_TRUE= 19492 am__fastdepCC_FALSE='#' 19493else 19494 am__fastdepCC_TRUE='#' 19495 am__fastdepCC_FALSE= 19496fi 19497 19498 19499 19500 19501 19502 19503 19504# Check whether --with-xorg-module-dir or --without-xorg-module-dir was given. 19505if test "${with_xorg_module_dir+set}" = set; then 19506 withval="$with_xorg_module_dir" 19507 moduledir="$withval" 19508else 19509 moduledir="$libdir/xorg/modules" 19510fi; 19511 19512 19513 19514# Checks for extensions 19515 19516 SAVE_CFLAGS="$CFLAGS" 19517 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 19518 cat >conftest.$ac_ext <<_ACEOF 19519/* confdefs.h. */ 19520_ACEOF 19521cat confdefs.h >>conftest.$ac_ext 19522cat >>conftest.$ac_ext <<_ACEOF 19523/* end confdefs.h. */ 19524 19525#include "xorg-server.h" 19526#if !defined RANDR 19527#error RANDR not defined 19528#endif 19529 19530int 19531main () 19532{ 19533 19534 ; 19535 return 0; 19536} 19537_ACEOF 19538rm -f conftest.$ac_objext 19539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19540 (eval $ac_compile) 2>conftest.er1 19541 ac_status=$? 19542 grep -v '^ *+' conftest.er1 >conftest.err 19543 rm -f conftest.er1 19544 cat conftest.err >&5 19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19546 (exit $ac_status); } && 19547 { ac_try='test -z "$ac_c_werror_flag" 19548 || test ! -s conftest.err' 19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19550 (eval $ac_try) 2>&5 19551 ac_status=$? 19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19553 (exit $ac_status); }; } && 19554 { ac_try='test -s conftest.$ac_objext' 19555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19556 (eval $ac_try) 2>&5 19557 ac_status=$? 19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19559 (exit $ac_status); }; }; then 19560 _EXT_CHECK=yes 19561else 19562 echo "$as_me: failed program was:" >&5 19563sed 's/^/| /' conftest.$ac_ext >&5 19564 19565_EXT_CHECK=no 19566fi 19567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19568 CFLAGS="$SAVE_CFLAGS" 19569 echo "$as_me:$LINENO: checking if RANDR is defined" >&5 19570echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6 19571 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 19572echo "${ECHO_T}$_EXT_CHECK" >&6 19573 if test "$_EXT_CHECK" != no; then 19574 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19575 fi 19576 19577 19578 SAVE_CFLAGS="$CFLAGS" 19579 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 19580 cat >conftest.$ac_ext <<_ACEOF 19581/* confdefs.h. */ 19582_ACEOF 19583cat confdefs.h >>conftest.$ac_ext 19584cat >>conftest.$ac_ext <<_ACEOF 19585/* end confdefs.h. */ 19586 19587#include "xorg-server.h" 19588#if !defined RENDER 19589#error RENDER not defined 19590#endif 19591 19592int 19593main () 19594{ 19595 19596 ; 19597 return 0; 19598} 19599_ACEOF 19600rm -f conftest.$ac_objext 19601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19602 (eval $ac_compile) 2>conftest.er1 19603 ac_status=$? 19604 grep -v '^ *+' conftest.er1 >conftest.err 19605 rm -f conftest.er1 19606 cat conftest.err >&5 19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19608 (exit $ac_status); } && 19609 { ac_try='test -z "$ac_c_werror_flag" 19610 || test ! -s conftest.err' 19611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19612 (eval $ac_try) 2>&5 19613 ac_status=$? 19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19615 (exit $ac_status); }; } && 19616 { ac_try='test -s conftest.$ac_objext' 19617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19618 (eval $ac_try) 2>&5 19619 ac_status=$? 19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19621 (exit $ac_status); }; }; then 19622 _EXT_CHECK=yes 19623else 19624 echo "$as_me: failed program was:" >&5 19625sed 's/^/| /' conftest.$ac_ext >&5 19626 19627_EXT_CHECK=no 19628fi 19629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19630 CFLAGS="$SAVE_CFLAGS" 19631 echo "$as_me:$LINENO: checking if RENDER is defined" >&5 19632echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6 19633 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 19634echo "${ECHO_T}$_EXT_CHECK" >&6 19635 if test "$_EXT_CHECK" != no; then 19636 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19637 fi 19638 19639 19640 SAVE_CFLAGS="$CFLAGS" 19641 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 19642 cat >conftest.$ac_ext <<_ACEOF 19643/* confdefs.h. */ 19644_ACEOF 19645cat confdefs.h >>conftest.$ac_ext 19646cat >>conftest.$ac_ext <<_ACEOF 19647/* end confdefs.h. */ 19648 19649#include "xorg-server.h" 19650#if !defined XV 19651#error XV not defined 19652#endif 19653 19654int 19655main () 19656{ 19657 19658 ; 19659 return 0; 19660} 19661_ACEOF 19662rm -f conftest.$ac_objext 19663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19664 (eval $ac_compile) 2>conftest.er1 19665 ac_status=$? 19666 grep -v '^ *+' conftest.er1 >conftest.err 19667 rm -f conftest.er1 19668 cat conftest.err >&5 19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19670 (exit $ac_status); } && 19671 { ac_try='test -z "$ac_c_werror_flag" 19672 || test ! -s conftest.err' 19673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19674 (eval $ac_try) 2>&5 19675 ac_status=$? 19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19677 (exit $ac_status); }; } && 19678 { ac_try='test -s conftest.$ac_objext' 19679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19680 (eval $ac_try) 2>&5 19681 ac_status=$? 19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19683 (exit $ac_status); }; }; then 19684 _EXT_CHECK=yes 19685else 19686 echo "$as_me: failed program was:" >&5 19687sed 's/^/| /' conftest.$ac_ext >&5 19688 19689_EXT_CHECK=no 19690fi 19691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19692 CFLAGS="$SAVE_CFLAGS" 19693 echo "$as_me:$LINENO: checking if XV is defined" >&5 19694echo $ECHO_N "checking if XV is defined... $ECHO_C" >&6 19695 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 19696echo "${ECHO_T}$_EXT_CHECK" >&6 19697 if test "$_EXT_CHECK" != no; then 19698 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 19699 fi 19700 19701 19702 SAVE_CFLAGS="$CFLAGS" 19703 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 19704 cat >conftest.$ac_ext <<_ACEOF 19705/* confdefs.h. */ 19706_ACEOF 19707cat confdefs.h >>conftest.$ac_ext 19708cat >>conftest.$ac_ext <<_ACEOF 19709/* end confdefs.h. */ 19710 19711#include "xorg-server.h" 19712#if !defined DPMSExtension 19713#error DPMSExtension not defined 19714#endif 19715 19716int 19717main () 19718{ 19719 19720 ; 19721 return 0; 19722} 19723_ACEOF 19724rm -f conftest.$ac_objext 19725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19726 (eval $ac_compile) 2>conftest.er1 19727 ac_status=$? 19728 grep -v '^ *+' conftest.er1 >conftest.err 19729 rm -f conftest.er1 19730 cat conftest.err >&5 19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19732 (exit $ac_status); } && 19733 { ac_try='test -z "$ac_c_werror_flag" 19734 || test ! -s conftest.err' 19735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19736 (eval $ac_try) 2>&5 19737 ac_status=$? 19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19739 (exit $ac_status); }; } && 19740 { ac_try='test -s conftest.$ac_objext' 19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19742 (eval $ac_try) 2>&5 19743 ac_status=$? 19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19745 (exit $ac_status); }; }; then 19746 _EXT_CHECK=yes 19747else 19748 echo "$as_me: failed program was:" >&5 19749sed 's/^/| /' conftest.$ac_ext >&5 19750 19751_EXT_CHECK=no 19752fi 19753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19754 CFLAGS="$SAVE_CFLAGS" 19755 echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 19756echo $ECHO_N "checking if DPMSExtension is defined... $ECHO_C" >&6 19757 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 19758echo "${ECHO_T}$_EXT_CHECK" >&6 19759 if test "$_EXT_CHECK" != no; then 19760 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 19761 fi 19762 19763 19764# Checks for pkg-config packages 19765 19766 19767if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19768 if test -n "$ac_tool_prefix"; then 19769 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19770set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19771echo "$as_me:$LINENO: checking for $ac_word" >&5 19772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19773if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 19774 echo $ECHO_N "(cached) $ECHO_C" >&6 19775else 19776 case $PKG_CONFIG in 19777 [\\/]* | ?:[\\/]*) 19778 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19779 ;; 19780 *) 19781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19782for as_dir in $PATH 19783do 19784 IFS=$as_save_IFS 19785 test -z "$as_dir" && as_dir=. 19786 for ac_exec_ext in '' $ac_executable_extensions; do 19787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19788 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19790 break 2 19791 fi 19792done 19793done 19794 19795 ;; 19796esac 19797fi 19798PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19799 19800if test -n "$PKG_CONFIG"; then 19801 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 19802echo "${ECHO_T}$PKG_CONFIG" >&6 19803else 19804 echo "$as_me:$LINENO: result: no" >&5 19805echo "${ECHO_T}no" >&6 19806fi 19807 19808fi 19809if test -z "$ac_cv_path_PKG_CONFIG"; then 19810 ac_pt_PKG_CONFIG=$PKG_CONFIG 19811 # Extract the first word of "pkg-config", so it can be a program name with args. 19812set dummy pkg-config; ac_word=$2 19813echo "$as_me:$LINENO: checking for $ac_word" >&5 19814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19815if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 19816 echo $ECHO_N "(cached) $ECHO_C" >&6 19817else 19818 case $ac_pt_PKG_CONFIG in 19819 [\\/]* | ?:[\\/]*) 19820 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19821 ;; 19822 *) 19823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19824for as_dir in $PATH 19825do 19826 IFS=$as_save_IFS 19827 test -z "$as_dir" && as_dir=. 19828 for ac_exec_ext in '' $ac_executable_extensions; do 19829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19830 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19832 break 2 19833 fi 19834done 19835done 19836 19837 ;; 19838esac 19839fi 19840ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19841 19842if test -n "$ac_pt_PKG_CONFIG"; then 19843 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 19844echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 19845else 19846 echo "$as_me:$LINENO: result: no" >&5 19847echo "${ECHO_T}no" >&6 19848fi 19849 19850 PKG_CONFIG=$ac_pt_PKG_CONFIG 19851else 19852 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19853fi 19854 19855fi 19856if test -n "$PKG_CONFIG"; then 19857 _pkg_min_version=0.9.0 19858 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 19859echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 19860 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19861 echo "$as_me:$LINENO: result: yes" >&5 19862echo "${ECHO_T}yes" >&6 19863 else 19864 echo "$as_me:$LINENO: result: no" >&5 19865echo "${ECHO_T}no" >&6 19866 PKG_CONFIG="" 19867 fi 19868 19869fi 19870 19871pkg_failed=no 19872echo "$as_me:$LINENO: checking for XORG" >&5 19873echo $ECHO_N "checking for XORG... $ECHO_C" >&6 19874 19875if test -n "$PKG_CONFIG"; then 19876 if test -n "$XORG_CFLAGS"; then 19877 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19878 else 19879 if test -n "$PKG_CONFIG" && \ 19880 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 19881 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 19882 ac_status=$? 19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19884 (exit $ac_status); }; then 19885 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19886else 19887 pkg_failed=yes 19888fi 19889 fi 19890else 19891 pkg_failed=untried 19892fi 19893if test -n "$PKG_CONFIG"; then 19894 if test -n "$XORG_LIBS"; then 19895 pkg_cv_XORG_LIBS="$XORG_LIBS" 19896 else 19897 if test -n "$PKG_CONFIG" && \ 19898 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 19899 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 19900 ac_status=$? 19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19902 (exit $ac_status); }; then 19903 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19904else 19905 pkg_failed=yes 19906fi 19907 fi 19908else 19909 pkg_failed=untried 19910fi 19911 19912 19913 19914if test $pkg_failed = yes; then 19915 19916if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19917 _pkg_short_errors_supported=yes 19918else 19919 _pkg_short_errors_supported=no 19920fi 19921 if test $_pkg_short_errors_supported = yes; then 19922 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"` 19923 else 19924 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"` 19925 fi 19926 # Put the nasty error message in config.log where it belongs 19927 echo "$XORG_PKG_ERRORS" >&5 19928 19929 { { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 19930 19931$XORG_PKG_ERRORS 19932 19933Consider adjusting the PKG_CONFIG_PATH environment variable if you 19934installed software in a non-standard prefix. 19935 19936Alternatively, you may set the environment variables XORG_CFLAGS 19937and XORG_LIBS to avoid the need to call pkg-config. 19938See the pkg-config man page for more details. 19939" >&5 19940echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 19941 19942$XORG_PKG_ERRORS 19943 19944Consider adjusting the PKG_CONFIG_PATH environment variable if you 19945installed software in a non-standard prefix. 19946 19947Alternatively, you may set the environment variables XORG_CFLAGS 19948and XORG_LIBS to avoid the need to call pkg-config. 19949See the pkg-config man page for more details. 19950" >&2;} 19951 { (exit 1); exit 1; }; } 19952elif test $pkg_failed = untried; then 19953 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 19954is in your PATH or set the PKG_CONFIG environment variable to the full 19955path to pkg-config. 19956 19957Alternatively, you may set the environment variables XORG_CFLAGS 19958and XORG_LIBS to avoid the need to call pkg-config. 19959See the pkg-config man page for more details. 19960 19961To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 19962See \`config.log' for more details." >&5 19963echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 19964is in your PATH or set the PKG_CONFIG environment variable to the full 19965path to pkg-config. 19966 19967Alternatively, you may set the environment variables XORG_CFLAGS 19968and XORG_LIBS to avoid the need to call pkg-config. 19969See the pkg-config man page for more details. 19970 19971To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 19972See \`config.log' for more details." >&2;} 19973 { (exit 1); exit 1; }; } 19974else 19975 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19976 XORG_LIBS=$pkg_cv_XORG_LIBS 19977 echo "$as_me:$LINENO: result: yes" >&5 19978echo "${ECHO_T}yes" >&6 19979 : 19980fi 19981sdkdir=$(pkg-config --variable=sdkdir xorg-server) 19982 19983 19984pkg_failed=no 19985echo "$as_me:$LINENO: checking for XF86RUSH" >&5 19986echo $ECHO_N "checking for XF86RUSH... $ECHO_C" >&6 19987 19988if test -n "$PKG_CONFIG"; then 19989 if test -n "$XF86RUSH_CFLAGS"; then 19990 pkg_cv_XF86RUSH_CFLAGS="$XF86RUSH_CFLAGS" 19991 else 19992 if test -n "$PKG_CONFIG" && \ 19993 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xxf86rush\"") >&5 19994 ($PKG_CONFIG --exists --print-errors "xxf86rush") 2>&5 19995 ac_status=$? 19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19997 (exit $ac_status); }; then 19998 pkg_cv_XF86RUSH_CFLAGS=`$PKG_CONFIG --cflags "xxf86rush" 2>/dev/null` 19999else 20000 pkg_failed=yes 20001fi 20002 fi 20003else 20004 pkg_failed=untried 20005fi 20006if test -n "$PKG_CONFIG"; then 20007 if test -n "$XF86RUSH_LIBS"; then 20008 pkg_cv_XF86RUSH_LIBS="$XF86RUSH_LIBS" 20009 else 20010 if test -n "$PKG_CONFIG" && \ 20011 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xxf86rush\"") >&5 20012 ($PKG_CONFIG --exists --print-errors "xxf86rush") 2>&5 20013 ac_status=$? 20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20015 (exit $ac_status); }; then 20016 pkg_cv_XF86RUSH_LIBS=`$PKG_CONFIG --libs "xxf86rush" 2>/dev/null` 20017else 20018 pkg_failed=yes 20019fi 20020 fi 20021else 20022 pkg_failed=untried 20023fi 20024 20025 20026 20027if test $pkg_failed = yes; then 20028 20029if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20030 _pkg_short_errors_supported=yes 20031else 20032 _pkg_short_errors_supported=no 20033fi 20034 if test $_pkg_short_errors_supported = yes; then 20035 XF86RUSH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xxf86rush"` 20036 else 20037 XF86RUSH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xxf86rush"` 20038 fi 20039 # Put the nasty error message in config.log where it belongs 20040 echo "$XF86RUSH_PKG_ERRORS" >&5 20041 20042 have_xf86rush=no 20043elif test $pkg_failed = untried; then 20044 have_xf86rush=no 20045else 20046 XF86RUSH_CFLAGS=$pkg_cv_XF86RUSH_CFLAGS 20047 XF86RUSH_LIBS=$pkg_cv_XF86RUSH_LIBS 20048 echo "$as_me:$LINENO: result: yes" >&5 20049echo "${ECHO_T}yes" >&6 20050 have_xf86rush=yes 20051fi 20052 20053 20054if test "x$have_xf86rush" = xyes; then 20055 XF86RUSH_TRUE= 20056 XF86RUSH_FALSE='#' 20057else 20058 XF86RUSH_TRUE='#' 20059 XF86RUSH_FALSE= 20060fi 20061 20062 20063 20064 20065CFLAGS="$CFLAGS $XORG_CFLAGS $XF86RUSH_CFLAGS"' -I$(top_srcdir)/src' 20066INCLUDES="$XORG_INCS -I${sdkdir} $XF86RUSH_INCS "'-I$(top_srcdir)/src -I$(prefix)/include' 20067 20068 20069 20070# Checks for libraries. 20071 20072# Checks for header files. 20073echo "$as_me:$LINENO: checking for ANSI C header files" >&5 20074echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 20075if test "${ac_cv_header_stdc+set}" = set; then 20076 echo $ECHO_N "(cached) $ECHO_C" >&6 20077else 20078 cat >conftest.$ac_ext <<_ACEOF 20079/* confdefs.h. */ 20080_ACEOF 20081cat confdefs.h >>conftest.$ac_ext 20082cat >>conftest.$ac_ext <<_ACEOF 20083/* end confdefs.h. */ 20084#include <stdlib.h> 20085#include <stdarg.h> 20086#include <string.h> 20087#include <float.h> 20088 20089int 20090main () 20091{ 20092 20093 ; 20094 return 0; 20095} 20096_ACEOF 20097rm -f conftest.$ac_objext 20098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20099 (eval $ac_compile) 2>conftest.er1 20100 ac_status=$? 20101 grep -v '^ *+' conftest.er1 >conftest.err 20102 rm -f conftest.er1 20103 cat conftest.err >&5 20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20105 (exit $ac_status); } && 20106 { ac_try='test -z "$ac_c_werror_flag" 20107 || test ! -s conftest.err' 20108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20109 (eval $ac_try) 2>&5 20110 ac_status=$? 20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20112 (exit $ac_status); }; } && 20113 { ac_try='test -s conftest.$ac_objext' 20114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20115 (eval $ac_try) 2>&5 20116 ac_status=$? 20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20118 (exit $ac_status); }; }; then 20119 ac_cv_header_stdc=yes 20120else 20121 echo "$as_me: failed program was:" >&5 20122sed 's/^/| /' conftest.$ac_ext >&5 20123 20124ac_cv_header_stdc=no 20125fi 20126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20127 20128if test $ac_cv_header_stdc = yes; then 20129 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20130 cat >conftest.$ac_ext <<_ACEOF 20131/* confdefs.h. */ 20132_ACEOF 20133cat confdefs.h >>conftest.$ac_ext 20134cat >>conftest.$ac_ext <<_ACEOF 20135/* end confdefs.h. */ 20136#include <string.h> 20137 20138_ACEOF 20139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20140 $EGREP "memchr" >/dev/null 2>&1; then 20141 : 20142else 20143 ac_cv_header_stdc=no 20144fi 20145rm -f conftest* 20146 20147fi 20148 20149if test $ac_cv_header_stdc = yes; then 20150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20151 cat >conftest.$ac_ext <<_ACEOF 20152/* confdefs.h. */ 20153_ACEOF 20154cat confdefs.h >>conftest.$ac_ext 20155cat >>conftest.$ac_ext <<_ACEOF 20156/* end confdefs.h. */ 20157#include <stdlib.h> 20158 20159_ACEOF 20160if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20161 $EGREP "free" >/dev/null 2>&1; then 20162 : 20163else 20164 ac_cv_header_stdc=no 20165fi 20166rm -f conftest* 20167 20168fi 20169 20170if test $ac_cv_header_stdc = yes; then 20171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20172 if test "$cross_compiling" = yes; then 20173 : 20174else 20175 cat >conftest.$ac_ext <<_ACEOF 20176/* confdefs.h. */ 20177_ACEOF 20178cat confdefs.h >>conftest.$ac_ext 20179cat >>conftest.$ac_ext <<_ACEOF 20180/* end confdefs.h. */ 20181#include <ctype.h> 20182#if ((' ' & 0x0FF) == 0x020) 20183# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20184# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20185#else 20186# define ISLOWER(c) \ 20187 (('a' <= (c) && (c) <= 'i') \ 20188 || ('j' <= (c) && (c) <= 'r') \ 20189 || ('s' <= (c) && (c) <= 'z')) 20190# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20191#endif 20192 20193#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20194int 20195main () 20196{ 20197 int i; 20198 for (i = 0; i < 256; i++) 20199 if (XOR (islower (i), ISLOWER (i)) 20200 || toupper (i) != TOUPPER (i)) 20201 exit(2); 20202 exit (0); 20203} 20204_ACEOF 20205rm -f conftest$ac_exeext 20206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20207 (eval $ac_link) 2>&5 20208 ac_status=$? 20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20212 (eval $ac_try) 2>&5 20213 ac_status=$? 20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20215 (exit $ac_status); }; }; then 20216 : 20217else 20218 echo "$as_me: program exited with status $ac_status" >&5 20219echo "$as_me: failed program was:" >&5 20220sed 's/^/| /' conftest.$ac_ext >&5 20221 20222( exit $ac_status ) 20223ac_cv_header_stdc=no 20224fi 20225rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20226fi 20227fi 20228fi 20229echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20230echo "${ECHO_T}$ac_cv_header_stdc" >&6 20231if test $ac_cv_header_stdc = yes; then 20232 20233cat >>confdefs.h <<\_ACEOF 20234#define STDC_HEADERS 1 20235_ACEOF 20236 20237fi 20238 20239 20240DRIVER_NAME=apm 20241 20242 20243 20244 20245 20246if test x$APP_MAN_SUFFIX = x ; then 20247 case $host_os in 20248 linux*) APP_MAN_SUFFIX=1x ;; 20249 *) APP_MAN_SUFFIX=1 ;; 20250 esac 20251fi 20252if test x$APP_MAN_DIR = x ; then 20253 case $host_os in 20254 linux*) APP_MAN_DIR='$(mandir)/man1' ;; 20255 *) APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' ;; 20256 esac 20257fi 20258 20259if test x$LIB_MAN_SUFFIX = x ; then 20260 case $host_os in 20261 linux*) LIB_MAN_SUFFIX=3x ;; 20262 *) LIB_MAN_SUFFIX=3 ;; 20263 esac 20264fi 20265if test x$LIB_MAN_DIR = x ; then 20266 case $host_os in 20267 linux*) LIB_MAN_DIR='$(mandir)/man3' ;; 20268 *) LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' ;; 20269 esac 20270fi 20271 20272if test x$FILE_MAN_SUFFIX = x ; then 20273 case $host_os in 20274 linux*) FILE_MAN_SUFFIX=5x ;; 20275 solaris*) FILE_MAN_SUFFIX=4 ;; 20276 *) FILE_MAN_SUFFIX=5 ;; 20277 esac 20278fi 20279if test x$FILE_MAN_DIR = x ; then 20280 case $host_os in 20281 linux*) FILE_MAN_DIR='$(mandir)/man5' ;; 20282 *) FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' ;; 20283 esac 20284fi 20285 20286# In Imake's linux.cf, the misc man suffix & dir was only changed for 20287# LinuxDebian, not other Linuxes, so we leave it unchanged here 20288if test x$MISC_MAN_SUFFIX = x ; then 20289 case $host_os in 20290# linux*) MISC_MAN_SUFFIX=7x ;; 20291 solaris*) MISC_MAN_SUFFIX=5 ;; 20292 *) MISC_MAN_SUFFIX=7 ;; 20293 esac 20294fi 20295if test x$MISC_MAN_DIR = x ; then 20296 case $host_os in 20297# linux*) MISC_MAN_DIR='$(mandir)/man7' ;; 20298 *) MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' ;; 20299 esac 20300fi 20301 20302# In Imake's linux.cf, the driver man suffix & dir was only changed for 20303# LinuxDebian, not other Linuxes, so we leave it unchanged here 20304if test x$DRIVER_MAN_SUFFIX = x ; then 20305 case $host_os in 20306# linux*) DRIVER_MAN_SUFFIX=4x ;; 20307 solaris*) DRIVER_MAN_SUFFIX=7 ;; 20308 *) DRIVER_MAN_SUFFIX=4 ;; 20309 esac 20310fi 20311if test x$DRIVER_MAN_DIR = x ; then 20312 case $host_os in 20313# linux*) DRIVER_MAN_DIR='$(mandir)/man4' ;; 20314 *) DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' ;; 20315 esac 20316fi 20317 20318if test x$ADMIN_MAN_SUFFIX = x ; then 20319 case $host_os in 20320 solaris*) ADMIN_MAN_SUFFIX=1m ;; 20321 *) ADMIN_MAN_SUFFIX=8 ;; 20322 esac 20323fi 20324if test x$ADMIN_MAN_DIR = x ; then 20325 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20326fi 20327 20328 20329 20330 20331 20332 20333 20334 20335 20336 20337 20338 20339 20340 20341 20342 20343 20344# Check whether --with-release-version or --without-release-version was given. 20345if test "${with_release_version+set}" = set; then 20346 withval="$with_release_version" 20347 RELEASE_VERSION="$withval" 20348else 20349 RELEASE_VERSION="" 20350fi; 20351 if test "x$RELEASE_VERSION" != "x"; then 20352 PACKAGE="$PACKAGE-$RELEASE_VERSION" 20353 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 20354 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 20355echo "$as_me: Building with package name set to $PACKAGE" >&6;} 20356 fi 20357 20358 20359 20360as_ac_File=`echo "ac_cv_file_$prefix/share/X11/sgml/defs.ent" | $as_tr_sh` 20361echo "$as_me:$LINENO: checking for $prefix/share/X11/sgml/defs.ent" >&5 20362echo $ECHO_N "checking for $prefix/share/X11/sgml/defs.ent... $ECHO_C" >&6 20363if eval "test \"\${$as_ac_File+set}\" = set"; then 20364 echo $ECHO_N "(cached) $ECHO_C" >&6 20365else 20366 test "$cross_compiling" = yes && 20367 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 20368echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 20369 { (exit 1); exit 1; }; } 20370if test -r "$prefix/share/X11/sgml/defs.ent"; then 20371 eval "$as_ac_File=yes" 20372else 20373 eval "$as_ac_File=no" 20374fi 20375fi 20376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 20377echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 20378if test `eval echo '${'$as_ac_File'}'` = yes; then 20379 DEFS_ENT_PATH=$prefix/share/X11/sgml 20380else 20381 DEFS_ENT_PATH= 20382 20383fi 20384 20385 20386# Extract the first word of "linuxdoc", so it can be a program name with args. 20387set dummy linuxdoc; ac_word=$2 20388echo "$as_me:$LINENO: checking for $ac_word" >&5 20389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20390if test "${ac_cv_path_LINUXDOC+set}" = set; then 20391 echo $ECHO_N "(cached) $ECHO_C" >&6 20392else 20393 case $LINUXDOC in 20394 [\\/]* | ?:[\\/]*) 20395 ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path. 20396 ;; 20397 *) 20398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20399for as_dir in $PATH 20400do 20401 IFS=$as_save_IFS 20402 test -z "$as_dir" && as_dir=. 20403 for ac_exec_ext in '' $ac_executable_extensions; do 20404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20405 ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext" 20406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20407 break 2 20408 fi 20409done 20410done 20411 20412 ;; 20413esac 20414fi 20415LINUXDOC=$ac_cv_path_LINUXDOC 20416 20417if test -n "$LINUXDOC"; then 20418 echo "$as_me:$LINENO: result: $LINUXDOC" >&5 20419echo "${ECHO_T}$LINUXDOC" >&6 20420else 20421 echo "$as_me:$LINENO: result: no" >&5 20422echo "${ECHO_T}no" >&6 20423fi 20424 20425# Extract the first word of "ps2pdf", so it can be a program name with args. 20426set dummy ps2pdf; ac_word=$2 20427echo "$as_me:$LINENO: checking for $ac_word" >&5 20428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20429if test "${ac_cv_path_PS2PDF+set}" = set; then 20430 echo $ECHO_N "(cached) $ECHO_C" >&6 20431else 20432 case $PS2PDF in 20433 [\\/]* | ?:[\\/]*) 20434 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path. 20435 ;; 20436 *) 20437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20438for as_dir in $PATH 20439do 20440 IFS=$as_save_IFS 20441 test -z "$as_dir" && as_dir=. 20442 for ac_exec_ext in '' $ac_executable_extensions; do 20443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20444 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext" 20445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20446 break 2 20447 fi 20448done 20449done 20450 20451 ;; 20452esac 20453fi 20454PS2PDF=$ac_cv_path_PS2PDF 20455 20456if test -n "$PS2PDF"; then 20457 echo "$as_me:$LINENO: result: $PS2PDF" >&5 20458echo "${ECHO_T}$PS2PDF" >&6 20459else 20460 echo "$as_me:$LINENO: result: no" >&5 20461echo "${ECHO_T}no" >&6 20462fi 20463 20464 20465echo "$as_me:$LINENO: checking Whether to build documentation" >&5 20466echo $ECHO_N "checking Whether to build documentation... $ECHO_C" >&6 20467 20468if test x$DEFS_ENT_PATH != x && test x$LINUXDOC != x ; then 20469 BUILDDOC=yes 20470else 20471 BUILDDOC=no 20472fi 20473 20474 20475 20476if test x$BUILDDOC = xyes; then 20477 BUILD_LINUXDOC_TRUE= 20478 BUILD_LINUXDOC_FALSE='#' 20479else 20480 BUILD_LINUXDOC_TRUE='#' 20481 BUILD_LINUXDOC_FALSE= 20482fi 20483 20484 20485echo "$as_me:$LINENO: result: $BUILDDOC" >&5 20486echo "${ECHO_T}$BUILDDOC" >&6 20487 20488echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5 20489echo $ECHO_N "checking Whether to build pdf documentation... $ECHO_C" >&6 20490 20491if test x$PS2PDF != x ; then 20492 BUILDPDFDOC=yes 20493else 20494 BUILDPDFDOC=no 20495fi 20496 20497 20498 20499if test x$BUILDPDFDOC = xyes; then 20500 BUILD_PDFDOC_TRUE= 20501 BUILD_PDFDOC_FALSE='#' 20502else 20503 BUILD_PDFDOC_TRUE='#' 20504 BUILD_PDFDOC_FALSE= 20505fi 20506 20507 20508echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5 20509echo "${ECHO_T}$BUILDPDFDOC" >&6 20510 20511MAKE_TEXT="SGML_SEARCH_PATH=$DEFS_ENT_PATH GROFF_NO_SGR=y $LINUXDOC -B txt" 20512MAKE_PS="SGML_SEARCH_PATH=$DEFS_ENT_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 20513MAKE_PDF="$PS2PDF" 20514MAKE_HTML="SGML_SEARCH_PATH=$DEFS_ENT_PATH $LINUXDOC -B html --split=0" 20515 20516 20517 20518 20519 20520 20521 20522 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 20523cat >confcache <<\_ACEOF 20524# This file is a shell script that caches the results of configure 20525# tests run on this system so they can be shared between configure 20526# scripts and configure runs, see configure's option --config-cache. 20527# It is not useful on other systems. If it contains results you don't 20528# want to keep, you may remove or edit it. 20529# 20530# config.status only pays attention to the cache file if you give it 20531# the --recheck option to rerun configure. 20532# 20533# `ac_cv_env_foo' variables (set or unset) will be overridden when 20534# loading this file, other *unset* `ac_cv_foo' will be assigned the 20535# following values. 20536 20537_ACEOF 20538 20539# The following way of writing the cache mishandles newlines in values, 20540# but we know of no workaround that is simple, portable, and efficient. 20541# So, don't put newlines in cache variables' values. 20542# Ultrix sh set writes to stderr and can't be redirected directly, 20543# and sets the high bit in the cache file unless we assign to the vars. 20544{ 20545 (set) 2>&1 | 20546 case `(ac_space=' '; set | grep ac_space) 2>&1` in 20547 *ac_space=\ *) 20548 # `set' does not quote correctly, so add quotes (double-quote 20549 # substitution turns \\\\ into \\, and sed turns \\ into \). 20550 sed -n \ 20551 "s/'/'\\\\''/g; 20552 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20553 ;; 20554 *) 20555 # `set' quotes correctly as required by POSIX, so do not add quotes. 20556 sed -n \ 20557 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 20558 ;; 20559 esac; 20560} | 20561 sed ' 20562 t clear 20563 : clear 20564 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20565 t end 20566 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20567 : end' >>confcache 20568if diff $cache_file confcache >/dev/null 2>&1; then :; else 20569 if test -w $cache_file; then 20570 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 20571 cat confcache >$cache_file 20572 else 20573 echo "not updating unwritable cache $cache_file" 20574 fi 20575fi 20576rm -f confcache 20577 20578test "x$prefix" = xNONE && prefix=$ac_default_prefix 20579# Let make expand exec_prefix. 20580test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20581 20582# VPATH may cause trouble with some makes, so we remove $(srcdir), 20583# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20584# trailing colons and then remove the whole line if VPATH becomes empty 20585# (actually we leave an empty line to preserve line numbers). 20586if test "x$srcdir" = x.; then 20587 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20588s/:*\$(srcdir):*/:/; 20589s/:*\${srcdir}:*/:/; 20590s/:*@srcdir@:*/:/; 20591s/^\([^=]*=[ ]*\):*/\1/; 20592s/:*$//; 20593s/^[^=]*=[ ]*$//; 20594}' 20595fi 20596 20597DEFS=-DHAVE_CONFIG_H 20598 20599ac_libobjs= 20600ac_ltlibobjs= 20601for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20602 # 1. Remove the extension, and $U if already installed. 20603 ac_i=`echo "$ac_i" | 20604 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 20605 # 2. Add them. 20606 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 20607 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 20608done 20609LIBOBJS=$ac_libobjs 20610 20611LTLIBOBJS=$ac_ltlibobjs 20612 20613 20614if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20615 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 20616Usually this means the macro was only invoked conditionally." >&5 20617echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 20618Usually this means the macro was only invoked conditionally." >&2;} 20619 { (exit 1); exit 1; }; } 20620fi 20621if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20622 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20623Usually this means the macro was only invoked conditionally." >&5 20624echo "$as_me: error: conditional \"AMDEP\" was never defined. 20625Usually this means the macro was only invoked conditionally." >&2;} 20626 { (exit 1); exit 1; }; } 20627fi 20628if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20629 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20630Usually this means the macro was only invoked conditionally." >&5 20631echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20632Usually this means the macro was only invoked conditionally." >&2;} 20633 { (exit 1); exit 1; }; } 20634fi 20635if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20636 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20637Usually this means the macro was only invoked conditionally." >&5 20638echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20639Usually this means the macro was only invoked conditionally." >&2;} 20640 { (exit 1); exit 1; }; } 20641fi 20642if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20643 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20644Usually this means the macro was only invoked conditionally." >&5 20645echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20646Usually this means the macro was only invoked conditionally." >&2;} 20647 { (exit 1); exit 1; }; } 20648fi 20649if test -z "${XF86RUSH_TRUE}" && test -z "${XF86RUSH_FALSE}"; then 20650 { { echo "$as_me:$LINENO: error: conditional \"XF86RUSH\" was never defined. 20651Usually this means the macro was only invoked conditionally." >&5 20652echo "$as_me: error: conditional \"XF86RUSH\" was never defined. 20653Usually this means the macro was only invoked conditionally." >&2;} 20654 { (exit 1); exit 1; }; } 20655fi 20656if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then 20657 { { echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined. 20658Usually this means the macro was only invoked conditionally." >&5 20659echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined. 20660Usually this means the macro was only invoked conditionally." >&2;} 20661 { (exit 1); exit 1; }; } 20662fi 20663if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then 20664 { { echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined. 20665Usually this means the macro was only invoked conditionally." >&5 20666echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined. 20667Usually this means the macro was only invoked conditionally." >&2;} 20668 { (exit 1); exit 1; }; } 20669fi 20670 20671: ${CONFIG_STATUS=./config.status} 20672ac_clean_files_save=$ac_clean_files 20673ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20674{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20675echo "$as_me: creating $CONFIG_STATUS" >&6;} 20676cat >$CONFIG_STATUS <<_ACEOF 20677#! $SHELL 20678# Generated by $as_me. 20679# Run this file to recreate the current configuration. 20680# Compiler output produced by configure, useful for debugging 20681# configure, is in config.log if it exists. 20682 20683debug=false 20684ac_cs_recheck=false 20685ac_cs_silent=false 20686SHELL=\${CONFIG_SHELL-$SHELL} 20687_ACEOF 20688 20689cat >>$CONFIG_STATUS <<\_ACEOF 20690## --------------------- ## 20691## M4sh Initialization. ## 20692## --------------------- ## 20693 20694# Be Bourne compatible 20695if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20696 emulate sh 20697 NULLCMD=: 20698 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20699 # is contrary to our usage. Disable this feature. 20700 alias -g '${1+"$@"}'='"$@"' 20701elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20702 set -o posix 20703fi 20704DUALCASE=1; export DUALCASE # for MKS sh 20705 20706# Support unset when possible. 20707if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20708 as_unset=unset 20709else 20710 as_unset=false 20711fi 20712 20713 20714# Work around bugs in pre-3.0 UWIN ksh. 20715$as_unset ENV MAIL MAILPATH 20716PS1='$ ' 20717PS2='> ' 20718PS4='+ ' 20719 20720# NLS nuisances. 20721for as_var in \ 20722 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20723 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20724 LC_TELEPHONE LC_TIME 20725do 20726 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20727 eval $as_var=C; export $as_var 20728 else 20729 $as_unset $as_var 20730 fi 20731done 20732 20733# Required to use basename. 20734if expr a : '\(a\)' >/dev/null 2>&1; then 20735 as_expr=expr 20736else 20737 as_expr=false 20738fi 20739 20740if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 20741 as_basename=basename 20742else 20743 as_basename=false 20744fi 20745 20746 20747# Name of the executable. 20748as_me=`$as_basename "$0" || 20749$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20750 X"$0" : 'X\(//\)$' \| \ 20751 X"$0" : 'X\(/\)$' \| \ 20752 . : '\(.\)' 2>/dev/null || 20753echo X/"$0" | 20754 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 20755 /^X\/\(\/\/\)$/{ s//\1/; q; } 20756 /^X\/\(\/\).*/{ s//\1/; q; } 20757 s/.*/./; q'` 20758 20759 20760# PATH needs CR, and LINENO needs CR and PATH. 20761# Avoid depending upon Character Ranges. 20762as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20763as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20764as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20765as_cr_digits='0123456789' 20766as_cr_alnum=$as_cr_Letters$as_cr_digits 20767 20768# The user is always right. 20769if test "${PATH_SEPARATOR+set}" != set; then 20770 echo "#! /bin/sh" >conf$$.sh 20771 echo "exit 0" >>conf$$.sh 20772 chmod +x conf$$.sh 20773 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20774 PATH_SEPARATOR=';' 20775 else 20776 PATH_SEPARATOR=: 20777 fi 20778 rm -f conf$$.sh 20779fi 20780 20781 20782 as_lineno_1=$LINENO 20783 as_lineno_2=$LINENO 20784 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20785 test "x$as_lineno_1" != "x$as_lineno_2" && 20786 test "x$as_lineno_3" = "x$as_lineno_2" || { 20787 # Find who we are. Look in the path if we contain no path at all 20788 # relative or not. 20789 case $0 in 20790 *[\\/]* ) as_myself=$0 ;; 20791 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20792for as_dir in $PATH 20793do 20794 IFS=$as_save_IFS 20795 test -z "$as_dir" && as_dir=. 20796 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20797done 20798 20799 ;; 20800 esac 20801 # We did not find ourselves, most probably we were run as `sh COMMAND' 20802 # in which case we are not to be found in the path. 20803 if test "x$as_myself" = x; then 20804 as_myself=$0 20805 fi 20806 if test ! -f "$as_myself"; then 20807 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 20808echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 20809 { (exit 1); exit 1; }; } 20810 fi 20811 case $CONFIG_SHELL in 20812 '') 20813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20814for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 20815do 20816 IFS=$as_save_IFS 20817 test -z "$as_dir" && as_dir=. 20818 for as_base in sh bash ksh sh5; do 20819 case $as_dir in 20820 /*) 20821 if ("$as_dir/$as_base" -c ' 20822 as_lineno_1=$LINENO 20823 as_lineno_2=$LINENO 20824 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20825 test "x$as_lineno_1" != "x$as_lineno_2" && 20826 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 20827 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 20828 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 20829 CONFIG_SHELL=$as_dir/$as_base 20830 export CONFIG_SHELL 20831 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 20832 fi;; 20833 esac 20834 done 20835done 20836;; 20837 esac 20838 20839 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20840 # uniformly replaced by the line number. The first 'sed' inserts a 20841 # line-number line before each line; the second 'sed' does the real 20842 # work. The second script uses 'N' to pair each line-number line 20843 # with the numbered line, and appends trailing '-' during 20844 # substitution so that $LINENO is not a special case at line end. 20845 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20846 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 20847 sed '=' <$as_myself | 20848 sed ' 20849 N 20850 s,$,-, 20851 : loop 20852 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 20853 t loop 20854 s,-$,, 20855 s,^['$as_cr_digits']*\n,, 20856 ' >$as_me.lineno && 20857 chmod +x $as_me.lineno || 20858 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 20859echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 20860 { (exit 1); exit 1; }; } 20861 20862 # Don't try to exec as it changes $[0], causing all sort of problems 20863 # (the dirname of $[0] is not the place where we might find the 20864 # original and so on. Autoconf is especially sensible to this). 20865 . ./$as_me.lineno 20866 # Exit status is that of the last command. 20867 exit 20868} 20869 20870 20871case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 20872 *c*,-n*) ECHO_N= ECHO_C=' 20873' ECHO_T=' ' ;; 20874 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 20875 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 20876esac 20877 20878if expr a : '\(a\)' >/dev/null 2>&1; then 20879 as_expr=expr 20880else 20881 as_expr=false 20882fi 20883 20884rm -f conf$$ conf$$.exe conf$$.file 20885echo >conf$$.file 20886if ln -s conf$$.file conf$$ 2>/dev/null; then 20887 # We could just check for DJGPP; but this test a) works b) is more generic 20888 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 20889 if test -f conf$$.exe; then 20890 # Don't use ln at all; we don't have any links 20891 as_ln_s='cp -p' 20892 else 20893 as_ln_s='ln -s' 20894 fi 20895elif ln conf$$.file conf$$ 2>/dev/null; then 20896 as_ln_s=ln 20897else 20898 as_ln_s='cp -p' 20899fi 20900rm -f conf$$ conf$$.exe conf$$.file 20901 20902if mkdir -p . 2>/dev/null; then 20903 as_mkdir_p=: 20904else 20905 test -d ./-p && rmdir ./-p 20906 as_mkdir_p=false 20907fi 20908 20909as_executable_p="test -f" 20910 20911# Sed expression to map a string onto a valid CPP name. 20912as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20913 20914# Sed expression to map a string onto a valid variable name. 20915as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20916 20917 20918# IFS 20919# We need space, tab and new line, in precisely that order. 20920as_nl=' 20921' 20922IFS=" $as_nl" 20923 20924# CDPATH. 20925$as_unset CDPATH 20926 20927exec 6>&1 20928 20929# Open the log real soon, to keep \$[0] and so on meaningful, and to 20930# report actual input values of CONFIG_FILES etc. instead of their 20931# values after options handling. Logging --version etc. is OK. 20932exec 5>>config.log 20933{ 20934 echo 20935 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20936## Running $as_me. ## 20937_ASBOX 20938} >&5 20939cat >&5 <<_CSEOF 20940 20941This file was extended by xf86-video-apm $as_me 1.1.1, which was 20942generated by GNU Autoconf 2.59. Invocation command line was 20943 20944 CONFIG_FILES = $CONFIG_FILES 20945 CONFIG_HEADERS = $CONFIG_HEADERS 20946 CONFIG_LINKS = $CONFIG_LINKS 20947 CONFIG_COMMANDS = $CONFIG_COMMANDS 20948 $ $0 $@ 20949 20950_CSEOF 20951echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 20952echo >&5 20953_ACEOF 20954 20955# Files that config.status was made for. 20956if test -n "$ac_config_files"; then 20957 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 20958fi 20959 20960if test -n "$ac_config_headers"; then 20961 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 20962fi 20963 20964if test -n "$ac_config_links"; then 20965 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 20966fi 20967 20968if test -n "$ac_config_commands"; then 20969 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 20970fi 20971 20972cat >>$CONFIG_STATUS <<\_ACEOF 20973 20974ac_cs_usage="\ 20975\`$as_me' instantiates files from templates according to the 20976current configuration. 20977 20978Usage: $0 [OPTIONS] [FILE]... 20979 20980 -h, --help print this help, then exit 20981 -V, --version print version number, then exit 20982 -q, --quiet do not print progress messages 20983 -d, --debug don't remove temporary files 20984 --recheck update $as_me by reconfiguring in the same conditions 20985 --file=FILE[:TEMPLATE] 20986 instantiate the configuration file FILE 20987 --header=FILE[:TEMPLATE] 20988 instantiate the configuration header FILE 20989 20990Configuration files: 20991$config_files 20992 20993Configuration headers: 20994$config_headers 20995 20996Configuration commands: 20997$config_commands 20998 20999Report bugs to <bug-autoconf@gnu.org>." 21000_ACEOF 21001 21002cat >>$CONFIG_STATUS <<_ACEOF 21003ac_cs_version="\\ 21004xf86-video-apm config.status 1.1.1 21005configured by $0, generated by GNU Autoconf 2.59, 21006 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 21007 21008Copyright (C) 2003 Free Software Foundation, Inc. 21009This config.status script is free software; the Free Software Foundation 21010gives unlimited permission to copy, distribute and modify it." 21011srcdir=$srcdir 21012INSTALL="$INSTALL" 21013_ACEOF 21014 21015cat >>$CONFIG_STATUS <<\_ACEOF 21016# If no file are specified by the user, then we need to provide default 21017# value. By we need to know if files were specified by the user. 21018ac_need_defaults=: 21019while test $# != 0 21020do 21021 case $1 in 21022 --*=*) 21023 ac_option=`expr "x$1" : 'x\([^=]*\)='` 21024 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 21025 ac_shift=: 21026 ;; 21027 -*) 21028 ac_option=$1 21029 ac_optarg=$2 21030 ac_shift=shift 21031 ;; 21032 *) # This is not an option, so the user has probably given explicit 21033 # arguments. 21034 ac_option=$1 21035 ac_need_defaults=false;; 21036 esac 21037 21038 case $ac_option in 21039 # Handling of the options. 21040_ACEOF 21041cat >>$CONFIG_STATUS <<\_ACEOF 21042 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21043 ac_cs_recheck=: ;; 21044 --version | --vers* | -V ) 21045 echo "$ac_cs_version"; exit 0 ;; 21046 --he | --h) 21047 # Conflict between --help and --header 21048 { { echo "$as_me:$LINENO: error: ambiguous option: $1 21049Try \`$0 --help' for more information." >&5 21050echo "$as_me: error: ambiguous option: $1 21051Try \`$0 --help' for more information." >&2;} 21052 { (exit 1); exit 1; }; };; 21053 --help | --hel | -h ) 21054 echo "$ac_cs_usage"; exit 0 ;; 21055 --debug | --d* | -d ) 21056 debug=: ;; 21057 --file | --fil | --fi | --f ) 21058 $ac_shift 21059 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21060 ac_need_defaults=false;; 21061 --header | --heade | --head | --hea ) 21062 $ac_shift 21063 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21064 ac_need_defaults=false;; 21065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21066 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21067 ac_cs_silent=: ;; 21068 21069 # This is an error. 21070 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 21071Try \`$0 --help' for more information." >&5 21072echo "$as_me: error: unrecognized option: $1 21073Try \`$0 --help' for more information." >&2;} 21074 { (exit 1); exit 1; }; } ;; 21075 21076 *) ac_config_targets="$ac_config_targets $1" ;; 21077 21078 esac 21079 shift 21080done 21081 21082ac_configure_extra_args= 21083 21084if $ac_cs_silent; then 21085 exec 6>/dev/null 21086 ac_configure_extra_args="$ac_configure_extra_args --silent" 21087fi 21088 21089_ACEOF 21090cat >>$CONFIG_STATUS <<_ACEOF 21091if \$ac_cs_recheck; then 21092 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21093 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21094fi 21095 21096_ACEOF 21097 21098cat >>$CONFIG_STATUS <<_ACEOF 21099# 21100# INIT-COMMANDS section. 21101# 21102 21103AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21104 21105_ACEOF 21106 21107 21108 21109cat >>$CONFIG_STATUS <<\_ACEOF 21110for ac_config_target in $ac_config_targets 21111do 21112 case "$ac_config_target" in 21113 # Handling of arguments. 21114 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21115 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21116 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21117 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21118 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21119 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21120echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21121 { (exit 1); exit 1; }; };; 21122 esac 21123done 21124 21125# If the user did not use the arguments to specify the items to instantiate, 21126# then the envvar interface is used. Set only those that are not. 21127# We use the long form for the default assignment because of an extremely 21128# bizarre bug on SunOS 4.1.3. 21129if $ac_need_defaults; then 21130 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21131 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21132 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21133fi 21134 21135# Have a temporary directory for convenience. Make it in the build tree 21136# simply because there is no reason to put it here, and in addition, 21137# creating and moving files from /tmp can sometimes cause problems. 21138# Create a temporary directory, and hook for its removal unless debugging. 21139$debug || 21140{ 21141 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 21142 trap '{ (exit 1); exit 1; }' 1 2 13 15 21143} 21144 21145# Create a (secure) tmp directory for tmp files. 21146 21147{ 21148 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 21149 test -n "$tmp" && test -d "$tmp" 21150} || 21151{ 21152 tmp=./confstat$$-$RANDOM 21153 (umask 077 && mkdir $tmp) 21154} || 21155{ 21156 echo "$me: cannot create a temporary directory in ." >&2 21157 { (exit 1); exit 1; } 21158} 21159 21160_ACEOF 21161 21162cat >>$CONFIG_STATUS <<_ACEOF 21163 21164# 21165# CONFIG_FILES section. 21166# 21167 21168# No need to generate the scripts if there are no CONFIG_FILES. 21169# This happens for instance when ./config.status config.h 21170if test -n "\$CONFIG_FILES"; then 21171 # Protect against being on the right side of a sed subst in config.status. 21172 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 21173 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 21174s,@SHELL@,$SHELL,;t t 21175s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 21176s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 21177s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 21178s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 21179s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 21180s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 21181s,@exec_prefix@,$exec_prefix,;t t 21182s,@prefix@,$prefix,;t t 21183s,@program_transform_name@,$program_transform_name,;t t 21184s,@bindir@,$bindir,;t t 21185s,@sbindir@,$sbindir,;t t 21186s,@libexecdir@,$libexecdir,;t t 21187s,@datadir@,$datadir,;t t 21188s,@sysconfdir@,$sysconfdir,;t t 21189s,@sharedstatedir@,$sharedstatedir,;t t 21190s,@localstatedir@,$localstatedir,;t t 21191s,@libdir@,$libdir,;t t 21192s,@includedir@,$includedir,;t t 21193s,@oldincludedir@,$oldincludedir,;t t 21194s,@infodir@,$infodir,;t t 21195s,@mandir@,$mandir,;t t 21196s,@build_alias@,$build_alias,;t t 21197s,@host_alias@,$host_alias,;t t 21198s,@target_alias@,$target_alias,;t t 21199s,@DEFS@,$DEFS,;t t 21200s,@ECHO_C@,$ECHO_C,;t t 21201s,@ECHO_N@,$ECHO_N,;t t 21202s,@ECHO_T@,$ECHO_T,;t t 21203s,@LIBS@,$LIBS,;t t 21204s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 21205s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 21206s,@INSTALL_DATA@,$INSTALL_DATA,;t t 21207s,@CYGPATH_W@,$CYGPATH_W,;t t 21208s,@PACKAGE@,$PACKAGE,;t t 21209s,@VERSION@,$VERSION,;t t 21210s,@ACLOCAL@,$ACLOCAL,;t t 21211s,@AUTOCONF@,$AUTOCONF,;t t 21212s,@AUTOMAKE@,$AUTOMAKE,;t t 21213s,@AUTOHEADER@,$AUTOHEADER,;t t 21214s,@MAKEINFO@,$MAKEINFO,;t t 21215s,@install_sh@,$install_sh,;t t 21216s,@STRIP@,$STRIP,;t t 21217s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 21218s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 21219s,@mkdir_p@,$mkdir_p,;t t 21220s,@AWK@,$AWK,;t t 21221s,@SET_MAKE@,$SET_MAKE,;t t 21222s,@am__leading_dot@,$am__leading_dot,;t t 21223s,@AMTAR@,$AMTAR,;t t 21224s,@am__tar@,$am__tar,;t t 21225s,@am__untar@,$am__untar,;t t 21226s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 21227s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 21228s,@MAINT@,$MAINT,;t t 21229s,@build@,$build,;t t 21230s,@build_cpu@,$build_cpu,;t t 21231s,@build_vendor@,$build_vendor,;t t 21232s,@build_os@,$build_os,;t t 21233s,@host@,$host,;t t 21234s,@host_cpu@,$host_cpu,;t t 21235s,@host_vendor@,$host_vendor,;t t 21236s,@host_os@,$host_os,;t t 21237s,@CC@,$CC,;t t 21238s,@CFLAGS@,$CFLAGS,;t t 21239s,@LDFLAGS@,$LDFLAGS,;t t 21240s,@CPPFLAGS@,$CPPFLAGS,;t t 21241s,@ac_ct_CC@,$ac_ct_CC,;t t 21242s,@EXEEXT@,$EXEEXT,;t t 21243s,@OBJEXT@,$OBJEXT,;t t 21244s,@DEPDIR@,$DEPDIR,;t t 21245s,@am__include@,$am__include,;t t 21246s,@am__quote@,$am__quote,;t t 21247s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 21248s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 21249s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 21250s,@CCDEPMODE@,$CCDEPMODE,;t t 21251s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 21252s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 21253s,@EGREP@,$EGREP,;t t 21254s,@LN_S@,$LN_S,;t t 21255s,@ECHO@,$ECHO,;t t 21256s,@AR@,$AR,;t t 21257s,@ac_ct_AR@,$ac_ct_AR,;t t 21258s,@RANLIB@,$RANLIB,;t t 21259s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 21260s,@CPP@,$CPP,;t t 21261s,@CXX@,$CXX,;t t 21262s,@CXXFLAGS@,$CXXFLAGS,;t t 21263s,@ac_ct_CXX@,$ac_ct_CXX,;t t 21264s,@CXXDEPMODE@,$CXXDEPMODE,;t t 21265s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 21266s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 21267s,@CXXCPP@,$CXXCPP,;t t 21268s,@F77@,$F77,;t t 21269s,@FFLAGS@,$FFLAGS,;t t 21270s,@ac_ct_F77@,$ac_ct_F77,;t t 21271s,@LIBTOOL@,$LIBTOOL,;t t 21272s,@moduledir@,$moduledir,;t t 21273s,@PKG_CONFIG@,$PKG_CONFIG,;t t 21274s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t 21275s,@XORG_CFLAGS@,$XORG_CFLAGS,;t t 21276s,@XORG_LIBS@,$XORG_LIBS,;t t 21277s,@XF86RUSH_CFLAGS@,$XF86RUSH_CFLAGS,;t t 21278s,@XF86RUSH_LIBS@,$XF86RUSH_LIBS,;t t 21279s,@XF86RUSH_TRUE@,$XF86RUSH_TRUE,;t t 21280s,@XF86RUSH_FALSE@,$XF86RUSH_FALSE,;t t 21281s,@INCLUDES@,$INCLUDES,;t t 21282s,@DRIVER_NAME@,$DRIVER_NAME,;t t 21283s,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t 21284s,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t 21285s,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t 21286s,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t 21287s,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t 21288s,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t 21289s,@APP_MAN_DIR@,$APP_MAN_DIR,;t t 21290s,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t 21291s,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t 21292s,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t 21293s,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t 21294s,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t 21295s,@LINUXDOC@,$LINUXDOC,;t t 21296s,@PS2PDF@,$PS2PDF,;t t 21297s,@BUILD_LINUXDOC_TRUE@,$BUILD_LINUXDOC_TRUE,;t t 21298s,@BUILD_LINUXDOC_FALSE@,$BUILD_LINUXDOC_FALSE,;t t 21299s,@BUILD_PDFDOC_TRUE@,$BUILD_PDFDOC_TRUE,;t t 21300s,@BUILD_PDFDOC_FALSE@,$BUILD_PDFDOC_FALSE,;t t 21301s,@MAKE_TEXT@,$MAKE_TEXT,;t t 21302s,@MAKE_PS@,$MAKE_PS,;t t 21303s,@MAKE_PDF@,$MAKE_PDF,;t t 21304s,@MAKE_HTML@,$MAKE_HTML,;t t 21305s,@LIBOBJS@,$LIBOBJS,;t t 21306s,@LTLIBOBJS@,$LTLIBOBJS,;t t 21307CEOF 21308 21309_ACEOF 21310 21311 cat >>$CONFIG_STATUS <<\_ACEOF 21312 # Split the substitutions into bite-sized pieces for seds with 21313 # small command number limits, like on Digital OSF/1 and HP-UX. 21314 ac_max_sed_lines=48 21315 ac_sed_frag=1 # Number of current file. 21316 ac_beg=1 # First line for current file. 21317 ac_end=$ac_max_sed_lines # Line after last line for current file. 21318 ac_more_lines=: 21319 ac_sed_cmds= 21320 while $ac_more_lines; do 21321 if test $ac_beg -gt 1; then 21322 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21323 else 21324 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21325 fi 21326 if test ! -s $tmp/subs.frag; then 21327 ac_more_lines=false 21328 else 21329 # The purpose of the label and of the branching condition is to 21330 # speed up the sed processing (if there are no `@' at all, there 21331 # is no need to browse any of the substitutions). 21332 # These are the two extra sed commands mentioned above. 21333 (echo ':t 21334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 21335 if test -z "$ac_sed_cmds"; then 21336 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 21337 else 21338 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 21339 fi 21340 ac_sed_frag=`expr $ac_sed_frag + 1` 21341 ac_beg=$ac_end 21342 ac_end=`expr $ac_end + $ac_max_sed_lines` 21343 fi 21344 done 21345 if test -z "$ac_sed_cmds"; then 21346 ac_sed_cmds=cat 21347 fi 21348fi # test -n "$CONFIG_FILES" 21349 21350_ACEOF 21351cat >>$CONFIG_STATUS <<\_ACEOF 21352for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 21353 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21354 case $ac_file in 21355 - | *:- | *:-:* ) # input from stdin 21356 cat >$tmp/stdin 21357 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21358 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21359 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21360 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21361 * ) ac_file_in=$ac_file.in ;; 21362 esac 21363 21364 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 21365 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21366$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21367 X"$ac_file" : 'X\(//\)[^/]' \| \ 21368 X"$ac_file" : 'X\(//\)$' \| \ 21369 X"$ac_file" : 'X\(/\)' \| \ 21370 . : '\(.\)' 2>/dev/null || 21371echo X"$ac_file" | 21372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21373 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21374 /^X\(\/\/\)$/{ s//\1/; q; } 21375 /^X\(\/\).*/{ s//\1/; q; } 21376 s/.*/./; q'` 21377 { if $as_mkdir_p; then 21378 mkdir -p "$ac_dir" 21379 else 21380 as_dir="$ac_dir" 21381 as_dirs= 21382 while test ! -d "$as_dir"; do 21383 as_dirs="$as_dir $as_dirs" 21384 as_dir=`(dirname "$as_dir") 2>/dev/null || 21385$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21386 X"$as_dir" : 'X\(//\)[^/]' \| \ 21387 X"$as_dir" : 'X\(//\)$' \| \ 21388 X"$as_dir" : 'X\(/\)' \| \ 21389 . : '\(.\)' 2>/dev/null || 21390echo X"$as_dir" | 21391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21392 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21393 /^X\(\/\/\)$/{ s//\1/; q; } 21394 /^X\(\/\).*/{ s//\1/; q; } 21395 s/.*/./; q'` 21396 done 21397 test ! -n "$as_dirs" || mkdir $as_dirs 21398 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21399echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21400 { (exit 1); exit 1; }; }; } 21401 21402 ac_builddir=. 21403 21404if test "$ac_dir" != .; then 21405 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21406 # A "../" for each directory in $ac_dir_suffix. 21407 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21408else 21409 ac_dir_suffix= ac_top_builddir= 21410fi 21411 21412case $srcdir in 21413 .) # No --srcdir option. We are building in place. 21414 ac_srcdir=. 21415 if test -z "$ac_top_builddir"; then 21416 ac_top_srcdir=. 21417 else 21418 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21419 fi ;; 21420 [\\/]* | ?:[\\/]* ) # Absolute path. 21421 ac_srcdir=$srcdir$ac_dir_suffix; 21422 ac_top_srcdir=$srcdir ;; 21423 *) # Relative path. 21424 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21425 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21426esac 21427 21428# Do not use `cd foo && pwd` to compute absolute paths, because 21429# the directories may not exist. 21430case `pwd` in 21431.) ac_abs_builddir="$ac_dir";; 21432*) 21433 case "$ac_dir" in 21434 .) ac_abs_builddir=`pwd`;; 21435 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21436 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21437 esac;; 21438esac 21439case $ac_abs_builddir in 21440.) ac_abs_top_builddir=${ac_top_builddir}.;; 21441*) 21442 case ${ac_top_builddir}. in 21443 .) ac_abs_top_builddir=$ac_abs_builddir;; 21444 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21445 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21446 esac;; 21447esac 21448case $ac_abs_builddir in 21449.) ac_abs_srcdir=$ac_srcdir;; 21450*) 21451 case $ac_srcdir in 21452 .) ac_abs_srcdir=$ac_abs_builddir;; 21453 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21454 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21455 esac;; 21456esac 21457case $ac_abs_builddir in 21458.) ac_abs_top_srcdir=$ac_top_srcdir;; 21459*) 21460 case $ac_top_srcdir in 21461 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21462 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21463 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21464 esac;; 21465esac 21466 21467 21468 case $INSTALL in 21469 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21470 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 21471 esac 21472 21473 if test x"$ac_file" != x-; then 21474 { echo "$as_me:$LINENO: creating $ac_file" >&5 21475echo "$as_me: creating $ac_file" >&6;} 21476 rm -f "$ac_file" 21477 fi 21478 # Let's still pretend it is `configure' which instantiates (i.e., don't 21479 # use $as_me), people would be surprised to read: 21480 # /* config.h. Generated by config.status. */ 21481 if test x"$ac_file" = x-; then 21482 configure_input= 21483 else 21484 configure_input="$ac_file. " 21485 fi 21486 configure_input=$configure_input"Generated from `echo $ac_file_in | 21487 sed 's,.*/,,'` by configure." 21488 21489 # First look for the input files in the build tree, otherwise in the 21490 # src tree. 21491 ac_file_inputs=`IFS=: 21492 for f in $ac_file_in; do 21493 case $f in 21494 -) echo $tmp/stdin ;; 21495 [\\/$]*) 21496 # Absolute (can't be DOS-style, as IFS=:) 21497 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21498echo "$as_me: error: cannot find input file: $f" >&2;} 21499 { (exit 1); exit 1; }; } 21500 echo "$f";; 21501 *) # Relative 21502 if test -f "$f"; then 21503 # Build tree 21504 echo "$f" 21505 elif test -f "$srcdir/$f"; then 21506 # Source tree 21507 echo "$srcdir/$f" 21508 else 21509 # /dev/null tree 21510 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21511echo "$as_me: error: cannot find input file: $f" >&2;} 21512 { (exit 1); exit 1; }; } 21513 fi;; 21514 esac 21515 done` || { (exit 1); exit 1; } 21516_ACEOF 21517cat >>$CONFIG_STATUS <<_ACEOF 21518 sed "$ac_vpsub 21519$extrasub 21520_ACEOF 21521cat >>$CONFIG_STATUS <<\_ACEOF 21522:t 21523/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21524s,@configure_input@,$configure_input,;t t 21525s,@srcdir@,$ac_srcdir,;t t 21526s,@abs_srcdir@,$ac_abs_srcdir,;t t 21527s,@top_srcdir@,$ac_top_srcdir,;t t 21528s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 21529s,@builddir@,$ac_builddir,;t t 21530s,@abs_builddir@,$ac_abs_builddir,;t t 21531s,@top_builddir@,$ac_top_builddir,;t t 21532s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 21533s,@INSTALL@,$ac_INSTALL,;t t 21534" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 21535 rm -f $tmp/stdin 21536 if test x"$ac_file" != x-; then 21537 mv $tmp/out $ac_file 21538 else 21539 cat $tmp/out 21540 rm -f $tmp/out 21541 fi 21542 21543done 21544_ACEOF 21545cat >>$CONFIG_STATUS <<\_ACEOF 21546 21547# 21548# CONFIG_HEADER section. 21549# 21550 21551# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 21552# NAME is the cpp macro being defined and VALUE is the value it is being given. 21553# 21554# ac_d sets the value in "#define NAME VALUE" lines. 21555ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 21556ac_dB='[ ].*$,\1#\2' 21557ac_dC=' ' 21558ac_dD=',;t' 21559# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 21560ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 21561ac_uB='$,\1#\2define\3' 21562ac_uC=' ' 21563ac_uD=',;t' 21564 21565for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 21566 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21567 case $ac_file in 21568 - | *:- | *:-:* ) # input from stdin 21569 cat >$tmp/stdin 21570 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21571 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21572 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21573 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21574 * ) ac_file_in=$ac_file.in ;; 21575 esac 21576 21577 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 21578echo "$as_me: creating $ac_file" >&6;} 21579 21580 # First look for the input files in the build tree, otherwise in the 21581 # src tree. 21582 ac_file_inputs=`IFS=: 21583 for f in $ac_file_in; do 21584 case $f in 21585 -) echo $tmp/stdin ;; 21586 [\\/$]*) 21587 # Absolute (can't be DOS-style, as IFS=:) 21588 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21589echo "$as_me: error: cannot find input file: $f" >&2;} 21590 { (exit 1); exit 1; }; } 21591 # Do quote $f, to prevent DOS paths from being IFS'd. 21592 echo "$f";; 21593 *) # Relative 21594 if test -f "$f"; then 21595 # Build tree 21596 echo "$f" 21597 elif test -f "$srcdir/$f"; then 21598 # Source tree 21599 echo "$srcdir/$f" 21600 else 21601 # /dev/null tree 21602 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21603echo "$as_me: error: cannot find input file: $f" >&2;} 21604 { (exit 1); exit 1; }; } 21605 fi;; 21606 esac 21607 done` || { (exit 1); exit 1; } 21608 # Remove the trailing spaces. 21609 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 21610 21611_ACEOF 21612 21613# Transform confdefs.h into two sed scripts, `conftest.defines' and 21614# `conftest.undefs', that substitutes the proper values into 21615# config.h.in to produce config.h. The first handles `#define' 21616# templates, and the second `#undef' templates. 21617# And first: Protect against being on the right side of a sed subst in 21618# config.status. Protect against being in an unquoted here document 21619# in config.status. 21620rm -f conftest.defines conftest.undefs 21621# Using a here document instead of a string reduces the quoting nightmare. 21622# Putting comments in sed scripts is not portable. 21623# 21624# `end' is used to avoid that the second main sed command (meant for 21625# 0-ary CPP macros) applies to n-ary macro definitions. 21626# See the Autoconf documentation for `clear'. 21627cat >confdef2sed.sed <<\_ACEOF 21628s/[\\&,]/\\&/g 21629s,[\\$`],\\&,g 21630t clear 21631: clear 21632s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 21633t end 21634s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 21635: end 21636_ACEOF 21637# If some macros were called several times there might be several times 21638# the same #defines, which is useless. Nevertheless, we may not want to 21639# sort them, since we want the *last* AC-DEFINE to be honored. 21640uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 21641sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 21642rm -f confdef2sed.sed 21643 21644# This sed command replaces #undef with comments. This is necessary, for 21645# example, in the case of _POSIX_SOURCE, which is predefined and required 21646# on some systems where configure will not decide to define it. 21647cat >>conftest.undefs <<\_ACEOF 21648s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 21649_ACEOF 21650 21651# Break up conftest.defines because some shells have a limit on the size 21652# of here documents, and old seds have small limits too (100 cmds). 21653echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 21654echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 21655echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 21656echo ' :' >>$CONFIG_STATUS 21657rm -f conftest.tail 21658while grep . conftest.defines >/dev/null 21659do 21660 # Write a limited-size here document to $tmp/defines.sed. 21661 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 21662 # Speed up: don't consider the non `#define' lines. 21663 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 21664 # Work around the forget-to-reset-the-flag bug. 21665 echo 't clr' >>$CONFIG_STATUS 21666 echo ': clr' >>$CONFIG_STATUS 21667 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 21668 echo 'CEOF 21669 sed -f $tmp/defines.sed $tmp/in >$tmp/out 21670 rm -f $tmp/in 21671 mv $tmp/out $tmp/in 21672' >>$CONFIG_STATUS 21673 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 21674 rm -f conftest.defines 21675 mv conftest.tail conftest.defines 21676done 21677rm -f conftest.defines 21678echo ' fi # grep' >>$CONFIG_STATUS 21679echo >>$CONFIG_STATUS 21680 21681# Break up conftest.undefs because some shells have a limit on the size 21682# of here documents, and old seds have small limits too (100 cmds). 21683echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 21684rm -f conftest.tail 21685while grep . conftest.undefs >/dev/null 21686do 21687 # Write a limited-size here document to $tmp/undefs.sed. 21688 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 21689 # Speed up: don't consider the non `#undef' 21690 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 21691 # Work around the forget-to-reset-the-flag bug. 21692 echo 't clr' >>$CONFIG_STATUS 21693 echo ': clr' >>$CONFIG_STATUS 21694 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 21695 echo 'CEOF 21696 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 21697 rm -f $tmp/in 21698 mv $tmp/out $tmp/in 21699' >>$CONFIG_STATUS 21700 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 21701 rm -f conftest.undefs 21702 mv conftest.tail conftest.undefs 21703done 21704rm -f conftest.undefs 21705 21706cat >>$CONFIG_STATUS <<\_ACEOF 21707 # Let's still pretend it is `configure' which instantiates (i.e., don't 21708 # use $as_me), people would be surprised to read: 21709 # /* config.h. Generated by config.status. */ 21710 if test x"$ac_file" = x-; then 21711 echo "/* Generated by configure. */" >$tmp/config.h 21712 else 21713 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 21714 fi 21715 cat $tmp/in >>$tmp/config.h 21716 rm -f $tmp/in 21717 if test x"$ac_file" != x-; then 21718 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 21719 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 21720echo "$as_me: $ac_file is unchanged" >&6;} 21721 else 21722 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21723$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21724 X"$ac_file" : 'X\(//\)[^/]' \| \ 21725 X"$ac_file" : 'X\(//\)$' \| \ 21726 X"$ac_file" : 'X\(/\)' \| \ 21727 . : '\(.\)' 2>/dev/null || 21728echo X"$ac_file" | 21729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21730 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21731 /^X\(\/\/\)$/{ s//\1/; q; } 21732 /^X\(\/\).*/{ s//\1/; q; } 21733 s/.*/./; q'` 21734 { if $as_mkdir_p; then 21735 mkdir -p "$ac_dir" 21736 else 21737 as_dir="$ac_dir" 21738 as_dirs= 21739 while test ! -d "$as_dir"; do 21740 as_dirs="$as_dir $as_dirs" 21741 as_dir=`(dirname "$as_dir") 2>/dev/null || 21742$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21743 X"$as_dir" : 'X\(//\)[^/]' \| \ 21744 X"$as_dir" : 'X\(//\)$' \| \ 21745 X"$as_dir" : 'X\(/\)' \| \ 21746 . : '\(.\)' 2>/dev/null || 21747echo X"$as_dir" | 21748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21749 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21750 /^X\(\/\/\)$/{ s//\1/; q; } 21751 /^X\(\/\).*/{ s//\1/; q; } 21752 s/.*/./; q'` 21753 done 21754 test ! -n "$as_dirs" || mkdir $as_dirs 21755 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21756echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21757 { (exit 1); exit 1; }; }; } 21758 21759 rm -f $ac_file 21760 mv $tmp/config.h $ac_file 21761 fi 21762 else 21763 cat $tmp/config.h 21764 rm -f $tmp/config.h 21765 fi 21766# Compute $ac_file's index in $config_headers. 21767_am_stamp_count=1 21768for _am_header in $config_headers :; do 21769 case $_am_header in 21770 $ac_file | $ac_file:* ) 21771 break ;; 21772 * ) 21773 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21774 esac 21775done 21776echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 21777$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21778 X$ac_file : 'X\(//\)[^/]' \| \ 21779 X$ac_file : 'X\(//\)$' \| \ 21780 X$ac_file : 'X\(/\)' \| \ 21781 . : '\(.\)' 2>/dev/null || 21782echo X$ac_file | 21783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21784 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21785 /^X\(\/\/\)$/{ s//\1/; q; } 21786 /^X\(\/\).*/{ s//\1/; q; } 21787 s/.*/./; q'`/stamp-h$_am_stamp_count 21788done 21789_ACEOF 21790cat >>$CONFIG_STATUS <<\_ACEOF 21791 21792# 21793# CONFIG_COMMANDS section. 21794# 21795for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 21796 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 21797 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 21798 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 21799$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21800 X"$ac_dest" : 'X\(//\)[^/]' \| \ 21801 X"$ac_dest" : 'X\(//\)$' \| \ 21802 X"$ac_dest" : 'X\(/\)' \| \ 21803 . : '\(.\)' 2>/dev/null || 21804echo X"$ac_dest" | 21805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21806 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21807 /^X\(\/\/\)$/{ s//\1/; q; } 21808 /^X\(\/\).*/{ s//\1/; q; } 21809 s/.*/./; q'` 21810 { if $as_mkdir_p; then 21811 mkdir -p "$ac_dir" 21812 else 21813 as_dir="$ac_dir" 21814 as_dirs= 21815 while test ! -d "$as_dir"; do 21816 as_dirs="$as_dir $as_dirs" 21817 as_dir=`(dirname "$as_dir") 2>/dev/null || 21818$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21819 X"$as_dir" : 'X\(//\)[^/]' \| \ 21820 X"$as_dir" : 'X\(//\)$' \| \ 21821 X"$as_dir" : 'X\(/\)' \| \ 21822 . : '\(.\)' 2>/dev/null || 21823echo X"$as_dir" | 21824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21825 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21826 /^X\(\/\/\)$/{ s//\1/; q; } 21827 /^X\(\/\).*/{ s//\1/; q; } 21828 s/.*/./; q'` 21829 done 21830 test ! -n "$as_dirs" || mkdir $as_dirs 21831 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21832echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21833 { (exit 1); exit 1; }; }; } 21834 21835 ac_builddir=. 21836 21837if test "$ac_dir" != .; then 21838 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21839 # A "../" for each directory in $ac_dir_suffix. 21840 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21841else 21842 ac_dir_suffix= ac_top_builddir= 21843fi 21844 21845case $srcdir in 21846 .) # No --srcdir option. We are building in place. 21847 ac_srcdir=. 21848 if test -z "$ac_top_builddir"; then 21849 ac_top_srcdir=. 21850 else 21851 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21852 fi ;; 21853 [\\/]* | ?:[\\/]* ) # Absolute path. 21854 ac_srcdir=$srcdir$ac_dir_suffix; 21855 ac_top_srcdir=$srcdir ;; 21856 *) # Relative path. 21857 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21858 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21859esac 21860 21861# Do not use `cd foo && pwd` to compute absolute paths, because 21862# the directories may not exist. 21863case `pwd` in 21864.) ac_abs_builddir="$ac_dir";; 21865*) 21866 case "$ac_dir" in 21867 .) ac_abs_builddir=`pwd`;; 21868 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21869 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21870 esac;; 21871esac 21872case $ac_abs_builddir in 21873.) ac_abs_top_builddir=${ac_top_builddir}.;; 21874*) 21875 case ${ac_top_builddir}. in 21876 .) ac_abs_top_builddir=$ac_abs_builddir;; 21877 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21878 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21879 esac;; 21880esac 21881case $ac_abs_builddir in 21882.) ac_abs_srcdir=$ac_srcdir;; 21883*) 21884 case $ac_srcdir in 21885 .) ac_abs_srcdir=$ac_abs_builddir;; 21886 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21887 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21888 esac;; 21889esac 21890case $ac_abs_builddir in 21891.) ac_abs_top_srcdir=$ac_top_srcdir;; 21892*) 21893 case $ac_top_srcdir in 21894 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21895 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21896 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21897 esac;; 21898esac 21899 21900 21901 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 21902echo "$as_me: executing $ac_dest commands" >&6;} 21903 case $ac_dest in 21904 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21905 # Strip MF so we end up with the name of the file. 21906 mf=`echo "$mf" | sed -e 's/:.*$//'` 21907 # Check whether this is an Automake generated Makefile or not. 21908 # We used to match only the files named `Makefile.in', but 21909 # some people rename them; so instead we look at the file content. 21910 # Grep'ing the first line is not enough: some people post-process 21911 # each Makefile.in and add a new line on top of each file to say so. 21912 # So let's grep whole file. 21913 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 21914 dirpart=`(dirname "$mf") 2>/dev/null || 21915$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21916 X"$mf" : 'X\(//\)[^/]' \| \ 21917 X"$mf" : 'X\(//\)$' \| \ 21918 X"$mf" : 'X\(/\)' \| \ 21919 . : '\(.\)' 2>/dev/null || 21920echo X"$mf" | 21921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21922 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21923 /^X\(\/\/\)$/{ s//\1/; q; } 21924 /^X\(\/\).*/{ s//\1/; q; } 21925 s/.*/./; q'` 21926 else 21927 continue 21928 fi 21929 # Extract the definition of DEPDIR, am__include, and am__quote 21930 # from the Makefile without running `make'. 21931 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21932 test -z "$DEPDIR" && continue 21933 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21934 test -z "am__include" && continue 21935 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21936 # When using ansi2knr, U may be empty or an underscore; expand it 21937 U=`sed -n 's/^U = //p' < "$mf"` 21938 # Find all dependency output files, they are included files with 21939 # $(DEPDIR) in their names. We invoke sed twice because it is the 21940 # simplest approach to changing $(DEPDIR) to its actual value in the 21941 # expansion. 21942 for file in `sed -n " 21943 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21944 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21945 # Make sure the directory exists. 21946 test -f "$dirpart/$file" && continue 21947 fdir=`(dirname "$file") 2>/dev/null || 21948$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21949 X"$file" : 'X\(//\)[^/]' \| \ 21950 X"$file" : 'X\(//\)$' \| \ 21951 X"$file" : 'X\(/\)' \| \ 21952 . : '\(.\)' 2>/dev/null || 21953echo X"$file" | 21954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21955 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21956 /^X\(\/\/\)$/{ s//\1/; q; } 21957 /^X\(\/\).*/{ s//\1/; q; } 21958 s/.*/./; q'` 21959 { if $as_mkdir_p; then 21960 mkdir -p $dirpart/$fdir 21961 else 21962 as_dir=$dirpart/$fdir 21963 as_dirs= 21964 while test ! -d "$as_dir"; do 21965 as_dirs="$as_dir $as_dirs" 21966 as_dir=`(dirname "$as_dir") 2>/dev/null || 21967$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21968 X"$as_dir" : 'X\(//\)[^/]' \| \ 21969 X"$as_dir" : 'X\(//\)$' \| \ 21970 X"$as_dir" : 'X\(/\)' \| \ 21971 . : '\(.\)' 2>/dev/null || 21972echo X"$as_dir" | 21973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21974 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21975 /^X\(\/\/\)$/{ s//\1/; q; } 21976 /^X\(\/\).*/{ s//\1/; q; } 21977 s/.*/./; q'` 21978 done 21979 test ! -n "$as_dirs" || mkdir $as_dirs 21980 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 21981echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 21982 { (exit 1); exit 1; }; }; } 21983 21984 # echo "creating $dirpart/$file" 21985 echo '# dummy' > "$dirpart/$file" 21986 done 21987done 21988 ;; 21989 esac 21990done 21991_ACEOF 21992 21993cat >>$CONFIG_STATUS <<\_ACEOF 21994 21995{ (exit 0); exit 0; } 21996_ACEOF 21997chmod +x $CONFIG_STATUS 21998ac_clean_files=$ac_clean_files_save 21999 22000 22001# configure is writing to config.log, and then calls config.status. 22002# config.status does its own redirection, appending to config.log. 22003# Unfortunately, on DOS this fails, as config.log is still kept open 22004# by configure, so config.status won't be able to write to it; its 22005# output is simply discarded. So we exec the FD to /dev/null, 22006# effectively closing config.log, so it can be properly (re)opened and 22007# appended to by config.status. When coming back to configure, we 22008# need to make the FD available again. 22009if test "$no_create" != yes; then 22010 ac_cs_success=: 22011 ac_config_status_args= 22012 test "$silent" = yes && 22013 ac_config_status_args="$ac_config_status_args --quiet" 22014 exec 5>/dev/null 22015 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22016 exec 5>>config.log 22017 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22018 # would make configure fail if this is the last instruction. 22019 $ac_cs_success || { (exit 1); exit 1; } 22020fi 22021 22022