1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for profiling 2.2.1. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='profiling' 589PACKAGE_TARNAME='profiling' 590PACKAGE_VERSION='2.2.1' 591PACKAGE_STRING='profiling 2.2.1' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="src/profiling.cc" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='am__EXEEXT_FALSE 633am__EXEEXT_TRUE 634LTLIBOBJS 635LIBOBJS 636SYS_IS_CYGWIN_FALSE 637SYS_IS_CYGWIN_TRUE 638GAP_LIBS 639GAP_LDFLAGS 640GAP_CFLAGS 641GAP_CPPFLAGS 642GAPROOT 643GAPARCH 644CXXCPP 645CPP 646LT_SYS_LIBRARY_PATH 647OTOOL64 648OTOOL 649LIPO 650NMEDIT 651DSYMUTIL 652MANIFEST_TOOL 653RANLIB 654LN_S 655NM 656ac_ct_DUMPBIN 657DUMPBIN 658LD 659FGREP 660EGREP 661GREP 662SED 663LIBTOOL 664OBJDUMP 665DLLTOOL 666AS 667am__fastdepCXX_FALSE 668am__fastdepCXX_TRUE 669CXXDEPMODE 670ac_ct_CXX 671CXXFLAGS 672CXX 673am__fastdepCC_FALSE 674am__fastdepCC_TRUE 675CCDEPMODE 676am__nodep 677AMDEPBACKSLASH 678AMDEP_FALSE 679AMDEP_TRUE 680am__include 681DEPDIR 682OBJEXT 683EXEEXT 684ac_ct_CC 685CPPFLAGS 686LDFLAGS 687CFLAGS 688CC 689ac_ct_AR 690AR 691AM_BACKSLASH 692AM_DEFAULT_VERBOSITY 693AM_DEFAULT_V 694AM_V 695am__untar 696am__tar 697AMTAR 698am__leading_dot 699SET_MAKE 700AWK 701mkdir_p 702MKDIR_P 703INSTALL_STRIP_PROGRAM 704STRIP 705install_sh 706MAKEINFO 707AUTOHEADER 708AUTOMAKE 709AUTOCONF 710ACLOCAL 711VERSION 712PACKAGE 713CYGPATH_W 714am__isrc 715INSTALL_DATA 716INSTALL_SCRIPT 717INSTALL_PROGRAM 718host_os 719host_vendor 720host_cpu 721host 722build_os 723build_vendor 724build_cpu 725build 726target_alias 727host_alias 728build_alias 729LIBS 730ECHO_T 731ECHO_N 732ECHO_C 733DEFS 734mandir 735localedir 736libdir 737psdir 738pdfdir 739dvidir 740htmldir 741infodir 742docdir 743oldincludedir 744includedir 745runstatedir 746localstatedir 747sharedstatedir 748sysconfdir 749datadir 750datarootdir 751libexecdir 752sbindir 753bindir 754program_transform_name 755prefix 756exec_prefix 757PACKAGE_URL 758PACKAGE_BUGREPORT 759PACKAGE_STRING 760PACKAGE_VERSION 761PACKAGE_TARNAME 762PACKAGE_NAME 763PATH_SEPARATOR 764SHELL 765am__quote' 766ac_subst_files='' 767ac_user_opts=' 768enable_option_checking 769enable_silent_rules 770enable_dependency_tracking 771enable_static 772enable_shared 773with_pic 774enable_fast_install 775with_aix_soname 776with_gnu_ld 777with_sysroot 778enable_libtool_lock 779with_gaproot 780' 781 ac_precious_vars='build_alias 782host_alias 783target_alias 784CC 785CFLAGS 786LDFLAGS 787LIBS 788CPPFLAGS 789CXX 790CXXFLAGS 791CCC 792LT_SYS_LIBRARY_PATH 793CPP 794CXXCPP' 795 796 797# Initialize some variables set by options. 798ac_init_help= 799ac_init_version=false 800ac_unrecognized_opts= 801ac_unrecognized_sep= 802# The variables have the same names as the options, with 803# dashes changed to underlines. 804cache_file=/dev/null 805exec_prefix=NONE 806no_create= 807no_recursion= 808prefix=NONE 809program_prefix=NONE 810program_suffix=NONE 811program_transform_name=s,x,x, 812silent= 813site= 814srcdir= 815verbose= 816x_includes=NONE 817x_libraries=NONE 818 819# Installation directory options. 820# These are left unexpanded so users can "make install exec_prefix=/foo" 821# and all the variables that are supposed to be based on exec_prefix 822# by default will actually change. 823# Use braces instead of parens because sh, perl, etc. also accept them. 824# (The list follows the same order as the GNU Coding Standards.) 825bindir='${exec_prefix}/bin' 826sbindir='${exec_prefix}/sbin' 827libexecdir='${exec_prefix}/libexec' 828datarootdir='${prefix}/share' 829datadir='${datarootdir}' 830sysconfdir='${prefix}/etc' 831sharedstatedir='${prefix}/com' 832localstatedir='${prefix}/var' 833runstatedir='${localstatedir}/run' 834includedir='${prefix}/include' 835oldincludedir='/usr/include' 836docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 837infodir='${datarootdir}/info' 838htmldir='${docdir}' 839dvidir='${docdir}' 840pdfdir='${docdir}' 841psdir='${docdir}' 842libdir='${exec_prefix}/lib' 843localedir='${datarootdir}/locale' 844mandir='${datarootdir}/man' 845 846ac_prev= 847ac_dashdash= 848for ac_option 849do 850 # If the previous option needs an argument, assign it. 851 if test -n "$ac_prev"; then 852 eval $ac_prev=\$ac_option 853 ac_prev= 854 continue 855 fi 856 857 case $ac_option in 858 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 859 *=) ac_optarg= ;; 860 *) ac_optarg=yes ;; 861 esac 862 863 # Accept the important Cygnus configure options, so we can diagnose typos. 864 865 case $ac_dashdash$ac_option in 866 --) 867 ac_dashdash=yes ;; 868 869 -bindir | --bindir | --bindi | --bind | --bin | --bi) 870 ac_prev=bindir ;; 871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 872 bindir=$ac_optarg ;; 873 874 -build | --build | --buil | --bui | --bu) 875 ac_prev=build_alias ;; 876 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 877 build_alias=$ac_optarg ;; 878 879 -cache-file | --cache-file | --cache-fil | --cache-fi \ 880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 881 ac_prev=cache_file ;; 882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 884 cache_file=$ac_optarg ;; 885 886 --config-cache | -C) 887 cache_file=config.cache ;; 888 889 -datadir | --datadir | --datadi | --datad) 890 ac_prev=datadir ;; 891 -datadir=* | --datadir=* | --datadi=* | --datad=*) 892 datadir=$ac_optarg ;; 893 894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 895 | --dataroo | --dataro | --datar) 896 ac_prev=datarootdir ;; 897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 899 datarootdir=$ac_optarg ;; 900 901 -disable-* | --disable-*) 902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 903 # Reject names that are not valid shell variable names. 904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 905 as_fn_error $? "invalid feature name: $ac_useropt" 906 ac_useropt_orig=$ac_useropt 907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 908 case $ac_user_opts in 909 *" 910"enable_$ac_useropt" 911"*) ;; 912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 913 ac_unrecognized_sep=', ';; 914 esac 915 eval enable_$ac_useropt=no ;; 916 917 -docdir | --docdir | --docdi | --doc | --do) 918 ac_prev=docdir ;; 919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 920 docdir=$ac_optarg ;; 921 922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 923 ac_prev=dvidir ;; 924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 925 dvidir=$ac_optarg ;; 926 927 -enable-* | --enable-*) 928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 929 # Reject names that are not valid shell variable names. 930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 931 as_fn_error $? "invalid feature name: $ac_useropt" 932 ac_useropt_orig=$ac_useropt 933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 934 case $ac_user_opts in 935 *" 936"enable_$ac_useropt" 937"*) ;; 938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 939 ac_unrecognized_sep=', ';; 940 esac 941 eval enable_$ac_useropt=\$ac_optarg ;; 942 943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 945 | --exec | --exe | --ex) 946 ac_prev=exec_prefix ;; 947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 949 | --exec=* | --exe=* | --ex=*) 950 exec_prefix=$ac_optarg ;; 951 952 -gas | --gas | --ga | --g) 953 # Obsolete; use --with-gas. 954 with_gas=yes ;; 955 956 -help | --help | --hel | --he | -h) 957 ac_init_help=long ;; 958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 959 ac_init_help=recursive ;; 960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 961 ac_init_help=short ;; 962 963 -host | --host | --hos | --ho) 964 ac_prev=host_alias ;; 965 -host=* | --host=* | --hos=* | --ho=*) 966 host_alias=$ac_optarg ;; 967 968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 969 ac_prev=htmldir ;; 970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 971 | --ht=*) 972 htmldir=$ac_optarg ;; 973 974 -includedir | --includedir | --includedi | --included | --include \ 975 | --includ | --inclu | --incl | --inc) 976 ac_prev=includedir ;; 977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 978 | --includ=* | --inclu=* | --incl=* | --inc=*) 979 includedir=$ac_optarg ;; 980 981 -infodir | --infodir | --infodi | --infod | --info | --inf) 982 ac_prev=infodir ;; 983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 984 infodir=$ac_optarg ;; 985 986 -libdir | --libdir | --libdi | --libd) 987 ac_prev=libdir ;; 988 -libdir=* | --libdir=* | --libdi=* | --libd=*) 989 libdir=$ac_optarg ;; 990 991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 992 | --libexe | --libex | --libe) 993 ac_prev=libexecdir ;; 994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 995 | --libexe=* | --libex=* | --libe=*) 996 libexecdir=$ac_optarg ;; 997 998 -localedir | --localedir | --localedi | --localed | --locale) 999 ac_prev=localedir ;; 1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1001 localedir=$ac_optarg ;; 1002 1003 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1004 | --localstate | --localstat | --localsta | --localst | --locals) 1005 ac_prev=localstatedir ;; 1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1008 localstatedir=$ac_optarg ;; 1009 1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1011 ac_prev=mandir ;; 1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1013 mandir=$ac_optarg ;; 1014 1015 -nfp | --nfp | --nf) 1016 # Obsolete; use --without-fp. 1017 with_fp=no ;; 1018 1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1020 | --no-cr | --no-c | -n) 1021 no_create=yes ;; 1022 1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1025 no_recursion=yes ;; 1026 1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1029 | --oldin | --oldi | --old | --ol | --o) 1030 ac_prev=oldincludedir ;; 1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1034 oldincludedir=$ac_optarg ;; 1035 1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1037 ac_prev=prefix ;; 1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1039 prefix=$ac_optarg ;; 1040 1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1042 | --program-pre | --program-pr | --program-p) 1043 ac_prev=program_prefix ;; 1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1046 program_prefix=$ac_optarg ;; 1047 1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1049 | --program-suf | --program-su | --program-s) 1050 ac_prev=program_suffix ;; 1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1053 program_suffix=$ac_optarg ;; 1054 1055 -program-transform-name | --program-transform-name \ 1056 | --program-transform-nam | --program-transform-na \ 1057 | --program-transform-n | --program-transform- \ 1058 | --program-transform | --program-transfor \ 1059 | --program-transfo | --program-transf \ 1060 | --program-trans | --program-tran \ 1061 | --progr-tra | --program-tr | --program-t) 1062 ac_prev=program_transform_name ;; 1063 -program-transform-name=* | --program-transform-name=* \ 1064 | --program-transform-nam=* | --program-transform-na=* \ 1065 | --program-transform-n=* | --program-transform-=* \ 1066 | --program-transform=* | --program-transfor=* \ 1067 | --program-transfo=* | --program-transf=* \ 1068 | --program-trans=* | --program-tran=* \ 1069 | --progr-tra=* | --program-tr=* | --program-t=*) 1070 program_transform_name=$ac_optarg ;; 1071 1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1073 ac_prev=pdfdir ;; 1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1075 pdfdir=$ac_optarg ;; 1076 1077 -psdir | --psdir | --psdi | --psd | --ps) 1078 ac_prev=psdir ;; 1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1080 psdir=$ac_optarg ;; 1081 1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1083 | -silent | --silent | --silen | --sile | --sil) 1084 silent=yes ;; 1085 1086 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1087 | --runstate | --runstat | --runsta | --runst | --runs \ 1088 | --run | --ru | --r) 1089 ac_prev=runstatedir ;; 1090 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1091 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1092 | --run=* | --ru=* | --r=*) 1093 runstatedir=$ac_optarg ;; 1094 1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1096 ac_prev=sbindir ;; 1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1098 | --sbi=* | --sb=*) 1099 sbindir=$ac_optarg ;; 1100 1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1103 | --sharedst | --shareds | --shared | --share | --shar \ 1104 | --sha | --sh) 1105 ac_prev=sharedstatedir ;; 1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1109 | --sha=* | --sh=*) 1110 sharedstatedir=$ac_optarg ;; 1111 1112 -site | --site | --sit) 1113 ac_prev=site ;; 1114 -site=* | --site=* | --sit=*) 1115 site=$ac_optarg ;; 1116 1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1118 ac_prev=srcdir ;; 1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1120 srcdir=$ac_optarg ;; 1121 1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1123 | --syscon | --sysco | --sysc | --sys | --sy) 1124 ac_prev=sysconfdir ;; 1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1127 sysconfdir=$ac_optarg ;; 1128 1129 -target | --target | --targe | --targ | --tar | --ta | --t) 1130 ac_prev=target_alias ;; 1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1132 target_alias=$ac_optarg ;; 1133 1134 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1135 verbose=yes ;; 1136 1137 -version | --version | --versio | --versi | --vers | -V) 1138 ac_init_version=: ;; 1139 1140 -with-* | --with-*) 1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1142 # Reject names that are not valid shell variable names. 1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1144 as_fn_error $? "invalid package name: $ac_useropt" 1145 ac_useropt_orig=$ac_useropt 1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1147 case $ac_user_opts in 1148 *" 1149"with_$ac_useropt" 1150"*) ;; 1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1152 ac_unrecognized_sep=', ';; 1153 esac 1154 eval with_$ac_useropt=\$ac_optarg ;; 1155 1156 -without-* | --without-*) 1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1158 # Reject names that are not valid shell variable names. 1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1160 as_fn_error $? "invalid package name: $ac_useropt" 1161 ac_useropt_orig=$ac_useropt 1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1163 case $ac_user_opts in 1164 *" 1165"with_$ac_useropt" 1166"*) ;; 1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1168 ac_unrecognized_sep=', ';; 1169 esac 1170 eval with_$ac_useropt=no ;; 1171 1172 --x) 1173 # Obsolete; use --with-x. 1174 with_x=yes ;; 1175 1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1177 | --x-incl | --x-inc | --x-in | --x-i) 1178 ac_prev=x_includes ;; 1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1181 x_includes=$ac_optarg ;; 1182 1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1185 ac_prev=x_libraries ;; 1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1188 x_libraries=$ac_optarg ;; 1189 1190 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1191Try \`$0 --help' for more information" 1192 ;; 1193 1194 *=*) 1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1196 # Reject names that are not valid shell variable names. 1197 case $ac_envvar in #( 1198 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1199 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1200 esac 1201 eval $ac_envvar=\$ac_optarg 1202 export $ac_envvar ;; 1203 1204 *) 1205 # FIXME: should be removed in autoconf 3.0. 1206 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1208 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1210 ;; 1211 1212 esac 1213done 1214 1215if test -n "$ac_prev"; then 1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1217 as_fn_error $? "missing argument to $ac_option" 1218fi 1219 1220if test -n "$ac_unrecognized_opts"; then 1221 case $enable_option_checking in 1222 no) ;; 1223 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1224 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1225 esac 1226fi 1227 1228# Check all directory arguments for consistency. 1229for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1230 datadir sysconfdir sharedstatedir localstatedir includedir \ 1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1232 libdir localedir mandir runstatedir 1233do 1234 eval ac_val=\$$ac_var 1235 # Remove trailing slashes. 1236 case $ac_val in 1237 */ ) 1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1239 eval $ac_var=\$ac_val;; 1240 esac 1241 # Be sure to have absolute directory names. 1242 case $ac_val in 1243 [\\/$]* | ?:[\\/]* ) continue;; 1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1245 esac 1246 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1247done 1248 1249# There might be people who depend on the old broken behavior: `$host' 1250# used to hold the argument of --host etc. 1251# FIXME: To remove some day. 1252build=$build_alias 1253host=$host_alias 1254target=$target_alias 1255 1256# FIXME: To remove some day. 1257if test "x$host_alias" != x; then 1258 if test "x$build_alias" = x; then 1259 cross_compiling=maybe 1260 elif test "x$build_alias" != "x$host_alias"; then 1261 cross_compiling=yes 1262 fi 1263fi 1264 1265ac_tool_prefix= 1266test -n "$host_alias" && ac_tool_prefix=$host_alias- 1267 1268test "$silent" = yes && exec 6>/dev/null 1269 1270 1271ac_pwd=`pwd` && test -n "$ac_pwd" && 1272ac_ls_di=`ls -di .` && 1273ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1274 as_fn_error $? "working directory cannot be determined" 1275test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1276 as_fn_error $? "pwd does not report name of working directory" 1277 1278 1279# Find the source files, if location was not specified. 1280if test -z "$srcdir"; then 1281 ac_srcdir_defaulted=yes 1282 # Try the directory containing this script, then the parent directory. 1283 ac_confdir=`$as_dirname -- "$as_myself" || 1284$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1285 X"$as_myself" : 'X\(//\)[^/]' \| \ 1286 X"$as_myself" : 'X\(//\)$' \| \ 1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1288$as_echo X"$as_myself" | 1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1290 s//\1/ 1291 q 1292 } 1293 /^X\(\/\/\)[^/].*/{ 1294 s//\1/ 1295 q 1296 } 1297 /^X\(\/\/\)$/{ 1298 s//\1/ 1299 q 1300 } 1301 /^X\(\/\).*/{ 1302 s//\1/ 1303 q 1304 } 1305 s/.*/./; q'` 1306 srcdir=$ac_confdir 1307 if test ! -r "$srcdir/$ac_unique_file"; then 1308 srcdir=.. 1309 fi 1310else 1311 ac_srcdir_defaulted=no 1312fi 1313if test ! -r "$srcdir/$ac_unique_file"; then 1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1316fi 1317ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1318ac_abs_confdir=`( 1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1320 pwd)` 1321# When building in place, set srcdir=. 1322if test "$ac_abs_confdir" = "$ac_pwd"; then 1323 srcdir=. 1324fi 1325# Remove unnecessary trailing slashes from srcdir. 1326# Double slashes in file names in object file debugging info 1327# mess up M-x gdb in Emacs. 1328case $srcdir in 1329*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1330esac 1331for ac_var in $ac_precious_vars; do 1332 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1333 eval ac_env_${ac_var}_value=\$${ac_var} 1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1335 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1336done 1337 1338# 1339# Report the --help message. 1340# 1341if test "$ac_init_help" = "long"; then 1342 # Omit some internal or obsolete options to make the list less imposing. 1343 # This message is too long to be a string in the A/UX 3.1 sh. 1344 cat <<_ACEOF 1345\`configure' configures profiling 2.2.1 to adapt to many kinds of systems. 1346 1347Usage: $0 [OPTION]... [VAR=VALUE]... 1348 1349To assign environment variables (e.g., CC, CFLAGS...), specify them as 1350VAR=VALUE. See below for descriptions of some of the useful variables. 1351 1352Defaults for the options are specified in brackets. 1353 1354Configuration: 1355 -h, --help display this help and exit 1356 --help=short display options specific to this package 1357 --help=recursive display the short help of all the included packages 1358 -V, --version display version information and exit 1359 -q, --quiet, --silent do not print \`checking ...' messages 1360 --cache-file=FILE cache test results in FILE [disabled] 1361 -C, --config-cache alias for \`--cache-file=config.cache' 1362 -n, --no-create do not create output files 1363 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1364 1365Installation directories: 1366 --prefix=PREFIX install architecture-independent files in PREFIX 1367 [$ac_default_prefix] 1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1369 [PREFIX] 1370 1371By default, \`make install' will install all the files in 1372\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1373an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1374for instance \`--prefix=\$HOME'. 1375 1376For better control, use the options below. 1377 1378Fine tuning of the installation directories: 1379 --bindir=DIR user executables [EPREFIX/bin] 1380 --sbindir=DIR system admin executables [EPREFIX/sbin] 1381 --libexecdir=DIR program executables [EPREFIX/libexec] 1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1385 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1386 --libdir=DIR object code libraries [EPREFIX/lib] 1387 --includedir=DIR C header files [PREFIX/include] 1388 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1391 --infodir=DIR info documentation [DATAROOTDIR/info] 1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1393 --mandir=DIR man documentation [DATAROOTDIR/man] 1394 --docdir=DIR documentation root [DATAROOTDIR/doc/profiling] 1395 --htmldir=DIR html documentation [DOCDIR] 1396 --dvidir=DIR dvi documentation [DOCDIR] 1397 --pdfdir=DIR pdf documentation [DOCDIR] 1398 --psdir=DIR ps documentation [DOCDIR] 1399_ACEOF 1400 1401 cat <<\_ACEOF 1402 1403Program names: 1404 --program-prefix=PREFIX prepend PREFIX to installed program names 1405 --program-suffix=SUFFIX append SUFFIX to installed program names 1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1407 1408System types: 1409 --build=BUILD configure for building on BUILD [guessed] 1410 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1411_ACEOF 1412fi 1413 1414if test -n "$ac_init_help"; then 1415 case $ac_init_help in 1416 short | recursive ) echo "Configuration of profiling 2.2.1:";; 1417 esac 1418 cat <<\_ACEOF 1419 1420Optional Features: 1421 --disable-option-checking ignore unrecognized --enable/--with options 1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1424 --enable-silent-rules less verbose build output (undo: "make V=1") 1425 --disable-silent-rules verbose build output (undo: "make V=0") 1426 --enable-dependency-tracking 1427 do not reject slow dependency extractors 1428 --disable-dependency-tracking 1429 speeds up one-time build 1430 --enable-static[=PKGS] build static libraries [default=no] 1431 --enable-shared[=PKGS] build shared libraries [default=yes] 1432 --enable-fast-install[=PKGS] 1433 optimize for fast installation [default=yes] 1434 --disable-libtool-lock avoid locking (might break parallel builds) 1435 1436Optional Packages: 1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1439 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1440 both] 1441 --with-aix-soname=aix|svr4|both 1442 shared library versioning (aka "SONAME") variant to 1443 provide on AIX, [default=aix]. 1444 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1445 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1446 compiler's sysroot if not specified). 1447 --with-gaproot=<path> specify root of GAP installation 1448 1449Some influential environment variables: 1450 CC C compiler command 1451 CFLAGS C compiler flags 1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1453 nonstandard directory <lib dir> 1454 LIBS libraries to pass to the linker, e.g. -l<library> 1455 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1456 you have headers in a nonstandard directory <include dir> 1457 CXX C++ compiler command 1458 CXXFLAGS C++ compiler flags 1459 LT_SYS_LIBRARY_PATH 1460 User-defined run-time library search path. 1461 CPP C preprocessor 1462 CXXCPP C++ preprocessor 1463 1464Use these variables to override the choices made by `configure' or to help 1465it to find libraries and programs with nonstandard names/locations. 1466 1467Report bugs to the package provider. 1468_ACEOF 1469ac_status=$? 1470fi 1471 1472if test "$ac_init_help" = "recursive"; then 1473 # If there are subdirs, report their specific --help. 1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1475 test -d "$ac_dir" || 1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1477 continue 1478 ac_builddir=. 1479 1480case "$ac_dir" in 1481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1482*) 1483 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1484 # A ".." for each directory in $ac_dir_suffix. 1485 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1486 case $ac_top_builddir_sub in 1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1489 esac ;; 1490esac 1491ac_abs_top_builddir=$ac_pwd 1492ac_abs_builddir=$ac_pwd$ac_dir_suffix 1493# for backward compatibility: 1494ac_top_builddir=$ac_top_build_prefix 1495 1496case $srcdir in 1497 .) # We are building in place. 1498 ac_srcdir=. 1499 ac_top_srcdir=$ac_top_builddir_sub 1500 ac_abs_top_srcdir=$ac_pwd ;; 1501 [\\/]* | ?:[\\/]* ) # Absolute name. 1502 ac_srcdir=$srcdir$ac_dir_suffix; 1503 ac_top_srcdir=$srcdir 1504 ac_abs_top_srcdir=$srcdir ;; 1505 *) # Relative name. 1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1507 ac_top_srcdir=$ac_top_build_prefix$srcdir 1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1509esac 1510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1511 1512 cd "$ac_dir" || { ac_status=$?; continue; } 1513 # Check for guested configure. 1514 if test -f "$ac_srcdir/configure.gnu"; then 1515 echo && 1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1517 elif test -f "$ac_srcdir/configure"; then 1518 echo && 1519 $SHELL "$ac_srcdir/configure" --help=recursive 1520 else 1521 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1522 fi || ac_status=$? 1523 cd "$ac_pwd" || { ac_status=$?; break; } 1524 done 1525fi 1526 1527test -n "$ac_init_help" && exit $ac_status 1528if $ac_init_version; then 1529 cat <<\_ACEOF 1530profiling configure 2.2.1 1531generated by GNU Autoconf 2.69 1532 1533Copyright (C) 2012 Free Software Foundation, Inc. 1534This configure script is free software; the Free Software Foundation 1535gives unlimited permission to copy, distribute and modify it. 1536_ACEOF 1537 exit 1538fi 1539 1540## ------------------------ ## 1541## Autoconf initialization. ## 1542## ------------------------ ## 1543 1544# ac_fn_c_try_compile LINENO 1545# -------------------------- 1546# Try to compile conftest.$ac_ext, and return whether this succeeded. 1547ac_fn_c_try_compile () 1548{ 1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1550 rm -f conftest.$ac_objext 1551 if { { ac_try="$ac_compile" 1552case "(($ac_try" in 1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1554 *) ac_try_echo=$ac_try;; 1555esac 1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1557$as_echo "$ac_try_echo"; } >&5 1558 (eval "$ac_compile") 2>conftest.err 1559 ac_status=$? 1560 if test -s conftest.err; then 1561 grep -v '^ *+' conftest.err >conftest.er1 1562 cat conftest.er1 >&5 1563 mv -f conftest.er1 conftest.err 1564 fi 1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1566 test $ac_status = 0; } && { 1567 test -z "$ac_c_werror_flag" || 1568 test ! -s conftest.err 1569 } && test -s conftest.$ac_objext; then : 1570 ac_retval=0 1571else 1572 $as_echo "$as_me: failed program was:" >&5 1573sed 's/^/| /' conftest.$ac_ext >&5 1574 1575 ac_retval=1 1576fi 1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1578 as_fn_set_status $ac_retval 1579 1580} # ac_fn_c_try_compile 1581 1582# ac_fn_cxx_try_compile LINENO 1583# ---------------------------- 1584# Try to compile conftest.$ac_ext, and return whether this succeeded. 1585ac_fn_cxx_try_compile () 1586{ 1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1588 rm -f conftest.$ac_objext 1589 if { { ac_try="$ac_compile" 1590case "(($ac_try" in 1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1592 *) ac_try_echo=$ac_try;; 1593esac 1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1595$as_echo "$ac_try_echo"; } >&5 1596 (eval "$ac_compile") 2>conftest.err 1597 ac_status=$? 1598 if test -s conftest.err; then 1599 grep -v '^ *+' conftest.err >conftest.er1 1600 cat conftest.er1 >&5 1601 mv -f conftest.er1 conftest.err 1602 fi 1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1604 test $ac_status = 0; } && { 1605 test -z "$ac_cxx_werror_flag" || 1606 test ! -s conftest.err 1607 } && test -s conftest.$ac_objext; then : 1608 ac_retval=0 1609else 1610 $as_echo "$as_me: failed program was:" >&5 1611sed 's/^/| /' conftest.$ac_ext >&5 1612 1613 ac_retval=1 1614fi 1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1616 as_fn_set_status $ac_retval 1617 1618} # ac_fn_cxx_try_compile 1619 1620# ac_fn_c_try_link LINENO 1621# ----------------------- 1622# Try to link conftest.$ac_ext, and return whether this succeeded. 1623ac_fn_c_try_link () 1624{ 1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1626 rm -f conftest.$ac_objext conftest$ac_exeext 1627 if { { ac_try="$ac_link" 1628case "(($ac_try" in 1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1630 *) ac_try_echo=$ac_try;; 1631esac 1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1633$as_echo "$ac_try_echo"; } >&5 1634 (eval "$ac_link") 2>conftest.err 1635 ac_status=$? 1636 if test -s conftest.err; then 1637 grep -v '^ *+' conftest.err >conftest.er1 1638 cat conftest.er1 >&5 1639 mv -f conftest.er1 conftest.err 1640 fi 1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1642 test $ac_status = 0; } && { 1643 test -z "$ac_c_werror_flag" || 1644 test ! -s conftest.err 1645 } && test -s conftest$ac_exeext && { 1646 test "$cross_compiling" = yes || 1647 test -x conftest$ac_exeext 1648 }; then : 1649 ac_retval=0 1650else 1651 $as_echo "$as_me: failed program was:" >&5 1652sed 's/^/| /' conftest.$ac_ext >&5 1653 1654 ac_retval=1 1655fi 1656 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1657 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1658 # interfere with the next link command; also delete a directory that is 1659 # left behind by Apple's compiler. We do this before executing the actions. 1660 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1662 as_fn_set_status $ac_retval 1663 1664} # ac_fn_c_try_link 1665 1666# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1667# ------------------------------------------------------- 1668# Tests whether HEADER exists and can be compiled using the include files in 1669# INCLUDES, setting the cache variable VAR accordingly. 1670ac_fn_c_check_header_compile () 1671{ 1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1674$as_echo_n "checking for $2... " >&6; } 1675if eval \${$3+:} false; then : 1676 $as_echo_n "(cached) " >&6 1677else 1678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1679/* end confdefs.h. */ 1680$4 1681#include <$2> 1682_ACEOF 1683if ac_fn_c_try_compile "$LINENO"; then : 1684 eval "$3=yes" 1685else 1686 eval "$3=no" 1687fi 1688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1689fi 1690eval ac_res=\$$3 1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1692$as_echo "$ac_res" >&6; } 1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1694 1695} # ac_fn_c_check_header_compile 1696 1697# ac_fn_c_try_cpp LINENO 1698# ---------------------- 1699# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1700ac_fn_c_try_cpp () 1701{ 1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1703 if { { ac_try="$ac_cpp conftest.$ac_ext" 1704case "(($ac_try" in 1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1706 *) ac_try_echo=$ac_try;; 1707esac 1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1709$as_echo "$ac_try_echo"; } >&5 1710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1711 ac_status=$? 1712 if test -s conftest.err; then 1713 grep -v '^ *+' conftest.err >conftest.er1 1714 cat conftest.er1 >&5 1715 mv -f conftest.er1 conftest.err 1716 fi 1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1718 test $ac_status = 0; } > conftest.i && { 1719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1720 test ! -s conftest.err 1721 }; then : 1722 ac_retval=0 1723else 1724 $as_echo "$as_me: failed program was:" >&5 1725sed 's/^/| /' conftest.$ac_ext >&5 1726 1727 ac_retval=1 1728fi 1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1730 as_fn_set_status $ac_retval 1731 1732} # ac_fn_c_try_cpp 1733 1734# ac_fn_c_try_run LINENO 1735# ---------------------- 1736# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1737# that executables *can* be run. 1738ac_fn_c_try_run () 1739{ 1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1741 if { { ac_try="$ac_link" 1742case "(($ac_try" in 1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1744 *) ac_try_echo=$ac_try;; 1745esac 1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1747$as_echo "$ac_try_echo"; } >&5 1748 (eval "$ac_link") 2>&5 1749 ac_status=$? 1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1751 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1752 { { case "(($ac_try" in 1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1754 *) ac_try_echo=$ac_try;; 1755esac 1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1757$as_echo "$ac_try_echo"; } >&5 1758 (eval "$ac_try") 2>&5 1759 ac_status=$? 1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1761 test $ac_status = 0; }; }; then : 1762 ac_retval=0 1763else 1764 $as_echo "$as_me: program exited with status $ac_status" >&5 1765 $as_echo "$as_me: failed program was:" >&5 1766sed 's/^/| /' conftest.$ac_ext >&5 1767 1768 ac_retval=$ac_status 1769fi 1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1772 as_fn_set_status $ac_retval 1773 1774} # ac_fn_c_try_run 1775 1776# ac_fn_c_check_func LINENO FUNC VAR 1777# ---------------------------------- 1778# Tests whether FUNC exists, setting the cache variable VAR accordingly 1779ac_fn_c_check_func () 1780{ 1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1783$as_echo_n "checking for $2... " >&6; } 1784if eval \${$3+:} false; then : 1785 $as_echo_n "(cached) " >&6 1786else 1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1788/* end confdefs.h. */ 1789/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1790 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1791#define $2 innocuous_$2 1792 1793/* System header to define __stub macros and hopefully few prototypes, 1794 which can conflict with char $2 (); below. 1795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1796 <limits.h> exists even on freestanding compilers. */ 1797 1798#ifdef __STDC__ 1799# include <limits.h> 1800#else 1801# include <assert.h> 1802#endif 1803 1804#undef $2 1805 1806/* Override any GCC internal prototype to avoid an error. 1807 Use char because int might match the return type of a GCC 1808 builtin and then its argument prototype would still apply. */ 1809#ifdef __cplusplus 1810extern "C" 1811#endif 1812char $2 (); 1813/* The GNU C library defines this for functions which it implements 1814 to always fail with ENOSYS. Some functions are actually named 1815 something starting with __ and the normal name is an alias. */ 1816#if defined __stub_$2 || defined __stub___$2 1817choke me 1818#endif 1819 1820int 1821main () 1822{ 1823return $2 (); 1824 ; 1825 return 0; 1826} 1827_ACEOF 1828if ac_fn_c_try_link "$LINENO"; then : 1829 eval "$3=yes" 1830else 1831 eval "$3=no" 1832fi 1833rm -f core conftest.err conftest.$ac_objext \ 1834 conftest$ac_exeext conftest.$ac_ext 1835fi 1836eval ac_res=\$$3 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1838$as_echo "$ac_res" >&6; } 1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1840 1841} # ac_fn_c_check_func 1842 1843# ac_fn_cxx_try_cpp LINENO 1844# ------------------------ 1845# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1846ac_fn_cxx_try_cpp () 1847{ 1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1849 if { { ac_try="$ac_cpp conftest.$ac_ext" 1850case "(($ac_try" in 1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1852 *) ac_try_echo=$ac_try;; 1853esac 1854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1855$as_echo "$ac_try_echo"; } >&5 1856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1857 ac_status=$? 1858 if test -s conftest.err; then 1859 grep -v '^ *+' conftest.err >conftest.er1 1860 cat conftest.er1 >&5 1861 mv -f conftest.er1 conftest.err 1862 fi 1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1864 test $ac_status = 0; } > conftest.i && { 1865 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1866 test ! -s conftest.err 1867 }; then : 1868 ac_retval=0 1869else 1870 $as_echo "$as_me: failed program was:" >&5 1871sed 's/^/| /' conftest.$ac_ext >&5 1872 1873 ac_retval=1 1874fi 1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1876 as_fn_set_status $ac_retval 1877 1878} # ac_fn_cxx_try_cpp 1879 1880# ac_fn_cxx_try_link LINENO 1881# ------------------------- 1882# Try to link conftest.$ac_ext, and return whether this succeeded. 1883ac_fn_cxx_try_link () 1884{ 1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1886 rm -f conftest.$ac_objext conftest$ac_exeext 1887 if { { ac_try="$ac_link" 1888case "(($ac_try" in 1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1890 *) ac_try_echo=$ac_try;; 1891esac 1892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1893$as_echo "$ac_try_echo"; } >&5 1894 (eval "$ac_link") 2>conftest.err 1895 ac_status=$? 1896 if test -s conftest.err; then 1897 grep -v '^ *+' conftest.err >conftest.er1 1898 cat conftest.er1 >&5 1899 mv -f conftest.er1 conftest.err 1900 fi 1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1902 test $ac_status = 0; } && { 1903 test -z "$ac_cxx_werror_flag" || 1904 test ! -s conftest.err 1905 } && test -s conftest$ac_exeext && { 1906 test "$cross_compiling" = yes || 1907 test -x conftest$ac_exeext 1908 }; then : 1909 ac_retval=0 1910else 1911 $as_echo "$as_me: failed program was:" >&5 1912sed 's/^/| /' conftest.$ac_ext >&5 1913 1914 ac_retval=1 1915fi 1916 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1917 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1918 # interfere with the next link command; also delete a directory that is 1919 # left behind by Apple's compiler. We do this before executing the actions. 1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1922 as_fn_set_status $ac_retval 1923 1924} # ac_fn_cxx_try_link 1925cat >config.log <<_ACEOF 1926This file contains any messages produced by compilers while 1927running configure, to aid debugging if configure makes a mistake. 1928 1929It was created by profiling $as_me 2.2.1, which was 1930generated by GNU Autoconf 2.69. Invocation command line was 1931 1932 $ $0 $@ 1933 1934_ACEOF 1935exec 5>>config.log 1936{ 1937cat <<_ASUNAME 1938## --------- ## 1939## Platform. ## 1940## --------- ## 1941 1942hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1943uname -m = `(uname -m) 2>/dev/null || echo unknown` 1944uname -r = `(uname -r) 2>/dev/null || echo unknown` 1945uname -s = `(uname -s) 2>/dev/null || echo unknown` 1946uname -v = `(uname -v) 2>/dev/null || echo unknown` 1947 1948/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1949/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1950 1951/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1952/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1953/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1954/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1955/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1956/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1957/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1958 1959_ASUNAME 1960 1961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1962for as_dir in $PATH 1963do 1964 IFS=$as_save_IFS 1965 test -z "$as_dir" && as_dir=. 1966 $as_echo "PATH: $as_dir" 1967 done 1968IFS=$as_save_IFS 1969 1970} >&5 1971 1972cat >&5 <<_ACEOF 1973 1974 1975## ----------- ## 1976## Core tests. ## 1977## ----------- ## 1978 1979_ACEOF 1980 1981 1982# Keep a trace of the command line. 1983# Strip out --no-create and --no-recursion so they do not pile up. 1984# Strip out --silent because we don't want to record it for future runs. 1985# Also quote any args containing shell meta-characters. 1986# Make two passes to allow for proper duplicate-argument suppression. 1987ac_configure_args= 1988ac_configure_args0= 1989ac_configure_args1= 1990ac_must_keep_next=false 1991for ac_pass in 1 2 1992do 1993 for ac_arg 1994 do 1995 case $ac_arg in 1996 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1998 | -silent | --silent | --silen | --sile | --sil) 1999 continue ;; 2000 *\'*) 2001 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2002 esac 2003 case $ac_pass in 2004 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2005 2) 2006 as_fn_append ac_configure_args1 " '$ac_arg'" 2007 if test $ac_must_keep_next = true; then 2008 ac_must_keep_next=false # Got value, back to normal. 2009 else 2010 case $ac_arg in 2011 *=* | --config-cache | -C | -disable-* | --disable-* \ 2012 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2013 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2014 | -with-* | --with-* | -without-* | --without-* | --x) 2015 case "$ac_configure_args0 " in 2016 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2017 esac 2018 ;; 2019 -* ) ac_must_keep_next=true ;; 2020 esac 2021 fi 2022 as_fn_append ac_configure_args " '$ac_arg'" 2023 ;; 2024 esac 2025 done 2026done 2027{ ac_configure_args0=; unset ac_configure_args0;} 2028{ ac_configure_args1=; unset ac_configure_args1;} 2029 2030# When interrupted or exit'd, cleanup temporary files, and complete 2031# config.log. We remove comments because anyway the quotes in there 2032# would cause problems or look ugly. 2033# WARNING: Use '\'' to represent an apostrophe within the trap. 2034# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2035trap 'exit_status=$? 2036 # Save into config.log some information that might help in debugging. 2037 { 2038 echo 2039 2040 $as_echo "## ---------------- ## 2041## Cache variables. ## 2042## ---------------- ##" 2043 echo 2044 # The following way of writing the cache mishandles newlines in values, 2045( 2046 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2047 eval ac_val=\$$ac_var 2048 case $ac_val in #( 2049 *${as_nl}*) 2050 case $ac_var in #( 2051 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2052$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2053 esac 2054 case $ac_var in #( 2055 _ | IFS | as_nl) ;; #( 2056 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2057 *) { eval $ac_var=; unset $ac_var;} ;; 2058 esac ;; 2059 esac 2060 done 2061 (set) 2>&1 | 2062 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2063 *${as_nl}ac_space=\ *) 2064 sed -n \ 2065 "s/'\''/'\''\\\\'\'''\''/g; 2066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2067 ;; #( 2068 *) 2069 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2070 ;; 2071 esac | 2072 sort 2073) 2074 echo 2075 2076 $as_echo "## ----------------- ## 2077## Output variables. ## 2078## ----------------- ##" 2079 echo 2080 for ac_var in $ac_subst_vars 2081 do 2082 eval ac_val=\$$ac_var 2083 case $ac_val in 2084 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2085 esac 2086 $as_echo "$ac_var='\''$ac_val'\''" 2087 done | sort 2088 echo 2089 2090 if test -n "$ac_subst_files"; then 2091 $as_echo "## ------------------- ## 2092## File substitutions. ## 2093## ------------------- ##" 2094 echo 2095 for ac_var in $ac_subst_files 2096 do 2097 eval ac_val=\$$ac_var 2098 case $ac_val in 2099 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2100 esac 2101 $as_echo "$ac_var='\''$ac_val'\''" 2102 done | sort 2103 echo 2104 fi 2105 2106 if test -s confdefs.h; then 2107 $as_echo "## ----------- ## 2108## confdefs.h. ## 2109## ----------- ##" 2110 echo 2111 cat confdefs.h 2112 echo 2113 fi 2114 test "$ac_signal" != 0 && 2115 $as_echo "$as_me: caught signal $ac_signal" 2116 $as_echo "$as_me: exit $exit_status" 2117 } >&5 2118 rm -f core *.core core.conftest.* && 2119 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2120 exit $exit_status 2121' 0 2122for ac_signal in 1 2 13 15; do 2123 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2124done 2125ac_signal=0 2126 2127# confdefs.h avoids OS command line length limits that DEFS can exceed. 2128rm -f -r conftest* confdefs.h 2129 2130$as_echo "/* confdefs.h */" > confdefs.h 2131 2132# Predefined preprocessor variables. 2133 2134cat >>confdefs.h <<_ACEOF 2135#define PACKAGE_NAME "$PACKAGE_NAME" 2136_ACEOF 2137 2138cat >>confdefs.h <<_ACEOF 2139#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2140_ACEOF 2141 2142cat >>confdefs.h <<_ACEOF 2143#define PACKAGE_VERSION "$PACKAGE_VERSION" 2144_ACEOF 2145 2146cat >>confdefs.h <<_ACEOF 2147#define PACKAGE_STRING "$PACKAGE_STRING" 2148_ACEOF 2149 2150cat >>confdefs.h <<_ACEOF 2151#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2152_ACEOF 2153 2154cat >>confdefs.h <<_ACEOF 2155#define PACKAGE_URL "$PACKAGE_URL" 2156_ACEOF 2157 2158 2159# Let the site file select an alternate cache file if it wants to. 2160# Prefer an explicitly selected file to automatically selected ones. 2161ac_site_file1=NONE 2162ac_site_file2=NONE 2163if test -n "$CONFIG_SITE"; then 2164 # We do not want a PATH search for config.site. 2165 case $CONFIG_SITE in #(( 2166 -*) ac_site_file1=./$CONFIG_SITE;; 2167 */*) ac_site_file1=$CONFIG_SITE;; 2168 *) ac_site_file1=./$CONFIG_SITE;; 2169 esac 2170elif test "x$prefix" != xNONE; then 2171 ac_site_file1=$prefix/share/config.site 2172 ac_site_file2=$prefix/etc/config.site 2173else 2174 ac_site_file1=$ac_default_prefix/share/config.site 2175 ac_site_file2=$ac_default_prefix/etc/config.site 2176fi 2177for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2178do 2179 test "x$ac_site_file" = xNONE && continue 2180 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2182$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2183 sed 's/^/| /' "$ac_site_file" >&5 2184 . "$ac_site_file" \ 2185 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2187as_fn_error $? "failed to load site script $ac_site_file 2188See \`config.log' for more details" "$LINENO" 5; } 2189 fi 2190done 2191 2192if test -r "$cache_file"; then 2193 # Some versions of bash will fail to source /dev/null (special files 2194 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2195 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2196 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2197$as_echo "$as_me: loading cache $cache_file" >&6;} 2198 case $cache_file in 2199 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2200 *) . "./$cache_file";; 2201 esac 2202 fi 2203else 2204 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2205$as_echo "$as_me: creating cache $cache_file" >&6;} 2206 >$cache_file 2207fi 2208 2209# Check that the precious variables saved in the cache have kept the same 2210# value. 2211ac_cache_corrupted=false 2212for ac_var in $ac_precious_vars; do 2213 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2214 eval ac_new_set=\$ac_env_${ac_var}_set 2215 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2216 eval ac_new_val=\$ac_env_${ac_var}_value 2217 case $ac_old_set,$ac_new_set in 2218 set,) 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2220$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2221 ac_cache_corrupted=: ;; 2222 ,set) 2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2224$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2225 ac_cache_corrupted=: ;; 2226 ,);; 2227 *) 2228 if test "x$ac_old_val" != "x$ac_new_val"; then 2229 # differences in whitespace do not lead to failure. 2230 ac_old_val_w=`echo x $ac_old_val` 2231 ac_new_val_w=`echo x $ac_new_val` 2232 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2234$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2235 ac_cache_corrupted=: 2236 else 2237 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2238$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2239 eval $ac_var=\$ac_old_val 2240 fi 2241 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2242$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2243 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2244$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2245 fi;; 2246 esac 2247 # Pass precious variables to config.status. 2248 if test "$ac_new_set" = set; then 2249 case $ac_new_val in 2250 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2251 *) ac_arg=$ac_var=$ac_new_val ;; 2252 esac 2253 case " $ac_configure_args " in 2254 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2255 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2256 esac 2257 fi 2258done 2259if $ac_cache_corrupted; then 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2263$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2264 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2265fi 2266## -------------------- ## 2267## Main body of script. ## 2268## -------------------- ## 2269 2270ac_ext=c 2271ac_cpp='$CPP $CPPFLAGS' 2272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2274ac_compiler_gnu=$ac_cv_c_compiler_gnu 2275 2276 2277 2278ac_config_headers="$ac_config_headers src/pkgconfig.h:cnf/pkgconfig.h.in" 2279 2280 2281ac_aux_dir= 2282for ac_dir in cnf "$srcdir"/cnf; do 2283 if test -f "$ac_dir/install-sh"; then 2284 ac_aux_dir=$ac_dir 2285 ac_install_sh="$ac_aux_dir/install-sh -c" 2286 break 2287 elif test -f "$ac_dir/install.sh"; then 2288 ac_aux_dir=$ac_dir 2289 ac_install_sh="$ac_aux_dir/install.sh -c" 2290 break 2291 elif test -f "$ac_dir/shtool"; then 2292 ac_aux_dir=$ac_dir 2293 ac_install_sh="$ac_aux_dir/shtool install -c" 2294 break 2295 fi 2296done 2297if test -z "$ac_aux_dir"; then 2298 as_fn_error $? "cannot find install-sh, install.sh, or shtool in cnf \"$srcdir\"/cnf" "$LINENO" 5 2299fi 2300 2301# These three variables are undocumented and unsupported, 2302# and are intended to be withdrawn in a future Autoconf release. 2303# They can cause serious problems if a builder's source tree is in a directory 2304# whose full name contains unusual characters. 2305ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2306ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2307ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2308 2309 2310 2311# Make sure we can run config.sub. 2312$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2313 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2314 2315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2316$as_echo_n "checking build system type... " >&6; } 2317if ${ac_cv_build+:} false; then : 2318 $as_echo_n "(cached) " >&6 2319else 2320 ac_build_alias=$build_alias 2321test "x$ac_build_alias" = x && 2322 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2323test "x$ac_build_alias" = x && 2324 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2325ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2326 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2327 2328fi 2329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2330$as_echo "$ac_cv_build" >&6; } 2331case $ac_cv_build in 2332*-*-*) ;; 2333*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2334esac 2335build=$ac_cv_build 2336ac_save_IFS=$IFS; IFS='-' 2337set x $ac_cv_build 2338shift 2339build_cpu=$1 2340build_vendor=$2 2341shift; shift 2342# Remember, the first character of IFS is used to create $*, 2343# except with old shells: 2344build_os=$* 2345IFS=$ac_save_IFS 2346case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2347 2348 2349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2350$as_echo_n "checking host system type... " >&6; } 2351if ${ac_cv_host+:} false; then : 2352 $as_echo_n "(cached) " >&6 2353else 2354 if test "x$host_alias" = x; then 2355 ac_cv_host=$ac_cv_build 2356else 2357 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2358 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2359fi 2360 2361fi 2362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2363$as_echo "$ac_cv_host" >&6; } 2364case $ac_cv_host in 2365*-*-*) ;; 2366*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2367esac 2368host=$ac_cv_host 2369ac_save_IFS=$IFS; IFS='-' 2370set x $ac_cv_host 2371shift 2372host_cpu=$1 2373host_vendor=$2 2374shift; shift 2375# Remember, the first character of IFS is used to create $*, 2376# except with old shells: 2377host_os=$* 2378IFS=$ac_save_IFS 2379case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2380 2381 2382 2383am__api_version='1.16' 2384 2385# Find a good install program. We prefer a C program (faster), 2386# so one script is as good as another. But avoid the broken or 2387# incompatible versions: 2388# SysV /etc/install, /usr/sbin/install 2389# SunOS /usr/etc/install 2390# IRIX /sbin/install 2391# AIX /bin/install 2392# AmigaOS /C/install, which installs bootblocks on floppy discs 2393# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2394# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2395# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2396# OS/2's system install, which has a completely different semantic 2397# ./install, which can be erroneously created by make from ./install.sh. 2398# Reject install programs that cannot install multiple files. 2399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2400$as_echo_n "checking for a BSD-compatible install... " >&6; } 2401if test -z "$INSTALL"; then 2402if ${ac_cv_path_install+:} false; then : 2403 $as_echo_n "(cached) " >&6 2404else 2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2406for as_dir in $PATH 2407do 2408 IFS=$as_save_IFS 2409 test -z "$as_dir" && as_dir=. 2410 # Account for people who put trailing slashes in PATH elements. 2411case $as_dir/ in #(( 2412 ./ | .// | /[cC]/* | \ 2413 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2414 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2415 /usr/ucb/* ) ;; 2416 *) 2417 # OSF1 and SCO ODT 3.0 have their own names for install. 2418 # Don't use installbsd from OSF since it installs stuff as root 2419 # by default. 2420 for ac_prog in ginstall scoinst install; do 2421 for ac_exec_ext in '' $ac_executable_extensions; do 2422 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2423 if test $ac_prog = install && 2424 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2425 # AIX install. It has an incompatible calling convention. 2426 : 2427 elif test $ac_prog = install && 2428 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2429 # program-specific install script used by HP pwplus--don't use. 2430 : 2431 else 2432 rm -rf conftest.one conftest.two conftest.dir 2433 echo one > conftest.one 2434 echo two > conftest.two 2435 mkdir conftest.dir 2436 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2437 test -s conftest.one && test -s conftest.two && 2438 test -s conftest.dir/conftest.one && 2439 test -s conftest.dir/conftest.two 2440 then 2441 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2442 break 3 2443 fi 2444 fi 2445 fi 2446 done 2447 done 2448 ;; 2449esac 2450 2451 done 2452IFS=$as_save_IFS 2453 2454rm -rf conftest.one conftest.two conftest.dir 2455 2456fi 2457 if test "${ac_cv_path_install+set}" = set; then 2458 INSTALL=$ac_cv_path_install 2459 else 2460 # As a last resort, use the slow shell script. Don't cache a 2461 # value for INSTALL within a source directory, because that will 2462 # break other packages using the cache if that directory is 2463 # removed, or if the value is a relative name. 2464 INSTALL=$ac_install_sh 2465 fi 2466fi 2467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2468$as_echo "$INSTALL" >&6; } 2469 2470# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2471# It thinks the first close brace ends the variable substitution. 2472test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2473 2474test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2475 2476test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2477 2478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2479$as_echo_n "checking whether build environment is sane... " >&6; } 2480# Reject unsafe characters in $srcdir or the absolute working directory 2481# name. Accept space and tab only in the latter. 2482am_lf=' 2483' 2484case `pwd` in 2485 *[\\\"\#\$\&\'\`$am_lf]*) 2486 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2487esac 2488case $srcdir in 2489 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2490 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2491esac 2492 2493# Do 'set' in a subshell so we don't clobber the current shell's 2494# arguments. Must try -L first in case configure is actually a 2495# symlink; some systems play weird games with the mod time of symlinks 2496# (eg FreeBSD returns the mod time of the symlink's containing 2497# directory). 2498if ( 2499 am_has_slept=no 2500 for am_try in 1 2; do 2501 echo "timestamp, slept: $am_has_slept" > conftest.file 2502 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2503 if test "$*" = "X"; then 2504 # -L didn't work. 2505 set X `ls -t "$srcdir/configure" conftest.file` 2506 fi 2507 if test "$*" != "X $srcdir/configure conftest.file" \ 2508 && test "$*" != "X conftest.file $srcdir/configure"; then 2509 2510 # If neither matched, then we have a broken ls. This can happen 2511 # if, for instance, CONFIG_SHELL is bash and it inherits a 2512 # broken ls alias from the environment. This has actually 2513 # happened. Such a system could not be considered "sane". 2514 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2515 alias in your environment" "$LINENO" 5 2516 fi 2517 if test "$2" = conftest.file || test $am_try -eq 2; then 2518 break 2519 fi 2520 # Just in case. 2521 sleep 1 2522 am_has_slept=yes 2523 done 2524 test "$2" = conftest.file 2525 ) 2526then 2527 # Ok. 2528 : 2529else 2530 as_fn_error $? "newly created file is older than distributed files! 2531Check your system clock" "$LINENO" 5 2532fi 2533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2534$as_echo "yes" >&6; } 2535# If we didn't sleep, we still need to ensure time stamps of config.status and 2536# generated files are strictly newer. 2537am_sleep_pid= 2538if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2539 ( sleep 1 ) & 2540 am_sleep_pid=$! 2541fi 2542 2543rm -f conftest.file 2544 2545test "$program_prefix" != NONE && 2546 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2547# Use a double $ so make ignores it. 2548test "$program_suffix" != NONE && 2549 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2550# Double any \ or $. 2551# By default was `s,x,x', remove it if useless. 2552ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2553program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2554 2555# Expand $ac_aux_dir to an absolute path. 2556am_aux_dir=`cd "$ac_aux_dir" && pwd` 2557 2558if test x"${MISSING+set}" != xset; then 2559 case $am_aux_dir in 2560 *\ * | *\ *) 2561 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2562 *) 2563 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2564 esac 2565fi 2566# Use eval to expand $SHELL 2567if eval "$MISSING --is-lightweight"; then 2568 am_missing_run="$MISSING " 2569else 2570 am_missing_run= 2571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2572$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2573fi 2574 2575if test x"${install_sh+set}" != xset; then 2576 case $am_aux_dir in 2577 *\ * | *\ *) 2578 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2579 *) 2580 install_sh="\${SHELL} $am_aux_dir/install-sh" 2581 esac 2582fi 2583 2584# Installed binaries are usually stripped using 'strip' when the user 2585# run "make install-strip". However 'strip' might not be the right 2586# tool to use in cross-compilation environments, therefore Automake 2587# will honor the 'STRIP' environment variable to overrule this program. 2588if test "$cross_compiling" != no; then 2589 if test -n "$ac_tool_prefix"; then 2590 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2591set dummy ${ac_tool_prefix}strip; ac_word=$2 2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2593$as_echo_n "checking for $ac_word... " >&6; } 2594if ${ac_cv_prog_STRIP+:} false; then : 2595 $as_echo_n "(cached) " >&6 2596else 2597 if test -n "$STRIP"; then 2598 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2599else 2600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2601for as_dir in $PATH 2602do 2603 IFS=$as_save_IFS 2604 test -z "$as_dir" && as_dir=. 2605 for ac_exec_ext in '' $ac_executable_extensions; do 2606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2607 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2609 break 2 2610 fi 2611done 2612 done 2613IFS=$as_save_IFS 2614 2615fi 2616fi 2617STRIP=$ac_cv_prog_STRIP 2618if test -n "$STRIP"; then 2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2620$as_echo "$STRIP" >&6; } 2621else 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2623$as_echo "no" >&6; } 2624fi 2625 2626 2627fi 2628if test -z "$ac_cv_prog_STRIP"; then 2629 ac_ct_STRIP=$STRIP 2630 # Extract the first word of "strip", so it can be a program name with args. 2631set dummy strip; ac_word=$2 2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2633$as_echo_n "checking for $ac_word... " >&6; } 2634if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2635 $as_echo_n "(cached) " >&6 2636else 2637 if test -n "$ac_ct_STRIP"; then 2638 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2639else 2640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2641for as_dir in $PATH 2642do 2643 IFS=$as_save_IFS 2644 test -z "$as_dir" && as_dir=. 2645 for ac_exec_ext in '' $ac_executable_extensions; do 2646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2647 ac_cv_prog_ac_ct_STRIP="strip" 2648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2649 break 2 2650 fi 2651done 2652 done 2653IFS=$as_save_IFS 2654 2655fi 2656fi 2657ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2658if test -n "$ac_ct_STRIP"; then 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2660$as_echo "$ac_ct_STRIP" >&6; } 2661else 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2663$as_echo "no" >&6; } 2664fi 2665 2666 if test "x$ac_ct_STRIP" = x; then 2667 STRIP=":" 2668 else 2669 case $cross_compiling:$ac_tool_warned in 2670yes:) 2671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2673ac_tool_warned=yes ;; 2674esac 2675 STRIP=$ac_ct_STRIP 2676 fi 2677else 2678 STRIP="$ac_cv_prog_STRIP" 2679fi 2680 2681fi 2682INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2683 2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2685$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2686if test -z "$MKDIR_P"; then 2687 if ${ac_cv_path_mkdir+:} false; then : 2688 $as_echo_n "(cached) " >&6 2689else 2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2691for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2692do 2693 IFS=$as_save_IFS 2694 test -z "$as_dir" && as_dir=. 2695 for ac_prog in mkdir gmkdir; do 2696 for ac_exec_ext in '' $ac_executable_extensions; do 2697 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2698 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2699 'mkdir (GNU coreutils) '* | \ 2700 'mkdir (coreutils) '* | \ 2701 'mkdir (fileutils) '4.1*) 2702 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2703 break 3;; 2704 esac 2705 done 2706 done 2707 done 2708IFS=$as_save_IFS 2709 2710fi 2711 2712 test -d ./--version && rmdir ./--version 2713 if test "${ac_cv_path_mkdir+set}" = set; then 2714 MKDIR_P="$ac_cv_path_mkdir -p" 2715 else 2716 # As a last resort, use the slow shell script. Don't cache a 2717 # value for MKDIR_P within a source directory, because that will 2718 # break other packages using the cache if that directory is 2719 # removed, or if the value is a relative name. 2720 MKDIR_P="$ac_install_sh -d" 2721 fi 2722fi 2723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2724$as_echo "$MKDIR_P" >&6; } 2725 2726for ac_prog in gawk mawk nawk awk 2727do 2728 # Extract the first word of "$ac_prog", so it can be a program name with args. 2729set dummy $ac_prog; ac_word=$2 2730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2731$as_echo_n "checking for $ac_word... " >&6; } 2732if ${ac_cv_prog_AWK+:} false; then : 2733 $as_echo_n "(cached) " >&6 2734else 2735 if test -n "$AWK"; then 2736 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2737else 2738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2739for as_dir in $PATH 2740do 2741 IFS=$as_save_IFS 2742 test -z "$as_dir" && as_dir=. 2743 for ac_exec_ext in '' $ac_executable_extensions; do 2744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2745 ac_cv_prog_AWK="$ac_prog" 2746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2747 break 2 2748 fi 2749done 2750 done 2751IFS=$as_save_IFS 2752 2753fi 2754fi 2755AWK=$ac_cv_prog_AWK 2756if test -n "$AWK"; then 2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2758$as_echo "$AWK" >&6; } 2759else 2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2761$as_echo "no" >&6; } 2762fi 2763 2764 2765 test -n "$AWK" && break 2766done 2767 2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2769$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2770set x ${MAKE-make} 2771ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2772if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2773 $as_echo_n "(cached) " >&6 2774else 2775 cat >conftest.make <<\_ACEOF 2776SHELL = /bin/sh 2777all: 2778 @echo '@@@%%%=$(MAKE)=@@@%%%' 2779_ACEOF 2780# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2781case `${MAKE-make} -f conftest.make 2>/dev/null` in 2782 *@@@%%%=?*=@@@%%%*) 2783 eval ac_cv_prog_make_${ac_make}_set=yes;; 2784 *) 2785 eval ac_cv_prog_make_${ac_make}_set=no;; 2786esac 2787rm -f conftest.make 2788fi 2789if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2791$as_echo "yes" >&6; } 2792 SET_MAKE= 2793else 2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2795$as_echo "no" >&6; } 2796 SET_MAKE="MAKE=${MAKE-make}" 2797fi 2798 2799rm -rf .tst 2>/dev/null 2800mkdir .tst 2>/dev/null 2801if test -d .tst; then 2802 am__leading_dot=. 2803else 2804 am__leading_dot=_ 2805fi 2806rmdir .tst 2>/dev/null 2807 2808# Check whether --enable-silent-rules was given. 2809if test "${enable_silent_rules+set}" = set; then : 2810 enableval=$enable_silent_rules; 2811fi 2812 2813case $enable_silent_rules in # ((( 2814 yes) AM_DEFAULT_VERBOSITY=0;; 2815 no) AM_DEFAULT_VERBOSITY=1;; 2816 *) AM_DEFAULT_VERBOSITY=1;; 2817esac 2818am_make=${MAKE-make} 2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2820$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2821if ${am_cv_make_support_nested_variables+:} false; then : 2822 $as_echo_n "(cached) " >&6 2823else 2824 if $as_echo 'TRUE=$(BAR$(V)) 2825BAR0=false 2826BAR1=true 2827V=1 2828am__doit: 2829 @$(TRUE) 2830.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2831 am_cv_make_support_nested_variables=yes 2832else 2833 am_cv_make_support_nested_variables=no 2834fi 2835fi 2836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2837$as_echo "$am_cv_make_support_nested_variables" >&6; } 2838if test $am_cv_make_support_nested_variables = yes; then 2839 AM_V='$(V)' 2840 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2841else 2842 AM_V=$AM_DEFAULT_VERBOSITY 2843 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2844fi 2845AM_BACKSLASH='\' 2846 2847if test "`cd $srcdir && pwd`" != "`pwd`"; then 2848 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2849 # is not polluted with repeated "-I." 2850 am__isrc=' -I$(srcdir)' 2851 # test to see if srcdir already configured 2852 if test -f $srcdir/config.status; then 2853 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2854 fi 2855fi 2856 2857# test whether we have cygpath 2858if test -z "$CYGPATH_W"; then 2859 if (cygpath --version) >/dev/null 2>/dev/null; then 2860 CYGPATH_W='cygpath -w' 2861 else 2862 CYGPATH_W=echo 2863 fi 2864fi 2865 2866 2867# Define the identity of the package. 2868 PACKAGE='profiling' 2869 VERSION='2.2.1' 2870 2871 2872cat >>confdefs.h <<_ACEOF 2873#define PACKAGE "$PACKAGE" 2874_ACEOF 2875 2876 2877cat >>confdefs.h <<_ACEOF 2878#define VERSION "$VERSION" 2879_ACEOF 2880 2881# Some tools Automake needs. 2882 2883ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2884 2885 2886AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2887 2888 2889AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2890 2891 2892AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2893 2894 2895MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2896 2897# For better backward compatibility. To be removed once Automake 1.9.x 2898# dies out for good. For more background, see: 2899# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2900# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2901mkdir_p='$(MKDIR_P)' 2902 2903# We need awk for the "check" target (and possibly the TAP driver). The 2904# system "awk" is bad on some platforms. 2905# Always define AMTAR for backward compatibility. Yes, it's still used 2906# in the wild :-( We should find a proper way to deprecate it ... 2907AMTAR='$${TAR-tar}' 2908 2909 2910# We'll loop over all known methods to create a tar archive until one works. 2911_am_tools='gnutar pax cpio none' 2912 2913am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2914 2915 2916 2917 2918 2919 2920# POSIX will say in a future version that running "rm -f" with no argument 2921# is OK; and we want to be able to make that assumption in our Makefile 2922# recipes. So use an aggressive probe to check that the usage we want is 2923# actually supported "in the wild" to an acceptable degree. 2924# See automake bug#10828. 2925# To make any issue more visible, cause the running configure to be aborted 2926# by default if the 'rm' program in use doesn't match our expectations; the 2927# user can still override this though. 2928if rm -f && rm -fr && rm -rf; then : OK; else 2929 cat >&2 <<'END' 2930Oops! 2931 2932Your 'rm' program seems unable to run without file operands specified 2933on the command line, even when the '-f' option is present. This is contrary 2934to the behaviour of most rm programs out there, and not conforming with 2935the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2936 2937Please tell bug-automake@gnu.org about your system, including the value 2938of your $PATH and any error possibly output before this message. This 2939can help us improve future automake versions. 2940 2941END 2942 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2943 echo 'Configuration will proceed anyway, since you have set the' >&2 2944 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2945 echo >&2 2946 else 2947 cat >&2 <<'END' 2948Aborting the configuration process, to ensure you take notice of the issue. 2949 2950You can download and install GNU coreutils to get an 'rm' implementation 2951that behaves properly: <https://www.gnu.org/software/coreutils/>. 2952 2953If you want to complete the configuration process using your problematic 2954'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2955to "yes", and re-run configure. 2956 2957END 2958 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2959 fi 2960fi 2961 2962# Check whether --enable-silent-rules was given. 2963if test "${enable_silent_rules+set}" = set; then : 2964 enableval=$enable_silent_rules; 2965fi 2966 2967case $enable_silent_rules in # ((( 2968 yes) AM_DEFAULT_VERBOSITY=0;; 2969 no) AM_DEFAULT_VERBOSITY=1;; 2970 *) AM_DEFAULT_VERBOSITY=0;; 2971esac 2972am_make=${MAKE-make} 2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2974$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2975if ${am_cv_make_support_nested_variables+:} false; then : 2976 $as_echo_n "(cached) " >&6 2977else 2978 if $as_echo 'TRUE=$(BAR$(V)) 2979BAR0=false 2980BAR1=true 2981V=1 2982am__doit: 2983 @$(TRUE) 2984.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2985 am_cv_make_support_nested_variables=yes 2986else 2987 am_cv_make_support_nested_variables=no 2988fi 2989fi 2990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2991$as_echo "$am_cv_make_support_nested_variables" >&6; } 2992if test $am_cv_make_support_nested_variables = yes; then 2993 AM_V='$(V)' 2994 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2995else 2996 AM_V=$AM_DEFAULT_VERBOSITY 2997 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2998fi 2999AM_BACKSLASH='\' 3000 3001DEPDIR="${am__leading_dot}deps" 3002 3003ac_config_commands="$ac_config_commands depfiles" 3004 3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3006$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3007cat > confinc.mk << 'END' 3008am__doit: 3009 @echo this is the am__doit target >confinc.out 3010.PHONY: am__doit 3011END 3012am__include="#" 3013am__quote= 3014# BSD make does it like this. 3015echo '.include "confinc.mk" # ignored' > confmf.BSD 3016# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3017echo 'include confinc.mk # ignored' > confmf.GNU 3018_am_result=no 3019for s in GNU BSD; do 3020 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3021 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3022 ac_status=$? 3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3024 (exit $ac_status); } 3025 case $?:`cat confinc.out 2>/dev/null` in #( 3026 '0:this is the am__doit target') : 3027 case $s in #( 3028 BSD) : 3029 am__include='.include' am__quote='"' ;; #( 3030 *) : 3031 am__include='include' am__quote='' ;; 3032esac ;; #( 3033 *) : 3034 ;; 3035esac 3036 if test "$am__include" != "#"; then 3037 _am_result="yes ($s style)" 3038 break 3039 fi 3040done 3041rm -f confinc.* confmf.* 3042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3043$as_echo "${_am_result}" >&6; } 3044 3045# Check whether --enable-dependency-tracking was given. 3046if test "${enable_dependency_tracking+set}" = set; then : 3047 enableval=$enable_dependency_tracking; 3048fi 3049 3050if test "x$enable_dependency_tracking" != xno; then 3051 am_depcomp="$ac_aux_dir/depcomp" 3052 AMDEPBACKSLASH='\' 3053 am__nodep='_no' 3054fi 3055 if test "x$enable_dependency_tracking" != xno; then 3056 AMDEP_TRUE= 3057 AMDEP_FALSE='#' 3058else 3059 AMDEP_TRUE='#' 3060 AMDEP_FALSE= 3061fi 3062 3063 3064ac_ext=c 3065ac_cpp='$CPP $CPPFLAGS' 3066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3068ac_compiler_gnu=$ac_cv_c_compiler_gnu 3069if test -n "$ac_tool_prefix"; then 3070 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3071set dummy ${ac_tool_prefix}gcc; ac_word=$2 3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3073$as_echo_n "checking for $ac_word... " >&6; } 3074if ${ac_cv_prog_CC+:} false; then : 3075 $as_echo_n "(cached) " >&6 3076else 3077 if test -n "$CC"; then 3078 ac_cv_prog_CC="$CC" # Let the user override the test. 3079else 3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3081for as_dir in $PATH 3082do 3083 IFS=$as_save_IFS 3084 test -z "$as_dir" && as_dir=. 3085 for ac_exec_ext in '' $ac_executable_extensions; do 3086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3087 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3089 break 2 3090 fi 3091done 3092 done 3093IFS=$as_save_IFS 3094 3095fi 3096fi 3097CC=$ac_cv_prog_CC 3098if test -n "$CC"; then 3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3100$as_echo "$CC" >&6; } 3101else 3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3103$as_echo "no" >&6; } 3104fi 3105 3106 3107fi 3108if test -z "$ac_cv_prog_CC"; then 3109 ac_ct_CC=$CC 3110 # Extract the first word of "gcc", so it can be a program name with args. 3111set dummy gcc; ac_word=$2 3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3113$as_echo_n "checking for $ac_word... " >&6; } 3114if ${ac_cv_prog_ac_ct_CC+:} false; then : 3115 $as_echo_n "(cached) " >&6 3116else 3117 if test -n "$ac_ct_CC"; then 3118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3119else 3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3121for as_dir in $PATH 3122do 3123 IFS=$as_save_IFS 3124 test -z "$as_dir" && as_dir=. 3125 for ac_exec_ext in '' $ac_executable_extensions; do 3126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3127 ac_cv_prog_ac_ct_CC="gcc" 3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3129 break 2 3130 fi 3131done 3132 done 3133IFS=$as_save_IFS 3134 3135fi 3136fi 3137ac_ct_CC=$ac_cv_prog_ac_ct_CC 3138if test -n "$ac_ct_CC"; then 3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3140$as_echo "$ac_ct_CC" >&6; } 3141else 3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3143$as_echo "no" >&6; } 3144fi 3145 3146 if test "x$ac_ct_CC" = x; then 3147 CC="" 3148 else 3149 case $cross_compiling:$ac_tool_warned in 3150yes:) 3151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3153ac_tool_warned=yes ;; 3154esac 3155 CC=$ac_ct_CC 3156 fi 3157else 3158 CC="$ac_cv_prog_CC" 3159fi 3160 3161if test -z "$CC"; then 3162 if test -n "$ac_tool_prefix"; then 3163 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3164set dummy ${ac_tool_prefix}cc; ac_word=$2 3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3166$as_echo_n "checking for $ac_word... " >&6; } 3167if ${ac_cv_prog_CC+:} false; then : 3168 $as_echo_n "(cached) " >&6 3169else 3170 if test -n "$CC"; then 3171 ac_cv_prog_CC="$CC" # Let the user override the test. 3172else 3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3174for as_dir in $PATH 3175do 3176 IFS=$as_save_IFS 3177 test -z "$as_dir" && as_dir=. 3178 for ac_exec_ext in '' $ac_executable_extensions; do 3179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3180 ac_cv_prog_CC="${ac_tool_prefix}cc" 3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3182 break 2 3183 fi 3184done 3185 done 3186IFS=$as_save_IFS 3187 3188fi 3189fi 3190CC=$ac_cv_prog_CC 3191if test -n "$CC"; then 3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3193$as_echo "$CC" >&6; } 3194else 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3196$as_echo "no" >&6; } 3197fi 3198 3199 3200 fi 3201fi 3202if test -z "$CC"; then 3203 # Extract the first word of "cc", so it can be a program name with args. 3204set dummy cc; ac_word=$2 3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3206$as_echo_n "checking for $ac_word... " >&6; } 3207if ${ac_cv_prog_CC+:} false; then : 3208 $as_echo_n "(cached) " >&6 3209else 3210 if test -n "$CC"; then 3211 ac_cv_prog_CC="$CC" # Let the user override the test. 3212else 3213 ac_prog_rejected=no 3214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3215for as_dir in $PATH 3216do 3217 IFS=$as_save_IFS 3218 test -z "$as_dir" && as_dir=. 3219 for ac_exec_ext in '' $ac_executable_extensions; do 3220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3221 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3222 ac_prog_rejected=yes 3223 continue 3224 fi 3225 ac_cv_prog_CC="cc" 3226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3227 break 2 3228 fi 3229done 3230 done 3231IFS=$as_save_IFS 3232 3233if test $ac_prog_rejected = yes; then 3234 # We found a bogon in the path, so make sure we never use it. 3235 set dummy $ac_cv_prog_CC 3236 shift 3237 if test $# != 0; then 3238 # We chose a different compiler from the bogus one. 3239 # However, it has the same basename, so the bogon will be chosen 3240 # first if we set CC to just the basename; use the full file name. 3241 shift 3242 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3243 fi 3244fi 3245fi 3246fi 3247CC=$ac_cv_prog_CC 3248if test -n "$CC"; then 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3250$as_echo "$CC" >&6; } 3251else 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3253$as_echo "no" >&6; } 3254fi 3255 3256 3257fi 3258if test -z "$CC"; then 3259 if test -n "$ac_tool_prefix"; then 3260 for ac_prog in cl.exe 3261 do 3262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3263set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3265$as_echo_n "checking for $ac_word... " >&6; } 3266if ${ac_cv_prog_CC+:} false; then : 3267 $as_echo_n "(cached) " >&6 3268else 3269 if test -n "$CC"; then 3270 ac_cv_prog_CC="$CC" # Let the user override the test. 3271else 3272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3273for as_dir in $PATH 3274do 3275 IFS=$as_save_IFS 3276 test -z "$as_dir" && as_dir=. 3277 for ac_exec_ext in '' $ac_executable_extensions; do 3278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3279 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3281 break 2 3282 fi 3283done 3284 done 3285IFS=$as_save_IFS 3286 3287fi 3288fi 3289CC=$ac_cv_prog_CC 3290if test -n "$CC"; then 3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3292$as_echo "$CC" >&6; } 3293else 3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3295$as_echo "no" >&6; } 3296fi 3297 3298 3299 test -n "$CC" && break 3300 done 3301fi 3302if test -z "$CC"; then 3303 ac_ct_CC=$CC 3304 for ac_prog in cl.exe 3305do 3306 # Extract the first word of "$ac_prog", so it can be a program name with args. 3307set dummy $ac_prog; ac_word=$2 3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3309$as_echo_n "checking for $ac_word... " >&6; } 3310if ${ac_cv_prog_ac_ct_CC+:} false; then : 3311 $as_echo_n "(cached) " >&6 3312else 3313 if test -n "$ac_ct_CC"; then 3314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3315else 3316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3317for as_dir in $PATH 3318do 3319 IFS=$as_save_IFS 3320 test -z "$as_dir" && as_dir=. 3321 for ac_exec_ext in '' $ac_executable_extensions; do 3322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3323 ac_cv_prog_ac_ct_CC="$ac_prog" 3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3325 break 2 3326 fi 3327done 3328 done 3329IFS=$as_save_IFS 3330 3331fi 3332fi 3333ac_ct_CC=$ac_cv_prog_ac_ct_CC 3334if test -n "$ac_ct_CC"; then 3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3336$as_echo "$ac_ct_CC" >&6; } 3337else 3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3339$as_echo "no" >&6; } 3340fi 3341 3342 3343 test -n "$ac_ct_CC" && break 3344done 3345 3346 if test "x$ac_ct_CC" = x; then 3347 CC="" 3348 else 3349 case $cross_compiling:$ac_tool_warned in 3350yes:) 3351{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3352$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3353ac_tool_warned=yes ;; 3354esac 3355 CC=$ac_ct_CC 3356 fi 3357fi 3358 3359fi 3360 3361 3362test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3364as_fn_error $? "no acceptable C compiler found in \$PATH 3365See \`config.log' for more details" "$LINENO" 5; } 3366 3367# Provide some information about the compiler. 3368$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3369set X $ac_compile 3370ac_compiler=$2 3371for ac_option in --version -v -V -qversion; do 3372 { { ac_try="$ac_compiler $ac_option >&5" 3373case "(($ac_try" in 3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3375 *) ac_try_echo=$ac_try;; 3376esac 3377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3378$as_echo "$ac_try_echo"; } >&5 3379 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3380 ac_status=$? 3381 if test -s conftest.err; then 3382 sed '10a\ 3383... rest of stderr output deleted ... 3384 10q' conftest.err >conftest.er1 3385 cat conftest.er1 >&5 3386 fi 3387 rm -f conftest.er1 conftest.err 3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3389 test $ac_status = 0; } 3390done 3391 3392cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3393/* end confdefs.h. */ 3394 3395int 3396main () 3397{ 3398 3399 ; 3400 return 0; 3401} 3402_ACEOF 3403ac_clean_files_save=$ac_clean_files 3404ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3405# Try to create an executable without -o first, disregard a.out. 3406# It will help us diagnose broken compilers, and finding out an intuition 3407# of exeext. 3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3409$as_echo_n "checking whether the C compiler works... " >&6; } 3410ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3411 3412# The possible output files: 3413ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3414 3415ac_rmfiles= 3416for ac_file in $ac_files 3417do 3418 case $ac_file in 3419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3420 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3421 esac 3422done 3423rm -f $ac_rmfiles 3424 3425if { { ac_try="$ac_link_default" 3426case "(($ac_try" in 3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3428 *) ac_try_echo=$ac_try;; 3429esac 3430eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3431$as_echo "$ac_try_echo"; } >&5 3432 (eval "$ac_link_default") 2>&5 3433 ac_status=$? 3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3435 test $ac_status = 0; }; then : 3436 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3437# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3438# in a Makefile. We should not override ac_cv_exeext if it was cached, 3439# so that the user can short-circuit this test for compilers unknown to 3440# Autoconf. 3441for ac_file in $ac_files '' 3442do 3443 test -f "$ac_file" || continue 3444 case $ac_file in 3445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3446 ;; 3447 [ab].out ) 3448 # We found the default executable, but exeext='' is most 3449 # certainly right. 3450 break;; 3451 *.* ) 3452 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3453 then :; else 3454 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3455 fi 3456 # We set ac_cv_exeext here because the later test for it is not 3457 # safe: cross compilers may not add the suffix if given an `-o' 3458 # argument, so we may need to know it at that point already. 3459 # Even if this section looks crufty: it has the advantage of 3460 # actually working. 3461 break;; 3462 * ) 3463 break;; 3464 esac 3465done 3466test "$ac_cv_exeext" = no && ac_cv_exeext= 3467 3468else 3469 ac_file='' 3470fi 3471if test -z "$ac_file"; then : 3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3473$as_echo "no" >&6; } 3474$as_echo "$as_me: failed program was:" >&5 3475sed 's/^/| /' conftest.$ac_ext >&5 3476 3477{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3479as_fn_error 77 "C compiler cannot create executables 3480See \`config.log' for more details" "$LINENO" 5; } 3481else 3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3483$as_echo "yes" >&6; } 3484fi 3485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3486$as_echo_n "checking for C compiler default output file name... " >&6; } 3487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3488$as_echo "$ac_file" >&6; } 3489ac_exeext=$ac_cv_exeext 3490 3491rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3492ac_clean_files=$ac_clean_files_save 3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3494$as_echo_n "checking for suffix of executables... " >&6; } 3495if { { ac_try="$ac_link" 3496case "(($ac_try" in 3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3498 *) ac_try_echo=$ac_try;; 3499esac 3500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3501$as_echo "$ac_try_echo"; } >&5 3502 (eval "$ac_link") 2>&5 3503 ac_status=$? 3504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3505 test $ac_status = 0; }; then : 3506 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3507# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3508# work properly (i.e., refer to `conftest.exe'), while it won't with 3509# `rm'. 3510for ac_file in conftest.exe conftest conftest.*; do 3511 test -f "$ac_file" || continue 3512 case $ac_file in 3513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3514 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3515 break;; 3516 * ) break;; 3517 esac 3518done 3519else 3520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3522as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3523See \`config.log' for more details" "$LINENO" 5; } 3524fi 3525rm -f conftest conftest$ac_cv_exeext 3526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3527$as_echo "$ac_cv_exeext" >&6; } 3528 3529rm -f conftest.$ac_ext 3530EXEEXT=$ac_cv_exeext 3531ac_exeext=$EXEEXT 3532cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3533/* end confdefs.h. */ 3534#include <stdio.h> 3535int 3536main () 3537{ 3538FILE *f = fopen ("conftest.out", "w"); 3539 return ferror (f) || fclose (f) != 0; 3540 3541 ; 3542 return 0; 3543} 3544_ACEOF 3545ac_clean_files="$ac_clean_files conftest.out" 3546# Check that the compiler produces executables we can run. If not, either 3547# the compiler is broken, or we cross compile. 3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3549$as_echo_n "checking whether we are cross compiling... " >&6; } 3550if test "$cross_compiling" != yes; then 3551 { { ac_try="$ac_link" 3552case "(($ac_try" in 3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3554 *) ac_try_echo=$ac_try;; 3555esac 3556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3557$as_echo "$ac_try_echo"; } >&5 3558 (eval "$ac_link") 2>&5 3559 ac_status=$? 3560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3561 test $ac_status = 0; } 3562 if { ac_try='./conftest$ac_cv_exeext' 3563 { { case "(($ac_try" in 3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3565 *) ac_try_echo=$ac_try;; 3566esac 3567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3568$as_echo "$ac_try_echo"; } >&5 3569 (eval "$ac_try") 2>&5 3570 ac_status=$? 3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3572 test $ac_status = 0; }; }; then 3573 cross_compiling=no 3574 else 3575 if test "$cross_compiling" = maybe; then 3576 cross_compiling=yes 3577 else 3578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3580as_fn_error $? "cannot run C compiled programs. 3581If you meant to cross compile, use \`--host'. 3582See \`config.log' for more details" "$LINENO" 5; } 3583 fi 3584 fi 3585fi 3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3587$as_echo "$cross_compiling" >&6; } 3588 3589rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3590ac_clean_files=$ac_clean_files_save 3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3592$as_echo_n "checking for suffix of object files... " >&6; } 3593if ${ac_cv_objext+:} false; then : 3594 $as_echo_n "(cached) " >&6 3595else 3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3597/* end confdefs.h. */ 3598 3599int 3600main () 3601{ 3602 3603 ; 3604 return 0; 3605} 3606_ACEOF 3607rm -f conftest.o conftest.obj 3608if { { ac_try="$ac_compile" 3609case "(($ac_try" in 3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3611 *) ac_try_echo=$ac_try;; 3612esac 3613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3614$as_echo "$ac_try_echo"; } >&5 3615 (eval "$ac_compile") 2>&5 3616 ac_status=$? 3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3618 test $ac_status = 0; }; then : 3619 for ac_file in conftest.o conftest.obj conftest.*; do 3620 test -f "$ac_file" || continue; 3621 case $ac_file in 3622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3623 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3624 break;; 3625 esac 3626done 3627else 3628 $as_echo "$as_me: failed program was:" >&5 3629sed 's/^/| /' conftest.$ac_ext >&5 3630 3631{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3633as_fn_error $? "cannot compute suffix of object files: cannot compile 3634See \`config.log' for more details" "$LINENO" 5; } 3635fi 3636rm -f conftest.$ac_cv_objext conftest.$ac_ext 3637fi 3638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3639$as_echo "$ac_cv_objext" >&6; } 3640OBJEXT=$ac_cv_objext 3641ac_objext=$OBJEXT 3642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3643$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3644if ${ac_cv_c_compiler_gnu+:} false; then : 3645 $as_echo_n "(cached) " >&6 3646else 3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3648/* end confdefs.h. */ 3649 3650int 3651main () 3652{ 3653#ifndef __GNUC__ 3654 choke me 3655#endif 3656 3657 ; 3658 return 0; 3659} 3660_ACEOF 3661if ac_fn_c_try_compile "$LINENO"; then : 3662 ac_compiler_gnu=yes 3663else 3664 ac_compiler_gnu=no 3665fi 3666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3667ac_cv_c_compiler_gnu=$ac_compiler_gnu 3668 3669fi 3670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3671$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3672if test $ac_compiler_gnu = yes; then 3673 GCC=yes 3674else 3675 GCC= 3676fi 3677ac_test_CFLAGS=${CFLAGS+set} 3678ac_save_CFLAGS=$CFLAGS 3679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3680$as_echo_n "checking whether $CC accepts -g... " >&6; } 3681if ${ac_cv_prog_cc_g+:} false; then : 3682 $as_echo_n "(cached) " >&6 3683else 3684 ac_save_c_werror_flag=$ac_c_werror_flag 3685 ac_c_werror_flag=yes 3686 ac_cv_prog_cc_g=no 3687 CFLAGS="-g" 3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3689/* end confdefs.h. */ 3690 3691int 3692main () 3693{ 3694 3695 ; 3696 return 0; 3697} 3698_ACEOF 3699if ac_fn_c_try_compile "$LINENO"; then : 3700 ac_cv_prog_cc_g=yes 3701else 3702 CFLAGS="" 3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3704/* end confdefs.h. */ 3705 3706int 3707main () 3708{ 3709 3710 ; 3711 return 0; 3712} 3713_ACEOF 3714if ac_fn_c_try_compile "$LINENO"; then : 3715 3716else 3717 ac_c_werror_flag=$ac_save_c_werror_flag 3718 CFLAGS="-g" 3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3720/* end confdefs.h. */ 3721 3722int 3723main () 3724{ 3725 3726 ; 3727 return 0; 3728} 3729_ACEOF 3730if ac_fn_c_try_compile "$LINENO"; then : 3731 ac_cv_prog_cc_g=yes 3732fi 3733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3734fi 3735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3736fi 3737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3738 ac_c_werror_flag=$ac_save_c_werror_flag 3739fi 3740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3741$as_echo "$ac_cv_prog_cc_g" >&6; } 3742if test "$ac_test_CFLAGS" = set; then 3743 CFLAGS=$ac_save_CFLAGS 3744elif test $ac_cv_prog_cc_g = yes; then 3745 if test "$GCC" = yes; then 3746 CFLAGS="-g -O2" 3747 else 3748 CFLAGS="-g" 3749 fi 3750else 3751 if test "$GCC" = yes; then 3752 CFLAGS="-O2" 3753 else 3754 CFLAGS= 3755 fi 3756fi 3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3758$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3759if ${ac_cv_prog_cc_c89+:} false; then : 3760 $as_echo_n "(cached) " >&6 3761else 3762 ac_cv_prog_cc_c89=no 3763ac_save_CC=$CC 3764cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3765/* end confdefs.h. */ 3766#include <stdarg.h> 3767#include <stdio.h> 3768struct stat; 3769/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3770struct buf { int x; }; 3771FILE * (*rcsopen) (struct buf *, struct stat *, int); 3772static char *e (p, i) 3773 char **p; 3774 int i; 3775{ 3776 return p[i]; 3777} 3778static char *f (char * (*g) (char **, int), char **p, ...) 3779{ 3780 char *s; 3781 va_list v; 3782 va_start (v,p); 3783 s = g (p, va_arg (v,int)); 3784 va_end (v); 3785 return s; 3786} 3787 3788/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3789 function prototypes and stuff, but not '\xHH' hex character constants. 3790 These don't provoke an error unfortunately, instead are silently treated 3791 as 'x'. The following induces an error, until -std is added to get 3792 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3793 array size at least. It's necessary to write '\x00'==0 to get something 3794 that's true only with -std. */ 3795int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3796 3797/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3798 inside strings and character constants. */ 3799#define FOO(x) 'x' 3800int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3801 3802int test (int i, double x); 3803struct s1 {int (*f) (int a);}; 3804struct s2 {int (*f) (double a);}; 3805int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3806int argc; 3807char **argv; 3808int 3809main () 3810{ 3811return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3812 ; 3813 return 0; 3814} 3815_ACEOF 3816for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3817 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3818do 3819 CC="$ac_save_CC $ac_arg" 3820 if ac_fn_c_try_compile "$LINENO"; then : 3821 ac_cv_prog_cc_c89=$ac_arg 3822fi 3823rm -f core conftest.err conftest.$ac_objext 3824 test "x$ac_cv_prog_cc_c89" != "xno" && break 3825done 3826rm -f conftest.$ac_ext 3827CC=$ac_save_CC 3828 3829fi 3830# AC_CACHE_VAL 3831case "x$ac_cv_prog_cc_c89" in 3832 x) 3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3834$as_echo "none needed" >&6; } ;; 3835 xno) 3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3837$as_echo "unsupported" >&6; } ;; 3838 *) 3839 CC="$CC $ac_cv_prog_cc_c89" 3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3841$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3842esac 3843if test "x$ac_cv_prog_cc_c89" != xno; then : 3844 3845fi 3846 3847ac_ext=c 3848ac_cpp='$CPP $CPPFLAGS' 3849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3851ac_compiler_gnu=$ac_cv_c_compiler_gnu 3852 3853ac_ext=c 3854ac_cpp='$CPP $CPPFLAGS' 3855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3857ac_compiler_gnu=$ac_cv_c_compiler_gnu 3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3859$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3860if ${am_cv_prog_cc_c_o+:} false; then : 3861 $as_echo_n "(cached) " >&6 3862else 3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3864/* end confdefs.h. */ 3865 3866int 3867main () 3868{ 3869 3870 ; 3871 return 0; 3872} 3873_ACEOF 3874 # Make sure it works both with $CC and with simple cc. 3875 # Following AC_PROG_CC_C_O, we do the test twice because some 3876 # compilers refuse to overwrite an existing .o file with -o, 3877 # though they will create one. 3878 am_cv_prog_cc_c_o=yes 3879 for am_i in 1 2; do 3880 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3881 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3882 ac_status=$? 3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3884 (exit $ac_status); } \ 3885 && test -f conftest2.$ac_objext; then 3886 : OK 3887 else 3888 am_cv_prog_cc_c_o=no 3889 break 3890 fi 3891 done 3892 rm -f core conftest* 3893 unset am_i 3894fi 3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3896$as_echo "$am_cv_prog_cc_c_o" >&6; } 3897if test "$am_cv_prog_cc_c_o" != yes; then 3898 # Losing compiler, so override with the script. 3899 # FIXME: It is wrong to rewrite CC. 3900 # But if we don't then we get into trouble of one sort or another. 3901 # A longer-term fix would be to have automake use am__CC in this case, 3902 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3903 CC="$am_aux_dir/compile $CC" 3904fi 3905ac_ext=c 3906ac_cpp='$CPP $CPPFLAGS' 3907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3909ac_compiler_gnu=$ac_cv_c_compiler_gnu 3910 3911 3912depcc="$CC" am_compiler_list= 3913 3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3915$as_echo_n "checking dependency style of $depcc... " >&6; } 3916if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3917 $as_echo_n "(cached) " >&6 3918else 3919 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3920 # We make a subdir and do the tests there. Otherwise we can end up 3921 # making bogus files that we don't know about and never remove. For 3922 # instance it was reported that on HP-UX the gcc test will end up 3923 # making a dummy file named 'D' -- because '-MD' means "put the output 3924 # in D". 3925 rm -rf conftest.dir 3926 mkdir conftest.dir 3927 # Copy depcomp to subdir because otherwise we won't find it if we're 3928 # using a relative directory. 3929 cp "$am_depcomp" conftest.dir 3930 cd conftest.dir 3931 # We will build objects and dependencies in a subdirectory because 3932 # it helps to detect inapplicable dependency modes. For instance 3933 # both Tru64's cc and ICC support -MD to output dependencies as a 3934 # side effect of compilation, but ICC will put the dependencies in 3935 # the current directory while Tru64 will put them in the object 3936 # directory. 3937 mkdir sub 3938 3939 am_cv_CC_dependencies_compiler_type=none 3940 if test "$am_compiler_list" = ""; then 3941 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3942 fi 3943 am__universal=false 3944 case " $depcc " in #( 3945 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3946 esac 3947 3948 for depmode in $am_compiler_list; do 3949 # Setup a source with many dependencies, because some compilers 3950 # like to wrap large dependency lists on column 80 (with \), and 3951 # we should not choose a depcomp mode which is confused by this. 3952 # 3953 # We need to recreate these files for each test, as the compiler may 3954 # overwrite some of them when testing with obscure command lines. 3955 # This happens at least with the AIX C compiler. 3956 : > sub/conftest.c 3957 for i in 1 2 3 4 5 6; do 3958 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3959 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3960 # Solaris 10 /bin/sh. 3961 echo '/* dummy */' > sub/conftst$i.h 3962 done 3963 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3964 3965 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3966 # mode. It turns out that the SunPro C++ compiler does not properly 3967 # handle '-M -o', and we need to detect this. Also, some Intel 3968 # versions had trouble with output in subdirs. 3969 am__obj=sub/conftest.${OBJEXT-o} 3970 am__minus_obj="-o $am__obj" 3971 case $depmode in 3972 gcc) 3973 # This depmode causes a compiler race in universal mode. 3974 test "$am__universal" = false || continue 3975 ;; 3976 nosideeffect) 3977 # After this tag, mechanisms are not by side-effect, so they'll 3978 # only be used when explicitly requested. 3979 if test "x$enable_dependency_tracking" = xyes; then 3980 continue 3981 else 3982 break 3983 fi 3984 ;; 3985 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3986 # This compiler won't grok '-c -o', but also, the minuso test has 3987 # not run yet. These depmodes are late enough in the game, and 3988 # so weak that their functioning should not be impacted. 3989 am__obj=conftest.${OBJEXT-o} 3990 am__minus_obj= 3991 ;; 3992 none) break ;; 3993 esac 3994 if depmode=$depmode \ 3995 source=sub/conftest.c object=$am__obj \ 3996 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3997 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3998 >/dev/null 2>conftest.err && 3999 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4000 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4001 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4002 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4003 # icc doesn't choke on unknown options, it will just issue warnings 4004 # or remarks (even with -Werror). So we grep stderr for any message 4005 # that says an option was ignored or not supported. 4006 # When given -MP, icc 7.0 and 7.1 complain thusly: 4007 # icc: Command line warning: ignoring option '-M'; no argument required 4008 # The diagnosis changed in icc 8.0: 4009 # icc: Command line remark: option '-MP' not supported 4010 if (grep 'ignoring option' conftest.err || 4011 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4012 am_cv_CC_dependencies_compiler_type=$depmode 4013 break 4014 fi 4015 fi 4016 done 4017 4018 cd .. 4019 rm -rf conftest.dir 4020else 4021 am_cv_CC_dependencies_compiler_type=none 4022fi 4023 4024fi 4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4026$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4027CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4028 4029 if 4030 test "x$enable_dependency_tracking" != xno \ 4031 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4032 am__fastdepCC_TRUE= 4033 am__fastdepCC_FALSE='#' 4034else 4035 am__fastdepCC_TRUE='#' 4036 am__fastdepCC_FALSE= 4037fi 4038 4039 4040 4041if test -n "$ac_tool_prefix"; then 4042 for ac_prog in ar lib "link -lib" 4043 do 4044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4045set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4047$as_echo_n "checking for $ac_word... " >&6; } 4048if ${ac_cv_prog_AR+:} false; then : 4049 $as_echo_n "(cached) " >&6 4050else 4051 if test -n "$AR"; then 4052 ac_cv_prog_AR="$AR" # Let the user override the test. 4053else 4054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4055for as_dir in $PATH 4056do 4057 IFS=$as_save_IFS 4058 test -z "$as_dir" && as_dir=. 4059 for ac_exec_ext in '' $ac_executable_extensions; do 4060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4061 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4063 break 2 4064 fi 4065done 4066 done 4067IFS=$as_save_IFS 4068 4069fi 4070fi 4071AR=$ac_cv_prog_AR 4072if test -n "$AR"; then 4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4074$as_echo "$AR" >&6; } 4075else 4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4077$as_echo "no" >&6; } 4078fi 4079 4080 4081 test -n "$AR" && break 4082 done 4083fi 4084if test -z "$AR"; then 4085 ac_ct_AR=$AR 4086 for ac_prog in ar lib "link -lib" 4087do 4088 # Extract the first word of "$ac_prog", so it can be a program name with args. 4089set dummy $ac_prog; ac_word=$2 4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4091$as_echo_n "checking for $ac_word... " >&6; } 4092if ${ac_cv_prog_ac_ct_AR+:} false; then : 4093 $as_echo_n "(cached) " >&6 4094else 4095 if test -n "$ac_ct_AR"; then 4096 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4097else 4098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4099for as_dir in $PATH 4100do 4101 IFS=$as_save_IFS 4102 test -z "$as_dir" && as_dir=. 4103 for ac_exec_ext in '' $ac_executable_extensions; do 4104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4105 ac_cv_prog_ac_ct_AR="$ac_prog" 4106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4107 break 2 4108 fi 4109done 4110 done 4111IFS=$as_save_IFS 4112 4113fi 4114fi 4115ac_ct_AR=$ac_cv_prog_ac_ct_AR 4116if test -n "$ac_ct_AR"; then 4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4118$as_echo "$ac_ct_AR" >&6; } 4119else 4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4121$as_echo "no" >&6; } 4122fi 4123 4124 4125 test -n "$ac_ct_AR" && break 4126done 4127 4128 if test "x$ac_ct_AR" = x; then 4129 AR="false" 4130 else 4131 case $cross_compiling:$ac_tool_warned in 4132yes:) 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4135ac_tool_warned=yes ;; 4136esac 4137 AR=$ac_ct_AR 4138 fi 4139fi 4140 4141: ${AR=ar} 4142 4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4144$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4145if ${am_cv_ar_interface+:} false; then : 4146 $as_echo_n "(cached) " >&6 4147else 4148 ac_ext=c 4149ac_cpp='$CPP $CPPFLAGS' 4150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4152ac_compiler_gnu=$ac_cv_c_compiler_gnu 4153 4154 am_cv_ar_interface=ar 4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4156/* end confdefs.h. */ 4157int some_variable = 0; 4158_ACEOF 4159if ac_fn_c_try_compile "$LINENO"; then : 4160 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4162 (eval $am_ar_try) 2>&5 4163 ac_status=$? 4164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4165 test $ac_status = 0; } 4166 if test "$ac_status" -eq 0; then 4167 am_cv_ar_interface=ar 4168 else 4169 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4171 (eval $am_ar_try) 2>&5 4172 ac_status=$? 4173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4174 test $ac_status = 0; } 4175 if test "$ac_status" -eq 0; then 4176 am_cv_ar_interface=lib 4177 else 4178 am_cv_ar_interface=unknown 4179 fi 4180 fi 4181 rm -f conftest.lib libconftest.a 4182 4183fi 4184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4185 ac_ext=c 4186ac_cpp='$CPP $CPPFLAGS' 4187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4189ac_compiler_gnu=$ac_cv_c_compiler_gnu 4190 4191fi 4192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4193$as_echo "$am_cv_ar_interface" >&6; } 4194 4195case $am_cv_ar_interface in 4196ar) 4197 ;; 4198lib) 4199 # Microsoft lib, so override with the ar-lib wrapper script. 4200 # FIXME: It is wrong to rewrite AR. 4201 # But if we don't then we get into trouble of one sort or another. 4202 # A longer-term fix would be to have automake use am__AR in this case, 4203 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4204 # similar. 4205 AR="$am_aux_dir/ar-lib $AR" 4206 ;; 4207unknown) 4208 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4209 ;; 4210esac 4211 4212 4213ac_ext=cpp 4214ac_cpp='$CXXCPP $CPPFLAGS' 4215ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4216ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4217ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4218if test -z "$CXX"; then 4219 if test -n "$CCC"; then 4220 CXX=$CCC 4221 else 4222 if test -n "$ac_tool_prefix"; then 4223 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4224 do 4225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4226set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4228$as_echo_n "checking for $ac_word... " >&6; } 4229if ${ac_cv_prog_CXX+:} false; then : 4230 $as_echo_n "(cached) " >&6 4231else 4232 if test -n "$CXX"; then 4233 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4234else 4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4236for as_dir in $PATH 4237do 4238 IFS=$as_save_IFS 4239 test -z "$as_dir" && as_dir=. 4240 for ac_exec_ext in '' $ac_executable_extensions; do 4241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4242 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4244 break 2 4245 fi 4246done 4247 done 4248IFS=$as_save_IFS 4249 4250fi 4251fi 4252CXX=$ac_cv_prog_CXX 4253if test -n "$CXX"; then 4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4255$as_echo "$CXX" >&6; } 4256else 4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4258$as_echo "no" >&6; } 4259fi 4260 4261 4262 test -n "$CXX" && break 4263 done 4264fi 4265if test -z "$CXX"; then 4266 ac_ct_CXX=$CXX 4267 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4268do 4269 # Extract the first word of "$ac_prog", so it can be a program name with args. 4270set dummy $ac_prog; ac_word=$2 4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4272$as_echo_n "checking for $ac_word... " >&6; } 4273if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4274 $as_echo_n "(cached) " >&6 4275else 4276 if test -n "$ac_ct_CXX"; then 4277 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4278else 4279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4280for as_dir in $PATH 4281do 4282 IFS=$as_save_IFS 4283 test -z "$as_dir" && as_dir=. 4284 for ac_exec_ext in '' $ac_executable_extensions; do 4285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4286 ac_cv_prog_ac_ct_CXX="$ac_prog" 4287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4288 break 2 4289 fi 4290done 4291 done 4292IFS=$as_save_IFS 4293 4294fi 4295fi 4296ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4297if test -n "$ac_ct_CXX"; then 4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4299$as_echo "$ac_ct_CXX" >&6; } 4300else 4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4302$as_echo "no" >&6; } 4303fi 4304 4305 4306 test -n "$ac_ct_CXX" && break 4307done 4308 4309 if test "x$ac_ct_CXX" = x; then 4310 CXX="g++" 4311 else 4312 case $cross_compiling:$ac_tool_warned in 4313yes:) 4314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4316ac_tool_warned=yes ;; 4317esac 4318 CXX=$ac_ct_CXX 4319 fi 4320fi 4321 4322 fi 4323fi 4324# Provide some information about the compiler. 4325$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4326set X $ac_compile 4327ac_compiler=$2 4328for ac_option in --version -v -V -qversion; do 4329 { { ac_try="$ac_compiler $ac_option >&5" 4330case "(($ac_try" in 4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4332 *) ac_try_echo=$ac_try;; 4333esac 4334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4335$as_echo "$ac_try_echo"; } >&5 4336 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4337 ac_status=$? 4338 if test -s conftest.err; then 4339 sed '10a\ 4340... rest of stderr output deleted ... 4341 10q' conftest.err >conftest.er1 4342 cat conftest.er1 >&5 4343 fi 4344 rm -f conftest.er1 conftest.err 4345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4346 test $ac_status = 0; } 4347done 4348 4349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4350$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4351if ${ac_cv_cxx_compiler_gnu+:} false; then : 4352 $as_echo_n "(cached) " >&6 4353else 4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4355/* end confdefs.h. */ 4356 4357int 4358main () 4359{ 4360#ifndef __GNUC__ 4361 choke me 4362#endif 4363 4364 ; 4365 return 0; 4366} 4367_ACEOF 4368if ac_fn_cxx_try_compile "$LINENO"; then : 4369 ac_compiler_gnu=yes 4370else 4371 ac_compiler_gnu=no 4372fi 4373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4374ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4375 4376fi 4377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4378$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4379if test $ac_compiler_gnu = yes; then 4380 GXX=yes 4381else 4382 GXX= 4383fi 4384ac_test_CXXFLAGS=${CXXFLAGS+set} 4385ac_save_CXXFLAGS=$CXXFLAGS 4386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4387$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4388if ${ac_cv_prog_cxx_g+:} false; then : 4389 $as_echo_n "(cached) " >&6 4390else 4391 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4392 ac_cxx_werror_flag=yes 4393 ac_cv_prog_cxx_g=no 4394 CXXFLAGS="-g" 4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4396/* end confdefs.h. */ 4397 4398int 4399main () 4400{ 4401 4402 ; 4403 return 0; 4404} 4405_ACEOF 4406if ac_fn_cxx_try_compile "$LINENO"; then : 4407 ac_cv_prog_cxx_g=yes 4408else 4409 CXXFLAGS="" 4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4411/* end confdefs.h. */ 4412 4413int 4414main () 4415{ 4416 4417 ; 4418 return 0; 4419} 4420_ACEOF 4421if ac_fn_cxx_try_compile "$LINENO"; then : 4422 4423else 4424 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4425 CXXFLAGS="-g" 4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4427/* end confdefs.h. */ 4428 4429int 4430main () 4431{ 4432 4433 ; 4434 return 0; 4435} 4436_ACEOF 4437if ac_fn_cxx_try_compile "$LINENO"; then : 4438 ac_cv_prog_cxx_g=yes 4439fi 4440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4441fi 4442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4443fi 4444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4445 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4446fi 4447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4448$as_echo "$ac_cv_prog_cxx_g" >&6; } 4449if test "$ac_test_CXXFLAGS" = set; then 4450 CXXFLAGS=$ac_save_CXXFLAGS 4451elif test $ac_cv_prog_cxx_g = yes; then 4452 if test "$GXX" = yes; then 4453 CXXFLAGS="-g -O2" 4454 else 4455 CXXFLAGS="-g" 4456 fi 4457else 4458 if test "$GXX" = yes; then 4459 CXXFLAGS="-O2" 4460 else 4461 CXXFLAGS= 4462 fi 4463fi 4464ac_ext=c 4465ac_cpp='$CPP $CPPFLAGS' 4466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4468ac_compiler_gnu=$ac_cv_c_compiler_gnu 4469 4470depcc="$CXX" am_compiler_list= 4471 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4473$as_echo_n "checking dependency style of $depcc... " >&6; } 4474if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4475 $as_echo_n "(cached) " >&6 4476else 4477 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4478 # We make a subdir and do the tests there. Otherwise we can end up 4479 # making bogus files that we don't know about and never remove. For 4480 # instance it was reported that on HP-UX the gcc test will end up 4481 # making a dummy file named 'D' -- because '-MD' means "put the output 4482 # in D". 4483 rm -rf conftest.dir 4484 mkdir conftest.dir 4485 # Copy depcomp to subdir because otherwise we won't find it if we're 4486 # using a relative directory. 4487 cp "$am_depcomp" conftest.dir 4488 cd conftest.dir 4489 # We will build objects and dependencies in a subdirectory because 4490 # it helps to detect inapplicable dependency modes. For instance 4491 # both Tru64's cc and ICC support -MD to output dependencies as a 4492 # side effect of compilation, but ICC will put the dependencies in 4493 # the current directory while Tru64 will put them in the object 4494 # directory. 4495 mkdir sub 4496 4497 am_cv_CXX_dependencies_compiler_type=none 4498 if test "$am_compiler_list" = ""; then 4499 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4500 fi 4501 am__universal=false 4502 case " $depcc " in #( 4503 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4504 esac 4505 4506 for depmode in $am_compiler_list; do 4507 # Setup a source with many dependencies, because some compilers 4508 # like to wrap large dependency lists on column 80 (with \), and 4509 # we should not choose a depcomp mode which is confused by this. 4510 # 4511 # We need to recreate these files for each test, as the compiler may 4512 # overwrite some of them when testing with obscure command lines. 4513 # This happens at least with the AIX C compiler. 4514 : > sub/conftest.c 4515 for i in 1 2 3 4 5 6; do 4516 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4517 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4518 # Solaris 10 /bin/sh. 4519 echo '/* dummy */' > sub/conftst$i.h 4520 done 4521 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4522 4523 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4524 # mode. It turns out that the SunPro C++ compiler does not properly 4525 # handle '-M -o', and we need to detect this. Also, some Intel 4526 # versions had trouble with output in subdirs. 4527 am__obj=sub/conftest.${OBJEXT-o} 4528 am__minus_obj="-o $am__obj" 4529 case $depmode in 4530 gcc) 4531 # This depmode causes a compiler race in universal mode. 4532 test "$am__universal" = false || continue 4533 ;; 4534 nosideeffect) 4535 # After this tag, mechanisms are not by side-effect, so they'll 4536 # only be used when explicitly requested. 4537 if test "x$enable_dependency_tracking" = xyes; then 4538 continue 4539 else 4540 break 4541 fi 4542 ;; 4543 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4544 # This compiler won't grok '-c -o', but also, the minuso test has 4545 # not run yet. These depmodes are late enough in the game, and 4546 # so weak that their functioning should not be impacted. 4547 am__obj=conftest.${OBJEXT-o} 4548 am__minus_obj= 4549 ;; 4550 none) break ;; 4551 esac 4552 if depmode=$depmode \ 4553 source=sub/conftest.c object=$am__obj \ 4554 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4555 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4556 >/dev/null 2>conftest.err && 4557 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4558 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4559 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4560 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4561 # icc doesn't choke on unknown options, it will just issue warnings 4562 # or remarks (even with -Werror). So we grep stderr for any message 4563 # that says an option was ignored or not supported. 4564 # When given -MP, icc 7.0 and 7.1 complain thusly: 4565 # icc: Command line warning: ignoring option '-M'; no argument required 4566 # The diagnosis changed in icc 8.0: 4567 # icc: Command line remark: option '-MP' not supported 4568 if (grep 'ignoring option' conftest.err || 4569 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4570 am_cv_CXX_dependencies_compiler_type=$depmode 4571 break 4572 fi 4573 fi 4574 done 4575 4576 cd .. 4577 rm -rf conftest.dir 4578else 4579 am_cv_CXX_dependencies_compiler_type=none 4580fi 4581 4582fi 4583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4584$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4585CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4586 4587 if 4588 test "x$enable_dependency_tracking" != xno \ 4589 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4590 am__fastdepCXX_TRUE= 4591 am__fastdepCXX_FALSE='#' 4592else 4593 am__fastdepCXX_TRUE='#' 4594 am__fastdepCXX_FALSE= 4595fi 4596 4597 4598ac_ext=cpp 4599ac_cpp='$CXXCPP $CPPFLAGS' 4600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4603 4604 4605 4606case `pwd` in 4607 *\ * | *\ *) 4608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4609$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4610esac 4611 4612 4613 4614macro_version='2.4.6' 4615macro_revision='2.4.6' 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629ltmain=$ac_aux_dir/ltmain.sh 4630 4631# Backslashify metacharacters that are still active within 4632# double-quoted strings. 4633sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4634 4635# Same as above, but do not quote variable references. 4636double_quote_subst='s/\(["`\\]\)/\\\1/g' 4637 4638# Sed substitution to delay expansion of an escaped shell variable in a 4639# double_quote_subst'ed string. 4640delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4641 4642# Sed substitution to delay expansion of an escaped single quote. 4643delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4644 4645# Sed substitution to avoid accidental globbing in evaled expressions 4646no_glob_subst='s/\*/\\\*/g' 4647 4648ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4649ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4650ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4651 4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4653$as_echo_n "checking how to print strings... " >&6; } 4654# Test print first, because it will be a builtin if present. 4655if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4656 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4657 ECHO='print -r --' 4658elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4659 ECHO='printf %s\n' 4660else 4661 # Use this function as a fallback that always works. 4662 func_fallback_echo () 4663 { 4664 eval 'cat <<_LTECHO_EOF 4665$1 4666_LTECHO_EOF' 4667 } 4668 ECHO='func_fallback_echo' 4669fi 4670 4671# func_echo_all arg... 4672# Invoke $ECHO with all args, space-separated. 4673func_echo_all () 4674{ 4675 $ECHO "" 4676} 4677 4678case $ECHO in 4679 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4680$as_echo "printf" >&6; } ;; 4681 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4682$as_echo "print -r" >&6; } ;; 4683 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4684$as_echo "cat" >&6; } ;; 4685esac 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4701$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4702if ${ac_cv_path_SED+:} false; then : 4703 $as_echo_n "(cached) " >&6 4704else 4705 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4706 for ac_i in 1 2 3 4 5 6 7; do 4707 ac_script="$ac_script$as_nl$ac_script" 4708 done 4709 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4710 { ac_script=; unset ac_script;} 4711 if test -z "$SED"; then 4712 ac_path_SED_found=false 4713 # Loop through the user's path and test for each of PROGNAME-LIST 4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4715for as_dir in $PATH 4716do 4717 IFS=$as_save_IFS 4718 test -z "$as_dir" && as_dir=. 4719 for ac_prog in sed gsed; do 4720 for ac_exec_ext in '' $ac_executable_extensions; do 4721 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4722 as_fn_executable_p "$ac_path_SED" || continue 4723# Check for GNU ac_path_SED and select it if it is found. 4724 # Check for GNU $ac_path_SED 4725case `"$ac_path_SED" --version 2>&1` in 4726*GNU*) 4727 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4728*) 4729 ac_count=0 4730 $as_echo_n 0123456789 >"conftest.in" 4731 while : 4732 do 4733 cat "conftest.in" "conftest.in" >"conftest.tmp" 4734 mv "conftest.tmp" "conftest.in" 4735 cp "conftest.in" "conftest.nl" 4736 $as_echo '' >> "conftest.nl" 4737 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4738 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4739 as_fn_arith $ac_count + 1 && ac_count=$as_val 4740 if test $ac_count -gt ${ac_path_SED_max-0}; then 4741 # Best one so far, save it but keep looking for a better one 4742 ac_cv_path_SED="$ac_path_SED" 4743 ac_path_SED_max=$ac_count 4744 fi 4745 # 10*(2^10) chars as input seems more than enough 4746 test $ac_count -gt 10 && break 4747 done 4748 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4749esac 4750 4751 $ac_path_SED_found && break 3 4752 done 4753 done 4754 done 4755IFS=$as_save_IFS 4756 if test -z "$ac_cv_path_SED"; then 4757 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4758 fi 4759else 4760 ac_cv_path_SED=$SED 4761fi 4762 4763fi 4764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4765$as_echo "$ac_cv_path_SED" >&6; } 4766 SED="$ac_cv_path_SED" 4767 rm -f conftest.sed 4768 4769test -z "$SED" && SED=sed 4770Xsed="$SED -e 1s/^X//" 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4783$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4784if ${ac_cv_path_GREP+:} false; then : 4785 $as_echo_n "(cached) " >&6 4786else 4787 if test -z "$GREP"; then 4788 ac_path_GREP_found=false 4789 # Loop through the user's path and test for each of PROGNAME-LIST 4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4791for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4792do 4793 IFS=$as_save_IFS 4794 test -z "$as_dir" && as_dir=. 4795 for ac_prog in grep ggrep; do 4796 for ac_exec_ext in '' $ac_executable_extensions; do 4797 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4798 as_fn_executable_p "$ac_path_GREP" || continue 4799# Check for GNU ac_path_GREP and select it if it is found. 4800 # Check for GNU $ac_path_GREP 4801case `"$ac_path_GREP" --version 2>&1` in 4802*GNU*) 4803 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4804*) 4805 ac_count=0 4806 $as_echo_n 0123456789 >"conftest.in" 4807 while : 4808 do 4809 cat "conftest.in" "conftest.in" >"conftest.tmp" 4810 mv "conftest.tmp" "conftest.in" 4811 cp "conftest.in" "conftest.nl" 4812 $as_echo 'GREP' >> "conftest.nl" 4813 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4814 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4815 as_fn_arith $ac_count + 1 && ac_count=$as_val 4816 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4817 # Best one so far, save it but keep looking for a better one 4818 ac_cv_path_GREP="$ac_path_GREP" 4819 ac_path_GREP_max=$ac_count 4820 fi 4821 # 10*(2^10) chars as input seems more than enough 4822 test $ac_count -gt 10 && break 4823 done 4824 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4825esac 4826 4827 $ac_path_GREP_found && break 3 4828 done 4829 done 4830 done 4831IFS=$as_save_IFS 4832 if test -z "$ac_cv_path_GREP"; then 4833 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4834 fi 4835else 4836 ac_cv_path_GREP=$GREP 4837fi 4838 4839fi 4840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4841$as_echo "$ac_cv_path_GREP" >&6; } 4842 GREP="$ac_cv_path_GREP" 4843 4844 4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4846$as_echo_n "checking for egrep... " >&6; } 4847if ${ac_cv_path_EGREP+:} false; then : 4848 $as_echo_n "(cached) " >&6 4849else 4850 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4851 then ac_cv_path_EGREP="$GREP -E" 4852 else 4853 if test -z "$EGREP"; then 4854 ac_path_EGREP_found=false 4855 # Loop through the user's path and test for each of PROGNAME-LIST 4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4857for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4858do 4859 IFS=$as_save_IFS 4860 test -z "$as_dir" && as_dir=. 4861 for ac_prog in egrep; do 4862 for ac_exec_ext in '' $ac_executable_extensions; do 4863 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4864 as_fn_executable_p "$ac_path_EGREP" || continue 4865# Check for GNU ac_path_EGREP and select it if it is found. 4866 # Check for GNU $ac_path_EGREP 4867case `"$ac_path_EGREP" --version 2>&1` in 4868*GNU*) 4869 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4870*) 4871 ac_count=0 4872 $as_echo_n 0123456789 >"conftest.in" 4873 while : 4874 do 4875 cat "conftest.in" "conftest.in" >"conftest.tmp" 4876 mv "conftest.tmp" "conftest.in" 4877 cp "conftest.in" "conftest.nl" 4878 $as_echo 'EGREP' >> "conftest.nl" 4879 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4880 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4881 as_fn_arith $ac_count + 1 && ac_count=$as_val 4882 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4883 # Best one so far, save it but keep looking for a better one 4884 ac_cv_path_EGREP="$ac_path_EGREP" 4885 ac_path_EGREP_max=$ac_count 4886 fi 4887 # 10*(2^10) chars as input seems more than enough 4888 test $ac_count -gt 10 && break 4889 done 4890 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4891esac 4892 4893 $ac_path_EGREP_found && break 3 4894 done 4895 done 4896 done 4897IFS=$as_save_IFS 4898 if test -z "$ac_cv_path_EGREP"; then 4899 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4900 fi 4901else 4902 ac_cv_path_EGREP=$EGREP 4903fi 4904 4905 fi 4906fi 4907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4908$as_echo "$ac_cv_path_EGREP" >&6; } 4909 EGREP="$ac_cv_path_EGREP" 4910 4911 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4913$as_echo_n "checking for fgrep... " >&6; } 4914if ${ac_cv_path_FGREP+:} false; then : 4915 $as_echo_n "(cached) " >&6 4916else 4917 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4918 then ac_cv_path_FGREP="$GREP -F" 4919 else 4920 if test -z "$FGREP"; then 4921 ac_path_FGREP_found=false 4922 # Loop through the user's path and test for each of PROGNAME-LIST 4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4925do 4926 IFS=$as_save_IFS 4927 test -z "$as_dir" && as_dir=. 4928 for ac_prog in fgrep; do 4929 for ac_exec_ext in '' $ac_executable_extensions; do 4930 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4931 as_fn_executable_p "$ac_path_FGREP" || continue 4932# Check for GNU ac_path_FGREP and select it if it is found. 4933 # Check for GNU $ac_path_FGREP 4934case `"$ac_path_FGREP" --version 2>&1` in 4935*GNU*) 4936 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4937*) 4938 ac_count=0 4939 $as_echo_n 0123456789 >"conftest.in" 4940 while : 4941 do 4942 cat "conftest.in" "conftest.in" >"conftest.tmp" 4943 mv "conftest.tmp" "conftest.in" 4944 cp "conftest.in" "conftest.nl" 4945 $as_echo 'FGREP' >> "conftest.nl" 4946 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4948 as_fn_arith $ac_count + 1 && ac_count=$as_val 4949 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4950 # Best one so far, save it but keep looking for a better one 4951 ac_cv_path_FGREP="$ac_path_FGREP" 4952 ac_path_FGREP_max=$ac_count 4953 fi 4954 # 10*(2^10) chars as input seems more than enough 4955 test $ac_count -gt 10 && break 4956 done 4957 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4958esac 4959 4960 $ac_path_FGREP_found && break 3 4961 done 4962 done 4963 done 4964IFS=$as_save_IFS 4965 if test -z "$ac_cv_path_FGREP"; then 4966 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4967 fi 4968else 4969 ac_cv_path_FGREP=$FGREP 4970fi 4971 4972 fi 4973fi 4974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4975$as_echo "$ac_cv_path_FGREP" >&6; } 4976 FGREP="$ac_cv_path_FGREP" 4977 4978 4979test -z "$GREP" && GREP=grep 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999# Check whether --with-gnu-ld was given. 5000if test "${with_gnu_ld+set}" = set; then : 5001 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5002else 5003 with_gnu_ld=no 5004fi 5005 5006ac_prog=ld 5007if test yes = "$GCC"; then 5008 # Check if gcc -print-prog-name=ld gives a path. 5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5010$as_echo_n "checking for ld used by $CC... " >&6; } 5011 case $host in 5012 *-*-mingw*) 5013 # gcc leaves a trailing carriage return, which upsets mingw 5014 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5015 *) 5016 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5017 esac 5018 case $ac_prog in 5019 # Accept absolute paths. 5020 [\\/]* | ?:[\\/]*) 5021 re_direlt='/[^/][^/]*/\.\./' 5022 # Canonicalize the pathname of ld 5023 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5024 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5025 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5026 done 5027 test -z "$LD" && LD=$ac_prog 5028 ;; 5029 "") 5030 # If it fails, then pretend we aren't using GCC. 5031 ac_prog=ld 5032 ;; 5033 *) 5034 # If it is relative, then search for the first ld in PATH. 5035 with_gnu_ld=unknown 5036 ;; 5037 esac 5038elif test yes = "$with_gnu_ld"; then 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5040$as_echo_n "checking for GNU ld... " >&6; } 5041else 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5043$as_echo_n "checking for non-GNU ld... " >&6; } 5044fi 5045if ${lt_cv_path_LD+:} false; then : 5046 $as_echo_n "(cached) " >&6 5047else 5048 if test -z "$LD"; then 5049 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5050 for ac_dir in $PATH; do 5051 IFS=$lt_save_ifs 5052 test -z "$ac_dir" && ac_dir=. 5053 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5054 lt_cv_path_LD=$ac_dir/$ac_prog 5055 # Check to see if the program is GNU ld. I'd rather use --version, 5056 # but apparently some variants of GNU ld only accept -v. 5057 # Break only if it was the GNU/non-GNU ld that we prefer. 5058 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5059 *GNU* | *'with BFD'*) 5060 test no != "$with_gnu_ld" && break 5061 ;; 5062 *) 5063 test yes != "$with_gnu_ld" && break 5064 ;; 5065 esac 5066 fi 5067 done 5068 IFS=$lt_save_ifs 5069else 5070 lt_cv_path_LD=$LD # Let the user override the test with a path. 5071fi 5072fi 5073 5074LD=$lt_cv_path_LD 5075if test -n "$LD"; then 5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5077$as_echo "$LD" >&6; } 5078else 5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5080$as_echo "no" >&6; } 5081fi 5082test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5084$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5085if ${lt_cv_prog_gnu_ld+:} false; then : 5086 $as_echo_n "(cached) " >&6 5087else 5088 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5089case `$LD -v 2>&1 </dev/null` in 5090*GNU* | *'with BFD'*) 5091 lt_cv_prog_gnu_ld=yes 5092 ;; 5093*) 5094 lt_cv_prog_gnu_ld=no 5095 ;; 5096esac 5097fi 5098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5099$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5100with_gnu_ld=$lt_cv_prog_gnu_ld 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5111$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5112if ${lt_cv_path_NM+:} false; then : 5113 $as_echo_n "(cached) " >&6 5114else 5115 if test -n "$NM"; then 5116 # Let the user override the test. 5117 lt_cv_path_NM=$NM 5118else 5119 lt_nm_to_check=${ac_tool_prefix}nm 5120 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5121 lt_nm_to_check="$lt_nm_to_check nm" 5122 fi 5123 for lt_tmp_nm in $lt_nm_to_check; do 5124 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5125 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5126 IFS=$lt_save_ifs 5127 test -z "$ac_dir" && ac_dir=. 5128 tmp_nm=$ac_dir/$lt_tmp_nm 5129 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5130 # Check to see if the nm accepts a BSD-compat flag. 5131 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5132 # nm: unknown option "B" ignored 5133 # Tru64's nm complains that /dev/null is an invalid object file 5134 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5135 case $build_os in 5136 mingw*) lt_bad_file=conftest.nm/nofile ;; 5137 *) lt_bad_file=/dev/null ;; 5138 esac 5139 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5140 *$lt_bad_file* | *'Invalid file or object type'*) 5141 lt_cv_path_NM="$tmp_nm -B" 5142 break 2 5143 ;; 5144 *) 5145 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5146 */dev/null*) 5147 lt_cv_path_NM="$tmp_nm -p" 5148 break 2 5149 ;; 5150 *) 5151 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5152 continue # so that we can try to find one that supports BSD flags 5153 ;; 5154 esac 5155 ;; 5156 esac 5157 fi 5158 done 5159 IFS=$lt_save_ifs 5160 done 5161 : ${lt_cv_path_NM=no} 5162fi 5163fi 5164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5165$as_echo "$lt_cv_path_NM" >&6; } 5166if test no != "$lt_cv_path_NM"; then 5167 NM=$lt_cv_path_NM 5168else 5169 # Didn't find any BSD compatible name lister, look for dumpbin. 5170 if test -n "$DUMPBIN"; then : 5171 # Let the user override the test. 5172 else 5173 if test -n "$ac_tool_prefix"; then 5174 for ac_prog in dumpbin "link -dump" 5175 do 5176 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5177set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5179$as_echo_n "checking for $ac_word... " >&6; } 5180if ${ac_cv_prog_DUMPBIN+:} false; then : 5181 $as_echo_n "(cached) " >&6 5182else 5183 if test -n "$DUMPBIN"; then 5184 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5185else 5186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5187for as_dir in $PATH 5188do 5189 IFS=$as_save_IFS 5190 test -z "$as_dir" && as_dir=. 5191 for ac_exec_ext in '' $ac_executable_extensions; do 5192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5193 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5195 break 2 5196 fi 5197done 5198 done 5199IFS=$as_save_IFS 5200 5201fi 5202fi 5203DUMPBIN=$ac_cv_prog_DUMPBIN 5204if test -n "$DUMPBIN"; then 5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5206$as_echo "$DUMPBIN" >&6; } 5207else 5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5209$as_echo "no" >&6; } 5210fi 5211 5212 5213 test -n "$DUMPBIN" && break 5214 done 5215fi 5216if test -z "$DUMPBIN"; then 5217 ac_ct_DUMPBIN=$DUMPBIN 5218 for ac_prog in dumpbin "link -dump" 5219do 5220 # Extract the first word of "$ac_prog", so it can be a program name with args. 5221set dummy $ac_prog; ac_word=$2 5222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5223$as_echo_n "checking for $ac_word... " >&6; } 5224if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5225 $as_echo_n "(cached) " >&6 5226else 5227 if test -n "$ac_ct_DUMPBIN"; then 5228 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5229else 5230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5231for as_dir in $PATH 5232do 5233 IFS=$as_save_IFS 5234 test -z "$as_dir" && as_dir=. 5235 for ac_exec_ext in '' $ac_executable_extensions; do 5236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5237 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5239 break 2 5240 fi 5241done 5242 done 5243IFS=$as_save_IFS 5244 5245fi 5246fi 5247ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5248if test -n "$ac_ct_DUMPBIN"; then 5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5250$as_echo "$ac_ct_DUMPBIN" >&6; } 5251else 5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5253$as_echo "no" >&6; } 5254fi 5255 5256 5257 test -n "$ac_ct_DUMPBIN" && break 5258done 5259 5260 if test "x$ac_ct_DUMPBIN" = x; then 5261 DUMPBIN=":" 5262 else 5263 case $cross_compiling:$ac_tool_warned in 5264yes:) 5265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5267ac_tool_warned=yes ;; 5268esac 5269 DUMPBIN=$ac_ct_DUMPBIN 5270 fi 5271fi 5272 5273 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5274 *COFF*) 5275 DUMPBIN="$DUMPBIN -symbols -headers" 5276 ;; 5277 *) 5278 DUMPBIN=: 5279 ;; 5280 esac 5281 fi 5282 5283 if test : != "$DUMPBIN"; then 5284 NM=$DUMPBIN 5285 fi 5286fi 5287test -z "$NM" && NM=nm 5288 5289 5290 5291 5292 5293 5294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5295$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5296if ${lt_cv_nm_interface+:} false; then : 5297 $as_echo_n "(cached) " >&6 5298else 5299 lt_cv_nm_interface="BSD nm" 5300 echo "int some_variable = 0;" > conftest.$ac_ext 5301 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5302 (eval "$ac_compile" 2>conftest.err) 5303 cat conftest.err >&5 5304 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5305 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5306 cat conftest.err >&5 5307 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5308 cat conftest.out >&5 5309 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5310 lt_cv_nm_interface="MS dumpbin" 5311 fi 5312 rm -f conftest* 5313fi 5314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5315$as_echo "$lt_cv_nm_interface" >&6; } 5316 5317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5318$as_echo_n "checking whether ln -s works... " >&6; } 5319LN_S=$as_ln_s 5320if test "$LN_S" = "ln -s"; then 5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5322$as_echo "yes" >&6; } 5323else 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5325$as_echo "no, using $LN_S" >&6; } 5326fi 5327 5328# find the maximum length of command line arguments 5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5330$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5331if ${lt_cv_sys_max_cmd_len+:} false; then : 5332 $as_echo_n "(cached) " >&6 5333else 5334 i=0 5335 teststring=ABCD 5336 5337 case $build_os in 5338 msdosdjgpp*) 5339 # On DJGPP, this test can blow up pretty badly due to problems in libc 5340 # (any single argument exceeding 2000 bytes causes a buffer overrun 5341 # during glob expansion). Even if it were fixed, the result of this 5342 # check would be larger than it should be. 5343 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5344 ;; 5345 5346 gnu*) 5347 # Under GNU Hurd, this test is not required because there is 5348 # no limit to the length of command line arguments. 5349 # Libtool will interpret -1 as no limit whatsoever 5350 lt_cv_sys_max_cmd_len=-1; 5351 ;; 5352 5353 cygwin* | mingw* | cegcc*) 5354 # On Win9x/ME, this test blows up -- it succeeds, but takes 5355 # about 5 minutes as the teststring grows exponentially. 5356 # Worse, since 9x/ME are not pre-emptively multitasking, 5357 # you end up with a "frozen" computer, even though with patience 5358 # the test eventually succeeds (with a max line length of 256k). 5359 # Instead, let's just punt: use the minimum linelength reported by 5360 # all of the supported platforms: 8192 (on NT/2K/XP). 5361 lt_cv_sys_max_cmd_len=8192; 5362 ;; 5363 5364 mint*) 5365 # On MiNT this can take a long time and run out of memory. 5366 lt_cv_sys_max_cmd_len=8192; 5367 ;; 5368 5369 amigaos*) 5370 # On AmigaOS with pdksh, this test takes hours, literally. 5371 # So we just punt and use a minimum line length of 8192. 5372 lt_cv_sys_max_cmd_len=8192; 5373 ;; 5374 5375 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5376 # This has been around since 386BSD, at least. Likely further. 5377 if test -x /sbin/sysctl; then 5378 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5379 elif test -x /usr/sbin/sysctl; then 5380 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5381 else 5382 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5383 fi 5384 # And add a safety zone 5385 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5387 ;; 5388 5389 interix*) 5390 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5391 lt_cv_sys_max_cmd_len=196608 5392 ;; 5393 5394 os2*) 5395 # The test takes a long time on OS/2. 5396 lt_cv_sys_max_cmd_len=8192 5397 ;; 5398 5399 osf*) 5400 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5401 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5402 # nice to cause kernel panics so lets avoid the loop below. 5403 # First set a reasonable default. 5404 lt_cv_sys_max_cmd_len=16384 5405 # 5406 if test -x /sbin/sysconfig; then 5407 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5408 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5409 esac 5410 fi 5411 ;; 5412 sco3.2v5*) 5413 lt_cv_sys_max_cmd_len=102400 5414 ;; 5415 sysv5* | sco5v6* | sysv4.2uw2*) 5416 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5417 if test -n "$kargmax"; then 5418 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5419 else 5420 lt_cv_sys_max_cmd_len=32768 5421 fi 5422 ;; 5423 *) 5424 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5425 if test -n "$lt_cv_sys_max_cmd_len" && \ 5426 test undefined != "$lt_cv_sys_max_cmd_len"; then 5427 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5428 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5429 else 5430 # Make teststring a little bigger before we do anything with it. 5431 # a 1K string should be a reasonable start. 5432 for i in 1 2 3 4 5 6 7 8; do 5433 teststring=$teststring$teststring 5434 done 5435 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5436 # If test is not a shell built-in, we'll probably end up computing a 5437 # maximum length that is only half of the actual maximum length, but 5438 # we can't tell. 5439 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5440 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5441 test 17 != "$i" # 1/2 MB should be enough 5442 do 5443 i=`expr $i + 1` 5444 teststring=$teststring$teststring 5445 done 5446 # Only check the string length outside the loop. 5447 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5448 teststring= 5449 # Add a significant safety factor because C++ compilers can tack on 5450 # massive amounts of additional arguments before passing them to the 5451 # linker. It appears as though 1/2 is a usable value. 5452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5453 fi 5454 ;; 5455 esac 5456 5457fi 5458 5459if test -n "$lt_cv_sys_max_cmd_len"; then 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5461$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5462else 5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5464$as_echo "none" >&6; } 5465fi 5466max_cmd_len=$lt_cv_sys_max_cmd_len 5467 5468 5469 5470 5471 5472 5473: ${CP="cp -f"} 5474: ${MV="mv -f"} 5475: ${RM="rm -f"} 5476 5477if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5478 lt_unset=unset 5479else 5480 lt_unset=false 5481fi 5482 5483 5484 5485 5486 5487# test EBCDIC or ASCII 5488case `echo X|tr X '\101'` in 5489 A) # ASCII based system 5490 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5491 lt_SP2NL='tr \040 \012' 5492 lt_NL2SP='tr \015\012 \040\040' 5493 ;; 5494 *) # EBCDIC based system 5495 lt_SP2NL='tr \100 \n' 5496 lt_NL2SP='tr \r\n \100\100' 5497 ;; 5498esac 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5509$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5510if ${lt_cv_to_host_file_cmd+:} false; then : 5511 $as_echo_n "(cached) " >&6 5512else 5513 case $host in 5514 *-*-mingw* ) 5515 case $build in 5516 *-*-mingw* ) # actually msys 5517 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5518 ;; 5519 *-*-cygwin* ) 5520 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5521 ;; 5522 * ) # otherwise, assume *nix 5523 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5524 ;; 5525 esac 5526 ;; 5527 *-*-cygwin* ) 5528 case $build in 5529 *-*-mingw* ) # actually msys 5530 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5531 ;; 5532 *-*-cygwin* ) 5533 lt_cv_to_host_file_cmd=func_convert_file_noop 5534 ;; 5535 * ) # otherwise, assume *nix 5536 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5537 ;; 5538 esac 5539 ;; 5540 * ) # unhandled hosts (and "normal" native builds) 5541 lt_cv_to_host_file_cmd=func_convert_file_noop 5542 ;; 5543esac 5544 5545fi 5546 5547to_host_file_cmd=$lt_cv_to_host_file_cmd 5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5549$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5550 5551 5552 5553 5554 5555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5556$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5557if ${lt_cv_to_tool_file_cmd+:} false; then : 5558 $as_echo_n "(cached) " >&6 5559else 5560 #assume ordinary cross tools, or native build. 5561lt_cv_to_tool_file_cmd=func_convert_file_noop 5562case $host in 5563 *-*-mingw* ) 5564 case $build in 5565 *-*-mingw* ) # actually msys 5566 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5567 ;; 5568 esac 5569 ;; 5570esac 5571 5572fi 5573 5574to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5576$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5577 5578 5579 5580 5581 5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5583$as_echo_n "checking for $LD option to reload object files... " >&6; } 5584if ${lt_cv_ld_reload_flag+:} false; then : 5585 $as_echo_n "(cached) " >&6 5586else 5587 lt_cv_ld_reload_flag='-r' 5588fi 5589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5590$as_echo "$lt_cv_ld_reload_flag" >&6; } 5591reload_flag=$lt_cv_ld_reload_flag 5592case $reload_flag in 5593"" | " "*) ;; 5594*) reload_flag=" $reload_flag" ;; 5595esac 5596reload_cmds='$LD$reload_flag -o $output$reload_objs' 5597case $host_os in 5598 cygwin* | mingw* | pw32* | cegcc*) 5599 if test yes != "$GCC"; then 5600 reload_cmds=false 5601 fi 5602 ;; 5603 darwin*) 5604 if test yes = "$GCC"; then 5605 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5606 else 5607 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5608 fi 5609 ;; 5610esac 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620if test -n "$ac_tool_prefix"; then 5621 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5622set dummy ${ac_tool_prefix}objdump; ac_word=$2 5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5624$as_echo_n "checking for $ac_word... " >&6; } 5625if ${ac_cv_prog_OBJDUMP+:} false; then : 5626 $as_echo_n "(cached) " >&6 5627else 5628 if test -n "$OBJDUMP"; then 5629 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5630else 5631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5632for as_dir in $PATH 5633do 5634 IFS=$as_save_IFS 5635 test -z "$as_dir" && as_dir=. 5636 for ac_exec_ext in '' $ac_executable_extensions; do 5637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5638 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5640 break 2 5641 fi 5642done 5643 done 5644IFS=$as_save_IFS 5645 5646fi 5647fi 5648OBJDUMP=$ac_cv_prog_OBJDUMP 5649if test -n "$OBJDUMP"; then 5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5651$as_echo "$OBJDUMP" >&6; } 5652else 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5654$as_echo "no" >&6; } 5655fi 5656 5657 5658fi 5659if test -z "$ac_cv_prog_OBJDUMP"; then 5660 ac_ct_OBJDUMP=$OBJDUMP 5661 # Extract the first word of "objdump", so it can be a program name with args. 5662set dummy objdump; ac_word=$2 5663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5664$as_echo_n "checking for $ac_word... " >&6; } 5665if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5666 $as_echo_n "(cached) " >&6 5667else 5668 if test -n "$ac_ct_OBJDUMP"; then 5669 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5670else 5671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5672for as_dir in $PATH 5673do 5674 IFS=$as_save_IFS 5675 test -z "$as_dir" && as_dir=. 5676 for ac_exec_ext in '' $ac_executable_extensions; do 5677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5678 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5680 break 2 5681 fi 5682done 5683 done 5684IFS=$as_save_IFS 5685 5686fi 5687fi 5688ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5689if test -n "$ac_ct_OBJDUMP"; then 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5691$as_echo "$ac_ct_OBJDUMP" >&6; } 5692else 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5694$as_echo "no" >&6; } 5695fi 5696 5697 if test "x$ac_ct_OBJDUMP" = x; then 5698 OBJDUMP="false" 5699 else 5700 case $cross_compiling:$ac_tool_warned in 5701yes:) 5702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5704ac_tool_warned=yes ;; 5705esac 5706 OBJDUMP=$ac_ct_OBJDUMP 5707 fi 5708else 5709 OBJDUMP="$ac_cv_prog_OBJDUMP" 5710fi 5711 5712test -z "$OBJDUMP" && OBJDUMP=objdump 5713 5714 5715 5716 5717 5718 5719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5720$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5721if ${lt_cv_deplibs_check_method+:} false; then : 5722 $as_echo_n "(cached) " >&6 5723else 5724 lt_cv_file_magic_cmd='$MAGIC_CMD' 5725lt_cv_file_magic_test_file= 5726lt_cv_deplibs_check_method='unknown' 5727# Need to set the preceding variable on all platforms that support 5728# interlibrary dependencies. 5729# 'none' -- dependencies not supported. 5730# 'unknown' -- same as none, but documents that we really don't know. 5731# 'pass_all' -- all dependencies passed with no checks. 5732# 'test_compile' -- check by making test program. 5733# 'file_magic [[regex]]' -- check by looking for files in library path 5734# that responds to the $file_magic_cmd with a given extended regex. 5735# If you have 'file' or equivalent on your system and you're not sure 5736# whether 'pass_all' will *always* work, you probably want this one. 5737 5738case $host_os in 5739aix[4-9]*) 5740 lt_cv_deplibs_check_method=pass_all 5741 ;; 5742 5743beos*) 5744 lt_cv_deplibs_check_method=pass_all 5745 ;; 5746 5747bsdi[45]*) 5748 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5749 lt_cv_file_magic_cmd='/usr/bin/file -L' 5750 lt_cv_file_magic_test_file=/shlib/libc.so 5751 ;; 5752 5753cygwin*) 5754 # func_win32_libid is a shell function defined in ltmain.sh 5755 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5756 lt_cv_file_magic_cmd='func_win32_libid' 5757 ;; 5758 5759mingw* | pw32*) 5760 # Base MSYS/MinGW do not provide the 'file' command needed by 5761 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5762 # unless we find 'file', for example because we are cross-compiling. 5763 if ( file / ) >/dev/null 2>&1; then 5764 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5765 lt_cv_file_magic_cmd='func_win32_libid' 5766 else 5767 # Keep this pattern in sync with the one in func_win32_libid. 5768 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5769 lt_cv_file_magic_cmd='$OBJDUMP -f' 5770 fi 5771 ;; 5772 5773cegcc*) 5774 # use the weaker test based on 'objdump'. See mingw*. 5775 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5776 lt_cv_file_magic_cmd='$OBJDUMP -f' 5777 ;; 5778 5779darwin* | rhapsody*) 5780 lt_cv_deplibs_check_method=pass_all 5781 ;; 5782 5783freebsd* | dragonfly*) 5784 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5785 case $host_cpu in 5786 i*86 ) 5787 # Not sure whether the presence of OpenBSD here was a mistake. 5788 # Let's accept both of them until this is cleared up. 5789 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5790 lt_cv_file_magic_cmd=/usr/bin/file 5791 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5792 ;; 5793 esac 5794 else 5795 lt_cv_deplibs_check_method=pass_all 5796 fi 5797 ;; 5798 5799haiku*) 5800 lt_cv_deplibs_check_method=pass_all 5801 ;; 5802 5803hpux10.20* | hpux11*) 5804 lt_cv_file_magic_cmd=/usr/bin/file 5805 case $host_cpu in 5806 ia64*) 5807 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5808 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5809 ;; 5810 hppa*64*) 5811 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 5812 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5813 ;; 5814 *) 5815 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5816 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5817 ;; 5818 esac 5819 ;; 5820 5821interix[3-9]*) 5822 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5823 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5824 ;; 5825 5826irix5* | irix6* | nonstopux*) 5827 case $LD in 5828 *-32|*"-32 ") libmagic=32-bit;; 5829 *-n32|*"-n32 ") libmagic=N32;; 5830 *-64|*"-64 ") libmagic=64-bit;; 5831 *) libmagic=never-match;; 5832 esac 5833 lt_cv_deplibs_check_method=pass_all 5834 ;; 5835 5836# This must be glibc/ELF. 5837linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5838 lt_cv_deplibs_check_method=pass_all 5839 ;; 5840 5841netbsd* | netbsdelf*-gnu) 5842 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5843 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5844 else 5845 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5846 fi 5847 ;; 5848 5849newos6*) 5850 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5851 lt_cv_file_magic_cmd=/usr/bin/file 5852 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5853 ;; 5854 5855*nto* | *qnx*) 5856 lt_cv_deplibs_check_method=pass_all 5857 ;; 5858 5859openbsd* | bitrig*) 5860 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5862 else 5863 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5864 fi 5865 ;; 5866 5867osf3* | osf4* | osf5*) 5868 lt_cv_deplibs_check_method=pass_all 5869 ;; 5870 5871rdos*) 5872 lt_cv_deplibs_check_method=pass_all 5873 ;; 5874 5875solaris*) 5876 lt_cv_deplibs_check_method=pass_all 5877 ;; 5878 5879sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5880 lt_cv_deplibs_check_method=pass_all 5881 ;; 5882 5883sysv4 | sysv4.3*) 5884 case $host_vendor in 5885 motorola) 5886 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]' 5887 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5888 ;; 5889 ncr) 5890 lt_cv_deplibs_check_method=pass_all 5891 ;; 5892 sequent) 5893 lt_cv_file_magic_cmd='/bin/file' 5894 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5895 ;; 5896 sni) 5897 lt_cv_file_magic_cmd='/bin/file' 5898 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5899 lt_cv_file_magic_test_file=/lib/libc.so 5900 ;; 5901 siemens) 5902 lt_cv_deplibs_check_method=pass_all 5903 ;; 5904 pc) 5905 lt_cv_deplibs_check_method=pass_all 5906 ;; 5907 esac 5908 ;; 5909 5910tpf*) 5911 lt_cv_deplibs_check_method=pass_all 5912 ;; 5913os2*) 5914 lt_cv_deplibs_check_method=pass_all 5915 ;; 5916esac 5917 5918fi 5919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5920$as_echo "$lt_cv_deplibs_check_method" >&6; } 5921 5922file_magic_glob= 5923want_nocaseglob=no 5924if test "$build" = "$host"; then 5925 case $host_os in 5926 mingw* | pw32*) 5927 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5928 want_nocaseglob=yes 5929 else 5930 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5931 fi 5932 ;; 5933 esac 5934fi 5935 5936file_magic_cmd=$lt_cv_file_magic_cmd 5937deplibs_check_method=$lt_cv_deplibs_check_method 5938test -z "$deplibs_check_method" && deplibs_check_method=unknown 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961if test -n "$ac_tool_prefix"; then 5962 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5963set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5965$as_echo_n "checking for $ac_word... " >&6; } 5966if ${ac_cv_prog_DLLTOOL+:} false; then : 5967 $as_echo_n "(cached) " >&6 5968else 5969 if test -n "$DLLTOOL"; then 5970 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5971else 5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5973for as_dir in $PATH 5974do 5975 IFS=$as_save_IFS 5976 test -z "$as_dir" && as_dir=. 5977 for ac_exec_ext in '' $ac_executable_extensions; do 5978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5979 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5981 break 2 5982 fi 5983done 5984 done 5985IFS=$as_save_IFS 5986 5987fi 5988fi 5989DLLTOOL=$ac_cv_prog_DLLTOOL 5990if test -n "$DLLTOOL"; then 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5992$as_echo "$DLLTOOL" >&6; } 5993else 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5995$as_echo "no" >&6; } 5996fi 5997 5998 5999fi 6000if test -z "$ac_cv_prog_DLLTOOL"; then 6001 ac_ct_DLLTOOL=$DLLTOOL 6002 # Extract the first word of "dlltool", so it can be a program name with args. 6003set dummy dlltool; ac_word=$2 6004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6005$as_echo_n "checking for $ac_word... " >&6; } 6006if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6007 $as_echo_n "(cached) " >&6 6008else 6009 if test -n "$ac_ct_DLLTOOL"; then 6010 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6011else 6012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6013for as_dir in $PATH 6014do 6015 IFS=$as_save_IFS 6016 test -z "$as_dir" && as_dir=. 6017 for ac_exec_ext in '' $ac_executable_extensions; do 6018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6019 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6021 break 2 6022 fi 6023done 6024 done 6025IFS=$as_save_IFS 6026 6027fi 6028fi 6029ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6030if test -n "$ac_ct_DLLTOOL"; then 6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6032$as_echo "$ac_ct_DLLTOOL" >&6; } 6033else 6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6035$as_echo "no" >&6; } 6036fi 6037 6038 if test "x$ac_ct_DLLTOOL" = x; then 6039 DLLTOOL="false" 6040 else 6041 case $cross_compiling:$ac_tool_warned in 6042yes:) 6043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6045ac_tool_warned=yes ;; 6046esac 6047 DLLTOOL=$ac_ct_DLLTOOL 6048 fi 6049else 6050 DLLTOOL="$ac_cv_prog_DLLTOOL" 6051fi 6052 6053test -z "$DLLTOOL" && DLLTOOL=dlltool 6054 6055 6056 6057 6058 6059 6060 6061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6062$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6063if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6064 $as_echo_n "(cached) " >&6 6065else 6066 lt_cv_sharedlib_from_linklib_cmd='unknown' 6067 6068case $host_os in 6069cygwin* | mingw* | pw32* | cegcc*) 6070 # two different shell functions defined in ltmain.sh; 6071 # decide which one to use based on capabilities of $DLLTOOL 6072 case `$DLLTOOL --help 2>&1` in 6073 *--identify-strict*) 6074 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6075 ;; 6076 *) 6077 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6078 ;; 6079 esac 6080 ;; 6081*) 6082 # fallback: assume linklib IS sharedlib 6083 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6084 ;; 6085esac 6086 6087fi 6088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6089$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6090sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6091test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6092 6093 6094 6095 6096 6097 6098 6099 6100if test -n "$ac_tool_prefix"; then 6101 for ac_prog in ar 6102 do 6103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6104set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6106$as_echo_n "checking for $ac_word... " >&6; } 6107if ${ac_cv_prog_AR+:} false; then : 6108 $as_echo_n "(cached) " >&6 6109else 6110 if test -n "$AR"; then 6111 ac_cv_prog_AR="$AR" # Let the user override the test. 6112else 6113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6114for as_dir in $PATH 6115do 6116 IFS=$as_save_IFS 6117 test -z "$as_dir" && as_dir=. 6118 for ac_exec_ext in '' $ac_executable_extensions; do 6119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6120 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6122 break 2 6123 fi 6124done 6125 done 6126IFS=$as_save_IFS 6127 6128fi 6129fi 6130AR=$ac_cv_prog_AR 6131if test -n "$AR"; then 6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6133$as_echo "$AR" >&6; } 6134else 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6136$as_echo "no" >&6; } 6137fi 6138 6139 6140 test -n "$AR" && break 6141 done 6142fi 6143if test -z "$AR"; then 6144 ac_ct_AR=$AR 6145 for ac_prog in ar 6146do 6147 # Extract the first word of "$ac_prog", so it can be a program name with args. 6148set dummy $ac_prog; ac_word=$2 6149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6150$as_echo_n "checking for $ac_word... " >&6; } 6151if ${ac_cv_prog_ac_ct_AR+:} false; then : 6152 $as_echo_n "(cached) " >&6 6153else 6154 if test -n "$ac_ct_AR"; then 6155 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6156else 6157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6158for as_dir in $PATH 6159do 6160 IFS=$as_save_IFS 6161 test -z "$as_dir" && as_dir=. 6162 for ac_exec_ext in '' $ac_executable_extensions; do 6163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6164 ac_cv_prog_ac_ct_AR="$ac_prog" 6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6166 break 2 6167 fi 6168done 6169 done 6170IFS=$as_save_IFS 6171 6172fi 6173fi 6174ac_ct_AR=$ac_cv_prog_ac_ct_AR 6175if test -n "$ac_ct_AR"; then 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6177$as_echo "$ac_ct_AR" >&6; } 6178else 6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6180$as_echo "no" >&6; } 6181fi 6182 6183 6184 test -n "$ac_ct_AR" && break 6185done 6186 6187 if test "x$ac_ct_AR" = x; then 6188 AR="false" 6189 else 6190 case $cross_compiling:$ac_tool_warned in 6191yes:) 6192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6194ac_tool_warned=yes ;; 6195esac 6196 AR=$ac_ct_AR 6197 fi 6198fi 6199 6200: ${AR=ar} 6201: ${AR_FLAGS=cru} 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6214$as_echo_n "checking for archiver @FILE support... " >&6; } 6215if ${lt_cv_ar_at_file+:} false; then : 6216 $as_echo_n "(cached) " >&6 6217else 6218 lt_cv_ar_at_file=no 6219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6220/* end confdefs.h. */ 6221 6222int 6223main () 6224{ 6225 6226 ; 6227 return 0; 6228} 6229_ACEOF 6230if ac_fn_cxx_try_compile "$LINENO"; then : 6231 echo conftest.$ac_objext > conftest.lst 6232 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6234 (eval $lt_ar_try) 2>&5 6235 ac_status=$? 6236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6237 test $ac_status = 0; } 6238 if test 0 -eq "$ac_status"; then 6239 # Ensure the archiver fails upon bogus file names. 6240 rm -f conftest.$ac_objext libconftest.a 6241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6242 (eval $lt_ar_try) 2>&5 6243 ac_status=$? 6244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6245 test $ac_status = 0; } 6246 if test 0 -ne "$ac_status"; then 6247 lt_cv_ar_at_file=@ 6248 fi 6249 fi 6250 rm -f conftest.* libconftest.a 6251 6252fi 6253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6254 6255fi 6256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6257$as_echo "$lt_cv_ar_at_file" >&6; } 6258 6259if test no = "$lt_cv_ar_at_file"; then 6260 archiver_list_spec= 6261else 6262 archiver_list_spec=$lt_cv_ar_at_file 6263fi 6264 6265 6266 6267 6268 6269 6270 6271if test -n "$ac_tool_prefix"; then 6272 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6273set dummy ${ac_tool_prefix}strip; ac_word=$2 6274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6275$as_echo_n "checking for $ac_word... " >&6; } 6276if ${ac_cv_prog_STRIP+:} false; then : 6277 $as_echo_n "(cached) " >&6 6278else 6279 if test -n "$STRIP"; then 6280 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6281else 6282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6283for as_dir in $PATH 6284do 6285 IFS=$as_save_IFS 6286 test -z "$as_dir" && as_dir=. 6287 for ac_exec_ext in '' $ac_executable_extensions; do 6288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6289 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6291 break 2 6292 fi 6293done 6294 done 6295IFS=$as_save_IFS 6296 6297fi 6298fi 6299STRIP=$ac_cv_prog_STRIP 6300if test -n "$STRIP"; then 6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6302$as_echo "$STRIP" >&6; } 6303else 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6305$as_echo "no" >&6; } 6306fi 6307 6308 6309fi 6310if test -z "$ac_cv_prog_STRIP"; then 6311 ac_ct_STRIP=$STRIP 6312 # Extract the first word of "strip", so it can be a program name with args. 6313set dummy strip; ac_word=$2 6314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6315$as_echo_n "checking for $ac_word... " >&6; } 6316if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6317 $as_echo_n "(cached) " >&6 6318else 6319 if test -n "$ac_ct_STRIP"; then 6320 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6321else 6322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6323for as_dir in $PATH 6324do 6325 IFS=$as_save_IFS 6326 test -z "$as_dir" && as_dir=. 6327 for ac_exec_ext in '' $ac_executable_extensions; do 6328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6329 ac_cv_prog_ac_ct_STRIP="strip" 6330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6331 break 2 6332 fi 6333done 6334 done 6335IFS=$as_save_IFS 6336 6337fi 6338fi 6339ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6340if test -n "$ac_ct_STRIP"; then 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6342$as_echo "$ac_ct_STRIP" >&6; } 6343else 6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6345$as_echo "no" >&6; } 6346fi 6347 6348 if test "x$ac_ct_STRIP" = x; then 6349 STRIP=":" 6350 else 6351 case $cross_compiling:$ac_tool_warned in 6352yes:) 6353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6355ac_tool_warned=yes ;; 6356esac 6357 STRIP=$ac_ct_STRIP 6358 fi 6359else 6360 STRIP="$ac_cv_prog_STRIP" 6361fi 6362 6363test -z "$STRIP" && STRIP=: 6364 6365 6366 6367 6368 6369 6370if test -n "$ac_tool_prefix"; then 6371 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6372set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6374$as_echo_n "checking for $ac_word... " >&6; } 6375if ${ac_cv_prog_RANLIB+:} false; then : 6376 $as_echo_n "(cached) " >&6 6377else 6378 if test -n "$RANLIB"; then 6379 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6380else 6381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6382for as_dir in $PATH 6383do 6384 IFS=$as_save_IFS 6385 test -z "$as_dir" && as_dir=. 6386 for ac_exec_ext in '' $ac_executable_extensions; do 6387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6388 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6390 break 2 6391 fi 6392done 6393 done 6394IFS=$as_save_IFS 6395 6396fi 6397fi 6398RANLIB=$ac_cv_prog_RANLIB 6399if test -n "$RANLIB"; then 6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6401$as_echo "$RANLIB" >&6; } 6402else 6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6404$as_echo "no" >&6; } 6405fi 6406 6407 6408fi 6409if test -z "$ac_cv_prog_RANLIB"; then 6410 ac_ct_RANLIB=$RANLIB 6411 # Extract the first word of "ranlib", so it can be a program name with args. 6412set dummy ranlib; ac_word=$2 6413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6414$as_echo_n "checking for $ac_word... " >&6; } 6415if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6416 $as_echo_n "(cached) " >&6 6417else 6418 if test -n "$ac_ct_RANLIB"; then 6419 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6420else 6421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6422for as_dir in $PATH 6423do 6424 IFS=$as_save_IFS 6425 test -z "$as_dir" && as_dir=. 6426 for ac_exec_ext in '' $ac_executable_extensions; do 6427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6428 ac_cv_prog_ac_ct_RANLIB="ranlib" 6429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6430 break 2 6431 fi 6432done 6433 done 6434IFS=$as_save_IFS 6435 6436fi 6437fi 6438ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6439if test -n "$ac_ct_RANLIB"; then 6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6441$as_echo "$ac_ct_RANLIB" >&6; } 6442else 6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6444$as_echo "no" >&6; } 6445fi 6446 6447 if test "x$ac_ct_RANLIB" = x; then 6448 RANLIB=":" 6449 else 6450 case $cross_compiling:$ac_tool_warned in 6451yes:) 6452{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6454ac_tool_warned=yes ;; 6455esac 6456 RANLIB=$ac_ct_RANLIB 6457 fi 6458else 6459 RANLIB="$ac_cv_prog_RANLIB" 6460fi 6461 6462test -z "$RANLIB" && RANLIB=: 6463 6464 6465 6466 6467 6468 6469# Determine commands to create old-style static archives. 6470old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6471old_postinstall_cmds='chmod 644 $oldlib' 6472old_postuninstall_cmds= 6473 6474if test -n "$RANLIB"; then 6475 case $host_os in 6476 bitrig* | openbsd*) 6477 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6478 ;; 6479 *) 6480 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6481 ;; 6482 esac 6483 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6484fi 6485 6486case $host_os in 6487 darwin*) 6488 lock_old_archive_extraction=yes ;; 6489 *) 6490 lock_old_archive_extraction=no ;; 6491esac 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531# If no C compiler was specified, use CC. 6532LTCC=${LTCC-"$CC"} 6533 6534# If no C compiler flags were specified, use CFLAGS. 6535LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6536 6537# Allow CC to be a program name with arguments. 6538compiler=$CC 6539 6540 6541# Check for command to grab the raw symbol name followed by C symbol from nm. 6542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6543$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6544if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6545 $as_echo_n "(cached) " >&6 6546else 6547 6548# These are sane defaults that work on at least a few old systems. 6549# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6550 6551# Character class describing NM global symbol codes. 6552symcode='[BCDEGRST]' 6553 6554# Regexp to match symbols that can be accessed directly from C. 6555sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6556 6557# Define system-specific variables. 6558case $host_os in 6559aix*) 6560 symcode='[BCDT]' 6561 ;; 6562cygwin* | mingw* | pw32* | cegcc*) 6563 symcode='[ABCDGISTW]' 6564 ;; 6565hpux*) 6566 if test ia64 = "$host_cpu"; then 6567 symcode='[ABCDEGRST]' 6568 fi 6569 ;; 6570irix* | nonstopux*) 6571 symcode='[BCDEGRST]' 6572 ;; 6573osf*) 6574 symcode='[BCDEGQRST]' 6575 ;; 6576solaris*) 6577 symcode='[BDRT]' 6578 ;; 6579sco3.2v5*) 6580 symcode='[DT]' 6581 ;; 6582sysv4.2uw2*) 6583 symcode='[DT]' 6584 ;; 6585sysv5* | sco5v6* | unixware* | OpenUNIX*) 6586 symcode='[ABDT]' 6587 ;; 6588sysv4) 6589 symcode='[DFNSTU]' 6590 ;; 6591esac 6592 6593# If we're using GNU nm, then use its standard symbol codes. 6594case `$NM -V 2>&1` in 6595*GNU* | *'with BFD'*) 6596 symcode='[ABCDGIRSTW]' ;; 6597esac 6598 6599if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6600 # Gets list of data symbols to import. 6601 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6602 # Adjust the below global symbol transforms to fixup imported variables. 6603 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6604 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6605 lt_c_name_lib_hook="\ 6606 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6607 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6608else 6609 # Disable hooks by default. 6610 lt_cv_sys_global_symbol_to_import= 6611 lt_cdecl_hook= 6612 lt_c_name_hook= 6613 lt_c_name_lib_hook= 6614fi 6615 6616# Transform an extracted symbol line into a proper C declaration. 6617# Some systems (esp. on ia64) link data and code symbols differently, 6618# so use this general approach. 6619lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6620$lt_cdecl_hook\ 6621" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6622" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6623 6624# Transform an extracted symbol line into symbol name and symbol address 6625lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6626$lt_c_name_hook\ 6627" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6628" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6629 6630# Transform an extracted symbol line into symbol name with lib prefix and 6631# symbol address. 6632lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6633$lt_c_name_lib_hook\ 6634" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6635" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6636" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6637 6638# Handle CRLF in mingw tool chain 6639opt_cr= 6640case $build_os in 6641mingw*) 6642 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6643 ;; 6644esac 6645 6646# Try without a prefix underscore, then with it. 6647for ac_symprfx in "" "_"; do 6648 6649 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6650 symxfrm="\\1 $ac_symprfx\\2 \\2" 6651 6652 # Write the raw and C identifiers. 6653 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6654 # Fake it for dumpbin and say T for any non-static function, 6655 # D for any global variable and I for any imported variable. 6656 # Also find C++ and __fastcall symbols from MSVC++, 6657 # which start with @ or ?. 6658 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6659" {last_section=section; section=\$ 3};"\ 6660" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6661" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6662" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6663" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6664" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6665" \$ 0!~/External *\|/{next};"\ 6666" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6667" {if(hide[section]) next};"\ 6668" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6669" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6670" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6671" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6672" ' prfx=^$ac_symprfx" 6673 else 6674 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6675 fi 6676 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6677 6678 # Check to see that the pipe works correctly. 6679 pipe_works=no 6680 6681 rm -f conftest* 6682 cat > conftest.$ac_ext <<_LT_EOF 6683#ifdef __cplusplus 6684extern "C" { 6685#endif 6686char nm_test_var; 6687void nm_test_func(void); 6688void nm_test_func(void){} 6689#ifdef __cplusplus 6690} 6691#endif 6692int main(){nm_test_var='a';nm_test_func();return(0);} 6693_LT_EOF 6694 6695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6696 (eval $ac_compile) 2>&5 6697 ac_status=$? 6698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6699 test $ac_status = 0; }; then 6700 # Now try to grab the symbols. 6701 nlist=conftest.nm 6702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6703 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6704 ac_status=$? 6705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6706 test $ac_status = 0; } && test -s "$nlist"; then 6707 # Try sorting and uniquifying the output. 6708 if sort "$nlist" | uniq > "$nlist"T; then 6709 mv -f "$nlist"T "$nlist" 6710 else 6711 rm -f "$nlist"T 6712 fi 6713 6714 # Make sure that we snagged all the symbols we need. 6715 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6716 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6717 cat <<_LT_EOF > conftest.$ac_ext 6718/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6719#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6720/* DATA imports from DLLs on WIN32 can't be const, because runtime 6721 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6722# define LT_DLSYM_CONST 6723#elif defined __osf__ 6724/* This system does not cope well with relocations in const data. */ 6725# define LT_DLSYM_CONST 6726#else 6727# define LT_DLSYM_CONST const 6728#endif 6729 6730#ifdef __cplusplus 6731extern "C" { 6732#endif 6733 6734_LT_EOF 6735 # Now generate the symbol file. 6736 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6737 6738 cat <<_LT_EOF >> conftest.$ac_ext 6739 6740/* The mapping between symbol names and symbols. */ 6741LT_DLSYM_CONST struct { 6742 const char *name; 6743 void *address; 6744} 6745lt__PROGRAM__LTX_preloaded_symbols[] = 6746{ 6747 { "@PROGRAM@", (void *) 0 }, 6748_LT_EOF 6749 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6750 cat <<\_LT_EOF >> conftest.$ac_ext 6751 {0, (void *) 0} 6752}; 6753 6754/* This works around a problem in FreeBSD linker */ 6755#ifdef FREEBSD_WORKAROUND 6756static const void *lt_preloaded_setup() { 6757 return lt__PROGRAM__LTX_preloaded_symbols; 6758} 6759#endif 6760 6761#ifdef __cplusplus 6762} 6763#endif 6764_LT_EOF 6765 # Now try linking the two files. 6766 mv conftest.$ac_objext conftstm.$ac_objext 6767 lt_globsym_save_LIBS=$LIBS 6768 lt_globsym_save_CFLAGS=$CFLAGS 6769 LIBS=conftstm.$ac_objext 6770 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6772 (eval $ac_link) 2>&5 6773 ac_status=$? 6774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6775 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6776 pipe_works=yes 6777 fi 6778 LIBS=$lt_globsym_save_LIBS 6779 CFLAGS=$lt_globsym_save_CFLAGS 6780 else 6781 echo "cannot find nm_test_func in $nlist" >&5 6782 fi 6783 else 6784 echo "cannot find nm_test_var in $nlist" >&5 6785 fi 6786 else 6787 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6788 fi 6789 else 6790 echo "$progname: failed program was:" >&5 6791 cat conftest.$ac_ext >&5 6792 fi 6793 rm -rf conftest* conftst* 6794 6795 # Do not use the global_symbol_pipe unless it works. 6796 if test yes = "$pipe_works"; then 6797 break 6798 else 6799 lt_cv_sys_global_symbol_pipe= 6800 fi 6801done 6802 6803fi 6804 6805if test -z "$lt_cv_sys_global_symbol_pipe"; then 6806 lt_cv_sys_global_symbol_to_cdecl= 6807fi 6808if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6810$as_echo "failed" >&6; } 6811else 6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6813$as_echo "ok" >&6; } 6814fi 6815 6816# Response file support. 6817if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6818 nm_file_list_spec='@' 6819elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6820 nm_file_list_spec='@' 6821fi 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6860$as_echo_n "checking for sysroot... " >&6; } 6861 6862# Check whether --with-sysroot was given. 6863if test "${with_sysroot+set}" = set; then : 6864 withval=$with_sysroot; 6865else 6866 with_sysroot=no 6867fi 6868 6869 6870lt_sysroot= 6871case $with_sysroot in #( 6872 yes) 6873 if test yes = "$GCC"; then 6874 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6875 fi 6876 ;; #( 6877 /*) 6878 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6879 ;; #( 6880 no|'') 6881 ;; #( 6882 *) 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6884$as_echo "$with_sysroot" >&6; } 6885 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6886 ;; 6887esac 6888 6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6890$as_echo "${lt_sysroot:-no}" >&6; } 6891 6892 6893 6894 6895 6896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6897$as_echo_n "checking for a working dd... " >&6; } 6898if ${ac_cv_path_lt_DD+:} false; then : 6899 $as_echo_n "(cached) " >&6 6900else 6901 printf 0123456789abcdef0123456789abcdef >conftest.i 6902cat conftest.i conftest.i >conftest2.i 6903: ${lt_DD:=$DD} 6904if test -z "$lt_DD"; then 6905 ac_path_lt_DD_found=false 6906 # Loop through the user's path and test for each of PROGNAME-LIST 6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6908for as_dir in $PATH 6909do 6910 IFS=$as_save_IFS 6911 test -z "$as_dir" && as_dir=. 6912 for ac_prog in dd; do 6913 for ac_exec_ext in '' $ac_executable_extensions; do 6914 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6915 as_fn_executable_p "$ac_path_lt_DD" || continue 6916if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6917 cmp -s conftest.i conftest.out \ 6918 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6919fi 6920 $ac_path_lt_DD_found && break 3 6921 done 6922 done 6923 done 6924IFS=$as_save_IFS 6925 if test -z "$ac_cv_path_lt_DD"; then 6926 : 6927 fi 6928else 6929 ac_cv_path_lt_DD=$lt_DD 6930fi 6931 6932rm -f conftest.i conftest2.i conftest.out 6933fi 6934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6935$as_echo "$ac_cv_path_lt_DD" >&6; } 6936 6937 6938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6939$as_echo_n "checking how to truncate binary pipes... " >&6; } 6940if ${lt_cv_truncate_bin+:} false; then : 6941 $as_echo_n "(cached) " >&6 6942else 6943 printf 0123456789abcdef0123456789abcdef >conftest.i 6944cat conftest.i conftest.i >conftest2.i 6945lt_cv_truncate_bin= 6946if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6947 cmp -s conftest.i conftest.out \ 6948 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6949fi 6950rm -f conftest.i conftest2.i conftest.out 6951test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6952fi 6953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6954$as_echo "$lt_cv_truncate_bin" >&6; } 6955 6956 6957 6958 6959 6960 6961 6962# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6963func_cc_basename () 6964{ 6965 for cc_temp in $*""; do 6966 case $cc_temp in 6967 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6968 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6969 \-*) ;; 6970 *) break;; 6971 esac 6972 done 6973 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6974} 6975 6976# Check whether --enable-libtool-lock was given. 6977if test "${enable_libtool_lock+set}" = set; then : 6978 enableval=$enable_libtool_lock; 6979fi 6980 6981test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6982 6983# Some flags need to be propagated to the compiler or linker for good 6984# libtool support. 6985case $host in 6986ia64-*-hpux*) 6987 # Find out what ABI is being produced by ac_compile, and set mode 6988 # options accordingly. 6989 echo 'int i;' > conftest.$ac_ext 6990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6991 (eval $ac_compile) 2>&5 6992 ac_status=$? 6993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6994 test $ac_status = 0; }; then 6995 case `/usr/bin/file conftest.$ac_objext` in 6996 *ELF-32*) 6997 HPUX_IA64_MODE=32 6998 ;; 6999 *ELF-64*) 7000 HPUX_IA64_MODE=64 7001 ;; 7002 esac 7003 fi 7004 rm -rf conftest* 7005 ;; 7006*-*-irix6*) 7007 # Find out what ABI is being produced by ac_compile, and set linker 7008 # options accordingly. 7009 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7011 (eval $ac_compile) 2>&5 7012 ac_status=$? 7013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7014 test $ac_status = 0; }; then 7015 if test yes = "$lt_cv_prog_gnu_ld"; then 7016 case `/usr/bin/file conftest.$ac_objext` in 7017 *32-bit*) 7018 LD="${LD-ld} -melf32bsmip" 7019 ;; 7020 *N32*) 7021 LD="${LD-ld} -melf32bmipn32" 7022 ;; 7023 *64-bit*) 7024 LD="${LD-ld} -melf64bmip" 7025 ;; 7026 esac 7027 else 7028 case `/usr/bin/file conftest.$ac_objext` in 7029 *32-bit*) 7030 LD="${LD-ld} -32" 7031 ;; 7032 *N32*) 7033 LD="${LD-ld} -n32" 7034 ;; 7035 *64-bit*) 7036 LD="${LD-ld} -64" 7037 ;; 7038 esac 7039 fi 7040 fi 7041 rm -rf conftest* 7042 ;; 7043 7044mips64*-*linux*) 7045 # Find out what ABI is being produced by ac_compile, and set linker 7046 # options accordingly. 7047 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7049 (eval $ac_compile) 2>&5 7050 ac_status=$? 7051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7052 test $ac_status = 0; }; then 7053 emul=elf 7054 case `/usr/bin/file conftest.$ac_objext` in 7055 *32-bit*) 7056 emul="${emul}32" 7057 ;; 7058 *64-bit*) 7059 emul="${emul}64" 7060 ;; 7061 esac 7062 case `/usr/bin/file conftest.$ac_objext` in 7063 *MSB*) 7064 emul="${emul}btsmip" 7065 ;; 7066 *LSB*) 7067 emul="${emul}ltsmip" 7068 ;; 7069 esac 7070 case `/usr/bin/file conftest.$ac_objext` in 7071 *N32*) 7072 emul="${emul}n32" 7073 ;; 7074 esac 7075 LD="${LD-ld} -m $emul" 7076 fi 7077 rm -rf conftest* 7078 ;; 7079 7080x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7081s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7082 # Find out what ABI is being produced by ac_compile, and set linker 7083 # options accordingly. Note that the listed cases only cover the 7084 # situations where additional linker options are needed (such as when 7085 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7086 # vice versa); the common cases where no linker options are needed do 7087 # not appear in the list. 7088 echo 'int i;' > conftest.$ac_ext 7089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7090 (eval $ac_compile) 2>&5 7091 ac_status=$? 7092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7093 test $ac_status = 0; }; then 7094 case `/usr/bin/file conftest.o` in 7095 *32-bit*) 7096 case $host in 7097 x86_64-*kfreebsd*-gnu) 7098 LD="${LD-ld} -m elf_i386_fbsd" 7099 ;; 7100 x86_64-*linux*) 7101 case `/usr/bin/file conftest.o` in 7102 *x86-64*) 7103 LD="${LD-ld} -m elf32_x86_64" 7104 ;; 7105 *) 7106 LD="${LD-ld} -m elf_i386" 7107 ;; 7108 esac 7109 ;; 7110 powerpc64le-*linux*) 7111 LD="${LD-ld} -m elf32lppclinux" 7112 ;; 7113 powerpc64-*linux*) 7114 LD="${LD-ld} -m elf32ppclinux" 7115 ;; 7116 s390x-*linux*) 7117 LD="${LD-ld} -m elf_s390" 7118 ;; 7119 sparc64-*linux*) 7120 LD="${LD-ld} -m elf32_sparc" 7121 ;; 7122 esac 7123 ;; 7124 *64-bit*) 7125 case $host in 7126 x86_64-*kfreebsd*-gnu) 7127 LD="${LD-ld} -m elf_x86_64_fbsd" 7128 ;; 7129 x86_64-*linux*) 7130 LD="${LD-ld} -m elf_x86_64" 7131 ;; 7132 powerpcle-*linux*) 7133 LD="${LD-ld} -m elf64lppc" 7134 ;; 7135 powerpc-*linux*) 7136 LD="${LD-ld} -m elf64ppc" 7137 ;; 7138 s390*-*linux*|s390*-*tpf*) 7139 LD="${LD-ld} -m elf64_s390" 7140 ;; 7141 sparc*-*linux*) 7142 LD="${LD-ld} -m elf64_sparc" 7143 ;; 7144 esac 7145 ;; 7146 esac 7147 fi 7148 rm -rf conftest* 7149 ;; 7150 7151*-*-sco3.2v5*) 7152 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7153 SAVE_CFLAGS=$CFLAGS 7154 CFLAGS="$CFLAGS -belf" 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7156$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7157if ${lt_cv_cc_needs_belf+:} false; then : 7158 $as_echo_n "(cached) " >&6 7159else 7160 ac_ext=c 7161ac_cpp='$CPP $CPPFLAGS' 7162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7164ac_compiler_gnu=$ac_cv_c_compiler_gnu 7165 7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7167/* end confdefs.h. */ 7168 7169int 7170main () 7171{ 7172 7173 ; 7174 return 0; 7175} 7176_ACEOF 7177if ac_fn_c_try_link "$LINENO"; then : 7178 lt_cv_cc_needs_belf=yes 7179else 7180 lt_cv_cc_needs_belf=no 7181fi 7182rm -f core conftest.err conftest.$ac_objext \ 7183 conftest$ac_exeext conftest.$ac_ext 7184 ac_ext=c 7185ac_cpp='$CPP $CPPFLAGS' 7186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7188ac_compiler_gnu=$ac_cv_c_compiler_gnu 7189 7190fi 7191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7192$as_echo "$lt_cv_cc_needs_belf" >&6; } 7193 if test yes != "$lt_cv_cc_needs_belf"; then 7194 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7195 CFLAGS=$SAVE_CFLAGS 7196 fi 7197 ;; 7198*-*solaris*) 7199 # Find out what ABI is being produced by ac_compile, and set linker 7200 # options accordingly. 7201 echo 'int i;' > conftest.$ac_ext 7202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7203 (eval $ac_compile) 2>&5 7204 ac_status=$? 7205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7206 test $ac_status = 0; }; then 7207 case `/usr/bin/file conftest.o` in 7208 *64-bit*) 7209 case $lt_cv_prog_gnu_ld in 7210 yes*) 7211 case $host in 7212 i?86-*-solaris*|x86_64-*-solaris*) 7213 LD="${LD-ld} -m elf_x86_64" 7214 ;; 7215 sparc*-*-solaris*) 7216 LD="${LD-ld} -m elf64_sparc" 7217 ;; 7218 esac 7219 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7220 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7221 LD=${LD-ld}_sol2 7222 fi 7223 ;; 7224 *) 7225 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7226 LD="${LD-ld} -64" 7227 fi 7228 ;; 7229 esac 7230 ;; 7231 esac 7232 fi 7233 rm -rf conftest* 7234 ;; 7235esac 7236 7237need_locks=$enable_libtool_lock 7238 7239if test -n "$ac_tool_prefix"; then 7240 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7241set dummy ${ac_tool_prefix}mt; ac_word=$2 7242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7243$as_echo_n "checking for $ac_word... " >&6; } 7244if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7245 $as_echo_n "(cached) " >&6 7246else 7247 if test -n "$MANIFEST_TOOL"; then 7248 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7249else 7250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7251for as_dir in $PATH 7252do 7253 IFS=$as_save_IFS 7254 test -z "$as_dir" && as_dir=. 7255 for ac_exec_ext in '' $ac_executable_extensions; do 7256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7257 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7259 break 2 7260 fi 7261done 7262 done 7263IFS=$as_save_IFS 7264 7265fi 7266fi 7267MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7268if test -n "$MANIFEST_TOOL"; then 7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7270$as_echo "$MANIFEST_TOOL" >&6; } 7271else 7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7273$as_echo "no" >&6; } 7274fi 7275 7276 7277fi 7278if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7279 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7280 # Extract the first word of "mt", so it can be a program name with args. 7281set dummy mt; ac_word=$2 7282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7283$as_echo_n "checking for $ac_word... " >&6; } 7284if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7285 $as_echo_n "(cached) " >&6 7286else 7287 if test -n "$ac_ct_MANIFEST_TOOL"; then 7288 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7289else 7290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7291for as_dir in $PATH 7292do 7293 IFS=$as_save_IFS 7294 test -z "$as_dir" && as_dir=. 7295 for ac_exec_ext in '' $ac_executable_extensions; do 7296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7297 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7299 break 2 7300 fi 7301done 7302 done 7303IFS=$as_save_IFS 7304 7305fi 7306fi 7307ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7308if test -n "$ac_ct_MANIFEST_TOOL"; then 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7310$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7311else 7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7313$as_echo "no" >&6; } 7314fi 7315 7316 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7317 MANIFEST_TOOL=":" 7318 else 7319 case $cross_compiling:$ac_tool_warned in 7320yes:) 7321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7323ac_tool_warned=yes ;; 7324esac 7325 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7326 fi 7327else 7328 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7329fi 7330 7331test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7333$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7334if ${lt_cv_path_mainfest_tool+:} false; then : 7335 $as_echo_n "(cached) " >&6 7336else 7337 lt_cv_path_mainfest_tool=no 7338 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7339 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7340 cat conftest.err >&5 7341 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7342 lt_cv_path_mainfest_tool=yes 7343 fi 7344 rm -f conftest* 7345fi 7346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7347$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7348if test yes != "$lt_cv_path_mainfest_tool"; then 7349 MANIFEST_TOOL=: 7350fi 7351 7352 7353 7354 7355 7356 7357 case $host_os in 7358 rhapsody* | darwin*) 7359 if test -n "$ac_tool_prefix"; then 7360 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7361set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7363$as_echo_n "checking for $ac_word... " >&6; } 7364if ${ac_cv_prog_DSYMUTIL+:} false; then : 7365 $as_echo_n "(cached) " >&6 7366else 7367 if test -n "$DSYMUTIL"; then 7368 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7369else 7370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7371for as_dir in $PATH 7372do 7373 IFS=$as_save_IFS 7374 test -z "$as_dir" && as_dir=. 7375 for ac_exec_ext in '' $ac_executable_extensions; do 7376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7377 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7379 break 2 7380 fi 7381done 7382 done 7383IFS=$as_save_IFS 7384 7385fi 7386fi 7387DSYMUTIL=$ac_cv_prog_DSYMUTIL 7388if test -n "$DSYMUTIL"; then 7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7390$as_echo "$DSYMUTIL" >&6; } 7391else 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7393$as_echo "no" >&6; } 7394fi 7395 7396 7397fi 7398if test -z "$ac_cv_prog_DSYMUTIL"; then 7399 ac_ct_DSYMUTIL=$DSYMUTIL 7400 # Extract the first word of "dsymutil", so it can be a program name with args. 7401set dummy dsymutil; ac_word=$2 7402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7403$as_echo_n "checking for $ac_word... " >&6; } 7404if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7405 $as_echo_n "(cached) " >&6 7406else 7407 if test -n "$ac_ct_DSYMUTIL"; then 7408 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7409else 7410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7411for as_dir in $PATH 7412do 7413 IFS=$as_save_IFS 7414 test -z "$as_dir" && as_dir=. 7415 for ac_exec_ext in '' $ac_executable_extensions; do 7416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7417 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7419 break 2 7420 fi 7421done 7422 done 7423IFS=$as_save_IFS 7424 7425fi 7426fi 7427ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7428if test -n "$ac_ct_DSYMUTIL"; then 7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7430$as_echo "$ac_ct_DSYMUTIL" >&6; } 7431else 7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7433$as_echo "no" >&6; } 7434fi 7435 7436 if test "x$ac_ct_DSYMUTIL" = x; then 7437 DSYMUTIL=":" 7438 else 7439 case $cross_compiling:$ac_tool_warned in 7440yes:) 7441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7443ac_tool_warned=yes ;; 7444esac 7445 DSYMUTIL=$ac_ct_DSYMUTIL 7446 fi 7447else 7448 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7449fi 7450 7451 if test -n "$ac_tool_prefix"; then 7452 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7453set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7455$as_echo_n "checking for $ac_word... " >&6; } 7456if ${ac_cv_prog_NMEDIT+:} false; then : 7457 $as_echo_n "(cached) " >&6 7458else 7459 if test -n "$NMEDIT"; then 7460 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7461else 7462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7463for as_dir in $PATH 7464do 7465 IFS=$as_save_IFS 7466 test -z "$as_dir" && as_dir=. 7467 for ac_exec_ext in '' $ac_executable_extensions; do 7468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7469 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7471 break 2 7472 fi 7473done 7474 done 7475IFS=$as_save_IFS 7476 7477fi 7478fi 7479NMEDIT=$ac_cv_prog_NMEDIT 7480if test -n "$NMEDIT"; then 7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7482$as_echo "$NMEDIT" >&6; } 7483else 7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7485$as_echo "no" >&6; } 7486fi 7487 7488 7489fi 7490if test -z "$ac_cv_prog_NMEDIT"; then 7491 ac_ct_NMEDIT=$NMEDIT 7492 # Extract the first word of "nmedit", so it can be a program name with args. 7493set dummy nmedit; ac_word=$2 7494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7495$as_echo_n "checking for $ac_word... " >&6; } 7496if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7497 $as_echo_n "(cached) " >&6 7498else 7499 if test -n "$ac_ct_NMEDIT"; then 7500 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7501else 7502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7503for as_dir in $PATH 7504do 7505 IFS=$as_save_IFS 7506 test -z "$as_dir" && as_dir=. 7507 for ac_exec_ext in '' $ac_executable_extensions; do 7508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7509 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7511 break 2 7512 fi 7513done 7514 done 7515IFS=$as_save_IFS 7516 7517fi 7518fi 7519ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7520if test -n "$ac_ct_NMEDIT"; then 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7522$as_echo "$ac_ct_NMEDIT" >&6; } 7523else 7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7525$as_echo "no" >&6; } 7526fi 7527 7528 if test "x$ac_ct_NMEDIT" = x; then 7529 NMEDIT=":" 7530 else 7531 case $cross_compiling:$ac_tool_warned in 7532yes:) 7533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7535ac_tool_warned=yes ;; 7536esac 7537 NMEDIT=$ac_ct_NMEDIT 7538 fi 7539else 7540 NMEDIT="$ac_cv_prog_NMEDIT" 7541fi 7542 7543 if test -n "$ac_tool_prefix"; then 7544 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7545set dummy ${ac_tool_prefix}lipo; ac_word=$2 7546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7547$as_echo_n "checking for $ac_word... " >&6; } 7548if ${ac_cv_prog_LIPO+:} false; then : 7549 $as_echo_n "(cached) " >&6 7550else 7551 if test -n "$LIPO"; then 7552 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7553else 7554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7555for as_dir in $PATH 7556do 7557 IFS=$as_save_IFS 7558 test -z "$as_dir" && as_dir=. 7559 for ac_exec_ext in '' $ac_executable_extensions; do 7560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7561 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7563 break 2 7564 fi 7565done 7566 done 7567IFS=$as_save_IFS 7568 7569fi 7570fi 7571LIPO=$ac_cv_prog_LIPO 7572if test -n "$LIPO"; then 7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7574$as_echo "$LIPO" >&6; } 7575else 7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7577$as_echo "no" >&6; } 7578fi 7579 7580 7581fi 7582if test -z "$ac_cv_prog_LIPO"; then 7583 ac_ct_LIPO=$LIPO 7584 # Extract the first word of "lipo", so it can be a program name with args. 7585set dummy lipo; ac_word=$2 7586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7587$as_echo_n "checking for $ac_word... " >&6; } 7588if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7589 $as_echo_n "(cached) " >&6 7590else 7591 if test -n "$ac_ct_LIPO"; then 7592 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7593else 7594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7595for as_dir in $PATH 7596do 7597 IFS=$as_save_IFS 7598 test -z "$as_dir" && as_dir=. 7599 for ac_exec_ext in '' $ac_executable_extensions; do 7600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7601 ac_cv_prog_ac_ct_LIPO="lipo" 7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7603 break 2 7604 fi 7605done 7606 done 7607IFS=$as_save_IFS 7608 7609fi 7610fi 7611ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7612if test -n "$ac_ct_LIPO"; then 7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7614$as_echo "$ac_ct_LIPO" >&6; } 7615else 7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7617$as_echo "no" >&6; } 7618fi 7619 7620 if test "x$ac_ct_LIPO" = x; then 7621 LIPO=":" 7622 else 7623 case $cross_compiling:$ac_tool_warned in 7624yes:) 7625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7627ac_tool_warned=yes ;; 7628esac 7629 LIPO=$ac_ct_LIPO 7630 fi 7631else 7632 LIPO="$ac_cv_prog_LIPO" 7633fi 7634 7635 if test -n "$ac_tool_prefix"; then 7636 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7637set dummy ${ac_tool_prefix}otool; ac_word=$2 7638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7639$as_echo_n "checking for $ac_word... " >&6; } 7640if ${ac_cv_prog_OTOOL+:} false; then : 7641 $as_echo_n "(cached) " >&6 7642else 7643 if test -n "$OTOOL"; then 7644 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7645else 7646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7647for as_dir in $PATH 7648do 7649 IFS=$as_save_IFS 7650 test -z "$as_dir" && as_dir=. 7651 for ac_exec_ext in '' $ac_executable_extensions; do 7652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7653 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7655 break 2 7656 fi 7657done 7658 done 7659IFS=$as_save_IFS 7660 7661fi 7662fi 7663OTOOL=$ac_cv_prog_OTOOL 7664if test -n "$OTOOL"; then 7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7666$as_echo "$OTOOL" >&6; } 7667else 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7669$as_echo "no" >&6; } 7670fi 7671 7672 7673fi 7674if test -z "$ac_cv_prog_OTOOL"; then 7675 ac_ct_OTOOL=$OTOOL 7676 # Extract the first word of "otool", so it can be a program name with args. 7677set dummy otool; ac_word=$2 7678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7679$as_echo_n "checking for $ac_word... " >&6; } 7680if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7681 $as_echo_n "(cached) " >&6 7682else 7683 if test -n "$ac_ct_OTOOL"; then 7684 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7685else 7686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7687for as_dir in $PATH 7688do 7689 IFS=$as_save_IFS 7690 test -z "$as_dir" && as_dir=. 7691 for ac_exec_ext in '' $ac_executable_extensions; do 7692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7693 ac_cv_prog_ac_ct_OTOOL="otool" 7694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7695 break 2 7696 fi 7697done 7698 done 7699IFS=$as_save_IFS 7700 7701fi 7702fi 7703ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7704if test -n "$ac_ct_OTOOL"; then 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7706$as_echo "$ac_ct_OTOOL" >&6; } 7707else 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7709$as_echo "no" >&6; } 7710fi 7711 7712 if test "x$ac_ct_OTOOL" = x; then 7713 OTOOL=":" 7714 else 7715 case $cross_compiling:$ac_tool_warned in 7716yes:) 7717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7719ac_tool_warned=yes ;; 7720esac 7721 OTOOL=$ac_ct_OTOOL 7722 fi 7723else 7724 OTOOL="$ac_cv_prog_OTOOL" 7725fi 7726 7727 if test -n "$ac_tool_prefix"; then 7728 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7729set dummy ${ac_tool_prefix}otool64; ac_word=$2 7730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7731$as_echo_n "checking for $ac_word... " >&6; } 7732if ${ac_cv_prog_OTOOL64+:} false; then : 7733 $as_echo_n "(cached) " >&6 7734else 7735 if test -n "$OTOOL64"; then 7736 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7737else 7738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7739for as_dir in $PATH 7740do 7741 IFS=$as_save_IFS 7742 test -z "$as_dir" && as_dir=. 7743 for ac_exec_ext in '' $ac_executable_extensions; do 7744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7745 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7747 break 2 7748 fi 7749done 7750 done 7751IFS=$as_save_IFS 7752 7753fi 7754fi 7755OTOOL64=$ac_cv_prog_OTOOL64 7756if test -n "$OTOOL64"; then 7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7758$as_echo "$OTOOL64" >&6; } 7759else 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7761$as_echo "no" >&6; } 7762fi 7763 7764 7765fi 7766if test -z "$ac_cv_prog_OTOOL64"; then 7767 ac_ct_OTOOL64=$OTOOL64 7768 # Extract the first word of "otool64", so it can be a program name with args. 7769set dummy otool64; ac_word=$2 7770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7771$as_echo_n "checking for $ac_word... " >&6; } 7772if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7773 $as_echo_n "(cached) " >&6 7774else 7775 if test -n "$ac_ct_OTOOL64"; then 7776 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7777else 7778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7779for as_dir in $PATH 7780do 7781 IFS=$as_save_IFS 7782 test -z "$as_dir" && as_dir=. 7783 for ac_exec_ext in '' $ac_executable_extensions; do 7784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7785 ac_cv_prog_ac_ct_OTOOL64="otool64" 7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7787 break 2 7788 fi 7789done 7790 done 7791IFS=$as_save_IFS 7792 7793fi 7794fi 7795ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7796if test -n "$ac_ct_OTOOL64"; then 7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7798$as_echo "$ac_ct_OTOOL64" >&6; } 7799else 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7801$as_echo "no" >&6; } 7802fi 7803 7804 if test "x$ac_ct_OTOOL64" = x; then 7805 OTOOL64=":" 7806 else 7807 case $cross_compiling:$ac_tool_warned in 7808yes:) 7809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7811ac_tool_warned=yes ;; 7812esac 7813 OTOOL64=$ac_ct_OTOOL64 7814 fi 7815else 7816 OTOOL64="$ac_cv_prog_OTOOL64" 7817fi 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7846$as_echo_n "checking for -single_module linker flag... " >&6; } 7847if ${lt_cv_apple_cc_single_mod+:} false; then : 7848 $as_echo_n "(cached) " >&6 7849else 7850 lt_cv_apple_cc_single_mod=no 7851 if test -z "$LT_MULTI_MODULE"; then 7852 # By default we will add the -single_module flag. You can override 7853 # by either setting the environment variable LT_MULTI_MODULE 7854 # non-empty at configure time, or by adding -multi_module to the 7855 # link flags. 7856 rm -rf libconftest.dylib* 7857 echo "int foo(void){return 1;}" > conftest.c 7858 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7859-dynamiclib -Wl,-single_module conftest.c" >&5 7860 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7861 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7862 _lt_result=$? 7863 # If there is a non-empty error log, and "single_module" 7864 # appears in it, assume the flag caused a linker warning 7865 if test -s conftest.err && $GREP single_module conftest.err; then 7866 cat conftest.err >&5 7867 # Otherwise, if the output was created with a 0 exit code from 7868 # the compiler, it worked. 7869 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7870 lt_cv_apple_cc_single_mod=yes 7871 else 7872 cat conftest.err >&5 7873 fi 7874 rm -rf libconftest.dylib* 7875 rm -f conftest.* 7876 fi 7877fi 7878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7879$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7880 7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7882$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7883if ${lt_cv_ld_exported_symbols_list+:} false; then : 7884 $as_echo_n "(cached) " >&6 7885else 7886 lt_cv_ld_exported_symbols_list=no 7887 save_LDFLAGS=$LDFLAGS 7888 echo "_main" > conftest.sym 7889 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7891/* end confdefs.h. */ 7892 7893int 7894main () 7895{ 7896 7897 ; 7898 return 0; 7899} 7900_ACEOF 7901if ac_fn_c_try_link "$LINENO"; then : 7902 lt_cv_ld_exported_symbols_list=yes 7903else 7904 lt_cv_ld_exported_symbols_list=no 7905fi 7906rm -f core conftest.err conftest.$ac_objext \ 7907 conftest$ac_exeext conftest.$ac_ext 7908 LDFLAGS=$save_LDFLAGS 7909 7910fi 7911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7912$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7913 7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7915$as_echo_n "checking for -force_load linker flag... " >&6; } 7916if ${lt_cv_ld_force_load+:} false; then : 7917 $as_echo_n "(cached) " >&6 7918else 7919 lt_cv_ld_force_load=no 7920 cat > conftest.c << _LT_EOF 7921int forced_loaded() { return 2;} 7922_LT_EOF 7923 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7924 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7925 echo "$AR cru libconftest.a conftest.o" >&5 7926 $AR cru libconftest.a conftest.o 2>&5 7927 echo "$RANLIB libconftest.a" >&5 7928 $RANLIB libconftest.a 2>&5 7929 cat > conftest.c << _LT_EOF 7930int main() { return 0;} 7931_LT_EOF 7932 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7933 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7934 _lt_result=$? 7935 if test -s conftest.err && $GREP force_load conftest.err; then 7936 cat conftest.err >&5 7937 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7938 lt_cv_ld_force_load=yes 7939 else 7940 cat conftest.err >&5 7941 fi 7942 rm -f conftest.err libconftest.a conftest conftest.c 7943 rm -rf conftest.dSYM 7944 7945fi 7946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7947$as_echo "$lt_cv_ld_force_load" >&6; } 7948 case $host_os in 7949 rhapsody* | darwin1.[012]) 7950 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7951 darwin1.*) 7952 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7953 darwin*) # darwin 5.x on 7954 # if running on 10.5 or later, the deployment target defaults 7955 # to the OS version, if on x86, and 10.4, the deployment 7956 # target defaults to 10.4. Don't you love it? 7957 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7958 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7959 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7960 10.[012][,.]*) 7961 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7962 10.*) 7963 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7964 esac 7965 ;; 7966 esac 7967 if test yes = "$lt_cv_apple_cc_single_mod"; then 7968 _lt_dar_single_mod='$single_module' 7969 fi 7970 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7971 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7972 else 7973 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7974 fi 7975 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7976 _lt_dsymutil='~$DSYMUTIL $lib || :' 7977 else 7978 _lt_dsymutil= 7979 fi 7980 ;; 7981 esac 7982 7983# func_munge_path_list VARIABLE PATH 7984# ----------------------------------- 7985# VARIABLE is name of variable containing _space_ separated list of 7986# directories to be munged by the contents of PATH, which is string 7987# having a format: 7988# "DIR[:DIR]:" 7989# string "DIR[ DIR]" will be prepended to VARIABLE 7990# ":DIR[:DIR]" 7991# string "DIR[ DIR]" will be appended to VARIABLE 7992# "DIRP[:DIRP]::[DIRA:]DIRA" 7993# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7994# "DIRA[ DIRA]" will be appended to VARIABLE 7995# "DIR[:DIR]" 7996# VARIABLE will be replaced by "DIR[ DIR]" 7997func_munge_path_list () 7998{ 7999 case x$2 in 8000 x) 8001 ;; 8002 *:) 8003 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8004 ;; 8005 x:*) 8006 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8007 ;; 8008 *::*) 8009 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8010 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8011 ;; 8012 *) 8013 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8014 ;; 8015 esac 8016} 8017 8018ac_ext=c 8019ac_cpp='$CPP $CPPFLAGS' 8020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8022ac_compiler_gnu=$ac_cv_c_compiler_gnu 8023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8024$as_echo_n "checking how to run the C preprocessor... " >&6; } 8025# On Suns, sometimes $CPP names a directory. 8026if test -n "$CPP" && test -d "$CPP"; then 8027 CPP= 8028fi 8029if test -z "$CPP"; then 8030 if ${ac_cv_prog_CPP+:} false; then : 8031 $as_echo_n "(cached) " >&6 8032else 8033 # Double quotes because CPP needs to be expanded 8034 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8035 do 8036 ac_preproc_ok=false 8037for ac_c_preproc_warn_flag in '' yes 8038do 8039 # Use a header file that comes with gcc, so configuring glibc 8040 # with a fresh cross-compiler works. 8041 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8042 # <limits.h> exists even on freestanding compilers. 8043 # On the NeXT, cc -E runs the code through the compiler's parser, 8044 # not just through cpp. "Syntax error" is here to catch this case. 8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8046/* end confdefs.h. */ 8047#ifdef __STDC__ 8048# include <limits.h> 8049#else 8050# include <assert.h> 8051#endif 8052 Syntax error 8053_ACEOF 8054if ac_fn_c_try_cpp "$LINENO"; then : 8055 8056else 8057 # Broken: fails on valid input. 8058continue 8059fi 8060rm -f conftest.err conftest.i conftest.$ac_ext 8061 8062 # OK, works on sane cases. Now check whether nonexistent headers 8063 # can be detected and how. 8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8065/* end confdefs.h. */ 8066#include <ac_nonexistent.h> 8067_ACEOF 8068if ac_fn_c_try_cpp "$LINENO"; then : 8069 # Broken: success on invalid input. 8070continue 8071else 8072 # Passes both tests. 8073ac_preproc_ok=: 8074break 8075fi 8076rm -f conftest.err conftest.i conftest.$ac_ext 8077 8078done 8079# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8080rm -f conftest.i conftest.err conftest.$ac_ext 8081if $ac_preproc_ok; then : 8082 break 8083fi 8084 8085 done 8086 ac_cv_prog_CPP=$CPP 8087 8088fi 8089 CPP=$ac_cv_prog_CPP 8090else 8091 ac_cv_prog_CPP=$CPP 8092fi 8093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8094$as_echo "$CPP" >&6; } 8095ac_preproc_ok=false 8096for ac_c_preproc_warn_flag in '' yes 8097do 8098 # Use a header file that comes with gcc, so configuring glibc 8099 # with a fresh cross-compiler works. 8100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8101 # <limits.h> exists even on freestanding compilers. 8102 # On the NeXT, cc -E runs the code through the compiler's parser, 8103 # not just through cpp. "Syntax error" is here to catch this case. 8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8105/* end confdefs.h. */ 8106#ifdef __STDC__ 8107# include <limits.h> 8108#else 8109# include <assert.h> 8110#endif 8111 Syntax error 8112_ACEOF 8113if ac_fn_c_try_cpp "$LINENO"; then : 8114 8115else 8116 # Broken: fails on valid input. 8117continue 8118fi 8119rm -f conftest.err conftest.i conftest.$ac_ext 8120 8121 # OK, works on sane cases. Now check whether nonexistent headers 8122 # can be detected and how. 8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8124/* end confdefs.h. */ 8125#include <ac_nonexistent.h> 8126_ACEOF 8127if ac_fn_c_try_cpp "$LINENO"; then : 8128 # Broken: success on invalid input. 8129continue 8130else 8131 # Passes both tests. 8132ac_preproc_ok=: 8133break 8134fi 8135rm -f conftest.err conftest.i conftest.$ac_ext 8136 8137done 8138# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8139rm -f conftest.i conftest.err conftest.$ac_ext 8140if $ac_preproc_ok; then : 8141 8142else 8143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8145as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8146See \`config.log' for more details" "$LINENO" 5; } 8147fi 8148 8149ac_ext=c 8150ac_cpp='$CPP $CPPFLAGS' 8151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8153ac_compiler_gnu=$ac_cv_c_compiler_gnu 8154 8155 8156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8157$as_echo_n "checking for ANSI C header files... " >&6; } 8158if ${ac_cv_header_stdc+:} false; then : 8159 $as_echo_n "(cached) " >&6 8160else 8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8162/* end confdefs.h. */ 8163#include <stdlib.h> 8164#include <stdarg.h> 8165#include <string.h> 8166#include <float.h> 8167 8168int 8169main () 8170{ 8171 8172 ; 8173 return 0; 8174} 8175_ACEOF 8176if ac_fn_c_try_compile "$LINENO"; then : 8177 ac_cv_header_stdc=yes 8178else 8179 ac_cv_header_stdc=no 8180fi 8181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8182 8183if test $ac_cv_header_stdc = yes; then 8184 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8186/* end confdefs.h. */ 8187#include <string.h> 8188 8189_ACEOF 8190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8191 $EGREP "memchr" >/dev/null 2>&1; then : 8192 8193else 8194 ac_cv_header_stdc=no 8195fi 8196rm -f conftest* 8197 8198fi 8199 8200if test $ac_cv_header_stdc = yes; then 8201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8203/* end confdefs.h. */ 8204#include <stdlib.h> 8205 8206_ACEOF 8207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8208 $EGREP "free" >/dev/null 2>&1; then : 8209 8210else 8211 ac_cv_header_stdc=no 8212fi 8213rm -f conftest* 8214 8215fi 8216 8217if test $ac_cv_header_stdc = yes; then 8218 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8219 if test "$cross_compiling" = yes; then : 8220 : 8221else 8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8223/* end confdefs.h. */ 8224#include <ctype.h> 8225#include <stdlib.h> 8226#if ((' ' & 0x0FF) == 0x020) 8227# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8228# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8229#else 8230# define ISLOWER(c) \ 8231 (('a' <= (c) && (c) <= 'i') \ 8232 || ('j' <= (c) && (c) <= 'r') \ 8233 || ('s' <= (c) && (c) <= 'z')) 8234# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8235#endif 8236 8237#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8238int 8239main () 8240{ 8241 int i; 8242 for (i = 0; i < 256; i++) 8243 if (XOR (islower (i), ISLOWER (i)) 8244 || toupper (i) != TOUPPER (i)) 8245 return 2; 8246 return 0; 8247} 8248_ACEOF 8249if ac_fn_c_try_run "$LINENO"; then : 8250 8251else 8252 ac_cv_header_stdc=no 8253fi 8254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8255 conftest.$ac_objext conftest.beam conftest.$ac_ext 8256fi 8257 8258fi 8259fi 8260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8261$as_echo "$ac_cv_header_stdc" >&6; } 8262if test $ac_cv_header_stdc = yes; then 8263 8264$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8265 8266fi 8267 8268# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8269for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8270 inttypes.h stdint.h unistd.h 8271do : 8272 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8273ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8274" 8275if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8276 cat >>confdefs.h <<_ACEOF 8277#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8278_ACEOF 8279 8280fi 8281 8282done 8283 8284 8285for ac_header in dlfcn.h 8286do : 8287 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8288" 8289if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8290 cat >>confdefs.h <<_ACEOF 8291#define HAVE_DLFCN_H 1 8292_ACEOF 8293 8294fi 8295 8296done 8297 8298 8299 8300func_stripname_cnf () 8301{ 8302 case $2 in 8303 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 8304 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 8305 esac 8306} # func_stripname_cnf 8307 8308 8309 8310 8311 8312# Set options 8313# Check whether --enable-static was given. 8314if test "${enable_static+set}" = set; then : 8315 enableval=$enable_static; p=${PACKAGE-default} 8316 case $enableval in 8317 yes) enable_static=yes ;; 8318 no) enable_static=no ;; 8319 *) 8320 enable_static=no 8321 # Look at the argument we got. We use all the common list separators. 8322 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8323 for pkg in $enableval; do 8324 IFS=$lt_save_ifs 8325 if test "X$pkg" = "X$p"; then 8326 enable_static=yes 8327 fi 8328 done 8329 IFS=$lt_save_ifs 8330 ;; 8331 esac 8332else 8333 enable_static=no 8334fi 8335 8336 8337 8338 8339 8340 8341 8342enable_dlopen=yes 8343enable_win32_dll=yes 8344 8345case $host in 8346*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8347 if test -n "$ac_tool_prefix"; then 8348 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8349set dummy ${ac_tool_prefix}as; ac_word=$2 8350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8351$as_echo_n "checking for $ac_word... " >&6; } 8352if ${ac_cv_prog_AS+:} false; then : 8353 $as_echo_n "(cached) " >&6 8354else 8355 if test -n "$AS"; then 8356 ac_cv_prog_AS="$AS" # Let the user override the test. 8357else 8358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8359for as_dir in $PATH 8360do 8361 IFS=$as_save_IFS 8362 test -z "$as_dir" && as_dir=. 8363 for ac_exec_ext in '' $ac_executable_extensions; do 8364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8365 ac_cv_prog_AS="${ac_tool_prefix}as" 8366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8367 break 2 8368 fi 8369done 8370 done 8371IFS=$as_save_IFS 8372 8373fi 8374fi 8375AS=$ac_cv_prog_AS 8376if test -n "$AS"; then 8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8378$as_echo "$AS" >&6; } 8379else 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8381$as_echo "no" >&6; } 8382fi 8383 8384 8385fi 8386if test -z "$ac_cv_prog_AS"; then 8387 ac_ct_AS=$AS 8388 # Extract the first word of "as", so it can be a program name with args. 8389set dummy as; ac_word=$2 8390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8391$as_echo_n "checking for $ac_word... " >&6; } 8392if ${ac_cv_prog_ac_ct_AS+:} false; then : 8393 $as_echo_n "(cached) " >&6 8394else 8395 if test -n "$ac_ct_AS"; then 8396 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8397else 8398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8399for as_dir in $PATH 8400do 8401 IFS=$as_save_IFS 8402 test -z "$as_dir" && as_dir=. 8403 for ac_exec_ext in '' $ac_executable_extensions; do 8404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8405 ac_cv_prog_ac_ct_AS="as" 8406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8407 break 2 8408 fi 8409done 8410 done 8411IFS=$as_save_IFS 8412 8413fi 8414fi 8415ac_ct_AS=$ac_cv_prog_ac_ct_AS 8416if test -n "$ac_ct_AS"; then 8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8418$as_echo "$ac_ct_AS" >&6; } 8419else 8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8421$as_echo "no" >&6; } 8422fi 8423 8424 if test "x$ac_ct_AS" = x; then 8425 AS="false" 8426 else 8427 case $cross_compiling:$ac_tool_warned in 8428yes:) 8429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8431ac_tool_warned=yes ;; 8432esac 8433 AS=$ac_ct_AS 8434 fi 8435else 8436 AS="$ac_cv_prog_AS" 8437fi 8438 8439 if test -n "$ac_tool_prefix"; then 8440 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8441set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8443$as_echo_n "checking for $ac_word... " >&6; } 8444if ${ac_cv_prog_DLLTOOL+:} false; then : 8445 $as_echo_n "(cached) " >&6 8446else 8447 if test -n "$DLLTOOL"; then 8448 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8449else 8450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8451for as_dir in $PATH 8452do 8453 IFS=$as_save_IFS 8454 test -z "$as_dir" && as_dir=. 8455 for ac_exec_ext in '' $ac_executable_extensions; do 8456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8457 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8459 break 2 8460 fi 8461done 8462 done 8463IFS=$as_save_IFS 8464 8465fi 8466fi 8467DLLTOOL=$ac_cv_prog_DLLTOOL 8468if test -n "$DLLTOOL"; then 8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8470$as_echo "$DLLTOOL" >&6; } 8471else 8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8473$as_echo "no" >&6; } 8474fi 8475 8476 8477fi 8478if test -z "$ac_cv_prog_DLLTOOL"; then 8479 ac_ct_DLLTOOL=$DLLTOOL 8480 # Extract the first word of "dlltool", so it can be a program name with args. 8481set dummy dlltool; ac_word=$2 8482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8483$as_echo_n "checking for $ac_word... " >&6; } 8484if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8485 $as_echo_n "(cached) " >&6 8486else 8487 if test -n "$ac_ct_DLLTOOL"; then 8488 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8489else 8490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8491for as_dir in $PATH 8492do 8493 IFS=$as_save_IFS 8494 test -z "$as_dir" && as_dir=. 8495 for ac_exec_ext in '' $ac_executable_extensions; do 8496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8497 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8499 break 2 8500 fi 8501done 8502 done 8503IFS=$as_save_IFS 8504 8505fi 8506fi 8507ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8508if test -n "$ac_ct_DLLTOOL"; then 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8510$as_echo "$ac_ct_DLLTOOL" >&6; } 8511else 8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8513$as_echo "no" >&6; } 8514fi 8515 8516 if test "x$ac_ct_DLLTOOL" = x; then 8517 DLLTOOL="false" 8518 else 8519 case $cross_compiling:$ac_tool_warned in 8520yes:) 8521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8523ac_tool_warned=yes ;; 8524esac 8525 DLLTOOL=$ac_ct_DLLTOOL 8526 fi 8527else 8528 DLLTOOL="$ac_cv_prog_DLLTOOL" 8529fi 8530 8531 if test -n "$ac_tool_prefix"; then 8532 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8533set dummy ${ac_tool_prefix}objdump; ac_word=$2 8534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8535$as_echo_n "checking for $ac_word... " >&6; } 8536if ${ac_cv_prog_OBJDUMP+:} false; then : 8537 $as_echo_n "(cached) " >&6 8538else 8539 if test -n "$OBJDUMP"; then 8540 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8541else 8542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8543for as_dir in $PATH 8544do 8545 IFS=$as_save_IFS 8546 test -z "$as_dir" && as_dir=. 8547 for ac_exec_ext in '' $ac_executable_extensions; do 8548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8549 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8551 break 2 8552 fi 8553done 8554 done 8555IFS=$as_save_IFS 8556 8557fi 8558fi 8559OBJDUMP=$ac_cv_prog_OBJDUMP 8560if test -n "$OBJDUMP"; then 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8562$as_echo "$OBJDUMP" >&6; } 8563else 8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8565$as_echo "no" >&6; } 8566fi 8567 8568 8569fi 8570if test -z "$ac_cv_prog_OBJDUMP"; then 8571 ac_ct_OBJDUMP=$OBJDUMP 8572 # Extract the first word of "objdump", so it can be a program name with args. 8573set dummy objdump; ac_word=$2 8574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8575$as_echo_n "checking for $ac_word... " >&6; } 8576if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8577 $as_echo_n "(cached) " >&6 8578else 8579 if test -n "$ac_ct_OBJDUMP"; then 8580 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8581else 8582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8583for as_dir in $PATH 8584do 8585 IFS=$as_save_IFS 8586 test -z "$as_dir" && as_dir=. 8587 for ac_exec_ext in '' $ac_executable_extensions; do 8588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8589 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8591 break 2 8592 fi 8593done 8594 done 8595IFS=$as_save_IFS 8596 8597fi 8598fi 8599ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8600if test -n "$ac_ct_OBJDUMP"; then 8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8602$as_echo "$ac_ct_OBJDUMP" >&6; } 8603else 8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8605$as_echo "no" >&6; } 8606fi 8607 8608 if test "x$ac_ct_OBJDUMP" = x; then 8609 OBJDUMP="false" 8610 else 8611 case $cross_compiling:$ac_tool_warned in 8612yes:) 8613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8615ac_tool_warned=yes ;; 8616esac 8617 OBJDUMP=$ac_ct_OBJDUMP 8618 fi 8619else 8620 OBJDUMP="$ac_cv_prog_OBJDUMP" 8621fi 8622 8623 ;; 8624esac 8625 8626test -z "$AS" && AS=as 8627 8628 8629 8630 8631 8632test -z "$DLLTOOL" && DLLTOOL=dlltool 8633 8634 8635 8636 8637 8638test -z "$OBJDUMP" && OBJDUMP=objdump 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 # Check whether --enable-shared was given. 8649if test "${enable_shared+set}" = set; then : 8650 enableval=$enable_shared; p=${PACKAGE-default} 8651 case $enableval in 8652 yes) enable_shared=yes ;; 8653 no) enable_shared=no ;; 8654 *) 8655 enable_shared=no 8656 # Look at the argument we got. We use all the common list separators. 8657 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8658 for pkg in $enableval; do 8659 IFS=$lt_save_ifs 8660 if test "X$pkg" = "X$p"; then 8661 enable_shared=yes 8662 fi 8663 done 8664 IFS=$lt_save_ifs 8665 ;; 8666 esac 8667else 8668 enable_shared=yes 8669fi 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681# Check whether --with-pic was given. 8682if test "${with_pic+set}" = set; then : 8683 withval=$with_pic; lt_p=${PACKAGE-default} 8684 case $withval in 8685 yes|no) pic_mode=$withval ;; 8686 *) 8687 pic_mode=default 8688 # Look at the argument we got. We use all the common list separators. 8689 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8690 for lt_pkg in $withval; do 8691 IFS=$lt_save_ifs 8692 if test "X$lt_pkg" = "X$lt_p"; then 8693 pic_mode=yes 8694 fi 8695 done 8696 IFS=$lt_save_ifs 8697 ;; 8698 esac 8699else 8700 pic_mode=default 8701fi 8702 8703 8704 8705 8706 8707 8708 8709 8710 # Check whether --enable-fast-install was given. 8711if test "${enable_fast_install+set}" = set; then : 8712 enableval=$enable_fast_install; p=${PACKAGE-default} 8713 case $enableval in 8714 yes) enable_fast_install=yes ;; 8715 no) enable_fast_install=no ;; 8716 *) 8717 enable_fast_install=no 8718 # Look at the argument we got. We use all the common list separators. 8719 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8720 for pkg in $enableval; do 8721 IFS=$lt_save_ifs 8722 if test "X$pkg" = "X$p"; then 8723 enable_fast_install=yes 8724 fi 8725 done 8726 IFS=$lt_save_ifs 8727 ;; 8728 esac 8729else 8730 enable_fast_install=yes 8731fi 8732 8733 8734 8735 8736 8737 8738 8739 8740 shared_archive_member_spec= 8741case $host,$enable_shared in 8742power*-*-aix[5-9]*,yes) 8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8744$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8745 8746# Check whether --with-aix-soname was given. 8747if test "${with_aix_soname+set}" = set; then : 8748 withval=$with_aix_soname; case $withval in 8749 aix|svr4|both) 8750 ;; 8751 *) 8752 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8753 ;; 8754 esac 8755 lt_cv_with_aix_soname=$with_aix_soname 8756else 8757 if ${lt_cv_with_aix_soname+:} false; then : 8758 $as_echo_n "(cached) " >&6 8759else 8760 lt_cv_with_aix_soname=aix 8761fi 8762 8763 with_aix_soname=$lt_cv_with_aix_soname 8764fi 8765 8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8767$as_echo "$with_aix_soname" >&6; } 8768 if test aix != "$with_aix_soname"; then 8769 # For the AIX way of multilib, we name the shared archive member 8770 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8771 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8772 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8773 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8774 if test 64 = "${OBJECT_MODE-32}"; then 8775 shared_archive_member_spec=shr_64 8776 else 8777 shared_archive_member_spec=shr 8778 fi 8779 fi 8780 ;; 8781*) 8782 with_aix_soname=aix 8783 ;; 8784esac 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795# This can be used to rebuild libtool when needed 8796LIBTOOL_DEPS=$ltmain 8797 8798# Always use our own libtool. 8799LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830test -z "$LN_S" && LN_S="ln -s" 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845if test -n "${ZSH_VERSION+set}"; then 8846 setopt NO_GLOB_SUBST 8847fi 8848 8849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8850$as_echo_n "checking for objdir... " >&6; } 8851if ${lt_cv_objdir+:} false; then : 8852 $as_echo_n "(cached) " >&6 8853else 8854 rm -f .libs 2>/dev/null 8855mkdir .libs 2>/dev/null 8856if test -d .libs; then 8857 lt_cv_objdir=.libs 8858else 8859 # MS-DOS does not allow filenames that begin with a dot. 8860 lt_cv_objdir=_libs 8861fi 8862rmdir .libs 2>/dev/null 8863fi 8864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8865$as_echo "$lt_cv_objdir" >&6; } 8866objdir=$lt_cv_objdir 8867 8868 8869 8870 8871 8872cat >>confdefs.h <<_ACEOF 8873#define LT_OBJDIR "$lt_cv_objdir/" 8874_ACEOF 8875 8876 8877 8878 8879case $host_os in 8880aix3*) 8881 # AIX sometimes has problems with the GCC collect2 program. For some 8882 # reason, if we set the COLLECT_NAMES environment variable, the problems 8883 # vanish in a puff of smoke. 8884 if test set != "${COLLECT_NAMES+set}"; then 8885 COLLECT_NAMES= 8886 export COLLECT_NAMES 8887 fi 8888 ;; 8889esac 8890 8891# Global variables: 8892ofile=libtool 8893can_build_shared=yes 8894 8895# All known linkers require a '.a' archive for static linking (except MSVC, 8896# which needs '.lib'). 8897libext=a 8898 8899with_gnu_ld=$lt_cv_prog_gnu_ld 8900 8901old_CC=$CC 8902old_CFLAGS=$CFLAGS 8903 8904# Set sane defaults for various variables 8905test -z "$CC" && CC=cc 8906test -z "$LTCC" && LTCC=$CC 8907test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8908test -z "$LD" && LD=ld 8909test -z "$ac_objext" && ac_objext=o 8910 8911func_cc_basename $compiler 8912cc_basename=$func_cc_basename_result 8913 8914 8915# Only perform the check for file, if the check method requires it 8916test -z "$MAGIC_CMD" && MAGIC_CMD=file 8917case $deplibs_check_method in 8918file_magic*) 8919 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8921$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8922if ${lt_cv_path_MAGIC_CMD+:} false; then : 8923 $as_echo_n "(cached) " >&6 8924else 8925 case $MAGIC_CMD in 8926[\\/*] | ?:[\\/]*) 8927 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8928 ;; 8929*) 8930 lt_save_MAGIC_CMD=$MAGIC_CMD 8931 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8932 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8933 for ac_dir in $ac_dummy; do 8934 IFS=$lt_save_ifs 8935 test -z "$ac_dir" && ac_dir=. 8936 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8937 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8938 if test -n "$file_magic_test_file"; then 8939 case $deplibs_check_method in 8940 "file_magic "*) 8941 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8942 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8943 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8944 $EGREP "$file_magic_regex" > /dev/null; then 8945 : 8946 else 8947 cat <<_LT_EOF 1>&2 8948 8949*** Warning: the command libtool uses to detect shared libraries, 8950*** $file_magic_cmd, produces output that libtool cannot recognize. 8951*** The result is that libtool may fail to recognize shared libraries 8952*** as such. This will affect the creation of libtool libraries that 8953*** depend on shared libraries, but programs linked with such libtool 8954*** libraries will work regardless of this problem. Nevertheless, you 8955*** may want to report the problem to your system manager and/or to 8956*** bug-libtool@gnu.org 8957 8958_LT_EOF 8959 fi ;; 8960 esac 8961 fi 8962 break 8963 fi 8964 done 8965 IFS=$lt_save_ifs 8966 MAGIC_CMD=$lt_save_MAGIC_CMD 8967 ;; 8968esac 8969fi 8970 8971MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8972if test -n "$MAGIC_CMD"; then 8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8974$as_echo "$MAGIC_CMD" >&6; } 8975else 8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8977$as_echo "no" >&6; } 8978fi 8979 8980 8981 8982 8983 8984if test -z "$lt_cv_path_MAGIC_CMD"; then 8985 if test -n "$ac_tool_prefix"; then 8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8987$as_echo_n "checking for file... " >&6; } 8988if ${lt_cv_path_MAGIC_CMD+:} false; then : 8989 $as_echo_n "(cached) " >&6 8990else 8991 case $MAGIC_CMD in 8992[\\/*] | ?:[\\/]*) 8993 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8994 ;; 8995*) 8996 lt_save_MAGIC_CMD=$MAGIC_CMD 8997 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8998 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8999 for ac_dir in $ac_dummy; do 9000 IFS=$lt_save_ifs 9001 test -z "$ac_dir" && ac_dir=. 9002 if test -f "$ac_dir/file"; then 9003 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9004 if test -n "$file_magic_test_file"; then 9005 case $deplibs_check_method in 9006 "file_magic "*) 9007 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9008 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9009 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9010 $EGREP "$file_magic_regex" > /dev/null; then 9011 : 9012 else 9013 cat <<_LT_EOF 1>&2 9014 9015*** Warning: the command libtool uses to detect shared libraries, 9016*** $file_magic_cmd, produces output that libtool cannot recognize. 9017*** The result is that libtool may fail to recognize shared libraries 9018*** as such. This will affect the creation of libtool libraries that 9019*** depend on shared libraries, but programs linked with such libtool 9020*** libraries will work regardless of this problem. Nevertheless, you 9021*** may want to report the problem to your system manager and/or to 9022*** bug-libtool@gnu.org 9023 9024_LT_EOF 9025 fi ;; 9026 esac 9027 fi 9028 break 9029 fi 9030 done 9031 IFS=$lt_save_ifs 9032 MAGIC_CMD=$lt_save_MAGIC_CMD 9033 ;; 9034esac 9035fi 9036 9037MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9038if test -n "$MAGIC_CMD"; then 9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9040$as_echo "$MAGIC_CMD" >&6; } 9041else 9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9043$as_echo "no" >&6; } 9044fi 9045 9046 9047 else 9048 MAGIC_CMD=: 9049 fi 9050fi 9051 9052 fi 9053 ;; 9054esac 9055 9056# Use C for the default configuration in the libtool script 9057 9058lt_save_CC=$CC 9059ac_ext=c 9060ac_cpp='$CPP $CPPFLAGS' 9061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9063ac_compiler_gnu=$ac_cv_c_compiler_gnu 9064 9065 9066# Source file extension for C test sources. 9067ac_ext=c 9068 9069# Object file extension for compiled C test sources. 9070objext=o 9071objext=$objext 9072 9073# Code to be used in simple compile tests 9074lt_simple_compile_test_code="int some_variable = 0;" 9075 9076# Code to be used in simple link tests 9077lt_simple_link_test_code='int main(){return(0);}' 9078 9079 9080 9081 9082 9083 9084 9085# If no C compiler was specified, use CC. 9086LTCC=${LTCC-"$CC"} 9087 9088# If no C compiler flags were specified, use CFLAGS. 9089LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9090 9091# Allow CC to be a program name with arguments. 9092compiler=$CC 9093 9094# Save the default compiler, since it gets overwritten when the other 9095# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9096compiler_DEFAULT=$CC 9097 9098# save warnings/boilerplate of simple test code 9099ac_outfile=conftest.$ac_objext 9100echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9101eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9102_lt_compiler_boilerplate=`cat conftest.err` 9103$RM conftest* 9104 9105ac_outfile=conftest.$ac_objext 9106echo "$lt_simple_link_test_code" >conftest.$ac_ext 9107eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9108_lt_linker_boilerplate=`cat conftest.err` 9109$RM -r conftest* 9110 9111 9112## CAVEAT EMPTOR: 9113## There is no encapsulation within the following macros, do not change 9114## the running order or otherwise move them around unless you know exactly 9115## what you are doing... 9116if test -n "$compiler"; then 9117 9118lt_prog_compiler_no_builtin_flag= 9119 9120if test yes = "$GCC"; then 9121 case $cc_basename in 9122 nvcc*) 9123 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9124 *) 9125 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9126 esac 9127 9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9129$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9130if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9131 $as_echo_n "(cached) " >&6 9132else 9133 lt_cv_prog_compiler_rtti_exceptions=no 9134 ac_outfile=conftest.$ac_objext 9135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9136 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9137 # Insert the option either (1) after the last *FLAGS variable, or 9138 # (2) before a word containing "conftest.", or (3) at the end. 9139 # Note that $ac_compile itself does not contain backslashes and begins 9140 # with a dollar sign (not a hyphen), so the echo should work correctly. 9141 # The option is referenced via a variable to avoid confusing sed. 9142 lt_compile=`echo "$ac_compile" | $SED \ 9143 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9145 -e 's:$: $lt_compiler_flag:'` 9146 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9147 (eval "$lt_compile" 2>conftest.err) 9148 ac_status=$? 9149 cat conftest.err >&5 9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9151 if (exit $ac_status) && test -s "$ac_outfile"; then 9152 # The compiler can only warn and ignore the option if not recognized 9153 # So say no if there are warnings other than the usual output. 9154 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9156 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9157 lt_cv_prog_compiler_rtti_exceptions=yes 9158 fi 9159 fi 9160 $RM conftest* 9161 9162fi 9163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9164$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9165 9166if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9167 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9168else 9169 : 9170fi 9171 9172fi 9173 9174 9175 9176 9177 9178 9179 lt_prog_compiler_wl= 9180lt_prog_compiler_pic= 9181lt_prog_compiler_static= 9182 9183 9184 if test yes = "$GCC"; then 9185 lt_prog_compiler_wl='-Wl,' 9186 lt_prog_compiler_static='-static' 9187 9188 case $host_os in 9189 aix*) 9190 # All AIX code is PIC. 9191 if test ia64 = "$host_cpu"; then 9192 # AIX 5 now supports IA64 processor 9193 lt_prog_compiler_static='-Bstatic' 9194 fi 9195 lt_prog_compiler_pic='-fPIC' 9196 ;; 9197 9198 amigaos*) 9199 case $host_cpu in 9200 powerpc) 9201 # see comment about AmigaOS4 .so support 9202 lt_prog_compiler_pic='-fPIC' 9203 ;; 9204 m68k) 9205 # FIXME: we need at least 68020 code to build shared libraries, but 9206 # adding the '-m68020' flag to GCC prevents building anything better, 9207 # like '-m68040'. 9208 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9209 ;; 9210 esac 9211 ;; 9212 9213 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9214 # PIC is the default for these OSes. 9215 ;; 9216 9217 mingw* | cygwin* | pw32* | os2* | cegcc*) 9218 # This hack is so that the source file can tell whether it is being 9219 # built for inclusion in a dll (and should export symbols for example). 9220 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9221 # (--disable-auto-import) libraries 9222 lt_prog_compiler_pic='-DDLL_EXPORT' 9223 case $host_os in 9224 os2*) 9225 lt_prog_compiler_static='$wl-static' 9226 ;; 9227 esac 9228 ;; 9229 9230 darwin* | rhapsody*) 9231 # PIC is the default on this platform 9232 # Common symbols not allowed in MH_DYLIB files 9233 lt_prog_compiler_pic='-fno-common' 9234 ;; 9235 9236 haiku*) 9237 # PIC is the default for Haiku. 9238 # The "-static" flag exists, but is broken. 9239 lt_prog_compiler_static= 9240 ;; 9241 9242 hpux*) 9243 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9244 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9245 # sets the default TLS model and affects inlining. 9246 case $host_cpu in 9247 hppa*64*) 9248 # +Z the default 9249 ;; 9250 *) 9251 lt_prog_compiler_pic='-fPIC' 9252 ;; 9253 esac 9254 ;; 9255 9256 interix[3-9]*) 9257 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9258 # Instead, we relocate shared libraries at runtime. 9259 ;; 9260 9261 msdosdjgpp*) 9262 # Just because we use GCC doesn't mean we suddenly get shared libraries 9263 # on systems that don't support them. 9264 lt_prog_compiler_can_build_shared=no 9265 enable_shared=no 9266 ;; 9267 9268 *nto* | *qnx*) 9269 # QNX uses GNU C++, but need to define -shared option too, otherwise 9270 # it will coredump. 9271 lt_prog_compiler_pic='-fPIC -shared' 9272 ;; 9273 9274 sysv4*MP*) 9275 if test -d /usr/nec; then 9276 lt_prog_compiler_pic=-Kconform_pic 9277 fi 9278 ;; 9279 9280 *) 9281 lt_prog_compiler_pic='-fPIC' 9282 ;; 9283 esac 9284 9285 case $cc_basename in 9286 nvcc*) # Cuda Compiler Driver 2.2 9287 lt_prog_compiler_wl='-Xlinker ' 9288 if test -n "$lt_prog_compiler_pic"; then 9289 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9290 fi 9291 ;; 9292 esac 9293 else 9294 # PORTME Check for flag to pass linker flags through the system compiler. 9295 case $host_os in 9296 aix*) 9297 lt_prog_compiler_wl='-Wl,' 9298 if test ia64 = "$host_cpu"; then 9299 # AIX 5 now supports IA64 processor 9300 lt_prog_compiler_static='-Bstatic' 9301 else 9302 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9303 fi 9304 ;; 9305 9306 darwin* | rhapsody*) 9307 # PIC is the default on this platform 9308 # Common symbols not allowed in MH_DYLIB files 9309 lt_prog_compiler_pic='-fno-common' 9310 case $cc_basename in 9311 nagfor*) 9312 # NAG Fortran compiler 9313 lt_prog_compiler_wl='-Wl,-Wl,,' 9314 lt_prog_compiler_pic='-PIC' 9315 lt_prog_compiler_static='-Bstatic' 9316 ;; 9317 esac 9318 ;; 9319 9320 mingw* | cygwin* | pw32* | os2* | cegcc*) 9321 # This hack is so that the source file can tell whether it is being 9322 # built for inclusion in a dll (and should export symbols for example). 9323 lt_prog_compiler_pic='-DDLL_EXPORT' 9324 case $host_os in 9325 os2*) 9326 lt_prog_compiler_static='$wl-static' 9327 ;; 9328 esac 9329 ;; 9330 9331 hpux9* | hpux10* | hpux11*) 9332 lt_prog_compiler_wl='-Wl,' 9333 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9334 # not for PA HP-UX. 9335 case $host_cpu in 9336 hppa*64*|ia64*) 9337 # +Z the default 9338 ;; 9339 *) 9340 lt_prog_compiler_pic='+Z' 9341 ;; 9342 esac 9343 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9344 lt_prog_compiler_static='$wl-a ${wl}archive' 9345 ;; 9346 9347 irix5* | irix6* | nonstopux*) 9348 lt_prog_compiler_wl='-Wl,' 9349 # PIC (with -KPIC) is the default. 9350 lt_prog_compiler_static='-non_shared' 9351 ;; 9352 9353 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9354 case $cc_basename in 9355 # old Intel for x86_64, which still supported -KPIC. 9356 ecc*) 9357 lt_prog_compiler_wl='-Wl,' 9358 lt_prog_compiler_pic='-KPIC' 9359 lt_prog_compiler_static='-static' 9360 ;; 9361 # icc used to be incompatible with GCC. 9362 # ICC 10 doesn't accept -KPIC any more. 9363 icc* | ifort*) 9364 lt_prog_compiler_wl='-Wl,' 9365 lt_prog_compiler_pic='-fPIC' 9366 lt_prog_compiler_static='-static' 9367 ;; 9368 # Lahey Fortran 8.1. 9369 lf95*) 9370 lt_prog_compiler_wl='-Wl,' 9371 lt_prog_compiler_pic='--shared' 9372 lt_prog_compiler_static='--static' 9373 ;; 9374 nagfor*) 9375 # NAG Fortran compiler 9376 lt_prog_compiler_wl='-Wl,-Wl,,' 9377 lt_prog_compiler_pic='-PIC' 9378 lt_prog_compiler_static='-Bstatic' 9379 ;; 9380 tcc*) 9381 # Fabrice Bellard et al's Tiny C Compiler 9382 lt_prog_compiler_wl='-Wl,' 9383 lt_prog_compiler_pic='-fPIC' 9384 lt_prog_compiler_static='-static' 9385 ;; 9386 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9387 # Portland Group compilers (*not* the Pentium gcc compiler, 9388 # which looks to be a dead project) 9389 lt_prog_compiler_wl='-Wl,' 9390 lt_prog_compiler_pic='-fpic' 9391 lt_prog_compiler_static='-Bstatic' 9392 ;; 9393 ccc*) 9394 lt_prog_compiler_wl='-Wl,' 9395 # All Alpha code is PIC. 9396 lt_prog_compiler_static='-non_shared' 9397 ;; 9398 xl* | bgxl* | bgf* | mpixl*) 9399 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9400 lt_prog_compiler_wl='-Wl,' 9401 lt_prog_compiler_pic='-qpic' 9402 lt_prog_compiler_static='-qstaticlink' 9403 ;; 9404 *) 9405 case `$CC -V 2>&1 | sed 5q` in 9406 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9407 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9408 lt_prog_compiler_pic='-KPIC' 9409 lt_prog_compiler_static='-Bstatic' 9410 lt_prog_compiler_wl='' 9411 ;; 9412 *Sun\ F* | *Sun*Fortran*) 9413 lt_prog_compiler_pic='-KPIC' 9414 lt_prog_compiler_static='-Bstatic' 9415 lt_prog_compiler_wl='-Qoption ld ' 9416 ;; 9417 *Sun\ C*) 9418 # Sun C 5.9 9419 lt_prog_compiler_pic='-KPIC' 9420 lt_prog_compiler_static='-Bstatic' 9421 lt_prog_compiler_wl='-Wl,' 9422 ;; 9423 *Intel*\ [CF]*Compiler*) 9424 lt_prog_compiler_wl='-Wl,' 9425 lt_prog_compiler_pic='-fPIC' 9426 lt_prog_compiler_static='-static' 9427 ;; 9428 *Portland\ Group*) 9429 lt_prog_compiler_wl='-Wl,' 9430 lt_prog_compiler_pic='-fpic' 9431 lt_prog_compiler_static='-Bstatic' 9432 ;; 9433 esac 9434 ;; 9435 esac 9436 ;; 9437 9438 newsos6) 9439 lt_prog_compiler_pic='-KPIC' 9440 lt_prog_compiler_static='-Bstatic' 9441 ;; 9442 9443 *nto* | *qnx*) 9444 # QNX uses GNU C++, but need to define -shared option too, otherwise 9445 # it will coredump. 9446 lt_prog_compiler_pic='-fPIC -shared' 9447 ;; 9448 9449 osf3* | osf4* | osf5*) 9450 lt_prog_compiler_wl='-Wl,' 9451 # All OSF/1 code is PIC. 9452 lt_prog_compiler_static='-non_shared' 9453 ;; 9454 9455 rdos*) 9456 lt_prog_compiler_static='-non_shared' 9457 ;; 9458 9459 solaris*) 9460 lt_prog_compiler_pic='-KPIC' 9461 lt_prog_compiler_static='-Bstatic' 9462 case $cc_basename in 9463 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9464 lt_prog_compiler_wl='-Qoption ld ';; 9465 *) 9466 lt_prog_compiler_wl='-Wl,';; 9467 esac 9468 ;; 9469 9470 sunos4*) 9471 lt_prog_compiler_wl='-Qoption ld ' 9472 lt_prog_compiler_pic='-PIC' 9473 lt_prog_compiler_static='-Bstatic' 9474 ;; 9475 9476 sysv4 | sysv4.2uw2* | sysv4.3*) 9477 lt_prog_compiler_wl='-Wl,' 9478 lt_prog_compiler_pic='-KPIC' 9479 lt_prog_compiler_static='-Bstatic' 9480 ;; 9481 9482 sysv4*MP*) 9483 if test -d /usr/nec; then 9484 lt_prog_compiler_pic='-Kconform_pic' 9485 lt_prog_compiler_static='-Bstatic' 9486 fi 9487 ;; 9488 9489 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9490 lt_prog_compiler_wl='-Wl,' 9491 lt_prog_compiler_pic='-KPIC' 9492 lt_prog_compiler_static='-Bstatic' 9493 ;; 9494 9495 unicos*) 9496 lt_prog_compiler_wl='-Wl,' 9497 lt_prog_compiler_can_build_shared=no 9498 ;; 9499 9500 uts4*) 9501 lt_prog_compiler_pic='-pic' 9502 lt_prog_compiler_static='-Bstatic' 9503 ;; 9504 9505 *) 9506 lt_prog_compiler_can_build_shared=no 9507 ;; 9508 esac 9509 fi 9510 9511case $host_os in 9512 # For platforms that do not support PIC, -DPIC is meaningless: 9513 *djgpp*) 9514 lt_prog_compiler_pic= 9515 ;; 9516 *) 9517 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9518 ;; 9519esac 9520 9521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9522$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9523if ${lt_cv_prog_compiler_pic+:} false; then : 9524 $as_echo_n "(cached) " >&6 9525else 9526 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9527fi 9528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9529$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9530lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9531 9532# 9533# Check to make sure the PIC flag actually works. 9534# 9535if test -n "$lt_prog_compiler_pic"; then 9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9537$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9538if ${lt_cv_prog_compiler_pic_works+:} false; then : 9539 $as_echo_n "(cached) " >&6 9540else 9541 lt_cv_prog_compiler_pic_works=no 9542 ac_outfile=conftest.$ac_objext 9543 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9544 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9545 # Insert the option either (1) after the last *FLAGS variable, or 9546 # (2) before a word containing "conftest.", or (3) at the end. 9547 # Note that $ac_compile itself does not contain backslashes and begins 9548 # with a dollar sign (not a hyphen), so the echo should work correctly. 9549 # The option is referenced via a variable to avoid confusing sed. 9550 lt_compile=`echo "$ac_compile" | $SED \ 9551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9553 -e 's:$: $lt_compiler_flag:'` 9554 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9555 (eval "$lt_compile" 2>conftest.err) 9556 ac_status=$? 9557 cat conftest.err >&5 9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9559 if (exit $ac_status) && test -s "$ac_outfile"; then 9560 # The compiler can only warn and ignore the option if not recognized 9561 # So say no if there are warnings other than the usual output. 9562 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9564 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9565 lt_cv_prog_compiler_pic_works=yes 9566 fi 9567 fi 9568 $RM conftest* 9569 9570fi 9571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9572$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9573 9574if test yes = "$lt_cv_prog_compiler_pic_works"; then 9575 case $lt_prog_compiler_pic in 9576 "" | " "*) ;; 9577 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9578 esac 9579else 9580 lt_prog_compiler_pic= 9581 lt_prog_compiler_can_build_shared=no 9582fi 9583 9584fi 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596# 9597# Check to make sure the static flag actually works. 9598# 9599wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9601$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9602if ${lt_cv_prog_compiler_static_works+:} false; then : 9603 $as_echo_n "(cached) " >&6 9604else 9605 lt_cv_prog_compiler_static_works=no 9606 save_LDFLAGS=$LDFLAGS 9607 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9608 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9609 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9610 # The linker can only warn and ignore the option if not recognized 9611 # So say no if there are warnings 9612 if test -s conftest.err; then 9613 # Append any errors to the config.log. 9614 cat conftest.err 1>&5 9615 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9616 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9617 if diff conftest.exp conftest.er2 >/dev/null; then 9618 lt_cv_prog_compiler_static_works=yes 9619 fi 9620 else 9621 lt_cv_prog_compiler_static_works=yes 9622 fi 9623 fi 9624 $RM -r conftest* 9625 LDFLAGS=$save_LDFLAGS 9626 9627fi 9628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9629$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9630 9631if test yes = "$lt_cv_prog_compiler_static_works"; then 9632 : 9633else 9634 lt_prog_compiler_static= 9635fi 9636 9637 9638 9639 9640 9641 9642 9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9644$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9645if ${lt_cv_prog_compiler_c_o+:} false; then : 9646 $as_echo_n "(cached) " >&6 9647else 9648 lt_cv_prog_compiler_c_o=no 9649 $RM -r conftest 2>/dev/null 9650 mkdir conftest 9651 cd conftest 9652 mkdir out 9653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9654 9655 lt_compiler_flag="-o out/conftest2.$ac_objext" 9656 # Insert the option either (1) after the last *FLAGS variable, or 9657 # (2) before a word containing "conftest.", or (3) at the end. 9658 # Note that $ac_compile itself does not contain backslashes and begins 9659 # with a dollar sign (not a hyphen), so the echo should work correctly. 9660 lt_compile=`echo "$ac_compile" | $SED \ 9661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9663 -e 's:$: $lt_compiler_flag:'` 9664 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9665 (eval "$lt_compile" 2>out/conftest.err) 9666 ac_status=$? 9667 cat out/conftest.err >&5 9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9669 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9670 then 9671 # The compiler can only warn and ignore the option if not recognized 9672 # So say no if there are warnings 9673 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9674 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9675 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9676 lt_cv_prog_compiler_c_o=yes 9677 fi 9678 fi 9679 chmod u+w . 2>&5 9680 $RM conftest* 9681 # SGI C++ compiler will create directory out/ii_files/ for 9682 # template instantiation 9683 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9684 $RM out/* && rmdir out 9685 cd .. 9686 $RM -r conftest 9687 $RM conftest* 9688 9689fi 9690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9691$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9692 9693 9694 9695 9696 9697 9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9699$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9700if ${lt_cv_prog_compiler_c_o+:} false; then : 9701 $as_echo_n "(cached) " >&6 9702else 9703 lt_cv_prog_compiler_c_o=no 9704 $RM -r conftest 2>/dev/null 9705 mkdir conftest 9706 cd conftest 9707 mkdir out 9708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9709 9710 lt_compiler_flag="-o out/conftest2.$ac_objext" 9711 # Insert the option either (1) after the last *FLAGS variable, or 9712 # (2) before a word containing "conftest.", or (3) at the end. 9713 # Note that $ac_compile itself does not contain backslashes and begins 9714 # with a dollar sign (not a hyphen), so the echo should work correctly. 9715 lt_compile=`echo "$ac_compile" | $SED \ 9716 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9717 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9718 -e 's:$: $lt_compiler_flag:'` 9719 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9720 (eval "$lt_compile" 2>out/conftest.err) 9721 ac_status=$? 9722 cat out/conftest.err >&5 9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9724 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9725 then 9726 # The compiler can only warn and ignore the option if not recognized 9727 # So say no if there are warnings 9728 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9729 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9730 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9731 lt_cv_prog_compiler_c_o=yes 9732 fi 9733 fi 9734 chmod u+w . 2>&5 9735 $RM conftest* 9736 # SGI C++ compiler will create directory out/ii_files/ for 9737 # template instantiation 9738 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9739 $RM out/* && rmdir out 9740 cd .. 9741 $RM -r conftest 9742 $RM conftest* 9743 9744fi 9745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9746$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9747 9748 9749 9750 9751hard_links=nottested 9752if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9753 # do not overwrite the value of need_locks provided by the user 9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9755$as_echo_n "checking if we can lock with hard links... " >&6; } 9756 hard_links=yes 9757 $RM conftest* 9758 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9759 touch conftest.a 9760 ln conftest.a conftest.b 2>&5 || hard_links=no 9761 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9763$as_echo "$hard_links" >&6; } 9764 if test no = "$hard_links"; then 9765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9766$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9767 need_locks=warn 9768 fi 9769else 9770 need_locks=no 9771fi 9772 9773 9774 9775 9776 9777 9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9779$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9780 9781 runpath_var= 9782 allow_undefined_flag= 9783 always_export_symbols=no 9784 archive_cmds= 9785 archive_expsym_cmds= 9786 compiler_needs_object=no 9787 enable_shared_with_static_runtimes=no 9788 export_dynamic_flag_spec= 9789 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9790 hardcode_automatic=no 9791 hardcode_direct=no 9792 hardcode_direct_absolute=no 9793 hardcode_libdir_flag_spec= 9794 hardcode_libdir_separator= 9795 hardcode_minus_L=no 9796 hardcode_shlibpath_var=unsupported 9797 inherit_rpath=no 9798 link_all_deplibs=unknown 9799 module_cmds= 9800 module_expsym_cmds= 9801 old_archive_from_new_cmds= 9802 old_archive_from_expsyms_cmds= 9803 thread_safe_flag_spec= 9804 whole_archive_flag_spec= 9805 # include_expsyms should be a list of space-separated symbols to be *always* 9806 # included in the symbol list 9807 include_expsyms= 9808 # exclude_expsyms can be an extended regexp of symbols to exclude 9809 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9810 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9811 # as well as any symbol that contains 'd'. 9812 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9813 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9814 # platforms (ab)use it in PIC code, but their linkers get confused if 9815 # the symbol is explicitly referenced. Since portable code cannot 9816 # rely on this symbol name, it's probably fine to never include it in 9817 # preloaded symbol tables. 9818 # Exclude shared library initialization/finalization symbols. 9819 extract_expsyms_cmds= 9820 9821 case $host_os in 9822 cygwin* | mingw* | pw32* | cegcc*) 9823 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9824 # When not using gcc, we currently assume that we are using 9825 # Microsoft Visual C++. 9826 if test yes != "$GCC"; then 9827 with_gnu_ld=no 9828 fi 9829 ;; 9830 interix*) 9831 # we just hope/assume this is gcc and not c89 (= MSVC++) 9832 with_gnu_ld=yes 9833 ;; 9834 openbsd* | bitrig*) 9835 with_gnu_ld=no 9836 ;; 9837 linux* | k*bsd*-gnu | gnu*) 9838 link_all_deplibs=no 9839 ;; 9840 esac 9841 9842 ld_shlibs=yes 9843 9844 # On some targets, GNU ld is compatible enough with the native linker 9845 # that we're better off using the native interface for both. 9846 lt_use_gnu_ld_interface=no 9847 if test yes = "$with_gnu_ld"; then 9848 case $host_os in 9849 aix*) 9850 # The AIX port of GNU ld has always aspired to compatibility 9851 # with the native linker. However, as the warning in the GNU ld 9852 # block says, versions before 2.19.5* couldn't really create working 9853 # shared libraries, regardless of the interface used. 9854 case `$LD -v 2>&1` in 9855 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9856 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9857 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9858 *) 9859 lt_use_gnu_ld_interface=yes 9860 ;; 9861 esac 9862 ;; 9863 *) 9864 lt_use_gnu_ld_interface=yes 9865 ;; 9866 esac 9867 fi 9868 9869 if test yes = "$lt_use_gnu_ld_interface"; then 9870 # If archive_cmds runs LD, not CC, wlarc should be empty 9871 wlarc='$wl' 9872 9873 # Set some defaults for GNU ld with shared library support. These 9874 # are reset later if shared libraries are not supported. Putting them 9875 # here allows them to be overridden if necessary. 9876 runpath_var=LD_RUN_PATH 9877 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9878 export_dynamic_flag_spec='$wl--export-dynamic' 9879 # ancient GNU ld didn't support --whole-archive et. al. 9880 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9881 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9882 else 9883 whole_archive_flag_spec= 9884 fi 9885 supports_anon_versioning=no 9886 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9887 *GNU\ gold*) supports_anon_versioning=yes ;; 9888 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9889 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9890 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9891 *\ 2.11.*) ;; # other 2.11 versions 9892 *) supports_anon_versioning=yes ;; 9893 esac 9894 9895 # See if GNU ld supports shared libraries. 9896 case $host_os in 9897 aix[3-9]*) 9898 # On AIX/PPC, the GNU linker is very broken 9899 if test ia64 != "$host_cpu"; then 9900 ld_shlibs=no 9901 cat <<_LT_EOF 1>&2 9902 9903*** Warning: the GNU linker, at least up to release 2.19, is reported 9904*** to be unable to reliably create shared libraries on AIX. 9905*** Therefore, libtool is disabling shared libraries support. If you 9906*** really care for shared libraries, you may want to install binutils 9907*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9908*** You will then need to restart the configuration process. 9909 9910_LT_EOF 9911 fi 9912 ;; 9913 9914 amigaos*) 9915 case $host_cpu in 9916 powerpc) 9917 # see comment about AmigaOS4 .so support 9918 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9919 archive_expsym_cmds='' 9920 ;; 9921 m68k) 9922 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)' 9923 hardcode_libdir_flag_spec='-L$libdir' 9924 hardcode_minus_L=yes 9925 ;; 9926 esac 9927 ;; 9928 9929 beos*) 9930 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9931 allow_undefined_flag=unsupported 9932 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9933 # support --undefined. This deserves some investigation. FIXME 9934 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9935 else 9936 ld_shlibs=no 9937 fi 9938 ;; 9939 9940 cygwin* | mingw* | pw32* | cegcc*) 9941 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9942 # as there is no search path for DLLs. 9943 hardcode_libdir_flag_spec='-L$libdir' 9944 export_dynamic_flag_spec='$wl--export-all-symbols' 9945 allow_undefined_flag=unsupported 9946 always_export_symbols=no 9947 enable_shared_with_static_runtimes=yes 9948 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9949 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9950 9951 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9953 # If the export-symbols file already is a .def file, use it as 9954 # is; otherwise, prepend EXPORTS... 9955 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9956 cp $export_symbols $output_objdir/$soname.def; 9957 else 9958 echo EXPORTS > $output_objdir/$soname.def; 9959 cat $export_symbols >> $output_objdir/$soname.def; 9960 fi~ 9961 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9962 else 9963 ld_shlibs=no 9964 fi 9965 ;; 9966 9967 haiku*) 9968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9969 link_all_deplibs=yes 9970 ;; 9971 9972 os2*) 9973 hardcode_libdir_flag_spec='-L$libdir' 9974 hardcode_minus_L=yes 9975 allow_undefined_flag=unsupported 9976 shrext_cmds=.dll 9977 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9978 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9979 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9980 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9981 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9982 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9983 emximp -o $lib $output_objdir/$libname.def' 9984 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9985 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9986 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9987 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9988 prefix_cmds="$SED"~ 9989 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9990 prefix_cmds="$prefix_cmds -e 1d"; 9991 fi~ 9992 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9993 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9994 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9995 emximp -o $lib $output_objdir/$libname.def' 9996 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9997 enable_shared_with_static_runtimes=yes 9998 ;; 9999 10000 interix[3-9]*) 10001 hardcode_direct=no 10002 hardcode_shlibpath_var=no 10003 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10004 export_dynamic_flag_spec='$wl-E' 10005 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10006 # Instead, shared libraries are loaded at an image base (0x10000000 by 10007 # default) and relocated if they conflict, which is a slow very memory 10008 # consuming and fragmenting process. To avoid this, we pick a random, 10009 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10010 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10011 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10012 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' 10013 ;; 10014 10015 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10016 tmp_diet=no 10017 if test linux-dietlibc = "$host_os"; then 10018 case $cc_basename in 10019 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10020 esac 10021 fi 10022 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10023 && test no = "$tmp_diet" 10024 then 10025 tmp_addflag=' $pic_flag' 10026 tmp_sharedflag='-shared' 10027 case $cc_basename,$host_cpu in 10028 pgcc*) # Portland Group C compiler 10029 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10030 tmp_addflag=' $pic_flag' 10031 ;; 10032 pgf77* | pgf90* | pgf95* | pgfortran*) 10033 # Portland Group f77 and f90 compilers 10034 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10035 tmp_addflag=' $pic_flag -Mnomain' ;; 10036 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10037 tmp_addflag=' -i_dynamic' ;; 10038 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10039 tmp_addflag=' -i_dynamic -nofor_main' ;; 10040 ifc* | ifort*) # Intel Fortran compiler 10041 tmp_addflag=' -nofor_main' ;; 10042 lf95*) # Lahey Fortran 8.1 10043 whole_archive_flag_spec= 10044 tmp_sharedflag='--shared' ;; 10045 nagfor*) # NAGFOR 5.3 10046 tmp_sharedflag='-Wl,-shared' ;; 10047 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10048 tmp_sharedflag='-qmkshrobj' 10049 tmp_addflag= ;; 10050 nvcc*) # Cuda Compiler Driver 2.2 10051 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10052 compiler_needs_object=yes 10053 ;; 10054 esac 10055 case `$CC -V 2>&1 | sed 5q` in 10056 *Sun\ C*) # Sun C 5.9 10057 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10058 compiler_needs_object=yes 10059 tmp_sharedflag='-G' ;; 10060 *Sun\ F*) # Sun Fortran 8.3 10061 tmp_sharedflag='-G' ;; 10062 esac 10063 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10064 10065 if test yes = "$supports_anon_versioning"; then 10066 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10067 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10068 echo "local: *; };" >> $output_objdir/$libname.ver~ 10069 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10070 fi 10071 10072 case $cc_basename in 10073 tcc*) 10074 export_dynamic_flag_spec='-rdynamic' 10075 ;; 10076 xlf* | bgf* | bgxlf* | mpixlf*) 10077 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10078 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10079 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10080 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10081 if test yes = "$supports_anon_versioning"; then 10082 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10083 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10084 echo "local: *; };" >> $output_objdir/$libname.ver~ 10085 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10086 fi 10087 ;; 10088 esac 10089 else 10090 ld_shlibs=no 10091 fi 10092 ;; 10093 10094 netbsd* | netbsdelf*-gnu) 10095 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10096 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10097 wlarc= 10098 else 10099 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10100 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10101 fi 10102 ;; 10103 10104 solaris*) 10105 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10106 ld_shlibs=no 10107 cat <<_LT_EOF 1>&2 10108 10109*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10110*** create shared libraries on Solaris systems. Therefore, libtool 10111*** is disabling shared libraries support. We urge you to upgrade GNU 10112*** binutils to release 2.9.1 or newer. Another option is to modify 10113*** your PATH or compiler configuration so that the native linker is 10114*** used, and then restart. 10115 10116_LT_EOF 10117 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10118 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10119 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10120 else 10121 ld_shlibs=no 10122 fi 10123 ;; 10124 10125 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10126 case `$LD -v 2>&1` in 10127 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10128 ld_shlibs=no 10129 cat <<_LT_EOF 1>&2 10130 10131*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10132*** reliably create shared libraries on SCO systems. Therefore, libtool 10133*** is disabling shared libraries support. We urge you to upgrade GNU 10134*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10135*** your PATH or compiler configuration so that the native linker is 10136*** used, and then restart. 10137 10138_LT_EOF 10139 ;; 10140 *) 10141 # For security reasons, it is highly recommended that you always 10142 # use absolute paths for naming shared libraries, and exclude the 10143 # DT_RUNPATH tag from executables and libraries. But doing so 10144 # requires that you compile everything twice, which is a pain. 10145 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10146 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10147 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10148 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10149 else 10150 ld_shlibs=no 10151 fi 10152 ;; 10153 esac 10154 ;; 10155 10156 sunos4*) 10157 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10158 wlarc= 10159 hardcode_direct=yes 10160 hardcode_shlibpath_var=no 10161 ;; 10162 10163 *) 10164 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10165 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10166 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10167 else 10168 ld_shlibs=no 10169 fi 10170 ;; 10171 esac 10172 10173 if test no = "$ld_shlibs"; then 10174 runpath_var= 10175 hardcode_libdir_flag_spec= 10176 export_dynamic_flag_spec= 10177 whole_archive_flag_spec= 10178 fi 10179 else 10180 # PORTME fill in a description of your system's linker (not GNU ld) 10181 case $host_os in 10182 aix3*) 10183 allow_undefined_flag=unsupported 10184 always_export_symbols=yes 10185 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' 10186 # Note: this linker hardcodes the directories in LIBPATH if there 10187 # are no directories specified by -L. 10188 hardcode_minus_L=yes 10189 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10190 # Neither direct hardcoding nor static linking is supported with a 10191 # broken collect2. 10192 hardcode_direct=unsupported 10193 fi 10194 ;; 10195 10196 aix[4-9]*) 10197 if test ia64 = "$host_cpu"; then 10198 # On IA64, the linker does run time linking by default, so we don't 10199 # have to do anything special. 10200 aix_use_runtimelinking=no 10201 exp_sym_flag='-Bexport' 10202 no_entry_flag= 10203 else 10204 # If we're using GNU nm, then we don't want the "-C" option. 10205 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10206 # Without the "-l" option, or with the "-B" option, AIX nm treats 10207 # weak defined symbols like other global defined symbols, whereas 10208 # GNU nm marks them as "W". 10209 # While the 'weak' keyword is ignored in the Export File, we need 10210 # it in the Import File for the 'aix-soname' feature, so we have 10211 # to replace the "-B" option with "-P" for AIX nm. 10212 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10213 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10214 else 10215 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10216 fi 10217 aix_use_runtimelinking=no 10218 10219 # Test if we are trying to use run time linking or normal 10220 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10221 # have runtime linking enabled, and use it for executables. 10222 # For shared libraries, we enable/disable runtime linking 10223 # depending on the kind of the shared library created - 10224 # when "with_aix_soname,aix_use_runtimelinking" is: 10225 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10226 # "aix,yes" lib.so shared, rtl:yes, for executables 10227 # lib.a static archive 10228 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10229 # lib.a(lib.so.V) shared, rtl:no, for executables 10230 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10231 # lib.a(lib.so.V) shared, rtl:no 10232 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10233 # lib.a static archive 10234 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10235 for ld_flag in $LDFLAGS; do 10236 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10237 aix_use_runtimelinking=yes 10238 break 10239 fi 10240 done 10241 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10242 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10243 # so we don't have lib.a shared libs to link our executables. 10244 # We have to force runtime linking in this case. 10245 aix_use_runtimelinking=yes 10246 LDFLAGS="$LDFLAGS -Wl,-brtl" 10247 fi 10248 ;; 10249 esac 10250 10251 exp_sym_flag='-bexport' 10252 no_entry_flag='-bnoentry' 10253 fi 10254 10255 # When large executables or shared objects are built, AIX ld can 10256 # have problems creating the table of contents. If linking a library 10257 # or program results in "error TOC overflow" add -mminimal-toc to 10258 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10259 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10260 10261 archive_cmds='' 10262 hardcode_direct=yes 10263 hardcode_direct_absolute=yes 10264 hardcode_libdir_separator=':' 10265 link_all_deplibs=yes 10266 file_list_spec='$wl-f,' 10267 case $with_aix_soname,$aix_use_runtimelinking in 10268 aix,*) ;; # traditional, no import file 10269 svr4,* | *,yes) # use import file 10270 # The Import File defines what to hardcode. 10271 hardcode_direct=no 10272 hardcode_direct_absolute=no 10273 ;; 10274 esac 10275 10276 if test yes = "$GCC"; then 10277 case $host_os in aix4.[012]|aix4.[012].*) 10278 # We only want to do this on AIX 4.2 and lower, the check 10279 # below for broken collect2 doesn't work under 4.3+ 10280 collect2name=`$CC -print-prog-name=collect2` 10281 if test -f "$collect2name" && 10282 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10283 then 10284 # We have reworked collect2 10285 : 10286 else 10287 # We have old collect2 10288 hardcode_direct=unsupported 10289 # It fails to find uninstalled libraries when the uninstalled 10290 # path is not listed in the libpath. Setting hardcode_minus_L 10291 # to unsupported forces relinking 10292 hardcode_minus_L=yes 10293 hardcode_libdir_flag_spec='-L$libdir' 10294 hardcode_libdir_separator= 10295 fi 10296 ;; 10297 esac 10298 shared_flag='-shared' 10299 if test yes = "$aix_use_runtimelinking"; then 10300 shared_flag="$shared_flag "'$wl-G' 10301 fi 10302 # Need to ensure runtime linking is disabled for the traditional 10303 # shared library, or the linker may eventually find shared libraries 10304 # /with/ Import File - we do not want to mix them. 10305 shared_flag_aix='-shared' 10306 shared_flag_svr4='-shared $wl-G' 10307 else 10308 # not using gcc 10309 if test ia64 = "$host_cpu"; then 10310 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10311 # chokes on -Wl,-G. The following line is correct: 10312 shared_flag='-G' 10313 else 10314 if test yes = "$aix_use_runtimelinking"; then 10315 shared_flag='$wl-G' 10316 else 10317 shared_flag='$wl-bM:SRE' 10318 fi 10319 shared_flag_aix='$wl-bM:SRE' 10320 shared_flag_svr4='$wl-G' 10321 fi 10322 fi 10323 10324 export_dynamic_flag_spec='$wl-bexpall' 10325 # It seems that -bexpall does not export symbols beginning with 10326 # underscore (_), so it is better to generate a list of symbols to export. 10327 always_export_symbols=yes 10328 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10329 # Warning - without using the other runtime loading flags (-brtl), 10330 # -berok will link without error, but may produce a broken library. 10331 allow_undefined_flag='-berok' 10332 # Determine the default libpath from the value encoded in an 10333 # empty executable. 10334 if test set = "${lt_cv_aix_libpath+set}"; then 10335 aix_libpath=$lt_cv_aix_libpath 10336else 10337 if ${lt_cv_aix_libpath_+:} false; then : 10338 $as_echo_n "(cached) " >&6 10339else 10340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10341/* end confdefs.h. */ 10342 10343int 10344main () 10345{ 10346 10347 ; 10348 return 0; 10349} 10350_ACEOF 10351if ac_fn_c_try_link "$LINENO"; then : 10352 10353 lt_aix_libpath_sed=' 10354 /Import File Strings/,/^$/ { 10355 /^0/ { 10356 s/^0 *\([^ ]*\) *$/\1/ 10357 p 10358 } 10359 }' 10360 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10361 # Check for a 64-bit object if we didn't find anything. 10362 if test -z "$lt_cv_aix_libpath_"; then 10363 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10364 fi 10365fi 10366rm -f core conftest.err conftest.$ac_objext \ 10367 conftest$ac_exeext conftest.$ac_ext 10368 if test -z "$lt_cv_aix_libpath_"; then 10369 lt_cv_aix_libpath_=/usr/lib:/lib 10370 fi 10371 10372fi 10373 10374 aix_libpath=$lt_cv_aix_libpath_ 10375fi 10376 10377 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10378 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10379 else 10380 if test ia64 = "$host_cpu"; then 10381 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10382 allow_undefined_flag="-z nodefs" 10383 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" 10384 else 10385 # Determine the default libpath from the value encoded in an 10386 # empty executable. 10387 if test set = "${lt_cv_aix_libpath+set}"; then 10388 aix_libpath=$lt_cv_aix_libpath 10389else 10390 if ${lt_cv_aix_libpath_+:} false; then : 10391 $as_echo_n "(cached) " >&6 10392else 10393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10394/* end confdefs.h. */ 10395 10396int 10397main () 10398{ 10399 10400 ; 10401 return 0; 10402} 10403_ACEOF 10404if ac_fn_c_try_link "$LINENO"; then : 10405 10406 lt_aix_libpath_sed=' 10407 /Import File Strings/,/^$/ { 10408 /^0/ { 10409 s/^0 *\([^ ]*\) *$/\1/ 10410 p 10411 } 10412 }' 10413 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10414 # Check for a 64-bit object if we didn't find anything. 10415 if test -z "$lt_cv_aix_libpath_"; then 10416 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10417 fi 10418fi 10419rm -f core conftest.err conftest.$ac_objext \ 10420 conftest$ac_exeext conftest.$ac_ext 10421 if test -z "$lt_cv_aix_libpath_"; then 10422 lt_cv_aix_libpath_=/usr/lib:/lib 10423 fi 10424 10425fi 10426 10427 aix_libpath=$lt_cv_aix_libpath_ 10428fi 10429 10430 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10431 # Warning - without using the other run time loading flags, 10432 # -berok will link without error, but may produce a broken library. 10433 no_undefined_flag=' $wl-bernotok' 10434 allow_undefined_flag=' $wl-berok' 10435 if test yes = "$with_gnu_ld"; then 10436 # We only use this code for GNU lds that support --whole-archive. 10437 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10438 else 10439 # Exported symbols can be pulled into shared objects from archives 10440 whole_archive_flag_spec='$convenience' 10441 fi 10442 archive_cmds_need_lc=yes 10443 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10444 # -brtl affects multiple linker settings, -berok does not and is overridden later 10445 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10446 if test svr4 != "$with_aix_soname"; then 10447 # This is similar to how AIX traditionally builds its shared libraries. 10448 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10449 fi 10450 if test aix != "$with_aix_soname"; then 10451 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10452 else 10453 # used by -dlpreopen to get the symbols 10454 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10455 fi 10456 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10457 fi 10458 fi 10459 ;; 10460 10461 amigaos*) 10462 case $host_cpu in 10463 powerpc) 10464 # see comment about AmigaOS4 .so support 10465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10466 archive_expsym_cmds='' 10467 ;; 10468 m68k) 10469 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)' 10470 hardcode_libdir_flag_spec='-L$libdir' 10471 hardcode_minus_L=yes 10472 ;; 10473 esac 10474 ;; 10475 10476 bsdi[45]*) 10477 export_dynamic_flag_spec=-rdynamic 10478 ;; 10479 10480 cygwin* | mingw* | pw32* | cegcc*) 10481 # When not using gcc, we currently assume that we are using 10482 # Microsoft Visual C++. 10483 # hardcode_libdir_flag_spec is actually meaningless, as there is 10484 # no search path for DLLs. 10485 case $cc_basename in 10486 cl*) 10487 # Native MSVC 10488 hardcode_libdir_flag_spec=' ' 10489 allow_undefined_flag=unsupported 10490 always_export_symbols=yes 10491 file_list_spec='@' 10492 # Tell ltmain to make .lib files, not .a files. 10493 libext=lib 10494 # Tell ltmain to make .dll files, not .so files. 10495 shrext_cmds=.dll 10496 # FIXME: Setting linknames here is a bad hack. 10497 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10498 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10499 cp "$export_symbols" "$output_objdir/$soname.def"; 10500 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10501 else 10502 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10503 fi~ 10504 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10505 linknames=' 10506 # The linker will not automatically build a static lib if we build a DLL. 10507 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10508 enable_shared_with_static_runtimes=yes 10509 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10510 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10511 # Don't use ranlib 10512 old_postinstall_cmds='chmod 644 $oldlib' 10513 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10514 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10515 case $lt_outputfile in 10516 *.exe|*.EXE) ;; 10517 *) 10518 lt_outputfile=$lt_outputfile.exe 10519 lt_tool_outputfile=$lt_tool_outputfile.exe 10520 ;; 10521 esac~ 10522 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10523 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10524 $RM "$lt_outputfile.manifest"; 10525 fi' 10526 ;; 10527 *) 10528 # Assume MSVC wrapper 10529 hardcode_libdir_flag_spec=' ' 10530 allow_undefined_flag=unsupported 10531 # Tell ltmain to make .lib files, not .a files. 10532 libext=lib 10533 # Tell ltmain to make .dll files, not .so files. 10534 shrext_cmds=.dll 10535 # FIXME: Setting linknames here is a bad hack. 10536 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10537 # The linker will automatically build a .lib file if we build a DLL. 10538 old_archive_from_new_cmds='true' 10539 # FIXME: Should let the user specify the lib program. 10540 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10541 enable_shared_with_static_runtimes=yes 10542 ;; 10543 esac 10544 ;; 10545 10546 darwin* | rhapsody*) 10547 10548 10549 archive_cmds_need_lc=no 10550 hardcode_direct=no 10551 hardcode_automatic=yes 10552 hardcode_shlibpath_var=unsupported 10553 if test yes = "$lt_cv_ld_force_load"; then 10554 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 10555 10556 else 10557 whole_archive_flag_spec='' 10558 fi 10559 link_all_deplibs=yes 10560 allow_undefined_flag=$_lt_dar_allow_undefined 10561 case $cc_basename in 10562 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10563 *) _lt_dar_can_shared=$GCC ;; 10564 esac 10565 if test yes = "$_lt_dar_can_shared"; then 10566 output_verbose_link_cmd=func_echo_all 10567 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10568 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10569 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 10570 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 10571 10572 else 10573 ld_shlibs=no 10574 fi 10575 10576 ;; 10577 10578 dgux*) 10579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10580 hardcode_libdir_flag_spec='-L$libdir' 10581 hardcode_shlibpath_var=no 10582 ;; 10583 10584 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10585 # support. Future versions do this automatically, but an explicit c++rt0.o 10586 # does not break anything, and helps significantly (at the cost of a little 10587 # extra space). 10588 freebsd2.2*) 10589 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10590 hardcode_libdir_flag_spec='-R$libdir' 10591 hardcode_direct=yes 10592 hardcode_shlibpath_var=no 10593 ;; 10594 10595 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10596 freebsd2.*) 10597 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10598 hardcode_direct=yes 10599 hardcode_minus_L=yes 10600 hardcode_shlibpath_var=no 10601 ;; 10602 10603 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10604 freebsd* | dragonfly*) 10605 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10606 hardcode_libdir_flag_spec='-R$libdir' 10607 hardcode_direct=yes 10608 hardcode_shlibpath_var=no 10609 ;; 10610 10611 hpux9*) 10612 if test yes = "$GCC"; then 10613 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10614 else 10615 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10616 fi 10617 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10618 hardcode_libdir_separator=: 10619 hardcode_direct=yes 10620 10621 # hardcode_minus_L: Not really in the search PATH, 10622 # but as the default location of the library. 10623 hardcode_minus_L=yes 10624 export_dynamic_flag_spec='$wl-E' 10625 ;; 10626 10627 hpux10*) 10628 if test yes,no = "$GCC,$with_gnu_ld"; then 10629 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10630 else 10631 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10632 fi 10633 if test no = "$with_gnu_ld"; then 10634 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10635 hardcode_libdir_separator=: 10636 hardcode_direct=yes 10637 hardcode_direct_absolute=yes 10638 export_dynamic_flag_spec='$wl-E' 10639 # hardcode_minus_L: Not really in the search PATH, 10640 # but as the default location of the library. 10641 hardcode_minus_L=yes 10642 fi 10643 ;; 10644 10645 hpux11*) 10646 if test yes,no = "$GCC,$with_gnu_ld"; then 10647 case $host_cpu in 10648 hppa*64*) 10649 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10650 ;; 10651 ia64*) 10652 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10653 ;; 10654 *) 10655 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10656 ;; 10657 esac 10658 else 10659 case $host_cpu in 10660 hppa*64*) 10661 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10662 ;; 10663 ia64*) 10664 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10665 ;; 10666 *) 10667 10668 # Older versions of the 11.00 compiler do not understand -b yet 10669 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10671$as_echo_n "checking if $CC understands -b... " >&6; } 10672if ${lt_cv_prog_compiler__b+:} false; then : 10673 $as_echo_n "(cached) " >&6 10674else 10675 lt_cv_prog_compiler__b=no 10676 save_LDFLAGS=$LDFLAGS 10677 LDFLAGS="$LDFLAGS -b" 10678 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10679 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10680 # The linker can only warn and ignore the option if not recognized 10681 # So say no if there are warnings 10682 if test -s conftest.err; then 10683 # Append any errors to the config.log. 10684 cat conftest.err 1>&5 10685 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10687 if diff conftest.exp conftest.er2 >/dev/null; then 10688 lt_cv_prog_compiler__b=yes 10689 fi 10690 else 10691 lt_cv_prog_compiler__b=yes 10692 fi 10693 fi 10694 $RM -r conftest* 10695 LDFLAGS=$save_LDFLAGS 10696 10697fi 10698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10699$as_echo "$lt_cv_prog_compiler__b" >&6; } 10700 10701if test yes = "$lt_cv_prog_compiler__b"; then 10702 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10703else 10704 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10705fi 10706 10707 ;; 10708 esac 10709 fi 10710 if test no = "$with_gnu_ld"; then 10711 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10712 hardcode_libdir_separator=: 10713 10714 case $host_cpu in 10715 hppa*64*|ia64*) 10716 hardcode_direct=no 10717 hardcode_shlibpath_var=no 10718 ;; 10719 *) 10720 hardcode_direct=yes 10721 hardcode_direct_absolute=yes 10722 export_dynamic_flag_spec='$wl-E' 10723 10724 # hardcode_minus_L: Not really in the search PATH, 10725 # but as the default location of the library. 10726 hardcode_minus_L=yes 10727 ;; 10728 esac 10729 fi 10730 ;; 10731 10732 irix5* | irix6* | nonstopux*) 10733 if test yes = "$GCC"; then 10734 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10735 # Try to use the -exported_symbol ld option, if it does not 10736 # work, assume that -exports_file does not work either and 10737 # implicitly export all symbols. 10738 # This should be the same for all languages, so no per-tag cache variable. 10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10740$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10741if ${lt_cv_irix_exported_symbol+:} false; then : 10742 $as_echo_n "(cached) " >&6 10743else 10744 save_LDFLAGS=$LDFLAGS 10745 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10747/* end confdefs.h. */ 10748int foo (void) { return 0; } 10749_ACEOF 10750if ac_fn_c_try_link "$LINENO"; then : 10751 lt_cv_irix_exported_symbol=yes 10752else 10753 lt_cv_irix_exported_symbol=no 10754fi 10755rm -f core conftest.err conftest.$ac_objext \ 10756 conftest$ac_exeext conftest.$ac_ext 10757 LDFLAGS=$save_LDFLAGS 10758fi 10759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10760$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10761 if test yes = "$lt_cv_irix_exported_symbol"; then 10762 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 10763 fi 10764 link_all_deplibs=no 10765 else 10766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10767 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 10768 fi 10769 archive_cmds_need_lc='no' 10770 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10771 hardcode_libdir_separator=: 10772 inherit_rpath=yes 10773 link_all_deplibs=yes 10774 ;; 10775 10776 linux*) 10777 case $cc_basename in 10778 tcc*) 10779 # Fabrice Bellard et al's Tiny C Compiler 10780 ld_shlibs=yes 10781 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10782 ;; 10783 esac 10784 ;; 10785 10786 netbsd* | netbsdelf*-gnu) 10787 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10788 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10789 else 10790 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10791 fi 10792 hardcode_libdir_flag_spec='-R$libdir' 10793 hardcode_direct=yes 10794 hardcode_shlibpath_var=no 10795 ;; 10796 10797 newsos6) 10798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10799 hardcode_direct=yes 10800 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10801 hardcode_libdir_separator=: 10802 hardcode_shlibpath_var=no 10803 ;; 10804 10805 *nto* | *qnx*) 10806 ;; 10807 10808 openbsd* | bitrig*) 10809 if test -f /usr/libexec/ld.so; then 10810 hardcode_direct=yes 10811 hardcode_shlibpath_var=no 10812 hardcode_direct_absolute=yes 10813 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10814 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10815 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10816 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10817 export_dynamic_flag_spec='$wl-E' 10818 else 10819 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10820 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10821 fi 10822 else 10823 ld_shlibs=no 10824 fi 10825 ;; 10826 10827 os2*) 10828 hardcode_libdir_flag_spec='-L$libdir' 10829 hardcode_minus_L=yes 10830 allow_undefined_flag=unsupported 10831 shrext_cmds=.dll 10832 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10833 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10834 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10835 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10836 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10837 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10838 emximp -o $lib $output_objdir/$libname.def' 10839 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10840 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10841 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10842 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10843 prefix_cmds="$SED"~ 10844 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10845 prefix_cmds="$prefix_cmds -e 1d"; 10846 fi~ 10847 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10848 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10849 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10850 emximp -o $lib $output_objdir/$libname.def' 10851 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10852 enable_shared_with_static_runtimes=yes 10853 ;; 10854 10855 osf3*) 10856 if test yes = "$GCC"; then 10857 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10858 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10859 else 10860 allow_undefined_flag=' -expect_unresolved \*' 10861 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10862 fi 10863 archive_cmds_need_lc='no' 10864 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10865 hardcode_libdir_separator=: 10866 ;; 10867 10868 osf4* | osf5*) # as osf3* with the addition of -msym flag 10869 if test yes = "$GCC"; then 10870 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10871 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10872 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10873 else 10874 allow_undefined_flag=' -expect_unresolved \*' 10875 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10876 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 10877 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 10878 10879 # Both c and cxx compiler support -rpath directly 10880 hardcode_libdir_flag_spec='-rpath $libdir' 10881 fi 10882 archive_cmds_need_lc='no' 10883 hardcode_libdir_separator=: 10884 ;; 10885 10886 solaris*) 10887 no_undefined_flag=' -z defs' 10888 if test yes = "$GCC"; then 10889 wlarc='$wl' 10890 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10891 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10892 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10893 else 10894 case `$CC -V 2>&1` in 10895 *"Compilers 5.0"*) 10896 wlarc='' 10897 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10898 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10899 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10900 ;; 10901 *) 10902 wlarc='$wl' 10903 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10904 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10905 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10906 ;; 10907 esac 10908 fi 10909 hardcode_libdir_flag_spec='-R$libdir' 10910 hardcode_shlibpath_var=no 10911 case $host_os in 10912 solaris2.[0-5] | solaris2.[0-5].*) ;; 10913 *) 10914 # The compiler driver will combine and reorder linker options, 10915 # but understands '-z linker_flag'. GCC discards it without '$wl', 10916 # but is careful enough not to reorder. 10917 # Supported since Solaris 2.6 (maybe 2.5.1?) 10918 if test yes = "$GCC"; then 10919 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10920 else 10921 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10922 fi 10923 ;; 10924 esac 10925 link_all_deplibs=yes 10926 ;; 10927 10928 sunos4*) 10929 if test sequent = "$host_vendor"; then 10930 # Use $CC to link under sequent, because it throws in some extra .o 10931 # files that make .init and .fini sections work. 10932 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10933 else 10934 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10935 fi 10936 hardcode_libdir_flag_spec='-L$libdir' 10937 hardcode_direct=yes 10938 hardcode_minus_L=yes 10939 hardcode_shlibpath_var=no 10940 ;; 10941 10942 sysv4) 10943 case $host_vendor in 10944 sni) 10945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10946 hardcode_direct=yes # is this really true??? 10947 ;; 10948 siemens) 10949 ## LD is ld it makes a PLAMLIB 10950 ## CC just makes a GrossModule. 10951 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10952 reload_cmds='$CC -r -o $output$reload_objs' 10953 hardcode_direct=no 10954 ;; 10955 motorola) 10956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10957 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10958 ;; 10959 esac 10960 runpath_var='LD_RUN_PATH' 10961 hardcode_shlibpath_var=no 10962 ;; 10963 10964 sysv4.3*) 10965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10966 hardcode_shlibpath_var=no 10967 export_dynamic_flag_spec='-Bexport' 10968 ;; 10969 10970 sysv4*MP*) 10971 if test -d /usr/nec; then 10972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10973 hardcode_shlibpath_var=no 10974 runpath_var=LD_RUN_PATH 10975 hardcode_runpath_var=yes 10976 ld_shlibs=yes 10977 fi 10978 ;; 10979 10980 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10981 no_undefined_flag='$wl-z,text' 10982 archive_cmds_need_lc=no 10983 hardcode_shlibpath_var=no 10984 runpath_var='LD_RUN_PATH' 10985 10986 if test yes = "$GCC"; then 10987 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10988 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10989 else 10990 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10991 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10992 fi 10993 ;; 10994 10995 sysv5* | sco3.2v5* | sco5v6*) 10996 # Note: We CANNOT use -z defs as we might desire, because we do not 10997 # link with -lc, and that would cause any symbols used from libc to 10998 # always be unresolved, which means just about no library would 10999 # ever link correctly. If we're not using GNU ld we use -z text 11000 # though, which does catch some bad symbols but isn't as heavy-handed 11001 # as -z defs. 11002 no_undefined_flag='$wl-z,text' 11003 allow_undefined_flag='$wl-z,nodefs' 11004 archive_cmds_need_lc=no 11005 hardcode_shlibpath_var=no 11006 hardcode_libdir_flag_spec='$wl-R,$libdir' 11007 hardcode_libdir_separator=':' 11008 link_all_deplibs=yes 11009 export_dynamic_flag_spec='$wl-Bexport' 11010 runpath_var='LD_RUN_PATH' 11011 11012 if test yes = "$GCC"; then 11013 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11014 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11015 else 11016 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11017 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11018 fi 11019 ;; 11020 11021 uts4*) 11022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11023 hardcode_libdir_flag_spec='-L$libdir' 11024 hardcode_shlibpath_var=no 11025 ;; 11026 11027 *) 11028 ld_shlibs=no 11029 ;; 11030 esac 11031 11032 if test sni = "$host_vendor"; then 11033 case $host in 11034 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11035 export_dynamic_flag_spec='$wl-Blargedynsym' 11036 ;; 11037 esac 11038 fi 11039 fi 11040 11041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11042$as_echo "$ld_shlibs" >&6; } 11043test no = "$ld_shlibs" && can_build_shared=no 11044 11045with_gnu_ld=$with_gnu_ld 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061# 11062# Do we need to explicitly link libc? 11063# 11064case "x$archive_cmds_need_lc" in 11065x|xyes) 11066 # Assume -lc should be added 11067 archive_cmds_need_lc=yes 11068 11069 if test yes,yes = "$GCC,$enable_shared"; then 11070 case $archive_cmds in 11071 *'~'*) 11072 # FIXME: we may have to deal with multi-command sequences. 11073 ;; 11074 '$CC '*) 11075 # Test whether the compiler implicitly links with -lc since on some 11076 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11077 # to ld, don't add -lc before -lgcc. 11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11079$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11080if ${lt_cv_archive_cmds_need_lc+:} false; then : 11081 $as_echo_n "(cached) " >&6 11082else 11083 $RM conftest* 11084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11085 11086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11087 (eval $ac_compile) 2>&5 11088 ac_status=$? 11089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11090 test $ac_status = 0; } 2>conftest.err; then 11091 soname=conftest 11092 lib=conftest 11093 libobjs=conftest.$ac_objext 11094 deplibs= 11095 wl=$lt_prog_compiler_wl 11096 pic_flag=$lt_prog_compiler_pic 11097 compiler_flags=-v 11098 linker_flags=-v 11099 verstring= 11100 output_objdir=. 11101 libname=conftest 11102 lt_save_allow_undefined_flag=$allow_undefined_flag 11103 allow_undefined_flag= 11104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11105 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11106 ac_status=$? 11107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11108 test $ac_status = 0; } 11109 then 11110 lt_cv_archive_cmds_need_lc=no 11111 else 11112 lt_cv_archive_cmds_need_lc=yes 11113 fi 11114 allow_undefined_flag=$lt_save_allow_undefined_flag 11115 else 11116 cat conftest.err 1>&5 11117 fi 11118 $RM conftest* 11119 11120fi 11121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11122$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11123 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11124 ;; 11125 esac 11126 fi 11127 ;; 11128esac 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11282$as_echo_n "checking dynamic linker characteristics... " >&6; } 11283 11284if test yes = "$GCC"; then 11285 case $host_os in 11286 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11287 *) lt_awk_arg='/^libraries:/' ;; 11288 esac 11289 case $host_os in 11290 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11291 *) lt_sed_strip_eq='s|=/|/|g' ;; 11292 esac 11293 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11294 case $lt_search_path_spec in 11295 *\;*) 11296 # if the path contains ";" then we assume it to be the separator 11297 # otherwise default to the standard path separator (i.e. ":") - it is 11298 # assumed that no part of a normal pathname contains ";" but that should 11299 # okay in the real world where ";" in dirpaths is itself problematic. 11300 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11301 ;; 11302 *) 11303 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11304 ;; 11305 esac 11306 # Ok, now we have the path, separated by spaces, we can step through it 11307 # and add multilib dir if necessary... 11308 lt_tmp_lt_search_path_spec= 11309 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11310 # ...but if some path component already ends with the multilib dir we assume 11311 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11312 case "$lt_multi_os_dir; $lt_search_path_spec " in 11313 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11314 lt_multi_os_dir= 11315 ;; 11316 esac 11317 for lt_sys_path in $lt_search_path_spec; do 11318 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11319 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11320 elif test -n "$lt_multi_os_dir"; then 11321 test -d "$lt_sys_path" && \ 11322 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11323 fi 11324 done 11325 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11326BEGIN {RS = " "; FS = "/|\n";} { 11327 lt_foo = ""; 11328 lt_count = 0; 11329 for (lt_i = NF; lt_i > 0; lt_i--) { 11330 if ($lt_i != "" && $lt_i != ".") { 11331 if ($lt_i == "..") { 11332 lt_count++; 11333 } else { 11334 if (lt_count == 0) { 11335 lt_foo = "/" $lt_i lt_foo; 11336 } else { 11337 lt_count--; 11338 } 11339 } 11340 } 11341 } 11342 if (lt_foo != "") { lt_freq[lt_foo]++; } 11343 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11344}'` 11345 # AWK program above erroneously prepends '/' to C:/dos/paths 11346 # for these hosts. 11347 case $host_os in 11348 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11349 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11350 esac 11351 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11352else 11353 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11354fi 11355library_names_spec= 11356libname_spec='lib$name' 11357soname_spec= 11358shrext_cmds=.so 11359postinstall_cmds= 11360postuninstall_cmds= 11361finish_cmds= 11362finish_eval= 11363shlibpath_var= 11364shlibpath_overrides_runpath=unknown 11365version_type=none 11366dynamic_linker="$host_os ld.so" 11367sys_lib_dlsearch_path_spec="/lib /usr/lib" 11368need_lib_prefix=unknown 11369hardcode_into_libs=no 11370 11371# when you set need_version to no, make sure it does not cause -set_version 11372# flags to be left without arguments 11373need_version=unknown 11374 11375 11376 11377case $host_os in 11378aix3*) 11379 version_type=linux # correct to gnu/linux during the next big refactor 11380 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11381 shlibpath_var=LIBPATH 11382 11383 # AIX 3 has no versioning support, so we append a major version to the name. 11384 soname_spec='$libname$release$shared_ext$major' 11385 ;; 11386 11387aix[4-9]*) 11388 version_type=linux # correct to gnu/linux during the next big refactor 11389 need_lib_prefix=no 11390 need_version=no 11391 hardcode_into_libs=yes 11392 if test ia64 = "$host_cpu"; then 11393 # AIX 5 supports IA64 11394 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11395 shlibpath_var=LD_LIBRARY_PATH 11396 else 11397 # With GCC up to 2.95.x, collect2 would create an import file 11398 # for dependence libraries. The import file would start with 11399 # the line '#! .'. This would cause the generated library to 11400 # depend on '.', always an invalid library. This was fixed in 11401 # development snapshots of GCC prior to 3.0. 11402 case $host_os in 11403 aix4 | aix4.[01] | aix4.[01].*) 11404 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11405 echo ' yes ' 11406 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11407 : 11408 else 11409 can_build_shared=no 11410 fi 11411 ;; 11412 esac 11413 # Using Import Files as archive members, it is possible to support 11414 # filename-based versioning of shared library archives on AIX. While 11415 # this would work for both with and without runtime linking, it will 11416 # prevent static linking of such archives. So we do filename-based 11417 # shared library versioning with .so extension only, which is used 11418 # when both runtime linking and shared linking is enabled. 11419 # Unfortunately, runtime linking may impact performance, so we do 11420 # not want this to be the default eventually. Also, we use the 11421 # versioned .so libs for executables only if there is the -brtl 11422 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11423 # To allow for filename-based versioning support, we need to create 11424 # libNAME.so.V as an archive file, containing: 11425 # *) an Import File, referring to the versioned filename of the 11426 # archive as well as the shared archive member, telling the 11427 # bitwidth (32 or 64) of that shared object, and providing the 11428 # list of exported symbols of that shared object, eventually 11429 # decorated with the 'weak' keyword 11430 # *) the shared object with the F_LOADONLY flag set, to really avoid 11431 # it being seen by the linker. 11432 # At run time we better use the real file rather than another symlink, 11433 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11434 11435 case $with_aix_soname,$aix_use_runtimelinking in 11436 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11437 # soname into executable. Probably we can add versioning support to 11438 # collect2, so additional links can be useful in future. 11439 aix,yes) # traditional libtool 11440 dynamic_linker='AIX unversionable lib.so' 11441 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11442 # instead of lib<name>.a to let people know that these are not 11443 # typical AIX shared libraries. 11444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11445 ;; 11446 aix,no) # traditional AIX only 11447 dynamic_linker='AIX lib.a(lib.so.V)' 11448 # We preserve .a as extension for shared libraries through AIX4.2 11449 # and later when we are not doing run time linking. 11450 library_names_spec='$libname$release.a $libname.a' 11451 soname_spec='$libname$release$shared_ext$major' 11452 ;; 11453 svr4,*) # full svr4 only 11454 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11455 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11456 # We do not specify a path in Import Files, so LIBPATH fires. 11457 shlibpath_overrides_runpath=yes 11458 ;; 11459 *,yes) # both, prefer svr4 11460 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11461 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11462 # unpreferred sharedlib libNAME.a needs extra handling 11463 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11464 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11465 # We do not specify a path in Import Files, so LIBPATH fires. 11466 shlibpath_overrides_runpath=yes 11467 ;; 11468 *,no) # both, prefer aix 11469 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11470 library_names_spec='$libname$release.a $libname.a' 11471 soname_spec='$libname$release$shared_ext$major' 11472 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11473 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11474 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11475 ;; 11476 esac 11477 shlibpath_var=LIBPATH 11478 fi 11479 ;; 11480 11481amigaos*) 11482 case $host_cpu in 11483 powerpc) 11484 # Since July 2007 AmigaOS4 officially supports .so libraries. 11485 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11487 ;; 11488 m68k) 11489 library_names_spec='$libname.ixlibrary $libname.a' 11490 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11491 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 11492 ;; 11493 esac 11494 ;; 11495 11496beos*) 11497 library_names_spec='$libname$shared_ext' 11498 dynamic_linker="$host_os ld.so" 11499 shlibpath_var=LIBRARY_PATH 11500 ;; 11501 11502bsdi[45]*) 11503 version_type=linux # correct to gnu/linux during the next big refactor 11504 need_version=no 11505 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11506 soname_spec='$libname$release$shared_ext$major' 11507 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11508 shlibpath_var=LD_LIBRARY_PATH 11509 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11510 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11511 # the default ld.so.conf also contains /usr/contrib/lib and 11512 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11513 # libtool to hard-code these into programs 11514 ;; 11515 11516cygwin* | mingw* | pw32* | cegcc*) 11517 version_type=windows 11518 shrext_cmds=.dll 11519 need_version=no 11520 need_lib_prefix=no 11521 11522 case $GCC,$cc_basename in 11523 yes,*) 11524 # gcc 11525 library_names_spec='$libname.dll.a' 11526 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11527 postinstall_cmds='base_file=`basename \$file`~ 11528 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11529 dldir=$destdir/`dirname \$dlpath`~ 11530 test -d \$dldir || mkdir -p \$dldir~ 11531 $install_prog $dir/$dlname \$dldir/$dlname~ 11532 chmod a+x \$dldir/$dlname~ 11533 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11534 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11535 fi' 11536 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11537 dlpath=$dir/\$dldll~ 11538 $RM \$dlpath' 11539 shlibpath_overrides_runpath=yes 11540 11541 case $host_os in 11542 cygwin*) 11543 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11544 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11545 11546 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11547 ;; 11548 mingw* | cegcc*) 11549 # MinGW DLLs use traditional 'lib' prefix 11550 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11551 ;; 11552 pw32*) 11553 # pw32 DLLs use 'pw' prefix rather than 'lib' 11554 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11555 ;; 11556 esac 11557 dynamic_linker='Win32 ld.exe' 11558 ;; 11559 11560 *,cl*) 11561 # Native MSVC 11562 libname_spec='$name' 11563 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11564 library_names_spec='$libname.dll.lib' 11565 11566 case $build_os in 11567 mingw*) 11568 sys_lib_search_path_spec= 11569 lt_save_ifs=$IFS 11570 IFS=';' 11571 for lt_path in $LIB 11572 do 11573 IFS=$lt_save_ifs 11574 # Let DOS variable expansion print the short 8.3 style file name. 11575 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11576 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11577 done 11578 IFS=$lt_save_ifs 11579 # Convert to MSYS style. 11580 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11581 ;; 11582 cygwin*) 11583 # Convert to unix form, then to dos form, then back to unix form 11584 # but this time dos style (no spaces!) so that the unix form looks 11585 # like /cygdrive/c/PROGRA~1:/cygdr... 11586 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11587 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11588 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11589 ;; 11590 *) 11591 sys_lib_search_path_spec=$LIB 11592 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11593 # It is most probably a Windows format PATH. 11594 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11595 else 11596 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11597 fi 11598 # FIXME: find the short name or the path components, as spaces are 11599 # common. (e.g. "Program Files" -> "PROGRA~1") 11600 ;; 11601 esac 11602 11603 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11604 postinstall_cmds='base_file=`basename \$file`~ 11605 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11606 dldir=$destdir/`dirname \$dlpath`~ 11607 test -d \$dldir || mkdir -p \$dldir~ 11608 $install_prog $dir/$dlname \$dldir/$dlname' 11609 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11610 dlpath=$dir/\$dldll~ 11611 $RM \$dlpath' 11612 shlibpath_overrides_runpath=yes 11613 dynamic_linker='Win32 link.exe' 11614 ;; 11615 11616 *) 11617 # Assume MSVC wrapper 11618 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11619 dynamic_linker='Win32 ld.exe' 11620 ;; 11621 esac 11622 # FIXME: first we should search . and the directory the executable is in 11623 shlibpath_var=PATH 11624 ;; 11625 11626darwin* | rhapsody*) 11627 dynamic_linker="$host_os dyld" 11628 version_type=darwin 11629 need_lib_prefix=no 11630 need_version=no 11631 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11632 soname_spec='$libname$release$major$shared_ext' 11633 shlibpath_overrides_runpath=yes 11634 shlibpath_var=DYLD_LIBRARY_PATH 11635 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11636 11637 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11638 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11639 ;; 11640 11641dgux*) 11642 version_type=linux # correct to gnu/linux during the next big refactor 11643 need_lib_prefix=no 11644 need_version=no 11645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11646 soname_spec='$libname$release$shared_ext$major' 11647 shlibpath_var=LD_LIBRARY_PATH 11648 ;; 11649 11650freebsd* | dragonfly*) 11651 # DragonFly does not have aout. When/if they implement a new 11652 # versioning mechanism, adjust this. 11653 if test -x /usr/bin/objformat; then 11654 objformat=`/usr/bin/objformat` 11655 else 11656 case $host_os in 11657 freebsd[23].*) objformat=aout ;; 11658 *) objformat=elf ;; 11659 esac 11660 fi 11661 version_type=freebsd-$objformat 11662 case $version_type in 11663 freebsd-elf*) 11664 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11665 soname_spec='$libname$release$shared_ext$major' 11666 need_version=no 11667 need_lib_prefix=no 11668 ;; 11669 freebsd-*) 11670 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11671 need_version=yes 11672 ;; 11673 esac 11674 shlibpath_var=LD_LIBRARY_PATH 11675 case $host_os in 11676 freebsd2.*) 11677 shlibpath_overrides_runpath=yes 11678 ;; 11679 freebsd3.[01]* | freebsdelf3.[01]*) 11680 shlibpath_overrides_runpath=yes 11681 hardcode_into_libs=yes 11682 ;; 11683 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11684 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11685 shlibpath_overrides_runpath=no 11686 hardcode_into_libs=yes 11687 ;; 11688 *) # from 4.6 on, and DragonFly 11689 shlibpath_overrides_runpath=yes 11690 hardcode_into_libs=yes 11691 ;; 11692 esac 11693 ;; 11694 11695haiku*) 11696 version_type=linux # correct to gnu/linux during the next big refactor 11697 need_lib_prefix=no 11698 need_version=no 11699 dynamic_linker="$host_os runtime_loader" 11700 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11701 soname_spec='$libname$release$shared_ext$major' 11702 shlibpath_var=LIBRARY_PATH 11703 shlibpath_overrides_runpath=no 11704 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11705 hardcode_into_libs=yes 11706 ;; 11707 11708hpux9* | hpux10* | hpux11*) 11709 # Give a soname corresponding to the major version so that dld.sl refuses to 11710 # link against other versions. 11711 version_type=sunos 11712 need_lib_prefix=no 11713 need_version=no 11714 case $host_cpu in 11715 ia64*) 11716 shrext_cmds='.so' 11717 hardcode_into_libs=yes 11718 dynamic_linker="$host_os dld.so" 11719 shlibpath_var=LD_LIBRARY_PATH 11720 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11722 soname_spec='$libname$release$shared_ext$major' 11723 if test 32 = "$HPUX_IA64_MODE"; then 11724 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11725 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11726 else 11727 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11728 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11729 fi 11730 ;; 11731 hppa*64*) 11732 shrext_cmds='.sl' 11733 hardcode_into_libs=yes 11734 dynamic_linker="$host_os dld.sl" 11735 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11736 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11737 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11738 soname_spec='$libname$release$shared_ext$major' 11739 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11741 ;; 11742 *) 11743 shrext_cmds='.sl' 11744 dynamic_linker="$host_os dld.sl" 11745 shlibpath_var=SHLIB_PATH 11746 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11748 soname_spec='$libname$release$shared_ext$major' 11749 ;; 11750 esac 11751 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11752 postinstall_cmds='chmod 555 $lib' 11753 # or fails outright, so override atomically: 11754 install_override_mode=555 11755 ;; 11756 11757interix[3-9]*) 11758 version_type=linux # correct to gnu/linux during the next big refactor 11759 need_lib_prefix=no 11760 need_version=no 11761 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11762 soname_spec='$libname$release$shared_ext$major' 11763 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11764 shlibpath_var=LD_LIBRARY_PATH 11765 shlibpath_overrides_runpath=no 11766 hardcode_into_libs=yes 11767 ;; 11768 11769irix5* | irix6* | nonstopux*) 11770 case $host_os in 11771 nonstopux*) version_type=nonstopux ;; 11772 *) 11773 if test yes = "$lt_cv_prog_gnu_ld"; then 11774 version_type=linux # correct to gnu/linux during the next big refactor 11775 else 11776 version_type=irix 11777 fi ;; 11778 esac 11779 need_lib_prefix=no 11780 need_version=no 11781 soname_spec='$libname$release$shared_ext$major' 11782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11783 case $host_os in 11784 irix5* | nonstopux*) 11785 libsuff= shlibsuff= 11786 ;; 11787 *) 11788 case $LD in # libtool.m4 will add one of these switches to LD 11789 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11790 libsuff= shlibsuff= libmagic=32-bit;; 11791 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11792 libsuff=32 shlibsuff=N32 libmagic=N32;; 11793 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11794 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11795 *) libsuff= shlibsuff= libmagic=never-match;; 11796 esac 11797 ;; 11798 esac 11799 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11800 shlibpath_overrides_runpath=no 11801 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11802 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11803 hardcode_into_libs=yes 11804 ;; 11805 11806# No shared lib support for Linux oldld, aout, or coff. 11807linux*oldld* | linux*aout* | linux*coff*) 11808 dynamic_linker=no 11809 ;; 11810 11811linux*android*) 11812 version_type=none # Android doesn't support versioned libraries. 11813 need_lib_prefix=no 11814 need_version=no 11815 library_names_spec='$libname$release$shared_ext' 11816 soname_spec='$libname$release$shared_ext' 11817 finish_cmds= 11818 shlibpath_var=LD_LIBRARY_PATH 11819 shlibpath_overrides_runpath=yes 11820 11821 # This implies no fast_install, which is unacceptable. 11822 # Some rework will be needed to allow for fast_install 11823 # before this can be enabled. 11824 hardcode_into_libs=yes 11825 11826 dynamic_linker='Android linker' 11827 # Don't embed -rpath directories since the linker doesn't support them. 11828 hardcode_libdir_flag_spec='-L$libdir' 11829 ;; 11830 11831# This must be glibc/ELF. 11832linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11833 version_type=linux # correct to gnu/linux during the next big refactor 11834 need_lib_prefix=no 11835 need_version=no 11836 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11837 soname_spec='$libname$release$shared_ext$major' 11838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11839 shlibpath_var=LD_LIBRARY_PATH 11840 shlibpath_overrides_runpath=no 11841 11842 # Some binutils ld are patched to set DT_RUNPATH 11843 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11844 $as_echo_n "(cached) " >&6 11845else 11846 lt_cv_shlibpath_overrides_runpath=no 11847 save_LDFLAGS=$LDFLAGS 11848 save_libdir=$libdir 11849 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11850 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11852/* end confdefs.h. */ 11853 11854int 11855main () 11856{ 11857 11858 ; 11859 return 0; 11860} 11861_ACEOF 11862if ac_fn_c_try_link "$LINENO"; then : 11863 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11864 lt_cv_shlibpath_overrides_runpath=yes 11865fi 11866fi 11867rm -f core conftest.err conftest.$ac_objext \ 11868 conftest$ac_exeext conftest.$ac_ext 11869 LDFLAGS=$save_LDFLAGS 11870 libdir=$save_libdir 11871 11872fi 11873 11874 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11875 11876 # This implies no fast_install, which is unacceptable. 11877 # Some rework will be needed to allow for fast_install 11878 # before this can be enabled. 11879 hardcode_into_libs=yes 11880 11881 # Ideally, we could use ldconfig to report *all* directores which are 11882 # searched for libraries, however this is still not possible. Aside from not 11883 # being certain /sbin/ldconfig is available, command 11884 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11885 # even though it is searched at run-time. Try to do the best guess by 11886 # appending ld.so.conf contents (and includes) to the search path. 11887 if test -f /etc/ld.so.conf; then 11888 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 11889 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11890 fi 11891 11892 # We used to test for /lib/ld.so.1 and disable shared libraries on 11893 # powerpc, because MkLinux only supported shared libraries with the 11894 # GNU dynamic linker. Since this was broken with cross compilers, 11895 # most powerpc-linux boxes support dynamic linking these days and 11896 # people can always --disable-shared, the test was removed, and we 11897 # assume the GNU/Linux dynamic linker is in use. 11898 dynamic_linker='GNU/Linux ld.so' 11899 ;; 11900 11901netbsdelf*-gnu) 11902 version_type=linux 11903 need_lib_prefix=no 11904 need_version=no 11905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11906 soname_spec='${libname}${release}${shared_ext}$major' 11907 shlibpath_var=LD_LIBRARY_PATH 11908 shlibpath_overrides_runpath=no 11909 hardcode_into_libs=yes 11910 dynamic_linker='NetBSD ld.elf_so' 11911 ;; 11912 11913netbsd*) 11914 version_type=sunos 11915 need_lib_prefix=no 11916 need_version=no 11917 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11918 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11920 dynamic_linker='NetBSD (a.out) ld.so' 11921 else 11922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11923 soname_spec='$libname$release$shared_ext$major' 11924 dynamic_linker='NetBSD ld.elf_so' 11925 fi 11926 shlibpath_var=LD_LIBRARY_PATH 11927 shlibpath_overrides_runpath=yes 11928 hardcode_into_libs=yes 11929 ;; 11930 11931newsos6) 11932 version_type=linux # correct to gnu/linux during the next big refactor 11933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11934 shlibpath_var=LD_LIBRARY_PATH 11935 shlibpath_overrides_runpath=yes 11936 ;; 11937 11938*nto* | *qnx*) 11939 version_type=qnx 11940 need_lib_prefix=no 11941 need_version=no 11942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11943 soname_spec='$libname$release$shared_ext$major' 11944 shlibpath_var=LD_LIBRARY_PATH 11945 shlibpath_overrides_runpath=no 11946 hardcode_into_libs=yes 11947 dynamic_linker='ldqnx.so' 11948 ;; 11949 11950openbsd* | bitrig*) 11951 version_type=sunos 11952 sys_lib_dlsearch_path_spec=/usr/lib 11953 need_lib_prefix=no 11954 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11955 need_version=no 11956 else 11957 need_version=yes 11958 fi 11959 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11961 shlibpath_var=LD_LIBRARY_PATH 11962 shlibpath_overrides_runpath=yes 11963 ;; 11964 11965os2*) 11966 libname_spec='$name' 11967 version_type=windows 11968 shrext_cmds=.dll 11969 need_version=no 11970 need_lib_prefix=no 11971 # OS/2 can only load a DLL with a base name of 8 characters or less. 11972 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11973 v=$($ECHO $release$versuffix | tr -d .-); 11974 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11975 $ECHO $n$v`$shared_ext' 11976 library_names_spec='${libname}_dll.$libext' 11977 dynamic_linker='OS/2 ld.exe' 11978 shlibpath_var=BEGINLIBPATH 11979 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11981 postinstall_cmds='base_file=`basename \$file`~ 11982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11983 dldir=$destdir/`dirname \$dlpath`~ 11984 test -d \$dldir || mkdir -p \$dldir~ 11985 $install_prog $dir/$dlname \$dldir/$dlname~ 11986 chmod a+x \$dldir/$dlname~ 11987 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11988 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11989 fi' 11990 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11991 dlpath=$dir/\$dldll~ 11992 $RM \$dlpath' 11993 ;; 11994 11995osf3* | osf4* | osf5*) 11996 version_type=osf 11997 need_lib_prefix=no 11998 need_version=no 11999 soname_spec='$libname$release$shared_ext$major' 12000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12001 shlibpath_var=LD_LIBRARY_PATH 12002 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12003 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12004 ;; 12005 12006rdos*) 12007 dynamic_linker=no 12008 ;; 12009 12010solaris*) 12011 version_type=linux # correct to gnu/linux during the next big refactor 12012 need_lib_prefix=no 12013 need_version=no 12014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12015 soname_spec='$libname$release$shared_ext$major' 12016 shlibpath_var=LD_LIBRARY_PATH 12017 shlibpath_overrides_runpath=yes 12018 hardcode_into_libs=yes 12019 # ldd complains unless libraries are executable 12020 postinstall_cmds='chmod +x $lib' 12021 ;; 12022 12023sunos4*) 12024 version_type=sunos 12025 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12026 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12027 shlibpath_var=LD_LIBRARY_PATH 12028 shlibpath_overrides_runpath=yes 12029 if test yes = "$with_gnu_ld"; then 12030 need_lib_prefix=no 12031 fi 12032 need_version=yes 12033 ;; 12034 12035sysv4 | sysv4.3*) 12036 version_type=linux # correct to gnu/linux during the next big refactor 12037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12038 soname_spec='$libname$release$shared_ext$major' 12039 shlibpath_var=LD_LIBRARY_PATH 12040 case $host_vendor in 12041 sni) 12042 shlibpath_overrides_runpath=no 12043 need_lib_prefix=no 12044 runpath_var=LD_RUN_PATH 12045 ;; 12046 siemens) 12047 need_lib_prefix=no 12048 ;; 12049 motorola) 12050 need_lib_prefix=no 12051 need_version=no 12052 shlibpath_overrides_runpath=no 12053 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12054 ;; 12055 esac 12056 ;; 12057 12058sysv4*MP*) 12059 if test -d /usr/nec; then 12060 version_type=linux # correct to gnu/linux during the next big refactor 12061 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12062 soname_spec='$libname$shared_ext.$major' 12063 shlibpath_var=LD_LIBRARY_PATH 12064 fi 12065 ;; 12066 12067sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12068 version_type=sco 12069 need_lib_prefix=no 12070 need_version=no 12071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12072 soname_spec='$libname$release$shared_ext$major' 12073 shlibpath_var=LD_LIBRARY_PATH 12074 shlibpath_overrides_runpath=yes 12075 hardcode_into_libs=yes 12076 if test yes = "$with_gnu_ld"; then 12077 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12078 else 12079 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12080 case $host_os in 12081 sco3.2v5*) 12082 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12083 ;; 12084 esac 12085 fi 12086 sys_lib_dlsearch_path_spec='/usr/lib' 12087 ;; 12088 12089tpf*) 12090 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12091 version_type=linux # correct to gnu/linux during the next big refactor 12092 need_lib_prefix=no 12093 need_version=no 12094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12095 shlibpath_var=LD_LIBRARY_PATH 12096 shlibpath_overrides_runpath=no 12097 hardcode_into_libs=yes 12098 ;; 12099 12100uts4*) 12101 version_type=linux # correct to gnu/linux during the next big refactor 12102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12103 soname_spec='$libname$release$shared_ext$major' 12104 shlibpath_var=LD_LIBRARY_PATH 12105 ;; 12106 12107*) 12108 dynamic_linker=no 12109 ;; 12110esac 12111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12112$as_echo "$dynamic_linker" >&6; } 12113test no = "$dynamic_linker" && can_build_shared=no 12114 12115variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12116if test yes = "$GCC"; then 12117 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12118fi 12119 12120if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12121 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12122fi 12123 12124if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12125 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12126fi 12127 12128# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12129configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12130 12131# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12132func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12133 12134# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12135configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12234$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12235hardcode_action= 12236if test -n "$hardcode_libdir_flag_spec" || 12237 test -n "$runpath_var" || 12238 test yes = "$hardcode_automatic"; then 12239 12240 # We can hardcode non-existent directories. 12241 if test no != "$hardcode_direct" && 12242 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12243 # have to relink, otherwise we might link with an installed library 12244 # when we should be linking with a yet-to-be-installed one 12245 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12246 test no != "$hardcode_minus_L"; then 12247 # Linking always hardcodes the temporary library directory. 12248 hardcode_action=relink 12249 else 12250 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12251 hardcode_action=immediate 12252 fi 12253else 12254 # We cannot hardcode anything, or else we can only hardcode existing 12255 # directories. 12256 hardcode_action=unsupported 12257fi 12258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12259$as_echo "$hardcode_action" >&6; } 12260 12261if test relink = "$hardcode_action" || 12262 test yes = "$inherit_rpath"; then 12263 # Fast installation is not supported 12264 enable_fast_install=no 12265elif test yes = "$shlibpath_overrides_runpath" || 12266 test no = "$enable_shared"; then 12267 # Fast installation is not necessary 12268 enable_fast_install=needless 12269fi 12270 12271 12272 12273 12274 12275 12276 if test yes != "$enable_dlopen"; then 12277 enable_dlopen=unknown 12278 enable_dlopen_self=unknown 12279 enable_dlopen_self_static=unknown 12280else 12281 lt_cv_dlopen=no 12282 lt_cv_dlopen_libs= 12283 12284 case $host_os in 12285 beos*) 12286 lt_cv_dlopen=load_add_on 12287 lt_cv_dlopen_libs= 12288 lt_cv_dlopen_self=yes 12289 ;; 12290 12291 mingw* | pw32* | cegcc*) 12292 lt_cv_dlopen=LoadLibrary 12293 lt_cv_dlopen_libs= 12294 ;; 12295 12296 cygwin*) 12297 lt_cv_dlopen=dlopen 12298 lt_cv_dlopen_libs= 12299 ;; 12300 12301 darwin*) 12302 # if libdl is installed we need to link against it 12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12304$as_echo_n "checking for dlopen in -ldl... " >&6; } 12305if ${ac_cv_lib_dl_dlopen+:} false; then : 12306 $as_echo_n "(cached) " >&6 12307else 12308 ac_check_lib_save_LIBS=$LIBS 12309LIBS="-ldl $LIBS" 12310cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12311/* end confdefs.h. */ 12312 12313/* Override any GCC internal prototype to avoid an error. 12314 Use char because int might match the return type of a GCC 12315 builtin and then its argument prototype would still apply. */ 12316#ifdef __cplusplus 12317extern "C" 12318#endif 12319char dlopen (); 12320int 12321main () 12322{ 12323return dlopen (); 12324 ; 12325 return 0; 12326} 12327_ACEOF 12328if ac_fn_c_try_link "$LINENO"; then : 12329 ac_cv_lib_dl_dlopen=yes 12330else 12331 ac_cv_lib_dl_dlopen=no 12332fi 12333rm -f core conftest.err conftest.$ac_objext \ 12334 conftest$ac_exeext conftest.$ac_ext 12335LIBS=$ac_check_lib_save_LIBS 12336fi 12337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12338$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12339if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12340 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12341else 12342 12343 lt_cv_dlopen=dyld 12344 lt_cv_dlopen_libs= 12345 lt_cv_dlopen_self=yes 12346 12347fi 12348 12349 ;; 12350 12351 tpf*) 12352 # Don't try to run any link tests for TPF. We know it's impossible 12353 # because TPF is a cross-compiler, and we know how we open DSOs. 12354 lt_cv_dlopen=dlopen 12355 lt_cv_dlopen_libs= 12356 lt_cv_dlopen_self=no 12357 ;; 12358 12359 *) 12360 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12361if test "x$ac_cv_func_shl_load" = xyes; then : 12362 lt_cv_dlopen=shl_load 12363else 12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12365$as_echo_n "checking for shl_load in -ldld... " >&6; } 12366if ${ac_cv_lib_dld_shl_load+:} false; then : 12367 $as_echo_n "(cached) " >&6 12368else 12369 ac_check_lib_save_LIBS=$LIBS 12370LIBS="-ldld $LIBS" 12371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12372/* end confdefs.h. */ 12373 12374/* Override any GCC internal prototype to avoid an error. 12375 Use char because int might match the return type of a GCC 12376 builtin and then its argument prototype would still apply. */ 12377#ifdef __cplusplus 12378extern "C" 12379#endif 12380char shl_load (); 12381int 12382main () 12383{ 12384return shl_load (); 12385 ; 12386 return 0; 12387} 12388_ACEOF 12389if ac_fn_c_try_link "$LINENO"; then : 12390 ac_cv_lib_dld_shl_load=yes 12391else 12392 ac_cv_lib_dld_shl_load=no 12393fi 12394rm -f core conftest.err conftest.$ac_objext \ 12395 conftest$ac_exeext conftest.$ac_ext 12396LIBS=$ac_check_lib_save_LIBS 12397fi 12398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12399$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12400if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12401 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12402else 12403 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12404if test "x$ac_cv_func_dlopen" = xyes; then : 12405 lt_cv_dlopen=dlopen 12406else 12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12408$as_echo_n "checking for dlopen in -ldl... " >&6; } 12409if ${ac_cv_lib_dl_dlopen+:} false; then : 12410 $as_echo_n "(cached) " >&6 12411else 12412 ac_check_lib_save_LIBS=$LIBS 12413LIBS="-ldl $LIBS" 12414cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12415/* end confdefs.h. */ 12416 12417/* Override any GCC internal prototype to avoid an error. 12418 Use char because int might match the return type of a GCC 12419 builtin and then its argument prototype would still apply. */ 12420#ifdef __cplusplus 12421extern "C" 12422#endif 12423char dlopen (); 12424int 12425main () 12426{ 12427return dlopen (); 12428 ; 12429 return 0; 12430} 12431_ACEOF 12432if ac_fn_c_try_link "$LINENO"; then : 12433 ac_cv_lib_dl_dlopen=yes 12434else 12435 ac_cv_lib_dl_dlopen=no 12436fi 12437rm -f core conftest.err conftest.$ac_objext \ 12438 conftest$ac_exeext conftest.$ac_ext 12439LIBS=$ac_check_lib_save_LIBS 12440fi 12441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12442$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12443if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12444 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12445else 12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12447$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12448if ${ac_cv_lib_svld_dlopen+:} false; then : 12449 $as_echo_n "(cached) " >&6 12450else 12451 ac_check_lib_save_LIBS=$LIBS 12452LIBS="-lsvld $LIBS" 12453cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12454/* end confdefs.h. */ 12455 12456/* Override any GCC internal prototype to avoid an error. 12457 Use char because int might match the return type of a GCC 12458 builtin and then its argument prototype would still apply. */ 12459#ifdef __cplusplus 12460extern "C" 12461#endif 12462char dlopen (); 12463int 12464main () 12465{ 12466return dlopen (); 12467 ; 12468 return 0; 12469} 12470_ACEOF 12471if ac_fn_c_try_link "$LINENO"; then : 12472 ac_cv_lib_svld_dlopen=yes 12473else 12474 ac_cv_lib_svld_dlopen=no 12475fi 12476rm -f core conftest.err conftest.$ac_objext \ 12477 conftest$ac_exeext conftest.$ac_ext 12478LIBS=$ac_check_lib_save_LIBS 12479fi 12480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12481$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12482if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12483 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12484else 12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12486$as_echo_n "checking for dld_link in -ldld... " >&6; } 12487if ${ac_cv_lib_dld_dld_link+:} false; then : 12488 $as_echo_n "(cached) " >&6 12489else 12490 ac_check_lib_save_LIBS=$LIBS 12491LIBS="-ldld $LIBS" 12492cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12493/* end confdefs.h. */ 12494 12495/* Override any GCC internal prototype to avoid an error. 12496 Use char because int might match the return type of a GCC 12497 builtin and then its argument prototype would still apply. */ 12498#ifdef __cplusplus 12499extern "C" 12500#endif 12501char dld_link (); 12502int 12503main () 12504{ 12505return dld_link (); 12506 ; 12507 return 0; 12508} 12509_ACEOF 12510if ac_fn_c_try_link "$LINENO"; then : 12511 ac_cv_lib_dld_dld_link=yes 12512else 12513 ac_cv_lib_dld_dld_link=no 12514fi 12515rm -f core conftest.err conftest.$ac_objext \ 12516 conftest$ac_exeext conftest.$ac_ext 12517LIBS=$ac_check_lib_save_LIBS 12518fi 12519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12520$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12521if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12522 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12523fi 12524 12525 12526fi 12527 12528 12529fi 12530 12531 12532fi 12533 12534 12535fi 12536 12537 12538fi 12539 12540 ;; 12541 esac 12542 12543 if test no = "$lt_cv_dlopen"; then 12544 enable_dlopen=no 12545 else 12546 enable_dlopen=yes 12547 fi 12548 12549 case $lt_cv_dlopen in 12550 dlopen) 12551 save_CPPFLAGS=$CPPFLAGS 12552 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12553 12554 save_LDFLAGS=$LDFLAGS 12555 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12556 12557 save_LIBS=$LIBS 12558 LIBS="$lt_cv_dlopen_libs $LIBS" 12559 12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12561$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12562if ${lt_cv_dlopen_self+:} false; then : 12563 $as_echo_n "(cached) " >&6 12564else 12565 if test yes = "$cross_compiling"; then : 12566 lt_cv_dlopen_self=cross 12567else 12568 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12569 lt_status=$lt_dlunknown 12570 cat > conftest.$ac_ext <<_LT_EOF 12571#line $LINENO "configure" 12572#include "confdefs.h" 12573 12574#if HAVE_DLFCN_H 12575#include <dlfcn.h> 12576#endif 12577 12578#include <stdio.h> 12579 12580#ifdef RTLD_GLOBAL 12581# define LT_DLGLOBAL RTLD_GLOBAL 12582#else 12583# ifdef DL_GLOBAL 12584# define LT_DLGLOBAL DL_GLOBAL 12585# else 12586# define LT_DLGLOBAL 0 12587# endif 12588#endif 12589 12590/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12591 find out it does not work in some platform. */ 12592#ifndef LT_DLLAZY_OR_NOW 12593# ifdef RTLD_LAZY 12594# define LT_DLLAZY_OR_NOW RTLD_LAZY 12595# else 12596# ifdef DL_LAZY 12597# define LT_DLLAZY_OR_NOW DL_LAZY 12598# else 12599# ifdef RTLD_NOW 12600# define LT_DLLAZY_OR_NOW RTLD_NOW 12601# else 12602# ifdef DL_NOW 12603# define LT_DLLAZY_OR_NOW DL_NOW 12604# else 12605# define LT_DLLAZY_OR_NOW 0 12606# endif 12607# endif 12608# endif 12609# endif 12610#endif 12611 12612/* When -fvisibility=hidden is used, assume the code has been annotated 12613 correspondingly for the symbols needed. */ 12614#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12615int fnord () __attribute__((visibility("default"))); 12616#endif 12617 12618int fnord () { return 42; } 12619int main () 12620{ 12621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12622 int status = $lt_dlunknown; 12623 12624 if (self) 12625 { 12626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12627 else 12628 { 12629 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12630 else puts (dlerror ()); 12631 } 12632 /* dlclose (self); */ 12633 } 12634 else 12635 puts (dlerror ()); 12636 12637 return status; 12638} 12639_LT_EOF 12640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12641 (eval $ac_link) 2>&5 12642 ac_status=$? 12643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12644 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12645 (./conftest; exit; ) >&5 2>/dev/null 12646 lt_status=$? 12647 case x$lt_status in 12648 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12649 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12650 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12651 esac 12652 else : 12653 # compilation failed 12654 lt_cv_dlopen_self=no 12655 fi 12656fi 12657rm -fr conftest* 12658 12659 12660fi 12661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12662$as_echo "$lt_cv_dlopen_self" >&6; } 12663 12664 if test yes = "$lt_cv_dlopen_self"; then 12665 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12667$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12668if ${lt_cv_dlopen_self_static+:} false; then : 12669 $as_echo_n "(cached) " >&6 12670else 12671 if test yes = "$cross_compiling"; then : 12672 lt_cv_dlopen_self_static=cross 12673else 12674 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12675 lt_status=$lt_dlunknown 12676 cat > conftest.$ac_ext <<_LT_EOF 12677#line $LINENO "configure" 12678#include "confdefs.h" 12679 12680#if HAVE_DLFCN_H 12681#include <dlfcn.h> 12682#endif 12683 12684#include <stdio.h> 12685 12686#ifdef RTLD_GLOBAL 12687# define LT_DLGLOBAL RTLD_GLOBAL 12688#else 12689# ifdef DL_GLOBAL 12690# define LT_DLGLOBAL DL_GLOBAL 12691# else 12692# define LT_DLGLOBAL 0 12693# endif 12694#endif 12695 12696/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12697 find out it does not work in some platform. */ 12698#ifndef LT_DLLAZY_OR_NOW 12699# ifdef RTLD_LAZY 12700# define LT_DLLAZY_OR_NOW RTLD_LAZY 12701# else 12702# ifdef DL_LAZY 12703# define LT_DLLAZY_OR_NOW DL_LAZY 12704# else 12705# ifdef RTLD_NOW 12706# define LT_DLLAZY_OR_NOW RTLD_NOW 12707# else 12708# ifdef DL_NOW 12709# define LT_DLLAZY_OR_NOW DL_NOW 12710# else 12711# define LT_DLLAZY_OR_NOW 0 12712# endif 12713# endif 12714# endif 12715# endif 12716#endif 12717 12718/* When -fvisibility=hidden is used, assume the code has been annotated 12719 correspondingly for the symbols needed. */ 12720#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12721int fnord () __attribute__((visibility("default"))); 12722#endif 12723 12724int fnord () { return 42; } 12725int main () 12726{ 12727 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12728 int status = $lt_dlunknown; 12729 12730 if (self) 12731 { 12732 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12733 else 12734 { 12735 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12736 else puts (dlerror ()); 12737 } 12738 /* dlclose (self); */ 12739 } 12740 else 12741 puts (dlerror ()); 12742 12743 return status; 12744} 12745_LT_EOF 12746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12747 (eval $ac_link) 2>&5 12748 ac_status=$? 12749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12750 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12751 (./conftest; exit; ) >&5 2>/dev/null 12752 lt_status=$? 12753 case x$lt_status in 12754 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12755 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12756 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12757 esac 12758 else : 12759 # compilation failed 12760 lt_cv_dlopen_self_static=no 12761 fi 12762fi 12763rm -fr conftest* 12764 12765 12766fi 12767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12768$as_echo "$lt_cv_dlopen_self_static" >&6; } 12769 fi 12770 12771 CPPFLAGS=$save_CPPFLAGS 12772 LDFLAGS=$save_LDFLAGS 12773 LIBS=$save_LIBS 12774 ;; 12775 esac 12776 12777 case $lt_cv_dlopen_self in 12778 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12779 *) enable_dlopen_self=unknown ;; 12780 esac 12781 12782 case $lt_cv_dlopen_self_static in 12783 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12784 *) enable_dlopen_self_static=unknown ;; 12785 esac 12786fi 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804striplib= 12805old_striplib= 12806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12807$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12808if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12809 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12810 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12812$as_echo "yes" >&6; } 12813else 12814# FIXME - insert some real tests, host_os isn't really good enough 12815 case $host_os in 12816 darwin*) 12817 if test -n "$STRIP"; then 12818 striplib="$STRIP -x" 12819 old_striplib="$STRIP -S" 12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12821$as_echo "yes" >&6; } 12822 else 12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12824$as_echo "no" >&6; } 12825 fi 12826 ;; 12827 *) 12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12829$as_echo "no" >&6; } 12830 ;; 12831 esac 12832fi 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 # Report what library types will actually be built 12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12847$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12849$as_echo "$can_build_shared" >&6; } 12850 12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12852$as_echo_n "checking whether to build shared libraries... " >&6; } 12853 test no = "$can_build_shared" && enable_shared=no 12854 12855 # On AIX, shared libraries and static libraries use the same namespace, and 12856 # are all built from PIC. 12857 case $host_os in 12858 aix3*) 12859 test yes = "$enable_shared" && enable_static=no 12860 if test -n "$RANLIB"; then 12861 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12862 postinstall_cmds='$RANLIB $lib' 12863 fi 12864 ;; 12865 12866 aix[4-9]*) 12867 if test ia64 != "$host_cpu"; then 12868 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12869 yes,aix,yes) ;; # shared object as lib.so file only 12870 yes,svr4,*) ;; # shared object as lib.so archive member only 12871 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12872 esac 12873 fi 12874 ;; 12875 esac 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12877$as_echo "$enable_shared" >&6; } 12878 12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12880$as_echo_n "checking whether to build static libraries... " >&6; } 12881 # Make sure either enable_shared or enable_static is yes. 12882 test yes = "$enable_shared" || enable_static=yes 12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12884$as_echo "$enable_static" >&6; } 12885 12886 12887 12888 12889fi 12890ac_ext=cpp 12891ac_cpp='$CXXCPP $CPPFLAGS' 12892ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12893ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12894ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12895 12896CC=$lt_save_CC 12897 12898 if test -n "$CXX" && ( test no != "$CXX" && 12899 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 12900 (test g++ != "$CXX"))); then 12901 ac_ext=cpp 12902ac_cpp='$CXXCPP $CPPFLAGS' 12903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12907$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12908if test -z "$CXXCPP"; then 12909 if ${ac_cv_prog_CXXCPP+:} false; then : 12910 $as_echo_n "(cached) " >&6 12911else 12912 # Double quotes because CXXCPP needs to be expanded 12913 for CXXCPP in "$CXX -E" "/lib/cpp" 12914 do 12915 ac_preproc_ok=false 12916for ac_cxx_preproc_warn_flag in '' yes 12917do 12918 # Use a header file that comes with gcc, so configuring glibc 12919 # with a fresh cross-compiler works. 12920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12921 # <limits.h> exists even on freestanding compilers. 12922 # On the NeXT, cc -E runs the code through the compiler's parser, 12923 # not just through cpp. "Syntax error" is here to catch this case. 12924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12925/* end confdefs.h. */ 12926#ifdef __STDC__ 12927# include <limits.h> 12928#else 12929# include <assert.h> 12930#endif 12931 Syntax error 12932_ACEOF 12933if ac_fn_cxx_try_cpp "$LINENO"; then : 12934 12935else 12936 # Broken: fails on valid input. 12937continue 12938fi 12939rm -f conftest.err conftest.i conftest.$ac_ext 12940 12941 # OK, works on sane cases. Now check whether nonexistent headers 12942 # can be detected and how. 12943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12944/* end confdefs.h. */ 12945#include <ac_nonexistent.h> 12946_ACEOF 12947if ac_fn_cxx_try_cpp "$LINENO"; then : 12948 # Broken: success on invalid input. 12949continue 12950else 12951 # Passes both tests. 12952ac_preproc_ok=: 12953break 12954fi 12955rm -f conftest.err conftest.i conftest.$ac_ext 12956 12957done 12958# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12959rm -f conftest.i conftest.err conftest.$ac_ext 12960if $ac_preproc_ok; then : 12961 break 12962fi 12963 12964 done 12965 ac_cv_prog_CXXCPP=$CXXCPP 12966 12967fi 12968 CXXCPP=$ac_cv_prog_CXXCPP 12969else 12970 ac_cv_prog_CXXCPP=$CXXCPP 12971fi 12972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12973$as_echo "$CXXCPP" >&6; } 12974ac_preproc_ok=false 12975for ac_cxx_preproc_warn_flag in '' yes 12976do 12977 # Use a header file that comes with gcc, so configuring glibc 12978 # with a fresh cross-compiler works. 12979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12980 # <limits.h> exists even on freestanding compilers. 12981 # On the NeXT, cc -E runs the code through the compiler's parser, 12982 # not just through cpp. "Syntax error" is here to catch this case. 12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12984/* end confdefs.h. */ 12985#ifdef __STDC__ 12986# include <limits.h> 12987#else 12988# include <assert.h> 12989#endif 12990 Syntax error 12991_ACEOF 12992if ac_fn_cxx_try_cpp "$LINENO"; then : 12993 12994else 12995 # Broken: fails on valid input. 12996continue 12997fi 12998rm -f conftest.err conftest.i conftest.$ac_ext 12999 13000 # OK, works on sane cases. Now check whether nonexistent headers 13001 # can be detected and how. 13002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13003/* end confdefs.h. */ 13004#include <ac_nonexistent.h> 13005_ACEOF 13006if ac_fn_cxx_try_cpp "$LINENO"; then : 13007 # Broken: success on invalid input. 13008continue 13009else 13010 # Passes both tests. 13011ac_preproc_ok=: 13012break 13013fi 13014rm -f conftest.err conftest.i conftest.$ac_ext 13015 13016done 13017# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13018rm -f conftest.i conftest.err conftest.$ac_ext 13019if $ac_preproc_ok; then : 13020 13021else 13022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13024as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13025See \`config.log' for more details" "$LINENO" 5; } 13026fi 13027 13028ac_ext=cpp 13029ac_cpp='$CXXCPP $CPPFLAGS' 13030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13033 13034else 13035 _lt_caught_CXX_error=yes 13036fi 13037 13038ac_ext=cpp 13039ac_cpp='$CXXCPP $CPPFLAGS' 13040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13043 13044archive_cmds_need_lc_CXX=no 13045allow_undefined_flag_CXX= 13046always_export_symbols_CXX=no 13047archive_expsym_cmds_CXX= 13048compiler_needs_object_CXX=no 13049export_dynamic_flag_spec_CXX= 13050hardcode_direct_CXX=no 13051hardcode_direct_absolute_CXX=no 13052hardcode_libdir_flag_spec_CXX= 13053hardcode_libdir_separator_CXX= 13054hardcode_minus_L_CXX=no 13055hardcode_shlibpath_var_CXX=unsupported 13056hardcode_automatic_CXX=no 13057inherit_rpath_CXX=no 13058module_cmds_CXX= 13059module_expsym_cmds_CXX= 13060link_all_deplibs_CXX=unknown 13061old_archive_cmds_CXX=$old_archive_cmds 13062reload_flag_CXX=$reload_flag 13063reload_cmds_CXX=$reload_cmds 13064no_undefined_flag_CXX= 13065whole_archive_flag_spec_CXX= 13066enable_shared_with_static_runtimes_CXX=no 13067 13068# Source file extension for C++ test sources. 13069ac_ext=cpp 13070 13071# Object file extension for compiled C++ test sources. 13072objext=o 13073objext_CXX=$objext 13074 13075# No sense in running all these tests if we already determined that 13076# the CXX compiler isn't working. Some variables (like enable_shared) 13077# are currently assumed to apply to all compilers on this platform, 13078# and will be corrupted by setting them based on a non-working compiler. 13079if test yes != "$_lt_caught_CXX_error"; then 13080 # Code to be used in simple compile tests 13081 lt_simple_compile_test_code="int some_variable = 0;" 13082 13083 # Code to be used in simple link tests 13084 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13085 13086 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13087 13088 13089 13090 13091 13092 13093# If no C compiler was specified, use CC. 13094LTCC=${LTCC-"$CC"} 13095 13096# If no C compiler flags were specified, use CFLAGS. 13097LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13098 13099# Allow CC to be a program name with arguments. 13100compiler=$CC 13101 13102 13103 # save warnings/boilerplate of simple test code 13104 ac_outfile=conftest.$ac_objext 13105echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13106eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13107_lt_compiler_boilerplate=`cat conftest.err` 13108$RM conftest* 13109 13110 ac_outfile=conftest.$ac_objext 13111echo "$lt_simple_link_test_code" >conftest.$ac_ext 13112eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13113_lt_linker_boilerplate=`cat conftest.err` 13114$RM -r conftest* 13115 13116 13117 # Allow CC to be a program name with arguments. 13118 lt_save_CC=$CC 13119 lt_save_CFLAGS=$CFLAGS 13120 lt_save_LD=$LD 13121 lt_save_GCC=$GCC 13122 GCC=$GXX 13123 lt_save_with_gnu_ld=$with_gnu_ld 13124 lt_save_path_LD=$lt_cv_path_LD 13125 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13126 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13127 else 13128 $as_unset lt_cv_prog_gnu_ld 13129 fi 13130 if test -n "${lt_cv_path_LDCXX+set}"; then 13131 lt_cv_path_LD=$lt_cv_path_LDCXX 13132 else 13133 $as_unset lt_cv_path_LD 13134 fi 13135 test -z "${LDCXX+set}" || LD=$LDCXX 13136 CC=${CXX-"c++"} 13137 CFLAGS=$CXXFLAGS 13138 compiler=$CC 13139 compiler_CXX=$CC 13140 func_cc_basename $compiler 13141cc_basename=$func_cc_basename_result 13142 13143 13144 if test -n "$compiler"; then 13145 # We don't want -fno-exception when compiling C++ code, so set the 13146 # no_builtin_flag separately 13147 if test yes = "$GXX"; then 13148 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13149 else 13150 lt_prog_compiler_no_builtin_flag_CXX= 13151 fi 13152 13153 if test yes = "$GXX"; then 13154 # Set up default GNU C++ configuration 13155 13156 13157 13158# Check whether --with-gnu-ld was given. 13159if test "${with_gnu_ld+set}" = set; then : 13160 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13161else 13162 with_gnu_ld=no 13163fi 13164 13165ac_prog=ld 13166if test yes = "$GCC"; then 13167 # Check if gcc -print-prog-name=ld gives a path. 13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13169$as_echo_n "checking for ld used by $CC... " >&6; } 13170 case $host in 13171 *-*-mingw*) 13172 # gcc leaves a trailing carriage return, which upsets mingw 13173 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13174 *) 13175 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13176 esac 13177 case $ac_prog in 13178 # Accept absolute paths. 13179 [\\/]* | ?:[\\/]*) 13180 re_direlt='/[^/][^/]*/\.\./' 13181 # Canonicalize the pathname of ld 13182 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13183 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13184 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13185 done 13186 test -z "$LD" && LD=$ac_prog 13187 ;; 13188 "") 13189 # If it fails, then pretend we aren't using GCC. 13190 ac_prog=ld 13191 ;; 13192 *) 13193 # If it is relative, then search for the first ld in PATH. 13194 with_gnu_ld=unknown 13195 ;; 13196 esac 13197elif test yes = "$with_gnu_ld"; then 13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13199$as_echo_n "checking for GNU ld... " >&6; } 13200else 13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13202$as_echo_n "checking for non-GNU ld... " >&6; } 13203fi 13204if ${lt_cv_path_LD+:} false; then : 13205 $as_echo_n "(cached) " >&6 13206else 13207 if test -z "$LD"; then 13208 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13209 for ac_dir in $PATH; do 13210 IFS=$lt_save_ifs 13211 test -z "$ac_dir" && ac_dir=. 13212 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13213 lt_cv_path_LD=$ac_dir/$ac_prog 13214 # Check to see if the program is GNU ld. I'd rather use --version, 13215 # but apparently some variants of GNU ld only accept -v. 13216 # Break only if it was the GNU/non-GNU ld that we prefer. 13217 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13218 *GNU* | *'with BFD'*) 13219 test no != "$with_gnu_ld" && break 13220 ;; 13221 *) 13222 test yes != "$with_gnu_ld" && break 13223 ;; 13224 esac 13225 fi 13226 done 13227 IFS=$lt_save_ifs 13228else 13229 lt_cv_path_LD=$LD # Let the user override the test with a path. 13230fi 13231fi 13232 13233LD=$lt_cv_path_LD 13234if test -n "$LD"; then 13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13236$as_echo "$LD" >&6; } 13237else 13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13239$as_echo "no" >&6; } 13240fi 13241test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13243$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13244if ${lt_cv_prog_gnu_ld+:} false; then : 13245 $as_echo_n "(cached) " >&6 13246else 13247 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13248case `$LD -v 2>&1 </dev/null` in 13249*GNU* | *'with BFD'*) 13250 lt_cv_prog_gnu_ld=yes 13251 ;; 13252*) 13253 lt_cv_prog_gnu_ld=no 13254 ;; 13255esac 13256fi 13257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13258$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13259with_gnu_ld=$lt_cv_prog_gnu_ld 13260 13261 13262 13263 13264 13265 13266 13267 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13268 # archiving commands below assume that GNU ld is being used. 13269 if test yes = "$with_gnu_ld"; then 13270 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13271 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13272 13273 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13274 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13275 13276 # If archive_cmds runs LD, not CC, wlarc should be empty 13277 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13278 # investigate it a little bit more. (MM) 13279 wlarc='$wl' 13280 13281 # ancient GNU ld didn't support --whole-archive et. al. 13282 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13283 $GREP 'no-whole-archive' > /dev/null; then 13284 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13285 else 13286 whole_archive_flag_spec_CXX= 13287 fi 13288 else 13289 with_gnu_ld=no 13290 wlarc= 13291 13292 # A generic and very simple default shared library creation 13293 # command for GNU C++ for the case where it uses the native 13294 # linker, instead of GNU ld. If possible, this setting should 13295 # overridden to take advantage of the native linker features on 13296 # the platform it is being used on. 13297 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13298 fi 13299 13300 # Commands to make compiler produce verbose output that lists 13301 # what "hidden" libraries, object files and flags are used when 13302 # linking a shared library. 13303 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 13304 13305 else 13306 GXX=no 13307 with_gnu_ld=no 13308 wlarc= 13309 fi 13310 13311 # PORTME: fill in a description of your system's C++ link characteristics 13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13313$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13314 ld_shlibs_CXX=yes 13315 case $host_os in 13316 aix3*) 13317 # FIXME: insert proper C++ library support 13318 ld_shlibs_CXX=no 13319 ;; 13320 aix[4-9]*) 13321 if test ia64 = "$host_cpu"; then 13322 # On IA64, the linker does run time linking by default, so we don't 13323 # have to do anything special. 13324 aix_use_runtimelinking=no 13325 exp_sym_flag='-Bexport' 13326 no_entry_flag= 13327 else 13328 aix_use_runtimelinking=no 13329 13330 # Test if we are trying to use run time linking or normal 13331 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13332 # have runtime linking enabled, and use it for executables. 13333 # For shared libraries, we enable/disable runtime linking 13334 # depending on the kind of the shared library created - 13335 # when "with_aix_soname,aix_use_runtimelinking" is: 13336 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13337 # "aix,yes" lib.so shared, rtl:yes, for executables 13338 # lib.a static archive 13339 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13340 # lib.a(lib.so.V) shared, rtl:no, for executables 13341 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13342 # lib.a(lib.so.V) shared, rtl:no 13343 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13344 # lib.a static archive 13345 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13346 for ld_flag in $LDFLAGS; do 13347 case $ld_flag in 13348 *-brtl*) 13349 aix_use_runtimelinking=yes 13350 break 13351 ;; 13352 esac 13353 done 13354 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13355 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13356 # so we don't have lib.a shared libs to link our executables. 13357 # We have to force runtime linking in this case. 13358 aix_use_runtimelinking=yes 13359 LDFLAGS="$LDFLAGS -Wl,-brtl" 13360 fi 13361 ;; 13362 esac 13363 13364 exp_sym_flag='-bexport' 13365 no_entry_flag='-bnoentry' 13366 fi 13367 13368 # When large executables or shared objects are built, AIX ld can 13369 # have problems creating the table of contents. If linking a library 13370 # or program results in "error TOC overflow" add -mminimal-toc to 13371 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13372 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13373 13374 archive_cmds_CXX='' 13375 hardcode_direct_CXX=yes 13376 hardcode_direct_absolute_CXX=yes 13377 hardcode_libdir_separator_CXX=':' 13378 link_all_deplibs_CXX=yes 13379 file_list_spec_CXX='$wl-f,' 13380 case $with_aix_soname,$aix_use_runtimelinking in 13381 aix,*) ;; # no import file 13382 svr4,* | *,yes) # use import file 13383 # The Import File defines what to hardcode. 13384 hardcode_direct_CXX=no 13385 hardcode_direct_absolute_CXX=no 13386 ;; 13387 esac 13388 13389 if test yes = "$GXX"; then 13390 case $host_os in aix4.[012]|aix4.[012].*) 13391 # We only want to do this on AIX 4.2 and lower, the check 13392 # below for broken collect2 doesn't work under 4.3+ 13393 collect2name=`$CC -print-prog-name=collect2` 13394 if test -f "$collect2name" && 13395 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13396 then 13397 # We have reworked collect2 13398 : 13399 else 13400 # We have old collect2 13401 hardcode_direct_CXX=unsupported 13402 # It fails to find uninstalled libraries when the uninstalled 13403 # path is not listed in the libpath. Setting hardcode_minus_L 13404 # to unsupported forces relinking 13405 hardcode_minus_L_CXX=yes 13406 hardcode_libdir_flag_spec_CXX='-L$libdir' 13407 hardcode_libdir_separator_CXX= 13408 fi 13409 esac 13410 shared_flag='-shared' 13411 if test yes = "$aix_use_runtimelinking"; then 13412 shared_flag=$shared_flag' $wl-G' 13413 fi 13414 # Need to ensure runtime linking is disabled for the traditional 13415 # shared library, or the linker may eventually find shared libraries 13416 # /with/ Import File - we do not want to mix them. 13417 shared_flag_aix='-shared' 13418 shared_flag_svr4='-shared $wl-G' 13419 else 13420 # not using gcc 13421 if test ia64 = "$host_cpu"; then 13422 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13423 # chokes on -Wl,-G. The following line is correct: 13424 shared_flag='-G' 13425 else 13426 if test yes = "$aix_use_runtimelinking"; then 13427 shared_flag='$wl-G' 13428 else 13429 shared_flag='$wl-bM:SRE' 13430 fi 13431 shared_flag_aix='$wl-bM:SRE' 13432 shared_flag_svr4='$wl-G' 13433 fi 13434 fi 13435 13436 export_dynamic_flag_spec_CXX='$wl-bexpall' 13437 # It seems that -bexpall does not export symbols beginning with 13438 # underscore (_), so it is better to generate a list of symbols to 13439 # export. 13440 always_export_symbols_CXX=yes 13441 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13442 # Warning - without using the other runtime loading flags (-brtl), 13443 # -berok will link without error, but may produce a broken library. 13444 # The "-G" linker flag allows undefined symbols. 13445 no_undefined_flag_CXX='-bernotok' 13446 # Determine the default libpath from the value encoded in an empty 13447 # executable. 13448 if test set = "${lt_cv_aix_libpath+set}"; then 13449 aix_libpath=$lt_cv_aix_libpath 13450else 13451 if ${lt_cv_aix_libpath__CXX+:} false; then : 13452 $as_echo_n "(cached) " >&6 13453else 13454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13455/* end confdefs.h. */ 13456 13457int 13458main () 13459{ 13460 13461 ; 13462 return 0; 13463} 13464_ACEOF 13465if ac_fn_cxx_try_link "$LINENO"; then : 13466 13467 lt_aix_libpath_sed=' 13468 /Import File Strings/,/^$/ { 13469 /^0/ { 13470 s/^0 *\([^ ]*\) *$/\1/ 13471 p 13472 } 13473 }' 13474 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13475 # Check for a 64-bit object if we didn't find anything. 13476 if test -z "$lt_cv_aix_libpath__CXX"; then 13477 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13478 fi 13479fi 13480rm -f core conftest.err conftest.$ac_objext \ 13481 conftest$ac_exeext conftest.$ac_ext 13482 if test -z "$lt_cv_aix_libpath__CXX"; then 13483 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13484 fi 13485 13486fi 13487 13488 aix_libpath=$lt_cv_aix_libpath__CXX 13489fi 13490 13491 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13492 13493 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 13494 else 13495 if test ia64 = "$host_cpu"; then 13496 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13497 allow_undefined_flag_CXX="-z nodefs" 13498 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" 13499 else 13500 # Determine the default libpath from the value encoded in an 13501 # empty executable. 13502 if test set = "${lt_cv_aix_libpath+set}"; then 13503 aix_libpath=$lt_cv_aix_libpath 13504else 13505 if ${lt_cv_aix_libpath__CXX+:} false; then : 13506 $as_echo_n "(cached) " >&6 13507else 13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13509/* end confdefs.h. */ 13510 13511int 13512main () 13513{ 13514 13515 ; 13516 return 0; 13517} 13518_ACEOF 13519if ac_fn_cxx_try_link "$LINENO"; then : 13520 13521 lt_aix_libpath_sed=' 13522 /Import File Strings/,/^$/ { 13523 /^0/ { 13524 s/^0 *\([^ ]*\) *$/\1/ 13525 p 13526 } 13527 }' 13528 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13529 # Check for a 64-bit object if we didn't find anything. 13530 if test -z "$lt_cv_aix_libpath__CXX"; then 13531 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13532 fi 13533fi 13534rm -f core conftest.err conftest.$ac_objext \ 13535 conftest$ac_exeext conftest.$ac_ext 13536 if test -z "$lt_cv_aix_libpath__CXX"; then 13537 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13538 fi 13539 13540fi 13541 13542 aix_libpath=$lt_cv_aix_libpath__CXX 13543fi 13544 13545 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13546 # Warning - without using the other run time loading flags, 13547 # -berok will link without error, but may produce a broken library. 13548 no_undefined_flag_CXX=' $wl-bernotok' 13549 allow_undefined_flag_CXX=' $wl-berok' 13550 if test yes = "$with_gnu_ld"; then 13551 # We only use this code for GNU lds that support --whole-archive. 13552 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13553 else 13554 # Exported symbols can be pulled into shared objects from archives 13555 whole_archive_flag_spec_CXX='$convenience' 13556 fi 13557 archive_cmds_need_lc_CXX=yes 13558 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13559 # -brtl affects multiple linker settings, -berok does not and is overridden later 13560 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13561 if test svr4 != "$with_aix_soname"; then 13562 # This is similar to how AIX traditionally builds its shared 13563 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13564 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 13565 fi 13566 if test aix != "$with_aix_soname"; then 13567 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 13568 else 13569 # used by -dlpreopen to get the symbols 13570 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13571 fi 13572 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13573 fi 13574 fi 13575 ;; 13576 13577 beos*) 13578 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13579 allow_undefined_flag_CXX=unsupported 13580 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13581 # support --undefined. This deserves some investigation. FIXME 13582 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13583 else 13584 ld_shlibs_CXX=no 13585 fi 13586 ;; 13587 13588 chorus*) 13589 case $cc_basename in 13590 *) 13591 # FIXME: insert proper C++ library support 13592 ld_shlibs_CXX=no 13593 ;; 13594 esac 13595 ;; 13596 13597 cygwin* | mingw* | pw32* | cegcc*) 13598 case $GXX,$cc_basename in 13599 ,cl* | no,cl*) 13600 # Native MSVC 13601 # hardcode_libdir_flag_spec is actually meaningless, as there is 13602 # no search path for DLLs. 13603 hardcode_libdir_flag_spec_CXX=' ' 13604 allow_undefined_flag_CXX=unsupported 13605 always_export_symbols_CXX=yes 13606 file_list_spec_CXX='@' 13607 # Tell ltmain to make .lib files, not .a files. 13608 libext=lib 13609 # Tell ltmain to make .dll files, not .so files. 13610 shrext_cmds=.dll 13611 # FIXME: Setting linknames here is a bad hack. 13612 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13613 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13614 cp "$export_symbols" "$output_objdir/$soname.def"; 13615 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13616 else 13617 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13618 fi~ 13619 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13620 linknames=' 13621 # The linker will not automatically build a static lib if we build a DLL. 13622 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13623 enable_shared_with_static_runtimes_CXX=yes 13624 # Don't use ranlib 13625 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13626 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13627 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13628 case $lt_outputfile in 13629 *.exe|*.EXE) ;; 13630 *) 13631 lt_outputfile=$lt_outputfile.exe 13632 lt_tool_outputfile=$lt_tool_outputfile.exe 13633 ;; 13634 esac~ 13635 func_to_tool_file "$lt_outputfile"~ 13636 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13637 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13638 $RM "$lt_outputfile.manifest"; 13639 fi' 13640 ;; 13641 *) 13642 # g++ 13643 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13644 # as there is no search path for DLLs. 13645 hardcode_libdir_flag_spec_CXX='-L$libdir' 13646 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 13647 allow_undefined_flag_CXX=unsupported 13648 always_export_symbols_CXX=no 13649 enable_shared_with_static_runtimes_CXX=yes 13650 13651 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13652 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' 13653 # If the export-symbols file already is a .def file, use it as 13654 # is; otherwise, prepend EXPORTS... 13655 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13656 cp $export_symbols $output_objdir/$soname.def; 13657 else 13658 echo EXPORTS > $output_objdir/$soname.def; 13659 cat $export_symbols >> $output_objdir/$soname.def; 13660 fi~ 13661 $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' 13662 else 13663 ld_shlibs_CXX=no 13664 fi 13665 ;; 13666 esac 13667 ;; 13668 darwin* | rhapsody*) 13669 13670 13671 archive_cmds_need_lc_CXX=no 13672 hardcode_direct_CXX=no 13673 hardcode_automatic_CXX=yes 13674 hardcode_shlibpath_var_CXX=unsupported 13675 if test yes = "$lt_cv_ld_force_load"; then 13676 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 13677 13678 else 13679 whole_archive_flag_spec_CXX='' 13680 fi 13681 link_all_deplibs_CXX=yes 13682 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13683 case $cc_basename in 13684 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13685 *) _lt_dar_can_shared=$GCC ;; 13686 esac 13687 if test yes = "$_lt_dar_can_shared"; then 13688 output_verbose_link_cmd=func_echo_all 13689 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 13690 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13691 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 13692 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 13693 if test yes != "$lt_cv_apple_cc_single_mod"; then 13694 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$_lt_dsymutil" 13695 archive_expsym_cmds_CXX="sed '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$_lt_dar_export_syms$_lt_dsymutil" 13696 fi 13697 13698 else 13699 ld_shlibs_CXX=no 13700 fi 13701 13702 ;; 13703 13704 os2*) 13705 hardcode_libdir_flag_spec_CXX='-L$libdir' 13706 hardcode_minus_L_CXX=yes 13707 allow_undefined_flag_CXX=unsupported 13708 shrext_cmds=.dll 13709 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13710 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13711 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13712 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13713 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13714 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13715 emximp -o $lib $output_objdir/$libname.def' 13716 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13717 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13718 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13719 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13720 prefix_cmds="$SED"~ 13721 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13722 prefix_cmds="$prefix_cmds -e 1d"; 13723 fi~ 13724 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13725 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13726 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13727 emximp -o $lib $output_objdir/$libname.def' 13728 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13729 enable_shared_with_static_runtimes_CXX=yes 13730 ;; 13731 13732 dgux*) 13733 case $cc_basename in 13734 ec++*) 13735 # FIXME: insert proper C++ library support 13736 ld_shlibs_CXX=no 13737 ;; 13738 ghcx*) 13739 # Green Hills C++ Compiler 13740 # FIXME: insert proper C++ library support 13741 ld_shlibs_CXX=no 13742 ;; 13743 *) 13744 # FIXME: insert proper C++ library support 13745 ld_shlibs_CXX=no 13746 ;; 13747 esac 13748 ;; 13749 13750 freebsd2.*) 13751 # C++ shared libraries reported to be fairly broken before 13752 # switch to ELF 13753 ld_shlibs_CXX=no 13754 ;; 13755 13756 freebsd-elf*) 13757 archive_cmds_need_lc_CXX=no 13758 ;; 13759 13760 freebsd* | dragonfly*) 13761 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13762 # conventions 13763 ld_shlibs_CXX=yes 13764 ;; 13765 13766 haiku*) 13767 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13768 link_all_deplibs_CXX=yes 13769 ;; 13770 13771 hpux9*) 13772 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13773 hardcode_libdir_separator_CXX=: 13774 export_dynamic_flag_spec_CXX='$wl-E' 13775 hardcode_direct_CXX=yes 13776 hardcode_minus_L_CXX=yes # Not in the search PATH, 13777 # but as the default 13778 # location of the library. 13779 13780 case $cc_basename in 13781 CC*) 13782 # FIXME: insert proper C++ library support 13783 ld_shlibs_CXX=no 13784 ;; 13785 aCC*) 13786 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13787 # Commands to make compiler produce verbose output that lists 13788 # what "hidden" libraries, object files and flags are used when 13789 # linking a shared library. 13790 # 13791 # There doesn't appear to be a way to prevent this compiler from 13792 # explicitly linking system object files so we need to strip them 13793 # from the output so that they don't get included in the library 13794 # dependencies. 13795 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13796 ;; 13797 *) 13798 if test yes = "$GXX"; then 13799 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13800 else 13801 # FIXME: insert proper C++ library support 13802 ld_shlibs_CXX=no 13803 fi 13804 ;; 13805 esac 13806 ;; 13807 13808 hpux10*|hpux11*) 13809 if test no = "$with_gnu_ld"; then 13810 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13811 hardcode_libdir_separator_CXX=: 13812 13813 case $host_cpu in 13814 hppa*64*|ia64*) 13815 ;; 13816 *) 13817 export_dynamic_flag_spec_CXX='$wl-E' 13818 ;; 13819 esac 13820 fi 13821 case $host_cpu in 13822 hppa*64*|ia64*) 13823 hardcode_direct_CXX=no 13824 hardcode_shlibpath_var_CXX=no 13825 ;; 13826 *) 13827 hardcode_direct_CXX=yes 13828 hardcode_direct_absolute_CXX=yes 13829 hardcode_minus_L_CXX=yes # Not in the search PATH, 13830 # but as the default 13831 # location of the library. 13832 ;; 13833 esac 13834 13835 case $cc_basename in 13836 CC*) 13837 # FIXME: insert proper C++ library support 13838 ld_shlibs_CXX=no 13839 ;; 13840 aCC*) 13841 case $host_cpu in 13842 hppa*64*) 13843 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13844 ;; 13845 ia64*) 13846 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13847 ;; 13848 *) 13849 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13850 ;; 13851 esac 13852 # Commands to make compiler produce verbose output that lists 13853 # what "hidden" libraries, object files and flags are used when 13854 # linking a shared library. 13855 # 13856 # There doesn't appear to be a way to prevent this compiler from 13857 # explicitly linking system object files so we need to strip them 13858 # from the output so that they don't get included in the library 13859 # dependencies. 13860 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; func_echo_all "$list"' 13861 ;; 13862 *) 13863 if test yes = "$GXX"; then 13864 if test no = "$with_gnu_ld"; then 13865 case $host_cpu in 13866 hppa*64*) 13867 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13868 ;; 13869 ia64*) 13870 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13871 ;; 13872 *) 13873 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13874 ;; 13875 esac 13876 fi 13877 else 13878 # FIXME: insert proper C++ library support 13879 ld_shlibs_CXX=no 13880 fi 13881 ;; 13882 esac 13883 ;; 13884 13885 interix[3-9]*) 13886 hardcode_direct_CXX=no 13887 hardcode_shlibpath_var_CXX=no 13888 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13889 export_dynamic_flag_spec_CXX='$wl-E' 13890 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13891 # Instead, shared libraries are loaded at an image base (0x10000000 by 13892 # default) and relocated if they conflict, which is a slow very memory 13893 # consuming and fragmenting process. To avoid this, we pick a random, 13894 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13895 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13896 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' 13897 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' 13898 ;; 13899 irix5* | irix6*) 13900 case $cc_basename in 13901 CC*) 13902 # SGI C++ 13903 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 13904 13905 # Archives containing C++ object files must be created using 13906 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13907 # necessary to make sure instantiated templates are included 13908 # in the archive. 13909 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13910 ;; 13911 *) 13912 if test yes = "$GXX"; then 13913 if test no = "$with_gnu_ld"; then 13914 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13915 else 13916 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 13917 fi 13918 fi 13919 link_all_deplibs_CXX=yes 13920 ;; 13921 esac 13922 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13923 hardcode_libdir_separator_CXX=: 13924 inherit_rpath_CXX=yes 13925 ;; 13926 13927 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13928 case $cc_basename in 13929 KCC*) 13930 # Kuck and Associates, Inc. (KAI) C++ Compiler 13931 13932 # KCC will only create a shared library if the output file 13933 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13934 # to its proper name (with version) after linking. 13935 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' 13936 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' 13937 # Commands to make compiler produce verbose output that lists 13938 # what "hidden" libraries, object files and flags are used when 13939 # linking a shared library. 13940 # 13941 # There doesn't appear to be a way to prevent this compiler from 13942 # explicitly linking system object files so we need to strip them 13943 # from the output so that they don't get included in the library 13944 # dependencies. 13945 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; func_echo_all "$list"' 13946 13947 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13948 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13949 13950 # Archives containing C++ object files must be created using 13951 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13952 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13953 ;; 13954 icpc* | ecpc* ) 13955 # Intel C++ 13956 with_gnu_ld=yes 13957 # version 8.0 and above of icpc choke on multiply defined symbols 13958 # if we add $predep_objects and $postdep_objects, however 7.1 and 13959 # earlier do not add the objects themselves. 13960 case `$CC -V 2>&1` in 13961 *"Version 7."*) 13962 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13963 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' 13964 ;; 13965 *) # Version 8.0 or newer 13966 tmp_idyn= 13967 case $host_cpu in 13968 ia64*) tmp_idyn=' -i_dynamic';; 13969 esac 13970 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13971 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' 13972 ;; 13973 esac 13974 archive_cmds_need_lc_CXX=no 13975 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13976 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13977 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13978 ;; 13979 pgCC* | pgcpp*) 13980 # Portland Group C++ compiler 13981 case `$CC -V` in 13982 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13983 prelink_cmds_CXX='tpldir=Template.dir~ 13984 rm -rf $tpldir~ 13985 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13986 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13987 old_archive_cmds_CXX='tpldir=Template.dir~ 13988 rm -rf $tpldir~ 13989 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13990 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13991 $RANLIB $oldlib' 13992 archive_cmds_CXX='tpldir=Template.dir~ 13993 rm -rf $tpldir~ 13994 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13995 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13996 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13997 rm -rf $tpldir~ 13998 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13999 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14000 ;; 14001 *) # Version 6 and above use weak symbols 14002 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14003 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' 14004 ;; 14005 esac 14006 14007 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14008 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14009 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 14010 ;; 14011 cxx*) 14012 # Compaq C++ 14013 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14014 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' 14015 14016 runpath_var=LD_RUN_PATH 14017 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14018 hardcode_libdir_separator_CXX=: 14019 14020 # Commands to make compiler produce verbose output that lists 14021 # what "hidden" libraries, object files and flags are used when 14022 # linking a shared library. 14023 # 14024 # There doesn't appear to be a way to prevent this compiler from 14025 # explicitly linking system object files so we need to strip them 14026 # from the output so that they don't get included in the library 14027 # dependencies. 14028 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed' 14029 ;; 14030 xl* | mpixl* | bgxl*) 14031 # IBM XL 8.0 on PPC, with GNU ld 14032 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14033 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14034 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14035 if test yes = "$supports_anon_versioning"; then 14036 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14037 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14038 echo "local: *; };" >> $output_objdir/$libname.ver~ 14039 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14040 fi 14041 ;; 14042 *) 14043 case `$CC -V 2>&1 | sed 5q` in 14044 *Sun\ C*) 14045 # Sun C++ 5.9 14046 no_undefined_flag_CXX=' -zdefs' 14047 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14048 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 14049 hardcode_libdir_flag_spec_CXX='-R$libdir' 14050 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 14051 compiler_needs_object_CXX=yes 14052 14053 # Not sure whether something based on 14054 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14055 # would be better. 14056 output_verbose_link_cmd='func_echo_all' 14057 14058 # Archives containing C++ object files must be created using 14059 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14060 # necessary to make sure instantiated templates are included 14061 # in the archive. 14062 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14063 ;; 14064 esac 14065 ;; 14066 esac 14067 ;; 14068 14069 lynxos*) 14070 # FIXME: insert proper C++ library support 14071 ld_shlibs_CXX=no 14072 ;; 14073 14074 m88k*) 14075 # FIXME: insert proper C++ library support 14076 ld_shlibs_CXX=no 14077 ;; 14078 14079 mvs*) 14080 case $cc_basename in 14081 cxx*) 14082 # FIXME: insert proper C++ library support 14083 ld_shlibs_CXX=no 14084 ;; 14085 *) 14086 # FIXME: insert proper C++ library support 14087 ld_shlibs_CXX=no 14088 ;; 14089 esac 14090 ;; 14091 14092 netbsd*) 14093 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14094 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14095 wlarc= 14096 hardcode_libdir_flag_spec_CXX='-R$libdir' 14097 hardcode_direct_CXX=yes 14098 hardcode_shlibpath_var_CXX=no 14099 fi 14100 # Workaround some broken pre-1.5 toolchains 14101 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14102 ;; 14103 14104 *nto* | *qnx*) 14105 ld_shlibs_CXX=yes 14106 ;; 14107 14108 openbsd* | bitrig*) 14109 if test -f /usr/libexec/ld.so; then 14110 hardcode_direct_CXX=yes 14111 hardcode_shlibpath_var_CXX=no 14112 hardcode_direct_absolute_CXX=yes 14113 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14114 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14115 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14116 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14117 export_dynamic_flag_spec_CXX='$wl-E' 14118 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14119 fi 14120 output_verbose_link_cmd=func_echo_all 14121 else 14122 ld_shlibs_CXX=no 14123 fi 14124 ;; 14125 14126 osf3* | osf4* | osf5*) 14127 case $cc_basename in 14128 KCC*) 14129 # Kuck and Associates, Inc. (KAI) C++ Compiler 14130 14131 # KCC will only create a shared library if the output file 14132 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14133 # to its proper name (with version) after linking. 14134 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' 14135 14136 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14137 hardcode_libdir_separator_CXX=: 14138 14139 # Archives containing C++ object files must be created using 14140 # the KAI C++ compiler. 14141 case $host in 14142 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14143 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14144 esac 14145 ;; 14146 RCC*) 14147 # Rational C++ 2.4.1 14148 # FIXME: insert proper C++ library support 14149 ld_shlibs_CXX=no 14150 ;; 14151 cxx*) 14152 case $host in 14153 osf3*) 14154 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14155 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14156 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14157 ;; 14158 *) 14159 allow_undefined_flag_CXX=' -expect_unresolved \*' 14160 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14161 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14162 echo "-hidden">> $lib.exp~ 14163 $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~ 14164 $RM $lib.exp' 14165 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14166 ;; 14167 esac 14168 14169 hardcode_libdir_separator_CXX=: 14170 14171 # Commands to make compiler produce verbose output that lists 14172 # what "hidden" libraries, object files and flags are used when 14173 # linking a shared library. 14174 # 14175 # There doesn't appear to be a way to prevent this compiler from 14176 # explicitly linking system object files so we need to strip them 14177 # from the output so that they don't get included in the library 14178 # dependencies. 14179 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"' 14180 ;; 14181 *) 14182 if test yes,no = "$GXX,$with_gnu_ld"; then 14183 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14184 case $host in 14185 osf3*) 14186 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 14187 ;; 14188 *) 14189 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 14190 ;; 14191 esac 14192 14193 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14194 hardcode_libdir_separator_CXX=: 14195 14196 # Commands to make compiler produce verbose output that lists 14197 # what "hidden" libraries, object files and flags are used when 14198 # linking a shared library. 14199 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 14200 14201 else 14202 # FIXME: insert proper C++ library support 14203 ld_shlibs_CXX=no 14204 fi 14205 ;; 14206 esac 14207 ;; 14208 14209 psos*) 14210 # FIXME: insert proper C++ library support 14211 ld_shlibs_CXX=no 14212 ;; 14213 14214 sunos4*) 14215 case $cc_basename in 14216 CC*) 14217 # Sun C++ 4.x 14218 # FIXME: insert proper C++ library support 14219 ld_shlibs_CXX=no 14220 ;; 14221 lcc*) 14222 # Lucid 14223 # FIXME: insert proper C++ library support 14224 ld_shlibs_CXX=no 14225 ;; 14226 *) 14227 # FIXME: insert proper C++ library support 14228 ld_shlibs_CXX=no 14229 ;; 14230 esac 14231 ;; 14232 14233 solaris*) 14234 case $cc_basename in 14235 CC* | sunCC*) 14236 # Sun C++ 4.2, 5.x and Centerline C++ 14237 archive_cmds_need_lc_CXX=yes 14238 no_undefined_flag_CXX=' -zdefs' 14239 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14240 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14241 $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' 14242 14243 hardcode_libdir_flag_spec_CXX='-R$libdir' 14244 hardcode_shlibpath_var_CXX=no 14245 case $host_os in 14246 solaris2.[0-5] | solaris2.[0-5].*) ;; 14247 *) 14248 # The compiler driver will combine and reorder linker options, 14249 # but understands '-z linker_flag'. 14250 # Supported since Solaris 2.6 (maybe 2.5.1?) 14251 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14252 ;; 14253 esac 14254 link_all_deplibs_CXX=yes 14255 14256 output_verbose_link_cmd='func_echo_all' 14257 14258 # Archives containing C++ object files must be created using 14259 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14260 # necessary to make sure instantiated templates are included 14261 # in the archive. 14262 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14263 ;; 14264 gcx*) 14265 # Green Hills C++ Compiler 14266 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14267 14268 # The C++ compiler must be used to create the archive. 14269 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14270 ;; 14271 *) 14272 # GNU C++ compiler with Solaris linker 14273 if test yes,no = "$GXX,$with_gnu_ld"; then 14274 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14275 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14276 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14277 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14278 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14279 14280 # Commands to make compiler produce verbose output that lists 14281 # what "hidden" libraries, object files and flags are used when 14282 # linking a shared library. 14283 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 14284 else 14285 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14286 # platform. 14287 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14288 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14289 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14290 14291 # Commands to make compiler produce verbose output that lists 14292 # what "hidden" libraries, object files and flags are used when 14293 # linking a shared library. 14294 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 14295 fi 14296 14297 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14298 case $host_os in 14299 solaris2.[0-5] | solaris2.[0-5].*) ;; 14300 *) 14301 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14302 ;; 14303 esac 14304 fi 14305 ;; 14306 esac 14307 ;; 14308 14309 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14310 no_undefined_flag_CXX='$wl-z,text' 14311 archive_cmds_need_lc_CXX=no 14312 hardcode_shlibpath_var_CXX=no 14313 runpath_var='LD_RUN_PATH' 14314 14315 case $cc_basename in 14316 CC*) 14317 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14318 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14319 ;; 14320 *) 14321 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14322 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14323 ;; 14324 esac 14325 ;; 14326 14327 sysv5* | sco3.2v5* | sco5v6*) 14328 # Note: We CANNOT use -z defs as we might desire, because we do not 14329 # link with -lc, and that would cause any symbols used from libc to 14330 # always be unresolved, which means just about no library would 14331 # ever link correctly. If we're not using GNU ld we use -z text 14332 # though, which does catch some bad symbols but isn't as heavy-handed 14333 # as -z defs. 14334 no_undefined_flag_CXX='$wl-z,text' 14335 allow_undefined_flag_CXX='$wl-z,nodefs' 14336 archive_cmds_need_lc_CXX=no 14337 hardcode_shlibpath_var_CXX=no 14338 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14339 hardcode_libdir_separator_CXX=':' 14340 link_all_deplibs_CXX=yes 14341 export_dynamic_flag_spec_CXX='$wl-Bexport' 14342 runpath_var='LD_RUN_PATH' 14343 14344 case $cc_basename in 14345 CC*) 14346 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14347 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14348 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14349 '"$old_archive_cmds_CXX" 14350 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14351 '"$reload_cmds_CXX" 14352 ;; 14353 *) 14354 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14355 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14356 ;; 14357 esac 14358 ;; 14359 14360 tandem*) 14361 case $cc_basename in 14362 NCC*) 14363 # NonStop-UX NCC 3.20 14364 # FIXME: insert proper C++ library support 14365 ld_shlibs_CXX=no 14366 ;; 14367 *) 14368 # FIXME: insert proper C++ library support 14369 ld_shlibs_CXX=no 14370 ;; 14371 esac 14372 ;; 14373 14374 vxworks*) 14375 # FIXME: insert proper C++ library support 14376 ld_shlibs_CXX=no 14377 ;; 14378 14379 *) 14380 # FIXME: insert proper C++ library support 14381 ld_shlibs_CXX=no 14382 ;; 14383 esac 14384 14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14386$as_echo "$ld_shlibs_CXX" >&6; } 14387 test no = "$ld_shlibs_CXX" && can_build_shared=no 14388 14389 GCC_CXX=$GXX 14390 LD_CXX=$LD 14391 14392 ## CAVEAT EMPTOR: 14393 ## There is no encapsulation within the following macros, do not change 14394 ## the running order or otherwise move them around unless you know exactly 14395 ## what you are doing... 14396 # Dependencies to place before and after the object being linked: 14397predep_objects_CXX= 14398postdep_objects_CXX= 14399predeps_CXX= 14400postdeps_CXX= 14401compiler_lib_search_path_CXX= 14402 14403cat > conftest.$ac_ext <<_LT_EOF 14404class Foo 14405{ 14406public: 14407 Foo (void) { a = 0; } 14408private: 14409 int a; 14410}; 14411_LT_EOF 14412 14413 14414_lt_libdeps_save_CFLAGS=$CFLAGS 14415case "$CC $CFLAGS " in #( 14416*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14417*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14418*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14419esac 14420 14421if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14422 (eval $ac_compile) 2>&5 14423 ac_status=$? 14424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14425 test $ac_status = 0; }; then 14426 # Parse the compiler output and extract the necessary 14427 # objects, libraries and library flags. 14428 14429 # Sentinel used to keep track of whether or not we are before 14430 # the conftest object file. 14431 pre_test_object_deps_done=no 14432 14433 for p in `eval "$output_verbose_link_cmd"`; do 14434 case $prev$p in 14435 14436 -L* | -R* | -l*) 14437 # Some compilers place space between "-{L,R}" and the path. 14438 # Remove the space. 14439 if test x-L = "$p" || 14440 test x-R = "$p"; then 14441 prev=$p 14442 continue 14443 fi 14444 14445 # Expand the sysroot to ease extracting the directories later. 14446 if test -z "$prev"; then 14447 case $p in 14448 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14449 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14450 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14451 esac 14452 fi 14453 case $p in 14454 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14455 esac 14456 if test no = "$pre_test_object_deps_done"; then 14457 case $prev in 14458 -L | -R) 14459 # Internal compiler library paths should come after those 14460 # provided the user. The postdeps already come after the 14461 # user supplied libs so there is no need to process them. 14462 if test -z "$compiler_lib_search_path_CXX"; then 14463 compiler_lib_search_path_CXX=$prev$p 14464 else 14465 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14466 fi 14467 ;; 14468 # The "-l" case would never come before the object being 14469 # linked, so don't bother handling this case. 14470 esac 14471 else 14472 if test -z "$postdeps_CXX"; then 14473 postdeps_CXX=$prev$p 14474 else 14475 postdeps_CXX="${postdeps_CXX} $prev$p" 14476 fi 14477 fi 14478 prev= 14479 ;; 14480 14481 *.lto.$objext) ;; # Ignore GCC LTO objects 14482 *.$objext) 14483 # This assumes that the test object file only shows up 14484 # once in the compiler output. 14485 if test "$p" = "conftest.$objext"; then 14486 pre_test_object_deps_done=yes 14487 continue 14488 fi 14489 14490 if test no = "$pre_test_object_deps_done"; then 14491 if test -z "$predep_objects_CXX"; then 14492 predep_objects_CXX=$p 14493 else 14494 predep_objects_CXX="$predep_objects_CXX $p" 14495 fi 14496 else 14497 if test -z "$postdep_objects_CXX"; then 14498 postdep_objects_CXX=$p 14499 else 14500 postdep_objects_CXX="$postdep_objects_CXX $p" 14501 fi 14502 fi 14503 ;; 14504 14505 *) ;; # Ignore the rest. 14506 14507 esac 14508 done 14509 14510 # Clean up. 14511 rm -f a.out a.exe 14512else 14513 echo "libtool.m4: error: problem compiling CXX test program" 14514fi 14515 14516$RM -f confest.$objext 14517CFLAGS=$_lt_libdeps_save_CFLAGS 14518 14519# PORTME: override above test on systems where it is broken 14520case $host_os in 14521interix[3-9]*) 14522 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14523 # hack all around it, let's just trust "g++" to DTRT. 14524 predep_objects_CXX= 14525 postdep_objects_CXX= 14526 postdeps_CXX= 14527 ;; 14528esac 14529 14530 14531case " $postdeps_CXX " in 14532*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14533esac 14534 compiler_lib_search_dirs_CXX= 14535if test -n "${compiler_lib_search_path_CXX}"; then 14536 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14537fi 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 lt_prog_compiler_wl_CXX= 14570lt_prog_compiler_pic_CXX= 14571lt_prog_compiler_static_CXX= 14572 14573 14574 # C++ specific cases for pic, static, wl, etc. 14575 if test yes = "$GXX"; then 14576 lt_prog_compiler_wl_CXX='-Wl,' 14577 lt_prog_compiler_static_CXX='-static' 14578 14579 case $host_os in 14580 aix*) 14581 # All AIX code is PIC. 14582 if test ia64 = "$host_cpu"; then 14583 # AIX 5 now supports IA64 processor 14584 lt_prog_compiler_static_CXX='-Bstatic' 14585 fi 14586 lt_prog_compiler_pic_CXX='-fPIC' 14587 ;; 14588 14589 amigaos*) 14590 case $host_cpu in 14591 powerpc) 14592 # see comment about AmigaOS4 .so support 14593 lt_prog_compiler_pic_CXX='-fPIC' 14594 ;; 14595 m68k) 14596 # FIXME: we need at least 68020 code to build shared libraries, but 14597 # adding the '-m68020' flag to GCC prevents building anything better, 14598 # like '-m68040'. 14599 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14600 ;; 14601 esac 14602 ;; 14603 14604 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14605 # PIC is the default for these OSes. 14606 ;; 14607 mingw* | cygwin* | os2* | pw32* | cegcc*) 14608 # This hack is so that the source file can tell whether it is being 14609 # built for inclusion in a dll (and should export symbols for example). 14610 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14611 # (--disable-auto-import) libraries 14612 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14613 case $host_os in 14614 os2*) 14615 lt_prog_compiler_static_CXX='$wl-static' 14616 ;; 14617 esac 14618 ;; 14619 darwin* | rhapsody*) 14620 # PIC is the default on this platform 14621 # Common symbols not allowed in MH_DYLIB files 14622 lt_prog_compiler_pic_CXX='-fno-common' 14623 ;; 14624 *djgpp*) 14625 # DJGPP does not support shared libraries at all 14626 lt_prog_compiler_pic_CXX= 14627 ;; 14628 haiku*) 14629 # PIC is the default for Haiku. 14630 # The "-static" flag exists, but is broken. 14631 lt_prog_compiler_static_CXX= 14632 ;; 14633 interix[3-9]*) 14634 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14635 # Instead, we relocate shared libraries at runtime. 14636 ;; 14637 sysv4*MP*) 14638 if test -d /usr/nec; then 14639 lt_prog_compiler_pic_CXX=-Kconform_pic 14640 fi 14641 ;; 14642 hpux*) 14643 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14644 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14645 # sets the default TLS model and affects inlining. 14646 case $host_cpu in 14647 hppa*64*) 14648 ;; 14649 *) 14650 lt_prog_compiler_pic_CXX='-fPIC' 14651 ;; 14652 esac 14653 ;; 14654 *qnx* | *nto*) 14655 # QNX uses GNU C++, but need to define -shared option too, otherwise 14656 # it will coredump. 14657 lt_prog_compiler_pic_CXX='-fPIC -shared' 14658 ;; 14659 *) 14660 lt_prog_compiler_pic_CXX='-fPIC' 14661 ;; 14662 esac 14663 else 14664 case $host_os in 14665 aix[4-9]*) 14666 # All AIX code is PIC. 14667 if test ia64 = "$host_cpu"; then 14668 # AIX 5 now supports IA64 processor 14669 lt_prog_compiler_static_CXX='-Bstatic' 14670 else 14671 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14672 fi 14673 ;; 14674 chorus*) 14675 case $cc_basename in 14676 cxch68*) 14677 # Green Hills C++ Compiler 14678 # _LT_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" 14679 ;; 14680 esac 14681 ;; 14682 mingw* | cygwin* | os2* | pw32* | cegcc*) 14683 # This hack is so that the source file can tell whether it is being 14684 # built for inclusion in a dll (and should export symbols for example). 14685 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14686 ;; 14687 dgux*) 14688 case $cc_basename in 14689 ec++*) 14690 lt_prog_compiler_pic_CXX='-KPIC' 14691 ;; 14692 ghcx*) 14693 # Green Hills C++ Compiler 14694 lt_prog_compiler_pic_CXX='-pic' 14695 ;; 14696 *) 14697 ;; 14698 esac 14699 ;; 14700 freebsd* | dragonfly*) 14701 # FreeBSD uses GNU C++ 14702 ;; 14703 hpux9* | hpux10* | hpux11*) 14704 case $cc_basename in 14705 CC*) 14706 lt_prog_compiler_wl_CXX='-Wl,' 14707 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14708 if test ia64 != "$host_cpu"; then 14709 lt_prog_compiler_pic_CXX='+Z' 14710 fi 14711 ;; 14712 aCC*) 14713 lt_prog_compiler_wl_CXX='-Wl,' 14714 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14715 case $host_cpu in 14716 hppa*64*|ia64*) 14717 # +Z the default 14718 ;; 14719 *) 14720 lt_prog_compiler_pic_CXX='+Z' 14721 ;; 14722 esac 14723 ;; 14724 *) 14725 ;; 14726 esac 14727 ;; 14728 interix*) 14729 # This is c89, which is MS Visual C++ (no shared libs) 14730 # Anyone wants to do a port? 14731 ;; 14732 irix5* | irix6* | nonstopux*) 14733 case $cc_basename in 14734 CC*) 14735 lt_prog_compiler_wl_CXX='-Wl,' 14736 lt_prog_compiler_static_CXX='-non_shared' 14737 # CC pic flag -KPIC is the default. 14738 ;; 14739 *) 14740 ;; 14741 esac 14742 ;; 14743 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14744 case $cc_basename in 14745 KCC*) 14746 # KAI C++ Compiler 14747 lt_prog_compiler_wl_CXX='--backend -Wl,' 14748 lt_prog_compiler_pic_CXX='-fPIC' 14749 ;; 14750 ecpc* ) 14751 # old Intel C++ for x86_64, which still supported -KPIC. 14752 lt_prog_compiler_wl_CXX='-Wl,' 14753 lt_prog_compiler_pic_CXX='-KPIC' 14754 lt_prog_compiler_static_CXX='-static' 14755 ;; 14756 icpc* ) 14757 # Intel C++, used to be incompatible with GCC. 14758 # ICC 10 doesn't accept -KPIC any more. 14759 lt_prog_compiler_wl_CXX='-Wl,' 14760 lt_prog_compiler_pic_CXX='-fPIC' 14761 lt_prog_compiler_static_CXX='-static' 14762 ;; 14763 pgCC* | pgcpp*) 14764 # Portland Group C++ compiler 14765 lt_prog_compiler_wl_CXX='-Wl,' 14766 lt_prog_compiler_pic_CXX='-fpic' 14767 lt_prog_compiler_static_CXX='-Bstatic' 14768 ;; 14769 cxx*) 14770 # Compaq C++ 14771 # Make sure the PIC flag is empty. It appears that all Alpha 14772 # Linux and Compaq Tru64 Unix objects are PIC. 14773 lt_prog_compiler_pic_CXX= 14774 lt_prog_compiler_static_CXX='-non_shared' 14775 ;; 14776 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14777 # IBM XL 8.0, 9.0 on PPC and BlueGene 14778 lt_prog_compiler_wl_CXX='-Wl,' 14779 lt_prog_compiler_pic_CXX='-qpic' 14780 lt_prog_compiler_static_CXX='-qstaticlink' 14781 ;; 14782 *) 14783 case `$CC -V 2>&1 | sed 5q` in 14784 *Sun\ C*) 14785 # Sun C++ 5.9 14786 lt_prog_compiler_pic_CXX='-KPIC' 14787 lt_prog_compiler_static_CXX='-Bstatic' 14788 lt_prog_compiler_wl_CXX='-Qoption ld ' 14789 ;; 14790 esac 14791 ;; 14792 esac 14793 ;; 14794 lynxos*) 14795 ;; 14796 m88k*) 14797 ;; 14798 mvs*) 14799 case $cc_basename in 14800 cxx*) 14801 lt_prog_compiler_pic_CXX='-W c,exportall' 14802 ;; 14803 *) 14804 ;; 14805 esac 14806 ;; 14807 netbsd* | netbsdelf*-gnu) 14808 ;; 14809 *qnx* | *nto*) 14810 # QNX uses GNU C++, but need to define -shared option too, otherwise 14811 # it will coredump. 14812 lt_prog_compiler_pic_CXX='-fPIC -shared' 14813 ;; 14814 osf3* | osf4* | osf5*) 14815 case $cc_basename in 14816 KCC*) 14817 lt_prog_compiler_wl_CXX='--backend -Wl,' 14818 ;; 14819 RCC*) 14820 # Rational C++ 2.4.1 14821 lt_prog_compiler_pic_CXX='-pic' 14822 ;; 14823 cxx*) 14824 # Digital/Compaq C++ 14825 lt_prog_compiler_wl_CXX='-Wl,' 14826 # Make sure the PIC flag is empty. It appears that all Alpha 14827 # Linux and Compaq Tru64 Unix objects are PIC. 14828 lt_prog_compiler_pic_CXX= 14829 lt_prog_compiler_static_CXX='-non_shared' 14830 ;; 14831 *) 14832 ;; 14833 esac 14834 ;; 14835 psos*) 14836 ;; 14837 solaris*) 14838 case $cc_basename in 14839 CC* | sunCC*) 14840 # Sun C++ 4.2, 5.x and Centerline C++ 14841 lt_prog_compiler_pic_CXX='-KPIC' 14842 lt_prog_compiler_static_CXX='-Bstatic' 14843 lt_prog_compiler_wl_CXX='-Qoption ld ' 14844 ;; 14845 gcx*) 14846 # Green Hills C++ Compiler 14847 lt_prog_compiler_pic_CXX='-PIC' 14848 ;; 14849 *) 14850 ;; 14851 esac 14852 ;; 14853 sunos4*) 14854 case $cc_basename in 14855 CC*) 14856 # Sun C++ 4.x 14857 lt_prog_compiler_pic_CXX='-pic' 14858 lt_prog_compiler_static_CXX='-Bstatic' 14859 ;; 14860 lcc*) 14861 # Lucid 14862 lt_prog_compiler_pic_CXX='-pic' 14863 ;; 14864 *) 14865 ;; 14866 esac 14867 ;; 14868 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14869 case $cc_basename in 14870 CC*) 14871 lt_prog_compiler_wl_CXX='-Wl,' 14872 lt_prog_compiler_pic_CXX='-KPIC' 14873 lt_prog_compiler_static_CXX='-Bstatic' 14874 ;; 14875 esac 14876 ;; 14877 tandem*) 14878 case $cc_basename in 14879 NCC*) 14880 # NonStop-UX NCC 3.20 14881 lt_prog_compiler_pic_CXX='-KPIC' 14882 ;; 14883 *) 14884 ;; 14885 esac 14886 ;; 14887 vxworks*) 14888 ;; 14889 *) 14890 lt_prog_compiler_can_build_shared_CXX=no 14891 ;; 14892 esac 14893 fi 14894 14895case $host_os in 14896 # For platforms that do not support PIC, -DPIC is meaningless: 14897 *djgpp*) 14898 lt_prog_compiler_pic_CXX= 14899 ;; 14900 *) 14901 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14902 ;; 14903esac 14904 14905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14906$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14907if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14908 $as_echo_n "(cached) " >&6 14909else 14910 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14911fi 14912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14913$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14914lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14915 14916# 14917# Check to make sure the PIC flag actually works. 14918# 14919if test -n "$lt_prog_compiler_pic_CXX"; then 14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14921$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14922if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14923 $as_echo_n "(cached) " >&6 14924else 14925 lt_cv_prog_compiler_pic_works_CXX=no 14926 ac_outfile=conftest.$ac_objext 14927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14928 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 14929 # Insert the option either (1) after the last *FLAGS variable, or 14930 # (2) before a word containing "conftest.", or (3) at the end. 14931 # Note that $ac_compile itself does not contain backslashes and begins 14932 # with a dollar sign (not a hyphen), so the echo should work correctly. 14933 # The option is referenced via a variable to avoid confusing sed. 14934 lt_compile=`echo "$ac_compile" | $SED \ 14935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14937 -e 's:$: $lt_compiler_flag:'` 14938 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14939 (eval "$lt_compile" 2>conftest.err) 14940 ac_status=$? 14941 cat conftest.err >&5 14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14943 if (exit $ac_status) && test -s "$ac_outfile"; then 14944 # The compiler can only warn and ignore the option if not recognized 14945 # So say no if there are warnings other than the usual output. 14946 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14947 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14948 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14949 lt_cv_prog_compiler_pic_works_CXX=yes 14950 fi 14951 fi 14952 $RM conftest* 14953 14954fi 14955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14956$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14957 14958if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 14959 case $lt_prog_compiler_pic_CXX in 14960 "" | " "*) ;; 14961 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14962 esac 14963else 14964 lt_prog_compiler_pic_CXX= 14965 lt_prog_compiler_can_build_shared_CXX=no 14966fi 14967 14968fi 14969 14970 14971 14972 14973 14974# 14975# Check to make sure the static flag actually works. 14976# 14977wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14979$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14980if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14981 $as_echo_n "(cached) " >&6 14982else 14983 lt_cv_prog_compiler_static_works_CXX=no 14984 save_LDFLAGS=$LDFLAGS 14985 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14986 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14987 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14988 # The linker can only warn and ignore the option if not recognized 14989 # So say no if there are warnings 14990 if test -s conftest.err; then 14991 # Append any errors to the config.log. 14992 cat conftest.err 1>&5 14993 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14995 if diff conftest.exp conftest.er2 >/dev/null; then 14996 lt_cv_prog_compiler_static_works_CXX=yes 14997 fi 14998 else 14999 lt_cv_prog_compiler_static_works_CXX=yes 15000 fi 15001 fi 15002 $RM -r conftest* 15003 LDFLAGS=$save_LDFLAGS 15004 15005fi 15006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15007$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15008 15009if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15010 : 15011else 15012 lt_prog_compiler_static_CXX= 15013fi 15014 15015 15016 15017 15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15019$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15020if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15021 $as_echo_n "(cached) " >&6 15022else 15023 lt_cv_prog_compiler_c_o_CXX=no 15024 $RM -r conftest 2>/dev/null 15025 mkdir conftest 15026 cd conftest 15027 mkdir out 15028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15029 15030 lt_compiler_flag="-o out/conftest2.$ac_objext" 15031 # Insert the option either (1) after the last *FLAGS variable, or 15032 # (2) before a word containing "conftest.", or (3) at the end. 15033 # Note that $ac_compile itself does not contain backslashes and begins 15034 # with a dollar sign (not a hyphen), so the echo should work correctly. 15035 lt_compile=`echo "$ac_compile" | $SED \ 15036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15038 -e 's:$: $lt_compiler_flag:'` 15039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15040 (eval "$lt_compile" 2>out/conftest.err) 15041 ac_status=$? 15042 cat out/conftest.err >&5 15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15044 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15045 then 15046 # The compiler can only warn and ignore the option if not recognized 15047 # So say no if there are warnings 15048 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15049 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15050 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15051 lt_cv_prog_compiler_c_o_CXX=yes 15052 fi 15053 fi 15054 chmod u+w . 2>&5 15055 $RM conftest* 15056 # SGI C++ compiler will create directory out/ii_files/ for 15057 # template instantiation 15058 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15059 $RM out/* && rmdir out 15060 cd .. 15061 $RM -r conftest 15062 $RM conftest* 15063 15064fi 15065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15066$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15067 15068 15069 15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15071$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15072if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15073 $as_echo_n "(cached) " >&6 15074else 15075 lt_cv_prog_compiler_c_o_CXX=no 15076 $RM -r conftest 2>/dev/null 15077 mkdir conftest 15078 cd conftest 15079 mkdir out 15080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15081 15082 lt_compiler_flag="-o out/conftest2.$ac_objext" 15083 # Insert the option either (1) after the last *FLAGS variable, or 15084 # (2) before a word containing "conftest.", or (3) at the end. 15085 # Note that $ac_compile itself does not contain backslashes and begins 15086 # with a dollar sign (not a hyphen), so the echo should work correctly. 15087 lt_compile=`echo "$ac_compile" | $SED \ 15088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15090 -e 's:$: $lt_compiler_flag:'` 15091 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15092 (eval "$lt_compile" 2>out/conftest.err) 15093 ac_status=$? 15094 cat out/conftest.err >&5 15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15096 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15097 then 15098 # The compiler can only warn and ignore the option if not recognized 15099 # So say no if there are warnings 15100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15101 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15102 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15103 lt_cv_prog_compiler_c_o_CXX=yes 15104 fi 15105 fi 15106 chmod u+w . 2>&5 15107 $RM conftest* 15108 # SGI C++ compiler will create directory out/ii_files/ for 15109 # template instantiation 15110 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15111 $RM out/* && rmdir out 15112 cd .. 15113 $RM -r conftest 15114 $RM conftest* 15115 15116fi 15117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15118$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15119 15120 15121 15122 15123hard_links=nottested 15124if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15125 # do not overwrite the value of need_locks provided by the user 15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15127$as_echo_n "checking if we can lock with hard links... " >&6; } 15128 hard_links=yes 15129 $RM conftest* 15130 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15131 touch conftest.a 15132 ln conftest.a conftest.b 2>&5 || hard_links=no 15133 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15135$as_echo "$hard_links" >&6; } 15136 if test no = "$hard_links"; then 15137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15138$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15139 need_locks=warn 15140 fi 15141else 15142 need_locks=no 15143fi 15144 15145 15146 15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15148$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15149 15150 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15151 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15152 case $host_os in 15153 aix[4-9]*) 15154 # If we're using GNU nm, then we don't want the "-C" option. 15155 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15156 # Without the "-l" option, or with the "-B" option, AIX nm treats 15157 # weak defined symbols like other global defined symbols, whereas 15158 # GNU nm marks them as "W". 15159 # While the 'weak' keyword is ignored in the Export File, we need 15160 # it in the Import File for the 'aix-soname' feature, so we have 15161 # to replace the "-B" option with "-P" for AIX nm. 15162 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15163 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 15164 else 15165 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 15166 fi 15167 ;; 15168 pw32*) 15169 export_symbols_cmds_CXX=$ltdll_cmds 15170 ;; 15171 cygwin* | mingw* | cegcc*) 15172 case $cc_basename in 15173 cl*) 15174 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15175 ;; 15176 *) 15177 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 15178 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15179 ;; 15180 esac 15181 ;; 15182 linux* | k*bsd*-gnu | gnu*) 15183 link_all_deplibs_CXX=no 15184 ;; 15185 *) 15186 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15187 ;; 15188 esac 15189 15190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15191$as_echo "$ld_shlibs_CXX" >&6; } 15192test no = "$ld_shlibs_CXX" && can_build_shared=no 15193 15194with_gnu_ld_CXX=$with_gnu_ld 15195 15196 15197 15198 15199 15200 15201# 15202# Do we need to explicitly link libc? 15203# 15204case "x$archive_cmds_need_lc_CXX" in 15205x|xyes) 15206 # Assume -lc should be added 15207 archive_cmds_need_lc_CXX=yes 15208 15209 if test yes,yes = "$GCC,$enable_shared"; then 15210 case $archive_cmds_CXX in 15211 *'~'*) 15212 # FIXME: we may have to deal with multi-command sequences. 15213 ;; 15214 '$CC '*) 15215 # Test whether the compiler implicitly links with -lc since on some 15216 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15217 # to ld, don't add -lc before -lgcc. 15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15219$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15220if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15221 $as_echo_n "(cached) " >&6 15222else 15223 $RM conftest* 15224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15225 15226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15227 (eval $ac_compile) 2>&5 15228 ac_status=$? 15229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15230 test $ac_status = 0; } 2>conftest.err; then 15231 soname=conftest 15232 lib=conftest 15233 libobjs=conftest.$ac_objext 15234 deplibs= 15235 wl=$lt_prog_compiler_wl_CXX 15236 pic_flag=$lt_prog_compiler_pic_CXX 15237 compiler_flags=-v 15238 linker_flags=-v 15239 verstring= 15240 output_objdir=. 15241 libname=conftest 15242 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15243 allow_undefined_flag_CXX= 15244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15245 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15246 ac_status=$? 15247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15248 test $ac_status = 0; } 15249 then 15250 lt_cv_archive_cmds_need_lc_CXX=no 15251 else 15252 lt_cv_archive_cmds_need_lc_CXX=yes 15253 fi 15254 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15255 else 15256 cat conftest.err 1>&5 15257 fi 15258 $RM conftest* 15259 15260fi 15261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15262$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15263 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15264 ;; 15265 esac 15266 fi 15267 ;; 15268esac 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15332$as_echo_n "checking dynamic linker characteristics... " >&6; } 15333 15334library_names_spec= 15335libname_spec='lib$name' 15336soname_spec= 15337shrext_cmds=.so 15338postinstall_cmds= 15339postuninstall_cmds= 15340finish_cmds= 15341finish_eval= 15342shlibpath_var= 15343shlibpath_overrides_runpath=unknown 15344version_type=none 15345dynamic_linker="$host_os ld.so" 15346sys_lib_dlsearch_path_spec="/lib /usr/lib" 15347need_lib_prefix=unknown 15348hardcode_into_libs=no 15349 15350# when you set need_version to no, make sure it does not cause -set_version 15351# flags to be left without arguments 15352need_version=unknown 15353 15354 15355 15356case $host_os in 15357aix3*) 15358 version_type=linux # correct to gnu/linux during the next big refactor 15359 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15360 shlibpath_var=LIBPATH 15361 15362 # AIX 3 has no versioning support, so we append a major version to the name. 15363 soname_spec='$libname$release$shared_ext$major' 15364 ;; 15365 15366aix[4-9]*) 15367 version_type=linux # correct to gnu/linux during the next big refactor 15368 need_lib_prefix=no 15369 need_version=no 15370 hardcode_into_libs=yes 15371 if test ia64 = "$host_cpu"; then 15372 # AIX 5 supports IA64 15373 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15374 shlibpath_var=LD_LIBRARY_PATH 15375 else 15376 # With GCC up to 2.95.x, collect2 would create an import file 15377 # for dependence libraries. The import file would start with 15378 # the line '#! .'. This would cause the generated library to 15379 # depend on '.', always an invalid library. This was fixed in 15380 # development snapshots of GCC prior to 3.0. 15381 case $host_os in 15382 aix4 | aix4.[01] | aix4.[01].*) 15383 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15384 echo ' yes ' 15385 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15386 : 15387 else 15388 can_build_shared=no 15389 fi 15390 ;; 15391 esac 15392 # Using Import Files as archive members, it is possible to support 15393 # filename-based versioning of shared library archives on AIX. While 15394 # this would work for both with and without runtime linking, it will 15395 # prevent static linking of such archives. So we do filename-based 15396 # shared library versioning with .so extension only, which is used 15397 # when both runtime linking and shared linking is enabled. 15398 # Unfortunately, runtime linking may impact performance, so we do 15399 # not want this to be the default eventually. Also, we use the 15400 # versioned .so libs for executables only if there is the -brtl 15401 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15402 # To allow for filename-based versioning support, we need to create 15403 # libNAME.so.V as an archive file, containing: 15404 # *) an Import File, referring to the versioned filename of the 15405 # archive as well as the shared archive member, telling the 15406 # bitwidth (32 or 64) of that shared object, and providing the 15407 # list of exported symbols of that shared object, eventually 15408 # decorated with the 'weak' keyword 15409 # *) the shared object with the F_LOADONLY flag set, to really avoid 15410 # it being seen by the linker. 15411 # At run time we better use the real file rather than another symlink, 15412 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15413 15414 case $with_aix_soname,$aix_use_runtimelinking in 15415 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15416 # soname into executable. Probably we can add versioning support to 15417 # collect2, so additional links can be useful in future. 15418 aix,yes) # traditional libtool 15419 dynamic_linker='AIX unversionable lib.so' 15420 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15421 # instead of lib<name>.a to let people know that these are not 15422 # typical AIX shared libraries. 15423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15424 ;; 15425 aix,no) # traditional AIX only 15426 dynamic_linker='AIX lib.a(lib.so.V)' 15427 # We preserve .a as extension for shared libraries through AIX4.2 15428 # and later when we are not doing run time linking. 15429 library_names_spec='$libname$release.a $libname.a' 15430 soname_spec='$libname$release$shared_ext$major' 15431 ;; 15432 svr4,*) # full svr4 only 15433 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15434 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15435 # We do not specify a path in Import Files, so LIBPATH fires. 15436 shlibpath_overrides_runpath=yes 15437 ;; 15438 *,yes) # both, prefer svr4 15439 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15440 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15441 # unpreferred sharedlib libNAME.a needs extra handling 15442 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 15443 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 15444 # We do not specify a path in Import Files, so LIBPATH fires. 15445 shlibpath_overrides_runpath=yes 15446 ;; 15447 *,no) # both, prefer aix 15448 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15449 library_names_spec='$libname$release.a $libname.a' 15450 soname_spec='$libname$release$shared_ext$major' 15451 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15452 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 15453 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 15454 ;; 15455 esac 15456 shlibpath_var=LIBPATH 15457 fi 15458 ;; 15459 15460amigaos*) 15461 case $host_cpu in 15462 powerpc) 15463 # Since July 2007 AmigaOS4 officially supports .so libraries. 15464 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15466 ;; 15467 m68k) 15468 library_names_spec='$libname.ixlibrary $libname.a' 15469 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15470 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 15471 ;; 15472 esac 15473 ;; 15474 15475beos*) 15476 library_names_spec='$libname$shared_ext' 15477 dynamic_linker="$host_os ld.so" 15478 shlibpath_var=LIBRARY_PATH 15479 ;; 15480 15481bsdi[45]*) 15482 version_type=linux # correct to gnu/linux during the next big refactor 15483 need_version=no 15484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15485 soname_spec='$libname$release$shared_ext$major' 15486 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15487 shlibpath_var=LD_LIBRARY_PATH 15488 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15489 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15490 # the default ld.so.conf also contains /usr/contrib/lib and 15491 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15492 # libtool to hard-code these into programs 15493 ;; 15494 15495cygwin* | mingw* | pw32* | cegcc*) 15496 version_type=windows 15497 shrext_cmds=.dll 15498 need_version=no 15499 need_lib_prefix=no 15500 15501 case $GCC,$cc_basename in 15502 yes,*) 15503 # gcc 15504 library_names_spec='$libname.dll.a' 15505 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15506 postinstall_cmds='base_file=`basename \$file`~ 15507 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15508 dldir=$destdir/`dirname \$dlpath`~ 15509 test -d \$dldir || mkdir -p \$dldir~ 15510 $install_prog $dir/$dlname \$dldir/$dlname~ 15511 chmod a+x \$dldir/$dlname~ 15512 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15513 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15514 fi' 15515 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15516 dlpath=$dir/\$dldll~ 15517 $RM \$dlpath' 15518 shlibpath_overrides_runpath=yes 15519 15520 case $host_os in 15521 cygwin*) 15522 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15523 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15524 15525 ;; 15526 mingw* | cegcc*) 15527 # MinGW DLLs use traditional 'lib' prefix 15528 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15529 ;; 15530 pw32*) 15531 # pw32 DLLs use 'pw' prefix rather than 'lib' 15532 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15533 ;; 15534 esac 15535 dynamic_linker='Win32 ld.exe' 15536 ;; 15537 15538 *,cl*) 15539 # Native MSVC 15540 libname_spec='$name' 15541 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15542 library_names_spec='$libname.dll.lib' 15543 15544 case $build_os in 15545 mingw*) 15546 sys_lib_search_path_spec= 15547 lt_save_ifs=$IFS 15548 IFS=';' 15549 for lt_path in $LIB 15550 do 15551 IFS=$lt_save_ifs 15552 # Let DOS variable expansion print the short 8.3 style file name. 15553 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15554 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15555 done 15556 IFS=$lt_save_ifs 15557 # Convert to MSYS style. 15558 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15559 ;; 15560 cygwin*) 15561 # Convert to unix form, then to dos form, then back to unix form 15562 # but this time dos style (no spaces!) so that the unix form looks 15563 # like /cygdrive/c/PROGRA~1:/cygdr... 15564 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15565 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15566 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15567 ;; 15568 *) 15569 sys_lib_search_path_spec=$LIB 15570 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15571 # It is most probably a Windows format PATH. 15572 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15573 else 15574 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15575 fi 15576 # FIXME: find the short name or the path components, as spaces are 15577 # common. (e.g. "Program Files" -> "PROGRA~1") 15578 ;; 15579 esac 15580 15581 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15582 postinstall_cmds='base_file=`basename \$file`~ 15583 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15584 dldir=$destdir/`dirname \$dlpath`~ 15585 test -d \$dldir || mkdir -p \$dldir~ 15586 $install_prog $dir/$dlname \$dldir/$dlname' 15587 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15588 dlpath=$dir/\$dldll~ 15589 $RM \$dlpath' 15590 shlibpath_overrides_runpath=yes 15591 dynamic_linker='Win32 link.exe' 15592 ;; 15593 15594 *) 15595 # Assume MSVC wrapper 15596 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15597 dynamic_linker='Win32 ld.exe' 15598 ;; 15599 esac 15600 # FIXME: first we should search . and the directory the executable is in 15601 shlibpath_var=PATH 15602 ;; 15603 15604darwin* | rhapsody*) 15605 dynamic_linker="$host_os dyld" 15606 version_type=darwin 15607 need_lib_prefix=no 15608 need_version=no 15609 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15610 soname_spec='$libname$release$major$shared_ext' 15611 shlibpath_overrides_runpath=yes 15612 shlibpath_var=DYLD_LIBRARY_PATH 15613 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15614 15615 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15616 ;; 15617 15618dgux*) 15619 version_type=linux # correct to gnu/linux during the next big refactor 15620 need_lib_prefix=no 15621 need_version=no 15622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15623 soname_spec='$libname$release$shared_ext$major' 15624 shlibpath_var=LD_LIBRARY_PATH 15625 ;; 15626 15627freebsd* | dragonfly*) 15628 # DragonFly does not have aout. When/if they implement a new 15629 # versioning mechanism, adjust this. 15630 if test -x /usr/bin/objformat; then 15631 objformat=`/usr/bin/objformat` 15632 else 15633 case $host_os in 15634 freebsd[23].*) objformat=aout ;; 15635 *) objformat=elf ;; 15636 esac 15637 fi 15638 version_type=freebsd-$objformat 15639 case $version_type in 15640 freebsd-elf*) 15641 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15642 soname_spec='$libname$release$shared_ext$major' 15643 need_version=no 15644 need_lib_prefix=no 15645 ;; 15646 freebsd-*) 15647 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15648 need_version=yes 15649 ;; 15650 esac 15651 shlibpath_var=LD_LIBRARY_PATH 15652 case $host_os in 15653 freebsd2.*) 15654 shlibpath_overrides_runpath=yes 15655 ;; 15656 freebsd3.[01]* | freebsdelf3.[01]*) 15657 shlibpath_overrides_runpath=yes 15658 hardcode_into_libs=yes 15659 ;; 15660 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15661 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15662 shlibpath_overrides_runpath=no 15663 hardcode_into_libs=yes 15664 ;; 15665 *) # from 4.6 on, and DragonFly 15666 shlibpath_overrides_runpath=yes 15667 hardcode_into_libs=yes 15668 ;; 15669 esac 15670 ;; 15671 15672haiku*) 15673 version_type=linux # correct to gnu/linux during the next big refactor 15674 need_lib_prefix=no 15675 need_version=no 15676 dynamic_linker="$host_os runtime_loader" 15677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15678 soname_spec='$libname$release$shared_ext$major' 15679 shlibpath_var=LIBRARY_PATH 15680 shlibpath_overrides_runpath=no 15681 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15682 hardcode_into_libs=yes 15683 ;; 15684 15685hpux9* | hpux10* | hpux11*) 15686 # Give a soname corresponding to the major version so that dld.sl refuses to 15687 # link against other versions. 15688 version_type=sunos 15689 need_lib_prefix=no 15690 need_version=no 15691 case $host_cpu in 15692 ia64*) 15693 shrext_cmds='.so' 15694 hardcode_into_libs=yes 15695 dynamic_linker="$host_os dld.so" 15696 shlibpath_var=LD_LIBRARY_PATH 15697 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15699 soname_spec='$libname$release$shared_ext$major' 15700 if test 32 = "$HPUX_IA64_MODE"; then 15701 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15702 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15703 else 15704 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15705 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15706 fi 15707 ;; 15708 hppa*64*) 15709 shrext_cmds='.sl' 15710 hardcode_into_libs=yes 15711 dynamic_linker="$host_os dld.sl" 15712 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15713 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15715 soname_spec='$libname$release$shared_ext$major' 15716 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15718 ;; 15719 *) 15720 shrext_cmds='.sl' 15721 dynamic_linker="$host_os dld.sl" 15722 shlibpath_var=SHLIB_PATH 15723 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15724 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15725 soname_spec='$libname$release$shared_ext$major' 15726 ;; 15727 esac 15728 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15729 postinstall_cmds='chmod 555 $lib' 15730 # or fails outright, so override atomically: 15731 install_override_mode=555 15732 ;; 15733 15734interix[3-9]*) 15735 version_type=linux # correct to gnu/linux during the next big refactor 15736 need_lib_prefix=no 15737 need_version=no 15738 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15739 soname_spec='$libname$release$shared_ext$major' 15740 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15741 shlibpath_var=LD_LIBRARY_PATH 15742 shlibpath_overrides_runpath=no 15743 hardcode_into_libs=yes 15744 ;; 15745 15746irix5* | irix6* | nonstopux*) 15747 case $host_os in 15748 nonstopux*) version_type=nonstopux ;; 15749 *) 15750 if test yes = "$lt_cv_prog_gnu_ld"; then 15751 version_type=linux # correct to gnu/linux during the next big refactor 15752 else 15753 version_type=irix 15754 fi ;; 15755 esac 15756 need_lib_prefix=no 15757 need_version=no 15758 soname_spec='$libname$release$shared_ext$major' 15759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15760 case $host_os in 15761 irix5* | nonstopux*) 15762 libsuff= shlibsuff= 15763 ;; 15764 *) 15765 case $LD in # libtool.m4 will add one of these switches to LD 15766 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15767 libsuff= shlibsuff= libmagic=32-bit;; 15768 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15769 libsuff=32 shlibsuff=N32 libmagic=N32;; 15770 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15771 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15772 *) libsuff= shlibsuff= libmagic=never-match;; 15773 esac 15774 ;; 15775 esac 15776 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15777 shlibpath_overrides_runpath=no 15778 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15779 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15780 hardcode_into_libs=yes 15781 ;; 15782 15783# No shared lib support for Linux oldld, aout, or coff. 15784linux*oldld* | linux*aout* | linux*coff*) 15785 dynamic_linker=no 15786 ;; 15787 15788linux*android*) 15789 version_type=none # Android doesn't support versioned libraries. 15790 need_lib_prefix=no 15791 need_version=no 15792 library_names_spec='$libname$release$shared_ext' 15793 soname_spec='$libname$release$shared_ext' 15794 finish_cmds= 15795 shlibpath_var=LD_LIBRARY_PATH 15796 shlibpath_overrides_runpath=yes 15797 15798 # This implies no fast_install, which is unacceptable. 15799 # Some rework will be needed to allow for fast_install 15800 # before this can be enabled. 15801 hardcode_into_libs=yes 15802 15803 dynamic_linker='Android linker' 15804 # Don't embed -rpath directories since the linker doesn't support them. 15805 hardcode_libdir_flag_spec_CXX='-L$libdir' 15806 ;; 15807 15808# This must be glibc/ELF. 15809linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15810 version_type=linux # correct to gnu/linux during the next big refactor 15811 need_lib_prefix=no 15812 need_version=no 15813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15814 soname_spec='$libname$release$shared_ext$major' 15815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15816 shlibpath_var=LD_LIBRARY_PATH 15817 shlibpath_overrides_runpath=no 15818 15819 # Some binutils ld are patched to set DT_RUNPATH 15820 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15821 $as_echo_n "(cached) " >&6 15822else 15823 lt_cv_shlibpath_overrides_runpath=no 15824 save_LDFLAGS=$LDFLAGS 15825 save_libdir=$libdir 15826 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15827 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15829/* end confdefs.h. */ 15830 15831int 15832main () 15833{ 15834 15835 ; 15836 return 0; 15837} 15838_ACEOF 15839if ac_fn_cxx_try_link "$LINENO"; then : 15840 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15841 lt_cv_shlibpath_overrides_runpath=yes 15842fi 15843fi 15844rm -f core conftest.err conftest.$ac_objext \ 15845 conftest$ac_exeext conftest.$ac_ext 15846 LDFLAGS=$save_LDFLAGS 15847 libdir=$save_libdir 15848 15849fi 15850 15851 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15852 15853 # This implies no fast_install, which is unacceptable. 15854 # Some rework will be needed to allow for fast_install 15855 # before this can be enabled. 15856 hardcode_into_libs=yes 15857 15858 # Ideally, we could use ldconfig to report *all* directores which are 15859 # searched for libraries, however this is still not possible. Aside from not 15860 # being certain /sbin/ldconfig is available, command 15861 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15862 # even though it is searched at run-time. Try to do the best guess by 15863 # appending ld.so.conf contents (and includes) to the search path. 15864 if test -f /etc/ld.so.conf; then 15865 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 15866 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15867 fi 15868 15869 # We used to test for /lib/ld.so.1 and disable shared libraries on 15870 # powerpc, because MkLinux only supported shared libraries with the 15871 # GNU dynamic linker. Since this was broken with cross compilers, 15872 # most powerpc-linux boxes support dynamic linking these days and 15873 # people can always --disable-shared, the test was removed, and we 15874 # assume the GNU/Linux dynamic linker is in use. 15875 dynamic_linker='GNU/Linux ld.so' 15876 ;; 15877 15878netbsdelf*-gnu) 15879 version_type=linux 15880 need_lib_prefix=no 15881 need_version=no 15882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15883 soname_spec='${libname}${release}${shared_ext}$major' 15884 shlibpath_var=LD_LIBRARY_PATH 15885 shlibpath_overrides_runpath=no 15886 hardcode_into_libs=yes 15887 dynamic_linker='NetBSD ld.elf_so' 15888 ;; 15889 15890netbsd*) 15891 version_type=sunos 15892 need_lib_prefix=no 15893 need_version=no 15894 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15895 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15897 dynamic_linker='NetBSD (a.out) ld.so' 15898 else 15899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15900 soname_spec='$libname$release$shared_ext$major' 15901 dynamic_linker='NetBSD ld.elf_so' 15902 fi 15903 shlibpath_var=LD_LIBRARY_PATH 15904 shlibpath_overrides_runpath=yes 15905 hardcode_into_libs=yes 15906 ;; 15907 15908newsos6) 15909 version_type=linux # correct to gnu/linux during the next big refactor 15910 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15911 shlibpath_var=LD_LIBRARY_PATH 15912 shlibpath_overrides_runpath=yes 15913 ;; 15914 15915*nto* | *qnx*) 15916 version_type=qnx 15917 need_lib_prefix=no 15918 need_version=no 15919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15920 soname_spec='$libname$release$shared_ext$major' 15921 shlibpath_var=LD_LIBRARY_PATH 15922 shlibpath_overrides_runpath=no 15923 hardcode_into_libs=yes 15924 dynamic_linker='ldqnx.so' 15925 ;; 15926 15927openbsd* | bitrig*) 15928 version_type=sunos 15929 sys_lib_dlsearch_path_spec=/usr/lib 15930 need_lib_prefix=no 15931 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15932 need_version=no 15933 else 15934 need_version=yes 15935 fi 15936 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15938 shlibpath_var=LD_LIBRARY_PATH 15939 shlibpath_overrides_runpath=yes 15940 ;; 15941 15942os2*) 15943 libname_spec='$name' 15944 version_type=windows 15945 shrext_cmds=.dll 15946 need_version=no 15947 need_lib_prefix=no 15948 # OS/2 can only load a DLL with a base name of 8 characters or less. 15949 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15950 v=$($ECHO $release$versuffix | tr -d .-); 15951 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15952 $ECHO $n$v`$shared_ext' 15953 library_names_spec='${libname}_dll.$libext' 15954 dynamic_linker='OS/2 ld.exe' 15955 shlibpath_var=BEGINLIBPATH 15956 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15958 postinstall_cmds='base_file=`basename \$file`~ 15959 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15960 dldir=$destdir/`dirname \$dlpath`~ 15961 test -d \$dldir || mkdir -p \$dldir~ 15962 $install_prog $dir/$dlname \$dldir/$dlname~ 15963 chmod a+x \$dldir/$dlname~ 15964 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15965 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15966 fi' 15967 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15968 dlpath=$dir/\$dldll~ 15969 $RM \$dlpath' 15970 ;; 15971 15972osf3* | osf4* | osf5*) 15973 version_type=osf 15974 need_lib_prefix=no 15975 need_version=no 15976 soname_spec='$libname$release$shared_ext$major' 15977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15978 shlibpath_var=LD_LIBRARY_PATH 15979 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15981 ;; 15982 15983rdos*) 15984 dynamic_linker=no 15985 ;; 15986 15987solaris*) 15988 version_type=linux # correct to gnu/linux during the next big refactor 15989 need_lib_prefix=no 15990 need_version=no 15991 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15992 soname_spec='$libname$release$shared_ext$major' 15993 shlibpath_var=LD_LIBRARY_PATH 15994 shlibpath_overrides_runpath=yes 15995 hardcode_into_libs=yes 15996 # ldd complains unless libraries are executable 15997 postinstall_cmds='chmod +x $lib' 15998 ;; 15999 16000sunos4*) 16001 version_type=sunos 16002 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16003 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16004 shlibpath_var=LD_LIBRARY_PATH 16005 shlibpath_overrides_runpath=yes 16006 if test yes = "$with_gnu_ld"; then 16007 need_lib_prefix=no 16008 fi 16009 need_version=yes 16010 ;; 16011 16012sysv4 | sysv4.3*) 16013 version_type=linux # correct to gnu/linux during the next big refactor 16014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16015 soname_spec='$libname$release$shared_ext$major' 16016 shlibpath_var=LD_LIBRARY_PATH 16017 case $host_vendor in 16018 sni) 16019 shlibpath_overrides_runpath=no 16020 need_lib_prefix=no 16021 runpath_var=LD_RUN_PATH 16022 ;; 16023 siemens) 16024 need_lib_prefix=no 16025 ;; 16026 motorola) 16027 need_lib_prefix=no 16028 need_version=no 16029 shlibpath_overrides_runpath=no 16030 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16031 ;; 16032 esac 16033 ;; 16034 16035sysv4*MP*) 16036 if test -d /usr/nec; then 16037 version_type=linux # correct to gnu/linux during the next big refactor 16038 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16039 soname_spec='$libname$shared_ext.$major' 16040 shlibpath_var=LD_LIBRARY_PATH 16041 fi 16042 ;; 16043 16044sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16045 version_type=sco 16046 need_lib_prefix=no 16047 need_version=no 16048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16049 soname_spec='$libname$release$shared_ext$major' 16050 shlibpath_var=LD_LIBRARY_PATH 16051 shlibpath_overrides_runpath=yes 16052 hardcode_into_libs=yes 16053 if test yes = "$with_gnu_ld"; then 16054 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16055 else 16056 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16057 case $host_os in 16058 sco3.2v5*) 16059 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16060 ;; 16061 esac 16062 fi 16063 sys_lib_dlsearch_path_spec='/usr/lib' 16064 ;; 16065 16066tpf*) 16067 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16068 version_type=linux # correct to gnu/linux during the next big refactor 16069 need_lib_prefix=no 16070 need_version=no 16071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16072 shlibpath_var=LD_LIBRARY_PATH 16073 shlibpath_overrides_runpath=no 16074 hardcode_into_libs=yes 16075 ;; 16076 16077uts4*) 16078 version_type=linux # correct to gnu/linux during the next big refactor 16079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16080 soname_spec='$libname$release$shared_ext$major' 16081 shlibpath_var=LD_LIBRARY_PATH 16082 ;; 16083 16084*) 16085 dynamic_linker=no 16086 ;; 16087esac 16088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16089$as_echo "$dynamic_linker" >&6; } 16090test no = "$dynamic_linker" && can_build_shared=no 16091 16092variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16093if test yes = "$GCC"; then 16094 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16095fi 16096 16097if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16098 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16099fi 16100 16101if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16102 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16103fi 16104 16105# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16106configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16107 16108# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16109func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16110 16111# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16112configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16154$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16155hardcode_action_CXX= 16156if test -n "$hardcode_libdir_flag_spec_CXX" || 16157 test -n "$runpath_var_CXX" || 16158 test yes = "$hardcode_automatic_CXX"; then 16159 16160 # We can hardcode non-existent directories. 16161 if test no != "$hardcode_direct_CXX" && 16162 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16163 # have to relink, otherwise we might link with an installed library 16164 # when we should be linking with a yet-to-be-installed one 16165 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16166 test no != "$hardcode_minus_L_CXX"; then 16167 # Linking always hardcodes the temporary library directory. 16168 hardcode_action_CXX=relink 16169 else 16170 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16171 hardcode_action_CXX=immediate 16172 fi 16173else 16174 # We cannot hardcode anything, or else we can only hardcode existing 16175 # directories. 16176 hardcode_action_CXX=unsupported 16177fi 16178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16179$as_echo "$hardcode_action_CXX" >&6; } 16180 16181if test relink = "$hardcode_action_CXX" || 16182 test yes = "$inherit_rpath_CXX"; then 16183 # Fast installation is not supported 16184 enable_fast_install=no 16185elif test yes = "$shlibpath_overrides_runpath" || 16186 test no = "$enable_shared"; then 16187 # Fast installation is not necessary 16188 enable_fast_install=needless 16189fi 16190 16191 16192 16193 16194 16195 16196 16197 fi # test -n "$compiler" 16198 16199 CC=$lt_save_CC 16200 CFLAGS=$lt_save_CFLAGS 16201 LDCXX=$LD 16202 LD=$lt_save_LD 16203 GCC=$lt_save_GCC 16204 with_gnu_ld=$lt_save_with_gnu_ld 16205 lt_cv_path_LDCXX=$lt_cv_path_LD 16206 lt_cv_path_LD=$lt_save_path_LD 16207 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16208 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16209fi # test yes != "$_lt_caught_CXX_error" 16210 16211ac_ext=cpp 16212ac_cpp='$CXXCPP $CPPFLAGS' 16213ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16214ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16215ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 ac_config_commands="$ac_config_commands libtool" 16232 16233 16234 16235 16236# Only expand once: 16237 16238 16239 16240 16241 ac_ext=c 16242ac_cpp='$CPP $CPPFLAGS' 16243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16245ac_compiler_gnu=$ac_cv_c_compiler_gnu 16246 16247 16248 # Make sure CDPATH is portably set to a sensible value 16249 CDPATH=${ZSH_VERSION+.}: 16250 16251 GAP_CPPFLAGS="" 16252 16253 ###################################### 16254 # Find the GAP root directory by 16255 # checking for the sysinfo.gap file 16256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP root directory" >&5 16257$as_echo_n "checking for GAP root directory... " >&6; } 16258 GAPROOT="../.." 16259 16260 #Allow the user to specify the location of GAP 16261 # 16262 16263# Check whether --with-gaproot was given. 16264if test "${with_gaproot+set}" = set; then : 16265 withval=$with_gaproot; GAPROOT="$withval" 16266fi 16267 16268 16269 # Convert the path to absolute 16270 GAPROOT=`cd $GAPROOT > /dev/null 2>&1 && pwd` 16271 16272 if test -e ${GAPROOT}/sysinfo.gap; then 16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GAPROOT}" >&5 16274$as_echo "${GAPROOT}" >&6; } 16275 else 16276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 16277$as_echo "Not found" >&6; } 16278 16279 echo "" 16280 echo "********************************************************************" 16281 echo " ERROR" 16282 echo "" 16283 echo " Cannot find your GAP installation. Please specify the location of" 16284 echo " GAP's root directory using --with-gaproot=<path>" 16285 echo "" 16286 echo " The GAP root directory (as far as this package is concerned) is" 16287 echo " the one containing the file sysinfo.gap" 16288 echo "********************************************************************" 16289 echo "" 16290 16291 as_fn_error $? "Unable to find GAP root directory" "$LINENO" 5 16292 fi 16293 16294 ##################################### 16295 # Now find the architecture 16296 16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP architecture" >&5 16298$as_echo_n "checking for GAP architecture... " >&6; } 16299 GAPARCH="Unknown" 16300 . $GAPROOT/sysinfo.gap 16301 if test "x$GAParch" != "x"; then 16302 GAPARCH=$GAParch 16303 fi 16304 16305 if test "x$GAPARCH" = "xUnknown" ; then 16306 echo "" 16307 echo "********************************************************************" 16308 echo " ERROR" 16309 echo "" 16310 echo " Found a GAP installation at $GAPROOT but could not find" 16311 echo " information about GAP's architecture in the file" 16312 echo " ${GAPROOT}/sysinfo.gap ." 16313 echo " This file should be present: please check your GAP installation." 16314 echo "********************************************************************" 16315 echo "" 16316 16317 as_fn_error $? "Unable to find plausible GAParch information." "$LINENO" 5 16318 fi 16319 16320 16321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP >= 4.9" >&5 16322$as_echo_n "checking for GAP >= 4.9... " >&6; } 16323 # test if this GAP >= 4.9 16324 if test "x$GAP_CPPFLAGS" != x; then 16325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16326$as_echo "yes" >&6; } 16327 else 16328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16329$as_echo "no" >&6; } 16330 ##################################### 16331 # Now check for the GAP header files 16332 16333 bad=0 16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP include files" >&5 16335$as_echo_n "checking for GAP include files... " >&6; } 16336 if test -r $GAPROOT/src/compiled.h; then 16337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAPROOT/src/compiled.h" >&5 16338$as_echo "$GAPROOT/src/compiled.h" >&6; } 16339 else 16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 16341$as_echo "Not found" >&6; } 16342 bad=1 16343 fi 16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP config.h" >&5 16345$as_echo_n "checking for GAP config.h... " >&6; } 16346 if test -r $GAPROOT/bin/$GAPARCH/config.h; then 16347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAPROOT/bin/$GAPARCH/config.h" >&5 16348$as_echo "$GAPROOT/bin/$GAPARCH/config.h" >&6; } 16349 else 16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 16351$as_echo "Not found" >&6; } 16352 bad=1 16353 fi 16354 16355 if test "x$bad" = "x1"; then 16356 echo "" 16357 echo "********************************************************************" 16358 echo " ERROR" 16359 echo "" 16360 echo " Failed to find the GAP source header files in src/ and" 16361 echo " GAP's config.h in the architecture dependend directory" 16362 echo "" 16363 echo " The kernel build process expects to find the normal GAP " 16364 echo " root directory structure as it is after building GAP itself, and" 16365 echo " in particular the files" 16366 echo " <gaproot>/sysinfo.gap" 16367 echo " <gaproot>/src/<includes>" 16368 echo " and <gaproot>/bin/<architecture>/bin/config.h." 16369 echo " Please make sure that your GAP root directory structure" 16370 echo " conforms to this layout, or give the correct GAP root using" 16371 echo " --with-gaproot=<path>" 16372 echo "********************************************************************" 16373 echo "" 16374 as_fn_error $? "Unable to find GAP include files in /src subdirectory" "$LINENO" 5 16375 fi 16376 16377 ARCHPATH=$GAPROOT/bin/$GAPARCH 16378 GAP_CPPFLAGS="-I$GAPROOT -iquote $GAPROOT/src -I$ARCHPATH" 16379 16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP's gmp.h location" >&5 16381$as_echo_n "checking for GAP's gmp.h location... " >&6; } 16382 if test -r "$ARCHPATH/extern/gmp/include/gmp.h"; then 16383 GAP_CPPFLAGS="$GAP_CPPFLAGS -I$ARCHPATH/extern/gmp/include" 16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCHPATH/extern/gmp/include/gmp.h" >&5 16385$as_echo "$ARCHPATH/extern/gmp/include/gmp.h" >&6; } 16386 else 16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, GAP was compiled without its own GMP" >&5 16388$as_echo "not found, GAP was compiled without its own GMP" >&6; } 16389 fi 16390 fi 16391 16392 16393 16394 16395 16396 16397 16398 16399 ac_ext=cpp 16400ac_cpp='$CXXCPP $CPPFLAGS' 16401ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16402ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16403ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16404 16405 16406 16407case $host_os in 16408 *cygwin* ) CYGWIN=yes;; 16409 * ) CYGWIN=no;; 16410esac 16411 if test "$CYGWIN" = "yes"; then 16412 SYS_IS_CYGWIN_TRUE= 16413 SYS_IS_CYGWIN_FALSE='#' 16414else 16415 SYS_IS_CYGWIN_TRUE='#' 16416 SYS_IS_CYGWIN_FALSE= 16417fi 16418 16419if test "$CYGWIN" = "yes"; then 16420 16421$as_echo "#define SYS_IS_CYGWIN32 1" >>confdefs.h 16422 16423else 16424 16425$as_echo "#define SYS_IS_CYGWIN32 0" >>confdefs.h 16426 16427fi 16428 16429ac_config_files="$ac_config_files Makefile" 16430 16431cat >confcache <<\_ACEOF 16432# This file is a shell script that caches the results of configure 16433# tests run on this system so they can be shared between configure 16434# scripts and configure runs, see configure's option --config-cache. 16435# It is not useful on other systems. If it contains results you don't 16436# want to keep, you may remove or edit it. 16437# 16438# config.status only pays attention to the cache file if you give it 16439# the --recheck option to rerun configure. 16440# 16441# `ac_cv_env_foo' variables (set or unset) will be overridden when 16442# loading this file, other *unset* `ac_cv_foo' will be assigned the 16443# following values. 16444 16445_ACEOF 16446 16447# The following way of writing the cache mishandles newlines in values, 16448# but we know of no workaround that is simple, portable, and efficient. 16449# So, we kill variables containing newlines. 16450# Ultrix sh set writes to stderr and can't be redirected directly, 16451# and sets the high bit in the cache file unless we assign to the vars. 16452( 16453 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16454 eval ac_val=\$$ac_var 16455 case $ac_val in #( 16456 *${as_nl}*) 16457 case $ac_var in #( 16458 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16459$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16460 esac 16461 case $ac_var in #( 16462 _ | IFS | as_nl) ;; #( 16463 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16464 *) { eval $ac_var=; unset $ac_var;} ;; 16465 esac ;; 16466 esac 16467 done 16468 16469 (set) 2>&1 | 16470 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16471 *${as_nl}ac_space=\ *) 16472 # `set' does not quote correctly, so add quotes: double-quote 16473 # substitution turns \\\\ into \\, and sed turns \\ into \. 16474 sed -n \ 16475 "s/'/'\\\\''/g; 16476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16477 ;; #( 16478 *) 16479 # `set' quotes correctly as required by POSIX, so do not add quotes. 16480 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16481 ;; 16482 esac | 16483 sort 16484) | 16485 sed ' 16486 /^ac_cv_env_/b end 16487 t clear 16488 :clear 16489 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16490 t end 16491 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16492 :end' >>confcache 16493if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16494 if test -w "$cache_file"; then 16495 if test "x$cache_file" != "x/dev/null"; then 16496 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16497$as_echo "$as_me: updating cache $cache_file" >&6;} 16498 if test ! -f "$cache_file" || test -h "$cache_file"; then 16499 cat confcache >"$cache_file" 16500 else 16501 case $cache_file in #( 16502 */* | ?:*) 16503 mv -f confcache "$cache_file"$$ && 16504 mv -f "$cache_file"$$ "$cache_file" ;; #( 16505 *) 16506 mv -f confcache "$cache_file" ;; 16507 esac 16508 fi 16509 fi 16510 else 16511 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16512$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16513 fi 16514fi 16515rm -f confcache 16516 16517test "x$prefix" = xNONE && prefix=$ac_default_prefix 16518# Let make expand exec_prefix. 16519test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16520 16521DEFS=-DHAVE_CONFIG_H 16522 16523ac_libobjs= 16524ac_ltlibobjs= 16525U= 16526for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16527 # 1. Remove the extension, and $U if already installed. 16528 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16529 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16530 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16531 # will be set to the directory where LIBOBJS objects are built. 16532 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16533 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16534done 16535LIBOBJS=$ac_libobjs 16536 16537LTLIBOBJS=$ac_ltlibobjs 16538 16539 16540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16541$as_echo_n "checking that generated files are newer than configure... " >&6; } 16542 if test -n "$am_sleep_pid"; then 16543 # Hide warnings about reused PIDs. 16544 wait $am_sleep_pid 2>/dev/null 16545 fi 16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16547$as_echo "done" >&6; } 16548 if test -n "$EXEEXT"; then 16549 am__EXEEXT_TRUE= 16550 am__EXEEXT_FALSE='#' 16551else 16552 am__EXEEXT_TRUE='#' 16553 am__EXEEXT_FALSE= 16554fi 16555 16556if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16557 as_fn_error $? "conditional \"AMDEP\" was never defined. 16558Usually this means the macro was only invoked conditionally." "$LINENO" 5 16559fi 16560if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16561 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16562Usually this means the macro was only invoked conditionally." "$LINENO" 5 16563fi 16564if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 16565 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 16566Usually this means the macro was only invoked conditionally." "$LINENO" 5 16567fi 16568if test -z "${SYS_IS_CYGWIN_TRUE}" && test -z "${SYS_IS_CYGWIN_FALSE}"; then 16569 as_fn_error $? "conditional \"SYS_IS_CYGWIN\" was never defined. 16570Usually this means the macro was only invoked conditionally." "$LINENO" 5 16571fi 16572 16573: "${CONFIG_STATUS=./config.status}" 16574ac_write_fail=0 16575ac_clean_files_save=$ac_clean_files 16576ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16577{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16578$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16579as_write_fail=0 16580cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16581#! $SHELL 16582# Generated by $as_me. 16583# Run this file to recreate the current configuration. 16584# Compiler output produced by configure, useful for debugging 16585# configure, is in config.log if it exists. 16586 16587debug=false 16588ac_cs_recheck=false 16589ac_cs_silent=false 16590 16591SHELL=\${CONFIG_SHELL-$SHELL} 16592export SHELL 16593_ASEOF 16594cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16595## -------------------- ## 16596## M4sh Initialization. ## 16597## -------------------- ## 16598 16599# Be more Bourne compatible 16600DUALCASE=1; export DUALCASE # for MKS sh 16601if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16602 emulate sh 16603 NULLCMD=: 16604 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16605 # is contrary to our usage. Disable this feature. 16606 alias -g '${1+"$@"}'='"$@"' 16607 setopt NO_GLOB_SUBST 16608else 16609 case `(set -o) 2>/dev/null` in #( 16610 *posix*) : 16611 set -o posix ;; #( 16612 *) : 16613 ;; 16614esac 16615fi 16616 16617 16618as_nl=' 16619' 16620export as_nl 16621# Printing a long string crashes Solaris 7 /usr/bin/printf. 16622as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16623as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16624as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16625# Prefer a ksh shell builtin over an external printf program on Solaris, 16626# but without wasting forks for bash or zsh. 16627if test -z "$BASH_VERSION$ZSH_VERSION" \ 16628 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16629 as_echo='print -r --' 16630 as_echo_n='print -rn --' 16631elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16632 as_echo='printf %s\n' 16633 as_echo_n='printf %s' 16634else 16635 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16636 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16637 as_echo_n='/usr/ucb/echo -n' 16638 else 16639 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16640 as_echo_n_body='eval 16641 arg=$1; 16642 case $arg in #( 16643 *"$as_nl"*) 16644 expr "X$arg" : "X\\(.*\\)$as_nl"; 16645 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16646 esac; 16647 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16648 ' 16649 export as_echo_n_body 16650 as_echo_n='sh -c $as_echo_n_body as_echo' 16651 fi 16652 export as_echo_body 16653 as_echo='sh -c $as_echo_body as_echo' 16654fi 16655 16656# The user is always right. 16657if test "${PATH_SEPARATOR+set}" != set; then 16658 PATH_SEPARATOR=: 16659 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16660 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16661 PATH_SEPARATOR=';' 16662 } 16663fi 16664 16665 16666# IFS 16667# We need space, tab and new line, in precisely that order. Quoting is 16668# there to prevent editors from complaining about space-tab. 16669# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16670# splitting by setting IFS to empty value.) 16671IFS=" "" $as_nl" 16672 16673# Find who we are. Look in the path if we contain no directory separator. 16674as_myself= 16675case $0 in #(( 16676 *[\\/]* ) as_myself=$0 ;; 16677 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16678for as_dir in $PATH 16679do 16680 IFS=$as_save_IFS 16681 test -z "$as_dir" && as_dir=. 16682 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16683 done 16684IFS=$as_save_IFS 16685 16686 ;; 16687esac 16688# We did not find ourselves, most probably we were run as `sh COMMAND' 16689# in which case we are not to be found in the path. 16690if test "x$as_myself" = x; then 16691 as_myself=$0 16692fi 16693if test ! -f "$as_myself"; then 16694 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16695 exit 1 16696fi 16697 16698# Unset variables that we do not need and which cause bugs (e.g. in 16699# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16700# suppresses any "Segmentation fault" message there. '((' could 16701# trigger a bug in pdksh 5.2.14. 16702for as_var in BASH_ENV ENV MAIL MAILPATH 16703do eval test x\${$as_var+set} = xset \ 16704 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16705done 16706PS1='$ ' 16707PS2='> ' 16708PS4='+ ' 16709 16710# NLS nuisances. 16711LC_ALL=C 16712export LC_ALL 16713LANGUAGE=C 16714export LANGUAGE 16715 16716# CDPATH. 16717(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16718 16719 16720# as_fn_error STATUS ERROR [LINENO LOG_FD] 16721# ---------------------------------------- 16722# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16723# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16724# script with STATUS, using 1 if that was 0. 16725as_fn_error () 16726{ 16727 as_status=$1; test $as_status -eq 0 && as_status=1 16728 if test "$4"; then 16729 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16730 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16731 fi 16732 $as_echo "$as_me: error: $2" >&2 16733 as_fn_exit $as_status 16734} # as_fn_error 16735 16736 16737# as_fn_set_status STATUS 16738# ----------------------- 16739# Set $? to STATUS, without forking. 16740as_fn_set_status () 16741{ 16742 return $1 16743} # as_fn_set_status 16744 16745# as_fn_exit STATUS 16746# ----------------- 16747# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16748as_fn_exit () 16749{ 16750 set +e 16751 as_fn_set_status $1 16752 exit $1 16753} # as_fn_exit 16754 16755# as_fn_unset VAR 16756# --------------- 16757# Portably unset VAR. 16758as_fn_unset () 16759{ 16760 { eval $1=; unset $1;} 16761} 16762as_unset=as_fn_unset 16763# as_fn_append VAR VALUE 16764# ---------------------- 16765# Append the text in VALUE to the end of the definition contained in VAR. Take 16766# advantage of any shell optimizations that allow amortized linear growth over 16767# repeated appends, instead of the typical quadratic growth present in naive 16768# implementations. 16769if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16770 eval 'as_fn_append () 16771 { 16772 eval $1+=\$2 16773 }' 16774else 16775 as_fn_append () 16776 { 16777 eval $1=\$$1\$2 16778 } 16779fi # as_fn_append 16780 16781# as_fn_arith ARG... 16782# ------------------ 16783# Perform arithmetic evaluation on the ARGs, and store the result in the 16784# global $as_val. Take advantage of shells that can avoid forks. The arguments 16785# must be portable across $(()) and expr. 16786if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16787 eval 'as_fn_arith () 16788 { 16789 as_val=$(( $* )) 16790 }' 16791else 16792 as_fn_arith () 16793 { 16794 as_val=`expr "$@" || test $? -eq 1` 16795 } 16796fi # as_fn_arith 16797 16798 16799if expr a : '\(a\)' >/dev/null 2>&1 && 16800 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16801 as_expr=expr 16802else 16803 as_expr=false 16804fi 16805 16806if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16807 as_basename=basename 16808else 16809 as_basename=false 16810fi 16811 16812if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16813 as_dirname=dirname 16814else 16815 as_dirname=false 16816fi 16817 16818as_me=`$as_basename -- "$0" || 16819$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16820 X"$0" : 'X\(//\)$' \| \ 16821 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16822$as_echo X/"$0" | 16823 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16824 s//\1/ 16825 q 16826 } 16827 /^X\/\(\/\/\)$/{ 16828 s//\1/ 16829 q 16830 } 16831 /^X\/\(\/\).*/{ 16832 s//\1/ 16833 q 16834 } 16835 s/.*/./; q'` 16836 16837# Avoid depending upon Character Ranges. 16838as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16839as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16840as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16841as_cr_digits='0123456789' 16842as_cr_alnum=$as_cr_Letters$as_cr_digits 16843 16844ECHO_C= ECHO_N= ECHO_T= 16845case `echo -n x` in #((((( 16846-n*) 16847 case `echo 'xy\c'` in 16848 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16849 xy) ECHO_C='\c';; 16850 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16851 ECHO_T=' ';; 16852 esac;; 16853*) 16854 ECHO_N='-n';; 16855esac 16856 16857rm -f conf$$ conf$$.exe conf$$.file 16858if test -d conf$$.dir; then 16859 rm -f conf$$.dir/conf$$.file 16860else 16861 rm -f conf$$.dir 16862 mkdir conf$$.dir 2>/dev/null 16863fi 16864if (echo >conf$$.file) 2>/dev/null; then 16865 if ln -s conf$$.file conf$$ 2>/dev/null; then 16866 as_ln_s='ln -s' 16867 # ... but there are two gotchas: 16868 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16869 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16870 # In both cases, we have to default to `cp -pR'. 16871 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16872 as_ln_s='cp -pR' 16873 elif ln conf$$.file conf$$ 2>/dev/null; then 16874 as_ln_s=ln 16875 else 16876 as_ln_s='cp -pR' 16877 fi 16878else 16879 as_ln_s='cp -pR' 16880fi 16881rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16882rmdir conf$$.dir 2>/dev/null 16883 16884 16885# as_fn_mkdir_p 16886# ------------- 16887# Create "$as_dir" as a directory, including parents if necessary. 16888as_fn_mkdir_p () 16889{ 16890 16891 case $as_dir in #( 16892 -*) as_dir=./$as_dir;; 16893 esac 16894 test -d "$as_dir" || eval $as_mkdir_p || { 16895 as_dirs= 16896 while :; do 16897 case $as_dir in #( 16898 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16899 *) as_qdir=$as_dir;; 16900 esac 16901 as_dirs="'$as_qdir' $as_dirs" 16902 as_dir=`$as_dirname -- "$as_dir" || 16903$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16904 X"$as_dir" : 'X\(//\)[^/]' \| \ 16905 X"$as_dir" : 'X\(//\)$' \| \ 16906 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16907$as_echo X"$as_dir" | 16908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16909 s//\1/ 16910 q 16911 } 16912 /^X\(\/\/\)[^/].*/{ 16913 s//\1/ 16914 q 16915 } 16916 /^X\(\/\/\)$/{ 16917 s//\1/ 16918 q 16919 } 16920 /^X\(\/\).*/{ 16921 s//\1/ 16922 q 16923 } 16924 s/.*/./; q'` 16925 test -d "$as_dir" && break 16926 done 16927 test -z "$as_dirs" || eval "mkdir $as_dirs" 16928 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16929 16930 16931} # as_fn_mkdir_p 16932if mkdir -p . 2>/dev/null; then 16933 as_mkdir_p='mkdir -p "$as_dir"' 16934else 16935 test -d ./-p && rmdir ./-p 16936 as_mkdir_p=false 16937fi 16938 16939 16940# as_fn_executable_p FILE 16941# ----------------------- 16942# Test if FILE is an executable regular file. 16943as_fn_executable_p () 16944{ 16945 test -f "$1" && test -x "$1" 16946} # as_fn_executable_p 16947as_test_x='test -x' 16948as_executable_p=as_fn_executable_p 16949 16950# Sed expression to map a string onto a valid CPP name. 16951as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16952 16953# Sed expression to map a string onto a valid variable name. 16954as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16955 16956 16957exec 6>&1 16958## ----------------------------------- ## 16959## Main body of $CONFIG_STATUS script. ## 16960## ----------------------------------- ## 16961_ASEOF 16962test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16963 16964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16965# Save the log message, to keep $0 and so on meaningful, and to 16966# report actual input values of CONFIG_FILES etc. instead of their 16967# values after options handling. 16968ac_log=" 16969This file was extended by profiling $as_me 2.2.1, which was 16970generated by GNU Autoconf 2.69. Invocation command line was 16971 16972 CONFIG_FILES = $CONFIG_FILES 16973 CONFIG_HEADERS = $CONFIG_HEADERS 16974 CONFIG_LINKS = $CONFIG_LINKS 16975 CONFIG_COMMANDS = $CONFIG_COMMANDS 16976 $ $0 $@ 16977 16978on `(hostname || uname -n) 2>/dev/null | sed 1q` 16979" 16980 16981_ACEOF 16982 16983case $ac_config_files in *" 16984"*) set x $ac_config_files; shift; ac_config_files=$*;; 16985esac 16986 16987case $ac_config_headers in *" 16988"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16989esac 16990 16991 16992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16993# Files that config.status was made for. 16994config_files="$ac_config_files" 16995config_headers="$ac_config_headers" 16996config_commands="$ac_config_commands" 16997 16998_ACEOF 16999 17000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17001ac_cs_usage="\ 17002\`$as_me' instantiates files and other configuration actions 17003from templates according to the current configuration. Unless the files 17004and actions are specified as TAGs, all are instantiated by default. 17005 17006Usage: $0 [OPTION]... [TAG]... 17007 17008 -h, --help print this help, then exit 17009 -V, --version print version number and configuration settings, then exit 17010 --config print configuration, then exit 17011 -q, --quiet, --silent 17012 do not print progress messages 17013 -d, --debug don't remove temporary files 17014 --recheck update $as_me by reconfiguring in the same conditions 17015 --file=FILE[:TEMPLATE] 17016 instantiate the configuration file FILE 17017 --header=FILE[:TEMPLATE] 17018 instantiate the configuration header FILE 17019 17020Configuration files: 17021$config_files 17022 17023Configuration headers: 17024$config_headers 17025 17026Configuration commands: 17027$config_commands 17028 17029Report bugs to the package provider." 17030 17031_ACEOF 17032cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17033ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17034ac_cs_version="\\ 17035profiling config.status 2.2.1 17036configured by $0, generated by GNU Autoconf 2.69, 17037 with options \\"\$ac_cs_config\\" 17038 17039Copyright (C) 2012 Free Software Foundation, Inc. 17040This config.status script is free software; the Free Software Foundation 17041gives unlimited permission to copy, distribute and modify it." 17042 17043ac_pwd='$ac_pwd' 17044srcdir='$srcdir' 17045INSTALL='$INSTALL' 17046MKDIR_P='$MKDIR_P' 17047AWK='$AWK' 17048test -n "\$AWK" || AWK=awk 17049_ACEOF 17050 17051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17052# The default lists apply if the user does not specify any file. 17053ac_need_defaults=: 17054while test $# != 0 17055do 17056 case $1 in 17057 --*=?*) 17058 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17059 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17060 ac_shift=: 17061 ;; 17062 --*=) 17063 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17064 ac_optarg= 17065 ac_shift=: 17066 ;; 17067 *) 17068 ac_option=$1 17069 ac_optarg=$2 17070 ac_shift=shift 17071 ;; 17072 esac 17073 17074 case $ac_option in 17075 # Handling of the options. 17076 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17077 ac_cs_recheck=: ;; 17078 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17079 $as_echo "$ac_cs_version"; exit ;; 17080 --config | --confi | --conf | --con | --co | --c ) 17081 $as_echo "$ac_cs_config"; exit ;; 17082 --debug | --debu | --deb | --de | --d | -d ) 17083 debug=: ;; 17084 --file | --fil | --fi | --f ) 17085 $ac_shift 17086 case $ac_optarg in 17087 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17088 '') as_fn_error $? "missing file argument" ;; 17089 esac 17090 as_fn_append CONFIG_FILES " '$ac_optarg'" 17091 ac_need_defaults=false;; 17092 --header | --heade | --head | --hea ) 17093 $ac_shift 17094 case $ac_optarg in 17095 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17096 esac 17097 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17098 ac_need_defaults=false;; 17099 --he | --h) 17100 # Conflict between --help and --header 17101 as_fn_error $? "ambiguous option: \`$1' 17102Try \`$0 --help' for more information.";; 17103 --help | --hel | -h ) 17104 $as_echo "$ac_cs_usage"; exit ;; 17105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17106 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17107 ac_cs_silent=: ;; 17108 17109 # This is an error. 17110 -*) as_fn_error $? "unrecognized option: \`$1' 17111Try \`$0 --help' for more information." ;; 17112 17113 *) as_fn_append ac_config_targets " $1" 17114 ac_need_defaults=false ;; 17115 17116 esac 17117 shift 17118done 17119 17120ac_configure_extra_args= 17121 17122if $ac_cs_silent; then 17123 exec 6>/dev/null 17124 ac_configure_extra_args="$ac_configure_extra_args --silent" 17125fi 17126 17127_ACEOF 17128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17129if \$ac_cs_recheck; then 17130 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17131 shift 17132 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17133 CONFIG_SHELL='$SHELL' 17134 export CONFIG_SHELL 17135 exec "\$@" 17136fi 17137 17138_ACEOF 17139cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17140exec 5>>config.log 17141{ 17142 echo 17143 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17144## Running $as_me. ## 17145_ASBOX 17146 $as_echo "$ac_log" 17147} >&5 17148 17149_ACEOF 17150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17151# 17152# INIT-COMMANDS 17153# 17154AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 17155 17156 17157# The HP-UX ksh and POSIX shell print the target directory to stdout 17158# if CDPATH is set. 17159(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17160 17161sed_quote_subst='$sed_quote_subst' 17162double_quote_subst='$double_quote_subst' 17163delay_variable_subst='$delay_variable_subst' 17164macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17165macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17166enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17167AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 17168DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17169OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17170enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17171pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17172enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17173shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17174SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17175ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17176PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17177host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17178host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17179host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17180build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17181build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17182build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17183SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17184Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17185GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17186EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17187FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17188LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17189NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17190LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17191max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17192ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17193exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17194lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17195lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17196lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17197lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17198lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17199reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17200reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17201deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17202file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17203file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17204want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17205sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17206AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17207AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17208archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17209STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17210RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17211old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17212old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17213old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17214lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17215CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17216CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17217compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17218GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17219lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17220lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17221lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17222lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17223lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 17224lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17225nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17226lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17227lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17228objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17229MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17230lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17231lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17232lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17233lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17234lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17235need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17236MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17237DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17238NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17239LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17240OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17241OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17242libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17243shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17244extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17245archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17246enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17247export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17248whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17249compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17250old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17251old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17252archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17253archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17254module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17255module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17256with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17257allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17258no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17259hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17260hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17261hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17262hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17263hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17264hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17265hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17266inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17267link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17268always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17269export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17270exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17271include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17272prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17273postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17274file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17275variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17276need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17277need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17278version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17279runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17280shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17281shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17282libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17283library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17284soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17285install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17286postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17287postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17288finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17289finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17290hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17291sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17292configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17293configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17294hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17295enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17296enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17297enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17298old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17299striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17300compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 17301predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 17302postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 17303predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 17304postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 17305compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 17306LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 17307reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 17308reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17309old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17310compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 17311GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 17312lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 17313lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 17314lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 17315lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 17316lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 17317archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 17318enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 17319export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17320whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17321compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 17322old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17323old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17324archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17325archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17326module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17327module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17328with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 17329allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17330no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17331hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17332hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 17333hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 17334hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 17335hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 17336hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 17337hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 17338inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 17339link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 17340always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 17341export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17342exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17343include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17344prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17345postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17346file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 17347hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 17348compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 17349predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17350postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17351predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 17352postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 17353compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 17354 17355LTCC='$LTCC' 17356LTCFLAGS='$LTCFLAGS' 17357compiler='$compiler_DEFAULT' 17358 17359# A function that is used when there is no print builtin or printf. 17360func_fallback_echo () 17361{ 17362 eval 'cat <<_LTECHO_EOF 17363\$1 17364_LTECHO_EOF' 17365} 17366 17367# Quote evaled strings. 17368for var in AS \ 17369DLLTOOL \ 17370OBJDUMP \ 17371SHELL \ 17372ECHO \ 17373PATH_SEPARATOR \ 17374SED \ 17375GREP \ 17376EGREP \ 17377FGREP \ 17378LD \ 17379NM \ 17380LN_S \ 17381lt_SP2NL \ 17382lt_NL2SP \ 17383reload_flag \ 17384deplibs_check_method \ 17385file_magic_cmd \ 17386file_magic_glob \ 17387want_nocaseglob \ 17388sharedlib_from_linklib_cmd \ 17389AR \ 17390AR_FLAGS \ 17391archiver_list_spec \ 17392STRIP \ 17393RANLIB \ 17394CC \ 17395CFLAGS \ 17396compiler \ 17397lt_cv_sys_global_symbol_pipe \ 17398lt_cv_sys_global_symbol_to_cdecl \ 17399lt_cv_sys_global_symbol_to_import \ 17400lt_cv_sys_global_symbol_to_c_name_address \ 17401lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17402lt_cv_nm_interface \ 17403nm_file_list_spec \ 17404lt_cv_truncate_bin \ 17405lt_prog_compiler_no_builtin_flag \ 17406lt_prog_compiler_pic \ 17407lt_prog_compiler_wl \ 17408lt_prog_compiler_static \ 17409lt_cv_prog_compiler_c_o \ 17410need_locks \ 17411MANIFEST_TOOL \ 17412DSYMUTIL \ 17413NMEDIT \ 17414LIPO \ 17415OTOOL \ 17416OTOOL64 \ 17417shrext_cmds \ 17418export_dynamic_flag_spec \ 17419whole_archive_flag_spec \ 17420compiler_needs_object \ 17421with_gnu_ld \ 17422allow_undefined_flag \ 17423no_undefined_flag \ 17424hardcode_libdir_flag_spec \ 17425hardcode_libdir_separator \ 17426exclude_expsyms \ 17427include_expsyms \ 17428file_list_spec \ 17429variables_saved_for_relink \ 17430libname_spec \ 17431library_names_spec \ 17432soname_spec \ 17433install_override_mode \ 17434finish_eval \ 17435old_striplib \ 17436striplib \ 17437compiler_lib_search_dirs \ 17438predep_objects \ 17439postdep_objects \ 17440predeps \ 17441postdeps \ 17442compiler_lib_search_path \ 17443LD_CXX \ 17444reload_flag_CXX \ 17445compiler_CXX \ 17446lt_prog_compiler_no_builtin_flag_CXX \ 17447lt_prog_compiler_pic_CXX \ 17448lt_prog_compiler_wl_CXX \ 17449lt_prog_compiler_static_CXX \ 17450lt_cv_prog_compiler_c_o_CXX \ 17451export_dynamic_flag_spec_CXX \ 17452whole_archive_flag_spec_CXX \ 17453compiler_needs_object_CXX \ 17454with_gnu_ld_CXX \ 17455allow_undefined_flag_CXX \ 17456no_undefined_flag_CXX \ 17457hardcode_libdir_flag_spec_CXX \ 17458hardcode_libdir_separator_CXX \ 17459exclude_expsyms_CXX \ 17460include_expsyms_CXX \ 17461file_list_spec_CXX \ 17462compiler_lib_search_dirs_CXX \ 17463predep_objects_CXX \ 17464postdep_objects_CXX \ 17465predeps_CXX \ 17466postdeps_CXX \ 17467compiler_lib_search_path_CXX; do 17468 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17469 *[\\\\\\\`\\"\\\$]*) 17470 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17471 ;; 17472 *) 17473 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17474 ;; 17475 esac 17476done 17477 17478# Double-quote double-evaled strings. 17479for var in reload_cmds \ 17480old_postinstall_cmds \ 17481old_postuninstall_cmds \ 17482old_archive_cmds \ 17483extract_expsyms_cmds \ 17484old_archive_from_new_cmds \ 17485old_archive_from_expsyms_cmds \ 17486archive_cmds \ 17487archive_expsym_cmds \ 17488module_cmds \ 17489module_expsym_cmds \ 17490export_symbols_cmds \ 17491prelink_cmds \ 17492postlink_cmds \ 17493postinstall_cmds \ 17494postuninstall_cmds \ 17495finish_cmds \ 17496sys_lib_search_path_spec \ 17497configure_time_dlsearch_path \ 17498configure_time_lt_sys_library_path \ 17499reload_cmds_CXX \ 17500old_archive_cmds_CXX \ 17501old_archive_from_new_cmds_CXX \ 17502old_archive_from_expsyms_cmds_CXX \ 17503archive_cmds_CXX \ 17504archive_expsym_cmds_CXX \ 17505module_cmds_CXX \ 17506module_expsym_cmds_CXX \ 17507export_symbols_cmds_CXX \ 17508prelink_cmds_CXX \ 17509postlink_cmds_CXX; do 17510 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17511 *[\\\\\\\`\\"\\\$]*) 17512 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17513 ;; 17514 *) 17515 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17516 ;; 17517 esac 17518done 17519 17520ac_aux_dir='$ac_aux_dir' 17521 17522# See if we are running on zsh, and set the options that allow our 17523# commands through without removal of \ escapes INIT. 17524if test -n "\${ZSH_VERSION+set}"; then 17525 setopt NO_GLOB_SUBST 17526fi 17527 17528 17529 PACKAGE='$PACKAGE' 17530 VERSION='$VERSION' 17531 RM='$RM' 17532 ofile='$ofile' 17533 17534 17535 17536 17537 17538 17539_ACEOF 17540 17541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17542 17543# Handling of arguments. 17544for ac_config_target in $ac_config_targets 17545do 17546 case $ac_config_target in 17547 "src/pkgconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS src/pkgconfig.h:cnf/pkgconfig.h.in" ;; 17548 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17549 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17550 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17551 17552 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17553 esac 17554done 17555 17556 17557# If the user did not use the arguments to specify the items to instantiate, 17558# then the envvar interface is used. Set only those that are not. 17559# We use the long form for the default assignment because of an extremely 17560# bizarre bug on SunOS 4.1.3. 17561if $ac_need_defaults; then 17562 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17563 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17564 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17565fi 17566 17567# Have a temporary directory for convenience. Make it in the build tree 17568# simply because there is no reason against having it here, and in addition, 17569# creating and moving files from /tmp can sometimes cause problems. 17570# Hook for its removal unless debugging. 17571# Note that there is a small window in which the directory will not be cleaned: 17572# after its creation but before its name has been assigned to `$tmp'. 17573$debug || 17574{ 17575 tmp= ac_tmp= 17576 trap 'exit_status=$? 17577 : "${ac_tmp:=$tmp}" 17578 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17579' 0 17580 trap 'as_fn_exit 1' 1 2 13 15 17581} 17582# Create a (secure) tmp directory for tmp files. 17583 17584{ 17585 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17586 test -d "$tmp" 17587} || 17588{ 17589 tmp=./conf$$-$RANDOM 17590 (umask 077 && mkdir "$tmp") 17591} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17592ac_tmp=$tmp 17593 17594# Set up the scripts for CONFIG_FILES section. 17595# No need to generate them if there are no CONFIG_FILES. 17596# This happens for instance with `./config.status config.h'. 17597if test -n "$CONFIG_FILES"; then 17598 17599 17600ac_cr=`echo X | tr X '\015'` 17601# On cygwin, bash can eat \r inside `` if the user requested igncr. 17602# But we know of no other shell where ac_cr would be empty at this 17603# point, so we can use a bashism as a fallback. 17604if test "x$ac_cr" = x; then 17605 eval ac_cr=\$\'\\r\' 17606fi 17607ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17608if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17609 ac_cs_awk_cr='\\r' 17610else 17611 ac_cs_awk_cr=$ac_cr 17612fi 17613 17614echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17615_ACEOF 17616 17617 17618{ 17619 echo "cat >conf$$subs.awk <<_ACEOF" && 17620 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17621 echo "_ACEOF" 17622} >conf$$subs.sh || 17623 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17624ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17625ac_delim='%!_!# ' 17626for ac_last_try in false false false false false :; do 17627 . ./conf$$subs.sh || 17628 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17629 17630 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17631 if test $ac_delim_n = $ac_delim_num; then 17632 break 17633 elif $ac_last_try; then 17634 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17635 else 17636 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17637 fi 17638done 17639rm -f conf$$subs.sh 17640 17641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17642cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17643_ACEOF 17644sed -n ' 17645h 17646s/^/S["/; s/!.*/"]=/ 17647p 17648g 17649s/^[^!]*!// 17650:repl 17651t repl 17652s/'"$ac_delim"'$// 17653t delim 17654:nl 17655h 17656s/\(.\{148\}\)..*/\1/ 17657t more1 17658s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17659p 17660n 17661b repl 17662:more1 17663s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17664p 17665g 17666s/.\{148\}// 17667t nl 17668:delim 17669h 17670s/\(.\{148\}\)..*/\1/ 17671t more2 17672s/["\\]/\\&/g; s/^/"/; s/$/"/ 17673p 17674b 17675:more2 17676s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17677p 17678g 17679s/.\{148\}// 17680t delim 17681' <conf$$subs.awk | sed ' 17682/^[^""]/{ 17683 N 17684 s/\n// 17685} 17686' >>$CONFIG_STATUS || ac_write_fail=1 17687rm -f conf$$subs.awk 17688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17689_ACAWK 17690cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17691 for (key in S) S_is_set[key] = 1 17692 FS = "" 17693 17694} 17695{ 17696 line = $ 0 17697 nfields = split(line, field, "@") 17698 substed = 0 17699 len = length(field[1]) 17700 for (i = 2; i < nfields; i++) { 17701 key = field[i] 17702 keylen = length(key) 17703 if (S_is_set[key]) { 17704 value = S[key] 17705 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17706 len += length(value) + length(field[++i]) 17707 substed = 1 17708 } else 17709 len += 1 + keylen 17710 } 17711 17712 print line 17713} 17714 17715_ACAWK 17716_ACEOF 17717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17718if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17719 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17720else 17721 cat 17722fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17723 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17724_ACEOF 17725 17726# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17727# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17728# trailing colons and then remove the whole line if VPATH becomes empty 17729# (actually we leave an empty line to preserve line numbers). 17730if test "x$srcdir" = x.; then 17731 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17732h 17733s/// 17734s/^/:/ 17735s/[ ]*$/:/ 17736s/:\$(srcdir):/:/g 17737s/:\${srcdir}:/:/g 17738s/:@srcdir@:/:/g 17739s/^:*// 17740s/:*$// 17741x 17742s/\(=[ ]*\).*/\1/ 17743G 17744s/\n// 17745s/^[^=]*=[ ]*$// 17746}' 17747fi 17748 17749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17750fi # test -n "$CONFIG_FILES" 17751 17752# Set up the scripts for CONFIG_HEADERS section. 17753# No need to generate them if there are no CONFIG_HEADERS. 17754# This happens for instance with `./config.status Makefile'. 17755if test -n "$CONFIG_HEADERS"; then 17756cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17757BEGIN { 17758_ACEOF 17759 17760# Transform confdefs.h into an awk script `defines.awk', embedded as 17761# here-document in config.status, that substitutes the proper values into 17762# config.h.in to produce config.h. 17763 17764# Create a delimiter string that does not exist in confdefs.h, to ease 17765# handling of long lines. 17766ac_delim='%!_!# ' 17767for ac_last_try in false false :; do 17768 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17769 if test -z "$ac_tt"; then 17770 break 17771 elif $ac_last_try; then 17772 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17773 else 17774 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17775 fi 17776done 17777 17778# For the awk script, D is an array of macro values keyed by name, 17779# likewise P contains macro parameters if any. Preserve backslash 17780# newline sequences. 17781 17782ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17783sed -n ' 17784s/.\{148\}/&'"$ac_delim"'/g 17785t rset 17786:rset 17787s/^[ ]*#[ ]*define[ ][ ]*/ / 17788t def 17789d 17790:def 17791s/\\$// 17792t bsnl 17793s/["\\]/\\&/g 17794s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17795D["\1"]=" \3"/p 17796s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17797d 17798:bsnl 17799s/["\\]/\\&/g 17800s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17801D["\1"]=" \3\\\\\\n"\\/p 17802t cont 17803s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17804t cont 17805d 17806:cont 17807n 17808s/.\{148\}/&'"$ac_delim"'/g 17809t clear 17810:clear 17811s/\\$// 17812t bsnlc 17813s/["\\]/\\&/g; s/^/"/; s/$/"/p 17814d 17815:bsnlc 17816s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17817b cont 17818' <confdefs.h | sed ' 17819s/'"$ac_delim"'/"\\\ 17820"/g' >>$CONFIG_STATUS || ac_write_fail=1 17821 17822cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17823 for (key in D) D_is_set[key] = 1 17824 FS = "" 17825} 17826/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17827 line = \$ 0 17828 split(line, arg, " ") 17829 if (arg[1] == "#") { 17830 defundef = arg[2] 17831 mac1 = arg[3] 17832 } else { 17833 defundef = substr(arg[1], 2) 17834 mac1 = arg[2] 17835 } 17836 split(mac1, mac2, "(") #) 17837 macro = mac2[1] 17838 prefix = substr(line, 1, index(line, defundef) - 1) 17839 if (D_is_set[macro]) { 17840 # Preserve the white space surrounding the "#". 17841 print prefix "define", macro P[macro] D[macro] 17842 next 17843 } else { 17844 # Replace #undef with comments. This is necessary, for example, 17845 # in the case of _POSIX_SOURCE, which is predefined and required 17846 # on some systems where configure will not decide to define it. 17847 if (defundef == "undef") { 17848 print "/*", prefix defundef, macro, "*/" 17849 next 17850 } 17851 } 17852} 17853{ print } 17854_ACAWK 17855_ACEOF 17856cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17857 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17858fi # test -n "$CONFIG_HEADERS" 17859 17860 17861eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17862shift 17863for ac_tag 17864do 17865 case $ac_tag in 17866 :[FHLC]) ac_mode=$ac_tag; continue;; 17867 esac 17868 case $ac_mode$ac_tag in 17869 :[FHL]*:*);; 17870 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17871 :[FH]-) ac_tag=-:-;; 17872 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17873 esac 17874 ac_save_IFS=$IFS 17875 IFS=: 17876 set x $ac_tag 17877 IFS=$ac_save_IFS 17878 shift 17879 ac_file=$1 17880 shift 17881 17882 case $ac_mode in 17883 :L) ac_source=$1;; 17884 :[FH]) 17885 ac_file_inputs= 17886 for ac_f 17887 do 17888 case $ac_f in 17889 -) ac_f="$ac_tmp/stdin";; 17890 *) # Look for the file first in the build tree, then in the source tree 17891 # (if the path is not absolute). The absolute path cannot be DOS-style, 17892 # because $ac_f cannot contain `:'. 17893 test -f "$ac_f" || 17894 case $ac_f in 17895 [\\/$]*) false;; 17896 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17897 esac || 17898 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17899 esac 17900 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17901 as_fn_append ac_file_inputs " '$ac_f'" 17902 done 17903 17904 # Let's still pretend it is `configure' which instantiates (i.e., don't 17905 # use $as_me), people would be surprised to read: 17906 # /* config.h. Generated by config.status. */ 17907 configure_input='Generated from '` 17908 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17909 `' by configure.' 17910 if test x"$ac_file" != x-; then 17911 configure_input="$ac_file. $configure_input" 17912 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17913$as_echo "$as_me: creating $ac_file" >&6;} 17914 fi 17915 # Neutralize special characters interpreted by sed in replacement strings. 17916 case $configure_input in #( 17917 *\&* | *\|* | *\\* ) 17918 ac_sed_conf_input=`$as_echo "$configure_input" | 17919 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17920 *) ac_sed_conf_input=$configure_input;; 17921 esac 17922 17923 case $ac_tag in 17924 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17926 esac 17927 ;; 17928 esac 17929 17930 ac_dir=`$as_dirname -- "$ac_file" || 17931$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17932 X"$ac_file" : 'X\(//\)[^/]' \| \ 17933 X"$ac_file" : 'X\(//\)$' \| \ 17934 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17935$as_echo X"$ac_file" | 17936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17937 s//\1/ 17938 q 17939 } 17940 /^X\(\/\/\)[^/].*/{ 17941 s//\1/ 17942 q 17943 } 17944 /^X\(\/\/\)$/{ 17945 s//\1/ 17946 q 17947 } 17948 /^X\(\/\).*/{ 17949 s//\1/ 17950 q 17951 } 17952 s/.*/./; q'` 17953 as_dir="$ac_dir"; as_fn_mkdir_p 17954 ac_builddir=. 17955 17956case "$ac_dir" in 17957.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17958*) 17959 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17960 # A ".." for each directory in $ac_dir_suffix. 17961 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17962 case $ac_top_builddir_sub in 17963 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17964 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17965 esac ;; 17966esac 17967ac_abs_top_builddir=$ac_pwd 17968ac_abs_builddir=$ac_pwd$ac_dir_suffix 17969# for backward compatibility: 17970ac_top_builddir=$ac_top_build_prefix 17971 17972case $srcdir in 17973 .) # We are building in place. 17974 ac_srcdir=. 17975 ac_top_srcdir=$ac_top_builddir_sub 17976 ac_abs_top_srcdir=$ac_pwd ;; 17977 [\\/]* | ?:[\\/]* ) # Absolute name. 17978 ac_srcdir=$srcdir$ac_dir_suffix; 17979 ac_top_srcdir=$srcdir 17980 ac_abs_top_srcdir=$srcdir ;; 17981 *) # Relative name. 17982 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17983 ac_top_srcdir=$ac_top_build_prefix$srcdir 17984 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17985esac 17986ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17987 17988 17989 case $ac_mode in 17990 :F) 17991 # 17992 # CONFIG_FILE 17993 # 17994 17995 case $INSTALL in 17996 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17997 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17998 esac 17999 ac_MKDIR_P=$MKDIR_P 18000 case $MKDIR_P in 18001 [\\/$]* | ?:[\\/]* ) ;; 18002 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18003 esac 18004_ACEOF 18005 18006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18007# If the template does not know about datarootdir, expand it. 18008# FIXME: This hack should be removed a few years after 2.60. 18009ac_datarootdir_hack=; ac_datarootdir_seen= 18010ac_sed_dataroot=' 18011/datarootdir/ { 18012 p 18013 q 18014} 18015/@datadir@/p 18016/@docdir@/p 18017/@infodir@/p 18018/@localedir@/p 18019/@mandir@/p' 18020case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18021*datarootdir*) ac_datarootdir_seen=yes;; 18022*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18024$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18025_ACEOF 18026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18027 ac_datarootdir_hack=' 18028 s&@datadir@&$datadir&g 18029 s&@docdir@&$docdir&g 18030 s&@infodir@&$infodir&g 18031 s&@localedir@&$localedir&g 18032 s&@mandir@&$mandir&g 18033 s&\\\${datarootdir}&$datarootdir&g' ;; 18034esac 18035_ACEOF 18036 18037# Neutralize VPATH when `$srcdir' = `.'. 18038# Shell code in configure.ac might set extrasub. 18039# FIXME: do we really want to maintain this feature? 18040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18041ac_sed_extra="$ac_vpsub 18042$extrasub 18043_ACEOF 18044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18045:t 18046/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18047s|@configure_input@|$ac_sed_conf_input|;t t 18048s&@top_builddir@&$ac_top_builddir_sub&;t t 18049s&@top_build_prefix@&$ac_top_build_prefix&;t t 18050s&@srcdir@&$ac_srcdir&;t t 18051s&@abs_srcdir@&$ac_abs_srcdir&;t t 18052s&@top_srcdir@&$ac_top_srcdir&;t t 18053s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18054s&@builddir@&$ac_builddir&;t t 18055s&@abs_builddir@&$ac_abs_builddir&;t t 18056s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18057s&@INSTALL@&$ac_INSTALL&;t t 18058s&@MKDIR_P@&$ac_MKDIR_P&;t t 18059$ac_datarootdir_hack 18060" 18061eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18062 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18063 18064test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18065 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18066 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18067 "$ac_tmp/out"`; test -z "$ac_out"; } && 18068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18069which seems to be undefined. Please make sure it is defined" >&5 18070$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18071which seems to be undefined. Please make sure it is defined" >&2;} 18072 18073 rm -f "$ac_tmp/stdin" 18074 case $ac_file in 18075 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18076 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18077 esac \ 18078 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18079 ;; 18080 :H) 18081 # 18082 # CONFIG_HEADER 18083 # 18084 if test x"$ac_file" != x-; then 18085 { 18086 $as_echo "/* $configure_input */" \ 18087 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18088 } >"$ac_tmp/config.h" \ 18089 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18090 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18091 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18092$as_echo "$as_me: $ac_file is unchanged" >&6;} 18093 else 18094 rm -f "$ac_file" 18095 mv "$ac_tmp/config.h" "$ac_file" \ 18096 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18097 fi 18098 else 18099 $as_echo "/* $configure_input */" \ 18100 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18101 || as_fn_error $? "could not create -" "$LINENO" 5 18102 fi 18103# Compute "$ac_file"'s index in $config_headers. 18104_am_arg="$ac_file" 18105_am_stamp_count=1 18106for _am_header in $config_headers :; do 18107 case $_am_header in 18108 $_am_arg | $_am_arg:* ) 18109 break ;; 18110 * ) 18111 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18112 esac 18113done 18114echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18115$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18116 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18117 X"$_am_arg" : 'X\(//\)$' \| \ 18118 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18119$as_echo X"$_am_arg" | 18120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18121 s//\1/ 18122 q 18123 } 18124 /^X\(\/\/\)[^/].*/{ 18125 s//\1/ 18126 q 18127 } 18128 /^X\(\/\/\)$/{ 18129 s//\1/ 18130 q 18131 } 18132 /^X\(\/\).*/{ 18133 s//\1/ 18134 q 18135 } 18136 s/.*/./; q'`/stamp-h$_am_stamp_count 18137 ;; 18138 18139 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18140$as_echo "$as_me: executing $ac_file commands" >&6;} 18141 ;; 18142 esac 18143 18144 18145 case $ac_file$ac_mode in 18146 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18147 # Older Autoconf quotes --file arguments for eval, but not when files 18148 # are listed without --file. Let's play safe and only enable the eval 18149 # if we detect the quoting. 18150 # TODO: see whether this extra hack can be removed once we start 18151 # requiring Autoconf 2.70 or later. 18152 case $CONFIG_FILES in #( 18153 *\'*) : 18154 eval set x "$CONFIG_FILES" ;; #( 18155 *) : 18156 set x $CONFIG_FILES ;; #( 18157 *) : 18158 ;; 18159esac 18160 shift 18161 # Used to flag and report bootstrapping failures. 18162 am_rc=0 18163 for am_mf 18164 do 18165 # Strip MF so we end up with the name of the file. 18166 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 18167 # Check whether this is an Automake generated Makefile which includes 18168 # dependency-tracking related rules and includes. 18169 # Grep'ing the whole file directly is not great: AIX grep has a line 18170 # limit of 2048, but all sed's we know have understand at least 4000. 18171 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 18172 || continue 18173 am_dirpart=`$as_dirname -- "$am_mf" || 18174$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18175 X"$am_mf" : 'X\(//\)[^/]' \| \ 18176 X"$am_mf" : 'X\(//\)$' \| \ 18177 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18178$as_echo X"$am_mf" | 18179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18180 s//\1/ 18181 q 18182 } 18183 /^X\(\/\/\)[^/].*/{ 18184 s//\1/ 18185 q 18186 } 18187 /^X\(\/\/\)$/{ 18188 s//\1/ 18189 q 18190 } 18191 /^X\(\/\).*/{ 18192 s//\1/ 18193 q 18194 } 18195 s/.*/./; q'` 18196 am_filepart=`$as_basename -- "$am_mf" || 18197$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 18198 X"$am_mf" : 'X\(//\)$' \| \ 18199 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18200$as_echo X/"$am_mf" | 18201 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18202 s//\1/ 18203 q 18204 } 18205 /^X\/\(\/\/\)$/{ 18206 s//\1/ 18207 q 18208 } 18209 /^X\/\(\/\).*/{ 18210 s//\1/ 18211 q 18212 } 18213 s/.*/./; q'` 18214 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 18215 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18216 | $MAKE -f - am--depfiles" >&5 18217 (cd "$am_dirpart" \ 18218 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18219 | $MAKE -f - am--depfiles) >&5 2>&5 18220 ac_status=$? 18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18222 (exit $ac_status); } || am_rc=$? 18223 done 18224 if test $am_rc -ne 0; then 18225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18227as_fn_error $? "Something went wrong bootstrapping makefile fragments 18228 for automatic dependency tracking. Try re-running configure with the 18229 '--disable-dependency-tracking' option to at least be able to build 18230 the package (albeit without support for automatic dependency tracking). 18231See \`config.log' for more details" "$LINENO" 5; } 18232 fi 18233 { am_dirpart=; unset am_dirpart;} 18234 { am_filepart=; unset am_filepart;} 18235 { am_mf=; unset am_mf;} 18236 { am_rc=; unset am_rc;} 18237 rm -f conftest-deps.mk 18238} 18239 ;; 18240 "libtool":C) 18241 18242 # See if we are running on zsh, and set the options that allow our 18243 # commands through without removal of \ escapes. 18244 if test -n "${ZSH_VERSION+set}"; then 18245 setopt NO_GLOB_SUBST 18246 fi 18247 18248 cfgfile=${ofile}T 18249 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18250 $RM "$cfgfile" 18251 18252 cat <<_LT_EOF >> "$cfgfile" 18253#! $SHELL 18254# Generated automatically by $as_me ($PACKAGE) $VERSION 18255# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18256 18257# Provide generalized library-building support services. 18258# Written by Gordon Matzigkeit, 1996 18259 18260# Copyright (C) 2014 Free Software Foundation, Inc. 18261# This is free software; see the source for copying conditions. There is NO 18262# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18263 18264# GNU Libtool is free software; you can redistribute it and/or modify 18265# it under the terms of the GNU General Public License as published by 18266# the Free Software Foundation; either version 2 of of the License, or 18267# (at your option) any later version. 18268# 18269# As a special exception to the GNU General Public License, if you 18270# distribute this file as part of a program or library that is built 18271# using GNU Libtool, you may include this file under the same 18272# distribution terms that you use for the rest of that program. 18273# 18274# GNU Libtool is distributed in the hope that it will be useful, but 18275# WITHOUT ANY WARRANTY; without even the implied warranty of 18276# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18277# GNU General Public License for more details. 18278# 18279# You should have received a copy of the GNU General Public License 18280# along with this program. If not, see <http://www.gnu.org/licenses/>. 18281 18282 18283# The names of the tagged configurations supported by this script. 18284available_tags='CXX ' 18285 18286# Configured defaults for sys_lib_dlsearch_path munging. 18287: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18288 18289# ### BEGIN LIBTOOL CONFIG 18290 18291# Which release of libtool.m4 was used? 18292macro_version=$macro_version 18293macro_revision=$macro_revision 18294 18295# Whether or not to build static libraries. 18296build_old_libs=$enable_static 18297 18298# Assembler program. 18299AS=$lt_AS 18300 18301# DLL creation program. 18302DLLTOOL=$lt_DLLTOOL 18303 18304# Object dumper program. 18305OBJDUMP=$lt_OBJDUMP 18306 18307# Whether or not to build shared libraries. 18308build_libtool_libs=$enable_shared 18309 18310# What type of objects to build. 18311pic_mode=$pic_mode 18312 18313# Whether or not to optimize for fast installation. 18314fast_install=$enable_fast_install 18315 18316# Shared archive member basename,for filename based shared library versioning on AIX. 18317shared_archive_member_spec=$shared_archive_member_spec 18318 18319# Shell to use when invoking shell scripts. 18320SHELL=$lt_SHELL 18321 18322# An echo program that protects backslashes. 18323ECHO=$lt_ECHO 18324 18325# The PATH separator for the build system. 18326PATH_SEPARATOR=$lt_PATH_SEPARATOR 18327 18328# The host system. 18329host_alias=$host_alias 18330host=$host 18331host_os=$host_os 18332 18333# The build system. 18334build_alias=$build_alias 18335build=$build 18336build_os=$build_os 18337 18338# A sed program that does not truncate output. 18339SED=$lt_SED 18340 18341# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18342Xsed="\$SED -e 1s/^X//" 18343 18344# A grep program that handles long lines. 18345GREP=$lt_GREP 18346 18347# An ERE matcher. 18348EGREP=$lt_EGREP 18349 18350# A literal string matcher. 18351FGREP=$lt_FGREP 18352 18353# A BSD- or MS-compatible name lister. 18354NM=$lt_NM 18355 18356# Whether we need soft or hard links. 18357LN_S=$lt_LN_S 18358 18359# What is the maximum length of a command? 18360max_cmd_len=$max_cmd_len 18361 18362# Object file suffix (normally "o"). 18363objext=$ac_objext 18364 18365# Executable file suffix (normally ""). 18366exeext=$exeext 18367 18368# whether the shell understands "unset". 18369lt_unset=$lt_unset 18370 18371# turn spaces into newlines. 18372SP2NL=$lt_lt_SP2NL 18373 18374# turn newlines into spaces. 18375NL2SP=$lt_lt_NL2SP 18376 18377# convert \$build file names to \$host format. 18378to_host_file_cmd=$lt_cv_to_host_file_cmd 18379 18380# convert \$build files to toolchain format. 18381to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18382 18383# Method to check whether dependent libraries are shared objects. 18384deplibs_check_method=$lt_deplibs_check_method 18385 18386# Command to use when deplibs_check_method = "file_magic". 18387file_magic_cmd=$lt_file_magic_cmd 18388 18389# How to find potential files when deplibs_check_method = "file_magic". 18390file_magic_glob=$lt_file_magic_glob 18391 18392# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18393want_nocaseglob=$lt_want_nocaseglob 18394 18395# Command to associate shared and link libraries. 18396sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18397 18398# The archiver. 18399AR=$lt_AR 18400 18401# Flags to create an archive. 18402AR_FLAGS=$lt_AR_FLAGS 18403 18404# How to feed a file listing to the archiver. 18405archiver_list_spec=$lt_archiver_list_spec 18406 18407# A symbol stripping program. 18408STRIP=$lt_STRIP 18409 18410# Commands used to install an old-style archive. 18411RANLIB=$lt_RANLIB 18412old_postinstall_cmds=$lt_old_postinstall_cmds 18413old_postuninstall_cmds=$lt_old_postuninstall_cmds 18414 18415# Whether to use a lock for old archive extraction. 18416lock_old_archive_extraction=$lock_old_archive_extraction 18417 18418# A C compiler. 18419LTCC=$lt_CC 18420 18421# LTCC compiler flags. 18422LTCFLAGS=$lt_CFLAGS 18423 18424# Take the output of nm and produce a listing of raw symbols and C names. 18425global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18426 18427# Transform the output of nm in a proper C declaration. 18428global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18429 18430# Transform the output of nm into a list of symbols to manually relocate. 18431global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18432 18433# Transform the output of nm in a C name address pair. 18434global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18435 18436# Transform the output of nm in a C name address pair when lib prefix is needed. 18437global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18438 18439# The name lister interface. 18440nm_interface=$lt_lt_cv_nm_interface 18441 18442# Specify filename containing input files for \$NM. 18443nm_file_list_spec=$lt_nm_file_list_spec 18444 18445# The root where to search for dependent libraries,and where our libraries should be installed. 18446lt_sysroot=$lt_sysroot 18447 18448# Command to truncate a binary pipe. 18449lt_truncate_bin=$lt_lt_cv_truncate_bin 18450 18451# The name of the directory that contains temporary libtool files. 18452objdir=$objdir 18453 18454# Used to examine libraries when file_magic_cmd begins with "file". 18455MAGIC_CMD=$MAGIC_CMD 18456 18457# Must we lock files when doing compilation? 18458need_locks=$lt_need_locks 18459 18460# Manifest tool. 18461MANIFEST_TOOL=$lt_MANIFEST_TOOL 18462 18463# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18464DSYMUTIL=$lt_DSYMUTIL 18465 18466# Tool to change global to local symbols on Mac OS X. 18467NMEDIT=$lt_NMEDIT 18468 18469# Tool to manipulate fat objects and archives on Mac OS X. 18470LIPO=$lt_LIPO 18471 18472# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18473OTOOL=$lt_OTOOL 18474 18475# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18476OTOOL64=$lt_OTOOL64 18477 18478# Old archive suffix (normally "a"). 18479libext=$libext 18480 18481# Shared library suffix (normally ".so"). 18482shrext_cmds=$lt_shrext_cmds 18483 18484# The commands to extract the exported symbol list from a shared archive. 18485extract_expsyms_cmds=$lt_extract_expsyms_cmds 18486 18487# Variables whose values should be saved in libtool wrapper scripts and 18488# restored at link time. 18489variables_saved_for_relink=$lt_variables_saved_for_relink 18490 18491# Do we need the "lib" prefix for modules? 18492need_lib_prefix=$need_lib_prefix 18493 18494# Do we need a version for libraries? 18495need_version=$need_version 18496 18497# Library versioning type. 18498version_type=$version_type 18499 18500# Shared library runtime path variable. 18501runpath_var=$runpath_var 18502 18503# Shared library path variable. 18504shlibpath_var=$shlibpath_var 18505 18506# Is shlibpath searched before the hard-coded library search path? 18507shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18508 18509# Format of library name prefix. 18510libname_spec=$lt_libname_spec 18511 18512# List of archive names. First name is the real one, the rest are links. 18513# The last name is the one that the linker finds with -lNAME 18514library_names_spec=$lt_library_names_spec 18515 18516# The coded name of the library, if different from the real name. 18517soname_spec=$lt_soname_spec 18518 18519# Permission mode override for installation of shared libraries. 18520install_override_mode=$lt_install_override_mode 18521 18522# Command to use after installation of a shared archive. 18523postinstall_cmds=$lt_postinstall_cmds 18524 18525# Command to use after uninstallation of a shared archive. 18526postuninstall_cmds=$lt_postuninstall_cmds 18527 18528# Commands used to finish a libtool library installation in a directory. 18529finish_cmds=$lt_finish_cmds 18530 18531# As "finish_cmds", except a single script fragment to be evaled but 18532# not shown. 18533finish_eval=$lt_finish_eval 18534 18535# Whether we should hardcode library paths into libraries. 18536hardcode_into_libs=$hardcode_into_libs 18537 18538# Compile-time system search path for libraries. 18539sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18540 18541# Detected run-time system search path for libraries. 18542sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18543 18544# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18545configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18546 18547# Whether dlopen is supported. 18548dlopen_support=$enable_dlopen 18549 18550# Whether dlopen of programs is supported. 18551dlopen_self=$enable_dlopen_self 18552 18553# Whether dlopen of statically linked programs is supported. 18554dlopen_self_static=$enable_dlopen_self_static 18555 18556# Commands to strip libraries. 18557old_striplib=$lt_old_striplib 18558striplib=$lt_striplib 18559 18560 18561# The linker used to build libraries. 18562LD=$lt_LD 18563 18564# How to create reloadable object files. 18565reload_flag=$lt_reload_flag 18566reload_cmds=$lt_reload_cmds 18567 18568# Commands used to build an old-style archive. 18569old_archive_cmds=$lt_old_archive_cmds 18570 18571# A language specific compiler. 18572CC=$lt_compiler 18573 18574# Is the compiler the GNU compiler? 18575with_gcc=$GCC 18576 18577# Compiler flag to turn off builtin functions. 18578no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18579 18580# Additional compiler flags for building library objects. 18581pic_flag=$lt_lt_prog_compiler_pic 18582 18583# How to pass a linker flag through the compiler. 18584wl=$lt_lt_prog_compiler_wl 18585 18586# Compiler flag to prevent dynamic linking. 18587link_static_flag=$lt_lt_prog_compiler_static 18588 18589# Does compiler simultaneously support -c and -o options? 18590compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18591 18592# Whether or not to add -lc for building shared libraries. 18593build_libtool_need_lc=$archive_cmds_need_lc 18594 18595# Whether or not to disallow shared libs when runtime libs are static. 18596allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18597 18598# Compiler flag to allow reflexive dlopens. 18599export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18600 18601# Compiler flag to generate shared objects directly from archives. 18602whole_archive_flag_spec=$lt_whole_archive_flag_spec 18603 18604# Whether the compiler copes with passing no objects directly. 18605compiler_needs_object=$lt_compiler_needs_object 18606 18607# Create an old-style archive from a shared archive. 18608old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18609 18610# Create a temporary old-style archive to link instead of a shared archive. 18611old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18612 18613# Commands used to build a shared archive. 18614archive_cmds=$lt_archive_cmds 18615archive_expsym_cmds=$lt_archive_expsym_cmds 18616 18617# Commands used to build a loadable module if different from building 18618# a shared archive. 18619module_cmds=$lt_module_cmds 18620module_expsym_cmds=$lt_module_expsym_cmds 18621 18622# Whether we are building with GNU ld or not. 18623with_gnu_ld=$lt_with_gnu_ld 18624 18625# Flag that allows shared libraries with undefined symbols to be built. 18626allow_undefined_flag=$lt_allow_undefined_flag 18627 18628# Flag that enforces no undefined symbols. 18629no_undefined_flag=$lt_no_undefined_flag 18630 18631# Flag to hardcode \$libdir into a binary during linking. 18632# This must work even if \$libdir does not exist 18633hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18634 18635# Whether we need a single "-rpath" flag with a separated argument. 18636hardcode_libdir_separator=$lt_hardcode_libdir_separator 18637 18638# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18639# DIR into the resulting binary. 18640hardcode_direct=$hardcode_direct 18641 18642# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18643# DIR into the resulting binary and the resulting library dependency is 18644# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18645# library is relocated. 18646hardcode_direct_absolute=$hardcode_direct_absolute 18647 18648# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18649# into the resulting binary. 18650hardcode_minus_L=$hardcode_minus_L 18651 18652# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18653# into the resulting binary. 18654hardcode_shlibpath_var=$hardcode_shlibpath_var 18655 18656# Set to "yes" if building a shared library automatically hardcodes DIR 18657# into the library and all subsequent libraries and executables linked 18658# against it. 18659hardcode_automatic=$hardcode_automatic 18660 18661# Set to yes if linker adds runtime paths of dependent libraries 18662# to runtime path list. 18663inherit_rpath=$inherit_rpath 18664 18665# Whether libtool must link a program against all its dependency libraries. 18666link_all_deplibs=$link_all_deplibs 18667 18668# Set to "yes" if exported symbols are required. 18669always_export_symbols=$always_export_symbols 18670 18671# The commands to list exported symbols. 18672export_symbols_cmds=$lt_export_symbols_cmds 18673 18674# Symbols that should not be listed in the preloaded symbols. 18675exclude_expsyms=$lt_exclude_expsyms 18676 18677# Symbols that must always be exported. 18678include_expsyms=$lt_include_expsyms 18679 18680# Commands necessary for linking programs (against libraries) with templates. 18681prelink_cmds=$lt_prelink_cmds 18682 18683# Commands necessary for finishing linking programs. 18684postlink_cmds=$lt_postlink_cmds 18685 18686# Specify filename containing input files. 18687file_list_spec=$lt_file_list_spec 18688 18689# How to hardcode a shared library path into an executable. 18690hardcode_action=$hardcode_action 18691 18692# The directories searched by this compiler when creating a shared library. 18693compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 18694 18695# Dependencies to place before and after the objects being linked to 18696# create a shared library. 18697predep_objects=$lt_predep_objects 18698postdep_objects=$lt_postdep_objects 18699predeps=$lt_predeps 18700postdeps=$lt_postdeps 18701 18702# The library search path used internally by the compiler when linking 18703# a shared library. 18704compiler_lib_search_path=$lt_compiler_lib_search_path 18705 18706# ### END LIBTOOL CONFIG 18707 18708_LT_EOF 18709 18710 cat <<'_LT_EOF' >> "$cfgfile" 18711 18712# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18713 18714# func_munge_path_list VARIABLE PATH 18715# ----------------------------------- 18716# VARIABLE is name of variable containing _space_ separated list of 18717# directories to be munged by the contents of PATH, which is string 18718# having a format: 18719# "DIR[:DIR]:" 18720# string "DIR[ DIR]" will be prepended to VARIABLE 18721# ":DIR[:DIR]" 18722# string "DIR[ DIR]" will be appended to VARIABLE 18723# "DIRP[:DIRP]::[DIRA:]DIRA" 18724# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18725# "DIRA[ DIRA]" will be appended to VARIABLE 18726# "DIR[:DIR]" 18727# VARIABLE will be replaced by "DIR[ DIR]" 18728func_munge_path_list () 18729{ 18730 case x$2 in 18731 x) 18732 ;; 18733 *:) 18734 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 18735 ;; 18736 x:*) 18737 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 18738 ;; 18739 *::*) 18740 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18741 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 18742 ;; 18743 *) 18744 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 18745 ;; 18746 esac 18747} 18748 18749 18750# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18751func_cc_basename () 18752{ 18753 for cc_temp in $*""; do 18754 case $cc_temp in 18755 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18756 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18757 \-*) ;; 18758 *) break;; 18759 esac 18760 done 18761 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18762} 18763 18764 18765# ### END FUNCTIONS SHARED WITH CONFIGURE 18766 18767_LT_EOF 18768 18769 case $host_os in 18770 aix3*) 18771 cat <<\_LT_EOF >> "$cfgfile" 18772# AIX sometimes has problems with the GCC collect2 program. For some 18773# reason, if we set the COLLECT_NAMES environment variable, the problems 18774# vanish in a puff of smoke. 18775if test set != "${COLLECT_NAMES+set}"; then 18776 COLLECT_NAMES= 18777 export COLLECT_NAMES 18778fi 18779_LT_EOF 18780 ;; 18781 esac 18782 18783 18784ltmain=$ac_aux_dir/ltmain.sh 18785 18786 18787 # We use sed instead of cat because bash on DJGPP gets confused if 18788 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18789 # text mode, it properly converts lines to CR/LF. This bash problem 18790 # is reportedly fixed, but why not run on old versions too? 18791 sed '$q' "$ltmain" >> "$cfgfile" \ 18792 || (rm -f "$cfgfile"; exit 1) 18793 18794 mv -f "$cfgfile" "$ofile" || 18795 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18796 chmod +x "$ofile" 18797 18798 18799 cat <<_LT_EOF >> "$ofile" 18800 18801# ### BEGIN LIBTOOL TAG CONFIG: CXX 18802 18803# The linker used to build libraries. 18804LD=$lt_LD_CXX 18805 18806# How to create reloadable object files. 18807reload_flag=$lt_reload_flag_CXX 18808reload_cmds=$lt_reload_cmds_CXX 18809 18810# Commands used to build an old-style archive. 18811old_archive_cmds=$lt_old_archive_cmds_CXX 18812 18813# A language specific compiler. 18814CC=$lt_compiler_CXX 18815 18816# Is the compiler the GNU compiler? 18817with_gcc=$GCC_CXX 18818 18819# Compiler flag to turn off builtin functions. 18820no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 18821 18822# Additional compiler flags for building library objects. 18823pic_flag=$lt_lt_prog_compiler_pic_CXX 18824 18825# How to pass a linker flag through the compiler. 18826wl=$lt_lt_prog_compiler_wl_CXX 18827 18828# Compiler flag to prevent dynamic linking. 18829link_static_flag=$lt_lt_prog_compiler_static_CXX 18830 18831# Does compiler simultaneously support -c and -o options? 18832compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 18833 18834# Whether or not to add -lc for building shared libraries. 18835build_libtool_need_lc=$archive_cmds_need_lc_CXX 18836 18837# Whether or not to disallow shared libs when runtime libs are static. 18838allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 18839 18840# Compiler flag to allow reflexive dlopens. 18841export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 18842 18843# Compiler flag to generate shared objects directly from archives. 18844whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 18845 18846# Whether the compiler copes with passing no objects directly. 18847compiler_needs_object=$lt_compiler_needs_object_CXX 18848 18849# Create an old-style archive from a shared archive. 18850old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 18851 18852# Create a temporary old-style archive to link instead of a shared archive. 18853old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 18854 18855# Commands used to build a shared archive. 18856archive_cmds=$lt_archive_cmds_CXX 18857archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 18858 18859# Commands used to build a loadable module if different from building 18860# a shared archive. 18861module_cmds=$lt_module_cmds_CXX 18862module_expsym_cmds=$lt_module_expsym_cmds_CXX 18863 18864# Whether we are building with GNU ld or not. 18865with_gnu_ld=$lt_with_gnu_ld_CXX 18866 18867# Flag that allows shared libraries with undefined symbols to be built. 18868allow_undefined_flag=$lt_allow_undefined_flag_CXX 18869 18870# Flag that enforces no undefined symbols. 18871no_undefined_flag=$lt_no_undefined_flag_CXX 18872 18873# Flag to hardcode \$libdir into a binary during linking. 18874# This must work even if \$libdir does not exist 18875hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 18876 18877# Whether we need a single "-rpath" flag with a separated argument. 18878hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 18879 18880# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18881# DIR into the resulting binary. 18882hardcode_direct=$hardcode_direct_CXX 18883 18884# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18885# DIR into the resulting binary and the resulting library dependency is 18886# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18887# library is relocated. 18888hardcode_direct_absolute=$hardcode_direct_absolute_CXX 18889 18890# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18891# into the resulting binary. 18892hardcode_minus_L=$hardcode_minus_L_CXX 18893 18894# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18895# into the resulting binary. 18896hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 18897 18898# Set to "yes" if building a shared library automatically hardcodes DIR 18899# into the library and all subsequent libraries and executables linked 18900# against it. 18901hardcode_automatic=$hardcode_automatic_CXX 18902 18903# Set to yes if linker adds runtime paths of dependent libraries 18904# to runtime path list. 18905inherit_rpath=$inherit_rpath_CXX 18906 18907# Whether libtool must link a program against all its dependency libraries. 18908link_all_deplibs=$link_all_deplibs_CXX 18909 18910# Set to "yes" if exported symbols are required. 18911always_export_symbols=$always_export_symbols_CXX 18912 18913# The commands to list exported symbols. 18914export_symbols_cmds=$lt_export_symbols_cmds_CXX 18915 18916# Symbols that should not be listed in the preloaded symbols. 18917exclude_expsyms=$lt_exclude_expsyms_CXX 18918 18919# Symbols that must always be exported. 18920include_expsyms=$lt_include_expsyms_CXX 18921 18922# Commands necessary for linking programs (against libraries) with templates. 18923prelink_cmds=$lt_prelink_cmds_CXX 18924 18925# Commands necessary for finishing linking programs. 18926postlink_cmds=$lt_postlink_cmds_CXX 18927 18928# Specify filename containing input files. 18929file_list_spec=$lt_file_list_spec_CXX 18930 18931# How to hardcode a shared library path into an executable. 18932hardcode_action=$hardcode_action_CXX 18933 18934# The directories searched by this compiler when creating a shared library. 18935compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 18936 18937# Dependencies to place before and after the objects being linked to 18938# create a shared library. 18939predep_objects=$lt_predep_objects_CXX 18940postdep_objects=$lt_postdep_objects_CXX 18941predeps=$lt_predeps_CXX 18942postdeps=$lt_postdeps_CXX 18943 18944# The library search path used internally by the compiler when linking 18945# a shared library. 18946compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 18947 18948# ### END LIBTOOL TAG CONFIG: CXX 18949_LT_EOF 18950 18951 ;; 18952 18953 esac 18954done # for ac_tag 18955 18956 18957as_fn_exit 0 18958_ACEOF 18959ac_clean_files=$ac_clean_files_save 18960 18961test $ac_write_fail = 0 || 18962 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18963 18964 18965# configure is writing to config.log, and then calls config.status. 18966# config.status does its own redirection, appending to config.log. 18967# Unfortunately, on DOS this fails, as config.log is still kept open 18968# by configure, so config.status won't be able to write to it; its 18969# output is simply discarded. So we exec the FD to /dev/null, 18970# effectively closing config.log, so it can be properly (re)opened and 18971# appended to by config.status. When coming back to configure, we 18972# need to make the FD available again. 18973if test "$no_create" != yes; then 18974 ac_cs_success=: 18975 ac_config_status_args= 18976 test "$silent" = yes && 18977 ac_config_status_args="$ac_config_status_args --quiet" 18978 exec 5>/dev/null 18979 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18980 exec 5>>config.log 18981 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18982 # would make configure fail if this is the last instruction. 18983 $ac_cs_success || as_fn_exit 1 18984fi 18985if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18987$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18988fi 18989 18990