1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.59 for cmockery 0.1.2. 4 # 5 # Report bugs to <opensource (at] google.com>. 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 15 if 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+"$@"}'='"$@"' 21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23 fi 24 DUALCASE=1; export DUALCASE # for MKS sh 25 26 # Support unset when possible. 27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 28 as_unset=unset 29 else 30 as_unset=false 31 fi 32 33 34 # Work around bugs in pre-3.0 UWIN ksh. 35 $as_unset ENV MAIL MAILPATH 36 PS1='$ ' 37 PS2='> ' 38 PS4='+ ' 39 40 # NLS nuisances. 41 for 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 45 do 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 51 done 52 53 # Required to use basename. 54 if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56 else 57 as_expr=false 58 fi 59 60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62 else 63 as_basename=false 64 fi 65 66 67 # Name of the executable. 68 as_me=`$as_basename "$0" || 69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73 echo 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. 82 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85 as_cr_digits='0123456789' 86 as_cr_alnum=$as_cr_Letters$as_cr_digits 87 88 # The user is always right. 89 if 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 99 fi 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 112 for as_dir in $PATH 113 do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117 done 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 133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134 do 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 154 done 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 189 case `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= ;; 194 esac 195 196 if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 198 else 199 as_expr=false 200 fi 201 202 rm -f conf$$ conf$$.exe conf$$.file 203 echo >conf$$.file 204 if 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 213 elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 215 else 216 as_ln_s='cp -p' 217 fi 218 rm -f conf$$ conf$$.exe conf$$.file 219 220 if mkdir -p . 2>/dev/null; then 221 as_mkdir_p=: 222 else 223 test -d ./-p && rmdir ./-p 224 as_mkdir_p=false 225 fi 226 227 as_executable_p="test -f" 228 229 # Sed expression to map a string onto a valid CPP name. 230 as_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. 233 as_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. 238 as_nl=' 239 ' 240 IFS=" $as_nl" 241 242 # CDPATH. 243 $as_unset CDPATH 244 245 246 247 # Check that we are running under the correct shell. 248 SHELL=${CONFIG_SHELL-/bin/sh} 249 250 case X$ECHO in 251 X*--fallback-echo) 252 # Remove one level of quotation (which was required for Make). 253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 254 ;; 255 esac 256 257 echo=${ECHO-echo} 258 if test "X$1" = X--no-reexec; then 259 # Discard the --no-reexec flag, and continue. 260 shift 261 elif test "X$1" = X--fallback-echo; then 262 # Avoid inline document here, it may be left over 263 : 264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 265 # Yippee, $echo works! 266 : 267 else 268 # Restart under the correct shell. 269 exec $SHELL "$0" --no-reexec ${1+"$@"} 270 fi 271 272 if test "X$1" = X--fallback-echo; then 273 # used as fallback echo 274 shift 275 cat <<EOF 276 $* 277 EOF 278 exit 0 279 fi 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 285 if test -z "$ECHO"; then 286 if 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 297 fi 298 299 if 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 : 303 else 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 383 fi 384 fi 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. 388 ECHO=$echo 389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 391 fi 392 393 394 395 396 tagnames=${tagnames+${tagnames},}CXX 397 398 tagnames=${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. 403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 404 405 exec 6>&1 406 407 # 408 # Initializations. 409 # 410 ac_default_prefix=/usr/local 411 ac_config_libobj_dir=. 412 cross_compiling=no 413 subdirs= 414 MFLAGS= 415 MAKEFLAGS= 416 SHELL=${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. 424 PACKAGE_NAME='cmockery' 425 PACKAGE_TARNAME='cmockery' 426 PACKAGE_VERSION='0.1.2' 427 PACKAGE_STRING='cmockery 0.1.2' 428 PACKAGE_BUGREPORT='opensource (at] google.com' 429 430 ac_unique_file="README" 431 # Factoring default headers for most tests. 432 ac_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 468 ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE GCC_TRUE GCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS LIBOBJS LTLIBOBJS' 469 ac_subst_files='' 470 471 # Initialize some variables set by options. 472 ac_init_help= 473 ac_init_version=false 474 # The variables have the same names as the options, with 475 # dashes changed to underlines. 476 cache_file=/dev/null 477 exec_prefix=NONE 478 no_create= 479 no_recursion= 480 prefix=NONE 481 program_prefix=NONE 482 program_suffix=NONE 483 program_transform_name=s,x,x, 484 silent= 485 site= 486 srcdir= 487 verbose= 488 x_includes=NONE 489 x_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. 496 bindir='${exec_prefix}/bin' 497 sbindir='${exec_prefix}/sbin' 498 libexecdir='${exec_prefix}/libexec' 499 datadir='${prefix}/share' 500 sysconfdir='${prefix}/etc' 501 sharedstatedir='${prefix}/com' 502 localstatedir='${prefix}/var' 503 libdir='${exec_prefix}/lib' 504 includedir='${prefix}/include' 505 oldincludedir='/usr/include' 506 infodir='${prefix}/info' 507 mandir='${prefix}/man' 508 509 ac_prev= 510 for ac_option 511 do 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 783 Try \`$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 806 done 807 808 if 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; }; } 812 fi 813 814 # Be sure to have absolute paths. 815 for ac_var in exec_prefix prefix 816 do 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 823 done 824 825 # Be sure to have absolute paths. 826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 827 localstatedir libdir includedir oldincludedir infodir mandir 828 do 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 835 done 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. 840 build=$build_alias 841 host=$host_alias 842 target=$target_alias 843 844 # FIXME: To remove some day. 845 if 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 853 fi 854 855 ac_tool_prefix= 856 test -n "$host_alias" && ac_tool_prefix=$host_alias- 857 858 test "$silent" = yes && exec 6>/dev/null 859 860 861 # Find the source files, if location was not specified. 862 if 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 || 871 echo 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 881 else 882 ac_srcdir_defaulted=no 883 fi 884 if 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 892 fi 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; }; } 896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 897 ac_env_build_alias_set=${build_alias+set} 898 ac_env_build_alias_value=$build_alias 899 ac_cv_env_build_alias_set=${build_alias+set} 900 ac_cv_env_build_alias_value=$build_alias 901 ac_env_host_alias_set=${host_alias+set} 902 ac_env_host_alias_value=$host_alias 903 ac_cv_env_host_alias_set=${host_alias+set} 904 ac_cv_env_host_alias_value=$host_alias 905 ac_env_target_alias_set=${target_alias+set} 906 ac_env_target_alias_value=$target_alias 907 ac_cv_env_target_alias_set=${target_alias+set} 908 ac_cv_env_target_alias_value=$target_alias 909 ac_env_CC_set=${CC+set} 910 ac_env_CC_value=$CC 911 ac_cv_env_CC_set=${CC+set} 912 ac_cv_env_CC_value=$CC 913 ac_env_CFLAGS_set=${CFLAGS+set} 914 ac_env_CFLAGS_value=$CFLAGS 915 ac_cv_env_CFLAGS_set=${CFLAGS+set} 916 ac_cv_env_CFLAGS_value=$CFLAGS 917 ac_env_LDFLAGS_set=${LDFLAGS+set} 918 ac_env_LDFLAGS_value=$LDFLAGS 919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 920 ac_cv_env_LDFLAGS_value=$LDFLAGS 921 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 922 ac_env_CPPFLAGS_value=$CPPFLAGS 923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 925 ac_env_CPP_set=${CPP+set} 926 ac_env_CPP_value=$CPP 927 ac_cv_env_CPP_set=${CPP+set} 928 ac_cv_env_CPP_value=$CPP 929 ac_env_CXX_set=${CXX+set} 930 ac_env_CXX_value=$CXX 931 ac_cv_env_CXX_set=${CXX+set} 932 ac_cv_env_CXX_value=$CXX 933 ac_env_CXXFLAGS_set=${CXXFLAGS+set} 934 ac_env_CXXFLAGS_value=$CXXFLAGS 935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS 937 ac_env_CXXCPP_set=${CXXCPP+set} 938 ac_env_CXXCPP_value=$CXXCPP 939 ac_cv_env_CXXCPP_set=${CXXCPP+set} 940 ac_cv_env_CXXCPP_value=$CXXCPP 941 ac_env_F77_set=${F77+set} 942 ac_env_F77_value=$F77 943 ac_cv_env_F77_set=${F77+set} 944 ac_cv_env_F77_value=$F77 945 ac_env_FFLAGS_set=${FFLAGS+set} 946 ac_env_FFLAGS_value=$FFLAGS 947 ac_cv_env_FFLAGS_set=${FFLAGS+set} 948 ac_cv_env_FFLAGS_value=$FFLAGS 949 950 # 951 # Report the --help message. 952 # 953 if test "$ac_init_help" = "long"; then 954 # Omit some internal or obsolete options to make the list less imposing. 955 # This message is too long to be a string in the A/UX 3.1 sh. 956 cat <<_ACEOF 957 \`configure' configures cmockery 0.1.2 to adapt to many kinds of systems. 958 959 Usage: $0 [OPTION]... [VAR=VALUE]... 960 961 To assign environment variables (e.g., CC, CFLAGS...), specify them as 962 VAR=VALUE. See below for descriptions of some of the useful variables. 963 964 Defaults for the options are specified in brackets. 965 966 Configuration: 967 -h, --help display this help and exit 968 --help=short display options specific to this package 969 --help=recursive display the short help of all the included packages 970 -V, --version display version information and exit 971 -q, --quiet, --silent do not print \`checking...' messages 972 --cache-file=FILE cache test results in FILE [disabled] 973 -C, --config-cache alias for \`--cache-file=config.cache' 974 -n, --no-create do not create output files 975 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 976 977 _ACEOF 978 979 cat <<_ACEOF 980 Installation directories: 981 --prefix=PREFIX install architecture-independent files in PREFIX 982 [$ac_default_prefix] 983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 984 [PREFIX] 985 986 By default, \`make install' will install all the files in 987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 988 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 989 for instance \`--prefix=\$HOME'. 990 991 For better control, use the options below. 992 993 Fine tuning of the installation directories: 994 --bindir=DIR user executables [EPREFIX/bin] 995 --sbindir=DIR system admin executables [EPREFIX/sbin] 996 --libexecdir=DIR program executables [EPREFIX/libexec] 997 --datadir=DIR read-only architecture-independent data [PREFIX/share] 998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1001 --libdir=DIR object code libraries [EPREFIX/lib] 1002 --includedir=DIR C header files [PREFIX/include] 1003 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1004 --infodir=DIR info documentation [PREFIX/info] 1005 --mandir=DIR man documentation [PREFIX/man] 1006 _ACEOF 1007 1008 cat <<\_ACEOF 1009 1010 Program names: 1011 --program-prefix=PREFIX prepend PREFIX to installed program names 1012 --program-suffix=SUFFIX append SUFFIX to installed program names 1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1014 1015 System types: 1016 --build=BUILD configure for building on BUILD [guessed] 1017 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1018 _ACEOF 1019 fi 1020 1021 if test -n "$ac_init_help"; then 1022 case $ac_init_help in 1023 short | recursive ) echo "Configuration of cmockery 0.1.2:";; 1024 esac 1025 cat <<\_ACEOF 1026 1027 Optional Features: 1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1030 --disable-dependency-tracking speeds up one-time build 1031 --enable-dependency-tracking do not reject slow dependency extractors 1032 --enable-shared[=PKGS] 1033 build shared libraries [default=yes] 1034 --enable-static[=PKGS] 1035 build static libraries [default=yes] 1036 --enable-fast-install[=PKGS] 1037 optimize for fast installation [default=yes] 1038 --disable-libtool-lock avoid locking (might break parallel builds) 1039 --enable-namespace=FOO to define these Google 1040 classes in the FOO namespace. --disable-namespace 1041 to define them in the global namespace. Default 1042 is to define them in namespace google. 1043 1044 Optional Packages: 1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1048 --with-pic try to use only PIC/non-PIC objects [default=use 1049 both] 1050 --with-tags[=TAGS] 1051 include additional configurations [automatic] 1052 1053 Some influential environment variables: 1054 CC C compiler command 1055 CFLAGS C compiler flags 1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1057 nonstandard directory <lib dir> 1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1059 headers in a nonstandard directory <include dir> 1060 CPP C preprocessor 1061 CXX C++ compiler command 1062 CXXFLAGS C++ compiler flags 1063 CXXCPP C++ preprocessor 1064 F77 Fortran 77 compiler command 1065 FFLAGS Fortran 77 compiler flags 1066 1067 Use these variables to override the choices made by `configure' or to help 1068 it to find libraries and programs with nonstandard names/locations. 1069 1070 Report bugs to <opensource@google.com>. 1071 _ACEOF 1072 fi 1073 1074 if test "$ac_init_help" = "recursive"; then 1075 # If there are subdirs, report their specific --help. 1076 ac_popdir=`pwd` 1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1078 test -d $ac_dir || continue 1079 ac_builddir=. 1080 1081 if test "$ac_dir" != .; then 1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1083 # A "../" for each directory in $ac_dir_suffix. 1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1085 else 1086 ac_dir_suffix= ac_top_builddir= 1087 fi 1088 1089 case $srcdir in 1090 .) # No --srcdir option. We are building in place. 1091 ac_srcdir=. 1092 if test -z "$ac_top_builddir"; then 1093 ac_top_srcdir=. 1094 else 1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1096 fi ;; 1097 [\\/]* | ?:[\\/]* ) # Absolute path. 1098 ac_srcdir=$srcdir$ac_dir_suffix; 1099 ac_top_srcdir=$srcdir ;; 1100 *) # Relative path. 1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1102 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1103 esac 1104 1105 # Do not use `cd foo && pwd` to compute absolute paths, because 1106 # the directories may not exist. 1107 case `pwd` in 1108 .) ac_abs_builddir="$ac_dir";; 1109 *) 1110 case "$ac_dir" in 1111 .) ac_abs_builddir=`pwd`;; 1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1113 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1114 esac;; 1115 esac 1116 case $ac_abs_builddir in 1117 .) ac_abs_top_builddir=${ac_top_builddir}.;; 1118 *) 1119 case ${ac_top_builddir}. in 1120 .) ac_abs_top_builddir=$ac_abs_builddir;; 1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1123 esac;; 1124 esac 1125 case $ac_abs_builddir in 1126 .) ac_abs_srcdir=$ac_srcdir;; 1127 *) 1128 case $ac_srcdir in 1129 .) ac_abs_srcdir=$ac_abs_builddir;; 1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1132 esac;; 1133 esac 1134 case $ac_abs_builddir in 1135 .) ac_abs_top_srcdir=$ac_top_srcdir;; 1136 *) 1137 case $ac_top_srcdir in 1138 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1141 esac;; 1142 esac 1143 1144 cd $ac_dir 1145 # Check for guested configure; otherwise get Cygnus style configure. 1146 if test -f $ac_srcdir/configure.gnu; then 1147 echo 1148 $SHELL $ac_srcdir/configure.gnu --help=recursive 1149 elif test -f $ac_srcdir/configure; then 1150 echo 1151 $SHELL $ac_srcdir/configure --help=recursive 1152 elif test -f $ac_srcdir/configure.ac || 1153 test -f $ac_srcdir/configure.in; then 1154 echo 1155 $ac_configure --help 1156 else 1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1158 fi 1159 cd "$ac_popdir" 1160 done 1161 fi 1162 1163 test -n "$ac_init_help" && exit 0 1164 if $ac_init_version; then 1165 cat <<\_ACEOF 1166 cmockery configure 0.1.2 1167 generated by GNU Autoconf 2.59 1168 1169 Copyright (C) 2003 Free Software Foundation, Inc. 1170 This configure script is free software; the Free Software Foundation 1171 gives unlimited permission to copy, distribute and modify it. 1172 _ACEOF 1173 exit 0 1174 fi 1175 exec 5>config.log 1176 cat >&5 <<_ACEOF 1177 This file contains any messages produced by compilers while 1178 running configure, to aid debugging if configure makes a mistake. 1179 1180 It was created by cmockery $as_me 0.1.2, which was 1181 generated by GNU Autoconf 2.59. Invocation command line was 1182 1183 $ $0 $@ 1184 1185 _ACEOF 1186 { 1187 cat <<_ASUNAME 1188 ## --------- ## 1189 ## Platform. ## 1190 ## --------- ## 1191 1192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1193 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1194 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1195 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1196 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1197 1198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1199 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1200 1201 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1202 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1204 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1205 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1206 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1207 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1208 1209 _ASUNAME 1210 1211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1212 for as_dir in $PATH 1213 do 1214 IFS=$as_save_IFS 1215 test -z "$as_dir" && as_dir=. 1216 echo "PATH: $as_dir" 1217 done 1218 1219 } >&5 1220 1221 cat >&5 <<_ACEOF 1222 1223 1224 ## ----------- ## 1225 ## Core tests. ## 1226 ## ----------- ## 1227 1228 _ACEOF 1229 1230 1231 # Keep a trace of the command line. 1232 # Strip out --no-create and --no-recursion so they do not pile up. 1233 # Strip out --silent because we don't want to record it for future runs. 1234 # Also quote any args containing shell meta-characters. 1235 # Make two passes to allow for proper duplicate-argument suppression. 1236 ac_configure_args= 1237 ac_configure_args0= 1238 ac_configure_args1= 1239 ac_sep= 1240 ac_must_keep_next=false 1241 for ac_pass in 1 2 1242 do 1243 for ac_arg 1244 do 1245 case $ac_arg in 1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1248 | -silent | --silent | --silen | --sile | --sil) 1249 continue ;; 1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1252 esac 1253 case $ac_pass in 1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1255 2) 1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1257 if test $ac_must_keep_next = true; then 1258 ac_must_keep_next=false # Got value, back to normal. 1259 else 1260 case $ac_arg in 1261 *=* | --config-cache | -C | -disable-* | --disable-* \ 1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1264 | -with-* | --with-* | -without-* | --without-* | --x) 1265 case "$ac_configure_args0 " in 1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1267 esac 1268 ;; 1269 -* ) ac_must_keep_next=true ;; 1270 esac 1271 fi 1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1273 # Get rid of the leading space. 1274 ac_sep=" " 1275 ;; 1276 esac 1277 done 1278 done 1279 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1280 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1281 1282 # When interrupted or exit'd, cleanup temporary files, and complete 1283 # config.log. We remove comments because anyway the quotes in there 1284 # would cause problems or look ugly. 1285 # WARNING: Be sure not to use single quotes in there, as some shells, 1286 # such as our DU 5.0 friend, will then `close' the trap. 1287 trap 'exit_status=$? 1288 # Save into config.log some information that might help in debugging. 1289 { 1290 echo 1291 1292 cat <<\_ASBOX 1293 ## ---------------- ## 1294 ## Cache variables. ## 1295 ## ---------------- ## 1296 _ASBOX 1297 echo 1298 # The following way of writing the cache mishandles newlines in values, 1299 { 1300 (set) 2>&1 | 1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1302 *ac_space=\ *) 1303 sed -n \ 1304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1306 ;; 1307 *) 1308 sed -n \ 1309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1310 ;; 1311 esac; 1312 } 1313 echo 1314 1315 cat <<\_ASBOX 1316 ## ----------------- ## 1317 ## Output variables. ## 1318 ## ----------------- ## 1319 _ASBOX 1320 echo 1321 for ac_var in $ac_subst_vars 1322 do 1323 eval ac_val=$`echo $ac_var` 1324 echo "$ac_var='"'"'$ac_val'"'"'" 1325 done | sort 1326 echo 1327 1328 if test -n "$ac_subst_files"; then 1329 cat <<\_ASBOX 1330 ## ------------- ## 1331 ## Output files. ## 1332 ## ------------- ## 1333 _ASBOX 1334 echo 1335 for ac_var in $ac_subst_files 1336 do 1337 eval ac_val=$`echo $ac_var` 1338 echo "$ac_var='"'"'$ac_val'"'"'" 1339 done | sort 1340 echo 1341 fi 1342 1343 if test -s confdefs.h; then 1344 cat <<\_ASBOX 1345 ## ----------- ## 1346 ## confdefs.h. ## 1347 ## ----------- ## 1348 _ASBOX 1349 echo 1350 sed "/^$/d" confdefs.h | sort 1351 echo 1352 fi 1353 test "$ac_signal" != 0 && 1354 echo "$as_me: caught signal $ac_signal" 1355 echo "$as_me: exit $exit_status" 1356 } >&5 1357 rm -f core *.core && 1358 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1359 exit $exit_status 1360 ' 0 1361 for ac_signal in 1 2 13 15; do 1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1363 done 1364 ac_signal=0 1365 1366 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1367 rm -rf conftest* confdefs.h 1368 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1369 echo >confdefs.h 1370 1371 # Predefined preprocessor variables. 1372 1373 cat >>confdefs.h <<_ACEOF 1374 #define PACKAGE_NAME "$PACKAGE_NAME" 1375 _ACEOF 1376 1377 1378 cat >>confdefs.h <<_ACEOF 1379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1380 _ACEOF 1381 1382 1383 cat >>confdefs.h <<_ACEOF 1384 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1385 _ACEOF 1386 1387 1388 cat >>confdefs.h <<_ACEOF 1389 #define PACKAGE_STRING "$PACKAGE_STRING" 1390 _ACEOF 1391 1392 1393 cat >>confdefs.h <<_ACEOF 1394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1395 _ACEOF 1396 1397 1398 # Let the site file select an alternate cache file if it wants to. 1399 # Prefer explicitly selected file to automatically selected ones. 1400 if test -z "$CONFIG_SITE"; then 1401 if test "x$prefix" != xNONE; then 1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1403 else 1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1405 fi 1406 fi 1407 for ac_site_file in $CONFIG_SITE; do 1408 if test -r "$ac_site_file"; then 1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1410 echo "$as_me: loading site script $ac_site_file" >&6;} 1411 sed 's/^/| /' "$ac_site_file" >&5 1412 . "$ac_site_file" 1413 fi 1414 done 1415 1416 if test -r "$cache_file"; then 1417 # Some versions of bash will fail to source /dev/null (special 1418 # files actually), so we avoid doing that. 1419 if test -f "$cache_file"; then 1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1421 echo "$as_me: loading cache $cache_file" >&6;} 1422 case $cache_file in 1423 [\\/]* | ?:[\\/]* ) . $cache_file;; 1424 *) . ./$cache_file;; 1425 esac 1426 fi 1427 else 1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1429 echo "$as_me: creating cache $cache_file" >&6;} 1430 >$cache_file 1431 fi 1432 1433 # Check that the precious variables saved in the cache have kept the same 1434 # value. 1435 ac_cache_corrupted=false 1436 for ac_var in `(set) 2>&1 | 1437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1438 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1439 eval ac_new_set=\$ac_env_${ac_var}_set 1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1441 eval ac_new_val="\$ac_env_${ac_var}_value" 1442 case $ac_old_set,$ac_new_set in 1443 set,) 1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1445 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1446 ac_cache_corrupted=: ;; 1447 ,set) 1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1449 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1450 ac_cache_corrupted=: ;; 1451 ,);; 1452 *) 1453 if test "x$ac_old_val" != "x$ac_new_val"; then 1454 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1455 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1456 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1457 echo "$as_me: former value: $ac_old_val" >&2;} 1458 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1459 echo "$as_me: current value: $ac_new_val" >&2;} 1460 ac_cache_corrupted=: 1461 fi;; 1462 esac 1463 # Pass precious variables to config.status. 1464 if test "$ac_new_set" = set; then 1465 case $ac_new_val in 1466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1467 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1468 *) ac_arg=$ac_var=$ac_new_val ;; 1469 esac 1470 case " $ac_configure_args " in 1471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1472 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1473 esac 1474 fi 1475 done 1476 if $ac_cache_corrupted; then 1477 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1478 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1479 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1480 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1481 { (exit 1); exit 1; }; } 1482 fi 1483 1484 ac_ext=c 1485 ac_cpp='$CPP $CPPFLAGS' 1486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1488 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 # The argument here is just something that should be in the current directory 1517 # (for sanity checking) 1518 1519 am__api_version="1.9" 1520 ac_aux_dir= 1521 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1522 if test -f $ac_dir/install-sh; then 1523 ac_aux_dir=$ac_dir 1524 ac_install_sh="$ac_aux_dir/install-sh -c" 1525 break 1526 elif test -f $ac_dir/install.sh; then 1527 ac_aux_dir=$ac_dir 1528 ac_install_sh="$ac_aux_dir/install.sh -c" 1529 break 1530 elif test -f $ac_dir/shtool; then 1531 ac_aux_dir=$ac_dir 1532 ac_install_sh="$ac_aux_dir/shtool install -c" 1533 break 1534 fi 1535 done 1536 if test -z "$ac_aux_dir"; then 1537 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1538 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1539 { (exit 1); exit 1; }; } 1540 fi 1541 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1542 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1543 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1544 1545 # Find a good install program. We prefer a C program (faster), 1546 # so one script is as good as another. But avoid the broken or 1547 # incompatible versions: 1548 # SysV /etc/install, /usr/sbin/install 1549 # SunOS /usr/etc/install 1550 # IRIX /sbin/install 1551 # AIX /bin/install 1552 # AmigaOS /C/install, which installs bootblocks on floppy discs 1553 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1554 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 1555 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1556 # OS/2's system install, which has a completely different semantic 1557 # ./install, which can be erroneously created by make from ./install.sh. 1558 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1559 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1560 if test -z "$INSTALL"; then 1561 if test "${ac_cv_path_install+set}" = set; then 1562 echo $ECHO_N "(cached) $ECHO_C" >&6 1563 else 1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1565 for as_dir in $PATH 1566 do 1567 IFS=$as_save_IFS 1568 test -z "$as_dir" && as_dir=. 1569 # Account for people who put trailing slashes in PATH elements. 1570 case $as_dir/ in 1571 ./ | .// | /cC/* | \ 1572 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1573 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1574 /usr/ucb/* ) ;; 1575 *) 1576 # OSF1 and SCO ODT 3.0 have their own names for install. 1577 # Don't use installbsd from OSF since it installs stuff as root 1578 # by default. 1579 for ac_prog in ginstall scoinst install; do 1580 for ac_exec_ext in '' $ac_executable_extensions; do 1581 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1582 if test $ac_prog = install && 1583 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1584 # AIX install. It has an incompatible calling convention. 1585 : 1586 elif test $ac_prog = install && 1587 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1588 # program-specific install script used by HP pwplus--don't use. 1589 : 1590 else 1591 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1592 break 3 1593 fi 1594 fi 1595 done 1596 done 1597 ;; 1598 esac 1599 done 1600 1601 1602 fi 1603 if test "${ac_cv_path_install+set}" = set; then 1604 INSTALL=$ac_cv_path_install 1605 else 1606 # As a last resort, use the slow shell script. We don't cache a 1607 # path for INSTALL within a source directory, because that will 1608 # break other packages using the cache if that directory is 1609 # removed, or if the path is relative. 1610 INSTALL=$ac_install_sh 1611 fi 1612 fi 1613 echo "$as_me:$LINENO: result: $INSTALL" >&5 1614 echo "${ECHO_T}$INSTALL" >&6 1615 1616 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1617 # It thinks the first close brace ends the variable substitution. 1618 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1619 1620 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1621 1622 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1623 1624 echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1625 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1626 # Just in case 1627 sleep 1 1628 echo timestamp > conftest.file 1629 # Do `set' in a subshell so we don't clobber the current shell's 1630 # arguments. Must try -L first in case configure is actually a 1631 # symlink; some systems play weird games with the mod time of symlinks 1632 # (eg FreeBSD returns the mod time of the symlink's containing 1633 # directory). 1634 if ( 1635 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1636 if test "$*" = "X"; then 1637 # -L didn't work. 1638 set X `ls -t $srcdir/configure conftest.file` 1639 fi 1640 rm -f conftest.file 1641 if test "$*" != "X $srcdir/configure conftest.file" \ 1642 && test "$*" != "X conftest.file $srcdir/configure"; then 1643 1644 # If neither matched, then we have a broken ls. This can happen 1645 # if, for instance, CONFIG_SHELL is bash and it inherits a 1646 # broken ls alias from the environment. This has actually 1647 # happened. Such a system could not be considered "sane". 1648 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1649 alias in your environment" >&5 1650 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1651 alias in your environment" >&2;} 1652 { (exit 1); exit 1; }; } 1653 fi 1654 1655 test "$2" = conftest.file 1656 ) 1657 then 1658 # Ok. 1659 : 1660 else 1661 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1662 Check your system clock" >&5 1663 echo "$as_me: error: newly created file is older than distributed files! 1664 Check your system clock" >&2;} 1665 { (exit 1); exit 1; }; } 1666 fi 1667 echo "$as_me:$LINENO: result: yes" >&5 1668 echo "${ECHO_T}yes" >&6 1669 test "$program_prefix" != NONE && 1670 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1671 # Use a double $ so make ignores it. 1672 test "$program_suffix" != NONE && 1673 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1674 # Double any \ or $. echo might interpret backslashes. 1675 # By default was `s,x,x', remove it if useless. 1676 cat <<\_ACEOF >conftest.sed 1677 s/[\\$]/&&/g;s/;s,x,x,$// 1678 _ACEOF 1679 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1680 rm conftest.sed 1681 1682 # expand $ac_aux_dir to an absolute path 1683 am_aux_dir=`cd $ac_aux_dir && pwd` 1684 1685 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1686 # Use eval to expand $SHELL 1687 if eval "$MISSING --run true"; then 1688 am_missing_run="$MISSING --run " 1689 else 1690 am_missing_run= 1691 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1692 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1693 fi 1694 1695 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1696 # We used to keeping the `.' as first argument, in order to 1697 # allow $(mkdir_p) to be used without argument. As in 1698 # $(mkdir_p) $(somedir) 1699 # where $(somedir) is conditionally defined. However this is wrong 1700 # for two reasons: 1701 # 1. if the package is installed by a user who cannot write `.' 1702 # make install will fail, 1703 # 2. the above comment should most certainly read 1704 # $(mkdir_p) $(DESTDIR)$(somedir) 1705 # so it does not work when $(somedir) is undefined and 1706 # $(DESTDIR) is not. 1707 # To support the latter case, we have to write 1708 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1709 # so the `.' trick is pointless. 1710 mkdir_p='mkdir -p --' 1711 else 1712 # On NextStep and OpenStep, the `mkdir' command does not 1713 # recognize any option. It will interpret all options as 1714 # directories to create, and then abort because `.' already 1715 # exists. 1716 for d in ./-p ./--version; 1717 do 1718 test -d $d && rmdir $d 1719 done 1720 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1721 if test -f "$ac_aux_dir/mkinstalldirs"; then 1722 mkdir_p='$(mkinstalldirs)' 1723 else 1724 mkdir_p='$(install_sh) -d' 1725 fi 1726 fi 1727 1728 for ac_prog in gawk mawk nawk awk 1729 do 1730 # Extract the first word of "$ac_prog", so it can be a program name with args. 1731 set dummy $ac_prog; ac_word=$2 1732 echo "$as_me:$LINENO: checking for $ac_word" >&5 1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1734 if test "${ac_cv_prog_AWK+set}" = set; then 1735 echo $ECHO_N "(cached) $ECHO_C" >&6 1736 else 1737 if test -n "$AWK"; then 1738 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1739 else 1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1741 for as_dir in $PATH 1742 do 1743 IFS=$as_save_IFS 1744 test -z "$as_dir" && as_dir=. 1745 for ac_exec_ext in '' $ac_executable_extensions; do 1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1747 ac_cv_prog_AWK="$ac_prog" 1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1749 break 2 1750 fi 1751 done 1752 done 1753 1754 fi 1755 fi 1756 AWK=$ac_cv_prog_AWK 1757 if test -n "$AWK"; then 1758 echo "$as_me:$LINENO: result: $AWK" >&5 1759 echo "${ECHO_T}$AWK" >&6 1760 else 1761 echo "$as_me:$LINENO: result: no" >&5 1762 echo "${ECHO_T}no" >&6 1763 fi 1764 1765 test -n "$AWK" && break 1766 done 1767 1768 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1769 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1770 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1771 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1772 echo $ECHO_N "(cached) $ECHO_C" >&6 1773 else 1774 cat >conftest.make <<\_ACEOF 1775 all: 1776 @echo 'ac_maketemp="$(MAKE)"' 1777 _ACEOF 1778 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1779 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1780 if test -n "$ac_maketemp"; then 1781 eval ac_cv_prog_make_${ac_make}_set=yes 1782 else 1783 eval ac_cv_prog_make_${ac_make}_set=no 1784 fi 1785 rm -f conftest.make 1786 fi 1787 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1788 echo "$as_me:$LINENO: result: yes" >&5 1789 echo "${ECHO_T}yes" >&6 1790 SET_MAKE= 1791 else 1792 echo "$as_me:$LINENO: result: no" >&5 1793 echo "${ECHO_T}no" >&6 1794 SET_MAKE="MAKE=${MAKE-make}" 1795 fi 1796 1797 rm -rf .tst 2>/dev/null 1798 mkdir .tst 2>/dev/null 1799 if test -d .tst; then 1800 am__leading_dot=. 1801 else 1802 am__leading_dot=_ 1803 fi 1804 rmdir .tst 2>/dev/null 1805 1806 # test to see if srcdir already configured 1807 if test "`cd $srcdir && pwd`" != "`pwd`" && 1808 test -f $srcdir/config.status; then 1809 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1810 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1811 { (exit 1); exit 1; }; } 1812 fi 1813 1814 # test whether we have cygpath 1815 if test -z "$CYGPATH_W"; then 1816 if (cygpath --version) >/dev/null 2>/dev/null; then 1817 CYGPATH_W='cygpath -w' 1818 else 1819 CYGPATH_W=echo 1820 fi 1821 fi 1822 1823 1824 # Define the identity of the package. 1825 PACKAGE='cmockery' 1826 VERSION='0.1.2' 1827 1828 1829 cat >>confdefs.h <<_ACEOF 1830 #define PACKAGE "$PACKAGE" 1831 _ACEOF 1832 1833 1834 cat >>confdefs.h <<_ACEOF 1835 #define VERSION "$VERSION" 1836 _ACEOF 1837 1838 # Some tools Automake needs. 1839 1840 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1841 1842 1843 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1844 1845 1846 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1847 1848 1849 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1850 1851 1852 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1853 1854 install_sh=${install_sh-"$am_aux_dir/install-sh"} 1855 1856 # Installed binaries are usually stripped using `strip' when the user 1857 # run `make install-strip'. However `strip' might not be the right 1858 # tool to use in cross-compilation environments, therefore Automake 1859 # will honor the `STRIP' environment variable to overrule this program. 1860 if test "$cross_compiling" != no; then 1861 if test -n "$ac_tool_prefix"; then 1862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1863 set dummy ${ac_tool_prefix}strip; ac_word=$2 1864 echo "$as_me:$LINENO: checking for $ac_word" >&5 1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1866 if test "${ac_cv_prog_STRIP+set}" = set; then 1867 echo $ECHO_N "(cached) $ECHO_C" >&6 1868 else 1869 if test -n "$STRIP"; then 1870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1871 else 1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1873 for as_dir in $PATH 1874 do 1875 IFS=$as_save_IFS 1876 test -z "$as_dir" && as_dir=. 1877 for ac_exec_ext in '' $ac_executable_extensions; do 1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1879 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1881 break 2 1882 fi 1883 done 1884 done 1885 1886 fi 1887 fi 1888 STRIP=$ac_cv_prog_STRIP 1889 if test -n "$STRIP"; then 1890 echo "$as_me:$LINENO: result: $STRIP" >&5 1891 echo "${ECHO_T}$STRIP" >&6 1892 else 1893 echo "$as_me:$LINENO: result: no" >&5 1894 echo "${ECHO_T}no" >&6 1895 fi 1896 1897 fi 1898 if test -z "$ac_cv_prog_STRIP"; then 1899 ac_ct_STRIP=$STRIP 1900 # Extract the first word of "strip", so it can be a program name with args. 1901 set dummy strip; ac_word=$2 1902 echo "$as_me:$LINENO: checking for $ac_word" >&5 1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1904 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1905 echo $ECHO_N "(cached) $ECHO_C" >&6 1906 else 1907 if test -n "$ac_ct_STRIP"; then 1908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1909 else 1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1911 for as_dir in $PATH 1912 do 1913 IFS=$as_save_IFS 1914 test -z "$as_dir" && as_dir=. 1915 for ac_exec_ext in '' $ac_executable_extensions; do 1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1917 ac_cv_prog_ac_ct_STRIP="strip" 1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1919 break 2 1920 fi 1921 done 1922 done 1923 1924 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1925 fi 1926 fi 1927 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1928 if test -n "$ac_ct_STRIP"; then 1929 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1930 echo "${ECHO_T}$ac_ct_STRIP" >&6 1931 else 1932 echo "$as_me:$LINENO: result: no" >&5 1933 echo "${ECHO_T}no" >&6 1934 fi 1935 1936 STRIP=$ac_ct_STRIP 1937 else 1938 STRIP="$ac_cv_prog_STRIP" 1939 fi 1940 1941 fi 1942 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1943 1944 # We need awk for the "check" target. The system "awk" is bad on 1945 # some platforms. 1946 # Always define AMTAR for backward compatibility. 1947 1948 AMTAR=${AMTAR-"${am_missing_run}tar"} 1949 1950 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1951 1952 1953 1954 1955 1956 ac_config_headers="$ac_config_headers src/config.h" 1957 1958 1959 # Checks for programs. 1960 ac_ext=c 1961 ac_cpp='$CPP $CPPFLAGS' 1962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1964 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1965 if test -n "$ac_tool_prefix"; then 1966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1967 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1968 echo "$as_me:$LINENO: checking for $ac_word" >&5 1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1970 if test "${ac_cv_prog_CC+set}" = set; then 1971 echo $ECHO_N "(cached) $ECHO_C" >&6 1972 else 1973 if test -n "$CC"; then 1974 ac_cv_prog_CC="$CC" # Let the user override the test. 1975 else 1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1977 for as_dir in $PATH 1978 do 1979 IFS=$as_save_IFS 1980 test -z "$as_dir" && as_dir=. 1981 for ac_exec_ext in '' $ac_executable_extensions; do 1982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1983 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1985 break 2 1986 fi 1987 done 1988 done 1989 1990 fi 1991 fi 1992 CC=$ac_cv_prog_CC 1993 if test -n "$CC"; then 1994 echo "$as_me:$LINENO: result: $CC" >&5 1995 echo "${ECHO_T}$CC" >&6 1996 else 1997 echo "$as_me:$LINENO: result: no" >&5 1998 echo "${ECHO_T}no" >&6 1999 fi 2000 2001 fi 2002 if test -z "$ac_cv_prog_CC"; then 2003 ac_ct_CC=$CC 2004 # Extract the first word of "gcc", so it can be a program name with args. 2005 set dummy gcc; ac_word=$2 2006 echo "$as_me:$LINENO: checking for $ac_word" >&5 2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2008 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2009 echo $ECHO_N "(cached) $ECHO_C" >&6 2010 else 2011 if test -n "$ac_ct_CC"; then 2012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2013 else 2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2015 for as_dir in $PATH 2016 do 2017 IFS=$as_save_IFS 2018 test -z "$as_dir" && as_dir=. 2019 for ac_exec_ext in '' $ac_executable_extensions; do 2020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2021 ac_cv_prog_ac_ct_CC="gcc" 2022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2023 break 2 2024 fi 2025 done 2026 done 2027 2028 fi 2029 fi 2030 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2031 if test -n "$ac_ct_CC"; then 2032 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2033 echo "${ECHO_T}$ac_ct_CC" >&6 2034 else 2035 echo "$as_me:$LINENO: result: no" >&5 2036 echo "${ECHO_T}no" >&6 2037 fi 2038 2039 CC=$ac_ct_CC 2040 else 2041 CC="$ac_cv_prog_CC" 2042 fi 2043 2044 if test -z "$CC"; then 2045 if test -n "$ac_tool_prefix"; then 2046 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2047 set dummy ${ac_tool_prefix}cc; ac_word=$2 2048 echo "$as_me:$LINENO: checking for $ac_word" >&5 2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2050 if test "${ac_cv_prog_CC+set}" = set; then 2051 echo $ECHO_N "(cached) $ECHO_C" >&6 2052 else 2053 if test -n "$CC"; then 2054 ac_cv_prog_CC="$CC" # Let the user override the test. 2055 else 2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2057 for as_dir in $PATH 2058 do 2059 IFS=$as_save_IFS 2060 test -z "$as_dir" && as_dir=. 2061 for ac_exec_ext in '' $ac_executable_extensions; do 2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2063 ac_cv_prog_CC="${ac_tool_prefix}cc" 2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2065 break 2 2066 fi 2067 done 2068 done 2069 2070 fi 2071 fi 2072 CC=$ac_cv_prog_CC 2073 if test -n "$CC"; then 2074 echo "$as_me:$LINENO: result: $CC" >&5 2075 echo "${ECHO_T}$CC" >&6 2076 else 2077 echo "$as_me:$LINENO: result: no" >&5 2078 echo "${ECHO_T}no" >&6 2079 fi 2080 2081 fi 2082 if test -z "$ac_cv_prog_CC"; then 2083 ac_ct_CC=$CC 2084 # Extract the first word of "cc", so it can be a program name with args. 2085 set dummy cc; ac_word=$2 2086 echo "$as_me:$LINENO: checking for $ac_word" >&5 2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2089 echo $ECHO_N "(cached) $ECHO_C" >&6 2090 else 2091 if test -n "$ac_ct_CC"; then 2092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2093 else 2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2095 for as_dir in $PATH 2096 do 2097 IFS=$as_save_IFS 2098 test -z "$as_dir" && as_dir=. 2099 for ac_exec_ext in '' $ac_executable_extensions; do 2100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2101 ac_cv_prog_ac_ct_CC="cc" 2102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2103 break 2 2104 fi 2105 done 2106 done 2107 2108 fi 2109 fi 2110 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2111 if test -n "$ac_ct_CC"; then 2112 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2113 echo "${ECHO_T}$ac_ct_CC" >&6 2114 else 2115 echo "$as_me:$LINENO: result: no" >&5 2116 echo "${ECHO_T}no" >&6 2117 fi 2118 2119 CC=$ac_ct_CC 2120 else 2121 CC="$ac_cv_prog_CC" 2122 fi 2123 2124 fi 2125 if test -z "$CC"; then 2126 # Extract the first word of "cc", so it can be a program name with args. 2127 set dummy cc; ac_word=$2 2128 echo "$as_me:$LINENO: checking for $ac_word" >&5 2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2130 if test "${ac_cv_prog_CC+set}" = set; then 2131 echo $ECHO_N "(cached) $ECHO_C" >&6 2132 else 2133 if test -n "$CC"; then 2134 ac_cv_prog_CC="$CC" # Let the user override the test. 2135 else 2136 ac_prog_rejected=no 2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2138 for as_dir in $PATH 2139 do 2140 IFS=$as_save_IFS 2141 test -z "$as_dir" && as_dir=. 2142 for ac_exec_ext in '' $ac_executable_extensions; do 2143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2144 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2145 ac_prog_rejected=yes 2146 continue 2147 fi 2148 ac_cv_prog_CC="cc" 2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2150 break 2 2151 fi 2152 done 2153 done 2154 2155 if test $ac_prog_rejected = yes; then 2156 # We found a bogon in the path, so make sure we never use it. 2157 set dummy $ac_cv_prog_CC 2158 shift 2159 if test $# != 0; then 2160 # We chose a different compiler from the bogus one. 2161 # However, it has the same basename, so the bogon will be chosen 2162 # first if we set CC to just the basename; use the full file name. 2163 shift 2164 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2165 fi 2166 fi 2167 fi 2168 fi 2169 CC=$ac_cv_prog_CC 2170 if test -n "$CC"; then 2171 echo "$as_me:$LINENO: result: $CC" >&5 2172 echo "${ECHO_T}$CC" >&6 2173 else 2174 echo "$as_me:$LINENO: result: no" >&5 2175 echo "${ECHO_T}no" >&6 2176 fi 2177 2178 fi 2179 if test -z "$CC"; then 2180 if test -n "$ac_tool_prefix"; then 2181 for ac_prog in cl 2182 do 2183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2185 echo "$as_me:$LINENO: checking for $ac_word" >&5 2186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2187 if test "${ac_cv_prog_CC+set}" = set; then 2188 echo $ECHO_N "(cached) $ECHO_C" >&6 2189 else 2190 if test -n "$CC"; then 2191 ac_cv_prog_CC="$CC" # Let the user override the test. 2192 else 2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2194 for as_dir in $PATH 2195 do 2196 IFS=$as_save_IFS 2197 test -z "$as_dir" && as_dir=. 2198 for ac_exec_ext in '' $ac_executable_extensions; do 2199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2200 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2202 break 2 2203 fi 2204 done 2205 done 2206 2207 fi 2208 fi 2209 CC=$ac_cv_prog_CC 2210 if test -n "$CC"; then 2211 echo "$as_me:$LINENO: result: $CC" >&5 2212 echo "${ECHO_T}$CC" >&6 2213 else 2214 echo "$as_me:$LINENO: result: no" >&5 2215 echo "${ECHO_T}no" >&6 2216 fi 2217 2218 test -n "$CC" && break 2219 done 2220 fi 2221 if test -z "$CC"; then 2222 ac_ct_CC=$CC 2223 for ac_prog in cl 2224 do 2225 # Extract the first word of "$ac_prog", so it can be a program name with args. 2226 set dummy $ac_prog; ac_word=$2 2227 echo "$as_me:$LINENO: checking for $ac_word" >&5 2228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2230 echo $ECHO_N "(cached) $ECHO_C" >&6 2231 else 2232 if test -n "$ac_ct_CC"; then 2233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2234 else 2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2236 for as_dir in $PATH 2237 do 2238 IFS=$as_save_IFS 2239 test -z "$as_dir" && as_dir=. 2240 for ac_exec_ext in '' $ac_executable_extensions; do 2241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2242 ac_cv_prog_ac_ct_CC="$ac_prog" 2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2244 break 2 2245 fi 2246 done 2247 done 2248 2249 fi 2250 fi 2251 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2252 if test -n "$ac_ct_CC"; then 2253 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2254 echo "${ECHO_T}$ac_ct_CC" >&6 2255 else 2256 echo "$as_me:$LINENO: result: no" >&5 2257 echo "${ECHO_T}no" >&6 2258 fi 2259 2260 test -n "$ac_ct_CC" && break 2261 done 2262 2263 CC=$ac_ct_CC 2264 fi 2265 2266 fi 2267 2268 2269 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2270 See \`config.log' for more details." >&5 2271 echo "$as_me: error: no acceptable C compiler found in \$PATH 2272 See \`config.log' for more details." >&2;} 2273 { (exit 1); exit 1; }; } 2274 2275 # Provide some information about the compiler. 2276 echo "$as_me:$LINENO:" \ 2277 "checking for C compiler version" >&5 2278 ac_compiler=`set X $ac_compile; echo $2` 2279 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2280 (eval $ac_compiler --version </dev/null >&5) 2>&5 2281 ac_status=$? 2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2283 (exit $ac_status); } 2284 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2285 (eval $ac_compiler -v </dev/null >&5) 2>&5 2286 ac_status=$? 2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2288 (exit $ac_status); } 2289 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2290 (eval $ac_compiler -V </dev/null >&5) 2>&5 2291 ac_status=$? 2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2293 (exit $ac_status); } 2294 2295 cat >conftest.$ac_ext <<_ACEOF 2296 /* confdefs.h. */ 2297 _ACEOF 2298 cat confdefs.h >>conftest.$ac_ext 2299 cat >>conftest.$ac_ext <<_ACEOF 2300 /* end confdefs.h. */ 2301 2302 int 2303 main () 2304 { 2305 2306 ; 2307 return 0; 2308 } 2309 _ACEOF 2310 ac_clean_files_save=$ac_clean_files 2311 ac_clean_files="$ac_clean_files a.out a.exe b.out" 2312 # Try to create an executable without -o first, disregard a.out. 2313 # It will help us diagnose broken compilers, and finding out an intuition 2314 # of exeext. 2315 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2316 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2317 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2318 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2319 (eval $ac_link_default) 2>&5 2320 ac_status=$? 2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2322 (exit $ac_status); }; then 2323 # Find the output, starting from the most likely. This scheme is 2324 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 2325 # resort. 2326 2327 # Be careful to initialize this variable, since it used to be cached. 2328 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2329 ac_cv_exeext= 2330 # b.out is created by i960 compilers. 2331 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2332 do 2333 test -f "$ac_file" || continue 2334 case $ac_file in 2335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2336 ;; 2337 conftest.$ac_ext ) 2338 # This is the source file. 2339 ;; 2340 [ab].out ) 2341 # We found the default executable, but exeext='' is most 2342 # certainly right. 2343 break;; 2344 *.* ) 2345 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2346 # FIXME: I believe we export ac_cv_exeext for Libtool, 2347 # but it would be cool to find out if it's true. Does anybody 2348 # maintain Libtool? --akim. 2349 export ac_cv_exeext 2350 break;; 2351 * ) 2352 break;; 2353 esac 2354 done 2355 else 2356 echo "$as_me: failed program was:" >&5 2357 sed 's/^/| /' conftest.$ac_ext >&5 2358 2359 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2360 See \`config.log' for more details." >&5 2361 echo "$as_me: error: C compiler cannot create executables 2362 See \`config.log' for more details." >&2;} 2363 { (exit 77); exit 77; }; } 2364 fi 2365 2366 ac_exeext=$ac_cv_exeext 2367 echo "$as_me:$LINENO: result: $ac_file" >&5 2368 echo "${ECHO_T}$ac_file" >&6 2369 2370 # Check the compiler produces executables we can run. If not, either 2371 # the compiler is broken, or we cross compile. 2372 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2373 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2374 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2375 # If not cross compiling, check that we can run a simple program. 2376 if test "$cross_compiling" != yes; then 2377 if { ac_try='./$ac_file' 2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2379 (eval $ac_try) 2>&5 2380 ac_status=$? 2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2382 (exit $ac_status); }; }; then 2383 cross_compiling=no 2384 else 2385 if test "$cross_compiling" = maybe; then 2386 cross_compiling=yes 2387 else 2388 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2389 If you meant to cross compile, use \`--host'. 2390 See \`config.log' for more details." >&5 2391 echo "$as_me: error: cannot run C compiled programs. 2392 If you meant to cross compile, use \`--host'. 2393 See \`config.log' for more details." >&2;} 2394 { (exit 1); exit 1; }; } 2395 fi 2396 fi 2397 fi 2398 echo "$as_me:$LINENO: result: yes" >&5 2399 echo "${ECHO_T}yes" >&6 2400 2401 rm -f a.out a.exe conftest$ac_cv_exeext b.out 2402 ac_clean_files=$ac_clean_files_save 2403 # Check the compiler produces executables we can run. If not, either 2404 # the compiler is broken, or we cross compile. 2405 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2406 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2407 echo "$as_me:$LINENO: result: $cross_compiling" >&5 2408 echo "${ECHO_T}$cross_compiling" >&6 2409 2410 echo "$as_me:$LINENO: checking for suffix of executables" >&5 2411 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2413 (eval $ac_link) 2>&5 2414 ac_status=$? 2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2416 (exit $ac_status); }; then 2417 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2418 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2419 # work properly (i.e., refer to `conftest.exe'), while it won't with 2420 # `rm'. 2421 for ac_file in conftest.exe conftest conftest.*; do 2422 test -f "$ac_file" || continue 2423 case $ac_file in 2424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2425 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2426 export ac_cv_exeext 2427 break;; 2428 * ) break;; 2429 esac 2430 done 2431 else 2432 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2433 See \`config.log' for more details." >&5 2434 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2435 See \`config.log' for more details." >&2;} 2436 { (exit 1); exit 1; }; } 2437 fi 2438 2439 rm -f conftest$ac_cv_exeext 2440 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2441 echo "${ECHO_T}$ac_cv_exeext" >&6 2442 2443 rm -f conftest.$ac_ext 2444 EXEEXT=$ac_cv_exeext 2445 ac_exeext=$EXEEXT 2446 echo "$as_me:$LINENO: checking for suffix of object files" >&5 2447 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2448 if test "${ac_cv_objext+set}" = set; then 2449 echo $ECHO_N "(cached) $ECHO_C" >&6 2450 else 2451 cat >conftest.$ac_ext <<_ACEOF 2452 /* confdefs.h. */ 2453 _ACEOF 2454 cat confdefs.h >>conftest.$ac_ext 2455 cat >>conftest.$ac_ext <<_ACEOF 2456 /* end confdefs.h. */ 2457 2458 int 2459 main () 2460 { 2461 2462 ; 2463 return 0; 2464 } 2465 _ACEOF 2466 rm -f conftest.o conftest.obj 2467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2468 (eval $ac_compile) 2>&5 2469 ac_status=$? 2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2471 (exit $ac_status); }; then 2472 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2473 case $ac_file in 2474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2475 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2476 break;; 2477 esac 2478 done 2479 else 2480 echo "$as_me: failed program was:" >&5 2481 sed 's/^/| /' conftest.$ac_ext >&5 2482 2483 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2484 See \`config.log' for more details." >&5 2485 echo "$as_me: error: cannot compute suffix of object files: cannot compile 2486 See \`config.log' for more details." >&2;} 2487 { (exit 1); exit 1; }; } 2488 fi 2489 2490 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2491 fi 2492 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2493 echo "${ECHO_T}$ac_cv_objext" >&6 2494 OBJEXT=$ac_cv_objext 2495 ac_objext=$OBJEXT 2496 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2497 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2498 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2499 echo $ECHO_N "(cached) $ECHO_C" >&6 2500 else 2501 cat >conftest.$ac_ext <<_ACEOF 2502 /* confdefs.h. */ 2503 _ACEOF 2504 cat confdefs.h >>conftest.$ac_ext 2505 cat >>conftest.$ac_ext <<_ACEOF 2506 /* end confdefs.h. */ 2507 2508 int 2509 main () 2510 { 2511 #ifndef __GNUC__ 2512 choke me 2513 #endif 2514 2515 ; 2516 return 0; 2517 } 2518 _ACEOF 2519 rm -f conftest.$ac_objext 2520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2521 (eval $ac_compile) 2>conftest.er1 2522 ac_status=$? 2523 grep -v '^ *+' conftest.er1 >conftest.err 2524 rm -f conftest.er1 2525 cat conftest.err >&5 2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2527 (exit $ac_status); } && 2528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2530 (eval $ac_try) 2>&5 2531 ac_status=$? 2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2533 (exit $ac_status); }; } && 2534 { ac_try='test -s conftest.$ac_objext' 2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2536 (eval $ac_try) 2>&5 2537 ac_status=$? 2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2539 (exit $ac_status); }; }; then 2540 ac_compiler_gnu=yes 2541 else 2542 echo "$as_me: failed program was:" >&5 2543 sed 's/^/| /' conftest.$ac_ext >&5 2544 2545 ac_compiler_gnu=no 2546 fi 2547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2548 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2549 2550 fi 2551 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2552 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2553 GCC=`test $ac_compiler_gnu = yes && echo yes` 2554 ac_test_CFLAGS=${CFLAGS+set} 2555 ac_save_CFLAGS=$CFLAGS 2556 CFLAGS="-g" 2557 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2558 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2559 if test "${ac_cv_prog_cc_g+set}" = set; then 2560 echo $ECHO_N "(cached) $ECHO_C" >&6 2561 else 2562 cat >conftest.$ac_ext <<_ACEOF 2563 /* confdefs.h. */ 2564 _ACEOF 2565 cat confdefs.h >>conftest.$ac_ext 2566 cat >>conftest.$ac_ext <<_ACEOF 2567 /* end confdefs.h. */ 2568 2569 int 2570 main () 2571 { 2572 2573 ; 2574 return 0; 2575 } 2576 _ACEOF 2577 rm -f conftest.$ac_objext 2578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2579 (eval $ac_compile) 2>conftest.er1 2580 ac_status=$? 2581 grep -v '^ *+' conftest.er1 >conftest.err 2582 rm -f conftest.er1 2583 cat conftest.err >&5 2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2585 (exit $ac_status); } && 2586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2588 (eval $ac_try) 2>&5 2589 ac_status=$? 2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2591 (exit $ac_status); }; } && 2592 { ac_try='test -s conftest.$ac_objext' 2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2594 (eval $ac_try) 2>&5 2595 ac_status=$? 2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2597 (exit $ac_status); }; }; then 2598 ac_cv_prog_cc_g=yes 2599 else 2600 echo "$as_me: failed program was:" >&5 2601 sed 's/^/| /' conftest.$ac_ext >&5 2602 2603 ac_cv_prog_cc_g=no 2604 fi 2605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2606 fi 2607 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2608 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2609 if test "$ac_test_CFLAGS" = set; then 2610 CFLAGS=$ac_save_CFLAGS 2611 elif test $ac_cv_prog_cc_g = yes; then 2612 if test "$GCC" = yes; then 2613 CFLAGS="-g -O2" 2614 else 2615 CFLAGS="-g" 2616 fi 2617 else 2618 if test "$GCC" = yes; then 2619 CFLAGS="-O2" 2620 else 2621 CFLAGS= 2622 fi 2623 fi 2624 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2625 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2626 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2627 echo $ECHO_N "(cached) $ECHO_C" >&6 2628 else 2629 ac_cv_prog_cc_stdc=no 2630 ac_save_CC=$CC 2631 cat >conftest.$ac_ext <<_ACEOF 2632 /* confdefs.h. */ 2633 _ACEOF 2634 cat confdefs.h >>conftest.$ac_ext 2635 cat >>conftest.$ac_ext <<_ACEOF 2636 /* end confdefs.h. */ 2637 #include <stdarg.h> 2638 #include <stdio.h> 2639 #include <sys/types.h> 2640 #include <sys/stat.h> 2641 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2642 struct buf { int x; }; 2643 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2644 static char *e (p, i) 2645 char **p; 2646 int i; 2647 { 2648 return p[i]; 2649 } 2650 static char *f (char * (*g) (char **, int), char **p, ...) 2651 { 2652 char *s; 2653 va_list v; 2654 va_start (v,p); 2655 s = g (p, va_arg (v,int)); 2656 va_end (v); 2657 return s; 2658 } 2659 2660 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2661 function prototypes and stuff, but not '\xHH' hex character constants. 2662 These don't provoke an error unfortunately, instead are silently treated 2663 as 'x'. The following induces an error, until -std1 is added to get 2664 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2665 array size at least. It's necessary to write '\x00'==0 to get something 2666 that's true only with -std1. */ 2667 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2668 2669 int test (int i, double x); 2670 struct s1 {int (*f) (int a);}; 2671 struct s2 {int (*f) (double a);}; 2672 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2673 int argc; 2674 char **argv; 2675 int 2676 main () 2677 { 2678 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2679 ; 2680 return 0; 2681 } 2682 _ACEOF 2683 # Don't try gcc -ansi; that turns off useful extensions and 2684 # breaks some systems' header files. 2685 # AIX -qlanglvl=ansi 2686 # Ultrix and OSF/1 -std1 2687 # HP-UX 10.20 and later -Ae 2688 # HP-UX older versions -Aa -D_HPUX_SOURCE 2689 # SVR4 -Xc -D__EXTENSIONS__ 2690 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2691 do 2692 CC="$ac_save_CC $ac_arg" 2693 rm -f conftest.$ac_objext 2694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2695 (eval $ac_compile) 2>conftest.er1 2696 ac_status=$? 2697 grep -v '^ *+' conftest.er1 >conftest.err 2698 rm -f conftest.er1 2699 cat conftest.err >&5 2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2701 (exit $ac_status); } && 2702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2704 (eval $ac_try) 2>&5 2705 ac_status=$? 2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2707 (exit $ac_status); }; } && 2708 { ac_try='test -s conftest.$ac_objext' 2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2710 (eval $ac_try) 2>&5 2711 ac_status=$? 2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2713 (exit $ac_status); }; }; then 2714 ac_cv_prog_cc_stdc=$ac_arg 2715 break 2716 else 2717 echo "$as_me: failed program was:" >&5 2718 sed 's/^/| /' conftest.$ac_ext >&5 2719 2720 fi 2721 rm -f conftest.err conftest.$ac_objext 2722 done 2723 rm -f conftest.$ac_ext conftest.$ac_objext 2724 CC=$ac_save_CC 2725 2726 fi 2727 2728 case "x$ac_cv_prog_cc_stdc" in 2729 x|xno) 2730 echo "$as_me:$LINENO: result: none needed" >&5 2731 echo "${ECHO_T}none needed" >&6 ;; 2732 *) 2733 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2734 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2735 CC="$CC $ac_cv_prog_cc_stdc" ;; 2736 esac 2737 2738 # Some people use a C++ compiler to compile C. Since we use `exit', 2739 # in C++ we need to declare it. In case someone uses the same compiler 2740 # for both compiling C and C++ we need to have the C++ compiler decide 2741 # the declaration of exit, since it's the most demanding environment. 2742 cat >conftest.$ac_ext <<_ACEOF 2743 #ifndef __cplusplus 2744 choke me 2745 #endif 2746 _ACEOF 2747 rm -f conftest.$ac_objext 2748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2749 (eval $ac_compile) 2>conftest.er1 2750 ac_status=$? 2751 grep -v '^ *+' conftest.er1 >conftest.err 2752 rm -f conftest.er1 2753 cat conftest.err >&5 2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2755 (exit $ac_status); } && 2756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2758 (eval $ac_try) 2>&5 2759 ac_status=$? 2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2761 (exit $ac_status); }; } && 2762 { ac_try='test -s conftest.$ac_objext' 2763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2764 (eval $ac_try) 2>&5 2765 ac_status=$? 2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2767 (exit $ac_status); }; }; then 2768 for ac_declaration in \ 2769 '' \ 2770 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2771 'extern "C" void std::exit (int); using std::exit;' \ 2772 'extern "C" void exit (int) throw ();' \ 2773 'extern "C" void exit (int);' \ 2774 'void exit (int);' 2775 do 2776 cat >conftest.$ac_ext <<_ACEOF 2777 /* confdefs.h. */ 2778 _ACEOF 2779 cat confdefs.h >>conftest.$ac_ext 2780 cat >>conftest.$ac_ext <<_ACEOF 2781 /* end confdefs.h. */ 2782 $ac_declaration 2783 #include <stdlib.h> 2784 int 2785 main () 2786 { 2787 exit (42); 2788 ; 2789 return 0; 2790 } 2791 _ACEOF 2792 rm -f conftest.$ac_objext 2793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2794 (eval $ac_compile) 2>conftest.er1 2795 ac_status=$? 2796 grep -v '^ *+' conftest.er1 >conftest.err 2797 rm -f conftest.er1 2798 cat conftest.err >&5 2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2800 (exit $ac_status); } && 2801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2803 (eval $ac_try) 2>&5 2804 ac_status=$? 2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2806 (exit $ac_status); }; } && 2807 { ac_try='test -s conftest.$ac_objext' 2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2809 (eval $ac_try) 2>&5 2810 ac_status=$? 2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2812 (exit $ac_status); }; }; then 2813 : 2814 else 2815 echo "$as_me: failed program was:" >&5 2816 sed 's/^/| /' conftest.$ac_ext >&5 2817 2818 continue 2819 fi 2820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2821 cat >conftest.$ac_ext <<_ACEOF 2822 /* confdefs.h. */ 2823 _ACEOF 2824 cat confdefs.h >>conftest.$ac_ext 2825 cat >>conftest.$ac_ext <<_ACEOF 2826 /* end confdefs.h. */ 2827 $ac_declaration 2828 int 2829 main () 2830 { 2831 exit (42); 2832 ; 2833 return 0; 2834 } 2835 _ACEOF 2836 rm -f conftest.$ac_objext 2837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2838 (eval $ac_compile) 2>conftest.er1 2839 ac_status=$? 2840 grep -v '^ *+' conftest.er1 >conftest.err 2841 rm -f conftest.er1 2842 cat conftest.err >&5 2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2844 (exit $ac_status); } && 2845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2847 (eval $ac_try) 2>&5 2848 ac_status=$? 2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2850 (exit $ac_status); }; } && 2851 { ac_try='test -s conftest.$ac_objext' 2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2853 (eval $ac_try) 2>&5 2854 ac_status=$? 2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2856 (exit $ac_status); }; }; then 2857 break 2858 else 2859 echo "$as_me: failed program was:" >&5 2860 sed 's/^/| /' conftest.$ac_ext >&5 2861 2862 fi 2863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2864 done 2865 rm -f conftest* 2866 if test -n "$ac_declaration"; then 2867 echo '#ifdef __cplusplus' >>confdefs.h 2868 echo $ac_declaration >>confdefs.h 2869 echo '#endif' >>confdefs.h 2870 fi 2871 2872 else 2873 echo "$as_me: failed program was:" >&5 2874 sed 's/^/| /' conftest.$ac_ext >&5 2875 2876 fi 2877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2878 ac_ext=c 2879 ac_cpp='$CPP $CPPFLAGS' 2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2883 DEPDIR="${am__leading_dot}deps" 2884 2885 ac_config_commands="$ac_config_commands depfiles" 2886 2887 2888 am_make=${MAKE-make} 2889 cat > confinc << 'END' 2890 am__doit: 2891 @echo done 2892 .PHONY: am__doit 2893 END 2894 # If we don't find an include directive, just comment out the code. 2895 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2896 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2897 am__include="#" 2898 am__quote= 2899 _am_result=none 2900 # First try GNU make style include. 2901 echo "include confinc" > confmf 2902 # We grep out `Entering directory' and `Leaving directory' 2903 # messages which can occur if `w' ends up in MAKEFLAGS. 2904 # In particular we don't look at `^make:' because GNU make might 2905 # be invoked under some other name (usually "gmake"), in which 2906 # case it prints its new name instead of `make'. 2907 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2908 am__include=include 2909 am__quote= 2910 _am_result=GNU 2911 fi 2912 # Now try BSD make style include. 2913 if test "$am__include" = "#"; then 2914 echo '.include "confinc"' > confmf 2915 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2916 am__include=.include 2917 am__quote="\"" 2918 _am_result=BSD 2919 fi 2920 fi 2921 2922 2923 echo "$as_me:$LINENO: result: $_am_result" >&5 2924 echo "${ECHO_T}$_am_result" >&6 2925 rm -f confinc confmf 2926 2927 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2928 if test "${enable_dependency_tracking+set}" = set; then 2929 enableval="$enable_dependency_tracking" 2930 2931 fi; 2932 if test "x$enable_dependency_tracking" != xno; then 2933 am_depcomp="$ac_aux_dir/depcomp" 2934 AMDEPBACKSLASH='\' 2935 fi 2936 2937 2938 if test "x$enable_dependency_tracking" != xno; then 2939 AMDEP_TRUE= 2940 AMDEP_FALSE='#' 2941 else 2942 AMDEP_TRUE='#' 2943 AMDEP_FALSE= 2944 fi 2945 2946 2947 2948 2949 depcc="$CC" am_compiler_list= 2950 2951 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2952 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2953 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2954 echo $ECHO_N "(cached) $ECHO_C" >&6 2955 else 2956 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2957 # We make a subdir and do the tests there. Otherwise we can end up 2958 # making bogus files that we don't know about and never remove. For 2959 # instance it was reported that on HP-UX the gcc test will end up 2960 # making a dummy file named `D' -- because `-MD' means `put the output 2961 # in D'. 2962 mkdir conftest.dir 2963 # Copy depcomp to subdir because otherwise we won't find it if we're 2964 # using a relative directory. 2965 cp "$am_depcomp" conftest.dir 2966 cd conftest.dir 2967 # We will build objects and dependencies in a subdirectory because 2968 # it helps to detect inapplicable dependency modes. For instance 2969 # both Tru64's cc and ICC support -MD to output dependencies as a 2970 # side effect of compilation, but ICC will put the dependencies in 2971 # the current directory while Tru64 will put them in the object 2972 # directory. 2973 mkdir sub 2974 2975 am_cv_CC_dependencies_compiler_type=none 2976 if test "$am_compiler_list" = ""; then 2977 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2978 fi 2979 for depmode in $am_compiler_list; do 2980 # Setup a source with many dependencies, because some compilers 2981 # like to wrap large dependency lists on column 80 (with \), and 2982 # we should not choose a depcomp mode which is confused by this. 2983 # 2984 # We need to recreate these files for each test, as the compiler may 2985 # overwrite some of them when testing with obscure command lines. 2986 # This happens at least with the AIX C compiler. 2987 : > sub/conftest.c 2988 for i in 1 2 3 4 5 6; do 2989 echo '#include "conftst'$i'.h"' >> sub/conftest.c 2990 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 2991 # Solaris 8's {/usr,}/bin/sh. 2992 touch sub/conftst$i.h 2993 done 2994 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 2995 2996 case $depmode in 2997 nosideeffect) 2998 # after this tag, mechanisms are not by side-effect, so they'll 2999 # only be used when explicitly requested 3000 if test "x$enable_dependency_tracking" = xyes; then 3001 continue 3002 else 3003 break 3004 fi 3005 ;; 3006 none) break ;; 3007 esac 3008 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3009 # mode. It turns out that the SunPro C++ compiler does not properly 3010 # handle `-M -o', and we need to detect this. 3011 if depmode=$depmode \ 3012 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3013 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3014 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3015 >/dev/null 2>conftest.err && 3016 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3017 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3018 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3019 # icc doesn't choke on unknown options, it will just issue warnings 3020 # or remarks (even with -Werror). So we grep stderr for any message 3021 # that says an option was ignored or not supported. 3022 # When given -MP, icc 7.0 and 7.1 complain thusly: 3023 # icc: Command line warning: ignoring option '-M'; no argument required 3024 # The diagnosis changed in icc 8.0: 3025 # icc: Command line remark: option '-MP' not supported 3026 if (grep 'ignoring option' conftest.err || 3027 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3028 am_cv_CC_dependencies_compiler_type=$depmode 3029 break 3030 fi 3031 fi 3032 done 3033 3034 cd .. 3035 rm -rf conftest.dir 3036 else 3037 am_cv_CC_dependencies_compiler_type=none 3038 fi 3039 3040 fi 3041 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3042 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3043 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3044 3045 3046 3047 if 3048 test "x$enable_dependency_tracking" != xno \ 3049 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3050 am__fastdepCC_TRUE= 3051 am__fastdepCC_FALSE='#' 3052 else 3053 am__fastdepCC_TRUE='#' 3054 am__fastdepCC_FALSE= 3055 fi 3056 3057 3058 ac_ext=c 3059 ac_cpp='$CPP $CPPFLAGS' 3060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3062 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3063 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3064 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3065 # On Suns, sometimes $CPP names a directory. 3066 if test -n "$CPP" && test -d "$CPP"; then 3067 CPP= 3068 fi 3069 if test -z "$CPP"; then 3070 if test "${ac_cv_prog_CPP+set}" = set; then 3071 echo $ECHO_N "(cached) $ECHO_C" >&6 3072 else 3073 # Double quotes because CPP needs to be expanded 3074 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3075 do 3076 ac_preproc_ok=false 3077 for ac_c_preproc_warn_flag in '' yes 3078 do 3079 # Use a header file that comes with gcc, so configuring glibc 3080 # with a fresh cross-compiler works. 3081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3082 # <limits.h> exists even on freestanding compilers. 3083 # On the NeXT, cc -E runs the code through the compiler's parser, 3084 # not just through cpp. "Syntax error" is here to catch this case. 3085 cat >conftest.$ac_ext <<_ACEOF 3086 /* confdefs.h. */ 3087 _ACEOF 3088 cat confdefs.h >>conftest.$ac_ext 3089 cat >>conftest.$ac_ext <<_ACEOF 3090 /* end confdefs.h. */ 3091 #ifdef __STDC__ 3092 # include <limits.h> 3093 #else 3094 # include <assert.h> 3095 #endif 3096 Syntax error 3097 _ACEOF 3098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3100 ac_status=$? 3101 grep -v '^ *+' conftest.er1 >conftest.err 3102 rm -f conftest.er1 3103 cat conftest.err >&5 3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3105 (exit $ac_status); } >/dev/null; then 3106 if test -s conftest.err; then 3107 ac_cpp_err=$ac_c_preproc_warn_flag 3108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3109 else 3110 ac_cpp_err= 3111 fi 3112 else 3113 ac_cpp_err=yes 3114 fi 3115 if test -z "$ac_cpp_err"; then 3116 : 3117 else 3118 echo "$as_me: failed program was:" >&5 3119 sed 's/^/| /' conftest.$ac_ext >&5 3120 3121 # Broken: fails on valid input. 3122 continue 3123 fi 3124 rm -f conftest.err conftest.$ac_ext 3125 3126 # OK, works on sane cases. Now check whether non-existent headers 3127 # can be detected and how. 3128 cat >conftest.$ac_ext <<_ACEOF 3129 /* confdefs.h. */ 3130 _ACEOF 3131 cat confdefs.h >>conftest.$ac_ext 3132 cat >>conftest.$ac_ext <<_ACEOF 3133 /* end confdefs.h. */ 3134 #include <ac_nonexistent.h> 3135 _ACEOF 3136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3138 ac_status=$? 3139 grep -v '^ *+' conftest.er1 >conftest.err 3140 rm -f conftest.er1 3141 cat conftest.err >&5 3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3143 (exit $ac_status); } >/dev/null; then 3144 if test -s conftest.err; then 3145 ac_cpp_err=$ac_c_preproc_warn_flag 3146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3147 else 3148 ac_cpp_err= 3149 fi 3150 else 3151 ac_cpp_err=yes 3152 fi 3153 if test -z "$ac_cpp_err"; then 3154 # Broken: success on invalid input. 3155 continue 3156 else 3157 echo "$as_me: failed program was:" >&5 3158 sed 's/^/| /' conftest.$ac_ext >&5 3159 3160 # Passes both tests. 3161 ac_preproc_ok=: 3162 break 3163 fi 3164 rm -f conftest.err conftest.$ac_ext 3165 3166 done 3167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3168 rm -f conftest.err conftest.$ac_ext 3169 if $ac_preproc_ok; then 3170 break 3171 fi 3172 3173 done 3174 ac_cv_prog_CPP=$CPP 3175 3176 fi 3177 CPP=$ac_cv_prog_CPP 3178 else 3179 ac_cv_prog_CPP=$CPP 3180 fi 3181 echo "$as_me:$LINENO: result: $CPP" >&5 3182 echo "${ECHO_T}$CPP" >&6 3183 ac_preproc_ok=false 3184 for ac_c_preproc_warn_flag in '' yes 3185 do 3186 # Use a header file that comes with gcc, so configuring glibc 3187 # with a fresh cross-compiler works. 3188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3189 # <limits.h> exists even on freestanding compilers. 3190 # On the NeXT, cc -E runs the code through the compiler's parser, 3191 # not just through cpp. "Syntax error" is here to catch this case. 3192 cat >conftest.$ac_ext <<_ACEOF 3193 /* confdefs.h. */ 3194 _ACEOF 3195 cat confdefs.h >>conftest.$ac_ext 3196 cat >>conftest.$ac_ext <<_ACEOF 3197 /* end confdefs.h. */ 3198 #ifdef __STDC__ 3199 # include <limits.h> 3200 #else 3201 # include <assert.h> 3202 #endif 3203 Syntax error 3204 _ACEOF 3205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3207 ac_status=$? 3208 grep -v '^ *+' conftest.er1 >conftest.err 3209 rm -f conftest.er1 3210 cat conftest.err >&5 3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3212 (exit $ac_status); } >/dev/null; then 3213 if test -s conftest.err; then 3214 ac_cpp_err=$ac_c_preproc_warn_flag 3215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3216 else 3217 ac_cpp_err= 3218 fi 3219 else 3220 ac_cpp_err=yes 3221 fi 3222 if test -z "$ac_cpp_err"; then 3223 : 3224 else 3225 echo "$as_me: failed program was:" >&5 3226 sed 's/^/| /' conftest.$ac_ext >&5 3227 3228 # Broken: fails on valid input. 3229 continue 3230 fi 3231 rm -f conftest.err conftest.$ac_ext 3232 3233 # OK, works on sane cases. Now check whether non-existent headers 3234 # can be detected and how. 3235 cat >conftest.$ac_ext <<_ACEOF 3236 /* confdefs.h. */ 3237 _ACEOF 3238 cat confdefs.h >>conftest.$ac_ext 3239 cat >>conftest.$ac_ext <<_ACEOF 3240 /* end confdefs.h. */ 3241 #include <ac_nonexistent.h> 3242 _ACEOF 3243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3245 ac_status=$? 3246 grep -v '^ *+' conftest.er1 >conftest.err 3247 rm -f conftest.er1 3248 cat conftest.err >&5 3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3250 (exit $ac_status); } >/dev/null; then 3251 if test -s conftest.err; then 3252 ac_cpp_err=$ac_c_preproc_warn_flag 3253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3254 else 3255 ac_cpp_err= 3256 fi 3257 else 3258 ac_cpp_err=yes 3259 fi 3260 if test -z "$ac_cpp_err"; then 3261 # Broken: success on invalid input. 3262 continue 3263 else 3264 echo "$as_me: failed program was:" >&5 3265 sed 's/^/| /' conftest.$ac_ext >&5 3266 3267 # Passes both tests. 3268 ac_preproc_ok=: 3269 break 3270 fi 3271 rm -f conftest.err conftest.$ac_ext 3272 3273 done 3274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3275 rm -f conftest.err conftest.$ac_ext 3276 if $ac_preproc_ok; then 3277 : 3278 else 3279 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3280 See \`config.log' for more details." >&5 3281 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3282 See \`config.log' for more details." >&2;} 3283 { (exit 1); exit 1; }; } 3284 fi 3285 3286 ac_ext=c 3287 ac_cpp='$CPP $CPPFLAGS' 3288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3290 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3291 3292 ac_ext=cc 3293 ac_cpp='$CXXCPP $CPPFLAGS' 3294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3297 if test -n "$ac_tool_prefix"; then 3298 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3299 do 3300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3301 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3302 echo "$as_me:$LINENO: checking for $ac_word" >&5 3303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3304 if test "${ac_cv_prog_CXX+set}" = set; then 3305 echo $ECHO_N "(cached) $ECHO_C" >&6 3306 else 3307 if test -n "$CXX"; then 3308 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3309 else 3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3311 for as_dir in $PATH 3312 do 3313 IFS=$as_save_IFS 3314 test -z "$as_dir" && as_dir=. 3315 for ac_exec_ext in '' $ac_executable_extensions; do 3316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3317 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3319 break 2 3320 fi 3321 done 3322 done 3323 3324 fi 3325 fi 3326 CXX=$ac_cv_prog_CXX 3327 if test -n "$CXX"; then 3328 echo "$as_me:$LINENO: result: $CXX" >&5 3329 echo "${ECHO_T}$CXX" >&6 3330 else 3331 echo "$as_me:$LINENO: result: no" >&5 3332 echo "${ECHO_T}no" >&6 3333 fi 3334 3335 test -n "$CXX" && break 3336 done 3337 fi 3338 if test -z "$CXX"; then 3339 ac_ct_CXX=$CXX 3340 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3341 do 3342 # Extract the first word of "$ac_prog", so it can be a program name with args. 3343 set dummy $ac_prog; ac_word=$2 3344 echo "$as_me:$LINENO: checking for $ac_word" >&5 3345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3346 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3347 echo $ECHO_N "(cached) $ECHO_C" >&6 3348 else 3349 if test -n "$ac_ct_CXX"; then 3350 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3351 else 3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3353 for as_dir in $PATH 3354 do 3355 IFS=$as_save_IFS 3356 test -z "$as_dir" && as_dir=. 3357 for ac_exec_ext in '' $ac_executable_extensions; do 3358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3359 ac_cv_prog_ac_ct_CXX="$ac_prog" 3360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3361 break 2 3362 fi 3363 done 3364 done 3365 3366 fi 3367 fi 3368 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3369 if test -n "$ac_ct_CXX"; then 3370 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3371 echo "${ECHO_T}$ac_ct_CXX" >&6 3372 else 3373 echo "$as_me:$LINENO: result: no" >&5 3374 echo "${ECHO_T}no" >&6 3375 fi 3376 3377 test -n "$ac_ct_CXX" && break 3378 done 3379 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 3380 3381 CXX=$ac_ct_CXX 3382 fi 3383 3384 3385 # Provide some information about the compiler. 3386 echo "$as_me:$LINENO:" \ 3387 "checking for C++ compiler version" >&5 3388 ac_compiler=`set X $ac_compile; echo $2` 3389 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3390 (eval $ac_compiler --version </dev/null >&5) 2>&5 3391 ac_status=$? 3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3393 (exit $ac_status); } 3394 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3395 (eval $ac_compiler -v </dev/null >&5) 2>&5 3396 ac_status=$? 3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3398 (exit $ac_status); } 3399 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3400 (eval $ac_compiler -V </dev/null >&5) 2>&5 3401 ac_status=$? 3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3403 (exit $ac_status); } 3404 3405 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3406 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 3407 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3408 echo $ECHO_N "(cached) $ECHO_C" >&6 3409 else 3410 cat >conftest.$ac_ext <<_ACEOF 3411 /* confdefs.h. */ 3412 _ACEOF 3413 cat confdefs.h >>conftest.$ac_ext 3414 cat >>conftest.$ac_ext <<_ACEOF 3415 /* end confdefs.h. */ 3416 3417 int 3418 main () 3419 { 3420 #ifndef __GNUC__ 3421 choke me 3422 #endif 3423 3424 ; 3425 return 0; 3426 } 3427 _ACEOF 3428 rm -f conftest.$ac_objext 3429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3430 (eval $ac_compile) 2>conftest.er1 3431 ac_status=$? 3432 grep -v '^ *+' conftest.er1 >conftest.err 3433 rm -f conftest.er1 3434 cat conftest.err >&5 3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3436 (exit $ac_status); } && 3437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3439 (eval $ac_try) 2>&5 3440 ac_status=$? 3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3442 (exit $ac_status); }; } && 3443 { ac_try='test -s conftest.$ac_objext' 3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3445 (eval $ac_try) 2>&5 3446 ac_status=$? 3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3448 (exit $ac_status); }; }; then 3449 ac_compiler_gnu=yes 3450 else 3451 echo "$as_me: failed program was:" >&5 3452 sed 's/^/| /' conftest.$ac_ext >&5 3453 3454 ac_compiler_gnu=no 3455 fi 3456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3457 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3458 3459 fi 3460 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3461 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 3462 GXX=`test $ac_compiler_gnu = yes && echo yes` 3463 ac_test_CXXFLAGS=${CXXFLAGS+set} 3464 ac_save_CXXFLAGS=$CXXFLAGS 3465 CXXFLAGS="-g" 3466 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3467 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 3468 if test "${ac_cv_prog_cxx_g+set}" = set; then 3469 echo $ECHO_N "(cached) $ECHO_C" >&6 3470 else 3471 cat >conftest.$ac_ext <<_ACEOF 3472 /* confdefs.h. */ 3473 _ACEOF 3474 cat confdefs.h >>conftest.$ac_ext 3475 cat >>conftest.$ac_ext <<_ACEOF 3476 /* end confdefs.h. */ 3477 3478 int 3479 main () 3480 { 3481 3482 ; 3483 return 0; 3484 } 3485 _ACEOF 3486 rm -f conftest.$ac_objext 3487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3488 (eval $ac_compile) 2>conftest.er1 3489 ac_status=$? 3490 grep -v '^ *+' conftest.er1 >conftest.err 3491 rm -f conftest.er1 3492 cat conftest.err >&5 3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3494 (exit $ac_status); } && 3495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3497 (eval $ac_try) 2>&5 3498 ac_status=$? 3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3500 (exit $ac_status); }; } && 3501 { ac_try='test -s conftest.$ac_objext' 3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3503 (eval $ac_try) 2>&5 3504 ac_status=$? 3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3506 (exit $ac_status); }; }; then 3507 ac_cv_prog_cxx_g=yes 3508 else 3509 echo "$as_me: failed program was:" >&5 3510 sed 's/^/| /' conftest.$ac_ext >&5 3511 3512 ac_cv_prog_cxx_g=no 3513 fi 3514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3515 fi 3516 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3517 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 3518 if test "$ac_test_CXXFLAGS" = set; then 3519 CXXFLAGS=$ac_save_CXXFLAGS 3520 elif test $ac_cv_prog_cxx_g = yes; then 3521 if test "$GXX" = yes; then 3522 CXXFLAGS="-g -O2" 3523 else 3524 CXXFLAGS="-g" 3525 fi 3526 else 3527 if test "$GXX" = yes; then 3528 CXXFLAGS="-O2" 3529 else 3530 CXXFLAGS= 3531 fi 3532 fi 3533 for ac_declaration in \ 3534 '' \ 3535 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3536 'extern "C" void std::exit (int); using std::exit;' \ 3537 'extern "C" void exit (int) throw ();' \ 3538 'extern "C" void exit (int);' \ 3539 'void exit (int);' 3540 do 3541 cat >conftest.$ac_ext <<_ACEOF 3542 /* confdefs.h. */ 3543 _ACEOF 3544 cat confdefs.h >>conftest.$ac_ext 3545 cat >>conftest.$ac_ext <<_ACEOF 3546 /* end confdefs.h. */ 3547 $ac_declaration 3548 #include <stdlib.h> 3549 int 3550 main () 3551 { 3552 exit (42); 3553 ; 3554 return 0; 3555 } 3556 _ACEOF 3557 rm -f conftest.$ac_objext 3558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3559 (eval $ac_compile) 2>conftest.er1 3560 ac_status=$? 3561 grep -v '^ *+' conftest.er1 >conftest.err 3562 rm -f conftest.er1 3563 cat conftest.err >&5 3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3565 (exit $ac_status); } && 3566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3568 (eval $ac_try) 2>&5 3569 ac_status=$? 3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3571 (exit $ac_status); }; } && 3572 { ac_try='test -s conftest.$ac_objext' 3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3574 (eval $ac_try) 2>&5 3575 ac_status=$? 3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3577 (exit $ac_status); }; }; then 3578 : 3579 else 3580 echo "$as_me: failed program was:" >&5 3581 sed 's/^/| /' conftest.$ac_ext >&5 3582 3583 continue 3584 fi 3585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3586 cat >conftest.$ac_ext <<_ACEOF 3587 /* confdefs.h. */ 3588 _ACEOF 3589 cat confdefs.h >>conftest.$ac_ext 3590 cat >>conftest.$ac_ext <<_ACEOF 3591 /* end confdefs.h. */ 3592 $ac_declaration 3593 int 3594 main () 3595 { 3596 exit (42); 3597 ; 3598 return 0; 3599 } 3600 _ACEOF 3601 rm -f conftest.$ac_objext 3602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3603 (eval $ac_compile) 2>conftest.er1 3604 ac_status=$? 3605 grep -v '^ *+' conftest.er1 >conftest.err 3606 rm -f conftest.er1 3607 cat conftest.err >&5 3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3609 (exit $ac_status); } && 3610 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3612 (eval $ac_try) 2>&5 3613 ac_status=$? 3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3615 (exit $ac_status); }; } && 3616 { ac_try='test -s conftest.$ac_objext' 3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3618 (eval $ac_try) 2>&5 3619 ac_status=$? 3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3621 (exit $ac_status); }; }; then 3622 break 3623 else 3624 echo "$as_me: failed program was:" >&5 3625 sed 's/^/| /' conftest.$ac_ext >&5 3626 3627 fi 3628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3629 done 3630 rm -f conftest* 3631 if test -n "$ac_declaration"; then 3632 echo '#ifdef __cplusplus' >>confdefs.h 3633 echo $ac_declaration >>confdefs.h 3634 echo '#endif' >>confdefs.h 3635 fi 3636 3637 ac_ext=c 3638 ac_cpp='$CPP $CPPFLAGS' 3639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3641 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3642 3643 depcc="$CXX" am_compiler_list= 3644 3645 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3646 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3647 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 3648 echo $ECHO_N "(cached) $ECHO_C" >&6 3649 else 3650 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3651 # We make a subdir and do the tests there. Otherwise we can end up 3652 # making bogus files that we don't know about and never remove. For 3653 # instance it was reported that on HP-UX the gcc test will end up 3654 # making a dummy file named `D' -- because `-MD' means `put the output 3655 # in D'. 3656 mkdir conftest.dir 3657 # Copy depcomp to subdir because otherwise we won't find it if we're 3658 # using a relative directory. 3659 cp "$am_depcomp" conftest.dir 3660 cd conftest.dir 3661 # We will build objects and dependencies in a subdirectory because 3662 # it helps to detect inapplicable dependency modes. For instance 3663 # both Tru64's cc and ICC support -MD to output dependencies as a 3664 # side effect of compilation, but ICC will put the dependencies in 3665 # the current directory while Tru64 will put them in the object 3666 # directory. 3667 mkdir sub 3668 3669 am_cv_CXX_dependencies_compiler_type=none 3670 if test "$am_compiler_list" = ""; then 3671 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3672 fi 3673 for depmode in $am_compiler_list; do 3674 # Setup a source with many dependencies, because some compilers 3675 # like to wrap large dependency lists on column 80 (with \), and 3676 # we should not choose a depcomp mode which is confused by this. 3677 # 3678 # We need to recreate these files for each test, as the compiler may 3679 # overwrite some of them when testing with obscure command lines. 3680 # This happens at least with the AIX C compiler. 3681 : > sub/conftest.c 3682 for i in 1 2 3 4 5 6; do 3683 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3684 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3685 # Solaris 8's {/usr,}/bin/sh. 3686 touch sub/conftst$i.h 3687 done 3688 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3689 3690 case $depmode in 3691 nosideeffect) 3692 # after this tag, mechanisms are not by side-effect, so they'll 3693 # only be used when explicitly requested 3694 if test "x$enable_dependency_tracking" = xyes; then 3695 continue 3696 else 3697 break 3698 fi 3699 ;; 3700 none) break ;; 3701 esac 3702 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3703 # mode. It turns out that the SunPro C++ compiler does not properly 3704 # handle `-M -o', and we need to detect this. 3705 if depmode=$depmode \ 3706 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3707 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3708 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3709 >/dev/null 2>conftest.err && 3710 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3711 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3712 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3713 # icc doesn't choke on unknown options, it will just issue warnings 3714 # or remarks (even with -Werror). So we grep stderr for any message 3715 # that says an option was ignored or not supported. 3716 # When given -MP, icc 7.0 and 7.1 complain thusly: 3717 # icc: Command line warning: ignoring option '-M'; no argument required 3718 # The diagnosis changed in icc 8.0: 3719 # icc: Command line remark: option '-MP' not supported 3720 if (grep 'ignoring option' conftest.err || 3721 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3722 am_cv_CXX_dependencies_compiler_type=$depmode 3723 break 3724 fi 3725 fi 3726 done 3727 3728 cd .. 3729 rm -rf conftest.dir 3730 else 3731 am_cv_CXX_dependencies_compiler_type=none 3732 fi 3733 3734 fi 3735 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 3736 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 3737 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3738 3739 3740 3741 if 3742 test "x$enable_dependency_tracking" != xno \ 3743 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3744 am__fastdepCXX_TRUE= 3745 am__fastdepCXX_FALSE='#' 3746 else 3747 am__fastdepCXX_TRUE='#' 3748 am__fastdepCXX_FALSE= 3749 fi 3750 3751 3752 3753 3754 if test "$GCC" = yes; then 3755 GCC_TRUE= 3756 GCC_FALSE='#' 3757 else 3758 GCC_TRUE='#' 3759 GCC_FALSE= 3760 fi 3761 # let the Makefile know if we're gcc 3762 3763 # Uncomment this if you'll be exporting libraries (.so's) 3764 # Check whether --enable-shared or --disable-shared was given. 3765 if test "${enable_shared+set}" = set; then 3766 enableval="$enable_shared" 3767 p=${PACKAGE-default} 3768 case $enableval in 3769 yes) enable_shared=yes ;; 3770 no) enable_shared=no ;; 3771 *) 3772 enable_shared=no 3773 # Look at the argument we got. We use all the common list separators. 3774 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3775 for pkg in $enableval; do 3776 IFS="$lt_save_ifs" 3777 if test "X$pkg" = "X$p"; then 3778 enable_shared=yes 3779 fi 3780 done 3781 IFS="$lt_save_ifs" 3782 ;; 3783 esac 3784 else 3785 enable_shared=yes 3786 fi; 3787 3788 # Check whether --enable-static or --disable-static was given. 3789 if test "${enable_static+set}" = set; then 3790 enableval="$enable_static" 3791 p=${PACKAGE-default} 3792 case $enableval in 3793 yes) enable_static=yes ;; 3794 no) enable_static=no ;; 3795 *) 3796 enable_static=no 3797 # Look at the argument we got. We use all the common list separators. 3798 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3799 for pkg in $enableval; do 3800 IFS="$lt_save_ifs" 3801 if test "X$pkg" = "X$p"; then 3802 enable_static=yes 3803 fi 3804 done 3805 IFS="$lt_save_ifs" 3806 ;; 3807 esac 3808 else 3809 enable_static=yes 3810 fi; 3811 3812 # Check whether --enable-fast-install or --disable-fast-install was given. 3813 if test "${enable_fast_install+set}" = set; then 3814 enableval="$enable_fast_install" 3815 p=${PACKAGE-default} 3816 case $enableval in 3817 yes) enable_fast_install=yes ;; 3818 no) enable_fast_install=no ;; 3819 *) 3820 enable_fast_install=no 3821 # Look at the argument we got. We use all the common list separators. 3822 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3823 for pkg in $enableval; do 3824 IFS="$lt_save_ifs" 3825 if test "X$pkg" = "X$p"; then 3826 enable_fast_install=yes 3827 fi 3828 done 3829 IFS="$lt_save_ifs" 3830 ;; 3831 esac 3832 else 3833 enable_fast_install=yes 3834 fi; 3835 3836 # Make sure we can run config.sub. 3837 $ac_config_sub sun4 >/dev/null 2>&1 || 3838 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3839 echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3840 { (exit 1); exit 1; }; } 3841 3842 echo "$as_me:$LINENO: checking build system type" >&5 3843 echo $ECHO_N "checking build system type... $ECHO_C" >&6 3844 if test "${ac_cv_build+set}" = set; then 3845 echo $ECHO_N "(cached) $ECHO_C" >&6 3846 else 3847 ac_cv_build_alias=$build_alias 3848 test -z "$ac_cv_build_alias" && 3849 ac_cv_build_alias=`$ac_config_guess` 3850 test -z "$ac_cv_build_alias" && 3851 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3852 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3853 { (exit 1); exit 1; }; } 3854 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3855 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3856 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3857 { (exit 1); exit 1; }; } 3858 3859 fi 3860 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3861 echo "${ECHO_T}$ac_cv_build" >&6 3862 build=$ac_cv_build 3863 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3864 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3865 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3866 3867 3868 echo "$as_me:$LINENO: checking host system type" >&5 3869 echo $ECHO_N "checking host system type... $ECHO_C" >&6 3870 if test "${ac_cv_host+set}" = set; then 3871 echo $ECHO_N "(cached) $ECHO_C" >&6 3872 else 3873 ac_cv_host_alias=$host_alias 3874 test -z "$ac_cv_host_alias" && 3875 ac_cv_host_alias=$ac_cv_build_alias 3876 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3877 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3878 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3879 { (exit 1); exit 1; }; } 3880 3881 fi 3882 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3883 echo "${ECHO_T}$ac_cv_host" >&6 3884 host=$ac_cv_host 3885 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3886 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3887 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3888 3889 3890 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3891 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3892 if test "${lt_cv_path_SED+set}" = set; then 3893 echo $ECHO_N "(cached) $ECHO_C" >&6 3894 else 3895 # Loop through the user's path and test for sed and gsed. 3896 # Then use that list of sed's as ones to test for truncation. 3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3898 for as_dir in $PATH 3899 do 3900 IFS=$as_save_IFS 3901 test -z "$as_dir" && as_dir=. 3902 for lt_ac_prog in sed gsed; do 3903 for ac_exec_ext in '' $ac_executable_extensions; do 3904 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3905 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3906 fi 3907 done 3908 done 3909 done 3910 lt_ac_max=0 3911 lt_ac_count=0 3912 # Add /usr/xpg4/bin/sed as it is typically found on Solaris 3913 # along with /bin/sed that truncates output. 3914 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3915 test ! -f $lt_ac_sed && continue 3916 cat /dev/null > conftest.in 3917 lt_ac_count=0 3918 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3919 # Check for GNU sed and select it if it is found. 3920 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3921 lt_cv_path_SED=$lt_ac_sed 3922 break 3923 fi 3924 while true; do 3925 cat conftest.in conftest.in >conftest.tmp 3926 mv conftest.tmp conftest.in 3927 cp conftest.in conftest.nl 3928 echo >>conftest.nl 3929 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3930 cmp -s conftest.out conftest.nl || break 3931 # 10000 chars as input seems more than enough 3932 test $lt_ac_count -gt 10 && break 3933 lt_ac_count=`expr $lt_ac_count + 1` 3934 if test $lt_ac_count -gt $lt_ac_max; then 3935 lt_ac_max=$lt_ac_count 3936 lt_cv_path_SED=$lt_ac_sed 3937 fi 3938 done 3939 done 3940 3941 fi 3942 3943 SED=$lt_cv_path_SED 3944 echo "$as_me:$LINENO: result: $SED" >&5 3945 echo "${ECHO_T}$SED" >&6 3946 3947 echo "$as_me:$LINENO: checking for egrep" >&5 3948 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3949 if test "${ac_cv_prog_egrep+set}" = set; then 3950 echo $ECHO_N "(cached) $ECHO_C" >&6 3951 else 3952 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3953 then ac_cv_prog_egrep='grep -E' 3954 else ac_cv_prog_egrep='egrep' 3955 fi 3956 fi 3957 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3958 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3959 EGREP=$ac_cv_prog_egrep 3960 3961 3962 3963 # Check whether --with-gnu-ld or --without-gnu-ld was given. 3964 if test "${with_gnu_ld+set}" = set; then 3965 withval="$with_gnu_ld" 3966 test "$withval" = no || with_gnu_ld=yes 3967 else 3968 with_gnu_ld=no 3969 fi; 3970 ac_prog=ld 3971 if test "$GCC" = yes; then 3972 # Check if gcc -print-prog-name=ld gives a path. 3973 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3974 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3975 case $host in 3976 *-*-mingw*) 3977 # gcc leaves a trailing carriage return which upsets mingw 3978 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3979 *) 3980 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3981 esac 3982 case $ac_prog in 3983 # Accept absolute paths. 3984 [\\/]* | ?:[\\/]*) 3985 re_direlt='/[^/][^/]*/\.\./' 3986 # Canonicalize the pathname of ld 3987 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3988 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3989 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3990 done 3991 test -z "$LD" && LD="$ac_prog" 3992 ;; 3993 "") 3994 # If it fails, then pretend we aren't using GCC. 3995 ac_prog=ld 3996 ;; 3997 *) 3998 # If it is relative, then search for the first ld in PATH. 3999 with_gnu_ld=unknown 4000 ;; 4001 esac 4002 elif test "$with_gnu_ld" = yes; then 4003 echo "$as_me:$LINENO: checking for GNU ld" >&5 4004 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 4005 else 4006 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4007 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 4008 fi 4009 if test "${lt_cv_path_LD+set}" = set; then 4010 echo $ECHO_N "(cached) $ECHO_C" >&6 4011 else 4012 if test -z "$LD"; then 4013 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4014 for ac_dir in $PATH; do 4015 IFS="$lt_save_ifs" 4016 test -z "$ac_dir" && ac_dir=. 4017 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4018 lt_cv_path_LD="$ac_dir/$ac_prog" 4019 # Check to see if the program is GNU ld. I'd rather use --version, 4020 # but apparently some variants of GNU ld only accept -v. 4021 # Break only if it was the GNU/non-GNU ld that we prefer. 4022 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4023 *GNU* | *'with BFD'*) 4024 test "$with_gnu_ld" != no && break 4025 ;; 4026 *) 4027 test "$with_gnu_ld" != yes && break 4028 ;; 4029 esac 4030 fi 4031 done 4032 IFS="$lt_save_ifs" 4033 else 4034 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4035 fi 4036 fi 4037 4038 LD="$lt_cv_path_LD" 4039 if test -n "$LD"; then 4040 echo "$as_me:$LINENO: result: $LD" >&5 4041 echo "${ECHO_T}$LD" >&6 4042 else 4043 echo "$as_me:$LINENO: result: no" >&5 4044 echo "${ECHO_T}no" >&6 4045 fi 4046 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4047 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4048 { (exit 1); exit 1; }; } 4049 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4050 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 4051 if test "${lt_cv_prog_gnu_ld+set}" = set; then 4052 echo $ECHO_N "(cached) $ECHO_C" >&6 4053 else 4054 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4055 case `$LD -v 2>&1 </dev/null` in 4056 *GNU* | *'with BFD'*) 4057 lt_cv_prog_gnu_ld=yes 4058 ;; 4059 *) 4060 lt_cv_prog_gnu_ld=no 4061 ;; 4062 esac 4063 fi 4064 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4065 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 4066 with_gnu_ld=$lt_cv_prog_gnu_ld 4067 4068 4069 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4070 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 4071 if test "${lt_cv_ld_reload_flag+set}" = set; then 4072 echo $ECHO_N "(cached) $ECHO_C" >&6 4073 else 4074 lt_cv_ld_reload_flag='-r' 4075 fi 4076 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4077 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 4078 reload_flag=$lt_cv_ld_reload_flag 4079 case $reload_flag in 4080 "" | " "*) ;; 4081 *) reload_flag=" $reload_flag" ;; 4082 esac 4083 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4084 case $host_os in 4085 darwin*) 4086 if test "$GCC" = yes; then 4087 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4088 else 4089 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4090 fi 4091 ;; 4092 esac 4093 4094 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4095 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 4096 if test "${lt_cv_path_NM+set}" = set; then 4097 echo $ECHO_N "(cached) $ECHO_C" >&6 4098 else 4099 if test -n "$NM"; then 4100 # Let the user override the test. 4101 lt_cv_path_NM="$NM" 4102 else 4103 lt_nm_to_check="${ac_tool_prefix}nm" 4104 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4105 lt_nm_to_check="$lt_nm_to_check nm" 4106 fi 4107 for lt_tmp_nm in $lt_nm_to_check; do 4108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4109 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4110 IFS="$lt_save_ifs" 4111 test -z "$ac_dir" && ac_dir=. 4112 tmp_nm="$ac_dir/$lt_tmp_nm" 4113 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4114 # Check to see if the nm accepts a BSD-compat flag. 4115 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4116 # nm: unknown option "B" ignored 4117 # Tru64's nm complains that /dev/null is an invalid object file 4118 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4119 */dev/null* | *'Invalid file or object type'*) 4120 lt_cv_path_NM="$tmp_nm -B" 4121 break 4122 ;; 4123 *) 4124 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4125 */dev/null*) 4126 lt_cv_path_NM="$tmp_nm -p" 4127 break 4128 ;; 4129 *) 4130 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4131 continue # so that we can try to find one that supports BSD flags 4132 ;; 4133 esac 4134 ;; 4135 esac 4136 fi 4137 done 4138 IFS="$lt_save_ifs" 4139 done 4140 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4141 fi 4142 fi 4143 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4144 echo "${ECHO_T}$lt_cv_path_NM" >&6 4145 NM="$lt_cv_path_NM" 4146 4147 echo "$as_me:$LINENO: checking whether ln -s works" >&5 4148 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 4149 LN_S=$as_ln_s 4150 if test "$LN_S" = "ln -s"; then 4151 echo "$as_me:$LINENO: result: yes" >&5 4152 echo "${ECHO_T}yes" >&6 4153 else 4154 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4155 echo "${ECHO_T}no, using $LN_S" >&6 4156 fi 4157 4158 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4159 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 4160 if test "${lt_cv_deplibs_check_method+set}" = set; then 4161 echo $ECHO_N "(cached) $ECHO_C" >&6 4162 else 4163 lt_cv_file_magic_cmd='$MAGIC_CMD' 4164 lt_cv_file_magic_test_file= 4165 lt_cv_deplibs_check_method='unknown' 4166 # Need to set the preceding variable on all platforms that support 4167 # interlibrary dependencies. 4168 # 'none' -- dependencies not supported. 4169 # `unknown' -- same as none, but documents that we really don't know. 4170 # 'pass_all' -- all dependencies passed with no checks. 4171 # 'test_compile' -- check by making test program. 4172 # 'file_magic [[regex]]' -- check by looking for files in library path 4173 # which responds to the $file_magic_cmd with a given extended regex. 4174 # If you have `file' or equivalent on your system and you're not sure 4175 # whether `pass_all' will *always* work, you probably want this one. 4176 4177 case $host_os in 4178 aix4* | aix5*) 4179 lt_cv_deplibs_check_method=pass_all 4180 ;; 4181 4182 beos*) 4183 lt_cv_deplibs_check_method=pass_all 4184 ;; 4185 4186 bsdi[45]*) 4187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4188 lt_cv_file_magic_cmd='/usr/bin/file -L' 4189 lt_cv_file_magic_test_file=/shlib/libc.so 4190 ;; 4191 4192 cygwin*) 4193 # func_win32_libid is a shell function defined in ltmain.sh 4194 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4195 lt_cv_file_magic_cmd='func_win32_libid' 4196 ;; 4197 4198 mingw* | pw32*) 4199 # Base MSYS/MinGW do not provide the 'file' command needed by 4200 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4201 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4202 lt_cv_file_magic_cmd='$OBJDUMP -f' 4203 ;; 4204 4205 darwin* | rhapsody*) 4206 lt_cv_deplibs_check_method=pass_all 4207 ;; 4208 4209 freebsd* | kfreebsd*-gnu | dragonfly*) 4210 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4211 case $host_cpu in 4212 i*86 ) 4213 # Not sure whether the presence of OpenBSD here was a mistake. 4214 # Let's accept both of them until this is cleared up. 4215 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4216 lt_cv_file_magic_cmd=/usr/bin/file 4217 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4218 ;; 4219 esac 4220 else 4221 lt_cv_deplibs_check_method=pass_all 4222 fi 4223 ;; 4224 4225 gnu*) 4226 lt_cv_deplibs_check_method=pass_all 4227 ;; 4228 4229 hpux10.20* | hpux11*) 4230 lt_cv_file_magic_cmd=/usr/bin/file 4231 case $host_cpu in 4232 ia64*) 4233 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4234 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4235 ;; 4236 hppa*64*) 4237 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]' 4238 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4239 ;; 4240 *) 4241 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4242 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4243 ;; 4244 esac 4245 ;; 4246 4247 interix3*) 4248 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4249 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4250 ;; 4251 4252 irix5* | irix6* | nonstopux*) 4253 case $LD in 4254 *-32|*"-32 ") libmagic=32-bit;; 4255 *-n32|*"-n32 ") libmagic=N32;; 4256 *-64|*"-64 ") libmagic=64-bit;; 4257 *) libmagic=never-match;; 4258 esac 4259 lt_cv_deplibs_check_method=pass_all 4260 ;; 4261 4262 # This must be Linux ELF. 4263 linux*) 4264 lt_cv_deplibs_check_method=pass_all 4265 ;; 4266 4267 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 4268 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4270 else 4271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4272 fi 4273 ;; 4274 4275 newos6*) 4276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4277 lt_cv_file_magic_cmd=/usr/bin/file 4278 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4279 ;; 4280 4281 nto-qnx*) 4282 lt_cv_deplibs_check_method=unknown 4283 ;; 4284 4285 openbsd*) 4286 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4288 else 4289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4290 fi 4291 ;; 4292 4293 osf3* | osf4* | osf5*) 4294 lt_cv_deplibs_check_method=pass_all 4295 ;; 4296 4297 solaris*) 4298 lt_cv_deplibs_check_method=pass_all 4299 ;; 4300 4301 sysv4 | sysv4.3*) 4302 case $host_vendor in 4303 motorola) 4304 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]' 4305 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4306 ;; 4307 ncr) 4308 lt_cv_deplibs_check_method=pass_all 4309 ;; 4310 sequent) 4311 lt_cv_file_magic_cmd='/bin/file' 4312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4313 ;; 4314 sni) 4315 lt_cv_file_magic_cmd='/bin/file' 4316 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4317 lt_cv_file_magic_test_file=/lib/libc.so 4318 ;; 4319 siemens) 4320 lt_cv_deplibs_check_method=pass_all 4321 ;; 4322 pc) 4323 lt_cv_deplibs_check_method=pass_all 4324 ;; 4325 esac 4326 ;; 4327 4328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4329 lt_cv_deplibs_check_method=pass_all 4330 ;; 4331 esac 4332 4333 fi 4334 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4335 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 4336 file_magic_cmd=$lt_cv_file_magic_cmd 4337 deplibs_check_method=$lt_cv_deplibs_check_method 4338 test -z "$deplibs_check_method" && deplibs_check_method=unknown 4339 4340 4341 4342 4343 # If no C compiler was specified, use CC. 4344 LTCC=${LTCC-"$CC"} 4345 4346 # If no C compiler flags were specified, use CFLAGS. 4347 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4348 4349 # Allow CC to be a program name with arguments. 4350 compiler=$CC 4351 4352 4353 # Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4354 if test "${enable_libtool_lock+set}" = set; then 4355 enableval="$enable_libtool_lock" 4356 4357 fi; 4358 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4359 4360 # Some flags need to be propagated to the compiler or linker for good 4361 # libtool support. 4362 case $host in 4363 ia64-*-hpux*) 4364 # Find out which ABI we are using. 4365 echo 'int i;' > conftest.$ac_ext 4366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4367 (eval $ac_compile) 2>&5 4368 ac_status=$? 4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4370 (exit $ac_status); }; then 4371 case `/usr/bin/file conftest.$ac_objext` in 4372 *ELF-32*) 4373 HPUX_IA64_MODE="32" 4374 ;; 4375 *ELF-64*) 4376 HPUX_IA64_MODE="64" 4377 ;; 4378 esac 4379 fi 4380 rm -rf conftest* 4381 ;; 4382 *-*-irix6*) 4383 # Find out which ABI we are using. 4384 echo '#line 4384 "configure"' > conftest.$ac_ext 4385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4386 (eval $ac_compile) 2>&5 4387 ac_status=$? 4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4389 (exit $ac_status); }; then 4390 if test "$lt_cv_prog_gnu_ld" = yes; then 4391 case `/usr/bin/file conftest.$ac_objext` in 4392 *32-bit*) 4393 LD="${LD-ld} -melf32bsmip" 4394 ;; 4395 *N32*) 4396 LD="${LD-ld} -melf32bmipn32" 4397 ;; 4398 *64-bit*) 4399 LD="${LD-ld} -melf64bmip" 4400 ;; 4401 esac 4402 else 4403 case `/usr/bin/file conftest.$ac_objext` in 4404 *32-bit*) 4405 LD="${LD-ld} -32" 4406 ;; 4407 *N32*) 4408 LD="${LD-ld} -n32" 4409 ;; 4410 *64-bit*) 4411 LD="${LD-ld} -64" 4412 ;; 4413 esac 4414 fi 4415 fi 4416 rm -rf conftest* 4417 ;; 4418 4419 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4420 # Find out which ABI we are using. 4421 echo 'int i;' > conftest.$ac_ext 4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4423 (eval $ac_compile) 2>&5 4424 ac_status=$? 4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4426 (exit $ac_status); }; then 4427 case `/usr/bin/file conftest.o` in 4428 *32-bit*) 4429 case $host in 4430 x86_64-*linux*) 4431 LD="${LD-ld} -m elf_i386" 4432 ;; 4433 ppc64-*linux*|powerpc64-*linux*) 4434 LD="${LD-ld} -m elf32ppclinux" 4435 ;; 4436 s390x-*linux*) 4437 LD="${LD-ld} -m elf_s390" 4438 ;; 4439 sparc64-*linux*) 4440 LD="${LD-ld} -m elf32_sparc" 4441 ;; 4442 esac 4443 ;; 4444 *64-bit*) 4445 case $host in 4446 x86_64-*linux*) 4447 LD="${LD-ld} -m elf_x86_64" 4448 ;; 4449 ppc*-*linux*|powerpc*-*linux*) 4450 LD="${LD-ld} -m elf64ppc" 4451 ;; 4452 s390*-*linux*) 4453 LD="${LD-ld} -m elf64_s390" 4454 ;; 4455 sparc*-*linux*) 4456 LD="${LD-ld} -m elf64_sparc" 4457 ;; 4458 esac 4459 ;; 4460 esac 4461 fi 4462 rm -rf conftest* 4463 ;; 4464 4465 *-*-sco3.2v5*) 4466 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4467 SAVE_CFLAGS="$CFLAGS" 4468 CFLAGS="$CFLAGS -belf" 4469 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4470 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 4471 if test "${lt_cv_cc_needs_belf+set}" = set; then 4472 echo $ECHO_N "(cached) $ECHO_C" >&6 4473 else 4474 ac_ext=c 4475 ac_cpp='$CPP $CPPFLAGS' 4476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4478 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4479 4480 cat >conftest.$ac_ext <<_ACEOF 4481 /* confdefs.h. */ 4482 _ACEOF 4483 cat confdefs.h >>conftest.$ac_ext 4484 cat >>conftest.$ac_ext <<_ACEOF 4485 /* end confdefs.h. */ 4486 4487 int 4488 main () 4489 { 4490 4491 ; 4492 return 0; 4493 } 4494 _ACEOF 4495 rm -f conftest.$ac_objext conftest$ac_exeext 4496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4497 (eval $ac_link) 2>conftest.er1 4498 ac_status=$? 4499 grep -v '^ *+' conftest.er1 >conftest.err 4500 rm -f conftest.er1 4501 cat conftest.err >&5 4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4503 (exit $ac_status); } && 4504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4506 (eval $ac_try) 2>&5 4507 ac_status=$? 4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4509 (exit $ac_status); }; } && 4510 { ac_try='test -s conftest$ac_exeext' 4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4512 (eval $ac_try) 2>&5 4513 ac_status=$? 4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4515 (exit $ac_status); }; }; then 4516 lt_cv_cc_needs_belf=yes 4517 else 4518 echo "$as_me: failed program was:" >&5 4519 sed 's/^/| /' conftest.$ac_ext >&5 4520 4521 lt_cv_cc_needs_belf=no 4522 fi 4523 rm -f conftest.err conftest.$ac_objext \ 4524 conftest$ac_exeext conftest.$ac_ext 4525 ac_ext=c 4526 ac_cpp='$CPP $CPPFLAGS' 4527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4529 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4530 4531 fi 4532 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4533 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4534 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4535 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4536 CFLAGS="$SAVE_CFLAGS" 4537 fi 4538 ;; 4539 sparc*-*solaris*) 4540 # Find out which ABI we are using. 4541 echo 'int i;' > conftest.$ac_ext 4542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4543 (eval $ac_compile) 2>&5 4544 ac_status=$? 4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4546 (exit $ac_status); }; then 4547 case `/usr/bin/file conftest.o` in 4548 *64-bit*) 4549 case $lt_cv_prog_gnu_ld in 4550 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4551 *) LD="${LD-ld} -64" ;; 4552 esac 4553 ;; 4554 esac 4555 fi 4556 rm -rf conftest* 4557 ;; 4558 4559 4560 esac 4561 4562 need_locks="$enable_libtool_lock" 4563 4564 4565 4566 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4567 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4568 if test "${ac_cv_header_stdc+set}" = set; then 4569 echo $ECHO_N "(cached) $ECHO_C" >&6 4570 else 4571 cat >conftest.$ac_ext <<_ACEOF 4572 /* confdefs.h. */ 4573 _ACEOF 4574 cat confdefs.h >>conftest.$ac_ext 4575 cat >>conftest.$ac_ext <<_ACEOF 4576 /* end confdefs.h. */ 4577 #include <stdlib.h> 4578 #include <stdarg.h> 4579 #include <string.h> 4580 #include <float.h> 4581 4582 int 4583 main () 4584 { 4585 4586 ; 4587 return 0; 4588 } 4589 _ACEOF 4590 rm -f conftest.$ac_objext 4591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4592 (eval $ac_compile) 2>conftest.er1 4593 ac_status=$? 4594 grep -v '^ *+' conftest.er1 >conftest.err 4595 rm -f conftest.er1 4596 cat conftest.err >&5 4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4598 (exit $ac_status); } && 4599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4601 (eval $ac_try) 2>&5 4602 ac_status=$? 4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4604 (exit $ac_status); }; } && 4605 { ac_try='test -s conftest.$ac_objext' 4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4607 (eval $ac_try) 2>&5 4608 ac_status=$? 4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4610 (exit $ac_status); }; }; then 4611 ac_cv_header_stdc=yes 4612 else 4613 echo "$as_me: failed program was:" >&5 4614 sed 's/^/| /' conftest.$ac_ext >&5 4615 4616 ac_cv_header_stdc=no 4617 fi 4618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4619 4620 if test $ac_cv_header_stdc = yes; then 4621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4622 cat >conftest.$ac_ext <<_ACEOF 4623 /* confdefs.h. */ 4624 _ACEOF 4625 cat confdefs.h >>conftest.$ac_ext 4626 cat >>conftest.$ac_ext <<_ACEOF 4627 /* end confdefs.h. */ 4628 #include <string.h> 4629 4630 _ACEOF 4631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4632 $EGREP "memchr" >/dev/null 2>&1; then 4633 : 4634 else 4635 ac_cv_header_stdc=no 4636 fi 4637 rm -f conftest* 4638 4639 fi 4640 4641 if test $ac_cv_header_stdc = yes; then 4642 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4643 cat >conftest.$ac_ext <<_ACEOF 4644 /* confdefs.h. */ 4645 _ACEOF 4646 cat confdefs.h >>conftest.$ac_ext 4647 cat >>conftest.$ac_ext <<_ACEOF 4648 /* end confdefs.h. */ 4649 #include <stdlib.h> 4650 4651 _ACEOF 4652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4653 $EGREP "free" >/dev/null 2>&1; then 4654 : 4655 else 4656 ac_cv_header_stdc=no 4657 fi 4658 rm -f conftest* 4659 4660 fi 4661 4662 if test $ac_cv_header_stdc = yes; then 4663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4664 if test "$cross_compiling" = yes; then 4665 : 4666 else 4667 cat >conftest.$ac_ext <<_ACEOF 4668 /* confdefs.h. */ 4669 _ACEOF 4670 cat confdefs.h >>conftest.$ac_ext 4671 cat >>conftest.$ac_ext <<_ACEOF 4672 /* end confdefs.h. */ 4673 #include <ctype.h> 4674 #if ((' ' & 0x0FF) == 0x020) 4675 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4676 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4677 #else 4678 # define ISLOWER(c) \ 4679 (('a' <= (c) && (c) <= 'i') \ 4680 || ('j' <= (c) && (c) <= 'r') \ 4681 || ('s' <= (c) && (c) <= 'z')) 4682 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4683 #endif 4684 4685 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4686 int 4687 main () 4688 { 4689 int i; 4690 for (i = 0; i < 256; i++) 4691 if (XOR (islower (i), ISLOWER (i)) 4692 || toupper (i) != TOUPPER (i)) 4693 exit(2); 4694 exit (0); 4695 } 4696 _ACEOF 4697 rm -f conftest$ac_exeext 4698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4699 (eval $ac_link) 2>&5 4700 ac_status=$? 4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4704 (eval $ac_try) 2>&5 4705 ac_status=$? 4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4707 (exit $ac_status); }; }; then 4708 : 4709 else 4710 echo "$as_me: program exited with status $ac_status" >&5 4711 echo "$as_me: failed program was:" >&5 4712 sed 's/^/| /' conftest.$ac_ext >&5 4713 4714 ( exit $ac_status ) 4715 ac_cv_header_stdc=no 4716 fi 4717 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4718 fi 4719 fi 4720 fi 4721 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4722 echo "${ECHO_T}$ac_cv_header_stdc" >&6 4723 if test $ac_cv_header_stdc = yes; then 4724 4725 cat >>confdefs.h <<\_ACEOF 4726 #define STDC_HEADERS 1 4727 _ACEOF 4728 4729 fi 4730 4731 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4742 inttypes.h stdint.h unistd.h 4743 do 4744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4745 echo "$as_me:$LINENO: checking for $ac_header" >&5 4746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4747 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4748 echo $ECHO_N "(cached) $ECHO_C" >&6 4749 else 4750 cat >conftest.$ac_ext <<_ACEOF 4751 /* confdefs.h. */ 4752 _ACEOF 4753 cat confdefs.h >>conftest.$ac_ext 4754 cat >>conftest.$ac_ext <<_ACEOF 4755 /* end confdefs.h. */ 4756 $ac_includes_default 4757 4758 #include <$ac_header> 4759 _ACEOF 4760 rm -f conftest.$ac_objext 4761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4762 (eval $ac_compile) 2>conftest.er1 4763 ac_status=$? 4764 grep -v '^ *+' conftest.er1 >conftest.err 4765 rm -f conftest.er1 4766 cat conftest.err >&5 4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4768 (exit $ac_status); } && 4769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4771 (eval $ac_try) 2>&5 4772 ac_status=$? 4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4774 (exit $ac_status); }; } && 4775 { ac_try='test -s conftest.$ac_objext' 4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4777 (eval $ac_try) 2>&5 4778 ac_status=$? 4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4780 (exit $ac_status); }; }; then 4781 eval "$as_ac_Header=yes" 4782 else 4783 echo "$as_me: failed program was:" >&5 4784 sed 's/^/| /' conftest.$ac_ext >&5 4785 4786 eval "$as_ac_Header=no" 4787 fi 4788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4789 fi 4790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4792 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4793 cat >>confdefs.h <<_ACEOF 4794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4795 _ACEOF 4796 4797 fi 4798 4799 done 4800 4801 4802 4803 for ac_header in dlfcn.h 4804 do 4805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4806 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4807 echo "$as_me:$LINENO: checking for $ac_header" >&5 4808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4809 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4810 echo $ECHO_N "(cached) $ECHO_C" >&6 4811 fi 4812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4814 else 4815 # Is the header compilable? 4816 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4818 cat >conftest.$ac_ext <<_ACEOF 4819 /* confdefs.h. */ 4820 _ACEOF 4821 cat confdefs.h >>conftest.$ac_ext 4822 cat >>conftest.$ac_ext <<_ACEOF 4823 /* end confdefs.h. */ 4824 $ac_includes_default 4825 #include <$ac_header> 4826 _ACEOF 4827 rm -f conftest.$ac_objext 4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4829 (eval $ac_compile) 2>conftest.er1 4830 ac_status=$? 4831 grep -v '^ *+' conftest.er1 >conftest.err 4832 rm -f conftest.er1 4833 cat conftest.err >&5 4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4835 (exit $ac_status); } && 4836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4838 (eval $ac_try) 2>&5 4839 ac_status=$? 4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4841 (exit $ac_status); }; } && 4842 { ac_try='test -s conftest.$ac_objext' 4843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4844 (eval $ac_try) 2>&5 4845 ac_status=$? 4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4847 (exit $ac_status); }; }; then 4848 ac_header_compiler=yes 4849 else 4850 echo "$as_me: failed program was:" >&5 4851 sed 's/^/| /' conftest.$ac_ext >&5 4852 4853 ac_header_compiler=no 4854 fi 4855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4857 echo "${ECHO_T}$ac_header_compiler" >&6 4858 4859 # Is the header present? 4860 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4862 cat >conftest.$ac_ext <<_ACEOF 4863 /* confdefs.h. */ 4864 _ACEOF 4865 cat confdefs.h >>conftest.$ac_ext 4866 cat >>conftest.$ac_ext <<_ACEOF 4867 /* end confdefs.h. */ 4868 #include <$ac_header> 4869 _ACEOF 4870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4872 ac_status=$? 4873 grep -v '^ *+' conftest.er1 >conftest.err 4874 rm -f conftest.er1 4875 cat conftest.err >&5 4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4877 (exit $ac_status); } >/dev/null; then 4878 if test -s conftest.err; then 4879 ac_cpp_err=$ac_c_preproc_warn_flag 4880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4881 else 4882 ac_cpp_err= 4883 fi 4884 else 4885 ac_cpp_err=yes 4886 fi 4887 if test -z "$ac_cpp_err"; then 4888 ac_header_preproc=yes 4889 else 4890 echo "$as_me: failed program was:" >&5 4891 sed 's/^/| /' conftest.$ac_ext >&5 4892 4893 ac_header_preproc=no 4894 fi 4895 rm -f conftest.err conftest.$ac_ext 4896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4897 echo "${ECHO_T}$ac_header_preproc" >&6 4898 4899 # So? What about this header? 4900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4901 yes:no: ) 4902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4906 ac_header_preproc=yes 4907 ;; 4908 no:yes:* ) 4909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4921 ( 4922 cat <<\_ASBOX 4923 ## ------------------------------------ ## 4924 ## Report this to opensource (at] google.com ## 4925 ## ------------------------------------ ## 4926 _ASBOX 4927 ) | 4928 sed "s/^/$as_me: WARNING: /" >&2 4929 ;; 4930 esac 4931 echo "$as_me:$LINENO: checking for $ac_header" >&5 4932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4933 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4934 echo $ECHO_N "(cached) $ECHO_C" >&6 4935 else 4936 eval "$as_ac_Header=\$ac_header_preproc" 4937 fi 4938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4940 4941 fi 4942 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4943 cat >>confdefs.h <<_ACEOF 4944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4945 _ACEOF 4946 4947 fi 4948 4949 done 4950 4951 4952 4953 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 4954 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 4955 (test "X$CXX" != "Xg++"))) ; then 4956 ac_ext=cc 4957 ac_cpp='$CXXCPP $CPPFLAGS' 4958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4961 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4962 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 4963 if test -z "$CXXCPP"; then 4964 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4965 echo $ECHO_N "(cached) $ECHO_C" >&6 4966 else 4967 # Double quotes because CXXCPP needs to be expanded 4968 for CXXCPP in "$CXX -E" "/lib/cpp" 4969 do 4970 ac_preproc_ok=false 4971 for ac_cxx_preproc_warn_flag in '' yes 4972 do 4973 # Use a header file that comes with gcc, so configuring glibc 4974 # with a fresh cross-compiler works. 4975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4976 # <limits.h> exists even on freestanding compilers. 4977 # On the NeXT, cc -E runs the code through the compiler's parser, 4978 # not just through cpp. "Syntax error" is here to catch this case. 4979 cat >conftest.$ac_ext <<_ACEOF 4980 /* confdefs.h. */ 4981 _ACEOF 4982 cat confdefs.h >>conftest.$ac_ext 4983 cat >>conftest.$ac_ext <<_ACEOF 4984 /* end confdefs.h. */ 4985 #ifdef __STDC__ 4986 # include <limits.h> 4987 #else 4988 # include <assert.h> 4989 #endif 4990 Syntax error 4991 _ACEOF 4992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4994 ac_status=$? 4995 grep -v '^ *+' conftest.er1 >conftest.err 4996 rm -f conftest.er1 4997 cat conftest.err >&5 4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4999 (exit $ac_status); } >/dev/null; then 5000 if test -s conftest.err; then 5001 ac_cpp_err=$ac_cxx_preproc_warn_flag 5002 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5003 else 5004 ac_cpp_err= 5005 fi 5006 else 5007 ac_cpp_err=yes 5008 fi 5009 if test -z "$ac_cpp_err"; then 5010 : 5011 else 5012 echo "$as_me: failed program was:" >&5 5013 sed 's/^/| /' conftest.$ac_ext >&5 5014 5015 # Broken: fails on valid input. 5016 continue 5017 fi 5018 rm -f conftest.err conftest.$ac_ext 5019 5020 # OK, works on sane cases. Now check whether non-existent headers 5021 # can be detected and how. 5022 cat >conftest.$ac_ext <<_ACEOF 5023 /* confdefs.h. */ 5024 _ACEOF 5025 cat confdefs.h >>conftest.$ac_ext 5026 cat >>conftest.$ac_ext <<_ACEOF 5027 /* end confdefs.h. */ 5028 #include <ac_nonexistent.h> 5029 _ACEOF 5030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5032 ac_status=$? 5033 grep -v '^ *+' conftest.er1 >conftest.err 5034 rm -f conftest.er1 5035 cat conftest.err >&5 5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5037 (exit $ac_status); } >/dev/null; then 5038 if test -s conftest.err; then 5039 ac_cpp_err=$ac_cxx_preproc_warn_flag 5040 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5041 else 5042 ac_cpp_err= 5043 fi 5044 else 5045 ac_cpp_err=yes 5046 fi 5047 if test -z "$ac_cpp_err"; then 5048 # Broken: success on invalid input. 5049 continue 5050 else 5051 echo "$as_me: failed program was:" >&5 5052 sed 's/^/| /' conftest.$ac_ext >&5 5053 5054 # Passes both tests. 5055 ac_preproc_ok=: 5056 break 5057 fi 5058 rm -f conftest.err conftest.$ac_ext 5059 5060 done 5061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5062 rm -f conftest.err conftest.$ac_ext 5063 if $ac_preproc_ok; then 5064 break 5065 fi 5066 5067 done 5068 ac_cv_prog_CXXCPP=$CXXCPP 5069 5070 fi 5071 CXXCPP=$ac_cv_prog_CXXCPP 5072 else 5073 ac_cv_prog_CXXCPP=$CXXCPP 5074 fi 5075 echo "$as_me:$LINENO: result: $CXXCPP" >&5 5076 echo "${ECHO_T}$CXXCPP" >&6 5077 ac_preproc_ok=false 5078 for ac_cxx_preproc_warn_flag in '' yes 5079 do 5080 # Use a header file that comes with gcc, so configuring glibc 5081 # with a fresh cross-compiler works. 5082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5083 # <limits.h> exists even on freestanding compilers. 5084 # On the NeXT, cc -E runs the code through the compiler's parser, 5085 # not just through cpp. "Syntax error" is here to catch this case. 5086 cat >conftest.$ac_ext <<_ACEOF 5087 /* confdefs.h. */ 5088 _ACEOF 5089 cat confdefs.h >>conftest.$ac_ext 5090 cat >>conftest.$ac_ext <<_ACEOF 5091 /* end confdefs.h. */ 5092 #ifdef __STDC__ 5093 # include <limits.h> 5094 #else 5095 # include <assert.h> 5096 #endif 5097 Syntax error 5098 _ACEOF 5099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5101 ac_status=$? 5102 grep -v '^ *+' conftest.er1 >conftest.err 5103 rm -f conftest.er1 5104 cat conftest.err >&5 5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5106 (exit $ac_status); } >/dev/null; then 5107 if test -s conftest.err; then 5108 ac_cpp_err=$ac_cxx_preproc_warn_flag 5109 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5110 else 5111 ac_cpp_err= 5112 fi 5113 else 5114 ac_cpp_err=yes 5115 fi 5116 if test -z "$ac_cpp_err"; then 5117 : 5118 else 5119 echo "$as_me: failed program was:" >&5 5120 sed 's/^/| /' conftest.$ac_ext >&5 5121 5122 # Broken: fails on valid input. 5123 continue 5124 fi 5125 rm -f conftest.err conftest.$ac_ext 5126 5127 # OK, works on sane cases. Now check whether non-existent headers 5128 # can be detected and how. 5129 cat >conftest.$ac_ext <<_ACEOF 5130 /* confdefs.h. */ 5131 _ACEOF 5132 cat confdefs.h >>conftest.$ac_ext 5133 cat >>conftest.$ac_ext <<_ACEOF 5134 /* end confdefs.h. */ 5135 #include <ac_nonexistent.h> 5136 _ACEOF 5137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5139 ac_status=$? 5140 grep -v '^ *+' conftest.er1 >conftest.err 5141 rm -f conftest.er1 5142 cat conftest.err >&5 5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5144 (exit $ac_status); } >/dev/null; then 5145 if test -s conftest.err; then 5146 ac_cpp_err=$ac_cxx_preproc_warn_flag 5147 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5148 else 5149 ac_cpp_err= 5150 fi 5151 else 5152 ac_cpp_err=yes 5153 fi 5154 if test -z "$ac_cpp_err"; then 5155 # Broken: success on invalid input. 5156 continue 5157 else 5158 echo "$as_me: failed program was:" >&5 5159 sed 's/^/| /' conftest.$ac_ext >&5 5160 5161 # Passes both tests. 5162 ac_preproc_ok=: 5163 break 5164 fi 5165 rm -f conftest.err conftest.$ac_ext 5166 5167 done 5168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5169 rm -f conftest.err conftest.$ac_ext 5170 if $ac_preproc_ok; then 5171 : 5172 else 5173 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5174 See \`config.log' for more details." >&5 5175 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5176 See \`config.log' for more details." >&2;} 5177 { (exit 1); exit 1; }; } 5178 fi 5179 5180 ac_ext=cc 5181 ac_cpp='$CXXCPP $CPPFLAGS' 5182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5185 5186 fi 5187 5188 5189 ac_ext=f 5190 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5191 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5192 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5193 if test -n "$ac_tool_prefix"; then 5194 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5195 do 5196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5198 echo "$as_me:$LINENO: checking for $ac_word" >&5 5199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5200 if test "${ac_cv_prog_F77+set}" = set; then 5201 echo $ECHO_N "(cached) $ECHO_C" >&6 5202 else 5203 if test -n "$F77"; then 5204 ac_cv_prog_F77="$F77" # Let the user override the test. 5205 else 5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5207 for as_dir in $PATH 5208 do 5209 IFS=$as_save_IFS 5210 test -z "$as_dir" && as_dir=. 5211 for ac_exec_ext in '' $ac_executable_extensions; do 5212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5213 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5215 break 2 5216 fi 5217 done 5218 done 5219 5220 fi 5221 fi 5222 F77=$ac_cv_prog_F77 5223 if test -n "$F77"; then 5224 echo "$as_me:$LINENO: result: $F77" >&5 5225 echo "${ECHO_T}$F77" >&6 5226 else 5227 echo "$as_me:$LINENO: result: no" >&5 5228 echo "${ECHO_T}no" >&6 5229 fi 5230 5231 test -n "$F77" && break 5232 done 5233 fi 5234 if test -z "$F77"; then 5235 ac_ct_F77=$F77 5236 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5237 do 5238 # Extract the first word of "$ac_prog", so it can be a program name with args. 5239 set dummy $ac_prog; ac_word=$2 5240 echo "$as_me:$LINENO: checking for $ac_word" >&5 5241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5242 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5243 echo $ECHO_N "(cached) $ECHO_C" >&6 5244 else 5245 if test -n "$ac_ct_F77"; then 5246 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5247 else 5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5249 for as_dir in $PATH 5250 do 5251 IFS=$as_save_IFS 5252 test -z "$as_dir" && as_dir=. 5253 for ac_exec_ext in '' $ac_executable_extensions; do 5254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5255 ac_cv_prog_ac_ct_F77="$ac_prog" 5256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5257 break 2 5258 fi 5259 done 5260 done 5261 5262 fi 5263 fi 5264 ac_ct_F77=$ac_cv_prog_ac_ct_F77 5265 if test -n "$ac_ct_F77"; then 5266 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5267 echo "${ECHO_T}$ac_ct_F77" >&6 5268 else 5269 echo "$as_me:$LINENO: result: no" >&5 5270 echo "${ECHO_T}no" >&6 5271 fi 5272 5273 test -n "$ac_ct_F77" && break 5274 done 5275 5276 F77=$ac_ct_F77 5277 fi 5278 5279 5280 # Provide some information about the compiler. 5281 echo "$as_me:5281:" \ 5282 "checking for Fortran 77 compiler version" >&5 5283 ac_compiler=`set X $ac_compile; echo $2` 5284 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5285 (eval $ac_compiler --version </dev/null >&5) 2>&5 5286 ac_status=$? 5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5288 (exit $ac_status); } 5289 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5290 (eval $ac_compiler -v </dev/null >&5) 2>&5 5291 ac_status=$? 5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5293 (exit $ac_status); } 5294 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5295 (eval $ac_compiler -V </dev/null >&5) 2>&5 5296 ac_status=$? 5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5298 (exit $ac_status); } 5299 rm -f a.out 5300 5301 # If we don't use `.F' as extension, the preprocessor is not run on the 5302 # input file. (Note that this only needs to work for GNU compilers.) 5303 ac_save_ext=$ac_ext 5304 ac_ext=F 5305 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5306 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5307 if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5308 echo $ECHO_N "(cached) $ECHO_C" >&6 5309 else 5310 cat >conftest.$ac_ext <<_ACEOF 5311 program main 5312 #ifndef __GNUC__ 5313 choke me 5314 #endif 5315 5316 end 5317 _ACEOF 5318 rm -f conftest.$ac_objext 5319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5320 (eval $ac_compile) 2>conftest.er1 5321 ac_status=$? 5322 grep -v '^ *+' conftest.er1 >conftest.err 5323 rm -f conftest.er1 5324 cat conftest.err >&5 5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5326 (exit $ac_status); } && 5327 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5329 (eval $ac_try) 2>&5 5330 ac_status=$? 5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5332 (exit $ac_status); }; } && 5333 { ac_try='test -s conftest.$ac_objext' 5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5335 (eval $ac_try) 2>&5 5336 ac_status=$? 5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5338 (exit $ac_status); }; }; then 5339 ac_compiler_gnu=yes 5340 else 5341 echo "$as_me: failed program was:" >&5 5342 sed 's/^/| /' conftest.$ac_ext >&5 5343 5344 ac_compiler_gnu=no 5345 fi 5346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5347 ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5348 5349 fi 5350 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5351 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5352 ac_ext=$ac_save_ext 5353 ac_test_FFLAGS=${FFLAGS+set} 5354 ac_save_FFLAGS=$FFLAGS 5355 FFLAGS= 5356 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5357 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5358 if test "${ac_cv_prog_f77_g+set}" = set; then 5359 echo $ECHO_N "(cached) $ECHO_C" >&6 5360 else 5361 FFLAGS=-g 5362 cat >conftest.$ac_ext <<_ACEOF 5363 program main 5364 5365 end 5366 _ACEOF 5367 rm -f conftest.$ac_objext 5368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5369 (eval $ac_compile) 2>conftest.er1 5370 ac_status=$? 5371 grep -v '^ *+' conftest.er1 >conftest.err 5372 rm -f conftest.er1 5373 cat conftest.err >&5 5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5375 (exit $ac_status); } && 5376 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 5377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5378 (eval $ac_try) 2>&5 5379 ac_status=$? 5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5381 (exit $ac_status); }; } && 5382 { ac_try='test -s conftest.$ac_objext' 5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5384 (eval $ac_try) 2>&5 5385 ac_status=$? 5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5387 (exit $ac_status); }; }; then 5388 ac_cv_prog_f77_g=yes 5389 else 5390 echo "$as_me: failed program was:" >&5 5391 sed 's/^/| /' conftest.$ac_ext >&5 5392 5393 ac_cv_prog_f77_g=no 5394 fi 5395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5396 5397 fi 5398 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5399 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5400 if test "$ac_test_FFLAGS" = set; then 5401 FFLAGS=$ac_save_FFLAGS 5402 elif test $ac_cv_prog_f77_g = yes; then 5403 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5404 FFLAGS="-g -O2" 5405 else 5406 FFLAGS="-g" 5407 fi 5408 else 5409 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5410 FFLAGS="-O2" 5411 else 5412 FFLAGS= 5413 fi 5414 fi 5415 5416 G77=`test $ac_compiler_gnu = yes && echo yes` 5417 ac_ext=c 5418 ac_cpp='$CPP $CPPFLAGS' 5419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5421 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5422 5423 5424 5425 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5426 5427 # find the maximum length of command line arguments 5428 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5429 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5430 if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5431 echo $ECHO_N "(cached) $ECHO_C" >&6 5432 else 5433 i=0 5434 teststring="ABCD" 5435 5436 case $build_os in 5437 msdosdjgpp*) 5438 # On DJGPP, this test can blow up pretty badly due to problems in libc 5439 # (any single argument exceeding 2000 bytes causes a buffer overrun 5440 # during glob expansion). Even if it were fixed, the result of this 5441 # check would be larger than it should be. 5442 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5443 ;; 5444 5445 gnu*) 5446 # Under GNU Hurd, this test is not required because there is 5447 # no limit to the length of command line arguments. 5448 # Libtool will interpret -1 as no limit whatsoever 5449 lt_cv_sys_max_cmd_len=-1; 5450 ;; 5451 5452 cygwin* | mingw*) 5453 # On Win9x/ME, this test blows up -- it succeeds, but takes 5454 # about 5 minutes as the teststring grows exponentially. 5455 # Worse, since 9x/ME are not pre-emptively multitasking, 5456 # you end up with a "frozen" computer, even though with patience 5457 # the test eventually succeeds (with a max line length of 256k). 5458 # Instead, let's just punt: use the minimum linelength reported by 5459 # all of the supported platforms: 8192 (on NT/2K/XP). 5460 lt_cv_sys_max_cmd_len=8192; 5461 ;; 5462 5463 amigaos*) 5464 # On AmigaOS with pdksh, this test takes hours, literally. 5465 # So we just punt and use a minimum line length of 8192. 5466 lt_cv_sys_max_cmd_len=8192; 5467 ;; 5468 5469 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5470 # This has been around since 386BSD, at least. Likely further. 5471 if test -x /sbin/sysctl; then 5472 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5473 elif test -x /usr/sbin/sysctl; then 5474 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5475 else 5476 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5477 fi 5478 # And add a safety zone 5479 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5480 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5481 ;; 5482 5483 interix*) 5484 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5485 lt_cv_sys_max_cmd_len=196608 5486 ;; 5487 5488 osf*) 5489 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5490 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5491 # nice to cause kernel panics so lets avoid the loop below. 5492 # First set a reasonable default. 5493 lt_cv_sys_max_cmd_len=16384 5494 # 5495 if test -x /sbin/sysconfig; then 5496 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5497 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5498 esac 5499 fi 5500 ;; 5501 sco3.2v5*) 5502 lt_cv_sys_max_cmd_len=102400 5503 ;; 5504 sysv5* | sco5v6* | sysv4.2uw2*) 5505 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5506 if test -n "$kargmax"; then 5507 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5508 else 5509 lt_cv_sys_max_cmd_len=32768 5510 fi 5511 ;; 5512 *) 5513 # If test is not a shell built-in, we'll probably end up computing a 5514 # maximum length that is only half of the actual maximum length, but 5515 # we can't tell. 5516 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5517 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5518 = "XX$teststring") >/dev/null 2>&1 && 5519 new_result=`expr "X$teststring" : ".*" 2>&1` && 5520 lt_cv_sys_max_cmd_len=$new_result && 5521 test $i != 17 # 1/2 MB should be enough 5522 do 5523 i=`expr $i + 1` 5524 teststring=$teststring$teststring 5525 done 5526 teststring= 5527 # Add a significant safety factor because C++ compilers can tack on massive 5528 # amounts of additional arguments before passing them to the linker. 5529 # It appears as though 1/2 is a usable value. 5530 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5531 ;; 5532 esac 5533 5534 fi 5535 5536 if test -n $lt_cv_sys_max_cmd_len ; then 5537 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5538 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5539 else 5540 echo "$as_me:$LINENO: result: none" >&5 5541 echo "${ECHO_T}none" >&6 5542 fi 5543 5544 5545 5546 5547 # Check for command to grab the raw symbol name followed by C symbol from nm. 5548 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5549 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5550 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5551 echo $ECHO_N "(cached) $ECHO_C" >&6 5552 else 5553 5554 # These are sane defaults that work on at least a few old systems. 5555 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 5556 5557 # Character class describing NM global symbol codes. 5558 symcode='[BCDEGRST]' 5559 5560 # Regexp to match symbols that can be accessed directly from C. 5561 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5562 5563 # Transform an extracted symbol line into a proper C declaration 5564 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5565 5566 # Transform an extracted symbol line into symbol name and symbol address 5567 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'" 5568 5569 # Define system-specific variables. 5570 case $host_os in 5571 aix*) 5572 symcode='[BCDT]' 5573 ;; 5574 cygwin* | mingw* | pw32*) 5575 symcode='[ABCDGISTW]' 5576 ;; 5577 hpux*) # Its linker distinguishes data from code symbols 5578 if test "$host_cpu" = ia64; then 5579 symcode='[ABCDEGRST]' 5580 fi 5581 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5582 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'" 5583 ;; 5584 linux*) 5585 if test "$host_cpu" = ia64; then 5586 symcode='[ABCDGIRSTW]' 5587 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5588 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'" 5589 fi 5590 ;; 5591 irix* | nonstopux*) 5592 symcode='[BCDEGRST]' 5593 ;; 5594 osf*) 5595 symcode='[BCDEGQRST]' 5596 ;; 5597 solaris*) 5598 symcode='[BDRT]' 5599 ;; 5600 sco3.2v5*) 5601 symcode='[DT]' 5602 ;; 5603 sysv4.2uw2*) 5604 symcode='[DT]' 5605 ;; 5606 sysv5* | sco5v6* | unixware* | OpenUNIX*) 5607 symcode='[ABDT]' 5608 ;; 5609 sysv4) 5610 symcode='[DFNSTU]' 5611 ;; 5612 esac 5613 5614 # Handle CRLF in mingw tool chain 5615 opt_cr= 5616 case $build_os in 5617 mingw*) 5618 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5619 ;; 5620 esac 5621 5622 # If we're using GNU nm, then use its standard symbol codes. 5623 case `$NM -V 2>&1` in 5624 *GNU* | *'with BFD'*) 5625 symcode='[ABCDGIRSTW]' ;; 5626 esac 5627 5628 # Try without a prefix undercore, then with it. 5629 for ac_symprfx in "" "_"; do 5630 5631 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5632 symxfrm="\\1 $ac_symprfx\\2 \\2" 5633 5634 # Write the raw and C identifiers. 5635 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5636 5637 # Check to see that the pipe works correctly. 5638 pipe_works=no 5639 5640 rm -f conftest* 5641 cat > conftest.$ac_ext <<EOF 5642 #ifdef __cplusplus 5643 extern "C" { 5644 #endif 5645 char nm_test_var; 5646 void nm_test_func(){} 5647 #ifdef __cplusplus 5648 } 5649 #endif 5650 int main(){nm_test_var='a';nm_test_func();return(0);} 5651 EOF 5652 5653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5654 (eval $ac_compile) 2>&5 5655 ac_status=$? 5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5657 (exit $ac_status); }; then 5658 # Now try to grab the symbols. 5659 nlist=conftest.nm 5660 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5661 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5662 ac_status=$? 5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5664 (exit $ac_status); } && test -s "$nlist"; then 5665 # Try sorting and uniquifying the output. 5666 if sort "$nlist" | uniq > "$nlist"T; then 5667 mv -f "$nlist"T "$nlist" 5668 else 5669 rm -f "$nlist"T 5670 fi 5671 5672 # Make sure that we snagged all the symbols we need. 5673 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5674 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5675 cat <<EOF > conftest.$ac_ext 5676 #ifdef __cplusplus 5677 extern "C" { 5678 #endif 5679 5680 EOF 5681 # Now generate the symbol file. 5682 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5683 5684 cat <<EOF >> conftest.$ac_ext 5685 #if defined (__STDC__) && __STDC__ 5686 # define lt_ptr_t void * 5687 #else 5688 # define lt_ptr_t char * 5689 # define const 5690 #endif 5691 5692 /* The mapping between symbol names and symbols. */ 5693 const struct { 5694 const char *name; 5695 lt_ptr_t address; 5696 } 5697 lt_preloaded_symbols[] = 5698 { 5699 EOF 5700 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5701 cat <<\EOF >> conftest.$ac_ext 5702 {0, (lt_ptr_t) 0} 5703 }; 5704 5705 #ifdef __cplusplus 5706 } 5707 #endif 5708 EOF 5709 # Now try linking the two files. 5710 mv conftest.$ac_objext conftstm.$ac_objext 5711 lt_save_LIBS="$LIBS" 5712 lt_save_CFLAGS="$CFLAGS" 5713 LIBS="conftstm.$ac_objext" 5714 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5716 (eval $ac_link) 2>&5 5717 ac_status=$? 5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5719 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5720 pipe_works=yes 5721 fi 5722 LIBS="$lt_save_LIBS" 5723 CFLAGS="$lt_save_CFLAGS" 5724 else 5725 echo "cannot find nm_test_func in $nlist" >&5 5726 fi 5727 else 5728 echo "cannot find nm_test_var in $nlist" >&5 5729 fi 5730 else 5731 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5732 fi 5733 else 5734 echo "$progname: failed program was:" >&5 5735 cat conftest.$ac_ext >&5 5736 fi 5737 rm -f conftest* conftst* 5738 5739 # Do not use the global_symbol_pipe unless it works. 5740 if test "$pipe_works" = yes; then 5741 break 5742 else 5743 lt_cv_sys_global_symbol_pipe= 5744 fi 5745 done 5746 5747 fi 5748 5749 if test -z "$lt_cv_sys_global_symbol_pipe"; then 5750 lt_cv_sys_global_symbol_to_cdecl= 5751 fi 5752 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5753 echo "$as_me:$LINENO: result: failed" >&5 5754 echo "${ECHO_T}failed" >&6 5755 else 5756 echo "$as_me:$LINENO: result: ok" >&5 5757 echo "${ECHO_T}ok" >&6 5758 fi 5759 5760 echo "$as_me:$LINENO: checking for objdir" >&5 5761 echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5762 if test "${lt_cv_objdir+set}" = set; then 5763 echo $ECHO_N "(cached) $ECHO_C" >&6 5764 else 5765 rm -f .libs 2>/dev/null 5766 mkdir .libs 2>/dev/null 5767 if test -d .libs; then 5768 lt_cv_objdir=.libs 5769 else 5770 # MS-DOS does not allow filenames that begin with a dot. 5771 lt_cv_objdir=_libs 5772 fi 5773 rmdir .libs 2>/dev/null 5774 fi 5775 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5776 echo "${ECHO_T}$lt_cv_objdir" >&6 5777 objdir=$lt_cv_objdir 5778 5779 5780 5781 5782 5783 case $host_os in 5784 aix3*) 5785 # AIX sometimes has problems with the GCC collect2 program. For some 5786 # reason, if we set the COLLECT_NAMES environment variable, the problems 5787 # vanish in a puff of smoke. 5788 if test "X${COLLECT_NAMES+set}" != Xset; then 5789 COLLECT_NAMES= 5790 export COLLECT_NAMES 5791 fi 5792 ;; 5793 esac 5794 5795 # Sed substitution that helps us do robust quoting. It backslashifies 5796 # metacharacters that are still active within double-quoted strings. 5797 Xsed='sed -e 1s/^X//' 5798 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5799 5800 # Same as above, but do not quote variable references. 5801 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5802 5803 # Sed substitution to delay expansion of an escaped shell variable in a 5804 # double_quote_subst'ed string. 5805 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5806 5807 # Sed substitution to avoid accidental globbing in evaled expressions 5808 no_glob_subst='s/\*/\\\*/g' 5809 5810 # Constants: 5811 rm="rm -f" 5812 5813 # Global variables: 5814 default_ofile=libtool 5815 can_build_shared=yes 5816 5817 # All known linkers require a `.a' archive for static linking (except MSVC, 5818 # which needs '.lib'). 5819 libext=a 5820 ltmain="$ac_aux_dir/ltmain.sh" 5821 ofile="$default_ofile" 5822 with_gnu_ld="$lt_cv_prog_gnu_ld" 5823 5824 if test -n "$ac_tool_prefix"; then 5825 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5826 set dummy ${ac_tool_prefix}ar; ac_word=$2 5827 echo "$as_me:$LINENO: checking for $ac_word" >&5 5828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5829 if test "${ac_cv_prog_AR+set}" = set; then 5830 echo $ECHO_N "(cached) $ECHO_C" >&6 5831 else 5832 if test -n "$AR"; then 5833 ac_cv_prog_AR="$AR" # Let the user override the test. 5834 else 5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5836 for as_dir in $PATH 5837 do 5838 IFS=$as_save_IFS 5839 test -z "$as_dir" && as_dir=. 5840 for ac_exec_ext in '' $ac_executable_extensions; do 5841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5842 ac_cv_prog_AR="${ac_tool_prefix}ar" 5843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5844 break 2 5845 fi 5846 done 5847 done 5848 5849 fi 5850 fi 5851 AR=$ac_cv_prog_AR 5852 if test -n "$AR"; then 5853 echo "$as_me:$LINENO: result: $AR" >&5 5854 echo "${ECHO_T}$AR" >&6 5855 else 5856 echo "$as_me:$LINENO: result: no" >&5 5857 echo "${ECHO_T}no" >&6 5858 fi 5859 5860 fi 5861 if test -z "$ac_cv_prog_AR"; then 5862 ac_ct_AR=$AR 5863 # Extract the first word of "ar", so it can be a program name with args. 5864 set dummy ar; ac_word=$2 5865 echo "$as_me:$LINENO: checking for $ac_word" >&5 5866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5867 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5868 echo $ECHO_N "(cached) $ECHO_C" >&6 5869 else 5870 if test -n "$ac_ct_AR"; then 5871 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5872 else 5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5874 for as_dir in $PATH 5875 do 5876 IFS=$as_save_IFS 5877 test -z "$as_dir" && as_dir=. 5878 for ac_exec_ext in '' $ac_executable_extensions; do 5879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5880 ac_cv_prog_ac_ct_AR="ar" 5881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5882 break 2 5883 fi 5884 done 5885 done 5886 5887 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5888 fi 5889 fi 5890 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5891 if test -n "$ac_ct_AR"; then 5892 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5893 echo "${ECHO_T}$ac_ct_AR" >&6 5894 else 5895 echo "$as_me:$LINENO: result: no" >&5 5896 echo "${ECHO_T}no" >&6 5897 fi 5898 5899 AR=$ac_ct_AR 5900 else 5901 AR="$ac_cv_prog_AR" 5902 fi 5903 5904 if test -n "$ac_tool_prefix"; then 5905 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5906 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5907 echo "$as_me:$LINENO: checking for $ac_word" >&5 5908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5909 if test "${ac_cv_prog_RANLIB+set}" = set; then 5910 echo $ECHO_N "(cached) $ECHO_C" >&6 5911 else 5912 if test -n "$RANLIB"; then 5913 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5914 else 5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5916 for as_dir in $PATH 5917 do 5918 IFS=$as_save_IFS 5919 test -z "$as_dir" && as_dir=. 5920 for ac_exec_ext in '' $ac_executable_extensions; do 5921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5922 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5924 break 2 5925 fi 5926 done 5927 done 5928 5929 fi 5930 fi 5931 RANLIB=$ac_cv_prog_RANLIB 5932 if test -n "$RANLIB"; then 5933 echo "$as_me:$LINENO: result: $RANLIB" >&5 5934 echo "${ECHO_T}$RANLIB" >&6 5935 else 5936 echo "$as_me:$LINENO: result: no" >&5 5937 echo "${ECHO_T}no" >&6 5938 fi 5939 5940 fi 5941 if test -z "$ac_cv_prog_RANLIB"; then 5942 ac_ct_RANLIB=$RANLIB 5943 # Extract the first word of "ranlib", so it can be a program name with args. 5944 set dummy ranlib; ac_word=$2 5945 echo "$as_me:$LINENO: checking for $ac_word" >&5 5946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5947 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5948 echo $ECHO_N "(cached) $ECHO_C" >&6 5949 else 5950 if test -n "$ac_ct_RANLIB"; then 5951 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5952 else 5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5954 for as_dir in $PATH 5955 do 5956 IFS=$as_save_IFS 5957 test -z "$as_dir" && as_dir=. 5958 for ac_exec_ext in '' $ac_executable_extensions; do 5959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5960 ac_cv_prog_ac_ct_RANLIB="ranlib" 5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5962 break 2 5963 fi 5964 done 5965 done 5966 5967 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5968 fi 5969 fi 5970 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5971 if test -n "$ac_ct_RANLIB"; then 5972 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5973 echo "${ECHO_T}$ac_ct_RANLIB" >&6 5974 else 5975 echo "$as_me:$LINENO: result: no" >&5 5976 echo "${ECHO_T}no" >&6 5977 fi 5978 5979 RANLIB=$ac_ct_RANLIB 5980 else 5981 RANLIB="$ac_cv_prog_RANLIB" 5982 fi 5983 5984 if test -n "$ac_tool_prefix"; then 5985 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5986 set dummy ${ac_tool_prefix}strip; ac_word=$2 5987 echo "$as_me:$LINENO: checking for $ac_word" >&5 5988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5989 if test "${ac_cv_prog_STRIP+set}" = set; then 5990 echo $ECHO_N "(cached) $ECHO_C" >&6 5991 else 5992 if test -n "$STRIP"; then 5993 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5994 else 5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5996 for as_dir in $PATH 5997 do 5998 IFS=$as_save_IFS 5999 test -z "$as_dir" && as_dir=. 6000 for ac_exec_ext in '' $ac_executable_extensions; do 6001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6002 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6004 break 2 6005 fi 6006 done 6007 done 6008 6009 fi 6010 fi 6011 STRIP=$ac_cv_prog_STRIP 6012 if test -n "$STRIP"; then 6013 echo "$as_me:$LINENO: result: $STRIP" >&5 6014 echo "${ECHO_T}$STRIP" >&6 6015 else 6016 echo "$as_me:$LINENO: result: no" >&5 6017 echo "${ECHO_T}no" >&6 6018 fi 6019 6020 fi 6021 if test -z "$ac_cv_prog_STRIP"; then 6022 ac_ct_STRIP=$STRIP 6023 # Extract the first word of "strip", so it can be a program name with args. 6024 set dummy strip; ac_word=$2 6025 echo "$as_me:$LINENO: checking for $ac_word" >&5 6026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6027 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6028 echo $ECHO_N "(cached) $ECHO_C" >&6 6029 else 6030 if test -n "$ac_ct_STRIP"; then 6031 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6032 else 6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6034 for as_dir in $PATH 6035 do 6036 IFS=$as_save_IFS 6037 test -z "$as_dir" && as_dir=. 6038 for ac_exec_ext in '' $ac_executable_extensions; do 6039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6040 ac_cv_prog_ac_ct_STRIP="strip" 6041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6042 break 2 6043 fi 6044 done 6045 done 6046 6047 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6048 fi 6049 fi 6050 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6051 if test -n "$ac_ct_STRIP"; then 6052 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6053 echo "${ECHO_T}$ac_ct_STRIP" >&6 6054 else 6055 echo "$as_me:$LINENO: result: no" >&5 6056 echo "${ECHO_T}no" >&6 6057 fi 6058 6059 STRIP=$ac_ct_STRIP 6060 else 6061 STRIP="$ac_cv_prog_STRIP" 6062 fi 6063 6064 6065 old_CC="$CC" 6066 old_CFLAGS="$CFLAGS" 6067 6068 # Set sane defaults for various variables 6069 test -z "$AR" && AR=ar 6070 test -z "$AR_FLAGS" && AR_FLAGS=cru 6071 test -z "$AS" && AS=as 6072 test -z "$CC" && CC=cc 6073 test -z "$LTCC" && LTCC=$CC 6074 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6075 test -z "$DLLTOOL" && DLLTOOL=dlltool 6076 test -z "$LD" && LD=ld 6077 test -z "$LN_S" && LN_S="ln -s" 6078 test -z "$MAGIC_CMD" && MAGIC_CMD=file 6079 test -z "$NM" && NM=nm 6080 test -z "$SED" && SED=sed 6081 test -z "$OBJDUMP" && OBJDUMP=objdump 6082 test -z "$RANLIB" && RANLIB=: 6083 test -z "$STRIP" && STRIP=: 6084 test -z "$ac_objext" && ac_objext=o 6085 6086 # Determine commands to create old-style static archives. 6087 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6088 old_postinstall_cmds='chmod 644 $oldlib' 6089 old_postuninstall_cmds= 6090 6091 if test -n "$RANLIB"; then 6092 case $host_os in 6093 openbsd*) 6094 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6095 ;; 6096 *) 6097 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6098 ;; 6099 esac 6100 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6101 fi 6102 6103 for cc_temp in $compiler""; do 6104 case $cc_temp in 6105 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6106 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6107 \-*) ;; 6108 *) break;; 6109 esac 6110 done 6111 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6112 6113 6114 # Only perform the check for file, if the check method requires it 6115 case $deplibs_check_method in 6116 file_magic*) 6117 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6118 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6119 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6120 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6121 echo $ECHO_N "(cached) $ECHO_C" >&6 6122 else 6123 case $MAGIC_CMD in 6124 [\\/*] | ?:[\\/]*) 6125 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6126 ;; 6127 *) 6128 lt_save_MAGIC_CMD="$MAGIC_CMD" 6129 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6130 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6131 for ac_dir in $ac_dummy; do 6132 IFS="$lt_save_ifs" 6133 test -z "$ac_dir" && ac_dir=. 6134 if test -f $ac_dir/${ac_tool_prefix}file; then 6135 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6136 if test -n "$file_magic_test_file"; then 6137 case $deplibs_check_method in 6138 "file_magic "*) 6139 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6140 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6141 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6142 $EGREP "$file_magic_regex" > /dev/null; then 6143 : 6144 else 6145 cat <<EOF 1>&2 6146 6147 *** Warning: the command libtool uses to detect shared libraries, 6148 *** $file_magic_cmd, produces output that libtool cannot recognize. 6149 *** The result is that libtool may fail to recognize shared libraries 6150 *** as such. This will affect the creation of libtool libraries that 6151 *** depend on shared libraries, but programs linked with such libtool 6152 *** libraries will work regardless of this problem. Nevertheless, you 6153 *** may want to report the problem to your system manager and/or to 6154 *** bug-libtool@gnu.org 6155 6156 EOF 6157 fi ;; 6158 esac 6159 fi 6160 break 6161 fi 6162 done 6163 IFS="$lt_save_ifs" 6164 MAGIC_CMD="$lt_save_MAGIC_CMD" 6165 ;; 6166 esac 6167 fi 6168 6169 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6170 if test -n "$MAGIC_CMD"; then 6171 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6172 echo "${ECHO_T}$MAGIC_CMD" >&6 6173 else 6174 echo "$as_me:$LINENO: result: no" >&5 6175 echo "${ECHO_T}no" >&6 6176 fi 6177 6178 if test -z "$lt_cv_path_MAGIC_CMD"; then 6179 if test -n "$ac_tool_prefix"; then 6180 echo "$as_me:$LINENO: checking for file" >&5 6181 echo $ECHO_N "checking for file... $ECHO_C" >&6 6182 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6183 echo $ECHO_N "(cached) $ECHO_C" >&6 6184 else 6185 case $MAGIC_CMD in 6186 [\\/*] | ?:[\\/]*) 6187 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6188 ;; 6189 *) 6190 lt_save_MAGIC_CMD="$MAGIC_CMD" 6191 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6192 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6193 for ac_dir in $ac_dummy; do 6194 IFS="$lt_save_ifs" 6195 test -z "$ac_dir" && ac_dir=. 6196 if test -f $ac_dir/file; then 6197 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6198 if test -n "$file_magic_test_file"; then 6199 case $deplibs_check_method in 6200 "file_magic "*) 6201 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6202 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6203 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6204 $EGREP "$file_magic_regex" > /dev/null; then 6205 : 6206 else 6207 cat <<EOF 1>&2 6208 6209 *** Warning: the command libtool uses to detect shared libraries, 6210 *** $file_magic_cmd, produces output that libtool cannot recognize. 6211 *** The result is that libtool may fail to recognize shared libraries 6212 *** as such. This will affect the creation of libtool libraries that 6213 *** depend on shared libraries, but programs linked with such libtool 6214 *** libraries will work regardless of this problem. Nevertheless, you 6215 *** may want to report the problem to your system manager and/or to 6216 *** bug-libtool@gnu.org 6217 6218 EOF 6219 fi ;; 6220 esac 6221 fi 6222 break 6223 fi 6224 done 6225 IFS="$lt_save_ifs" 6226 MAGIC_CMD="$lt_save_MAGIC_CMD" 6227 ;; 6228 esac 6229 fi 6230 6231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6232 if test -n "$MAGIC_CMD"; then 6233 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6234 echo "${ECHO_T}$MAGIC_CMD" >&6 6235 else 6236 echo "$as_me:$LINENO: result: no" >&5 6237 echo "${ECHO_T}no" >&6 6238 fi 6239 6240 else 6241 MAGIC_CMD=: 6242 fi 6243 fi 6244 6245 fi 6246 ;; 6247 esac 6248 6249 enable_dlopen=no 6250 enable_win32_dll=no 6251 6252 # Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6253 if test "${enable_libtool_lock+set}" = set; then 6254 enableval="$enable_libtool_lock" 6255 6256 fi; 6257 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6258 6259 6260 # Check whether --with-pic or --without-pic was given. 6261 if test "${with_pic+set}" = set; then 6262 withval="$with_pic" 6263 pic_mode="$withval" 6264 else 6265 pic_mode=default 6266 fi; 6267 test -z "$pic_mode" && pic_mode=default 6268 6269 # Use C for the default configuration in the libtool script 6270 tagname= 6271 lt_save_CC="$CC" 6272 ac_ext=c 6273 ac_cpp='$CPP $CPPFLAGS' 6274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6276 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6277 6278 6279 # Source file extension for C test sources. 6280 ac_ext=c 6281 6282 # Object file extension for compiled C test sources. 6283 objext=o 6284 objext=$objext 6285 6286 # Code to be used in simple compile tests 6287 lt_simple_compile_test_code="int some_variable = 0;\n" 6288 6289 # Code to be used in simple link tests 6290 lt_simple_link_test_code='int main(){return(0);}\n' 6291 6292 6293 # If no C compiler was specified, use CC. 6294 LTCC=${LTCC-"$CC"} 6295 6296 # If no C compiler flags were specified, use CFLAGS. 6297 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6298 6299 # Allow CC to be a program name with arguments. 6300 compiler=$CC 6301 6302 6303 # save warnings/boilerplate of simple test code 6304 ac_outfile=conftest.$ac_objext 6305 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6306 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6307 _lt_compiler_boilerplate=`cat conftest.err` 6308 $rm conftest* 6309 6310 ac_outfile=conftest.$ac_objext 6311 printf "$lt_simple_link_test_code" >conftest.$ac_ext 6312 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6313 _lt_linker_boilerplate=`cat conftest.err` 6314 $rm conftest* 6315 6316 6317 6318 lt_prog_compiler_no_builtin_flag= 6319 6320 if test "$GCC" = yes; then 6321 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6322 6323 6324 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6325 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6326 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6327 echo $ECHO_N "(cached) $ECHO_C" >&6 6328 else 6329 lt_cv_prog_compiler_rtti_exceptions=no 6330 ac_outfile=conftest.$ac_objext 6331 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6332 lt_compiler_flag="-fno-rtti -fno-exceptions" 6333 # Insert the option either (1) after the last *FLAGS variable, or 6334 # (2) before a word containing "conftest.", or (3) at the end. 6335 # Note that $ac_compile itself does not contain backslashes and begins 6336 # with a dollar sign (not a hyphen), so the echo should work correctly. 6337 # The option is referenced via a variable to avoid confusing sed. 6338 lt_compile=`echo "$ac_compile" | $SED \ 6339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6341 -e 's:$: $lt_compiler_flag:'` 6342 (eval echo "\"\$as_me:6342: $lt_compile\"" >&5) 6343 (eval "$lt_compile" 2>conftest.err) 6344 ac_status=$? 6345 cat conftest.err >&5 6346 echo "$as_me:6346: \$? = $ac_status" >&5 6347 if (exit $ac_status) && test -s "$ac_outfile"; then 6348 # The compiler can only warn and ignore the option if not recognized 6349 # So say no if there are warnings other than the usual output. 6350 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6352 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6353 lt_cv_prog_compiler_rtti_exceptions=yes 6354 fi 6355 fi 6356 $rm conftest* 6357 6358 fi 6359 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6360 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6361 6362 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6363 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6364 else 6365 : 6366 fi 6367 6368 fi 6369 6370 lt_prog_compiler_wl= 6371 lt_prog_compiler_pic= 6372 lt_prog_compiler_static= 6373 6374 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6375 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6376 6377 if test "$GCC" = yes; then 6378 lt_prog_compiler_wl='-Wl,' 6379 lt_prog_compiler_static='-static' 6380 6381 case $host_os in 6382 aix*) 6383 # All AIX code is PIC. 6384 if test "$host_cpu" = ia64; then 6385 # AIX 5 now supports IA64 processor 6386 lt_prog_compiler_static='-Bstatic' 6387 fi 6388 ;; 6389 6390 amigaos*) 6391 # FIXME: we need at least 68020 code to build shared libraries, but 6392 # adding the `-m68020' flag to GCC prevents building anything better, 6393 # like `-m68040'. 6394 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6395 ;; 6396 6397 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6398 # PIC is the default for these OSes. 6399 ;; 6400 6401 mingw* | pw32* | os2*) 6402 # This hack is so that the source file can tell whether it is being 6403 # built for inclusion in a dll (and should export symbols for example). 6404 lt_prog_compiler_pic='-DDLL_EXPORT' 6405 ;; 6406 6407 darwin* | rhapsody*) 6408 # PIC is the default on this platform 6409 # Common symbols not allowed in MH_DYLIB files 6410 lt_prog_compiler_pic='-fno-common' 6411 ;; 6412 6413 interix3*) 6414 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6415 # Instead, we relocate shared libraries at runtime. 6416 ;; 6417 6418 msdosdjgpp*) 6419 # Just because we use GCC doesn't mean we suddenly get shared libraries 6420 # on systems that don't support them. 6421 lt_prog_compiler_can_build_shared=no 6422 enable_shared=no 6423 ;; 6424 6425 sysv4*MP*) 6426 if test -d /usr/nec; then 6427 lt_prog_compiler_pic=-Kconform_pic 6428 fi 6429 ;; 6430 6431 hpux*) 6432 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6433 # not for PA HP-UX. 6434 case $host_cpu in 6435 hppa*64*|ia64*) 6436 # +Z the default 6437 ;; 6438 *) 6439 lt_prog_compiler_pic='-fPIC' 6440 ;; 6441 esac 6442 ;; 6443 6444 *) 6445 lt_prog_compiler_pic='-fPIC' 6446 ;; 6447 esac 6448 else 6449 # PORTME Check for flag to pass linker flags through the system compiler. 6450 case $host_os in 6451 aix*) 6452 lt_prog_compiler_wl='-Wl,' 6453 if test "$host_cpu" = ia64; then 6454 # AIX 5 now supports IA64 processor 6455 lt_prog_compiler_static='-Bstatic' 6456 else 6457 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6458 fi 6459 ;; 6460 darwin*) 6461 # PIC is the default on this platform 6462 # Common symbols not allowed in MH_DYLIB files 6463 case $cc_basename in 6464 xlc*) 6465 lt_prog_compiler_pic='-qnocommon' 6466 lt_prog_compiler_wl='-Wl,' 6467 ;; 6468 esac 6469 ;; 6470 6471 mingw* | pw32* | os2*) 6472 # This hack is so that the source file can tell whether it is being 6473 # built for inclusion in a dll (and should export symbols for example). 6474 lt_prog_compiler_pic='-DDLL_EXPORT' 6475 ;; 6476 6477 hpux9* | hpux10* | hpux11*) 6478 lt_prog_compiler_wl='-Wl,' 6479 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6480 # not for PA HP-UX. 6481 case $host_cpu in 6482 hppa*64*|ia64*) 6483 # +Z the default 6484 ;; 6485 *) 6486 lt_prog_compiler_pic='+Z' 6487 ;; 6488 esac 6489 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6490 lt_prog_compiler_static='${wl}-a ${wl}archive' 6491 ;; 6492 6493 irix5* | irix6* | nonstopux*) 6494 lt_prog_compiler_wl='-Wl,' 6495 # PIC (with -KPIC) is the default. 6496 lt_prog_compiler_static='-non_shared' 6497 ;; 6498 6499 newsos6) 6500 lt_prog_compiler_pic='-KPIC' 6501 lt_prog_compiler_static='-Bstatic' 6502 ;; 6503 6504 linux*) 6505 case $cc_basename in 6506 icc* | ecc*) 6507 lt_prog_compiler_wl='-Wl,' 6508 lt_prog_compiler_pic='-KPIC' 6509 lt_prog_compiler_static='-static' 6510 ;; 6511 pgcc* | pgf77* | pgf90* | pgf95*) 6512 # Portland Group compilers (*not* the Pentium gcc compiler, 6513 # which looks to be a dead project) 6514 lt_prog_compiler_wl='-Wl,' 6515 lt_prog_compiler_pic='-fpic' 6516 lt_prog_compiler_static='-Bstatic' 6517 ;; 6518 ccc*) 6519 lt_prog_compiler_wl='-Wl,' 6520 # All Alpha code is PIC. 6521 lt_prog_compiler_static='-non_shared' 6522 ;; 6523 esac 6524 ;; 6525 6526 osf3* | osf4* | osf5*) 6527 lt_prog_compiler_wl='-Wl,' 6528 # All OSF/1 code is PIC. 6529 lt_prog_compiler_static='-non_shared' 6530 ;; 6531 6532 solaris*) 6533 lt_prog_compiler_pic='-KPIC' 6534 lt_prog_compiler_static='-Bstatic' 6535 case $cc_basename in 6536 f77* | f90* | f95*) 6537 lt_prog_compiler_wl='-Qoption ld ';; 6538 *) 6539 lt_prog_compiler_wl='-Wl,';; 6540 esac 6541 ;; 6542 6543 sunos4*) 6544 lt_prog_compiler_wl='-Qoption ld ' 6545 lt_prog_compiler_pic='-PIC' 6546 lt_prog_compiler_static='-Bstatic' 6547 ;; 6548 6549 sysv4 | sysv4.2uw2* | sysv4.3*) 6550 lt_prog_compiler_wl='-Wl,' 6551 lt_prog_compiler_pic='-KPIC' 6552 lt_prog_compiler_static='-Bstatic' 6553 ;; 6554 6555 sysv4*MP*) 6556 if test -d /usr/nec ;then 6557 lt_prog_compiler_pic='-Kconform_pic' 6558 lt_prog_compiler_static='-Bstatic' 6559 fi 6560 ;; 6561 6562 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6563 lt_prog_compiler_wl='-Wl,' 6564 lt_prog_compiler_pic='-KPIC' 6565 lt_prog_compiler_static='-Bstatic' 6566 ;; 6567 6568 unicos*) 6569 lt_prog_compiler_wl='-Wl,' 6570 lt_prog_compiler_can_build_shared=no 6571 ;; 6572 6573 uts4*) 6574 lt_prog_compiler_pic='-pic' 6575 lt_prog_compiler_static='-Bstatic' 6576 ;; 6577 6578 *) 6579 lt_prog_compiler_can_build_shared=no 6580 ;; 6581 esac 6582 fi 6583 6584 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6585 echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6586 6587 # 6588 # Check to make sure the PIC flag actually works. 6589 # 6590 if test -n "$lt_prog_compiler_pic"; then 6591 6592 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6593 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6594 if test "${lt_prog_compiler_pic_works+set}" = set; then 6595 echo $ECHO_N "(cached) $ECHO_C" >&6 6596 else 6597 lt_prog_compiler_pic_works=no 6598 ac_outfile=conftest.$ac_objext 6599 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6600 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6601 # Insert the option either (1) after the last *FLAGS variable, or 6602 # (2) before a word containing "conftest.", or (3) at the end. 6603 # Note that $ac_compile itself does not contain backslashes and begins 6604 # with a dollar sign (not a hyphen), so the echo should work correctly. 6605 # The option is referenced via a variable to avoid confusing sed. 6606 lt_compile=`echo "$ac_compile" | $SED \ 6607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6609 -e 's:$: $lt_compiler_flag:'` 6610 (eval echo "\"\$as_me:6610: $lt_compile\"" >&5) 6611 (eval "$lt_compile" 2>conftest.err) 6612 ac_status=$? 6613 cat conftest.err >&5 6614 echo "$as_me:6614: \$? = $ac_status" >&5 6615 if (exit $ac_status) && test -s "$ac_outfile"; then 6616 # The compiler can only warn and ignore the option if not recognized 6617 # So say no if there are warnings other than the usual output. 6618 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6619 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6620 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6621 lt_prog_compiler_pic_works=yes 6622 fi 6623 fi 6624 $rm conftest* 6625 6626 fi 6627 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6628 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6629 6630 if test x"$lt_prog_compiler_pic_works" = xyes; then 6631 case $lt_prog_compiler_pic in 6632 "" | " "*) ;; 6633 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6634 esac 6635 else 6636 lt_prog_compiler_pic= 6637 lt_prog_compiler_can_build_shared=no 6638 fi 6639 6640 fi 6641 case $host_os in 6642 # For platforms which do not support PIC, -DPIC is meaningless: 6643 *djgpp*) 6644 lt_prog_compiler_pic= 6645 ;; 6646 *) 6647 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6648 ;; 6649 esac 6650 6651 # 6652 # Check to make sure the static flag actually works. 6653 # 6654 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 6655 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 6656 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 6657 if test "${lt_prog_compiler_static_works+set}" = set; then 6658 echo $ECHO_N "(cached) $ECHO_C" >&6 6659 else 6660 lt_prog_compiler_static_works=no 6661 save_LDFLAGS="$LDFLAGS" 6662 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 6663 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6664 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6665 # The linker can only warn and ignore the option if not recognized 6666 # So say no if there are warnings 6667 if test -s conftest.err; then 6668 # Append any errors to the config.log. 6669 cat conftest.err 1>&5 6670 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 6671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6672 if diff conftest.exp conftest.er2 >/dev/null; then 6673 lt_prog_compiler_static_works=yes 6674 fi 6675 else 6676 lt_prog_compiler_static_works=yes 6677 fi 6678 fi 6679 $rm conftest* 6680 LDFLAGS="$save_LDFLAGS" 6681 6682 fi 6683 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6684 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6685 6686 if test x"$lt_prog_compiler_static_works" = xyes; then 6687 : 6688 else 6689 lt_prog_compiler_static= 6690 fi 6691 6692 6693 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6694 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6695 if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6696 echo $ECHO_N "(cached) $ECHO_C" >&6 6697 else 6698 lt_cv_prog_compiler_c_o=no 6699 $rm -r conftest 2>/dev/null 6700 mkdir conftest 6701 cd conftest 6702 mkdir out 6703 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6704 6705 lt_compiler_flag="-o out/conftest2.$ac_objext" 6706 # Insert the option either (1) after the last *FLAGS variable, or 6707 # (2) before a word containing "conftest.", or (3) at the end. 6708 # Note that $ac_compile itself does not contain backslashes and begins 6709 # with a dollar sign (not a hyphen), so the echo should work correctly. 6710 lt_compile=`echo "$ac_compile" | $SED \ 6711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6713 -e 's:$: $lt_compiler_flag:'` 6714 (eval echo "\"\$as_me:6714: $lt_compile\"" >&5) 6715 (eval "$lt_compile" 2>out/conftest.err) 6716 ac_status=$? 6717 cat out/conftest.err >&5 6718 echo "$as_me:6718: \$? = $ac_status" >&5 6719 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6720 then 6721 # The compiler can only warn and ignore the option if not recognized 6722 # So say no if there are warnings 6723 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 6724 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 6725 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6726 lt_cv_prog_compiler_c_o=yes 6727 fi 6728 fi 6729 chmod u+w . 2>&5 6730 $rm conftest* 6731 # SGI C++ compiler will create directory out/ii_files/ for 6732 # template instantiation 6733 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6734 $rm out/* && rmdir out 6735 cd .. 6736 rmdir conftest 6737 $rm conftest* 6738 6739 fi 6740 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6741 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6742 6743 6744 hard_links="nottested" 6745 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6746 # do not overwrite the value of need_locks provided by the user 6747 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6748 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6749 hard_links=yes 6750 $rm conftest* 6751 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6752 touch conftest.a 6753 ln conftest.a conftest.b 2>&5 || hard_links=no 6754 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6755 echo "$as_me:$LINENO: result: $hard_links" >&5 6756 echo "${ECHO_T}$hard_links" >&6 6757 if test "$hard_links" = no; then 6758 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6759 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6760 need_locks=warn 6761 fi 6762 else 6763 need_locks=no 6764 fi 6765 6766 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6767 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6768 6769 runpath_var= 6770 allow_undefined_flag= 6771 enable_shared_with_static_runtimes=no 6772 archive_cmds= 6773 archive_expsym_cmds= 6774 old_archive_From_new_cmds= 6775 old_archive_from_expsyms_cmds= 6776 export_dynamic_flag_spec= 6777 whole_archive_flag_spec= 6778 thread_safe_flag_spec= 6779 hardcode_libdir_flag_spec= 6780 hardcode_libdir_flag_spec_ld= 6781 hardcode_libdir_separator= 6782 hardcode_direct=no 6783 hardcode_minus_L=no 6784 hardcode_shlibpath_var=unsupported 6785 link_all_deplibs=unknown 6786 hardcode_automatic=no 6787 module_cmds= 6788 module_expsym_cmds= 6789 always_export_symbols=no 6790 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6791 # include_expsyms should be a list of space-separated symbols to be *always* 6792 # included in the symbol list 6793 include_expsyms= 6794 # exclude_expsyms can be an extended regexp of symbols to exclude 6795 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6796 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6797 # as well as any symbol that contains `d'. 6798 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6799 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6800 # platforms (ab)use it in PIC code, but their linkers get confused if 6801 # the symbol is explicitly referenced. Since portable code cannot 6802 # rely on this symbol name, it's probably fine to never include it in 6803 # preloaded symbol tables. 6804 extract_expsyms_cmds= 6805 # Just being paranoid about ensuring that cc_basename is set. 6806 for cc_temp in $compiler""; do 6807 case $cc_temp in 6808 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6809 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6810 \-*) ;; 6811 *) break;; 6812 esac 6813 done 6814 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6815 6816 case $host_os in 6817 cygwin* | mingw* | pw32*) 6818 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6819 # When not using gcc, we currently assume that we are using 6820 # Microsoft Visual C++. 6821 if test "$GCC" != yes; then 6822 with_gnu_ld=no 6823 fi 6824 ;; 6825 interix*) 6826 # we just hope/assume this is gcc and not c89 (= MSVC++) 6827 with_gnu_ld=yes 6828 ;; 6829 openbsd*) 6830 with_gnu_ld=no 6831 ;; 6832 esac 6833 6834 ld_shlibs=yes 6835 if test "$with_gnu_ld" = yes; then 6836 # If archive_cmds runs LD, not CC, wlarc should be empty 6837 wlarc='${wl}' 6838 6839 # Set some defaults for GNU ld with shared library support. These 6840 # are reset later if shared libraries are not supported. Putting them 6841 # here allows them to be overridden if necessary. 6842 runpath_var=LD_RUN_PATH 6843 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6844 export_dynamic_flag_spec='${wl}--export-dynamic' 6845 # ancient GNU ld didn't support --whole-archive et. al. 6846 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6847 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6848 else 6849 whole_archive_flag_spec= 6850 fi 6851 supports_anon_versioning=no 6852 case `$LD -v 2>/dev/null` in 6853 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6854 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6855 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6856 *\ 2.11.*) ;; # other 2.11 versions 6857 *) supports_anon_versioning=yes ;; 6858 esac 6859 6860 # See if GNU ld supports shared libraries. 6861 case $host_os in 6862 aix3* | aix4* | aix5*) 6863 # On AIX/PPC, the GNU linker is very broken 6864 if test "$host_cpu" != ia64; then 6865 ld_shlibs=no 6866 cat <<EOF 1>&2 6867 6868 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 6869 *** to be unable to reliably create shared libraries on AIX. 6870 *** Therefore, libtool is disabling shared libraries support. If you 6871 *** really care for shared libraries, you may want to modify your PATH 6872 *** so that a non-GNU linker is found, and then restart. 6873 6874 EOF 6875 fi 6876 ;; 6877 6878 amigaos*) 6879 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)' 6880 hardcode_libdir_flag_spec='-L$libdir' 6881 hardcode_minus_L=yes 6882 6883 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports 6884 # that the semantics of dynamic libraries on AmigaOS, at least up 6885 # to version 4, is to share data among multiple programs linked 6886 # with the same dynamic library. Since this doesn't match the 6887 # behavior of shared libraries on other platforms, we can't use 6888 # them. 6889 ld_shlibs=no 6890 ;; 6891 6892 beos*) 6893 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6894 allow_undefined_flag=unsupported 6895 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 6896 # support --undefined. This deserves some investigation. FIXME 6897 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6898 else 6899 ld_shlibs=no 6900 fi 6901 ;; 6902 6903 cygwin* | mingw* | pw32*) 6904 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6905 # as there is no search path for DLLs. 6906 hardcode_libdir_flag_spec='-L$libdir' 6907 allow_undefined_flag=unsupported 6908 always_export_symbols=no 6909 enable_shared_with_static_runtimes=yes 6910 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6911 6912 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6914 # If the export-symbols file already is a .def file (1st line 6915 # is EXPORTS), use it as is; otherwise, prepend... 6916 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6917 cp $export_symbols $output_objdir/$soname.def; 6918 else 6919 echo EXPORTS > $output_objdir/$soname.def; 6920 cat $export_symbols >> $output_objdir/$soname.def; 6921 fi~ 6922 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6923 else 6924 ld_shlibs=no 6925 fi 6926 ;; 6927 6928 interix3*) 6929 hardcode_direct=no 6930 hardcode_shlibpath_var=no 6931 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6932 export_dynamic_flag_spec='${wl}-E' 6933 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6934 # Instead, shared libraries are loaded at an image base (0x10000000 by 6935 # default) and relocated if they conflict, which is a slow very memory 6936 # consuming and fragmenting process. To avoid this, we pick a random, 6937 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6938 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6939 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6940 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' 6941 ;; 6942 6943 linux*) 6944 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6945 tmp_addflag= 6946 case $cc_basename,$host_cpu in 6947 pgcc*) # Portland Group C compiler 6948 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' 6949 tmp_addflag=' $pic_flag' 6950 ;; 6951 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 6952 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' 6953 tmp_addflag=' $pic_flag -Mnomain' ;; 6954 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6955 tmp_addflag=' -i_dynamic' ;; 6956 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6957 tmp_addflag=' -i_dynamic -nofor_main' ;; 6958 ifc* | ifort*) # Intel Fortran compiler 6959 tmp_addflag=' -nofor_main' ;; 6960 esac 6961 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6962 6963 if test $supports_anon_versioning = yes; then 6964 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 6965 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6966 $echo "local: *; };" >> $output_objdir/$libname.ver~ 6967 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6968 fi 6969 link_all_deplibs=no 6970 else 6971 ld_shlibs=no 6972 fi 6973 ;; 6974 6975 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 6976 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6977 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6978 wlarc= 6979 else 6980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6981 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6982 fi 6983 ;; 6984 6985 solaris*) 6986 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6987 ld_shlibs=no 6988 cat <<EOF 1>&2 6989 6990 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 6991 *** create shared libraries on Solaris systems. Therefore, libtool 6992 *** is disabling shared libraries support. We urge you to upgrade GNU 6993 *** binutils to release 2.9.1 or newer. Another option is to modify 6994 *** your PATH or compiler configuration so that the native linker is 6995 *** used, and then restart. 6996 6997 EOF 6998 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7000 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7001 else 7002 ld_shlibs=no 7003 fi 7004 ;; 7005 7006 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7007 case `$LD -v 2>&1` in 7008 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7009 ld_shlibs=no 7010 cat <<_LT_EOF 1>&2 7011 7012 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7013 *** reliably create shared libraries on SCO systems. Therefore, libtool 7014 *** is disabling shared libraries support. We urge you to upgrade GNU 7015 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7016 *** your PATH or compiler configuration so that the native linker is 7017 *** used, and then restart. 7018 7019 _LT_EOF 7020 ;; 7021 *) 7022 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7023 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7025 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7026 else 7027 ld_shlibs=no 7028 fi 7029 ;; 7030 esac 7031 ;; 7032 7033 sunos4*) 7034 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7035 wlarc= 7036 hardcode_direct=yes 7037 hardcode_shlibpath_var=no 7038 ;; 7039 7040 *) 7041 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7043 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7044 else 7045 ld_shlibs=no 7046 fi 7047 ;; 7048 esac 7049 7050 if test "$ld_shlibs" = no; then 7051 runpath_var= 7052 hardcode_libdir_flag_spec= 7053 export_dynamic_flag_spec= 7054 whole_archive_flag_spec= 7055 fi 7056 else 7057 # PORTME fill in a description of your system's linker (not GNU ld) 7058 case $host_os in 7059 aix3*) 7060 allow_undefined_flag=unsupported 7061 always_export_symbols=yes 7062 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' 7063 # Note: this linker hardcodes the directories in LIBPATH if there 7064 # are no directories specified by -L. 7065 hardcode_minus_L=yes 7066 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7067 # Neither direct hardcoding nor static linking is supported with a 7068 # broken collect2. 7069 hardcode_direct=unsupported 7070 fi 7071 ;; 7072 7073 aix4* | aix5*) 7074 if test "$host_cpu" = ia64; then 7075 # On IA64, the linker does run time linking by default, so we don't 7076 # have to do anything special. 7077 aix_use_runtimelinking=no 7078 exp_sym_flag='-Bexport' 7079 no_entry_flag="" 7080 else 7081 # If we're using GNU nm, then we don't want the "-C" option. 7082 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7083 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7084 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' 7085 else 7086 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' 7087 fi 7088 aix_use_runtimelinking=no 7089 7090 # Test if we are trying to use run time linking or normal 7091 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7092 # need to do runtime linking. 7093 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7094 for ld_flag in $LDFLAGS; do 7095 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7096 aix_use_runtimelinking=yes 7097 break 7098 fi 7099 done 7100 ;; 7101 esac 7102 7103 exp_sym_flag='-bexport' 7104 no_entry_flag='-bnoentry' 7105 fi 7106 7107 # When large executables or shared objects are built, AIX ld can 7108 # have problems creating the table of contents. If linking a library 7109 # or program results in "error TOC overflow" add -mminimal-toc to 7110 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7111 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7112 7113 archive_cmds='' 7114 hardcode_direct=yes 7115 hardcode_libdir_separator=':' 7116 link_all_deplibs=yes 7117 7118 if test "$GCC" = yes; then 7119 case $host_os in aix4.[012]|aix4.[012].*) 7120 # We only want to do this on AIX 4.2 and lower, the check 7121 # below for broken collect2 doesn't work under 4.3+ 7122 collect2name=`${CC} -print-prog-name=collect2` 7123 if test -f "$collect2name" && \ 7124 strings "$collect2name" | grep resolve_lib_name >/dev/null 7125 then 7126 # We have reworked collect2 7127 hardcode_direct=yes 7128 else 7129 # We have old collect2 7130 hardcode_direct=unsupported 7131 # It fails to find uninstalled libraries when the uninstalled 7132 # path is not listed in the libpath. Setting hardcode_minus_L 7133 # to unsupported forces relinking 7134 hardcode_minus_L=yes 7135 hardcode_libdir_flag_spec='-L$libdir' 7136 hardcode_libdir_separator= 7137 fi 7138 ;; 7139 esac 7140 shared_flag='-shared' 7141 if test "$aix_use_runtimelinking" = yes; then 7142 shared_flag="$shared_flag "'${wl}-G' 7143 fi 7144 else 7145 # not using gcc 7146 if test "$host_cpu" = ia64; then 7147 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7148 # chokes on -Wl,-G. The following line is correct: 7149 shared_flag='-G' 7150 else 7151 if test "$aix_use_runtimelinking" = yes; then 7152 shared_flag='${wl}-G' 7153 else 7154 shared_flag='${wl}-bM:SRE' 7155 fi 7156 fi 7157 fi 7158 7159 # It seems that -bexpall does not export symbols beginning with 7160 # underscore (_), so it is better to generate a list of symbols to export. 7161 always_export_symbols=yes 7162 if test "$aix_use_runtimelinking" = yes; then 7163 # Warning - without using the other runtime loading flags (-brtl), 7164 # -berok will link without error, but may produce a broken library. 7165 allow_undefined_flag='-berok' 7166 # Determine the default libpath from the value encoded in an empty executable. 7167 cat >conftest.$ac_ext <<_ACEOF 7168 /* confdefs.h. */ 7169 _ACEOF 7170 cat confdefs.h >>conftest.$ac_ext 7171 cat >>conftest.$ac_ext <<_ACEOF 7172 /* end confdefs.h. */ 7173 7174 int 7175 main () 7176 { 7177 7178 ; 7179 return 0; 7180 } 7181 _ACEOF 7182 rm -f conftest.$ac_objext conftest$ac_exeext 7183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7184 (eval $ac_link) 2>conftest.er1 7185 ac_status=$? 7186 grep -v '^ *+' conftest.er1 >conftest.err 7187 rm -f conftest.er1 7188 cat conftest.err >&5 7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7190 (exit $ac_status); } && 7191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7193 (eval $ac_try) 2>&5 7194 ac_status=$? 7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7196 (exit $ac_status); }; } && 7197 { ac_try='test -s conftest$ac_exeext' 7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7199 (eval $ac_try) 2>&5 7200 ac_status=$? 7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7202 (exit $ac_status); }; }; then 7203 7204 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7205 }'` 7206 # Check for a 64-bit object if we didn't find anything. 7207 if 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; } 7208 }'`; fi 7209 else 7210 echo "$as_me: failed program was:" >&5 7211 sed 's/^/| /' conftest.$ac_ext >&5 7212 7213 fi 7214 rm -f conftest.err conftest.$ac_objext \ 7215 conftest$ac_exeext conftest.$ac_ext 7216 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7217 7218 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7219 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" 7220 else 7221 if test "$host_cpu" = ia64; then 7222 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7223 allow_undefined_flag="-z nodefs" 7224 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" 7225 else 7226 # Determine the default libpath from the value encoded in an empty executable. 7227 cat >conftest.$ac_ext <<_ACEOF 7228 /* confdefs.h. */ 7229 _ACEOF 7230 cat confdefs.h >>conftest.$ac_ext 7231 cat >>conftest.$ac_ext <<_ACEOF 7232 /* end confdefs.h. */ 7233 7234 int 7235 main () 7236 { 7237 7238 ; 7239 return 0; 7240 } 7241 _ACEOF 7242 rm -f conftest.$ac_objext conftest$ac_exeext 7243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7244 (eval $ac_link) 2>conftest.er1 7245 ac_status=$? 7246 grep -v '^ *+' conftest.er1 >conftest.err 7247 rm -f conftest.er1 7248 cat conftest.err >&5 7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7250 (exit $ac_status); } && 7251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7253 (eval $ac_try) 2>&5 7254 ac_status=$? 7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7256 (exit $ac_status); }; } && 7257 { ac_try='test -s conftest$ac_exeext' 7258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7259 (eval $ac_try) 2>&5 7260 ac_status=$? 7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7262 (exit $ac_status); }; }; then 7263 7264 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7265 }'` 7266 # Check for a 64-bit object if we didn't find anything. 7267 if 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; } 7268 }'`; fi 7269 else 7270 echo "$as_me: failed program was:" >&5 7271 sed 's/^/| /' conftest.$ac_ext >&5 7272 7273 fi 7274 rm -f conftest.err conftest.$ac_objext \ 7275 conftest$ac_exeext conftest.$ac_ext 7276 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7277 7278 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7279 # Warning - without using the other run time loading flags, 7280 # -berok will link without error, but may produce a broken library. 7281 no_undefined_flag=' ${wl}-bernotok' 7282 allow_undefined_flag=' ${wl}-berok' 7283 # Exported symbols can be pulled into shared objects from archives 7284 whole_archive_flag_spec='$convenience' 7285 archive_cmds_need_lc=yes 7286 # This is similar to how AIX traditionally builds its shared libraries. 7287 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' 7288 fi 7289 fi 7290 ;; 7291 7292 amigaos*) 7293 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)' 7294 hardcode_libdir_flag_spec='-L$libdir' 7295 hardcode_minus_L=yes 7296 # see comment about different semantics on the GNU ld section 7297 ld_shlibs=no 7298 ;; 7299 7300 bsdi[45]*) 7301 export_dynamic_flag_spec=-rdynamic 7302 ;; 7303 7304 cygwin* | mingw* | pw32*) 7305 # When not using gcc, we currently assume that we are using 7306 # Microsoft Visual C++. 7307 # hardcode_libdir_flag_spec is actually meaningless, as there is 7308 # no search path for DLLs. 7309 hardcode_libdir_flag_spec=' ' 7310 allow_undefined_flag=unsupported 7311 # Tell ltmain to make .lib files, not .a files. 7312 libext=lib 7313 # Tell ltmain to make .dll files, not .so files. 7314 shrext_cmds=".dll" 7315 # FIXME: Setting linknames here is a bad hack. 7316 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7317 # The linker will automatically build a .lib file if we build a DLL. 7318 old_archive_From_new_cmds='true' 7319 # FIXME: Should let the user specify the lib program. 7320 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7321 fix_srcfile_path='`cygpath -w "$srcfile"`' 7322 enable_shared_with_static_runtimes=yes 7323 ;; 7324 7325 darwin* | rhapsody*) 7326 case $host_os in 7327 rhapsody* | darwin1.[012]) 7328 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7329 ;; 7330 *) # Darwin 1.3 on 7331 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7332 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7333 else 7334 case ${MACOSX_DEPLOYMENT_TARGET} in 7335 10.[012]) 7336 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7337 ;; 7338 10.*) 7339 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7340 ;; 7341 esac 7342 fi 7343 ;; 7344 esac 7345 archive_cmds_need_lc=no 7346 hardcode_direct=no 7347 hardcode_automatic=yes 7348 hardcode_shlibpath_var=unsupported 7349 whole_archive_flag_spec='' 7350 link_all_deplibs=yes 7351 if test "$GCC" = yes ; then 7352 output_verbose_link_cmd='echo' 7353 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7354 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7355 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7356 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}' 7357 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}' 7358 else 7359 case $cc_basename in 7360 xlc*) 7361 output_verbose_link_cmd='echo' 7362 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7363 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7364 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7365 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}' 7366 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}' 7367 ;; 7368 *) 7369 ld_shlibs=no 7370 ;; 7371 esac 7372 fi 7373 ;; 7374 7375 dgux*) 7376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7377 hardcode_libdir_flag_spec='-L$libdir' 7378 hardcode_shlibpath_var=no 7379 ;; 7380 7381 freebsd1*) 7382 ld_shlibs=no 7383 ;; 7384 7385 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7386 # support. Future versions do this automatically, but an explicit c++rt0.o 7387 # does not break anything, and helps significantly (at the cost of a little 7388 # extra space). 7389 freebsd2.2*) 7390 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7391 hardcode_libdir_flag_spec='-R$libdir' 7392 hardcode_direct=yes 7393 hardcode_shlibpath_var=no 7394 ;; 7395 7396 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7397 freebsd2*) 7398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7399 hardcode_direct=yes 7400 hardcode_minus_L=yes 7401 hardcode_shlibpath_var=no 7402 ;; 7403 7404 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7405 freebsd* | dragonfly*) 7406 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7407 hardcode_libdir_flag_spec='-R$libdir' 7408 hardcode_direct=yes 7409 hardcode_shlibpath_var=no 7410 ;; 7411 7412 # GNU/kFreeBSD uses gcc -shared to do shared libraries. 7413 kfreebsd*-gnu) 7414 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7415 hardcode_libdir_flag_spec='-R$libdir' 7416 hardcode_direct=yes 7417 hardcode_shlibpath_var=no 7418 link_all_deplibs=no 7419 ;; 7420 7421 hpux9*) 7422 if test "$GCC" = yes; then 7423 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' 7424 else 7425 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' 7426 fi 7427 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7428 hardcode_libdir_separator=: 7429 hardcode_direct=yes 7430 7431 # hardcode_minus_L: Not really in the search PATH, 7432 # but as the default location of the library. 7433 hardcode_minus_L=yes 7434 export_dynamic_flag_spec='${wl}-E' 7435 ;; 7436 7437 hpux10*) 7438 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7439 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7440 else 7441 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7442 fi 7443 if test "$with_gnu_ld" = no; then 7444 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7445 hardcode_libdir_separator=: 7446 7447 hardcode_direct=yes 7448 export_dynamic_flag_spec='${wl}-E' 7449 7450 # hardcode_minus_L: Not really in the search PATH, 7451 # but as the default location of the library. 7452 hardcode_minus_L=yes 7453 fi 7454 ;; 7455 7456 hpux11*) 7457 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7458 case $host_cpu in 7459 hppa*64*) 7460 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7461 ;; 7462 ia64*) 7463 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7464 ;; 7465 *) 7466 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7467 ;; 7468 esac 7469 else 7470 case $host_cpu in 7471 hppa*64*) 7472 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7473 ;; 7474 ia64*) 7475 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7476 ;; 7477 *) 7478 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7479 ;; 7480 esac 7481 fi 7482 if test "$with_gnu_ld" = no; then 7483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7484 hardcode_libdir_separator=: 7485 7486 case $host_cpu in 7487 hppa*64*|ia64*) 7488 hardcode_libdir_flag_spec_ld='+b $libdir' 7489 hardcode_direct=no 7490 hardcode_shlibpath_var=no 7491 ;; 7492 *) 7493 hardcode_direct=yes 7494 export_dynamic_flag_spec='${wl}-E' 7495 7496 # hardcode_minus_L: Not really in the search PATH, 7497 # but as the default location of the library. 7498 hardcode_minus_L=yes 7499 ;; 7500 esac 7501 fi 7502 ;; 7503 7504 irix5* | irix6* | nonstopux*) 7505 if test "$GCC" = yes; then 7506 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' 7507 else 7508 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' 7509 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7510 fi 7511 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7512 hardcode_libdir_separator=: 7513 link_all_deplibs=yes 7514 ;; 7515 7516 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 7517 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7519 else 7520 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7521 fi 7522 hardcode_libdir_flag_spec='-R$libdir' 7523 hardcode_direct=yes 7524 hardcode_shlibpath_var=no 7525 ;; 7526 7527 newsos6) 7528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7529 hardcode_direct=yes 7530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7531 hardcode_libdir_separator=: 7532 hardcode_shlibpath_var=no 7533 ;; 7534 7535 openbsd*) 7536 hardcode_direct=yes 7537 hardcode_shlibpath_var=no 7538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7539 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7540 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7541 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7542 export_dynamic_flag_spec='${wl}-E' 7543 else 7544 case $host_os in 7545 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7547 hardcode_libdir_flag_spec='-R$libdir' 7548 ;; 7549 *) 7550 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7551 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7552 ;; 7553 esac 7554 fi 7555 ;; 7556 7557 os2*) 7558 hardcode_libdir_flag_spec='-L$libdir' 7559 hardcode_minus_L=yes 7560 allow_undefined_flag=unsupported 7561 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' 7562 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7563 ;; 7564 7565 osf3*) 7566 if test "$GCC" = yes; then 7567 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7568 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' 7569 else 7570 allow_undefined_flag=' -expect_unresolved \*' 7571 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' 7572 fi 7573 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7574 hardcode_libdir_separator=: 7575 ;; 7576 7577 osf4* | osf5*) # as osf3* with the addition of -msym flag 7578 if test "$GCC" = yes; then 7579 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7580 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' 7581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7582 else 7583 allow_undefined_flag=' -expect_unresolved \*' 7584 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' 7585 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7586 $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' 7587 7588 # Both c and cxx compiler support -rpath directly 7589 hardcode_libdir_flag_spec='-rpath $libdir' 7590 fi 7591 hardcode_libdir_separator=: 7592 ;; 7593 7594 solaris*) 7595 no_undefined_flag=' -z text' 7596 if test "$GCC" = yes; then 7597 wlarc='${wl}' 7598 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7599 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7600 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7601 else 7602 wlarc='' 7603 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7604 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7605 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7606 fi 7607 hardcode_libdir_flag_spec='-R$libdir' 7608 hardcode_shlibpath_var=no 7609 case $host_os in 7610 solaris2.[0-5] | solaris2.[0-5].*) ;; 7611 *) 7612 # The compiler driver will combine linker options so we 7613 # cannot just pass the convience library names through 7614 # without $wl, iff we do not link with $LD. 7615 # Luckily, gcc supports the same syntax we need for Sun Studio. 7616 # Supported since Solaris 2.6 (maybe 2.5.1?) 7617 case $wlarc in 7618 '') 7619 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7620 *) 7621 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' ;; 7622 esac ;; 7623 esac 7624 link_all_deplibs=yes 7625 ;; 7626 7627 sunos4*) 7628 if test "x$host_vendor" = xsequent; then 7629 # Use $CC to link under sequent, because it throws in some extra .o 7630 # files that make .init and .fini sections work. 7631 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7632 else 7633 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7634 fi 7635 hardcode_libdir_flag_spec='-L$libdir' 7636 hardcode_direct=yes 7637 hardcode_minus_L=yes 7638 hardcode_shlibpath_var=no 7639 ;; 7640 7641 sysv4) 7642 case $host_vendor in 7643 sni) 7644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7645 hardcode_direct=yes # is this really true??? 7646 ;; 7647 siemens) 7648 ## LD is ld it makes a PLAMLIB 7649 ## CC just makes a GrossModule. 7650 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7651 reload_cmds='$CC -r -o $output$reload_objs' 7652 hardcode_direct=no 7653 ;; 7654 motorola) 7655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7656 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7657 ;; 7658 esac 7659 runpath_var='LD_RUN_PATH' 7660 hardcode_shlibpath_var=no 7661 ;; 7662 7663 sysv4.3*) 7664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7665 hardcode_shlibpath_var=no 7666 export_dynamic_flag_spec='-Bexport' 7667 ;; 7668 7669 sysv4*MP*) 7670 if test -d /usr/nec; then 7671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7672 hardcode_shlibpath_var=no 7673 runpath_var=LD_RUN_PATH 7674 hardcode_runpath_var=yes 7675 ld_shlibs=yes 7676 fi 7677 ;; 7678 7679 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 7680 no_undefined_flag='${wl}-z,text' 7681 archive_cmds_need_lc=no 7682 hardcode_shlibpath_var=no 7683 runpath_var='LD_RUN_PATH' 7684 7685 if test "$GCC" = yes; then 7686 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7687 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7688 else 7689 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7690 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7691 fi 7692 ;; 7693 7694 sysv5* | sco3.2v5* | sco5v6*) 7695 # Note: We can NOT use -z defs as we might desire, because we do not 7696 # link with -lc, and that would cause any symbols used from libc to 7697 # always be unresolved, which means just about no library would 7698 # ever link correctly. If we're not using GNU ld we use -z text 7699 # though, which does catch some bad symbols but isn't as heavy-handed 7700 # as -z defs. 7701 no_undefined_flag='${wl}-z,text' 7702 allow_undefined_flag='${wl}-z,nodefs' 7703 archive_cmds_need_lc=no 7704 hardcode_shlibpath_var=no 7705 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 7706 hardcode_libdir_separator=':' 7707 link_all_deplibs=yes 7708 export_dynamic_flag_spec='${wl}-Bexport' 7709 runpath_var='LD_RUN_PATH' 7710 7711 if test "$GCC" = yes; then 7712 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7713 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7714 else 7715 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7716 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7717 fi 7718 ;; 7719 7720 uts4*) 7721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7722 hardcode_libdir_flag_spec='-L$libdir' 7723 hardcode_shlibpath_var=no 7724 ;; 7725 7726 *) 7727 ld_shlibs=no 7728 ;; 7729 esac 7730 fi 7731 7732 echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7733 echo "${ECHO_T}$ld_shlibs" >&6 7734 test "$ld_shlibs" = no && can_build_shared=no 7735 7736 # 7737 # Do we need to explicitly link libc? 7738 # 7739 case "x$archive_cmds_need_lc" in 7740 x|xyes) 7741 # Assume -lc should be added 7742 archive_cmds_need_lc=yes 7743 7744 if test "$enable_shared" = yes && test "$GCC" = yes; then 7745 case $archive_cmds in 7746 *'~'*) 7747 # FIXME: we may have to deal with multi-command sequences. 7748 ;; 7749 '$CC '*) 7750 # Test whether the compiler implicitly links with -lc since on some 7751 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7752 # to ld, don't add -lc before -lgcc. 7753 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7754 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7755 $rm conftest* 7756 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7757 7758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7759 (eval $ac_compile) 2>&5 7760 ac_status=$? 7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7762 (exit $ac_status); } 2>conftest.err; then 7763 soname=conftest 7764 lib=conftest 7765 libobjs=conftest.$ac_objext 7766 deplibs= 7767 wl=$lt_prog_compiler_wl 7768 pic_flag=$lt_prog_compiler_pic 7769 compiler_flags=-v 7770 linker_flags=-v 7771 verstring= 7772 output_objdir=. 7773 libname=conftest 7774 lt_save_allow_undefined_flag=$allow_undefined_flag 7775 allow_undefined_flag= 7776 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7777 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7778 ac_status=$? 7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7780 (exit $ac_status); } 7781 then 7782 archive_cmds_need_lc=no 7783 else 7784 archive_cmds_need_lc=yes 7785 fi 7786 allow_undefined_flag=$lt_save_allow_undefined_flag 7787 else 7788 cat conftest.err 1>&5 7789 fi 7790 $rm conftest* 7791 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7792 echo "${ECHO_T}$archive_cmds_need_lc" >&6 7793 ;; 7794 esac 7795 fi 7796 ;; 7797 esac 7798 7799 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7800 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7801 library_names_spec= 7802 libname_spec='lib$name' 7803 soname_spec= 7804 shrext_cmds=".so" 7805 postinstall_cmds= 7806 postuninstall_cmds= 7807 finish_cmds= 7808 finish_eval= 7809 shlibpath_var= 7810 shlibpath_overrides_runpath=unknown 7811 version_type=none 7812 dynamic_linker="$host_os ld.so" 7813 sys_lib_dlsearch_path_spec="/lib /usr/lib" 7814 if test "$GCC" = yes; then 7815 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7816 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7817 # if the path contains ";" then we assume it to be the separator 7818 # otherwise default to the standard path separator (i.e. ":") - it is 7819 # assumed that no part of a normal pathname contains ";" but that should 7820 # okay in the real world where ";" in dirpaths is itself problematic. 7821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7822 else 7823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7824 fi 7825 else 7826 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7827 fi 7828 need_lib_prefix=unknown 7829 hardcode_into_libs=no 7830 7831 # when you set need_version to no, make sure it does not cause -set_version 7832 # flags to be left without arguments 7833 need_version=unknown 7834 7835 case $host_os in 7836 aix3*) 7837 version_type=linux 7838 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7839 shlibpath_var=LIBPATH 7840 7841 # AIX 3 has no versioning support, so we append a major version to the name. 7842 soname_spec='${libname}${release}${shared_ext}$major' 7843 ;; 7844 7845 aix4* | aix5*) 7846 version_type=linux 7847 need_lib_prefix=no 7848 need_version=no 7849 hardcode_into_libs=yes 7850 if test "$host_cpu" = ia64; then 7851 # AIX 5 supports IA64 7852 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7853 shlibpath_var=LD_LIBRARY_PATH 7854 else 7855 # With GCC up to 2.95.x, collect2 would create an import file 7856 # for dependence libraries. The import file would start with 7857 # the line `#! .'. This would cause the generated library to 7858 # depend on `.', always an invalid library. This was fixed in 7859 # development snapshots of GCC prior to 3.0. 7860 case $host_os in 7861 aix4 | aix4.[01] | aix4.[01].*) 7862 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7863 echo ' yes ' 7864 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7865 : 7866 else 7867 can_build_shared=no 7868 fi 7869 ;; 7870 esac 7871 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7872 # soname into executable. Probably we can add versioning support to 7873 # collect2, so additional links can be useful in future. 7874 if test "$aix_use_runtimelinking" = yes; then 7875 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7876 # instead of lib<name>.a to let people know that these are not 7877 # typical AIX shared libraries. 7878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7879 else 7880 # We preserve .a as extension for shared libraries through AIX4.2 7881 # and later when we are not doing run time linking. 7882 library_names_spec='${libname}${release}.a $libname.a' 7883 soname_spec='${libname}${release}${shared_ext}$major' 7884 fi 7885 shlibpath_var=LIBPATH 7886 fi 7887 ;; 7888 7889 amigaos*) 7890 library_names_spec='$libname.ixlibrary $libname.a' 7891 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7892 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' 7893 ;; 7894 7895 beos*) 7896 library_names_spec='${libname}${shared_ext}' 7897 dynamic_linker="$host_os ld.so" 7898 shlibpath_var=LIBRARY_PATH 7899 ;; 7900 7901 bsdi[45]*) 7902 version_type=linux 7903 need_version=no 7904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7905 soname_spec='${libname}${release}${shared_ext}$major' 7906 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7907 shlibpath_var=LD_LIBRARY_PATH 7908 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7909 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7910 # the default ld.so.conf also contains /usr/contrib/lib and 7911 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7912 # libtool to hard-code these into programs 7913 ;; 7914 7915 cygwin* | mingw* | pw32*) 7916 version_type=windows 7917 shrext_cmds=".dll" 7918 need_version=no 7919 need_lib_prefix=no 7920 7921 case $GCC,$host_os in 7922 yes,cygwin* | yes,mingw* | yes,pw32*) 7923 library_names_spec='$libname.dll.a' 7924 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7925 postinstall_cmds='base_file=`basename \${file}`~ 7926 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7927 dldir=$destdir/`dirname \$dlpath`~ 7928 test -d \$dldir || mkdir -p \$dldir~ 7929 $install_prog $dir/$dlname \$dldir/$dlname~ 7930 chmod a+x \$dldir/$dlname' 7931 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7932 dlpath=$dir/\$dldll~ 7933 $rm \$dlpath' 7934 shlibpath_overrides_runpath=yes 7935 7936 case $host_os in 7937 cygwin*) 7938 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7939 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7940 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7941 ;; 7942 mingw*) 7943 # MinGW DLLs use traditional 'lib' prefix 7944 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7945 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7946 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7947 # It is most probably a Windows format PATH printed by 7948 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7949 # path with ; separators, and with drive letters. We can handle the 7950 # drive letters (cygwin fileutils understands them), so leave them, 7951 # especially as we might pass files found there to a mingw objdump, 7952 # which wouldn't understand a cygwinified path. Ahh. 7953 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7954 else 7955 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7956 fi 7957 ;; 7958 pw32*) 7959 # pw32 DLLs use 'pw' prefix rather than 'lib' 7960 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7961 ;; 7962 esac 7963 ;; 7964 7965 *) 7966 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7967 ;; 7968 esac 7969 dynamic_linker='Win32 ld.exe' 7970 # FIXME: first we should search . and the directory the executable is in 7971 shlibpath_var=PATH 7972 ;; 7973 7974 darwin* | rhapsody*) 7975 dynamic_linker="$host_os dyld" 7976 version_type=darwin 7977 need_lib_prefix=no 7978 need_version=no 7979 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7980 soname_spec='${libname}${release}${major}$shared_ext' 7981 shlibpath_overrides_runpath=yes 7982 shlibpath_var=DYLD_LIBRARY_PATH 7983 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 7984 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7985 if test "$GCC" = yes; then 7986 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"` 7987 else 7988 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7989 fi 7990 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7991 ;; 7992 7993 dgux*) 7994 version_type=linux 7995 need_lib_prefix=no 7996 need_version=no 7997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7998 soname_spec='${libname}${release}${shared_ext}$major' 7999 shlibpath_var=LD_LIBRARY_PATH 8000 ;; 8001 8002 freebsd1*) 8003 dynamic_linker=no 8004 ;; 8005 8006 kfreebsd*-gnu) 8007 version_type=linux 8008 need_lib_prefix=no 8009 need_version=no 8010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8011 soname_spec='${libname}${release}${shared_ext}$major' 8012 shlibpath_var=LD_LIBRARY_PATH 8013 shlibpath_overrides_runpath=no 8014 hardcode_into_libs=yes 8015 dynamic_linker='GNU ld.so' 8016 ;; 8017 8018 freebsd* | dragonfly*) 8019 # DragonFly does not have aout. When/if they implement a new 8020 # versioning mechanism, adjust this. 8021 if test -x /usr/bin/objformat; then 8022 objformat=`/usr/bin/objformat` 8023 else 8024 case $host_os in 8025 freebsd[123]*) objformat=aout ;; 8026 *) objformat=elf ;; 8027 esac 8028 fi 8029 version_type=freebsd-$objformat 8030 case $version_type in 8031 freebsd-elf*) 8032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8033 need_version=no 8034 need_lib_prefix=no 8035 ;; 8036 freebsd-*) 8037 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8038 need_version=yes 8039 ;; 8040 esac 8041 shlibpath_var=LD_LIBRARY_PATH 8042 case $host_os in 8043 freebsd2*) 8044 shlibpath_overrides_runpath=yes 8045 ;; 8046 freebsd3.[01]* | freebsdelf3.[01]*) 8047 shlibpath_overrides_runpath=yes 8048 hardcode_into_libs=yes 8049 ;; 8050 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8051 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8052 shlibpath_overrides_runpath=no 8053 hardcode_into_libs=yes 8054 ;; 8055 freebsd*) # from 4.6 on 8056 shlibpath_overrides_runpath=yes 8057 hardcode_into_libs=yes 8058 ;; 8059 esac 8060 ;; 8061 8062 gnu*) 8063 version_type=linux 8064 need_lib_prefix=no 8065 need_version=no 8066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8067 soname_spec='${libname}${release}${shared_ext}$major' 8068 shlibpath_var=LD_LIBRARY_PATH 8069 hardcode_into_libs=yes 8070 ;; 8071 8072 hpux9* | hpux10* | hpux11*) 8073 # Give a soname corresponding to the major version so that dld.sl refuses to 8074 # link against other versions. 8075 version_type=sunos 8076 need_lib_prefix=no 8077 need_version=no 8078 case $host_cpu in 8079 ia64*) 8080 shrext_cmds='.so' 8081 hardcode_into_libs=yes 8082 dynamic_linker="$host_os dld.so" 8083 shlibpath_var=LD_LIBRARY_PATH 8084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8086 soname_spec='${libname}${release}${shared_ext}$major' 8087 if test "X$HPUX_IA64_MODE" = X32; then 8088 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8089 else 8090 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8091 fi 8092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8093 ;; 8094 hppa*64*) 8095 shrext_cmds='.sl' 8096 hardcode_into_libs=yes 8097 dynamic_linker="$host_os dld.sl" 8098 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8101 soname_spec='${libname}${release}${shared_ext}$major' 8102 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8104 ;; 8105 *) 8106 shrext_cmds='.sl' 8107 dynamic_linker="$host_os dld.sl" 8108 shlibpath_var=SHLIB_PATH 8109 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8111 soname_spec='${libname}${release}${shared_ext}$major' 8112 ;; 8113 esac 8114 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8115 postinstall_cmds='chmod 555 $lib' 8116 ;; 8117 8118 interix3*) 8119 version_type=linux 8120 need_lib_prefix=no 8121 need_version=no 8122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8123 soname_spec='${libname}${release}${shared_ext}$major' 8124 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8125 shlibpath_var=LD_LIBRARY_PATH 8126 shlibpath_overrides_runpath=no 8127 hardcode_into_libs=yes 8128 ;; 8129 8130 irix5* | irix6* | nonstopux*) 8131 case $host_os in 8132 nonstopux*) version_type=nonstopux ;; 8133 *) 8134 if test "$lt_cv_prog_gnu_ld" = yes; then 8135 version_type=linux 8136 else 8137 version_type=irix 8138 fi ;; 8139 esac 8140 need_lib_prefix=no 8141 need_version=no 8142 soname_spec='${libname}${release}${shared_ext}$major' 8143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8144 case $host_os in 8145 irix5* | nonstopux*) 8146 libsuff= shlibsuff= 8147 ;; 8148 *) 8149 case $LD in # libtool.m4 will add one of these switches to LD 8150 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8151 libsuff= shlibsuff= libmagic=32-bit;; 8152 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8153 libsuff=32 shlibsuff=N32 libmagic=N32;; 8154 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8155 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8156 *) libsuff= shlibsuff= libmagic=never-match;; 8157 esac 8158 ;; 8159 esac 8160 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8161 shlibpath_overrides_runpath=no 8162 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8163 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8164 hardcode_into_libs=yes 8165 ;; 8166 8167 # No shared lib support for Linux oldld, aout, or coff. 8168 linux*oldld* | linux*aout* | linux*coff*) 8169 dynamic_linker=no 8170 ;; 8171 8172 # This must be Linux ELF. 8173 linux*) 8174 version_type=linux 8175 need_lib_prefix=no 8176 need_version=no 8177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8178 soname_spec='${libname}${release}${shared_ext}$major' 8179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8180 shlibpath_var=LD_LIBRARY_PATH 8181 shlibpath_overrides_runpath=no 8182 # This implies no fast_install, which is unacceptable. 8183 # Some rework will be needed to allow for fast_install 8184 # before this can be enabled. 8185 hardcode_into_libs=yes 8186 8187 # Append ld.so.conf contents to the search path 8188 if test -f /etc/ld.so.conf; then 8189 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' ' '` 8190 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8191 fi 8192 8193 # We used to test for /lib/ld.so.1 and disable shared libraries on 8194 # powerpc, because MkLinux only supported shared libraries with the 8195 # GNU dynamic linker. Since this was broken with cross compilers, 8196 # most powerpc-linux boxes support dynamic linking these days and 8197 # people can always --disable-shared, the test was removed, and we 8198 # assume the GNU/Linux dynamic linker is in use. 8199 dynamic_linker='GNU/Linux ld.so' 8200 ;; 8201 8202 netbsdelf*-gnu) 8203 version_type=linux 8204 need_lib_prefix=no 8205 need_version=no 8206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8207 soname_spec='${libname}${release}${shared_ext}$major' 8208 shlibpath_var=LD_LIBRARY_PATH 8209 shlibpath_overrides_runpath=no 8210 hardcode_into_libs=yes 8211 dynamic_linker='NetBSD ld.elf_so' 8212 ;; 8213 8214 knetbsd*-gnu) 8215 version_type=linux 8216 need_lib_prefix=no 8217 need_version=no 8218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8219 soname_spec='${libname}${release}${shared_ext}$major' 8220 shlibpath_var=LD_LIBRARY_PATH 8221 shlibpath_overrides_runpath=no 8222 hardcode_into_libs=yes 8223 dynamic_linker='GNU ld.so' 8224 ;; 8225 8226 netbsd*) 8227 version_type=sunos 8228 need_lib_prefix=no 8229 need_version=no 8230 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8233 dynamic_linker='NetBSD (a.out) ld.so' 8234 else 8235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8236 soname_spec='${libname}${release}${shared_ext}$major' 8237 dynamic_linker='NetBSD ld.elf_so' 8238 fi 8239 shlibpath_var=LD_LIBRARY_PATH 8240 shlibpath_overrides_runpath=yes 8241 hardcode_into_libs=yes 8242 ;; 8243 8244 newsos6) 8245 version_type=linux 8246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8247 shlibpath_var=LD_LIBRARY_PATH 8248 shlibpath_overrides_runpath=yes 8249 ;; 8250 8251 nto-qnx*) 8252 version_type=linux 8253 need_lib_prefix=no 8254 need_version=no 8255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8256 soname_spec='${libname}${release}${shared_ext}$major' 8257 shlibpath_var=LD_LIBRARY_PATH 8258 shlibpath_overrides_runpath=yes 8259 ;; 8260 8261 openbsd*) 8262 version_type=sunos 8263 sys_lib_dlsearch_path_spec="/usr/lib" 8264 need_lib_prefix=no 8265 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8266 case $host_os in 8267 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8268 *) need_version=no ;; 8269 esac 8270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8272 shlibpath_var=LD_LIBRARY_PATH 8273 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8274 case $host_os in 8275 openbsd2.[89] | openbsd2.[89].*) 8276 shlibpath_overrides_runpath=no 8277 ;; 8278 *) 8279 shlibpath_overrides_runpath=yes 8280 ;; 8281 esac 8282 else 8283 shlibpath_overrides_runpath=yes 8284 fi 8285 ;; 8286 8287 os2*) 8288 libname_spec='$name' 8289 shrext_cmds=".dll" 8290 need_lib_prefix=no 8291 library_names_spec='$libname${shared_ext} $libname.a' 8292 dynamic_linker='OS/2 ld.exe' 8293 shlibpath_var=LIBPATH 8294 ;; 8295 8296 osf3* | osf4* | osf5*) 8297 version_type=osf 8298 need_lib_prefix=no 8299 need_version=no 8300 soname_spec='${libname}${release}${shared_ext}$major' 8301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8302 shlibpath_var=LD_LIBRARY_PATH 8303 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8304 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8305 ;; 8306 8307 solaris*) 8308 version_type=linux 8309 need_lib_prefix=no 8310 need_version=no 8311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8312 soname_spec='${libname}${release}${shared_ext}$major' 8313 shlibpath_var=LD_LIBRARY_PATH 8314 shlibpath_overrides_runpath=yes 8315 hardcode_into_libs=yes 8316 # ldd complains unless libraries are executable 8317 postinstall_cmds='chmod +x $lib' 8318 ;; 8319 8320 sunos4*) 8321 version_type=sunos 8322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8323 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8324 shlibpath_var=LD_LIBRARY_PATH 8325 shlibpath_overrides_runpath=yes 8326 if test "$with_gnu_ld" = yes; then 8327 need_lib_prefix=no 8328 fi 8329 need_version=yes 8330 ;; 8331 8332 sysv4 | sysv4.3*) 8333 version_type=linux 8334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8335 soname_spec='${libname}${release}${shared_ext}$major' 8336 shlibpath_var=LD_LIBRARY_PATH 8337 case $host_vendor in 8338 sni) 8339 shlibpath_overrides_runpath=no 8340 need_lib_prefix=no 8341 export_dynamic_flag_spec='${wl}-Blargedynsym' 8342 runpath_var=LD_RUN_PATH 8343 ;; 8344 siemens) 8345 need_lib_prefix=no 8346 ;; 8347 motorola) 8348 need_lib_prefix=no 8349 need_version=no 8350 shlibpath_overrides_runpath=no 8351 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8352 ;; 8353 esac 8354 ;; 8355 8356 sysv4*MP*) 8357 if test -d /usr/nec ;then 8358 version_type=linux 8359 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8360 soname_spec='$libname${shared_ext}.$major' 8361 shlibpath_var=LD_LIBRARY_PATH 8362 fi 8363 ;; 8364 8365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8366 version_type=freebsd-elf 8367 need_lib_prefix=no 8368 need_version=no 8369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8370 soname_spec='${libname}${release}${shared_ext}$major' 8371 shlibpath_var=LD_LIBRARY_PATH 8372 hardcode_into_libs=yes 8373 if test "$with_gnu_ld" = yes; then 8374 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 8375 shlibpath_overrides_runpath=no 8376 else 8377 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 8378 shlibpath_overrides_runpath=yes 8379 case $host_os in 8380 sco3.2v5*) 8381 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 8382 ;; 8383 esac 8384 fi 8385 sys_lib_dlsearch_path_spec='/usr/lib' 8386 ;; 8387 8388 uts4*) 8389 version_type=linux 8390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8391 soname_spec='${libname}${release}${shared_ext}$major' 8392 shlibpath_var=LD_LIBRARY_PATH 8393 ;; 8394 8395 *) 8396 dynamic_linker=no 8397 ;; 8398 esac 8399 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8400 echo "${ECHO_T}$dynamic_linker" >&6 8401 test "$dynamic_linker" = no && can_build_shared=no 8402 8403 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8404 if test "$GCC" = yes; then 8405 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8406 fi 8407 8408 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8409 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8410 hardcode_action= 8411 if test -n "$hardcode_libdir_flag_spec" || \ 8412 test -n "$runpath_var" || \ 8413 test "X$hardcode_automatic" = "Xyes" ; then 8414 8415 # We can hardcode non-existant directories. 8416 if test "$hardcode_direct" != no && 8417 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8418 # have to relink, otherwise we might link with an installed library 8419 # when we should be linking with a yet-to-be-installed one 8420 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8421 test "$hardcode_minus_L" != no; then 8422 # Linking always hardcodes the temporary library directory. 8423 hardcode_action=relink 8424 else 8425 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8426 hardcode_action=immediate 8427 fi 8428 else 8429 # We cannot hardcode anything, or else we can only hardcode existing 8430 # directories. 8431 hardcode_action=unsupported 8432 fi 8433 echo "$as_me:$LINENO: result: $hardcode_action" >&5 8434 echo "${ECHO_T}$hardcode_action" >&6 8435 8436 if test "$hardcode_action" = relink; then 8437 # Fast installation is not supported 8438 enable_fast_install=no 8439 elif test "$shlibpath_overrides_runpath" = yes || 8440 test "$enable_shared" = no; then 8441 # Fast installation is not necessary 8442 enable_fast_install=needless 8443 fi 8444 8445 striplib= 8446 old_striplib= 8447 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8448 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8449 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8450 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8451 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8452 echo "$as_me:$LINENO: result: yes" >&5 8453 echo "${ECHO_T}yes" >&6 8454 else 8455 # FIXME - insert some real tests, host_os isn't really good enough 8456 case $host_os in 8457 darwin*) 8458 if test -n "$STRIP" ; then 8459 striplib="$STRIP -x" 8460 echo "$as_me:$LINENO: result: yes" >&5 8461 echo "${ECHO_T}yes" >&6 8462 else 8463 echo "$as_me:$LINENO: result: no" >&5 8464 echo "${ECHO_T}no" >&6 8465 fi 8466 ;; 8467 *) 8468 echo "$as_me:$LINENO: result: no" >&5 8469 echo "${ECHO_T}no" >&6 8470 ;; 8471 esac 8472 fi 8473 8474 if test "x$enable_dlopen" != xyes; then 8475 enable_dlopen=unknown 8476 enable_dlopen_self=unknown 8477 enable_dlopen_self_static=unknown 8478 else 8479 lt_cv_dlopen=no 8480 lt_cv_dlopen_libs= 8481 8482 case $host_os in 8483 beos*) 8484 lt_cv_dlopen="load_add_on" 8485 lt_cv_dlopen_libs= 8486 lt_cv_dlopen_self=yes 8487 ;; 8488 8489 mingw* | pw32*) 8490 lt_cv_dlopen="LoadLibrary" 8491 lt_cv_dlopen_libs= 8492 ;; 8493 8494 cygwin*) 8495 lt_cv_dlopen="dlopen" 8496 lt_cv_dlopen_libs= 8497 ;; 8498 8499 darwin*) 8500 # if libdl is installed we need to link against it 8501 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8502 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8503 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8504 echo $ECHO_N "(cached) $ECHO_C" >&6 8505 else 8506 ac_check_lib_save_LIBS=$LIBS 8507 LIBS="-ldl $LIBS" 8508 cat >conftest.$ac_ext <<_ACEOF 8509 /* confdefs.h. */ 8510 _ACEOF 8511 cat confdefs.h >>conftest.$ac_ext 8512 cat >>conftest.$ac_ext <<_ACEOF 8513 /* end confdefs.h. */ 8514 8515 /* Override any gcc2 internal prototype to avoid an error. */ 8516 #ifdef __cplusplus 8517 extern "C" 8518 #endif 8519 /* We use char because int might match the return type of a gcc2 8520 builtin and then its argument prototype would still apply. */ 8521 char dlopen (); 8522 int 8523 main () 8524 { 8525 dlopen (); 8526 ; 8527 return 0; 8528 } 8529 _ACEOF 8530 rm -f conftest.$ac_objext conftest$ac_exeext 8531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8532 (eval $ac_link) 2>conftest.er1 8533 ac_status=$? 8534 grep -v '^ *+' conftest.er1 >conftest.err 8535 rm -f conftest.er1 8536 cat conftest.err >&5 8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8538 (exit $ac_status); } && 8539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8541 (eval $ac_try) 2>&5 8542 ac_status=$? 8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8544 (exit $ac_status); }; } && 8545 { ac_try='test -s conftest$ac_exeext' 8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8547 (eval $ac_try) 2>&5 8548 ac_status=$? 8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8550 (exit $ac_status); }; }; then 8551 ac_cv_lib_dl_dlopen=yes 8552 else 8553 echo "$as_me: failed program was:" >&5 8554 sed 's/^/| /' conftest.$ac_ext >&5 8555 8556 ac_cv_lib_dl_dlopen=no 8557 fi 8558 rm -f conftest.err conftest.$ac_objext \ 8559 conftest$ac_exeext conftest.$ac_ext 8560 LIBS=$ac_check_lib_save_LIBS 8561 fi 8562 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8563 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8564 if test $ac_cv_lib_dl_dlopen = yes; then 8565 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8566 else 8567 8568 lt_cv_dlopen="dyld" 8569 lt_cv_dlopen_libs= 8570 lt_cv_dlopen_self=yes 8571 8572 fi 8573 8574 ;; 8575 8576 *) 8577 echo "$as_me:$LINENO: checking for shl_load" >&5 8578 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8579 if test "${ac_cv_func_shl_load+set}" = set; then 8580 echo $ECHO_N "(cached) $ECHO_C" >&6 8581 else 8582 cat >conftest.$ac_ext <<_ACEOF 8583 /* confdefs.h. */ 8584 _ACEOF 8585 cat confdefs.h >>conftest.$ac_ext 8586 cat >>conftest.$ac_ext <<_ACEOF 8587 /* end confdefs.h. */ 8588 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8589 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8590 #define shl_load innocuous_shl_load 8591 8592 /* System header to define __stub macros and hopefully few prototypes, 8593 which can conflict with char shl_load (); below. 8594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8595 <limits.h> exists even on freestanding compilers. */ 8596 8597 #ifdef __STDC__ 8598 # include <limits.h> 8599 #else 8600 # include <assert.h> 8601 #endif 8602 8603 #undef shl_load 8604 8605 /* Override any gcc2 internal prototype to avoid an error. */ 8606 #ifdef __cplusplus 8607 extern "C" 8608 { 8609 #endif 8610 /* We use char because int might match the return type of a gcc2 8611 builtin and then its argument prototype would still apply. */ 8612 char shl_load (); 8613 /* The GNU C library defines this for functions which it implements 8614 to always fail with ENOSYS. Some functions are actually named 8615 something starting with __ and the normal name is an alias. */ 8616 #if defined (__stub_shl_load) || defined (__stub___shl_load) 8617 choke me 8618 #else 8619 char (*f) () = shl_load; 8620 #endif 8621 #ifdef __cplusplus 8622 } 8623 #endif 8624 8625 int 8626 main () 8627 { 8628 return f != shl_load; 8629 ; 8630 return 0; 8631 } 8632 _ACEOF 8633 rm -f conftest.$ac_objext conftest$ac_exeext 8634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8635 (eval $ac_link) 2>conftest.er1 8636 ac_status=$? 8637 grep -v '^ *+' conftest.er1 >conftest.err 8638 rm -f conftest.er1 8639 cat conftest.err >&5 8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8641 (exit $ac_status); } && 8642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8644 (eval $ac_try) 2>&5 8645 ac_status=$? 8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8647 (exit $ac_status); }; } && 8648 { ac_try='test -s conftest$ac_exeext' 8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8650 (eval $ac_try) 2>&5 8651 ac_status=$? 8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8653 (exit $ac_status); }; }; then 8654 ac_cv_func_shl_load=yes 8655 else 8656 echo "$as_me: failed program was:" >&5 8657 sed 's/^/| /' conftest.$ac_ext >&5 8658 8659 ac_cv_func_shl_load=no 8660 fi 8661 rm -f conftest.err conftest.$ac_objext \ 8662 conftest$ac_exeext conftest.$ac_ext 8663 fi 8664 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8665 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8666 if test $ac_cv_func_shl_load = yes; then 8667 lt_cv_dlopen="shl_load" 8668 else 8669 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8670 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8671 if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8672 echo $ECHO_N "(cached) $ECHO_C" >&6 8673 else 8674 ac_check_lib_save_LIBS=$LIBS 8675 LIBS="-ldld $LIBS" 8676 cat >conftest.$ac_ext <<_ACEOF 8677 /* confdefs.h. */ 8678 _ACEOF 8679 cat confdefs.h >>conftest.$ac_ext 8680 cat >>conftest.$ac_ext <<_ACEOF 8681 /* end confdefs.h. */ 8682 8683 /* Override any gcc2 internal prototype to avoid an error. */ 8684 #ifdef __cplusplus 8685 extern "C" 8686 #endif 8687 /* We use char because int might match the return type of a gcc2 8688 builtin and then its argument prototype would still apply. */ 8689 char shl_load (); 8690 int 8691 main () 8692 { 8693 shl_load (); 8694 ; 8695 return 0; 8696 } 8697 _ACEOF 8698 rm -f conftest.$ac_objext conftest$ac_exeext 8699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8700 (eval $ac_link) 2>conftest.er1 8701 ac_status=$? 8702 grep -v '^ *+' conftest.er1 >conftest.err 8703 rm -f conftest.er1 8704 cat conftest.err >&5 8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8706 (exit $ac_status); } && 8707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8709 (eval $ac_try) 2>&5 8710 ac_status=$? 8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8712 (exit $ac_status); }; } && 8713 { ac_try='test -s conftest$ac_exeext' 8714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8715 (eval $ac_try) 2>&5 8716 ac_status=$? 8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8718 (exit $ac_status); }; }; then 8719 ac_cv_lib_dld_shl_load=yes 8720 else 8721 echo "$as_me: failed program was:" >&5 8722 sed 's/^/| /' conftest.$ac_ext >&5 8723 8724 ac_cv_lib_dld_shl_load=no 8725 fi 8726 rm -f conftest.err conftest.$ac_objext \ 8727 conftest$ac_exeext conftest.$ac_ext 8728 LIBS=$ac_check_lib_save_LIBS 8729 fi 8730 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8731 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8732 if test $ac_cv_lib_dld_shl_load = yes; then 8733 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8734 else 8735 echo "$as_me:$LINENO: checking for dlopen" >&5 8736 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8737 if test "${ac_cv_func_dlopen+set}" = set; then 8738 echo $ECHO_N "(cached) $ECHO_C" >&6 8739 else 8740 cat >conftest.$ac_ext <<_ACEOF 8741 /* confdefs.h. */ 8742 _ACEOF 8743 cat confdefs.h >>conftest.$ac_ext 8744 cat >>conftest.$ac_ext <<_ACEOF 8745 /* end confdefs.h. */ 8746 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8747 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8748 #define dlopen innocuous_dlopen 8749 8750 /* System header to define __stub macros and hopefully few prototypes, 8751 which can conflict with char dlopen (); below. 8752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8753 <limits.h> exists even on freestanding compilers. */ 8754 8755 #ifdef __STDC__ 8756 # include <limits.h> 8757 #else 8758 # include <assert.h> 8759 #endif 8760 8761 #undef dlopen 8762 8763 /* Override any gcc2 internal prototype to avoid an error. */ 8764 #ifdef __cplusplus 8765 extern "C" 8766 { 8767 #endif 8768 /* We use char because int might match the return type of a gcc2 8769 builtin and then its argument prototype would still apply. */ 8770 char dlopen (); 8771 /* The GNU C library defines this for functions which it implements 8772 to always fail with ENOSYS. Some functions are actually named 8773 something starting with __ and the normal name is an alias. */ 8774 #if defined (__stub_dlopen) || defined (__stub___dlopen) 8775 choke me 8776 #else 8777 char (*f) () = dlopen; 8778 #endif 8779 #ifdef __cplusplus 8780 } 8781 #endif 8782 8783 int 8784 main () 8785 { 8786 return f != dlopen; 8787 ; 8788 return 0; 8789 } 8790 _ACEOF 8791 rm -f conftest.$ac_objext conftest$ac_exeext 8792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8793 (eval $ac_link) 2>conftest.er1 8794 ac_status=$? 8795 grep -v '^ *+' conftest.er1 >conftest.err 8796 rm -f conftest.er1 8797 cat conftest.err >&5 8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8799 (exit $ac_status); } && 8800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8802 (eval $ac_try) 2>&5 8803 ac_status=$? 8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8805 (exit $ac_status); }; } && 8806 { ac_try='test -s conftest$ac_exeext' 8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8808 (eval $ac_try) 2>&5 8809 ac_status=$? 8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8811 (exit $ac_status); }; }; then 8812 ac_cv_func_dlopen=yes 8813 else 8814 echo "$as_me: failed program was:" >&5 8815 sed 's/^/| /' conftest.$ac_ext >&5 8816 8817 ac_cv_func_dlopen=no 8818 fi 8819 rm -f conftest.err conftest.$ac_objext \ 8820 conftest$ac_exeext conftest.$ac_ext 8821 fi 8822 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8823 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8824 if test $ac_cv_func_dlopen = yes; then 8825 lt_cv_dlopen="dlopen" 8826 else 8827 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8828 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8829 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8830 echo $ECHO_N "(cached) $ECHO_C" >&6 8831 else 8832 ac_check_lib_save_LIBS=$LIBS 8833 LIBS="-ldl $LIBS" 8834 cat >conftest.$ac_ext <<_ACEOF 8835 /* confdefs.h. */ 8836 _ACEOF 8837 cat confdefs.h >>conftest.$ac_ext 8838 cat >>conftest.$ac_ext <<_ACEOF 8839 /* end confdefs.h. */ 8840 8841 /* Override any gcc2 internal prototype to avoid an error. */ 8842 #ifdef __cplusplus 8843 extern "C" 8844 #endif 8845 /* We use char because int might match the return type of a gcc2 8846 builtin and then its argument prototype would still apply. */ 8847 char dlopen (); 8848 int 8849 main () 8850 { 8851 dlopen (); 8852 ; 8853 return 0; 8854 } 8855 _ACEOF 8856 rm -f conftest.$ac_objext conftest$ac_exeext 8857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8858 (eval $ac_link) 2>conftest.er1 8859 ac_status=$? 8860 grep -v '^ *+' conftest.er1 >conftest.err 8861 rm -f conftest.er1 8862 cat conftest.err >&5 8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8864 (exit $ac_status); } && 8865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8867 (eval $ac_try) 2>&5 8868 ac_status=$? 8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8870 (exit $ac_status); }; } && 8871 { ac_try='test -s conftest$ac_exeext' 8872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8873 (eval $ac_try) 2>&5 8874 ac_status=$? 8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8876 (exit $ac_status); }; }; then 8877 ac_cv_lib_dl_dlopen=yes 8878 else 8879 echo "$as_me: failed program was:" >&5 8880 sed 's/^/| /' conftest.$ac_ext >&5 8881 8882 ac_cv_lib_dl_dlopen=no 8883 fi 8884 rm -f conftest.err conftest.$ac_objext \ 8885 conftest$ac_exeext conftest.$ac_ext 8886 LIBS=$ac_check_lib_save_LIBS 8887 fi 8888 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8889 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8890 if test $ac_cv_lib_dl_dlopen = yes; then 8891 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8892 else 8893 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8894 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8895 if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8896 echo $ECHO_N "(cached) $ECHO_C" >&6 8897 else 8898 ac_check_lib_save_LIBS=$LIBS 8899 LIBS="-lsvld $LIBS" 8900 cat >conftest.$ac_ext <<_ACEOF 8901 /* confdefs.h. */ 8902 _ACEOF 8903 cat confdefs.h >>conftest.$ac_ext 8904 cat >>conftest.$ac_ext <<_ACEOF 8905 /* end confdefs.h. */ 8906 8907 /* Override any gcc2 internal prototype to avoid an error. */ 8908 #ifdef __cplusplus 8909 extern "C" 8910 #endif 8911 /* We use char because int might match the return type of a gcc2 8912 builtin and then its argument prototype would still apply. */ 8913 char dlopen (); 8914 int 8915 main () 8916 { 8917 dlopen (); 8918 ; 8919 return 0; 8920 } 8921 _ACEOF 8922 rm -f conftest.$ac_objext conftest$ac_exeext 8923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8924 (eval $ac_link) 2>conftest.er1 8925 ac_status=$? 8926 grep -v '^ *+' conftest.er1 >conftest.err 8927 rm -f conftest.er1 8928 cat conftest.err >&5 8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8930 (exit $ac_status); } && 8931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8933 (eval $ac_try) 2>&5 8934 ac_status=$? 8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8936 (exit $ac_status); }; } && 8937 { ac_try='test -s conftest$ac_exeext' 8938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8939 (eval $ac_try) 2>&5 8940 ac_status=$? 8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8942 (exit $ac_status); }; }; then 8943 ac_cv_lib_svld_dlopen=yes 8944 else 8945 echo "$as_me: failed program was:" >&5 8946 sed 's/^/| /' conftest.$ac_ext >&5 8947 8948 ac_cv_lib_svld_dlopen=no 8949 fi 8950 rm -f conftest.err conftest.$ac_objext \ 8951 conftest$ac_exeext conftest.$ac_ext 8952 LIBS=$ac_check_lib_save_LIBS 8953 fi 8954 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8955 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8956 if test $ac_cv_lib_svld_dlopen = yes; then 8957 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8958 else 8959 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8960 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8961 if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8962 echo $ECHO_N "(cached) $ECHO_C" >&6 8963 else 8964 ac_check_lib_save_LIBS=$LIBS 8965 LIBS="-ldld $LIBS" 8966 cat >conftest.$ac_ext <<_ACEOF 8967 /* confdefs.h. */ 8968 _ACEOF 8969 cat confdefs.h >>conftest.$ac_ext 8970 cat >>conftest.$ac_ext <<_ACEOF 8971 /* end confdefs.h. */ 8972 8973 /* Override any gcc2 internal prototype to avoid an error. */ 8974 #ifdef __cplusplus 8975 extern "C" 8976 #endif 8977 /* We use char because int might match the return type of a gcc2 8978 builtin and then its argument prototype would still apply. */ 8979 char dld_link (); 8980 int 8981 main () 8982 { 8983 dld_link (); 8984 ; 8985 return 0; 8986 } 8987 _ACEOF 8988 rm -f conftest.$ac_objext conftest$ac_exeext 8989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8990 (eval $ac_link) 2>conftest.er1 8991 ac_status=$? 8992 grep -v '^ *+' conftest.er1 >conftest.err 8993 rm -f conftest.er1 8994 cat conftest.err >&5 8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8996 (exit $ac_status); } && 8997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8999 (eval $ac_try) 2>&5 9000 ac_status=$? 9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9002 (exit $ac_status); }; } && 9003 { ac_try='test -s conftest$ac_exeext' 9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9005 (eval $ac_try) 2>&5 9006 ac_status=$? 9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9008 (exit $ac_status); }; }; then 9009 ac_cv_lib_dld_dld_link=yes 9010 else 9011 echo "$as_me: failed program was:" >&5 9012 sed 's/^/| /' conftest.$ac_ext >&5 9013 9014 ac_cv_lib_dld_dld_link=no 9015 fi 9016 rm -f conftest.err conftest.$ac_objext \ 9017 conftest$ac_exeext conftest.$ac_ext 9018 LIBS=$ac_check_lib_save_LIBS 9019 fi 9020 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9021 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9022 if test $ac_cv_lib_dld_dld_link = yes; then 9023 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9024 fi 9025 9026 9027 fi 9028 9029 9030 fi 9031 9032 9033 fi 9034 9035 9036 fi 9037 9038 9039 fi 9040 9041 ;; 9042 esac 9043 9044 if test "x$lt_cv_dlopen" != xno; then 9045 enable_dlopen=yes 9046 else 9047 enable_dlopen=no 9048 fi 9049 9050 case $lt_cv_dlopen in 9051 dlopen) 9052 save_CPPFLAGS="$CPPFLAGS" 9053 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9054 9055 save_LDFLAGS="$LDFLAGS" 9056 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9057 9058 save_LIBS="$LIBS" 9059 LIBS="$lt_cv_dlopen_libs $LIBS" 9060 9061 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9062 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9063 if test "${lt_cv_dlopen_self+set}" = set; then 9064 echo $ECHO_N "(cached) $ECHO_C" >&6 9065 else 9066 if test "$cross_compiling" = yes; then : 9067 lt_cv_dlopen_self=cross 9068 else 9069 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9070 lt_status=$lt_dlunknown 9071 cat > conftest.$ac_ext <<EOF 9072 #line 9072 "configure" 9073 #include "confdefs.h" 9074 9075 #if HAVE_DLFCN_H 9076 #include <dlfcn.h> 9077 #endif 9078 9079 #include <stdio.h> 9080 9081 #ifdef RTLD_GLOBAL 9082 # define LT_DLGLOBAL RTLD_GLOBAL 9083 #else 9084 # ifdef DL_GLOBAL 9085 # define LT_DLGLOBAL DL_GLOBAL 9086 # else 9087 # define LT_DLGLOBAL 0 9088 # endif 9089 #endif 9090 9091 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9092 find out it does not work in some platform. */ 9093 #ifndef LT_DLLAZY_OR_NOW 9094 # ifdef RTLD_LAZY 9095 # define LT_DLLAZY_OR_NOW RTLD_LAZY 9096 # else 9097 # ifdef DL_LAZY 9098 # define LT_DLLAZY_OR_NOW DL_LAZY 9099 # else 9100 # ifdef RTLD_NOW 9101 # define LT_DLLAZY_OR_NOW RTLD_NOW 9102 # else 9103 # ifdef DL_NOW 9104 # define LT_DLLAZY_OR_NOW DL_NOW 9105 # else 9106 # define LT_DLLAZY_OR_NOW 0 9107 # endif 9108 # endif 9109 # endif 9110 # endif 9111 #endif 9112 9113 #ifdef __cplusplus 9114 extern "C" void exit (int); 9115 #endif 9116 9117 void fnord() { int i=42;} 9118 int main () 9119 { 9120 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9121 int status = $lt_dlunknown; 9122 9123 if (self) 9124 { 9125 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9126 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9127 /* dlclose (self); */ 9128 } 9129 else 9130 puts (dlerror ()); 9131 9132 exit (status); 9133 } 9134 EOF 9135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9136 (eval $ac_link) 2>&5 9137 ac_status=$? 9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9139 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9140 (./conftest; exit; ) >&5 2>/dev/null 9141 lt_status=$? 9142 case x$lt_status in 9143 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9144 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9145 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9146 esac 9147 else : 9148 # compilation failed 9149 lt_cv_dlopen_self=no 9150 fi 9151 fi 9152 rm -fr conftest* 9153 9154 9155 fi 9156 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9157 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9158 9159 if test "x$lt_cv_dlopen_self" = xyes; then 9160 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9161 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9162 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9163 if test "${lt_cv_dlopen_self_static+set}" = set; then 9164 echo $ECHO_N "(cached) $ECHO_C" >&6 9165 else 9166 if test "$cross_compiling" = yes; then : 9167 lt_cv_dlopen_self_static=cross 9168 else 9169 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9170 lt_status=$lt_dlunknown 9171 cat > conftest.$ac_ext <<EOF 9172 #line 9172 "configure" 9173 #include "confdefs.h" 9174 9175 #if HAVE_DLFCN_H 9176 #include <dlfcn.h> 9177 #endif 9178 9179 #include <stdio.h> 9180 9181 #ifdef RTLD_GLOBAL 9182 # define LT_DLGLOBAL RTLD_GLOBAL 9183 #else 9184 # ifdef DL_GLOBAL 9185 # define LT_DLGLOBAL DL_GLOBAL 9186 # else 9187 # define LT_DLGLOBAL 0 9188 # endif 9189 #endif 9190 9191 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9192 find out it does not work in some platform. */ 9193 #ifndef LT_DLLAZY_OR_NOW 9194 # ifdef RTLD_LAZY 9195 # define LT_DLLAZY_OR_NOW RTLD_LAZY 9196 # else 9197 # ifdef DL_LAZY 9198 # define LT_DLLAZY_OR_NOW DL_LAZY 9199 # else 9200 # ifdef RTLD_NOW 9201 # define LT_DLLAZY_OR_NOW RTLD_NOW 9202 # else 9203 # ifdef DL_NOW 9204 # define LT_DLLAZY_OR_NOW DL_NOW 9205 # else 9206 # define LT_DLLAZY_OR_NOW 0 9207 # endif 9208 # endif 9209 # endif 9210 # endif 9211 #endif 9212 9213 #ifdef __cplusplus 9214 extern "C" void exit (int); 9215 #endif 9216 9217 void fnord() { int i=42;} 9218 int main () 9219 { 9220 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9221 int status = $lt_dlunknown; 9222 9223 if (self) 9224 { 9225 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9226 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9227 /* dlclose (self); */ 9228 } 9229 else 9230 puts (dlerror ()); 9231 9232 exit (status); 9233 } 9234 EOF 9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9236 (eval $ac_link) 2>&5 9237 ac_status=$? 9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9239 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9240 (./conftest; exit; ) >&5 2>/dev/null 9241 lt_status=$? 9242 case x$lt_status in 9243 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9244 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9245 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9246 esac 9247 else : 9248 # compilation failed 9249 lt_cv_dlopen_self_static=no 9250 fi 9251 fi 9252 rm -fr conftest* 9253 9254 9255 fi 9256 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9257 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9258 fi 9259 9260 CPPFLAGS="$save_CPPFLAGS" 9261 LDFLAGS="$save_LDFLAGS" 9262 LIBS="$save_LIBS" 9263 ;; 9264 esac 9265 9266 case $lt_cv_dlopen_self in 9267 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9268 *) enable_dlopen_self=unknown ;; 9269 esac 9270 9271 case $lt_cv_dlopen_self_static in 9272 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9273 *) enable_dlopen_self_static=unknown ;; 9274 esac 9275 fi 9276 9277 9278 # Report which library types will actually be built 9279 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9280 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9281 echo "$as_me:$LINENO: result: $can_build_shared" >&5 9282 echo "${ECHO_T}$can_build_shared" >&6 9283 9284 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9285 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9286 test "$can_build_shared" = "no" && enable_shared=no 9287 9288 # On AIX, shared libraries and static libraries use the same namespace, and 9289 # are all built from PIC. 9290 case $host_os in 9291 aix3*) 9292 test "$enable_shared" = yes && enable_static=no 9293 if test -n "$RANLIB"; then 9294 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9295 postinstall_cmds='$RANLIB $lib' 9296 fi 9297 ;; 9298 9299 aix4* | aix5*) 9300 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9301 test "$enable_shared" = yes && enable_static=no 9302 fi 9303 ;; 9304 esac 9305 echo "$as_me:$LINENO: result: $enable_shared" >&5 9306 echo "${ECHO_T}$enable_shared" >&6 9307 9308 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9309 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9310 # Make sure either enable_shared or enable_static is yes. 9311 test "$enable_shared" = yes || enable_static=yes 9312 echo "$as_me:$LINENO: result: $enable_static" >&5 9313 echo "${ECHO_T}$enable_static" >&6 9314 9315 # The else clause should only fire when bootstrapping the 9316 # libtool distribution, otherwise you forgot to ship ltmain.sh 9317 # with your package, and you will get complaints that there are 9318 # no rules to generate ltmain.sh. 9319 if test -f "$ltmain"; then 9320 # See if we are running on zsh, and set the options which allow our commands through 9321 # without removal of \ escapes. 9322 if test -n "${ZSH_VERSION+set}" ; then 9323 setopt NO_GLOB_SUBST 9324 fi 9325 # Now quote all the things that may contain metacharacters while being 9326 # careful not to overquote the AC_SUBSTed values. We take copies of the 9327 # variables and quote the copies for generation of the libtool script. 9328 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9329 SED SHELL STRIP \ 9330 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9331 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9332 deplibs_check_method reload_flag reload_cmds need_locks \ 9333 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9334 lt_cv_sys_global_symbol_to_c_name_address \ 9335 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9336 old_postinstall_cmds old_postuninstall_cmds \ 9337 compiler \ 9338 CC \ 9339 LD \ 9340 lt_prog_compiler_wl \ 9341 lt_prog_compiler_pic \ 9342 lt_prog_compiler_static \ 9343 lt_prog_compiler_no_builtin_flag \ 9344 export_dynamic_flag_spec \ 9345 thread_safe_flag_spec \ 9346 whole_archive_flag_spec \ 9347 enable_shared_with_static_runtimes \ 9348 old_archive_cmds \ 9349 old_archive_from_new_cmds \ 9350 predep_objects \ 9351 postdep_objects \ 9352 predeps \ 9353 postdeps \ 9354 compiler_lib_search_path \ 9355 archive_cmds \ 9356 archive_expsym_cmds \ 9357 postinstall_cmds \ 9358 postuninstall_cmds \ 9359 old_archive_from_expsyms_cmds \ 9360 allow_undefined_flag \ 9361 no_undefined_flag \ 9362 export_symbols_cmds \ 9363 hardcode_libdir_flag_spec \ 9364 hardcode_libdir_flag_spec_ld \ 9365 hardcode_libdir_separator \ 9366 hardcode_automatic \ 9367 module_cmds \ 9368 module_expsym_cmds \ 9369 lt_cv_prog_compiler_c_o \ 9370 exclude_expsyms \ 9371 include_expsyms; do 9372 9373 case $var in 9374 old_archive_cmds | \ 9375 old_archive_from_new_cmds | \ 9376 archive_cmds | \ 9377 archive_expsym_cmds | \ 9378 module_cmds | \ 9379 module_expsym_cmds | \ 9380 old_archive_from_expsyms_cmds | \ 9381 export_symbols_cmds | \ 9382 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9383 postinstall_cmds | postuninstall_cmds | \ 9384 old_postinstall_cmds | old_postuninstall_cmds | \ 9385 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9386 # Double-quote double-evaled strings. 9387 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9388 ;; 9389 *) 9390 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9391 ;; 9392 esac 9393 done 9394 9395 case $lt_echo in 9396 *'\$0 --fallback-echo"') 9397 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9398 ;; 9399 esac 9400 9401 cfgfile="${ofile}T" 9402 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9403 $rm -f "$cfgfile" 9404 { echo "$as_me:$LINENO: creating $ofile" >&5 9405 echo "$as_me: creating $ofile" >&6;} 9406 9407 cat <<__EOF__ >> "$cfgfile" 9408 #! $SHELL 9409 9410 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9411 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9412 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 9413 # 9414 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9415 # Free Software Foundation, Inc. 9416 # 9417 # This file is part of GNU Libtool: 9418 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996 9419 # 9420 # This program is free software; you can redistribute it and/or modify 9421 # it under the terms of the GNU General Public License as published by 9422 # the Free Software Foundation; either version 2 of the License, or 9423 # (at your option) any later version. 9424 # 9425 # This program is distributed in the hope that it will be useful, but 9426 # WITHOUT ANY WARRANTY; without even the implied warranty of 9427 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9428 # General Public License for more details. 9429 # 9430 # You should have received a copy of the GNU General Public License 9431 # along with this program; if not, write to the Free Software 9432 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9433 # 9434 # As a special exception to the GNU General Public License, if you 9435 # distribute this file as part of a program that contains a 9436 # configuration script generated by Autoconf, you may include it under 9437 # the same distribution terms that you use for the rest of that program. 9438 9439 # A sed program that does not truncate output. 9440 SED=$lt_SED 9441 9442 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 9443 Xsed="$SED -e 1s/^X//" 9444 9445 # The HP-UX ksh and POSIX shell print the target directory to stdout 9446 # if CDPATH is set. 9447 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9448 9449 # The names of the tagged configurations supported by this script. 9450 available_tags= 9451 9452 # ### BEGIN LIBTOOL CONFIG 9453 9454 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9455 9456 # Shell to use when invoking shell scripts. 9457 SHELL=$lt_SHELL 9458 9459 # Whether or not to build shared libraries. 9460 build_libtool_libs=$enable_shared 9461 9462 # Whether or not to build static libraries. 9463 build_old_libs=$enable_static 9464 9465 # Whether or not to add -lc for building shared libraries. 9466 build_libtool_need_lc=$archive_cmds_need_lc 9467 9468 # Whether or not to disallow shared libs when runtime libs are static 9469 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9470 9471 # Whether or not to optimize for fast installation. 9472 fast_install=$enable_fast_install 9473 9474 # The host system. 9475 host_alias=$host_alias 9476 host=$host 9477 host_os=$host_os 9478 9479 # The build system. 9480 build_alias=$build_alias 9481 build=$build 9482 build_os=$build_os 9483 9484 # An echo program that does not interpret backslashes. 9485 echo=$lt_echo 9486 9487 # The archiver. 9488 AR=$lt_AR 9489 AR_FLAGS=$lt_AR_FLAGS 9490 9491 # A C compiler. 9492 LTCC=$lt_LTCC 9493 9494 # LTCC compiler flags. 9495 LTCFLAGS=$lt_LTCFLAGS 9496 9497 # A language-specific compiler. 9498 CC=$lt_compiler 9499 9500 # Is the compiler the GNU C compiler? 9501 with_gcc=$GCC 9502 9503 # An ERE matcher. 9504 EGREP=$lt_EGREP 9505 9506 # The linker used to build libraries. 9507 LD=$lt_LD 9508 9509 # Whether we need hard or soft links. 9510 LN_S=$lt_LN_S 9511 9512 # A BSD-compatible nm program. 9513 NM=$lt_NM 9514 9515 # A symbol stripping program 9516 STRIP=$lt_STRIP 9517 9518 # Used to examine libraries when file_magic_cmd begins "file" 9519 MAGIC_CMD=$MAGIC_CMD 9520 9521 # Used on cygwin: DLL creation program. 9522 DLLTOOL="$DLLTOOL" 9523 9524 # Used on cygwin: object dumper. 9525 OBJDUMP="$OBJDUMP" 9526 9527 # Used on cygwin: assembler. 9528 AS="$AS" 9529 9530 # The name of the directory that contains temporary libtool files. 9531 objdir=$objdir 9532 9533 # How to create reloadable object files. 9534 reload_flag=$lt_reload_flag 9535 reload_cmds=$lt_reload_cmds 9536 9537 # How to pass a linker flag through the compiler. 9538 wl=$lt_lt_prog_compiler_wl 9539 9540 # Object file suffix (normally "o"). 9541 objext="$ac_objext" 9542 9543 # Old archive suffix (normally "a"). 9544 libext="$libext" 9545 9546 # Shared library suffix (normally ".so"). 9547 shrext_cmds='$shrext_cmds' 9548 9549 # Executable file suffix (normally ""). 9550 exeext="$exeext" 9551 9552 # Additional compiler flags for building library objects. 9553 pic_flag=$lt_lt_prog_compiler_pic 9554 pic_mode=$pic_mode 9555 9556 # What is the maximum length of a command? 9557 max_cmd_len=$lt_cv_sys_max_cmd_len 9558 9559 # Does compiler simultaneously support -c and -o options? 9560 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9561 9562 # Must we lock files when doing compilation? 9563 need_locks=$lt_need_locks 9564 9565 # Do we need the lib prefix for modules? 9566 need_lib_prefix=$need_lib_prefix 9567 9568 # Do we need a version for libraries? 9569 need_version=$need_version 9570 9571 # Whether dlopen is supported. 9572 dlopen_support=$enable_dlopen 9573 9574 # Whether dlopen of programs is supported. 9575 dlopen_self=$enable_dlopen_self 9576 9577 # Whether dlopen of statically linked programs is supported. 9578 dlopen_self_static=$enable_dlopen_self_static 9579 9580 # Compiler flag to prevent dynamic linking. 9581 link_static_flag=$lt_lt_prog_compiler_static 9582 9583 # Compiler flag to turn off builtin functions. 9584 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9585 9586 # Compiler flag to allow reflexive dlopens. 9587 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9588 9589 # Compiler flag to generate shared objects directly from archives. 9590 whole_archive_flag_spec=$lt_whole_archive_flag_spec 9591 9592 # Compiler flag to generate thread-safe objects. 9593 thread_safe_flag_spec=$lt_thread_safe_flag_spec 9594 9595 # Library versioning type. 9596 version_type=$version_type 9597 9598 # Format of library name prefix. 9599 libname_spec=$lt_libname_spec 9600 9601 # List of archive names. First name is the real one, the rest are links. 9602 # The last name is the one that the linker finds with -lNAME. 9603 library_names_spec=$lt_library_names_spec 9604 9605 # The coded name of the library, if different from the real name. 9606 soname_spec=$lt_soname_spec 9607 9608 # Commands used to build and install an old-style archive. 9609 RANLIB=$lt_RANLIB 9610 old_archive_cmds=$lt_old_archive_cmds 9611 old_postinstall_cmds=$lt_old_postinstall_cmds 9612 old_postuninstall_cmds=$lt_old_postuninstall_cmds 9613 9614 # Create an old-style archive from a shared archive. 9615 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9616 9617 # Create a temporary old-style archive to link instead of a shared archive. 9618 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9619 9620 # Commands used to build and install a shared archive. 9621 archive_cmds=$lt_archive_cmds 9622 archive_expsym_cmds=$lt_archive_expsym_cmds 9623 postinstall_cmds=$lt_postinstall_cmds 9624 postuninstall_cmds=$lt_postuninstall_cmds 9625 9626 # Commands used to build a loadable module (assumed same as above if empty) 9627 module_cmds=$lt_module_cmds 9628 module_expsym_cmds=$lt_module_expsym_cmds 9629 9630 # Commands to strip libraries. 9631 old_striplib=$lt_old_striplib 9632 striplib=$lt_striplib 9633 9634 # Dependencies to place before the objects being linked to create a 9635 # shared library. 9636 predep_objects=$lt_predep_objects 9637 9638 # Dependencies to place after the objects being linked to create a 9639 # shared library. 9640 postdep_objects=$lt_postdep_objects 9641 9642 # Dependencies to place before the objects being linked to create a 9643 # shared library. 9644 predeps=$lt_predeps 9645 9646 # Dependencies to place after the objects being linked to create a 9647 # shared library. 9648 postdeps=$lt_postdeps 9649 9650 # The library search path used internally by the compiler when linking 9651 # a shared library. 9652 compiler_lib_search_path=$lt_compiler_lib_search_path 9653 9654 # Method to check whether dependent libraries are shared objects. 9655 deplibs_check_method=$lt_deplibs_check_method 9656 9657 # Command to use when deplibs_check_method == file_magic. 9658 file_magic_cmd=$lt_file_magic_cmd 9659 9660 # Flag that allows shared libraries with undefined symbols to be built. 9661 allow_undefined_flag=$lt_allow_undefined_flag 9662 9663 # Flag that forces no undefined symbols. 9664 no_undefined_flag=$lt_no_undefined_flag 9665 9666 # Commands used to finish a libtool library installation in a directory. 9667 finish_cmds=$lt_finish_cmds 9668 9669 # Same as above, but a single script fragment to be evaled but not shown. 9670 finish_eval=$lt_finish_eval 9671 9672 # Take the output of nm and produce a listing of raw symbols and C names. 9673 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9674 9675 # Transform the output of nm in a proper C declaration 9676 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9677 9678 # Transform the output of nm in a C name address pair 9679 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9680 9681 # This is the shared library runtime path variable. 9682 runpath_var=$runpath_var 9683 9684 # This is the shared library path variable. 9685 shlibpath_var=$shlibpath_var 9686 9687 # Is shlibpath searched before the hard-coded library search path? 9688 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9689 9690 # How to hardcode a shared library path into an executable. 9691 hardcode_action=$hardcode_action 9692 9693 # Whether we should hardcode library paths into libraries. 9694 hardcode_into_libs=$hardcode_into_libs 9695 9696 # Flag to hardcode \$libdir into a binary during linking. 9697 # This must work even if \$libdir does not exist. 9698 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9699 9700 # If ld is used when linking, flag to hardcode \$libdir into 9701 # a binary during linking. This must work even if \$libdir does 9702 # not exist. 9703 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9704 9705 # Whether we need a single -rpath flag with a separated argument. 9706 hardcode_libdir_separator=$lt_hardcode_libdir_separator 9707 9708 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9709 # resulting binary. 9710 hardcode_direct=$hardcode_direct 9711 9712 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9713 # resulting binary. 9714 hardcode_minus_L=$hardcode_minus_L 9715 9716 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9717 # the resulting binary. 9718 hardcode_shlibpath_var=$hardcode_shlibpath_var 9719 9720 # Set to yes if building a shared library automatically hardcodes DIR into the library 9721 # and all subsequent libraries and executables linked against it. 9722 hardcode_automatic=$hardcode_automatic 9723 9724 # Variables whose values should be saved in libtool wrapper scripts and 9725 # restored at relink time. 9726 variables_saved_for_relink="$variables_saved_for_relink" 9727 9728 # Whether libtool must link a program against all its dependency libraries. 9729 link_all_deplibs=$link_all_deplibs 9730 9731 # Compile-time system search path for libraries 9732 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9733 9734 # Run-time system search path for libraries 9735 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9736 9737 # Fix the shell variable \$srcfile for the compiler. 9738 fix_srcfile_path="$fix_srcfile_path" 9739 9740 # Set to yes if exported symbols are required. 9741 always_export_symbols=$always_export_symbols 9742 9743 # The commands to list exported symbols. 9744 export_symbols_cmds=$lt_export_symbols_cmds 9745 9746 # The commands to extract the exported symbol list from a shared archive. 9747 extract_expsyms_cmds=$lt_extract_expsyms_cmds 9748 9749 # Symbols that should not be listed in the preloaded symbols. 9750 exclude_expsyms=$lt_exclude_expsyms 9751 9752 # Symbols that must always be exported. 9753 include_expsyms=$lt_include_expsyms 9754 9755 # ### END LIBTOOL CONFIG 9756 9757 __EOF__ 9758 9759 9760 case $host_os in 9761 aix3*) 9762 cat <<\EOF >> "$cfgfile" 9763 9764 # AIX sometimes has problems with the GCC collect2 program. For some 9765 # reason, if we set the COLLECT_NAMES environment variable, the problems 9766 # vanish in a puff of smoke. 9767 if test "X${COLLECT_NAMES+set}" != Xset; then 9768 COLLECT_NAMES= 9769 export COLLECT_NAMES 9770 fi 9771 EOF 9772 ;; 9773 esac 9774 9775 # We use sed instead of cat because bash on DJGPP gets confused if 9776 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9777 # text mode, it properly converts lines to CR/LF. This bash problem 9778 # is reportedly fixed, but why not run on old versions too? 9779 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9780 9781 mv -f "$cfgfile" "$ofile" || \ 9782 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9783 chmod +x "$ofile" 9784 9785 else 9786 # If there is no Makefile yet, we rely on a make rule to execute 9787 # `config.status --recheck' to rerun these tests and create the 9788 # libtool script then. 9789 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9790 if test -f "$ltmain_in"; then 9791 test -f Makefile && make "$ltmain" 9792 fi 9793 fi 9794 9795 9796 ac_ext=c 9797 ac_cpp='$CPP $CPPFLAGS' 9798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9800 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9801 9802 CC="$lt_save_CC" 9803 9804 9805 # Check whether --with-tags or --without-tags was given. 9806 if test "${with_tags+set}" = set; then 9807 withval="$with_tags" 9808 tagnames="$withval" 9809 fi; 9810 9811 if test -f "$ltmain" && test -n "$tagnames"; then 9812 if test ! -f "${ofile}"; then 9813 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9814 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9815 fi 9816 9817 if test -z "$LTCC"; then 9818 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9819 if test -z "$LTCC"; then 9820 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9821 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9822 else 9823 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9824 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9825 fi 9826 fi 9827 if test -z "$LTCFLAGS"; then 9828 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 9829 fi 9830 9831 # Extract list of available tagged configurations in $ofile. 9832 # Note that this assumes the entire list is on one line. 9833 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9834 9835 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9836 for tagname in $tagnames; do 9837 IFS="$lt_save_ifs" 9838 # Check whether tagname contains only valid characters 9839 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9840 "") ;; 9841 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9842 echo "$as_me: error: invalid tag name: $tagname" >&2;} 9843 { (exit 1); exit 1; }; } 9844 ;; 9845 esac 9846 9847 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9848 then 9849 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9850 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9851 { (exit 1); exit 1; }; } 9852 fi 9853 9854 # Update the list of available tags. 9855 if test -n "$tagname"; then 9856 echo appending configuration tag \"$tagname\" to $ofile 9857 9858 case $tagname in 9859 CXX) 9860 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9861 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9862 (test "X$CXX" != "Xg++"))) ; then 9863 ac_ext=cc 9864 ac_cpp='$CXXCPP $CPPFLAGS' 9865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9868 9869 9870 9871 9872 archive_cmds_need_lc_CXX=no 9873 allow_undefined_flag_CXX= 9874 always_export_symbols_CXX=no 9875 archive_expsym_cmds_CXX= 9876 export_dynamic_flag_spec_CXX= 9877 hardcode_direct_CXX=no 9878 hardcode_libdir_flag_spec_CXX= 9879 hardcode_libdir_flag_spec_ld_CXX= 9880 hardcode_libdir_separator_CXX= 9881 hardcode_minus_L_CXX=no 9882 hardcode_shlibpath_var_CXX=unsupported 9883 hardcode_automatic_CXX=no 9884 module_cmds_CXX= 9885 module_expsym_cmds_CXX= 9886 link_all_deplibs_CXX=unknown 9887 old_archive_cmds_CXX=$old_archive_cmds 9888 no_undefined_flag_CXX= 9889 whole_archive_flag_spec_CXX= 9890 enable_shared_with_static_runtimes_CXX=no 9891 9892 # Dependencies to place before and after the object being linked: 9893 predep_objects_CXX= 9894 postdep_objects_CXX= 9895 predeps_CXX= 9896 postdeps_CXX= 9897 compiler_lib_search_path_CXX= 9898 9899 # Source file extension for C++ test sources. 9900 ac_ext=cpp 9901 9902 # Object file extension for compiled C++ test sources. 9903 objext=o 9904 objext_CXX=$objext 9905 9906 # Code to be used in simple compile tests 9907 lt_simple_compile_test_code="int some_variable = 0;\n" 9908 9909 # Code to be used in simple link tests 9910 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 9911 9912 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 9913 9914 # If no C compiler was specified, use CC. 9915 LTCC=${LTCC-"$CC"} 9916 9917 # If no C compiler flags were specified, use CFLAGS. 9918 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9919 9920 # Allow CC to be a program name with arguments. 9921 compiler=$CC 9922 9923 9924 # save warnings/boilerplate of simple test code 9925 ac_outfile=conftest.$ac_objext 9926 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9927 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9928 _lt_compiler_boilerplate=`cat conftest.err` 9929 $rm conftest* 9930 9931 ac_outfile=conftest.$ac_objext 9932 printf "$lt_simple_link_test_code" >conftest.$ac_ext 9933 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9934 _lt_linker_boilerplate=`cat conftest.err` 9935 $rm conftest* 9936 9937 9938 # Allow CC to be a program name with arguments. 9939 lt_save_CC=$CC 9940 lt_save_LD=$LD 9941 lt_save_GCC=$GCC 9942 GCC=$GXX 9943 lt_save_with_gnu_ld=$with_gnu_ld 9944 lt_save_path_LD=$lt_cv_path_LD 9945 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9946 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9947 else 9948 $as_unset lt_cv_prog_gnu_ld 9949 fi 9950 if test -n "${lt_cv_path_LDCXX+set}"; then 9951 lt_cv_path_LD=$lt_cv_path_LDCXX 9952 else 9953 $as_unset lt_cv_path_LD 9954 fi 9955 test -z "${LDCXX+set}" || LD=$LDCXX 9956 CC=${CXX-"c++"} 9957 compiler=$CC 9958 compiler_CXX=$CC 9959 for cc_temp in $compiler""; do 9960 case $cc_temp in 9961 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9962 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9963 \-*) ;; 9964 *) break;; 9965 esac 9966 done 9967 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9968 9969 9970 # We don't want -fno-exception wen compiling C++ code, so set the 9971 # no_builtin_flag separately 9972 if test "$GXX" = yes; then 9973 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9974 else 9975 lt_prog_compiler_no_builtin_flag_CXX= 9976 fi 9977 9978 if test "$GXX" = yes; then 9979 # Set up default GNU C++ configuration 9980 9981 9982 # Check whether --with-gnu-ld or --without-gnu-ld was given. 9983 if test "${with_gnu_ld+set}" = set; then 9984 withval="$with_gnu_ld" 9985 test "$withval" = no || with_gnu_ld=yes 9986 else 9987 with_gnu_ld=no 9988 fi; 9989 ac_prog=ld 9990 if test "$GCC" = yes; then 9991 # Check if gcc -print-prog-name=ld gives a path. 9992 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9993 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9994 case $host in 9995 *-*-mingw*) 9996 # gcc leaves a trailing carriage return which upsets mingw 9997 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9998 *) 9999 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10000 esac 10001 case $ac_prog in 10002 # Accept absolute paths. 10003 [\\/]* | ?:[\\/]*) 10004 re_direlt='/[^/][^/]*/\.\./' 10005 # Canonicalize the pathname of ld 10006 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10007 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10008 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10009 done 10010 test -z "$LD" && LD="$ac_prog" 10011 ;; 10012 "") 10013 # If it fails, then pretend we aren't using GCC. 10014 ac_prog=ld 10015 ;; 10016 *) 10017 # If it is relative, then search for the first ld in PATH. 10018 with_gnu_ld=unknown 10019 ;; 10020 esac 10021 elif test "$with_gnu_ld" = yes; then 10022 echo "$as_me:$LINENO: checking for GNU ld" >&5 10023 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10024 else 10025 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10026 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10027 fi 10028 if test "${lt_cv_path_LD+set}" = set; then 10029 echo $ECHO_N "(cached) $ECHO_C" >&6 10030 else 10031 if test -z "$LD"; then 10032 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10033 for ac_dir in $PATH; do 10034 IFS="$lt_save_ifs" 10035 test -z "$ac_dir" && ac_dir=. 10036 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10037 lt_cv_path_LD="$ac_dir/$ac_prog" 10038 # Check to see if the program is GNU ld. I'd rather use --version, 10039 # but apparently some variants of GNU ld only accept -v. 10040 # Break only if it was the GNU/non-GNU ld that we prefer. 10041 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10042 *GNU* | *'with BFD'*) 10043 test "$with_gnu_ld" != no && break 10044 ;; 10045 *) 10046 test "$with_gnu_ld" != yes && break 10047 ;; 10048 esac 10049 fi 10050 done 10051 IFS="$lt_save_ifs" 10052 else 10053 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10054 fi 10055 fi 10056 10057 LD="$lt_cv_path_LD" 10058 if test -n "$LD"; then 10059 echo "$as_me:$LINENO: result: $LD" >&5 10060 echo "${ECHO_T}$LD" >&6 10061 else 10062 echo "$as_me:$LINENO: result: no" >&5 10063 echo "${ECHO_T}no" >&6 10064 fi 10065 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10066 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10067 { (exit 1); exit 1; }; } 10068 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10069 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10070 if test "${lt_cv_prog_gnu_ld+set}" = set; then 10071 echo $ECHO_N "(cached) $ECHO_C" >&6 10072 else 10073 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10074 case `$LD -v 2>&1 </dev/null` in 10075 *GNU* | *'with BFD'*) 10076 lt_cv_prog_gnu_ld=yes 10077 ;; 10078 *) 10079 lt_cv_prog_gnu_ld=no 10080 ;; 10081 esac 10082 fi 10083 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10084 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10085 with_gnu_ld=$lt_cv_prog_gnu_ld 10086 10087 10088 10089 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10090 # archiving commands below assume that GNU ld is being used. 10091 if test "$with_gnu_ld" = yes; then 10092 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10093 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' 10094 10095 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10096 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10097 10098 # If archive_cmds runs LD, not CC, wlarc should be empty 10099 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10100 # investigate it a little bit more. (MM) 10101 wlarc='${wl}' 10102 10103 # ancient GNU ld didn't support --whole-archive et. al. 10104 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10105 grep 'no-whole-archive' > /dev/null; then 10106 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10107 else 10108 whole_archive_flag_spec_CXX= 10109 fi 10110 else 10111 with_gnu_ld=no 10112 wlarc= 10113 10114 # A generic and very simple default shared library creation 10115 # command for GNU C++ for the case where it uses the native 10116 # linker, instead of GNU ld. If possible, this setting should 10117 # overridden to take advantage of the native linker features on 10118 # the platform it is being used on. 10119 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10120 fi 10121 10122 # Commands to make compiler produce verbose output that lists 10123 # what "hidden" libraries, object files and flags are used when 10124 # linking a shared library. 10125 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10126 10127 else 10128 GXX=no 10129 with_gnu_ld=no 10130 wlarc= 10131 fi 10132 10133 # PORTME: fill in a description of your system's C++ link characteristics 10134 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10135 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10136 ld_shlibs_CXX=yes 10137 case $host_os in 10138 aix3*) 10139 # FIXME: insert proper C++ library support 10140 ld_shlibs_CXX=no 10141 ;; 10142 aix4* | aix5*) 10143 if test "$host_cpu" = ia64; then 10144 # On IA64, the linker does run time linking by default, so we don't 10145 # have to do anything special. 10146 aix_use_runtimelinking=no 10147 exp_sym_flag='-Bexport' 10148 no_entry_flag="" 10149 else 10150 aix_use_runtimelinking=no 10151 10152 # Test if we are trying to use run time linking or normal 10153 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10154 # need to do runtime linking. 10155 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10156 for ld_flag in $LDFLAGS; do 10157 case $ld_flag in 10158 *-brtl*) 10159 aix_use_runtimelinking=yes 10160 break 10161 ;; 10162 esac 10163 done 10164 ;; 10165 esac 10166 10167 exp_sym_flag='-bexport' 10168 no_entry_flag='-bnoentry' 10169 fi 10170 10171 # When large executables or shared objects are built, AIX ld can 10172 # have problems creating the table of contents. If linking a library 10173 # or program results in "error TOC overflow" add -mminimal-toc to 10174 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10175 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10176 10177 archive_cmds_CXX='' 10178 hardcode_direct_CXX=yes 10179 hardcode_libdir_separator_CXX=':' 10180 link_all_deplibs_CXX=yes 10181 10182 if test "$GXX" = yes; then 10183 case $host_os in aix4.[012]|aix4.[012].*) 10184 # We only want to do this on AIX 4.2 and lower, the check 10185 # below for broken collect2 doesn't work under 4.3+ 10186 collect2name=`${CC} -print-prog-name=collect2` 10187 if test -f "$collect2name" && \ 10188 strings "$collect2name" | grep resolve_lib_name >/dev/null 10189 then 10190 # We have reworked collect2 10191 hardcode_direct_CXX=yes 10192 else 10193 # We have old collect2 10194 hardcode_direct_CXX=unsupported 10195 # It fails to find uninstalled libraries when the uninstalled 10196 # path is not listed in the libpath. Setting hardcode_minus_L 10197 # to unsupported forces relinking 10198 hardcode_minus_L_CXX=yes 10199 hardcode_libdir_flag_spec_CXX='-L$libdir' 10200 hardcode_libdir_separator_CXX= 10201 fi 10202 ;; 10203 esac 10204 shared_flag='-shared' 10205 if test "$aix_use_runtimelinking" = yes; then 10206 shared_flag="$shared_flag "'${wl}-G' 10207 fi 10208 else 10209 # not using gcc 10210 if test "$host_cpu" = ia64; then 10211 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10212 # chokes on -Wl,-G. The following line is correct: 10213 shared_flag='-G' 10214 else 10215 if test "$aix_use_runtimelinking" = yes; then 10216 shared_flag='${wl}-G' 10217 else 10218 shared_flag='${wl}-bM:SRE' 10219 fi 10220 fi 10221 fi 10222 10223 # It seems that -bexpall does not export symbols beginning with 10224 # underscore (_), so it is better to generate a list of symbols to export. 10225 always_export_symbols_CXX=yes 10226 if test "$aix_use_runtimelinking" = yes; then 10227 # Warning - without using the other runtime loading flags (-brtl), 10228 # -berok will link without error, but may produce a broken library. 10229 allow_undefined_flag_CXX='-berok' 10230 # Determine the default libpath from the value encoded in an empty executable. 10231 cat >conftest.$ac_ext <<_ACEOF 10232 /* confdefs.h. */ 10233 _ACEOF 10234 cat confdefs.h >>conftest.$ac_ext 10235 cat >>conftest.$ac_ext <<_ACEOF 10236 /* end confdefs.h. */ 10237 10238 int 10239 main () 10240 { 10241 10242 ; 10243 return 0; 10244 } 10245 _ACEOF 10246 rm -f conftest.$ac_objext conftest$ac_exeext 10247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10248 (eval $ac_link) 2>conftest.er1 10249 ac_status=$? 10250 grep -v '^ *+' conftest.er1 >conftest.err 10251 rm -f conftest.er1 10252 cat conftest.err >&5 10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10254 (exit $ac_status); } && 10255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10257 (eval $ac_try) 2>&5 10258 ac_status=$? 10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10260 (exit $ac_status); }; } && 10261 { ac_try='test -s conftest$ac_exeext' 10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10263 (eval $ac_try) 2>&5 10264 ac_status=$? 10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10266 (exit $ac_status); }; }; then 10267 10268 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10269 }'` 10270 # Check for a 64-bit object if we didn't find anything. 10271 if 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; } 10272 }'`; fi 10273 else 10274 echo "$as_me: failed program was:" >&5 10275 sed 's/^/| /' conftest.$ac_ext >&5 10276 10277 fi 10278 rm -f conftest.err conftest.$ac_objext \ 10279 conftest$ac_exeext conftest.$ac_ext 10280 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10281 10282 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10283 10284 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" 10285 else 10286 if test "$host_cpu" = ia64; then 10287 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10288 allow_undefined_flag_CXX="-z nodefs" 10289 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" 10290 else 10291 # Determine the default libpath from the value encoded in an empty executable. 10292 cat >conftest.$ac_ext <<_ACEOF 10293 /* confdefs.h. */ 10294 _ACEOF 10295 cat confdefs.h >>conftest.$ac_ext 10296 cat >>conftest.$ac_ext <<_ACEOF 10297 /* end confdefs.h. */ 10298 10299 int 10300 main () 10301 { 10302 10303 ; 10304 return 0; 10305 } 10306 _ACEOF 10307 rm -f conftest.$ac_objext conftest$ac_exeext 10308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10309 (eval $ac_link) 2>conftest.er1 10310 ac_status=$? 10311 grep -v '^ *+' conftest.er1 >conftest.err 10312 rm -f conftest.er1 10313 cat conftest.err >&5 10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10315 (exit $ac_status); } && 10316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10318 (eval $ac_try) 2>&5 10319 ac_status=$? 10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10321 (exit $ac_status); }; } && 10322 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 10328 10329 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10330 }'` 10331 # Check for a 64-bit object if we didn't find anything. 10332 if 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; } 10333 }'`; fi 10334 else 10335 echo "$as_me: failed program was:" >&5 10336 sed 's/^/| /' conftest.$ac_ext >&5 10337 10338 fi 10339 rm -f conftest.err conftest.$ac_objext \ 10340 conftest$ac_exeext conftest.$ac_ext 10341 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10342 10343 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10344 # Warning - without using the other run time loading flags, 10345 # -berok will link without error, but may produce a broken library. 10346 no_undefined_flag_CXX=' ${wl}-bernotok' 10347 allow_undefined_flag_CXX=' ${wl}-berok' 10348 # Exported symbols can be pulled into shared objects from archives 10349 whole_archive_flag_spec_CXX='$convenience' 10350 archive_cmds_need_lc_CXX=yes 10351 # This is similar to how AIX traditionally builds its shared libraries. 10352 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' 10353 fi 10354 fi 10355 ;; 10356 10357 beos*) 10358 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10359 allow_undefined_flag_CXX=unsupported 10360 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 10361 # support --undefined. This deserves some investigation. FIXME 10362 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10363 else 10364 ld_shlibs_CXX=no 10365 fi 10366 ;; 10367 10368 chorus*) 10369 case $cc_basename in 10370 *) 10371 # FIXME: insert proper C++ library support 10372 ld_shlibs_CXX=no 10373 ;; 10374 esac 10375 ;; 10376 10377 cygwin* | mingw* | pw32*) 10378 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10379 # as there is no search path for DLLs. 10380 hardcode_libdir_flag_spec_CXX='-L$libdir' 10381 allow_undefined_flag_CXX=unsupported 10382 always_export_symbols_CXX=no 10383 enable_shared_with_static_runtimes_CXX=yes 10384 10385 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10386 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' 10387 # If the export-symbols file already is a .def file (1st line 10388 # is EXPORTS), use it as is; otherwise, prepend... 10389 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10390 cp $export_symbols $output_objdir/$soname.def; 10391 else 10392 echo EXPORTS > $output_objdir/$soname.def; 10393 cat $export_symbols >> $output_objdir/$soname.def; 10394 fi~ 10395 $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' 10396 else 10397 ld_shlibs_CXX=no 10398 fi 10399 ;; 10400 darwin* | rhapsody*) 10401 case $host_os in 10402 rhapsody* | darwin1.[012]) 10403 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10404 ;; 10405 *) # Darwin 1.3 on 10406 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10407 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10408 else 10409 case ${MACOSX_DEPLOYMENT_TARGET} in 10410 10.[012]) 10411 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10412 ;; 10413 10.*) 10414 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10415 ;; 10416 esac 10417 fi 10418 ;; 10419 esac 10420 archive_cmds_need_lc_CXX=no 10421 hardcode_direct_CXX=no 10422 hardcode_automatic_CXX=yes 10423 hardcode_shlibpath_var_CXX=unsupported 10424 whole_archive_flag_spec_CXX='' 10425 link_all_deplibs_CXX=yes 10426 10427 if test "$GXX" = yes ; then 10428 lt_int_apple_cc_single_mod=no 10429 output_verbose_link_cmd='echo' 10430 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10431 lt_int_apple_cc_single_mod=yes 10432 fi 10433 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10434 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10435 else 10436 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' 10437 fi 10438 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10439 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10440 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10441 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}' 10442 else 10443 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}' 10444 fi 10445 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}' 10446 else 10447 case $cc_basename in 10448 xlc*) 10449 output_verbose_link_cmd='echo' 10450 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' 10451 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10452 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10453 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}' 10454 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}' 10455 ;; 10456 *) 10457 ld_shlibs_CXX=no 10458 ;; 10459 esac 10460 fi 10461 ;; 10462 10463 dgux*) 10464 case $cc_basename in 10465 ec++*) 10466 # FIXME: insert proper C++ library support 10467 ld_shlibs_CXX=no 10468 ;; 10469 ghcx*) 10470 # Green Hills C++ Compiler 10471 # FIXME: insert proper C++ library support 10472 ld_shlibs_CXX=no 10473 ;; 10474 *) 10475 # FIXME: insert proper C++ library support 10476 ld_shlibs_CXX=no 10477 ;; 10478 esac 10479 ;; 10480 freebsd[12]*) 10481 # C++ shared libraries reported to be fairly broken before switch to ELF 10482 ld_shlibs_CXX=no 10483 ;; 10484 freebsd-elf*) 10485 archive_cmds_need_lc_CXX=no 10486 ;; 10487 freebsd* | kfreebsd*-gnu | dragonfly*) 10488 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10489 # conventions 10490 ld_shlibs_CXX=yes 10491 ;; 10492 gnu*) 10493 ;; 10494 hpux9*) 10495 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10496 hardcode_libdir_separator_CXX=: 10497 export_dynamic_flag_spec_CXX='${wl}-E' 10498 hardcode_direct_CXX=yes 10499 hardcode_minus_L_CXX=yes # Not in the search PATH, 10500 # but as the default 10501 # location of the library. 10502 10503 case $cc_basename in 10504 CC*) 10505 # FIXME: insert proper C++ library support 10506 ld_shlibs_CXX=no 10507 ;; 10508 aCC*) 10509 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' 10510 # Commands to make compiler produce verbose output that lists 10511 # what "hidden" libraries, object files and flags are used when 10512 # linking a shared library. 10513 # 10514 # There doesn't appear to be a way to prevent this compiler from 10515 # explicitly linking system object files so we need to strip them 10516 # from the output so that they don't get included in the library 10517 # dependencies. 10518 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' 10519 ;; 10520 *) 10521 if test "$GXX" = yes; then 10522 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' 10523 else 10524 # FIXME: insert proper C++ library support 10525 ld_shlibs_CXX=no 10526 fi 10527 ;; 10528 esac 10529 ;; 10530 hpux10*|hpux11*) 10531 if test $with_gnu_ld = no; then 10532 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10533 hardcode_libdir_separator_CXX=: 10534 10535 case $host_cpu in 10536 hppa*64*|ia64*) 10537 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10538 ;; 10539 *) 10540 export_dynamic_flag_spec_CXX='${wl}-E' 10541 ;; 10542 esac 10543 fi 10544 case $host_cpu in 10545 hppa*64*|ia64*) 10546 hardcode_direct_CXX=no 10547 hardcode_shlibpath_var_CXX=no 10548 ;; 10549 *) 10550 hardcode_direct_CXX=yes 10551 hardcode_minus_L_CXX=yes # Not in the search PATH, 10552 # but as the default 10553 # location of the library. 10554 ;; 10555 esac 10556 10557 case $cc_basename in 10558 CC*) 10559 # FIXME: insert proper C++ library support 10560 ld_shlibs_CXX=no 10561 ;; 10562 aCC*) 10563 case $host_cpu in 10564 hppa*64*) 10565 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10566 ;; 10567 ia64*) 10568 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10569 ;; 10570 *) 10571 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10572 ;; 10573 esac 10574 # Commands to make compiler produce verbose output that lists 10575 # what "hidden" libraries, object files and flags are used when 10576 # linking a shared library. 10577 # 10578 # There doesn't appear to be a way to prevent this compiler from 10579 # explicitly linking system object files so we need to strip them 10580 # from the output so that they don't get included in the library 10581 # dependencies. 10582 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' 10583 ;; 10584 *) 10585 if test "$GXX" = yes; then 10586 if test $with_gnu_ld = no; then 10587 case $host_cpu in 10588 hppa*64*) 10589 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10590 ;; 10591 ia64*) 10592 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10593 ;; 10594 *) 10595 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' 10596 ;; 10597 esac 10598 fi 10599 else 10600 # FIXME: insert proper C++ library support 10601 ld_shlibs_CXX=no 10602 fi 10603 ;; 10604 esac 10605 ;; 10606 interix3*) 10607 hardcode_direct_CXX=no 10608 hardcode_shlibpath_var_CXX=no 10609 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10610 export_dynamic_flag_spec_CXX='${wl}-E' 10611 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10612 # Instead, shared libraries are loaded at an image base (0x10000000 by 10613 # default) and relocated if they conflict, which is a slow very memory 10614 # consuming and fragmenting process. To avoid this, we pick a random, 10615 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10616 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10617 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' 10618 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' 10619 ;; 10620 irix5* | irix6*) 10621 case $cc_basename in 10622 CC*) 10623 # SGI C++ 10624 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' 10625 10626 # Archives containing C++ object files must be created using 10627 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10628 # necessary to make sure instantiated templates are included 10629 # in the archive. 10630 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10631 ;; 10632 *) 10633 if test "$GXX" = yes; then 10634 if test "$with_gnu_ld" = no; then 10635 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' 10636 else 10637 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' 10638 fi 10639 fi 10640 link_all_deplibs_CXX=yes 10641 ;; 10642 esac 10643 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10644 hardcode_libdir_separator_CXX=: 10645 ;; 10646 linux*) 10647 case $cc_basename in 10648 KCC*) 10649 # Kuck and Associates, Inc. (KAI) C++ Compiler 10650 10651 # KCC will only create a shared library if the output file 10652 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10653 # to its proper name (with version) after linking. 10654 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' 10655 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' 10656 # Commands to make compiler produce verbose output that lists 10657 # what "hidden" libraries, object files and flags are used when 10658 # linking a shared library. 10659 # 10660 # There doesn't appear to be a way to prevent this compiler from 10661 # explicitly linking system object files so we need to strip them 10662 # from the output so that they don't get included in the library 10663 # dependencies. 10664 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' 10665 10666 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10667 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10668 10669 # Archives containing C++ object files must be created using 10670 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10671 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10672 ;; 10673 icpc*) 10674 # Intel C++ 10675 with_gnu_ld=yes 10676 # version 8.0 and above of icpc choke on multiply defined symbols 10677 # if we add $predep_objects and $postdep_objects, however 7.1 and 10678 # earlier do not add the objects themselves. 10679 case `$CC -V 2>&1` in 10680 *"Version 7."*) 10681 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10682 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' 10683 ;; 10684 *) # Version 8.0 or newer 10685 tmp_idyn= 10686 case $host_cpu in 10687 ia64*) tmp_idyn=' -i_dynamic';; 10688 esac 10689 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10690 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' 10691 ;; 10692 esac 10693 archive_cmds_need_lc_CXX=no 10694 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10695 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10696 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10697 ;; 10698 pgCC*) 10699 # Portland Group C++ compiler 10700 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 10701 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' 10702 10703 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10704 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10705 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' 10706 ;; 10707 cxx*) 10708 # Compaq C++ 10709 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10710 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' 10711 10712 runpath_var=LD_RUN_PATH 10713 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10714 hardcode_libdir_separator_CXX=: 10715 10716 # Commands to make compiler produce verbose output that lists 10717 # what "hidden" libraries, object files and flags are used when 10718 # linking a shared library. 10719 # 10720 # There doesn't appear to be a way to prevent this compiler from 10721 # explicitly linking system object files so we need to strip them 10722 # from the output so that they don't get included in the library 10723 # dependencies. 10724 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' 10725 ;; 10726 esac 10727 ;; 10728 lynxos*) 10729 # FIXME: insert proper C++ library support 10730 ld_shlibs_CXX=no 10731 ;; 10732 m88k*) 10733 # FIXME: insert proper C++ library support 10734 ld_shlibs_CXX=no 10735 ;; 10736 mvs*) 10737 case $cc_basename in 10738 cxx*) 10739 # FIXME: insert proper C++ library support 10740 ld_shlibs_CXX=no 10741 ;; 10742 *) 10743 # FIXME: insert proper C++ library support 10744 ld_shlibs_CXX=no 10745 ;; 10746 esac 10747 ;; 10748 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 10749 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10750 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10751 wlarc= 10752 hardcode_libdir_flag_spec_CXX='-R$libdir' 10753 hardcode_direct_CXX=yes 10754 hardcode_shlibpath_var_CXX=no 10755 fi 10756 # Workaround some broken pre-1.5 toolchains 10757 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10758 ;; 10759 openbsd2*) 10760 # C++ shared libraries are fairly broken 10761 ld_shlibs_CXX=no 10762 ;; 10763 openbsd*) 10764 hardcode_direct_CXX=yes 10765 hardcode_shlibpath_var_CXX=no 10766 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10767 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10768 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10769 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10770 export_dynamic_flag_spec_CXX='${wl}-E' 10771 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10772 fi 10773 output_verbose_link_cmd='echo' 10774 ;; 10775 osf3*) 10776 case $cc_basename in 10777 KCC*) 10778 # Kuck and Associates, Inc. (KAI) C++ Compiler 10779 10780 # KCC will only create a shared library if the output file 10781 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10782 # to its proper name (with version) after linking. 10783 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' 10784 10785 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10786 hardcode_libdir_separator_CXX=: 10787 10788 # Archives containing C++ object files must be created using 10789 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10790 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10791 10792 ;; 10793 RCC*) 10794 # Rational C++ 2.4.1 10795 # FIXME: insert proper C++ library support 10796 ld_shlibs_CXX=no 10797 ;; 10798 cxx*) 10799 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10800 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' 10801 10802 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10803 hardcode_libdir_separator_CXX=: 10804 10805 # Commands to make compiler produce verbose output that lists 10806 # what "hidden" libraries, object files and flags are used when 10807 # linking a shared library. 10808 # 10809 # There doesn't appear to be a way to prevent this compiler from 10810 # explicitly linking system object files so we need to strip them 10811 # from the output so that they don't get included in the library 10812 # dependencies. 10813 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' 10814 ;; 10815 *) 10816 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10817 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10818 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' 10819 10820 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10821 hardcode_libdir_separator_CXX=: 10822 10823 # Commands to make compiler produce verbose output that lists 10824 # what "hidden" libraries, object files and flags are used when 10825 # linking a shared library. 10826 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10827 10828 else 10829 # FIXME: insert proper C++ library support 10830 ld_shlibs_CXX=no 10831 fi 10832 ;; 10833 esac 10834 ;; 10835 osf4* | osf5*) 10836 case $cc_basename in 10837 KCC*) 10838 # Kuck and Associates, Inc. (KAI) C++ Compiler 10839 10840 # KCC will only create a shared library if the output file 10841 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10842 # to its proper name (with version) after linking. 10843 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' 10844 10845 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10846 hardcode_libdir_separator_CXX=: 10847 10848 # Archives containing C++ object files must be created using 10849 # the KAI C++ compiler. 10850 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10851 ;; 10852 RCC*) 10853 # Rational C++ 2.4.1 10854 # FIXME: insert proper C++ library support 10855 ld_shlibs_CXX=no 10856 ;; 10857 cxx*) 10858 allow_undefined_flag_CXX=' -expect_unresolved \*' 10859 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' 10860 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10861 echo "-hidden">> $lib.exp~ 10862 $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~ 10863 $rm $lib.exp' 10864 10865 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10866 hardcode_libdir_separator_CXX=: 10867 10868 # Commands to make compiler produce verbose output that lists 10869 # what "hidden" libraries, object files and flags are used when 10870 # linking a shared library. 10871 # 10872 # There doesn't appear to be a way to prevent this compiler from 10873 # explicitly linking system object files so we need to strip them 10874 # from the output so that they don't get included in the library 10875 # dependencies. 10876 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' 10877 ;; 10878 *) 10879 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10880 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10881 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' 10882 10883 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10884 hardcode_libdir_separator_CXX=: 10885 10886 # Commands to make compiler produce verbose output that lists 10887 # what "hidden" libraries, object files and flags are used when 10888 # linking a shared library. 10889 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10890 10891 else 10892 # FIXME: insert proper C++ library support 10893 ld_shlibs_CXX=no 10894 fi 10895 ;; 10896 esac 10897 ;; 10898 psos*) 10899 # FIXME: insert proper C++ library support 10900 ld_shlibs_CXX=no 10901 ;; 10902 sunos4*) 10903 case $cc_basename in 10904 CC*) 10905 # Sun C++ 4.x 10906 # FIXME: insert proper C++ library support 10907 ld_shlibs_CXX=no 10908 ;; 10909 lcc*) 10910 # Lucid 10911 # FIXME: insert proper C++ library support 10912 ld_shlibs_CXX=no 10913 ;; 10914 *) 10915 # FIXME: insert proper C++ library support 10916 ld_shlibs_CXX=no 10917 ;; 10918 esac 10919 ;; 10920 solaris*) 10921 case $cc_basename in 10922 CC*) 10923 # Sun C++ 4.2, 5.x and Centerline C++ 10924 archive_cmds_need_lc_CXX=yes 10925 no_undefined_flag_CXX=' -zdefs' 10926 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10927 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10928 $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' 10929 10930 hardcode_libdir_flag_spec_CXX='-R$libdir' 10931 hardcode_shlibpath_var_CXX=no 10932 case $host_os in 10933 solaris2.[0-5] | solaris2.[0-5].*) ;; 10934 *) 10935 # The C++ compiler is used as linker so we must use $wl 10936 # flag to pass the commands to the underlying system 10937 # linker. We must also pass each convience library through 10938 # to the system linker between allextract/defaultextract. 10939 # The C++ compiler will combine linker options so we 10940 # cannot just pass the convience library names through 10941 # without $wl. 10942 # Supported since Solaris 2.6 (maybe 2.5.1?) 10943 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' 10944 ;; 10945 esac 10946 link_all_deplibs_CXX=yes 10947 10948 output_verbose_link_cmd='echo' 10949 10950 # Archives containing C++ object files must be created using 10951 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10952 # necessary to make sure instantiated templates are included 10953 # in the archive. 10954 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10955 ;; 10956 gcx*) 10957 # Green Hills C++ Compiler 10958 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10959 10960 # The C++ compiler must be used to create the archive. 10961 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10962 ;; 10963 *) 10964 # GNU C++ compiler with Solaris linker 10965 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10966 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10967 if $CC --version | grep -v '^2\.7' > /dev/null; then 10968 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10969 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10970 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10971 10972 # Commands to make compiler produce verbose output that lists 10973 # what "hidden" libraries, object files and flags are used when 10974 # linking a shared library. 10975 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10976 else 10977 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10978 # platform. 10979 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10980 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10981 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10982 10983 # Commands to make compiler produce verbose output that lists 10984 # what "hidden" libraries, object files and flags are used when 10985 # linking a shared library. 10986 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10987 fi 10988 10989 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10990 fi 10991 ;; 10992 esac 10993 ;; 10994 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10995 no_undefined_flag_CXX='${wl}-z,text' 10996 archive_cmds_need_lc_CXX=no 10997 hardcode_shlibpath_var_CXX=no 10998 runpath_var='LD_RUN_PATH' 10999 11000 case $cc_basename in 11001 CC*) 11002 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11003 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11004 ;; 11005 *) 11006 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11007 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11008 ;; 11009 esac 11010 ;; 11011 sysv5* | sco3.2v5* | sco5v6*) 11012 # Note: We can NOT use -z defs as we might desire, because we do not 11013 # link with -lc, and that would cause any symbols used from libc to 11014 # always be unresolved, which means just about no library would 11015 # ever link correctly. If we're not using GNU ld we use -z text 11016 # though, which does catch some bad symbols but isn't as heavy-handed 11017 # as -z defs. 11018 # For security reasons, it is highly recommended that you always 11019 # use absolute paths for naming shared libraries, and exclude the 11020 # DT_RUNPATH tag from executables and libraries. But doing so 11021 # requires that you compile everything twice, which is a pain. 11022 # So that behaviour is only enabled if SCOABSPATH is set to a 11023 # non-empty value in the environment. Most likely only useful for 11024 # creating official distributions of packages. 11025 # This is a hack until libtool officially supports absolute path 11026 # names for shared libraries. 11027 no_undefined_flag_CXX='${wl}-z,text' 11028 allow_undefined_flag_CXX='${wl}-z,nodefs' 11029 archive_cmds_need_lc_CXX=no 11030 hardcode_shlibpath_var_CXX=no 11031 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11032 hardcode_libdir_separator_CXX=':' 11033 link_all_deplibs_CXX=yes 11034 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11035 runpath_var='LD_RUN_PATH' 11036 11037 case $cc_basename in 11038 CC*) 11039 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11040 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11041 ;; 11042 *) 11043 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11044 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11045 ;; 11046 esac 11047 ;; 11048 tandem*) 11049 case $cc_basename in 11050 NCC*) 11051 # NonStop-UX NCC 3.20 11052 # FIXME: insert proper C++ library support 11053 ld_shlibs_CXX=no 11054 ;; 11055 *) 11056 # FIXME: insert proper C++ library support 11057 ld_shlibs_CXX=no 11058 ;; 11059 esac 11060 ;; 11061 vxworks*) 11062 # FIXME: insert proper C++ library support 11063 ld_shlibs_CXX=no 11064 ;; 11065 *) 11066 # FIXME: insert proper C++ library support 11067 ld_shlibs_CXX=no 11068 ;; 11069 esac 11070 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11071 echo "${ECHO_T}$ld_shlibs_CXX" >&6 11072 test "$ld_shlibs_CXX" = no && can_build_shared=no 11073 11074 GCC_CXX="$GXX" 11075 LD_CXX="$LD" 11076 11077 11078 cat > conftest.$ac_ext <<EOF 11079 class Foo 11080 { 11081 public: 11082 Foo (void) { a = 0; } 11083 private: 11084 int a; 11085 }; 11086 EOF 11087 11088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11089 (eval $ac_compile) 2>&5 11090 ac_status=$? 11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11092 (exit $ac_status); }; then 11093 # Parse the compiler output and extract the necessary 11094 # objects, libraries and library flags. 11095 11096 # Sentinel used to keep track of whether or not we are before 11097 # the conftest object file. 11098 pre_test_object_deps_done=no 11099 11100 # The `*' in the case matches for architectures that use `case' in 11101 # $output_verbose_cmd can trigger glob expansion during the loop 11102 # eval without this substitution. 11103 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11104 11105 for p in `eval $output_verbose_link_cmd`; do 11106 case $p in 11107 11108 -L* | -R* | -l*) 11109 # Some compilers place space between "-{L,R}" and the path. 11110 # Remove the space. 11111 if test $p = "-L" \ 11112 || test $p = "-R"; then 11113 prev=$p 11114 continue 11115 else 11116 prev= 11117 fi 11118 11119 if test "$pre_test_object_deps_done" = no; then 11120 case $p in 11121 -L* | -R*) 11122 # Internal compiler library paths should come after those 11123 # provided the user. The postdeps already come after the 11124 # user supplied libs so there is no need to process them. 11125 if test -z "$compiler_lib_search_path_CXX"; then 11126 compiler_lib_search_path_CXX="${prev}${p}" 11127 else 11128 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11129 fi 11130 ;; 11131 # The "-l" case would never come before the object being 11132 # linked, so don't bother handling this case. 11133 esac 11134 else 11135 if test -z "$postdeps_CXX"; then 11136 postdeps_CXX="${prev}${p}" 11137 else 11138 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11139 fi 11140 fi 11141 ;; 11142 11143 *.$objext) 11144 # This assumes that the test object file only shows up 11145 # once in the compiler output. 11146 if test "$p" = "conftest.$objext"; then 11147 pre_test_object_deps_done=yes 11148 continue 11149 fi 11150 11151 if test "$pre_test_object_deps_done" = no; then 11152 if test -z "$predep_objects_CXX"; then 11153 predep_objects_CXX="$p" 11154 else 11155 predep_objects_CXX="$predep_objects_CXX $p" 11156 fi 11157 else 11158 if test -z "$postdep_objects_CXX"; then 11159 postdep_objects_CXX="$p" 11160 else 11161 postdep_objects_CXX="$postdep_objects_CXX $p" 11162 fi 11163 fi 11164 ;; 11165 11166 *) ;; # Ignore the rest. 11167 11168 esac 11169 done 11170 11171 # Clean up. 11172 rm -f a.out a.exe 11173 else 11174 echo "libtool.m4: error: problem compiling CXX test program" 11175 fi 11176 11177 $rm -f confest.$objext 11178 11179 # PORTME: override above test on systems where it is broken 11180 case $host_os in 11181 interix3*) 11182 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11183 # hack all around it, let's just trust "g++" to DTRT. 11184 predep_objects_CXX= 11185 postdep_objects_CXX= 11186 postdeps_CXX= 11187 ;; 11188 11189 solaris*) 11190 case $cc_basename in 11191 CC*) 11192 # Adding this requires a known-good setup of shared libraries for 11193 # Sun compiler versions before 5.6, else PIC objects from an old 11194 # archive will be linked into the output, leading to subtle bugs. 11195 postdeps_CXX='-lCstd -lCrun' 11196 ;; 11197 esac 11198 ;; 11199 esac 11200 11201 11202 case " $postdeps_CXX " in 11203 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 11204 esac 11205 11206 lt_prog_compiler_wl_CXX= 11207 lt_prog_compiler_pic_CXX= 11208 lt_prog_compiler_static_CXX= 11209 11210 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11211 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11212 11213 # C++ specific cases for pic, static, wl, etc. 11214 if test "$GXX" = yes; then 11215 lt_prog_compiler_wl_CXX='-Wl,' 11216 lt_prog_compiler_static_CXX='-static' 11217 11218 case $host_os in 11219 aix*) 11220 # All AIX code is PIC. 11221 if test "$host_cpu" = ia64; then 11222 # AIX 5 now supports IA64 processor 11223 lt_prog_compiler_static_CXX='-Bstatic' 11224 fi 11225 ;; 11226 amigaos*) 11227 # FIXME: we need at least 68020 code to build shared libraries, but 11228 # adding the `-m68020' flag to GCC prevents building anything better, 11229 # like `-m68040'. 11230 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11231 ;; 11232 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11233 # PIC is the default for these OSes. 11234 ;; 11235 mingw* | os2* | pw32*) 11236 # This hack is so that the source file can tell whether it is being 11237 # built for inclusion in a dll (and should export symbols for example). 11238 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11239 ;; 11240 darwin* | rhapsody*) 11241 # PIC is the default on this platform 11242 # Common symbols not allowed in MH_DYLIB files 11243 lt_prog_compiler_pic_CXX='-fno-common' 11244 ;; 11245 *djgpp*) 11246 # DJGPP does not support shared libraries at all 11247 lt_prog_compiler_pic_CXX= 11248 ;; 11249 interix3*) 11250 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11251 # Instead, we relocate shared libraries at runtime. 11252 ;; 11253 sysv4*MP*) 11254 if test -d /usr/nec; then 11255 lt_prog_compiler_pic_CXX=-Kconform_pic 11256 fi 11257 ;; 11258 hpux*) 11259 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11260 # not for PA HP-UX. 11261 case $host_cpu in 11262 hppa*64*|ia64*) 11263 ;; 11264 *) 11265 lt_prog_compiler_pic_CXX='-fPIC' 11266 ;; 11267 esac 11268 ;; 11269 *) 11270 lt_prog_compiler_pic_CXX='-fPIC' 11271 ;; 11272 esac 11273 else 11274 case $host_os in 11275 aix4* | aix5*) 11276 # All AIX code is PIC. 11277 if test "$host_cpu" = ia64; then 11278 # AIX 5 now supports IA64 processor 11279 lt_prog_compiler_static_CXX='-Bstatic' 11280 else 11281 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11282 fi 11283 ;; 11284 chorus*) 11285 case $cc_basename in 11286 cxch68*) 11287 # Green Hills C++ Compiler 11288 # _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" 11289 ;; 11290 esac 11291 ;; 11292 darwin*) 11293 # PIC is the default on this platform 11294 # Common symbols not allowed in MH_DYLIB files 11295 case $cc_basename in 11296 xlc*) 11297 lt_prog_compiler_pic_CXX='-qnocommon' 11298 lt_prog_compiler_wl_CXX='-Wl,' 11299 ;; 11300 esac 11301 ;; 11302 dgux*) 11303 case $cc_basename in 11304 ec++*) 11305 lt_prog_compiler_pic_CXX='-KPIC' 11306 ;; 11307 ghcx*) 11308 # Green Hills C++ Compiler 11309 lt_prog_compiler_pic_CXX='-pic' 11310 ;; 11311 *) 11312 ;; 11313 esac 11314 ;; 11315 freebsd* | kfreebsd*-gnu | dragonfly*) 11316 # FreeBSD uses GNU C++ 11317 ;; 11318 hpux9* | hpux10* | hpux11*) 11319 case $cc_basename in 11320 CC*) 11321 lt_prog_compiler_wl_CXX='-Wl,' 11322 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11323 if test "$host_cpu" != ia64; then 11324 lt_prog_compiler_pic_CXX='+Z' 11325 fi 11326 ;; 11327 aCC*) 11328 lt_prog_compiler_wl_CXX='-Wl,' 11329 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11330 case $host_cpu in 11331 hppa*64*|ia64*) 11332 # +Z the default 11333 ;; 11334 *) 11335 lt_prog_compiler_pic_CXX='+Z' 11336 ;; 11337 esac 11338 ;; 11339 *) 11340 ;; 11341 esac 11342 ;; 11343 interix*) 11344 # This is c89, which is MS Visual C++ (no shared libs) 11345 # Anyone wants to do a port? 11346 ;; 11347 irix5* | irix6* | nonstopux*) 11348 case $cc_basename in 11349 CC*) 11350 lt_prog_compiler_wl_CXX='-Wl,' 11351 lt_prog_compiler_static_CXX='-non_shared' 11352 # CC pic flag -KPIC is the default. 11353 ;; 11354 *) 11355 ;; 11356 esac 11357 ;; 11358 linux*) 11359 case $cc_basename in 11360 KCC*) 11361 # KAI C++ Compiler 11362 lt_prog_compiler_wl_CXX='--backend -Wl,' 11363 lt_prog_compiler_pic_CXX='-fPIC' 11364 ;; 11365 icpc* | ecpc*) 11366 # Intel C++ 11367 lt_prog_compiler_wl_CXX='-Wl,' 11368 lt_prog_compiler_pic_CXX='-KPIC' 11369 lt_prog_compiler_static_CXX='-static' 11370 ;; 11371 pgCC*) 11372 # Portland Group C++ compiler. 11373 lt_prog_compiler_wl_CXX='-Wl,' 11374 lt_prog_compiler_pic_CXX='-fpic' 11375 lt_prog_compiler_static_CXX='-Bstatic' 11376 ;; 11377 cxx*) 11378 # Compaq C++ 11379 # Make sure the PIC flag is empty. It appears that all Alpha 11380 # Linux and Compaq Tru64 Unix objects are PIC. 11381 lt_prog_compiler_pic_CXX= 11382 lt_prog_compiler_static_CXX='-non_shared' 11383 ;; 11384 *) 11385 ;; 11386 esac 11387 ;; 11388 lynxos*) 11389 ;; 11390 m88k*) 11391 ;; 11392 mvs*) 11393 case $cc_basename in 11394 cxx*) 11395 lt_prog_compiler_pic_CXX='-W c,exportall' 11396 ;; 11397 *) 11398 ;; 11399 esac 11400 ;; 11401 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 11402 ;; 11403 osf3* | osf4* | osf5*) 11404 case $cc_basename in 11405 KCC*) 11406 lt_prog_compiler_wl_CXX='--backend -Wl,' 11407 ;; 11408 RCC*) 11409 # Rational C++ 2.4.1 11410 lt_prog_compiler_pic_CXX='-pic' 11411 ;; 11412 cxx*) 11413 # Digital/Compaq C++ 11414 lt_prog_compiler_wl_CXX='-Wl,' 11415 # Make sure the PIC flag is empty. It appears that all Alpha 11416 # Linux and Compaq Tru64 Unix objects are PIC. 11417 lt_prog_compiler_pic_CXX= 11418 lt_prog_compiler_static_CXX='-non_shared' 11419 ;; 11420 *) 11421 ;; 11422 esac 11423 ;; 11424 psos*) 11425 ;; 11426 solaris*) 11427 case $cc_basename in 11428 CC*) 11429 # Sun C++ 4.2, 5.x and Centerline C++ 11430 lt_prog_compiler_pic_CXX='-KPIC' 11431 lt_prog_compiler_static_CXX='-Bstatic' 11432 lt_prog_compiler_wl_CXX='-Qoption ld ' 11433 ;; 11434 gcx*) 11435 # Green Hills C++ Compiler 11436 lt_prog_compiler_pic_CXX='-PIC' 11437 ;; 11438 *) 11439 ;; 11440 esac 11441 ;; 11442 sunos4*) 11443 case $cc_basename in 11444 CC*) 11445 # Sun C++ 4.x 11446 lt_prog_compiler_pic_CXX='-pic' 11447 lt_prog_compiler_static_CXX='-Bstatic' 11448 ;; 11449 lcc*) 11450 # Lucid 11451 lt_prog_compiler_pic_CXX='-pic' 11452 ;; 11453 *) 11454 ;; 11455 esac 11456 ;; 11457 tandem*) 11458 case $cc_basename in 11459 NCC*) 11460 # NonStop-UX NCC 3.20 11461 lt_prog_compiler_pic_CXX='-KPIC' 11462 ;; 11463 *) 11464 ;; 11465 esac 11466 ;; 11467 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11468 case $cc_basename in 11469 CC*) 11470 lt_prog_compiler_wl_CXX='-Wl,' 11471 lt_prog_compiler_pic_CXX='-KPIC' 11472 lt_prog_compiler_static_CXX='-Bstatic' 11473 ;; 11474 esac 11475 ;; 11476 vxworks*) 11477 ;; 11478 *) 11479 lt_prog_compiler_can_build_shared_CXX=no 11480 ;; 11481 esac 11482 fi 11483 11484 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11485 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11486 11487 # 11488 # Check to make sure the PIC flag actually works. 11489 # 11490 if test -n "$lt_prog_compiler_pic_CXX"; then 11491 11492 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11493 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11494 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11495 echo $ECHO_N "(cached) $ECHO_C" >&6 11496 else 11497 lt_prog_compiler_pic_works_CXX=no 11498 ac_outfile=conftest.$ac_objext 11499 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11500 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11501 # Insert the option either (1) after the last *FLAGS variable, or 11502 # (2) before a word containing "conftest.", or (3) at the end. 11503 # Note that $ac_compile itself does not contain backslashes and begins 11504 # with a dollar sign (not a hyphen), so the echo should work correctly. 11505 # The option is referenced via a variable to avoid confusing sed. 11506 lt_compile=`echo "$ac_compile" | $SED \ 11507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11509 -e 's:$: $lt_compiler_flag:'` 11510 (eval echo "\"\$as_me:11510: $lt_compile\"" >&5) 11511 (eval "$lt_compile" 2>conftest.err) 11512 ac_status=$? 11513 cat conftest.err >&5 11514 echo "$as_me:11514: \$? = $ac_status" >&5 11515 if (exit $ac_status) && test -s "$ac_outfile"; then 11516 # The compiler can only warn and ignore the option if not recognized 11517 # So say no if there are warnings other than the usual output. 11518 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 11519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11520 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11521 lt_prog_compiler_pic_works_CXX=yes 11522 fi 11523 fi 11524 $rm conftest* 11525 11526 fi 11527 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11528 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11529 11530 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11531 case $lt_prog_compiler_pic_CXX in 11532 "" | " "*) ;; 11533 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11534 esac 11535 else 11536 lt_prog_compiler_pic_CXX= 11537 lt_prog_compiler_can_build_shared_CXX=no 11538 fi 11539 11540 fi 11541 case $host_os in 11542 # For platforms which do not support PIC, -DPIC is meaningless: 11543 *djgpp*) 11544 lt_prog_compiler_pic_CXX= 11545 ;; 11546 *) 11547 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11548 ;; 11549 esac 11550 11551 # 11552 # Check to make sure the static flag actually works. 11553 # 11554 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 11555 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11556 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 11557 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 11558 echo $ECHO_N "(cached) $ECHO_C" >&6 11559 else 11560 lt_prog_compiler_static_works_CXX=no 11561 save_LDFLAGS="$LDFLAGS" 11562 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11563 printf "$lt_simple_link_test_code" > conftest.$ac_ext 11564 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11565 # The linker can only warn and ignore the option if not recognized 11566 # So say no if there are warnings 11567 if test -s conftest.err; then 11568 # Append any errors to the config.log. 11569 cat conftest.err 1>&5 11570 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 11571 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11572 if diff conftest.exp conftest.er2 >/dev/null; then 11573 lt_prog_compiler_static_works_CXX=yes 11574 fi 11575 else 11576 lt_prog_compiler_static_works_CXX=yes 11577 fi 11578 fi 11579 $rm conftest* 11580 LDFLAGS="$save_LDFLAGS" 11581 11582 fi 11583 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 11584 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 11585 11586 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 11587 : 11588 else 11589 lt_prog_compiler_static_CXX= 11590 fi 11591 11592 11593 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11594 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11595 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11596 echo $ECHO_N "(cached) $ECHO_C" >&6 11597 else 11598 lt_cv_prog_compiler_c_o_CXX=no 11599 $rm -r conftest 2>/dev/null 11600 mkdir conftest 11601 cd conftest 11602 mkdir out 11603 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11604 11605 lt_compiler_flag="-o out/conftest2.$ac_objext" 11606 # Insert the option either (1) after the last *FLAGS variable, or 11607 # (2) before a word containing "conftest.", or (3) at the end. 11608 # Note that $ac_compile itself does not contain backslashes and begins 11609 # with a dollar sign (not a hyphen), so the echo should work correctly. 11610 lt_compile=`echo "$ac_compile" | $SED \ 11611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11613 -e 's:$: $lt_compiler_flag:'` 11614 (eval echo "\"\$as_me:11614: $lt_compile\"" >&5) 11615 (eval "$lt_compile" 2>out/conftest.err) 11616 ac_status=$? 11617 cat out/conftest.err >&5 11618 echo "$as_me:11618: \$? = $ac_status" >&5 11619 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11620 then 11621 # The compiler can only warn and ignore the option if not recognized 11622 # So say no if there are warnings 11623 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 11624 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11625 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11626 lt_cv_prog_compiler_c_o_CXX=yes 11627 fi 11628 fi 11629 chmod u+w . 2>&5 11630 $rm conftest* 11631 # SGI C++ compiler will create directory out/ii_files/ for 11632 # template instantiation 11633 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11634 $rm out/* && rmdir out 11635 cd .. 11636 rmdir conftest 11637 $rm conftest* 11638 11639 fi 11640 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11641 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11642 11643 11644 hard_links="nottested" 11645 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11646 # do not overwrite the value of need_locks provided by the user 11647 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11648 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11649 hard_links=yes 11650 $rm conftest* 11651 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11652 touch conftest.a 11653 ln conftest.a conftest.b 2>&5 || hard_links=no 11654 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11655 echo "$as_me:$LINENO: result: $hard_links" >&5 11656 echo "${ECHO_T}$hard_links" >&6 11657 if test "$hard_links" = no; then 11658 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11659 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11660 need_locks=warn 11661 fi 11662 else 11663 need_locks=no 11664 fi 11665 11666 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11667 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11668 11669 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11670 case $host_os in 11671 aix4* | aix5*) 11672 # If we're using GNU nm, then we don't want the "-C" option. 11673 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11674 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11675 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' 11676 else 11677 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' 11678 fi 11679 ;; 11680 pw32*) 11681 export_symbols_cmds_CXX="$ltdll_cmds" 11682 ;; 11683 cygwin* | mingw*) 11684 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' 11685 ;; 11686 kfreebsd*-gnu) 11687 link_all_deplibs_CXX=no 11688 ;; 11689 linux*) 11690 link_all_deplibs_CXX=no 11691 ;; 11692 *) 11693 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11694 ;; 11695 esac 11696 11697 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11698 echo "${ECHO_T}$ld_shlibs_CXX" >&6 11699 test "$ld_shlibs_CXX" = no && can_build_shared=no 11700 11701 # 11702 # Do we need to explicitly link libc? 11703 # 11704 case "x$archive_cmds_need_lc_CXX" in 11705 x|xyes) 11706 # Assume -lc should be added 11707 archive_cmds_need_lc_CXX=yes 11708 11709 if test "$enable_shared" = yes && test "$GCC" = yes; then 11710 case $archive_cmds_CXX in 11711 *'~'*) 11712 # FIXME: we may have to deal with multi-command sequences. 11713 ;; 11714 '$CC '*) 11715 # Test whether the compiler implicitly links with -lc since on some 11716 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11717 # to ld, don't add -lc before -lgcc. 11718 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11719 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11720 $rm conftest* 11721 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11722 11723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11724 (eval $ac_compile) 2>&5 11725 ac_status=$? 11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11727 (exit $ac_status); } 2>conftest.err; then 11728 soname=conftest 11729 lib=conftest 11730 libobjs=conftest.$ac_objext 11731 deplibs= 11732 wl=$lt_prog_compiler_wl_CXX 11733 pic_flag=$lt_prog_compiler_pic_CXX 11734 compiler_flags=-v 11735 linker_flags=-v 11736 verstring= 11737 output_objdir=. 11738 libname=conftest 11739 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11740 allow_undefined_flag_CXX= 11741 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11742 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11743 ac_status=$? 11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11745 (exit $ac_status); } 11746 then 11747 archive_cmds_need_lc_CXX=no 11748 else 11749 archive_cmds_need_lc_CXX=yes 11750 fi 11751 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11752 else 11753 cat conftest.err 1>&5 11754 fi 11755 $rm conftest* 11756 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11757 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11758 ;; 11759 esac 11760 fi 11761 ;; 11762 esac 11763 11764 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11765 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11766 library_names_spec= 11767 libname_spec='lib$name' 11768 soname_spec= 11769 shrext_cmds=".so" 11770 postinstall_cmds= 11771 postuninstall_cmds= 11772 finish_cmds= 11773 finish_eval= 11774 shlibpath_var= 11775 shlibpath_overrides_runpath=unknown 11776 version_type=none 11777 dynamic_linker="$host_os ld.so" 11778 sys_lib_dlsearch_path_spec="/lib /usr/lib" 11779 if test "$GCC" = yes; then 11780 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11781 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11782 # if the path contains ";" then we assume it to be the separator 11783 # otherwise default to the standard path separator (i.e. ":") - it is 11784 # assumed that no part of a normal pathname contains ";" but that should 11785 # okay in the real world where ";" in dirpaths is itself problematic. 11786 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11787 else 11788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11789 fi 11790 else 11791 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11792 fi 11793 need_lib_prefix=unknown 11794 hardcode_into_libs=no 11795 11796 # when you set need_version to no, make sure it does not cause -set_version 11797 # flags to be left without arguments 11798 need_version=unknown 11799 11800 case $host_os in 11801 aix3*) 11802 version_type=linux 11803 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11804 shlibpath_var=LIBPATH 11805 11806 # AIX 3 has no versioning support, so we append a major version to the name. 11807 soname_spec='${libname}${release}${shared_ext}$major' 11808 ;; 11809 11810 aix4* | aix5*) 11811 version_type=linux 11812 need_lib_prefix=no 11813 need_version=no 11814 hardcode_into_libs=yes 11815 if test "$host_cpu" = ia64; then 11816 # AIX 5 supports IA64 11817 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11818 shlibpath_var=LD_LIBRARY_PATH 11819 else 11820 # With GCC up to 2.95.x, collect2 would create an import file 11821 # for dependence libraries. The import file would start with 11822 # the line `#! .'. This would cause the generated library to 11823 # depend on `.', always an invalid library. This was fixed in 11824 # development snapshots of GCC prior to 3.0. 11825 case $host_os in 11826 aix4 | aix4.[01] | aix4.[01].*) 11827 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11828 echo ' yes ' 11829 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11830 : 11831 else 11832 can_build_shared=no 11833 fi 11834 ;; 11835 esac 11836 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11837 # soname into executable. Probably we can add versioning support to 11838 # collect2, so additional links can be useful in future. 11839 if test "$aix_use_runtimelinking" = yes; then 11840 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11841 # instead of lib<name>.a to let people know that these are not 11842 # typical AIX shared libraries. 11843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11844 else 11845 # We preserve .a as extension for shared libraries through AIX4.2 11846 # and later when we are not doing run time linking. 11847 library_names_spec='${libname}${release}.a $libname.a' 11848 soname_spec='${libname}${release}${shared_ext}$major' 11849 fi 11850 shlibpath_var=LIBPATH 11851 fi 11852 ;; 11853 11854 amigaos*) 11855 library_names_spec='$libname.ixlibrary $libname.a' 11856 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11857 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' 11858 ;; 11859 11860 beos*) 11861 library_names_spec='${libname}${shared_ext}' 11862 dynamic_linker="$host_os ld.so" 11863 shlibpath_var=LIBRARY_PATH 11864 ;; 11865 11866 bsdi[45]*) 11867 version_type=linux 11868 need_version=no 11869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11870 soname_spec='${libname}${release}${shared_ext}$major' 11871 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11872 shlibpath_var=LD_LIBRARY_PATH 11873 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11874 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11875 # the default ld.so.conf also contains /usr/contrib/lib and 11876 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11877 # libtool to hard-code these into programs 11878 ;; 11879 11880 cygwin* | mingw* | pw32*) 11881 version_type=windows 11882 shrext_cmds=".dll" 11883 need_version=no 11884 need_lib_prefix=no 11885 11886 case $GCC,$host_os in 11887 yes,cygwin* | yes,mingw* | yes,pw32*) 11888 library_names_spec='$libname.dll.a' 11889 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11890 postinstall_cmds='base_file=`basename \${file}`~ 11891 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11892 dldir=$destdir/`dirname \$dlpath`~ 11893 test -d \$dldir || mkdir -p \$dldir~ 11894 $install_prog $dir/$dlname \$dldir/$dlname~ 11895 chmod a+x \$dldir/$dlname' 11896 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11897 dlpath=$dir/\$dldll~ 11898 $rm \$dlpath' 11899 shlibpath_overrides_runpath=yes 11900 11901 case $host_os in 11902 cygwin*) 11903 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11904 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11905 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11906 ;; 11907 mingw*) 11908 # MinGW DLLs use traditional 'lib' prefix 11909 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11910 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11911 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11912 # It is most probably a Windows format PATH printed by 11913 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11914 # path with ; separators, and with drive letters. We can handle the 11915 # drive letters (cygwin fileutils understands them), so leave them, 11916 # especially as we might pass files found there to a mingw objdump, 11917 # which wouldn't understand a cygwinified path. Ahh. 11918 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11919 else 11920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11921 fi 11922 ;; 11923 pw32*) 11924 # pw32 DLLs use 'pw' prefix rather than 'lib' 11925 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11926 ;; 11927 esac 11928 ;; 11929 11930 *) 11931 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11932 ;; 11933 esac 11934 dynamic_linker='Win32 ld.exe' 11935 # FIXME: first we should search . and the directory the executable is in 11936 shlibpath_var=PATH 11937 ;; 11938 11939 darwin* | rhapsody*) 11940 dynamic_linker="$host_os dyld" 11941 version_type=darwin 11942 need_lib_prefix=no 11943 need_version=no 11944 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11945 soname_spec='${libname}${release}${major}$shared_ext' 11946 shlibpath_overrides_runpath=yes 11947 shlibpath_var=DYLD_LIBRARY_PATH 11948 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11949 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11950 if test "$GCC" = yes; then 11951 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"` 11952 else 11953 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11954 fi 11955 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11956 ;; 11957 11958 dgux*) 11959 version_type=linux 11960 need_lib_prefix=no 11961 need_version=no 11962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11963 soname_spec='${libname}${release}${shared_ext}$major' 11964 shlibpath_var=LD_LIBRARY_PATH 11965 ;; 11966 11967 freebsd1*) 11968 dynamic_linker=no 11969 ;; 11970 11971 kfreebsd*-gnu) 11972 version_type=linux 11973 need_lib_prefix=no 11974 need_version=no 11975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11976 soname_spec='${libname}${release}${shared_ext}$major' 11977 shlibpath_var=LD_LIBRARY_PATH 11978 shlibpath_overrides_runpath=no 11979 hardcode_into_libs=yes 11980 dynamic_linker='GNU ld.so' 11981 ;; 11982 11983 freebsd* | dragonfly*) 11984 # DragonFly does not have aout. When/if they implement a new 11985 # versioning mechanism, adjust this. 11986 if test -x /usr/bin/objformat; then 11987 objformat=`/usr/bin/objformat` 11988 else 11989 case $host_os in 11990 freebsd[123]*) objformat=aout ;; 11991 *) objformat=elf ;; 11992 esac 11993 fi 11994 version_type=freebsd-$objformat 11995 case $version_type in 11996 freebsd-elf*) 11997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11998 need_version=no 11999 need_lib_prefix=no 12000 ;; 12001 freebsd-*) 12002 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12003 need_version=yes 12004 ;; 12005 esac 12006 shlibpath_var=LD_LIBRARY_PATH 12007 case $host_os in 12008 freebsd2*) 12009 shlibpath_overrides_runpath=yes 12010 ;; 12011 freebsd3.[01]* | freebsdelf3.[01]*) 12012 shlibpath_overrides_runpath=yes 12013 hardcode_into_libs=yes 12014 ;; 12015 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12016 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12017 shlibpath_overrides_runpath=no 12018 hardcode_into_libs=yes 12019 ;; 12020 freebsd*) # from 4.6 on 12021 shlibpath_overrides_runpath=yes 12022 hardcode_into_libs=yes 12023 ;; 12024 esac 12025 ;; 12026 12027 gnu*) 12028 version_type=linux 12029 need_lib_prefix=no 12030 need_version=no 12031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12032 soname_spec='${libname}${release}${shared_ext}$major' 12033 shlibpath_var=LD_LIBRARY_PATH 12034 hardcode_into_libs=yes 12035 ;; 12036 12037 hpux9* | hpux10* | hpux11*) 12038 # Give a soname corresponding to the major version so that dld.sl refuses to 12039 # link against other versions. 12040 version_type=sunos 12041 need_lib_prefix=no 12042 need_version=no 12043 case $host_cpu in 12044 ia64*) 12045 shrext_cmds='.so' 12046 hardcode_into_libs=yes 12047 dynamic_linker="$host_os dld.so" 12048 shlibpath_var=LD_LIBRARY_PATH 12049 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12051 soname_spec='${libname}${release}${shared_ext}$major' 12052 if test "X$HPUX_IA64_MODE" = X32; then 12053 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12054 else 12055 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12056 fi 12057 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12058 ;; 12059 hppa*64*) 12060 shrext_cmds='.sl' 12061 hardcode_into_libs=yes 12062 dynamic_linker="$host_os dld.sl" 12063 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12064 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12066 soname_spec='${libname}${release}${shared_ext}$major' 12067 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12068 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12069 ;; 12070 *) 12071 shrext_cmds='.sl' 12072 dynamic_linker="$host_os dld.sl" 12073 shlibpath_var=SHLIB_PATH 12074 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12076 soname_spec='${libname}${release}${shared_ext}$major' 12077 ;; 12078 esac 12079 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12080 postinstall_cmds='chmod 555 $lib' 12081 ;; 12082 12083 interix3*) 12084 version_type=linux 12085 need_lib_prefix=no 12086 need_version=no 12087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12088 soname_spec='${libname}${release}${shared_ext}$major' 12089 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12090 shlibpath_var=LD_LIBRARY_PATH 12091 shlibpath_overrides_runpath=no 12092 hardcode_into_libs=yes 12093 ;; 12094 12095 irix5* | irix6* | nonstopux*) 12096 case $host_os in 12097 nonstopux*) version_type=nonstopux ;; 12098 *) 12099 if test "$lt_cv_prog_gnu_ld" = yes; then 12100 version_type=linux 12101 else 12102 version_type=irix 12103 fi ;; 12104 esac 12105 need_lib_prefix=no 12106 need_version=no 12107 soname_spec='${libname}${release}${shared_ext}$major' 12108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12109 case $host_os in 12110 irix5* | nonstopux*) 12111 libsuff= shlibsuff= 12112 ;; 12113 *) 12114 case $LD in # libtool.m4 will add one of these switches to LD 12115 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12116 libsuff= shlibsuff= libmagic=32-bit;; 12117 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12118 libsuff=32 shlibsuff=N32 libmagic=N32;; 12119 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12120 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12121 *) libsuff= shlibsuff= libmagic=never-match;; 12122 esac 12123 ;; 12124 esac 12125 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12126 shlibpath_overrides_runpath=no 12127 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12128 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12129 hardcode_into_libs=yes 12130 ;; 12131 12132 # No shared lib support for Linux oldld, aout, or coff. 12133 linux*oldld* | linux*aout* | linux*coff*) 12134 dynamic_linker=no 12135 ;; 12136 12137 # This must be Linux ELF. 12138 linux*) 12139 version_type=linux 12140 need_lib_prefix=no 12141 need_version=no 12142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12143 soname_spec='${libname}${release}${shared_ext}$major' 12144 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12145 shlibpath_var=LD_LIBRARY_PATH 12146 shlibpath_overrides_runpath=no 12147 # This implies no fast_install, which is unacceptable. 12148 # Some rework will be needed to allow for fast_install 12149 # before this can be enabled. 12150 hardcode_into_libs=yes 12151 12152 # Append ld.so.conf contents to the search path 12153 if test -f /etc/ld.so.conf; then 12154 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' ' '` 12155 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12156 fi 12157 12158 # We used to test for /lib/ld.so.1 and disable shared libraries on 12159 # powerpc, because MkLinux only supported shared libraries with the 12160 # GNU dynamic linker. Since this was broken with cross compilers, 12161 # most powerpc-linux boxes support dynamic linking these days and 12162 # people can always --disable-shared, the test was removed, and we 12163 # assume the GNU/Linux dynamic linker is in use. 12164 dynamic_linker='GNU/Linux ld.so' 12165 ;; 12166 12167 netbsdelf*-gnu) 12168 version_type=linux 12169 need_lib_prefix=no 12170 need_version=no 12171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12172 soname_spec='${libname}${release}${shared_ext}$major' 12173 shlibpath_var=LD_LIBRARY_PATH 12174 shlibpath_overrides_runpath=no 12175 hardcode_into_libs=yes 12176 dynamic_linker='NetBSD ld.elf_so' 12177 ;; 12178 12179 knetbsd*-gnu) 12180 version_type=linux 12181 need_lib_prefix=no 12182 need_version=no 12183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12184 soname_spec='${libname}${release}${shared_ext}$major' 12185 shlibpath_var=LD_LIBRARY_PATH 12186 shlibpath_overrides_runpath=no 12187 hardcode_into_libs=yes 12188 dynamic_linker='GNU ld.so' 12189 ;; 12190 12191 netbsd*) 12192 version_type=sunos 12193 need_lib_prefix=no 12194 need_version=no 12195 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12198 dynamic_linker='NetBSD (a.out) ld.so' 12199 else 12200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12201 soname_spec='${libname}${release}${shared_ext}$major' 12202 dynamic_linker='NetBSD ld.elf_so' 12203 fi 12204 shlibpath_var=LD_LIBRARY_PATH 12205 shlibpath_overrides_runpath=yes 12206 hardcode_into_libs=yes 12207 ;; 12208 12209 newsos6) 12210 version_type=linux 12211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12212 shlibpath_var=LD_LIBRARY_PATH 12213 shlibpath_overrides_runpath=yes 12214 ;; 12215 12216 nto-qnx*) 12217 version_type=linux 12218 need_lib_prefix=no 12219 need_version=no 12220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12221 soname_spec='${libname}${release}${shared_ext}$major' 12222 shlibpath_var=LD_LIBRARY_PATH 12223 shlibpath_overrides_runpath=yes 12224 ;; 12225 12226 openbsd*) 12227 version_type=sunos 12228 sys_lib_dlsearch_path_spec="/usr/lib" 12229 need_lib_prefix=no 12230 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12231 case $host_os in 12232 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12233 *) need_version=no ;; 12234 esac 12235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12237 shlibpath_var=LD_LIBRARY_PATH 12238 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12239 case $host_os in 12240 openbsd2.[89] | openbsd2.[89].*) 12241 shlibpath_overrides_runpath=no 12242 ;; 12243 *) 12244 shlibpath_overrides_runpath=yes 12245 ;; 12246 esac 12247 else 12248 shlibpath_overrides_runpath=yes 12249 fi 12250 ;; 12251 12252 os2*) 12253 libname_spec='$name' 12254 shrext_cmds=".dll" 12255 need_lib_prefix=no 12256 library_names_spec='$libname${shared_ext} $libname.a' 12257 dynamic_linker='OS/2 ld.exe' 12258 shlibpath_var=LIBPATH 12259 ;; 12260 12261 osf3* | osf4* | osf5*) 12262 version_type=osf 12263 need_lib_prefix=no 12264 need_version=no 12265 soname_spec='${libname}${release}${shared_ext}$major' 12266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12267 shlibpath_var=LD_LIBRARY_PATH 12268 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12269 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12270 ;; 12271 12272 solaris*) 12273 version_type=linux 12274 need_lib_prefix=no 12275 need_version=no 12276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12277 soname_spec='${libname}${release}${shared_ext}$major' 12278 shlibpath_var=LD_LIBRARY_PATH 12279 shlibpath_overrides_runpath=yes 12280 hardcode_into_libs=yes 12281 # ldd complains unless libraries are executable 12282 postinstall_cmds='chmod +x $lib' 12283 ;; 12284 12285 sunos4*) 12286 version_type=sunos 12287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12288 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12289 shlibpath_var=LD_LIBRARY_PATH 12290 shlibpath_overrides_runpath=yes 12291 if test "$with_gnu_ld" = yes; then 12292 need_lib_prefix=no 12293 fi 12294 need_version=yes 12295 ;; 12296 12297 sysv4 | sysv4.3*) 12298 version_type=linux 12299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12300 soname_spec='${libname}${release}${shared_ext}$major' 12301 shlibpath_var=LD_LIBRARY_PATH 12302 case $host_vendor in 12303 sni) 12304 shlibpath_overrides_runpath=no 12305 need_lib_prefix=no 12306 export_dynamic_flag_spec='${wl}-Blargedynsym' 12307 runpath_var=LD_RUN_PATH 12308 ;; 12309 siemens) 12310 need_lib_prefix=no 12311 ;; 12312 motorola) 12313 need_lib_prefix=no 12314 need_version=no 12315 shlibpath_overrides_runpath=no 12316 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12317 ;; 12318 esac 12319 ;; 12320 12321 sysv4*MP*) 12322 if test -d /usr/nec ;then 12323 version_type=linux 12324 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12325 soname_spec='$libname${shared_ext}.$major' 12326 shlibpath_var=LD_LIBRARY_PATH 12327 fi 12328 ;; 12329 12330 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12331 version_type=freebsd-elf 12332 need_lib_prefix=no 12333 need_version=no 12334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12335 soname_spec='${libname}${release}${shared_ext}$major' 12336 shlibpath_var=LD_LIBRARY_PATH 12337 hardcode_into_libs=yes 12338 if test "$with_gnu_ld" = yes; then 12339 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12340 shlibpath_overrides_runpath=no 12341 else 12342 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12343 shlibpath_overrides_runpath=yes 12344 case $host_os in 12345 sco3.2v5*) 12346 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12347 ;; 12348 esac 12349 fi 12350 sys_lib_dlsearch_path_spec='/usr/lib' 12351 ;; 12352 12353 uts4*) 12354 version_type=linux 12355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12356 soname_spec='${libname}${release}${shared_ext}$major' 12357 shlibpath_var=LD_LIBRARY_PATH 12358 ;; 12359 12360 *) 12361 dynamic_linker=no 12362 ;; 12363 esac 12364 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12365 echo "${ECHO_T}$dynamic_linker" >&6 12366 test "$dynamic_linker" = no && can_build_shared=no 12367 12368 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12369 if test "$GCC" = yes; then 12370 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12371 fi 12372 12373 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12374 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12375 hardcode_action_CXX= 12376 if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12377 test -n "$runpath_var_CXX" || \ 12378 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12379 12380 # We can hardcode non-existant directories. 12381 if test "$hardcode_direct_CXX" != no && 12382 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12383 # have to relink, otherwise we might link with an installed library 12384 # when we should be linking with a yet-to-be-installed one 12385 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12386 test "$hardcode_minus_L_CXX" != no; then 12387 # Linking always hardcodes the temporary library directory. 12388 hardcode_action_CXX=relink 12389 else 12390 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12391 hardcode_action_CXX=immediate 12392 fi 12393 else 12394 # We cannot hardcode anything, or else we can only hardcode existing 12395 # directories. 12396 hardcode_action_CXX=unsupported 12397 fi 12398 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12399 echo "${ECHO_T}$hardcode_action_CXX" >&6 12400 12401 if test "$hardcode_action_CXX" = relink; then 12402 # Fast installation is not supported 12403 enable_fast_install=no 12404 elif test "$shlibpath_overrides_runpath" = yes || 12405 test "$enable_shared" = no; then 12406 # Fast installation is not necessary 12407 enable_fast_install=needless 12408 fi 12409 12410 12411 # The else clause should only fire when bootstrapping the 12412 # libtool distribution, otherwise you forgot to ship ltmain.sh 12413 # with your package, and you will get complaints that there are 12414 # no rules to generate ltmain.sh. 12415 if test -f "$ltmain"; then 12416 # See if we are running on zsh, and set the options which allow our commands through 12417 # without removal of \ escapes. 12418 if test -n "${ZSH_VERSION+set}" ; then 12419 setopt NO_GLOB_SUBST 12420 fi 12421 # Now quote all the things that may contain metacharacters while being 12422 # careful not to overquote the AC_SUBSTed values. We take copies of the 12423 # variables and quote the copies for generation of the libtool script. 12424 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 12425 SED SHELL STRIP \ 12426 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12427 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12428 deplibs_check_method reload_flag reload_cmds need_locks \ 12429 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12430 lt_cv_sys_global_symbol_to_c_name_address \ 12431 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12432 old_postinstall_cmds old_postuninstall_cmds \ 12433 compiler_CXX \ 12434 CC_CXX \ 12435 LD_CXX \ 12436 lt_prog_compiler_wl_CXX \ 12437 lt_prog_compiler_pic_CXX \ 12438 lt_prog_compiler_static_CXX \ 12439 lt_prog_compiler_no_builtin_flag_CXX \ 12440 export_dynamic_flag_spec_CXX \ 12441 thread_safe_flag_spec_CXX \ 12442 whole_archive_flag_spec_CXX \ 12443 enable_shared_with_static_runtimes_CXX \ 12444 old_archive_cmds_CXX \ 12445 old_archive_from_new_cmds_CXX \ 12446 predep_objects_CXX \ 12447 postdep_objects_CXX \ 12448 predeps_CXX \ 12449 postdeps_CXX \ 12450 compiler_lib_search_path_CXX \ 12451 archive_cmds_CXX \ 12452 archive_expsym_cmds_CXX \ 12453 postinstall_cmds_CXX \ 12454 postuninstall_cmds_CXX \ 12455 old_archive_from_expsyms_cmds_CXX \ 12456 allow_undefined_flag_CXX \ 12457 no_undefined_flag_CXX \ 12458 export_symbols_cmds_CXX \ 12459 hardcode_libdir_flag_spec_CXX \ 12460 hardcode_libdir_flag_spec_ld_CXX \ 12461 hardcode_libdir_separator_CXX \ 12462 hardcode_automatic_CXX \ 12463 module_cmds_CXX \ 12464 module_expsym_cmds_CXX \ 12465 lt_cv_prog_compiler_c_o_CXX \ 12466 exclude_expsyms_CXX \ 12467 include_expsyms_CXX; do 12468 12469 case $var in 12470 old_archive_cmds_CXX | \ 12471 old_archive_from_new_cmds_CXX | \ 12472 archive_cmds_CXX | \ 12473 archive_expsym_cmds_CXX | \ 12474 module_cmds_CXX | \ 12475 module_expsym_cmds_CXX | \ 12476 old_archive_from_expsyms_cmds_CXX | \ 12477 export_symbols_cmds_CXX | \ 12478 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12479 postinstall_cmds | postuninstall_cmds | \ 12480 old_postinstall_cmds | old_postuninstall_cmds | \ 12481 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12482 # Double-quote double-evaled strings. 12483 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12484 ;; 12485 *) 12486 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12487 ;; 12488 esac 12489 done 12490 12491 case $lt_echo in 12492 *'\$0 --fallback-echo"') 12493 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12494 ;; 12495 esac 12496 12497 cfgfile="$ofile" 12498 12499 cat <<__EOF__ >> "$cfgfile" 12500 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 12501 12502 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12503 12504 # Shell to use when invoking shell scripts. 12505 SHELL=$lt_SHELL 12506 12507 # Whether or not to build shared libraries. 12508 build_libtool_libs=$enable_shared 12509 12510 # Whether or not to build static libraries. 12511 build_old_libs=$enable_static 12512 12513 # Whether or not to add -lc for building shared libraries. 12514 build_libtool_need_lc=$archive_cmds_need_lc_CXX 12515 12516 # Whether or not to disallow shared libs when runtime libs are static 12517 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12518 12519 # Whether or not to optimize for fast installation. 12520 fast_install=$enable_fast_install 12521 12522 # The host system. 12523 host_alias=$host_alias 12524 host=$host 12525 host_os=$host_os 12526 12527 # The build system. 12528 build_alias=$build_alias 12529 build=$build 12530 build_os=$build_os 12531 12532 # An echo program that does not interpret backslashes. 12533 echo=$lt_echo 12534 12535 # The archiver. 12536 AR=$lt_AR 12537 AR_FLAGS=$lt_AR_FLAGS 12538 12539 # A C compiler. 12540 LTCC=$lt_LTCC 12541 12542 # LTCC compiler flags. 12543 LTCFLAGS=$lt_LTCFLAGS 12544 12545 # A language-specific compiler. 12546 CC=$lt_compiler_CXX 12547 12548 # Is the compiler the GNU C compiler? 12549 with_gcc=$GCC_CXX 12550 12551 # An ERE matcher. 12552 EGREP=$lt_EGREP 12553 12554 # The linker used to build libraries. 12555 LD=$lt_LD_CXX 12556 12557 # Whether we need hard or soft links. 12558 LN_S=$lt_LN_S 12559 12560 # A BSD-compatible nm program. 12561 NM=$lt_NM 12562 12563 # A symbol stripping program 12564 STRIP=$lt_STRIP 12565 12566 # Used to examine libraries when file_magic_cmd begins "file" 12567 MAGIC_CMD=$MAGIC_CMD 12568 12569 # Used on cygwin: DLL creation program. 12570 DLLTOOL="$DLLTOOL" 12571 12572 # Used on cygwin: object dumper. 12573 OBJDUMP="$OBJDUMP" 12574 12575 # Used on cygwin: assembler. 12576 AS="$AS" 12577 12578 # The name of the directory that contains temporary libtool files. 12579 objdir=$objdir 12580 12581 # How to create reloadable object files. 12582 reload_flag=$lt_reload_flag 12583 reload_cmds=$lt_reload_cmds 12584 12585 # How to pass a linker flag through the compiler. 12586 wl=$lt_lt_prog_compiler_wl_CXX 12587 12588 # Object file suffix (normally "o"). 12589 objext="$ac_objext" 12590 12591 # Old archive suffix (normally "a"). 12592 libext="$libext" 12593 12594 # Shared library suffix (normally ".so"). 12595 shrext_cmds='$shrext_cmds' 12596 12597 # Executable file suffix (normally ""). 12598 exeext="$exeext" 12599 12600 # Additional compiler flags for building library objects. 12601 pic_flag=$lt_lt_prog_compiler_pic_CXX 12602 pic_mode=$pic_mode 12603 12604 # What is the maximum length of a command? 12605 max_cmd_len=$lt_cv_sys_max_cmd_len 12606 12607 # Does compiler simultaneously support -c and -o options? 12608 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12609 12610 # Must we lock files when doing compilation? 12611 need_locks=$lt_need_locks 12612 12613 # Do we need the lib prefix for modules? 12614 need_lib_prefix=$need_lib_prefix 12615 12616 # Do we need a version for libraries? 12617 need_version=$need_version 12618 12619 # Whether dlopen is supported. 12620 dlopen_support=$enable_dlopen 12621 12622 # Whether dlopen of programs is supported. 12623 dlopen_self=$enable_dlopen_self 12624 12625 # Whether dlopen of statically linked programs is supported. 12626 dlopen_self_static=$enable_dlopen_self_static 12627 12628 # Compiler flag to prevent dynamic linking. 12629 link_static_flag=$lt_lt_prog_compiler_static_CXX 12630 12631 # Compiler flag to turn off builtin functions. 12632 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12633 12634 # Compiler flag to allow reflexive dlopens. 12635 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12636 12637 # Compiler flag to generate shared objects directly from archives. 12638 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12639 12640 # Compiler flag to generate thread-safe objects. 12641 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12642 12643 # Library versioning type. 12644 version_type=$version_type 12645 12646 # Format of library name prefix. 12647 libname_spec=$lt_libname_spec 12648 12649 # List of archive names. First name is the real one, the rest are links. 12650 # The last name is the one that the linker finds with -lNAME. 12651 library_names_spec=$lt_library_names_spec 12652 12653 # The coded name of the library, if different from the real name. 12654 soname_spec=$lt_soname_spec 12655 12656 # Commands used to build and install an old-style archive. 12657 RANLIB=$lt_RANLIB 12658 old_archive_cmds=$lt_old_archive_cmds_CXX 12659 old_postinstall_cmds=$lt_old_postinstall_cmds 12660 old_postuninstall_cmds=$lt_old_postuninstall_cmds 12661 12662 # Create an old-style archive from a shared archive. 12663 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12664 12665 # Create a temporary old-style archive to link instead of a shared archive. 12666 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12667 12668 # Commands used to build and install a shared archive. 12669 archive_cmds=$lt_archive_cmds_CXX 12670 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12671 postinstall_cmds=$lt_postinstall_cmds 12672 postuninstall_cmds=$lt_postuninstall_cmds 12673 12674 # Commands used to build a loadable module (assumed same as above if empty) 12675 module_cmds=$lt_module_cmds_CXX 12676 module_expsym_cmds=$lt_module_expsym_cmds_CXX 12677 12678 # Commands to strip libraries. 12679 old_striplib=$lt_old_striplib 12680 striplib=$lt_striplib 12681 12682 # Dependencies to place before the objects being linked to create a 12683 # shared library. 12684 predep_objects=$lt_predep_objects_CXX 12685 12686 # Dependencies to place after the objects being linked to create a 12687 # shared library. 12688 postdep_objects=$lt_postdep_objects_CXX 12689 12690 # Dependencies to place before the objects being linked to create a 12691 # shared library. 12692 predeps=$lt_predeps_CXX 12693 12694 # Dependencies to place after the objects being linked to create a 12695 # shared library. 12696 postdeps=$lt_postdeps_CXX 12697 12698 # The library search path used internally by the compiler when linking 12699 # a shared library. 12700 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 12701 12702 # Method to check whether dependent libraries are shared objects. 12703 deplibs_check_method=$lt_deplibs_check_method 12704 12705 # Command to use when deplibs_check_method == file_magic. 12706 file_magic_cmd=$lt_file_magic_cmd 12707 12708 # Flag that allows shared libraries with undefined symbols to be built. 12709 allow_undefined_flag=$lt_allow_undefined_flag_CXX 12710 12711 # Flag that forces no undefined symbols. 12712 no_undefined_flag=$lt_no_undefined_flag_CXX 12713 12714 # Commands used to finish a libtool library installation in a directory. 12715 finish_cmds=$lt_finish_cmds 12716 12717 # Same as above, but a single script fragment to be evaled but not shown. 12718 finish_eval=$lt_finish_eval 12719 12720 # Take the output of nm and produce a listing of raw symbols and C names. 12721 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12722 12723 # Transform the output of nm in a proper C declaration 12724 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12725 12726 # Transform the output of nm in a C name address pair 12727 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12728 12729 # This is the shared library runtime path variable. 12730 runpath_var=$runpath_var 12731 12732 # This is the shared library path variable. 12733 shlibpath_var=$shlibpath_var 12734 12735 # Is shlibpath searched before the hard-coded library search path? 12736 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12737 12738 # How to hardcode a shared library path into an executable. 12739 hardcode_action=$hardcode_action_CXX 12740 12741 # Whether we should hardcode library paths into libraries. 12742 hardcode_into_libs=$hardcode_into_libs 12743 12744 # Flag to hardcode \$libdir into a binary during linking. 12745 # This must work even if \$libdir does not exist. 12746 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 12747 12748 # If ld is used when linking, flag to hardcode \$libdir into 12749 # a binary during linking. This must work even if \$libdir does 12750 # not exist. 12751 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 12752 12753 # Whether we need a single -rpath flag with a separated argument. 12754 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 12755 12756 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12757 # resulting binary. 12758 hardcode_direct=$hardcode_direct_CXX 12759 12760 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12761 # resulting binary. 12762 hardcode_minus_L=$hardcode_minus_L_CXX 12763 12764 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12765 # the resulting binary. 12766 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 12767 12768 # Set to yes if building a shared library automatically hardcodes DIR into the library 12769 # and all subsequent libraries and executables linked against it. 12770 hardcode_automatic=$hardcode_automatic_CXX 12771 12772 # Variables whose values should be saved in libtool wrapper scripts and 12773 # restored at relink time. 12774 variables_saved_for_relink="$variables_saved_for_relink" 12775 12776 # Whether libtool must link a program against all its dependency libraries. 12777 link_all_deplibs=$link_all_deplibs_CXX 12778 12779 # Compile-time system search path for libraries 12780 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12781 12782 # Run-time system search path for libraries 12783 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12784 12785 # Fix the shell variable \$srcfile for the compiler. 12786 fix_srcfile_path="$fix_srcfile_path_CXX" 12787 12788 # Set to yes if exported symbols are required. 12789 always_export_symbols=$always_export_symbols_CXX 12790 12791 # The commands to list exported symbols. 12792 export_symbols_cmds=$lt_export_symbols_cmds_CXX 12793 12794 # The commands to extract the exported symbol list from a shared archive. 12795 extract_expsyms_cmds=$lt_extract_expsyms_cmds 12796 12797 # Symbols that should not be listed in the preloaded symbols. 12798 exclude_expsyms=$lt_exclude_expsyms_CXX 12799 12800 # Symbols that must always be exported. 12801 include_expsyms=$lt_include_expsyms_CXX 12802 12803 # ### END LIBTOOL TAG CONFIG: $tagname 12804 12805 __EOF__ 12806 12807 12808 else 12809 # If there is no Makefile yet, we rely on a make rule to execute 12810 # `config.status --recheck' to rerun these tests and create the 12811 # libtool script then. 12812 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12813 if test -f "$ltmain_in"; then 12814 test -f Makefile && make "$ltmain" 12815 fi 12816 fi 12817 12818 12819 ac_ext=c 12820 ac_cpp='$CPP $CPPFLAGS' 12821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12823 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12824 12825 CC=$lt_save_CC 12826 LDCXX=$LD 12827 LD=$lt_save_LD 12828 GCC=$lt_save_GCC 12829 with_gnu_ldcxx=$with_gnu_ld 12830 with_gnu_ld=$lt_save_with_gnu_ld 12831 lt_cv_path_LDCXX=$lt_cv_path_LD 12832 lt_cv_path_LD=$lt_save_path_LD 12833 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 12834 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 12835 12836 else 12837 tagname="" 12838 fi 12839 ;; 12840 12841 F77) 12842 if test -n "$F77" && test "X$F77" != "Xno"; then 12843 12844 ac_ext=f 12845 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12846 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12847 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12848 12849 12850 archive_cmds_need_lc_F77=no 12851 allow_undefined_flag_F77= 12852 always_export_symbols_F77=no 12853 archive_expsym_cmds_F77= 12854 export_dynamic_flag_spec_F77= 12855 hardcode_direct_F77=no 12856 hardcode_libdir_flag_spec_F77= 12857 hardcode_libdir_flag_spec_ld_F77= 12858 hardcode_libdir_separator_F77= 12859 hardcode_minus_L_F77=no 12860 hardcode_automatic_F77=no 12861 module_cmds_F77= 12862 module_expsym_cmds_F77= 12863 link_all_deplibs_F77=unknown 12864 old_archive_cmds_F77=$old_archive_cmds 12865 no_undefined_flag_F77= 12866 whole_archive_flag_spec_F77= 12867 enable_shared_with_static_runtimes_F77=no 12868 12869 # Source file extension for f77 test sources. 12870 ac_ext=f 12871 12872 # Object file extension for compiled f77 test sources. 12873 objext=o 12874 objext_F77=$objext 12875 12876 # Code to be used in simple compile tests 12877 lt_simple_compile_test_code=" subroutine t\n return\n end\n" 12878 12879 # Code to be used in simple link tests 12880 lt_simple_link_test_code=" program t\n end\n" 12881 12882 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12883 12884 # If no C compiler was specified, use CC. 12885 LTCC=${LTCC-"$CC"} 12886 12887 # If no C compiler flags were specified, use CFLAGS. 12888 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12889 12890 # Allow CC to be a program name with arguments. 12891 compiler=$CC 12892 12893 12894 # save warnings/boilerplate of simple test code 12895 ac_outfile=conftest.$ac_objext 12896 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 12897 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12898 _lt_compiler_boilerplate=`cat conftest.err` 12899 $rm conftest* 12900 12901 ac_outfile=conftest.$ac_objext 12902 printf "$lt_simple_link_test_code" >conftest.$ac_ext 12903 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12904 _lt_linker_boilerplate=`cat conftest.err` 12905 $rm conftest* 12906 12907 12908 # Allow CC to be a program name with arguments. 12909 lt_save_CC="$CC" 12910 CC=${F77-"f77"} 12911 compiler=$CC 12912 compiler_F77=$CC 12913 for cc_temp in $compiler""; do 12914 case $cc_temp in 12915 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12916 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12917 \-*) ;; 12918 *) break;; 12919 esac 12920 done 12921 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12922 12923 12924 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12925 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 12926 echo "$as_me:$LINENO: result: $can_build_shared" >&5 12927 echo "${ECHO_T}$can_build_shared" >&6 12928 12929 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12930 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 12931 test "$can_build_shared" = "no" && enable_shared=no 12932 12933 # On AIX, shared libraries and static libraries use the same namespace, and 12934 # are all built from PIC. 12935 case $host_os in 12936 aix3*) 12937 test "$enable_shared" = yes && enable_static=no 12938 if test -n "$RANLIB"; then 12939 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12940 postinstall_cmds='$RANLIB $lib' 12941 fi 12942 ;; 12943 aix4* | aix5*) 12944 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12945 test "$enable_shared" = yes && enable_static=no 12946 fi 12947 ;; 12948 esac 12949 echo "$as_me:$LINENO: result: $enable_shared" >&5 12950 echo "${ECHO_T}$enable_shared" >&6 12951 12952 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12953 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 12954 # Make sure either enable_shared or enable_static is yes. 12955 test "$enable_shared" = yes || enable_static=yes 12956 echo "$as_me:$LINENO: result: $enable_static" >&5 12957 echo "${ECHO_T}$enable_static" >&6 12958 12959 GCC_F77="$G77" 12960 LD_F77="$LD" 12961 12962 lt_prog_compiler_wl_F77= 12963 lt_prog_compiler_pic_F77= 12964 lt_prog_compiler_static_F77= 12965 12966 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12967 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 12968 12969 if test "$GCC" = yes; then 12970 lt_prog_compiler_wl_F77='-Wl,' 12971 lt_prog_compiler_static_F77='-static' 12972 12973 case $host_os in 12974 aix*) 12975 # All AIX code is PIC. 12976 if test "$host_cpu" = ia64; then 12977 # AIX 5 now supports IA64 processor 12978 lt_prog_compiler_static_F77='-Bstatic' 12979 fi 12980 ;; 12981 12982 amigaos*) 12983 # FIXME: we need at least 68020 code to build shared libraries, but 12984 # adding the `-m68020' flag to GCC prevents building anything better, 12985 # like `-m68040'. 12986 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 12987 ;; 12988 12989 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12990 # PIC is the default for these OSes. 12991 ;; 12992 12993 mingw* | pw32* | os2*) 12994 # This hack is so that the source file can tell whether it is being 12995 # built for inclusion in a dll (and should export symbols for example). 12996 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12997 ;; 12998 12999 darwin* | rhapsody*) 13000 # PIC is the default on this platform 13001 # Common symbols not allowed in MH_DYLIB files 13002 lt_prog_compiler_pic_F77='-fno-common' 13003 ;; 13004 13005 interix3*) 13006 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13007 # Instead, we relocate shared libraries at runtime. 13008 ;; 13009 13010 msdosdjgpp*) 13011 # Just because we use GCC doesn't mean we suddenly get shared libraries 13012 # on systems that don't support them. 13013 lt_prog_compiler_can_build_shared_F77=no 13014 enable_shared=no 13015 ;; 13016 13017 sysv4*MP*) 13018 if test -d /usr/nec; then 13019 lt_prog_compiler_pic_F77=-Kconform_pic 13020 fi 13021 ;; 13022 13023 hpux*) 13024 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13025 # not for PA HP-UX. 13026 case $host_cpu in 13027 hppa*64*|ia64*) 13028 # +Z the default 13029 ;; 13030 *) 13031 lt_prog_compiler_pic_F77='-fPIC' 13032 ;; 13033 esac 13034 ;; 13035 13036 *) 13037 lt_prog_compiler_pic_F77='-fPIC' 13038 ;; 13039 esac 13040 else 13041 # PORTME Check for flag to pass linker flags through the system compiler. 13042 case $host_os in 13043 aix*) 13044 lt_prog_compiler_wl_F77='-Wl,' 13045 if test "$host_cpu" = ia64; then 13046 # AIX 5 now supports IA64 processor 13047 lt_prog_compiler_static_F77='-Bstatic' 13048 else 13049 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13050 fi 13051 ;; 13052 darwin*) 13053 # PIC is the default on this platform 13054 # Common symbols not allowed in MH_DYLIB files 13055 case $cc_basename in 13056 xlc*) 13057 lt_prog_compiler_pic_F77='-qnocommon' 13058 lt_prog_compiler_wl_F77='-Wl,' 13059 ;; 13060 esac 13061 ;; 13062 13063 mingw* | pw32* | os2*) 13064 # This hack is so that the source file can tell whether it is being 13065 # built for inclusion in a dll (and should export symbols for example). 13066 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13067 ;; 13068 13069 hpux9* | hpux10* | hpux11*) 13070 lt_prog_compiler_wl_F77='-Wl,' 13071 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13072 # not for PA HP-UX. 13073 case $host_cpu in 13074 hppa*64*|ia64*) 13075 # +Z the default 13076 ;; 13077 *) 13078 lt_prog_compiler_pic_F77='+Z' 13079 ;; 13080 esac 13081 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13082 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13083 ;; 13084 13085 irix5* | irix6* | nonstopux*) 13086 lt_prog_compiler_wl_F77='-Wl,' 13087 # PIC (with -KPIC) is the default. 13088 lt_prog_compiler_static_F77='-non_shared' 13089 ;; 13090 13091 newsos6) 13092 lt_prog_compiler_pic_F77='-KPIC' 13093 lt_prog_compiler_static_F77='-Bstatic' 13094 ;; 13095 13096 linux*) 13097 case $cc_basename in 13098 icc* | ecc*) 13099 lt_prog_compiler_wl_F77='-Wl,' 13100 lt_prog_compiler_pic_F77='-KPIC' 13101 lt_prog_compiler_static_F77='-static' 13102 ;; 13103 pgcc* | pgf77* | pgf90* | pgf95*) 13104 # Portland Group compilers (*not* the Pentium gcc compiler, 13105 # which looks to be a dead project) 13106 lt_prog_compiler_wl_F77='-Wl,' 13107 lt_prog_compiler_pic_F77='-fpic' 13108 lt_prog_compiler_static_F77='-Bstatic' 13109 ;; 13110 ccc*) 13111 lt_prog_compiler_wl_F77='-Wl,' 13112 # All Alpha code is PIC. 13113 lt_prog_compiler_static_F77='-non_shared' 13114 ;; 13115 esac 13116 ;; 13117 13118 osf3* | osf4* | osf5*) 13119 lt_prog_compiler_wl_F77='-Wl,' 13120 # All OSF/1 code is PIC. 13121 lt_prog_compiler_static_F77='-non_shared' 13122 ;; 13123 13124 solaris*) 13125 lt_prog_compiler_pic_F77='-KPIC' 13126 lt_prog_compiler_static_F77='-Bstatic' 13127 case $cc_basename in 13128 f77* | f90* | f95*) 13129 lt_prog_compiler_wl_F77='-Qoption ld ';; 13130 *) 13131 lt_prog_compiler_wl_F77='-Wl,';; 13132 esac 13133 ;; 13134 13135 sunos4*) 13136 lt_prog_compiler_wl_F77='-Qoption ld ' 13137 lt_prog_compiler_pic_F77='-PIC' 13138 lt_prog_compiler_static_F77='-Bstatic' 13139 ;; 13140 13141 sysv4 | sysv4.2uw2* | sysv4.3*) 13142 lt_prog_compiler_wl_F77='-Wl,' 13143 lt_prog_compiler_pic_F77='-KPIC' 13144 lt_prog_compiler_static_F77='-Bstatic' 13145 ;; 13146 13147 sysv4*MP*) 13148 if test -d /usr/nec ;then 13149 lt_prog_compiler_pic_F77='-Kconform_pic' 13150 lt_prog_compiler_static_F77='-Bstatic' 13151 fi 13152 ;; 13153 13154 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13155 lt_prog_compiler_wl_F77='-Wl,' 13156 lt_prog_compiler_pic_F77='-KPIC' 13157 lt_prog_compiler_static_F77='-Bstatic' 13158 ;; 13159 13160 unicos*) 13161 lt_prog_compiler_wl_F77='-Wl,' 13162 lt_prog_compiler_can_build_shared_F77=no 13163 ;; 13164 13165 uts4*) 13166 lt_prog_compiler_pic_F77='-pic' 13167 lt_prog_compiler_static_F77='-Bstatic' 13168 ;; 13169 13170 *) 13171 lt_prog_compiler_can_build_shared_F77=no 13172 ;; 13173 esac 13174 fi 13175 13176 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13177 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13178 13179 # 13180 # Check to make sure the PIC flag actually works. 13181 # 13182 if test -n "$lt_prog_compiler_pic_F77"; then 13183 13184 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13185 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13186 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13187 echo $ECHO_N "(cached) $ECHO_C" >&6 13188 else 13189 lt_prog_compiler_pic_works_F77=no 13190 ac_outfile=conftest.$ac_objext 13191 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13192 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13193 # Insert the option either (1) after the last *FLAGS variable, or 13194 # (2) before a word containing "conftest.", or (3) at the end. 13195 # Note that $ac_compile itself does not contain backslashes and begins 13196 # with a dollar sign (not a hyphen), so the echo should work correctly. 13197 # The option is referenced via a variable to avoid confusing sed. 13198 lt_compile=`echo "$ac_compile" | $SED \ 13199 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13201 -e 's:$: $lt_compiler_flag:'` 13202 (eval echo "\"\$as_me:13202: $lt_compile\"" >&5) 13203 (eval "$lt_compile" 2>conftest.err) 13204 ac_status=$? 13205 cat conftest.err >&5 13206 echo "$as_me:13206: \$? = $ac_status" >&5 13207 if (exit $ac_status) && test -s "$ac_outfile"; then 13208 # The compiler can only warn and ignore the option if not recognized 13209 # So say no if there are warnings other than the usual output. 13210 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13211 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13212 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13213 lt_prog_compiler_pic_works_F77=yes 13214 fi 13215 fi 13216 $rm conftest* 13217 13218 fi 13219 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13220 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13221 13222 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13223 case $lt_prog_compiler_pic_F77 in 13224 "" | " "*) ;; 13225 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13226 esac 13227 else 13228 lt_prog_compiler_pic_F77= 13229 lt_prog_compiler_can_build_shared_F77=no 13230 fi 13231 13232 fi 13233 case $host_os in 13234 # For platforms which do not support PIC, -DPIC is meaningless: 13235 *djgpp*) 13236 lt_prog_compiler_pic_F77= 13237 ;; 13238 *) 13239 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13240 ;; 13241 esac 13242 13243 # 13244 # Check to make sure the static flag actually works. 13245 # 13246 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13247 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13248 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 13249 if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13250 echo $ECHO_N "(cached) $ECHO_C" >&6 13251 else 13252 lt_prog_compiler_static_works_F77=no 13253 save_LDFLAGS="$LDFLAGS" 13254 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13255 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13256 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13257 # The linker can only warn and ignore the option if not recognized 13258 # So say no if there are warnings 13259 if test -s conftest.err; then 13260 # Append any errors to the config.log. 13261 cat conftest.err 1>&5 13262 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13264 if diff conftest.exp conftest.er2 >/dev/null; then 13265 lt_prog_compiler_static_works_F77=yes 13266 fi 13267 else 13268 lt_prog_compiler_static_works_F77=yes 13269 fi 13270 fi 13271 $rm conftest* 13272 LDFLAGS="$save_LDFLAGS" 13273 13274 fi 13275 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13276 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 13277 13278 if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13279 : 13280 else 13281 lt_prog_compiler_static_F77= 13282 fi 13283 13284 13285 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13286 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13287 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13288 echo $ECHO_N "(cached) $ECHO_C" >&6 13289 else 13290 lt_cv_prog_compiler_c_o_F77=no 13291 $rm -r conftest 2>/dev/null 13292 mkdir conftest 13293 cd conftest 13294 mkdir out 13295 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13296 13297 lt_compiler_flag="-o out/conftest2.$ac_objext" 13298 # Insert the option either (1) after the last *FLAGS variable, or 13299 # (2) before a word containing "conftest.", or (3) at the end. 13300 # Note that $ac_compile itself does not contain backslashes and begins 13301 # with a dollar sign (not a hyphen), so the echo should work correctly. 13302 lt_compile=`echo "$ac_compile" | $SED \ 13303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13305 -e 's:$: $lt_compiler_flag:'` 13306 (eval echo "\"\$as_me:13306: $lt_compile\"" >&5) 13307 (eval "$lt_compile" 2>out/conftest.err) 13308 ac_status=$? 13309 cat out/conftest.err >&5 13310 echo "$as_me:13310: \$? = $ac_status" >&5 13311 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13312 then 13313 # The compiler can only warn and ignore the option if not recognized 13314 # So say no if there are warnings 13315 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13316 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13317 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13318 lt_cv_prog_compiler_c_o_F77=yes 13319 fi 13320 fi 13321 chmod u+w . 2>&5 13322 $rm conftest* 13323 # SGI C++ compiler will create directory out/ii_files/ for 13324 # template instantiation 13325 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13326 $rm out/* && rmdir out 13327 cd .. 13328 rmdir conftest 13329 $rm conftest* 13330 13331 fi 13332 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13333 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13334 13335 13336 hard_links="nottested" 13337 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13338 # do not overwrite the value of need_locks provided by the user 13339 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13340 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13341 hard_links=yes 13342 $rm conftest* 13343 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13344 touch conftest.a 13345 ln conftest.a conftest.b 2>&5 || hard_links=no 13346 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13347 echo "$as_me:$LINENO: result: $hard_links" >&5 13348 echo "${ECHO_T}$hard_links" >&6 13349 if test "$hard_links" = no; then 13350 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13351 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13352 need_locks=warn 13353 fi 13354 else 13355 need_locks=no 13356 fi 13357 13358 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13359 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13360 13361 runpath_var= 13362 allow_undefined_flag_F77= 13363 enable_shared_with_static_runtimes_F77=no 13364 archive_cmds_F77= 13365 archive_expsym_cmds_F77= 13366 old_archive_From_new_cmds_F77= 13367 old_archive_from_expsyms_cmds_F77= 13368 export_dynamic_flag_spec_F77= 13369 whole_archive_flag_spec_F77= 13370 thread_safe_flag_spec_F77= 13371 hardcode_libdir_flag_spec_F77= 13372 hardcode_libdir_flag_spec_ld_F77= 13373 hardcode_libdir_separator_F77= 13374 hardcode_direct_F77=no 13375 hardcode_minus_L_F77=no 13376 hardcode_shlibpath_var_F77=unsupported 13377 link_all_deplibs_F77=unknown 13378 hardcode_automatic_F77=no 13379 module_cmds_F77= 13380 module_expsym_cmds_F77= 13381 always_export_symbols_F77=no 13382 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13383 # include_expsyms should be a list of space-separated symbols to be *always* 13384 # included in the symbol list 13385 include_expsyms_F77= 13386 # exclude_expsyms can be an extended regexp of symbols to exclude 13387 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13388 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13389 # as well as any symbol that contains `d'. 13390 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13391 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13392 # platforms (ab)use it in PIC code, but their linkers get confused if 13393 # the symbol is explicitly referenced. Since portable code cannot 13394 # rely on this symbol name, it's probably fine to never include it in 13395 # preloaded symbol tables. 13396 extract_expsyms_cmds= 13397 # Just being paranoid about ensuring that cc_basename is set. 13398 for cc_temp in $compiler""; do 13399 case $cc_temp in 13400 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13401 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13402 \-*) ;; 13403 *) break;; 13404 <