1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for liborcus 0.16.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='liborcus' 589PACKAGE_TARNAME='liborcus' 590PACKAGE_VERSION='0.16.1' 591PACKAGE_STRING='liborcus 0.16.1' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595# Factoring default headers for most tests. 596ac_includes_default="\ 597#include <stdio.h> 598#ifdef HAVE_SYS_TYPES_H 599# include <sys/types.h> 600#endif 601#ifdef HAVE_SYS_STAT_H 602# include <sys/stat.h> 603#endif 604#ifdef STDC_HEADERS 605# include <stdlib.h> 606# include <stddef.h> 607#else 608# ifdef HAVE_STDLIB_H 609# include <stdlib.h> 610# endif 611#endif 612#ifdef HAVE_STRING_H 613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 614# include <memory.h> 615# endif 616# include <string.h> 617#endif 618#ifdef HAVE_STRINGS_H 619# include <strings.h> 620#endif 621#ifdef HAVE_INTTYPES_H 622# include <inttypes.h> 623#endif 624#ifdef HAVE_STDINT_H 625# include <stdint.h> 626#endif 627#ifdef HAVE_UNISTD_H 628# include <unistd.h> 629#endif" 630 631ac_subst_vars='am__EXEEXT_FALSE 632am__EXEEXT_TRUE 633LTLIBOBJS 634WITH_PYTHON_GNUMERIC_FALSE 635WITH_PYTHON_GNUMERIC_TRUE 636WITH_PYTHON_XLS_XML_FALSE 637WITH_PYTHON_XLS_XML_TRUE 638WITH_PYTHON_CSV_FALSE 639WITH_PYTHON_CSV_TRUE 640WITH_PYTHON_ODS_FALSE 641WITH_PYTHON_ODS_TRUE 642WITH_PYTHON_XLSX_FALSE 643WITH_PYTHON_XLSX_TRUE 644BUILD_PYTHON_FALSE 645BUILD_PYTHON_TRUE 646PYTHON_LIBS 647PYTHON_CFLAGS 648pkgpyexecdir 649pyexecdir 650pkgpythondir 651pythondir 652PYTHON_PLATFORM 653PYTHON_EXEC_PREFIX 654PYTHON_PREFIX 655PYTHON_VERSION 656PYTHON 657BUILD_SPREADSHEET_MODEL_FALSE 658BUILD_SPREADSHEET_MODEL_TRUE 659BOOST_DATE_TIME_LIBS 660BOOST_DATE_TIME_LDPATH 661BOOST_DATE_TIME_LDFLAGS 662LIBIXION_LIBS 663LIBIXION_CFLAGS 664MDDS_LIBS 665MDDS_CFLAGS 666BOOST_PROGRAM_OPTIONS_LIBS 667BOOST_PROGRAM_OPTIONS_LDPATH 668BOOST_PROGRAM_OPTIONS_LDFLAGS 669BOOST_IOSTREAMS_LIBS 670BOOST_IOSTREAMS_LDPATH 671BOOST_IOSTREAMS_LDFLAGS 672WITH_TOOLS_FALSE 673WITH_TOOLS_TRUE 674WITH_GNUMERIC_FILTER_FALSE 675WITH_GNUMERIC_FILTER_TRUE 676WITH_XLS_XML_FILTER_FALSE 677WITH_XLS_XML_FILTER_TRUE 678WITH_XLSX_FILTER_FALSE 679WITH_XLSX_FILTER_TRUE 680WITH_ODS_FILTER_FALSE 681WITH_ODS_FILTER_TRUE 682ZLIB_LIBS 683ZLIB_CFLAGS 684HAVE_STATIC_LIB_FALSE 685HAVE_STATIC_LIB_TRUE 686BOOST_FILESYSTEM_LIBS 687BOOST_FILESYSTEM_LDPATH 688BOOST_FILESYSTEM_LDFLAGS 689BOOST_SYSTEM_LIBS 690BOOST_LDPATH 691BOOST_SYSTEM_LDPATH 692BOOST_SYSTEM_LDFLAGS 693BOOST_CPPFLAGS 694DISTCHECK_CONFIGURE_FLAGS 695BOOST_ROOT 696ORCUS_MICRO_VERSION 697ORCUS_MINOR_VERSION 698ORCUS_MAJOR_VERSION 699ORCUS_API_VERSION 700IXION_REQUIRED_API_VERSION 701LIBOBJS 702POW_LIB 703PKG_CONFIG_LIBDIR 704PKG_CONFIG_PATH 705PKG_CONFIG 706AS 707CXXCPP 708LT_SYS_LIBRARY_PATH 709OTOOL64 710OTOOL 711LIPO 712NMEDIT 713DSYMUTIL 714MANIFEST_TOOL 715RANLIB 716ac_ct_AR 717AR 718DLLTOOL 719OBJDUMP 720NM 721ac_ct_DUMPBIN 722DUMPBIN 723LD 724FGREP 725EGREP 726GREP 727SED 728host_os 729host_vendor 730host_cpu 731host 732build_os 733build_vendor 734build_cpu 735build 736LIBTOOL 737LN_S 738CPP 739am__fastdepCC_FALSE 740am__fastdepCC_TRUE 741CCDEPMODE 742ac_ct_CC 743CFLAGS 744CC 745HAVE_CXX11 746am__fastdepCXX_FALSE 747am__fastdepCXX_TRUE 748CXXDEPMODE 749am__nodep 750AMDEPBACKSLASH 751AMDEP_FALSE 752AMDEP_TRUE 753am__include 754DEPDIR 755OBJEXT 756EXEEXT 757ac_ct_CXX 758CPPFLAGS 759LDFLAGS 760CXXFLAGS 761CXX 762AM_BACKSLASH 763AM_DEFAULT_VERBOSITY 764AM_DEFAULT_V 765AM_V 766am__untar 767am__tar 768AMTAR 769am__leading_dot 770SET_MAKE 771AWK 772mkdir_p 773MKDIR_P 774INSTALL_STRIP_PROGRAM 775STRIP 776install_sh 777MAKEINFO 778AUTOHEADER 779AUTOMAKE 780AUTOCONF 781ACLOCAL 782VERSION 783PACKAGE 784CYGPATH_W 785am__isrc 786INSTALL_DATA 787INSTALL_SCRIPT 788INSTALL_PROGRAM 789target_alias 790host_alias 791build_alias 792LIBS 793ECHO_T 794ECHO_N 795ECHO_C 796DEFS 797mandir 798localedir 799libdir 800psdir 801pdfdir 802dvidir 803htmldir 804infodir 805docdir 806oldincludedir 807includedir 808runstatedir 809localstatedir 810sharedstatedir 811sysconfdir 812datadir 813datarootdir 814libexecdir 815sbindir 816bindir 817program_transform_name 818prefix 819exec_prefix 820PACKAGE_URL 821PACKAGE_BUGREPORT 822PACKAGE_STRING 823PACKAGE_VERSION 824PACKAGE_TARNAME 825PACKAGE_NAME 826PATH_SEPARATOR 827SHELL 828am__quote' 829ac_subst_files='' 830ac_user_opts=' 831enable_option_checking 832enable_silent_rules 833enable_dependency_tracking 834enable_shared 835enable_static 836with_pic 837enable_fast_install 838with_aix_soname 839with_gnu_ld 840with_sysroot 841enable_libtool_lock 842with_boost 843enable_static_boost 844enable_debug_utils 845enable_debug 846with_tools 847with_ods_filter 848with_xlsx_filter 849with_xls_xml_filter 850with_gnumeric_filter 851with_cpu_features 852enable_spreadsheet_model 853enable_python 854enable_werror 855' 856 ac_precious_vars='build_alias 857host_alias 858target_alias 859CXX 860CXXFLAGS 861LDFLAGS 862LIBS 863CPPFLAGS 864CCC 865CC 866CFLAGS 867CPP 868LT_SYS_LIBRARY_PATH 869CXXCPP 870PKG_CONFIG 871PKG_CONFIG_PATH 872PKG_CONFIG_LIBDIR 873BOOST_ROOT 874ZLIB_CFLAGS 875ZLIB_LIBS 876MDDS_CFLAGS 877MDDS_LIBS 878LIBIXION_CFLAGS 879LIBIXION_LIBS 880PYTHON 881PYTHON_CFLAGS 882PYTHON_LIBS' 883 884 885# Initialize some variables set by options. 886ac_init_help= 887ac_init_version=false 888ac_unrecognized_opts= 889ac_unrecognized_sep= 890# The variables have the same names as the options, with 891# dashes changed to underlines. 892cache_file=/dev/null 893exec_prefix=NONE 894no_create= 895no_recursion= 896prefix=NONE 897program_prefix=NONE 898program_suffix=NONE 899program_transform_name=s,x,x, 900silent= 901site= 902srcdir= 903verbose= 904x_includes=NONE 905x_libraries=NONE 906 907# Installation directory options. 908# These are left unexpanded so users can "make install exec_prefix=/foo" 909# and all the variables that are supposed to be based on exec_prefix 910# by default will actually change. 911# Use braces instead of parens because sh, perl, etc. also accept them. 912# (The list follows the same order as the GNU Coding Standards.) 913bindir='${exec_prefix}/bin' 914sbindir='${exec_prefix}/sbin' 915libexecdir='${exec_prefix}/libexec' 916datarootdir='${prefix}/share' 917datadir='${datarootdir}' 918sysconfdir='${prefix}/etc' 919sharedstatedir='${prefix}/com' 920localstatedir='${prefix}/var' 921runstatedir='${localstatedir}/run' 922includedir='${prefix}/include' 923oldincludedir='/usr/include' 924docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 925infodir='${datarootdir}/info' 926htmldir='${docdir}' 927dvidir='${docdir}' 928pdfdir='${docdir}' 929psdir='${docdir}' 930libdir='${exec_prefix}/lib' 931localedir='${datarootdir}/locale' 932mandir='${datarootdir}/man' 933 934ac_prev= 935ac_dashdash= 936for ac_option 937do 938 # If the previous option needs an argument, assign it. 939 if test -n "$ac_prev"; then 940 eval $ac_prev=\$ac_option 941 ac_prev= 942 continue 943 fi 944 945 case $ac_option in 946 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 947 *=) ac_optarg= ;; 948 *) ac_optarg=yes ;; 949 esac 950 951 # Accept the important Cygnus configure options, so we can diagnose typos. 952 953 case $ac_dashdash$ac_option in 954 --) 955 ac_dashdash=yes ;; 956 957 -bindir | --bindir | --bindi | --bind | --bin | --bi) 958 ac_prev=bindir ;; 959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 960 bindir=$ac_optarg ;; 961 962 -build | --build | --buil | --bui | --bu) 963 ac_prev=build_alias ;; 964 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 965 build_alias=$ac_optarg ;; 966 967 -cache-file | --cache-file | --cache-fil | --cache-fi \ 968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 969 ac_prev=cache_file ;; 970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 972 cache_file=$ac_optarg ;; 973 974 --config-cache | -C) 975 cache_file=config.cache ;; 976 977 -datadir | --datadir | --datadi | --datad) 978 ac_prev=datadir ;; 979 -datadir=* | --datadir=* | --datadi=* | --datad=*) 980 datadir=$ac_optarg ;; 981 982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 983 | --dataroo | --dataro | --datar) 984 ac_prev=datarootdir ;; 985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 987 datarootdir=$ac_optarg ;; 988 989 -disable-* | --disable-*) 990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 991 # Reject names that are not valid shell variable names. 992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 993 as_fn_error $? "invalid feature name: $ac_useropt" 994 ac_useropt_orig=$ac_useropt 995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 996 case $ac_user_opts in 997 *" 998"enable_$ac_useropt" 999"*) ;; 1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1001 ac_unrecognized_sep=', ';; 1002 esac 1003 eval enable_$ac_useropt=no ;; 1004 1005 -docdir | --docdir | --docdi | --doc | --do) 1006 ac_prev=docdir ;; 1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1008 docdir=$ac_optarg ;; 1009 1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1011 ac_prev=dvidir ;; 1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1013 dvidir=$ac_optarg ;; 1014 1015 -enable-* | --enable-*) 1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1017 # Reject names that are not valid shell variable names. 1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1019 as_fn_error $? "invalid feature name: $ac_useropt" 1020 ac_useropt_orig=$ac_useropt 1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1022 case $ac_user_opts in 1023 *" 1024"enable_$ac_useropt" 1025"*) ;; 1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1027 ac_unrecognized_sep=', ';; 1028 esac 1029 eval enable_$ac_useropt=\$ac_optarg ;; 1030 1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1033 | --exec | --exe | --ex) 1034 ac_prev=exec_prefix ;; 1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1037 | --exec=* | --exe=* | --ex=*) 1038 exec_prefix=$ac_optarg ;; 1039 1040 -gas | --gas | --ga | --g) 1041 # Obsolete; use --with-gas. 1042 with_gas=yes ;; 1043 1044 -help | --help | --hel | --he | -h) 1045 ac_init_help=long ;; 1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1047 ac_init_help=recursive ;; 1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1049 ac_init_help=short ;; 1050 1051 -host | --host | --hos | --ho) 1052 ac_prev=host_alias ;; 1053 -host=* | --host=* | --hos=* | --ho=*) 1054 host_alias=$ac_optarg ;; 1055 1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1057 ac_prev=htmldir ;; 1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1059 | --ht=*) 1060 htmldir=$ac_optarg ;; 1061 1062 -includedir | --includedir | --includedi | --included | --include \ 1063 | --includ | --inclu | --incl | --inc) 1064 ac_prev=includedir ;; 1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1066 | --includ=* | --inclu=* | --incl=* | --inc=*) 1067 includedir=$ac_optarg ;; 1068 1069 -infodir | --infodir | --infodi | --infod | --info | --inf) 1070 ac_prev=infodir ;; 1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1072 infodir=$ac_optarg ;; 1073 1074 -libdir | --libdir | --libdi | --libd) 1075 ac_prev=libdir ;; 1076 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1077 libdir=$ac_optarg ;; 1078 1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1080 | --libexe | --libex | --libe) 1081 ac_prev=libexecdir ;; 1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1083 | --libexe=* | --libex=* | --libe=*) 1084 libexecdir=$ac_optarg ;; 1085 1086 -localedir | --localedir | --localedi | --localed | --locale) 1087 ac_prev=localedir ;; 1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1089 localedir=$ac_optarg ;; 1090 1091 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1092 | --localstate | --localstat | --localsta | --localst | --locals) 1093 ac_prev=localstatedir ;; 1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1096 localstatedir=$ac_optarg ;; 1097 1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1099 ac_prev=mandir ;; 1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1101 mandir=$ac_optarg ;; 1102 1103 -nfp | --nfp | --nf) 1104 # Obsolete; use --without-fp. 1105 with_fp=no ;; 1106 1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1108 | --no-cr | --no-c | -n) 1109 no_create=yes ;; 1110 1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1113 no_recursion=yes ;; 1114 1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1117 | --oldin | --oldi | --old | --ol | --o) 1118 ac_prev=oldincludedir ;; 1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1122 oldincludedir=$ac_optarg ;; 1123 1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1125 ac_prev=prefix ;; 1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1127 prefix=$ac_optarg ;; 1128 1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1130 | --program-pre | --program-pr | --program-p) 1131 ac_prev=program_prefix ;; 1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1134 program_prefix=$ac_optarg ;; 1135 1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1137 | --program-suf | --program-su | --program-s) 1138 ac_prev=program_suffix ;; 1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1141 program_suffix=$ac_optarg ;; 1142 1143 -program-transform-name | --program-transform-name \ 1144 | --program-transform-nam | --program-transform-na \ 1145 | --program-transform-n | --program-transform- \ 1146 | --program-transform | --program-transfor \ 1147 | --program-transfo | --program-transf \ 1148 | --program-trans | --program-tran \ 1149 | --progr-tra | --program-tr | --program-t) 1150 ac_prev=program_transform_name ;; 1151 -program-transform-name=* | --program-transform-name=* \ 1152 | --program-transform-nam=* | --program-transform-na=* \ 1153 | --program-transform-n=* | --program-transform-=* \ 1154 | --program-transform=* | --program-transfor=* \ 1155 | --program-transfo=* | --program-transf=* \ 1156 | --program-trans=* | --program-tran=* \ 1157 | --progr-tra=* | --program-tr=* | --program-t=*) 1158 program_transform_name=$ac_optarg ;; 1159 1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1161 ac_prev=pdfdir ;; 1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1163 pdfdir=$ac_optarg ;; 1164 1165 -psdir | --psdir | --psdi | --psd | --ps) 1166 ac_prev=psdir ;; 1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1168 psdir=$ac_optarg ;; 1169 1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1171 | -silent | --silent | --silen | --sile | --sil) 1172 silent=yes ;; 1173 1174 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1175 | --runstate | --runstat | --runsta | --runst | --runs \ 1176 | --run | --ru | --r) 1177 ac_prev=runstatedir ;; 1178 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1179 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1180 | --run=* | --ru=* | --r=*) 1181 runstatedir=$ac_optarg ;; 1182 1183 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1184 ac_prev=sbindir ;; 1185 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1186 | --sbi=* | --sb=*) 1187 sbindir=$ac_optarg ;; 1188 1189 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1190 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1191 | --sharedst | --shareds | --shared | --share | --shar \ 1192 | --sha | --sh) 1193 ac_prev=sharedstatedir ;; 1194 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1195 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1196 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1197 | --sha=* | --sh=*) 1198 sharedstatedir=$ac_optarg ;; 1199 1200 -site | --site | --sit) 1201 ac_prev=site ;; 1202 -site=* | --site=* | --sit=*) 1203 site=$ac_optarg ;; 1204 1205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1206 ac_prev=srcdir ;; 1207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1208 srcdir=$ac_optarg ;; 1209 1210 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1211 | --syscon | --sysco | --sysc | --sys | --sy) 1212 ac_prev=sysconfdir ;; 1213 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1214 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1215 sysconfdir=$ac_optarg ;; 1216 1217 -target | --target | --targe | --targ | --tar | --ta | --t) 1218 ac_prev=target_alias ;; 1219 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1220 target_alias=$ac_optarg ;; 1221 1222 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1223 verbose=yes ;; 1224 1225 -version | --version | --versio | --versi | --vers | -V) 1226 ac_init_version=: ;; 1227 1228 -with-* | --with-*) 1229 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1230 # Reject names that are not valid shell variable names. 1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1232 as_fn_error $? "invalid package name: $ac_useropt" 1233 ac_useropt_orig=$ac_useropt 1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1235 case $ac_user_opts in 1236 *" 1237"with_$ac_useropt" 1238"*) ;; 1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1240 ac_unrecognized_sep=', ';; 1241 esac 1242 eval with_$ac_useropt=\$ac_optarg ;; 1243 1244 -without-* | --without-*) 1245 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1246 # Reject names that are not valid shell variable names. 1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1248 as_fn_error $? "invalid package name: $ac_useropt" 1249 ac_useropt_orig=$ac_useropt 1250 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1251 case $ac_user_opts in 1252 *" 1253"with_$ac_useropt" 1254"*) ;; 1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1256 ac_unrecognized_sep=', ';; 1257 esac 1258 eval with_$ac_useropt=no ;; 1259 1260 --x) 1261 # Obsolete; use --with-x. 1262 with_x=yes ;; 1263 1264 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1265 | --x-incl | --x-inc | --x-in | --x-i) 1266 ac_prev=x_includes ;; 1267 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1268 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1269 x_includes=$ac_optarg ;; 1270 1271 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1272 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1273 ac_prev=x_libraries ;; 1274 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1275 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1276 x_libraries=$ac_optarg ;; 1277 1278 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1279Try \`$0 --help' for more information" 1280 ;; 1281 1282 *=*) 1283 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1284 # Reject names that are not valid shell variable names. 1285 case $ac_envvar in #( 1286 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1287 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1288 esac 1289 eval $ac_envvar=\$ac_optarg 1290 export $ac_envvar ;; 1291 1292 *) 1293 # FIXME: should be removed in autoconf 3.0. 1294 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1295 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1296 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1297 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1298 ;; 1299 1300 esac 1301done 1302 1303if test -n "$ac_prev"; then 1304 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1305 as_fn_error $? "missing argument to $ac_option" 1306fi 1307 1308if test -n "$ac_unrecognized_opts"; then 1309 case $enable_option_checking in 1310 no) ;; 1311 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1312 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1313 esac 1314fi 1315 1316# Check all directory arguments for consistency. 1317for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1318 datadir sysconfdir sharedstatedir localstatedir includedir \ 1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1320 libdir localedir mandir runstatedir 1321do 1322 eval ac_val=\$$ac_var 1323 # Remove trailing slashes. 1324 case $ac_val in 1325 */ ) 1326 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1327 eval $ac_var=\$ac_val;; 1328 esac 1329 # Be sure to have absolute directory names. 1330 case $ac_val in 1331 [\\/$]* | ?:[\\/]* ) continue;; 1332 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1333 esac 1334 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1335done 1336 1337# There might be people who depend on the old broken behavior: `$host' 1338# used to hold the argument of --host etc. 1339# FIXME: To remove some day. 1340build=$build_alias 1341host=$host_alias 1342target=$target_alias 1343 1344# FIXME: To remove some day. 1345if test "x$host_alias" != x; then 1346 if test "x$build_alias" = x; then 1347 cross_compiling=maybe 1348 elif test "x$build_alias" != "x$host_alias"; then 1349 cross_compiling=yes 1350 fi 1351fi 1352 1353ac_tool_prefix= 1354test -n "$host_alias" && ac_tool_prefix=$host_alias- 1355 1356test "$silent" = yes && exec 6>/dev/null 1357 1358 1359ac_pwd=`pwd` && test -n "$ac_pwd" && 1360ac_ls_di=`ls -di .` && 1361ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1362 as_fn_error $? "working directory cannot be determined" 1363test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1364 as_fn_error $? "pwd does not report name of working directory" 1365 1366 1367# Find the source files, if location was not specified. 1368if test -z "$srcdir"; then 1369 ac_srcdir_defaulted=yes 1370 # Try the directory containing this script, then the parent directory. 1371 ac_confdir=`$as_dirname -- "$as_myself" || 1372$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1373 X"$as_myself" : 'X\(//\)[^/]' \| \ 1374 X"$as_myself" : 'X\(//\)$' \| \ 1375 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1376$as_echo X"$as_myself" | 1377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1378 s//\1/ 1379 q 1380 } 1381 /^X\(\/\/\)[^/].*/{ 1382 s//\1/ 1383 q 1384 } 1385 /^X\(\/\/\)$/{ 1386 s//\1/ 1387 q 1388 } 1389 /^X\(\/\).*/{ 1390 s//\1/ 1391 q 1392 } 1393 s/.*/./; q'` 1394 srcdir=$ac_confdir 1395 if test ! -r "$srcdir/$ac_unique_file"; then 1396 srcdir=.. 1397 fi 1398else 1399 ac_srcdir_defaulted=no 1400fi 1401if test ! -r "$srcdir/$ac_unique_file"; then 1402 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1403 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1404fi 1405ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1406ac_abs_confdir=`( 1407 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1408 pwd)` 1409# When building in place, set srcdir=. 1410if test "$ac_abs_confdir" = "$ac_pwd"; then 1411 srcdir=. 1412fi 1413# Remove unnecessary trailing slashes from srcdir. 1414# Double slashes in file names in object file debugging info 1415# mess up M-x gdb in Emacs. 1416case $srcdir in 1417*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1418esac 1419for ac_var in $ac_precious_vars; do 1420 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1421 eval ac_env_${ac_var}_value=\$${ac_var} 1422 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1423 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1424done 1425 1426# 1427# Report the --help message. 1428# 1429if test "$ac_init_help" = "long"; then 1430 # Omit some internal or obsolete options to make the list less imposing. 1431 # This message is too long to be a string in the A/UX 3.1 sh. 1432 cat <<_ACEOF 1433\`configure' configures liborcus 0.16.1 to adapt to many kinds of systems. 1434 1435Usage: $0 [OPTION]... [VAR=VALUE]... 1436 1437To assign environment variables (e.g., CC, CFLAGS...), specify them as 1438VAR=VALUE. See below for descriptions of some of the useful variables. 1439 1440Defaults for the options are specified in brackets. 1441 1442Configuration: 1443 -h, --help display this help and exit 1444 --help=short display options specific to this package 1445 --help=recursive display the short help of all the included packages 1446 -V, --version display version information and exit 1447 -q, --quiet, --silent do not print \`checking ...' messages 1448 --cache-file=FILE cache test results in FILE [disabled] 1449 -C, --config-cache alias for \`--cache-file=config.cache' 1450 -n, --no-create do not create output files 1451 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1452 1453Installation directories: 1454 --prefix=PREFIX install architecture-independent files in PREFIX 1455 [$ac_default_prefix] 1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1457 [PREFIX] 1458 1459By default, \`make install' will install all the files in 1460\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1461an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1462for instance \`--prefix=\$HOME'. 1463 1464For better control, use the options below. 1465 1466Fine tuning of the installation directories: 1467 --bindir=DIR user executables [EPREFIX/bin] 1468 --sbindir=DIR system admin executables [EPREFIX/sbin] 1469 --libexecdir=DIR program executables [EPREFIX/libexec] 1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1473 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1474 --libdir=DIR object code libraries [EPREFIX/lib] 1475 --includedir=DIR C header files [PREFIX/include] 1476 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1479 --infodir=DIR info documentation [DATAROOTDIR/info] 1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1481 --mandir=DIR man documentation [DATAROOTDIR/man] 1482 --docdir=DIR documentation root [DATAROOTDIR/doc/liborcus] 1483 --htmldir=DIR html documentation [DOCDIR] 1484 --dvidir=DIR dvi documentation [DOCDIR] 1485 --pdfdir=DIR pdf documentation [DOCDIR] 1486 --psdir=DIR ps documentation [DOCDIR] 1487_ACEOF 1488 1489 cat <<\_ACEOF 1490 1491Program names: 1492 --program-prefix=PREFIX prepend PREFIX to installed program names 1493 --program-suffix=SUFFIX append SUFFIX to installed program names 1494 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1495 1496System types: 1497 --build=BUILD configure for building on BUILD [guessed] 1498 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1499_ACEOF 1500fi 1501 1502if test -n "$ac_init_help"; then 1503 case $ac_init_help in 1504 short | recursive ) echo "Configuration of liborcus 0.16.1:";; 1505 esac 1506 cat <<\_ACEOF 1507 1508Optional Features: 1509 --disable-option-checking ignore unrecognized --enable/--with options 1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1512 --enable-silent-rules less verbose build output (undo: "make V=1") 1513 --disable-silent-rules verbose build output (undo: "make V=0") 1514 --enable-dependency-tracking 1515 do not reject slow dependency extractors 1516 --disable-dependency-tracking 1517 speeds up one-time build 1518 --enable-shared[=PKGS] build shared libraries [default=yes] 1519 --enable-static[=PKGS] build static libraries [default=yes] 1520 --enable-fast-install[=PKGS] 1521 optimize for fast installation [default=yes] 1522 --disable-libtool-lock avoid locking (might break parallel builds) 1523 --enable-static-boost Prefer the static boost libraries over the shared 1524 ones [no] 1525 --enable-debug-utils Build with extra checks useful during development. 1526 --enable-debug Build with debug features in mind. 1527 --disable-spreadsheet-model 1528 Disable the spreadsheet model implementation in 1529 orcus. Note that the spreadsheet-specific command 1530 line utilities will not be built when this is 1531 disabled. 1532 --disable-python Disable python bindings 1533 --enable-werror Treat all warnings as errors, useful for development 1534 1535Optional Packages: 1536 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1537 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1538 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1539 both] 1540 --with-aix-soname=aix|svr4|both 1541 shared library versioning (aka "SONAME") variant to 1542 provide on AIX, [default=aix]. 1543 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1544 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1545 compiler's sysroot if not specified). 1546 --with-boost=DIR prefix of Boost 1.36 [guess] 1547 --without-tools Disables building of binary executable tools. 1548 --without-ods-filter Disables the OpenDocument Format spreadsheet import 1549 filter. 1550 --without-xlsx-filter Disables the Microsoft Excel OOXML import filter. 1551 --without-xls-xml-filter 1552 Disables the Microsoft Excel XML import filter. 1553 --without-gnumeric-filter 1554 Disables the gnumeric import filter. The gnumeric 1555 import filter depends on zLib. 1556 --with-cpu-features Enables custom CPU features. 1557 1558Some influential environment variables: 1559 CXX C++ compiler command 1560 CXXFLAGS C++ compiler flags 1561 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1562 nonstandard directory <lib dir> 1563 LIBS libraries to pass to the linker, e.g. -l<library> 1564 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1565 you have headers in a nonstandard directory <include dir> 1566 CC C compiler command 1567 CFLAGS C compiler flags 1568 CPP C preprocessor 1569 LT_SYS_LIBRARY_PATH 1570 User-defined run-time library search path. 1571 CXXCPP C++ preprocessor 1572 PKG_CONFIG path to pkg-config utility 1573 PKG_CONFIG_PATH 1574 directories to add to pkg-config's search path 1575 PKG_CONFIG_LIBDIR 1576 path overriding pkg-config's built-in search path 1577 BOOST_ROOT Location of Boost installation 1578 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config 1579 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config 1580 MDDS_CFLAGS C compiler flags for MDDS, overriding pkg-config 1581 MDDS_LIBS linker flags for MDDS, overriding pkg-config 1582 LIBIXION_CFLAGS 1583 C compiler flags for LIBIXION, overriding pkg-config 1584 LIBIXION_LIBS 1585 linker flags for LIBIXION, overriding pkg-config 1586 PYTHON the Python interpreter 1587 PYTHON_CFLAGS 1588 C compiler flags for PYTHON, overriding pkg-config 1589 PYTHON_LIBS linker flags for PYTHON, overriding pkg-config 1590 1591Use these variables to override the choices made by `configure' or to help 1592it to find libraries and programs with nonstandard names/locations. 1593 1594Report bugs to the package provider. 1595_ACEOF 1596ac_status=$? 1597fi 1598 1599if test "$ac_init_help" = "recursive"; then 1600 # If there are subdirs, report their specific --help. 1601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1602 test -d "$ac_dir" || 1603 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1604 continue 1605 ac_builddir=. 1606 1607case "$ac_dir" in 1608.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1609*) 1610 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1611 # A ".." for each directory in $ac_dir_suffix. 1612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1613 case $ac_top_builddir_sub in 1614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1616 esac ;; 1617esac 1618ac_abs_top_builddir=$ac_pwd 1619ac_abs_builddir=$ac_pwd$ac_dir_suffix 1620# for backward compatibility: 1621ac_top_builddir=$ac_top_build_prefix 1622 1623case $srcdir in 1624 .) # We are building in place. 1625 ac_srcdir=. 1626 ac_top_srcdir=$ac_top_builddir_sub 1627 ac_abs_top_srcdir=$ac_pwd ;; 1628 [\\/]* | ?:[\\/]* ) # Absolute name. 1629 ac_srcdir=$srcdir$ac_dir_suffix; 1630 ac_top_srcdir=$srcdir 1631 ac_abs_top_srcdir=$srcdir ;; 1632 *) # Relative name. 1633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1634 ac_top_srcdir=$ac_top_build_prefix$srcdir 1635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1636esac 1637ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1638 1639 cd "$ac_dir" || { ac_status=$?; continue; } 1640 # Check for guested configure. 1641 if test -f "$ac_srcdir/configure.gnu"; then 1642 echo && 1643 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1644 elif test -f "$ac_srcdir/configure"; then 1645 echo && 1646 $SHELL "$ac_srcdir/configure" --help=recursive 1647 else 1648 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1649 fi || ac_status=$? 1650 cd "$ac_pwd" || { ac_status=$?; break; } 1651 done 1652fi 1653 1654test -n "$ac_init_help" && exit $ac_status 1655if $ac_init_version; then 1656 cat <<\_ACEOF 1657liborcus configure 0.16.1 1658generated by GNU Autoconf 2.69 1659 1660Copyright (C) 2012 Free Software Foundation, Inc. 1661This configure script is free software; the Free Software Foundation 1662gives unlimited permission to copy, distribute and modify it. 1663_ACEOF 1664 exit 1665fi 1666 1667## ------------------------ ## 1668## Autoconf initialization. ## 1669## ------------------------ ## 1670 1671# ac_fn_cxx_try_compile LINENO 1672# ---------------------------- 1673# Try to compile conftest.$ac_ext, and return whether this succeeded. 1674ac_fn_cxx_try_compile () 1675{ 1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1677 rm -f conftest.$ac_objext 1678 if { { ac_try="$ac_compile" 1679case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682esac 1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684$as_echo "$ac_try_echo"; } >&5 1685 (eval "$ac_compile") 2>conftest.err 1686 ac_status=$? 1687 if test -s conftest.err; then 1688 grep -v '^ *+' conftest.err >conftest.er1 1689 cat conftest.er1 >&5 1690 mv -f conftest.er1 conftest.err 1691 fi 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } && { 1694 test -z "$ac_cxx_werror_flag" || 1695 test ! -s conftest.err 1696 } && test -s conftest.$ac_objext; then : 1697 ac_retval=0 1698else 1699 $as_echo "$as_me: failed program was:" >&5 1700sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=1 1703fi 1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1705 as_fn_set_status $ac_retval 1706 1707} # ac_fn_cxx_try_compile 1708 1709# ac_fn_c_try_compile LINENO 1710# -------------------------- 1711# Try to compile conftest.$ac_ext, and return whether this succeeded. 1712ac_fn_c_try_compile () 1713{ 1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1715 rm -f conftest.$ac_objext 1716 if { { ac_try="$ac_compile" 1717case "(($ac_try" in 1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1719 *) ac_try_echo=$ac_try;; 1720esac 1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1722$as_echo "$ac_try_echo"; } >&5 1723 (eval "$ac_compile") 2>conftest.err 1724 ac_status=$? 1725 if test -s conftest.err; then 1726 grep -v '^ *+' conftest.err >conftest.er1 1727 cat conftest.er1 >&5 1728 mv -f conftest.er1 conftest.err 1729 fi 1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1731 test $ac_status = 0; } && { 1732 test -z "$ac_c_werror_flag" || 1733 test ! -s conftest.err 1734 } && test -s conftest.$ac_objext; then : 1735 ac_retval=0 1736else 1737 $as_echo "$as_me: failed program was:" >&5 1738sed 's/^/| /' conftest.$ac_ext >&5 1739 1740 ac_retval=1 1741fi 1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1743 as_fn_set_status $ac_retval 1744 1745} # ac_fn_c_try_compile 1746 1747# ac_fn_c_try_cpp LINENO 1748# ---------------------- 1749# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1750ac_fn_c_try_cpp () 1751{ 1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1753 if { { ac_try="$ac_cpp conftest.$ac_ext" 1754case "(($ac_try" in 1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1756 *) ac_try_echo=$ac_try;; 1757esac 1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1759$as_echo "$ac_try_echo"; } >&5 1760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1761 ac_status=$? 1762 if test -s conftest.err; then 1763 grep -v '^ *+' conftest.err >conftest.er1 1764 cat conftest.er1 >&5 1765 mv -f conftest.er1 conftest.err 1766 fi 1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1768 test $ac_status = 0; } > conftest.i && { 1769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1770 test ! -s conftest.err 1771 }; then : 1772 ac_retval=0 1773else 1774 $as_echo "$as_me: failed program was:" >&5 1775sed 's/^/| /' conftest.$ac_ext >&5 1776 1777 ac_retval=1 1778fi 1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1780 as_fn_set_status $ac_retval 1781 1782} # ac_fn_c_try_cpp 1783 1784# ac_fn_c_try_link LINENO 1785# ----------------------- 1786# Try to link conftest.$ac_ext, and return whether this succeeded. 1787ac_fn_c_try_link () 1788{ 1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1790 rm -f conftest.$ac_objext conftest$ac_exeext 1791 if { { ac_try="$ac_link" 1792case "(($ac_try" in 1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1794 *) ac_try_echo=$ac_try;; 1795esac 1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1797$as_echo "$ac_try_echo"; } >&5 1798 (eval "$ac_link") 2>conftest.err 1799 ac_status=$? 1800 if test -s conftest.err; then 1801 grep -v '^ *+' conftest.err >conftest.er1 1802 cat conftest.er1 >&5 1803 mv -f conftest.er1 conftest.err 1804 fi 1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1806 test $ac_status = 0; } && { 1807 test -z "$ac_c_werror_flag" || 1808 test ! -s conftest.err 1809 } && test -s conftest$ac_exeext && { 1810 test "$cross_compiling" = yes || 1811 test -x conftest$ac_exeext 1812 }; then : 1813 ac_retval=0 1814else 1815 $as_echo "$as_me: failed program was:" >&5 1816sed 's/^/| /' conftest.$ac_ext >&5 1817 1818 ac_retval=1 1819fi 1820 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1821 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1822 # interfere with the next link command; also delete a directory that is 1823 # left behind by Apple's compiler. We do this before executing the actions. 1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1826 as_fn_set_status $ac_retval 1827 1828} # ac_fn_c_try_link 1829 1830# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1831# ------------------------------------------------------- 1832# Tests whether HEADER exists and can be compiled using the include files in 1833# INCLUDES, setting the cache variable VAR accordingly. 1834ac_fn_c_check_header_compile () 1835{ 1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1838$as_echo_n "checking for $2... " >&6; } 1839if eval \${$3+:} false; then : 1840 $as_echo_n "(cached) " >&6 1841else 1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1843/* end confdefs.h. */ 1844$4 1845#include <$2> 1846_ACEOF 1847if ac_fn_c_try_compile "$LINENO"; then : 1848 eval "$3=yes" 1849else 1850 eval "$3=no" 1851fi 1852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1853fi 1854eval ac_res=\$$3 1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1856$as_echo "$ac_res" >&6; } 1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1858 1859} # ac_fn_c_check_header_compile 1860 1861# ac_fn_c_try_run LINENO 1862# ---------------------- 1863# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1864# that executables *can* be run. 1865ac_fn_c_try_run () 1866{ 1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1868 if { { ac_try="$ac_link" 1869case "(($ac_try" in 1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1871 *) ac_try_echo=$ac_try;; 1872esac 1873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1874$as_echo "$ac_try_echo"; } >&5 1875 (eval "$ac_link") 2>&5 1876 ac_status=$? 1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1878 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1879 { { case "(($ac_try" in 1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1881 *) ac_try_echo=$ac_try;; 1882esac 1883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1884$as_echo "$ac_try_echo"; } >&5 1885 (eval "$ac_try") 2>&5 1886 ac_status=$? 1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1888 test $ac_status = 0; }; }; then : 1889 ac_retval=0 1890else 1891 $as_echo "$as_me: program exited with status $ac_status" >&5 1892 $as_echo "$as_me: failed program was:" >&5 1893sed 's/^/| /' conftest.$ac_ext >&5 1894 1895 ac_retval=$ac_status 1896fi 1897 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1899 as_fn_set_status $ac_retval 1900 1901} # ac_fn_c_try_run 1902 1903# ac_fn_c_check_func LINENO FUNC VAR 1904# ---------------------------------- 1905# Tests whether FUNC exists, setting the cache variable VAR accordingly 1906ac_fn_c_check_func () 1907{ 1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1910$as_echo_n "checking for $2... " >&6; } 1911if eval \${$3+:} false; then : 1912 $as_echo_n "(cached) " >&6 1913else 1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1915/* end confdefs.h. */ 1916/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1917 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1918#define $2 innocuous_$2 1919 1920/* System header to define __stub macros and hopefully few prototypes, 1921 which can conflict with char $2 (); below. 1922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1923 <limits.h> exists even on freestanding compilers. */ 1924 1925#ifdef __STDC__ 1926# include <limits.h> 1927#else 1928# include <assert.h> 1929#endif 1930 1931#undef $2 1932 1933/* Override any GCC internal prototype to avoid an error. 1934 Use char because int might match the return type of a GCC 1935 builtin and then its argument prototype would still apply. */ 1936#ifdef __cplusplus 1937extern "C" 1938#endif 1939char $2 (); 1940/* The GNU C library defines this for functions which it implements 1941 to always fail with ENOSYS. Some functions are actually named 1942 something starting with __ and the normal name is an alias. */ 1943#if defined __stub_$2 || defined __stub___$2 1944choke me 1945#endif 1946 1947int 1948main () 1949{ 1950return $2 (); 1951 ; 1952 return 0; 1953} 1954_ACEOF 1955if ac_fn_c_try_link "$LINENO"; then : 1956 eval "$3=yes" 1957else 1958 eval "$3=no" 1959fi 1960rm -f core conftest.err conftest.$ac_objext \ 1961 conftest$ac_exeext conftest.$ac_ext 1962fi 1963eval ac_res=\$$3 1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1965$as_echo "$ac_res" >&6; } 1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1967 1968} # ac_fn_c_check_func 1969 1970# ac_fn_cxx_try_cpp LINENO 1971# ------------------------ 1972# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1973ac_fn_cxx_try_cpp () 1974{ 1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1976 if { { ac_try="$ac_cpp conftest.$ac_ext" 1977case "(($ac_try" in 1978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1979 *) ac_try_echo=$ac_try;; 1980esac 1981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1982$as_echo "$ac_try_echo"; } >&5 1983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1984 ac_status=$? 1985 if test -s conftest.err; then 1986 grep -v '^ *+' conftest.err >conftest.er1 1987 cat conftest.er1 >&5 1988 mv -f conftest.er1 conftest.err 1989 fi 1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1991 test $ac_status = 0; } > conftest.i && { 1992 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1993 test ! -s conftest.err 1994 }; then : 1995 ac_retval=0 1996else 1997 $as_echo "$as_me: failed program was:" >&5 1998sed 's/^/| /' conftest.$ac_ext >&5 1999 2000 ac_retval=1 2001fi 2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2003 as_fn_set_status $ac_retval 2004 2005} # ac_fn_cxx_try_cpp 2006 2007# ac_fn_cxx_try_link LINENO 2008# ------------------------- 2009# Try to link conftest.$ac_ext, and return whether this succeeded. 2010ac_fn_cxx_try_link () 2011{ 2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2013 rm -f conftest.$ac_objext conftest$ac_exeext 2014 if { { ac_try="$ac_link" 2015case "(($ac_try" in 2016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2017 *) ac_try_echo=$ac_try;; 2018esac 2019eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2020$as_echo "$ac_try_echo"; } >&5 2021 (eval "$ac_link") 2>conftest.err 2022 ac_status=$? 2023 if test -s conftest.err; then 2024 grep -v '^ *+' conftest.err >conftest.er1 2025 cat conftest.er1 >&5 2026 mv -f conftest.er1 conftest.err 2027 fi 2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2029 test $ac_status = 0; } && { 2030 test -z "$ac_cxx_werror_flag" || 2031 test ! -s conftest.err 2032 } && test -s conftest$ac_exeext && { 2033 test "$cross_compiling" = yes || 2034 test -x conftest$ac_exeext 2035 }; then : 2036 ac_retval=0 2037else 2038 $as_echo "$as_me: failed program was:" >&5 2039sed 's/^/| /' conftest.$ac_ext >&5 2040 2041 ac_retval=1 2042fi 2043 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2044 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2045 # interfere with the next link command; also delete a directory that is 2046 # left behind by Apple's compiler. We do this before executing the actions. 2047 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2049 as_fn_set_status $ac_retval 2050 2051} # ac_fn_cxx_try_link 2052 2053# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2054# --------------------------------------------------------- 2055# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2056# the include files in INCLUDES and setting the cache variable VAR 2057# accordingly. 2058ac_fn_cxx_check_header_mongrel () 2059{ 2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2061 if eval \${$3+:} false; then : 2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2063$as_echo_n "checking for $2... " >&6; } 2064if eval \${$3+:} false; then : 2065 $as_echo_n "(cached) " >&6 2066fi 2067eval ac_res=\$$3 2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2069$as_echo "$ac_res" >&6; } 2070else 2071 # Is the header compilable? 2072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2073$as_echo_n "checking $2 usability... " >&6; } 2074cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2075/* end confdefs.h. */ 2076$4 2077#include <$2> 2078_ACEOF 2079if ac_fn_cxx_try_compile "$LINENO"; then : 2080 ac_header_compiler=yes 2081else 2082 ac_header_compiler=no 2083fi 2084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2086$as_echo "$ac_header_compiler" >&6; } 2087 2088# Is the header present? 2089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2090$as_echo_n "checking $2 presence... " >&6; } 2091cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2092/* end confdefs.h. */ 2093#include <$2> 2094_ACEOF 2095if ac_fn_cxx_try_cpp "$LINENO"; then : 2096 ac_header_preproc=yes 2097else 2098 ac_header_preproc=no 2099fi 2100rm -f conftest.err conftest.i conftest.$ac_ext 2101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2102$as_echo "$ac_header_preproc" >&6; } 2103 2104# So? What about this header? 2105case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2106 yes:no: ) 2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2108$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2110$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2111 ;; 2112 no:yes:* ) 2113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2114$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2116$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2118$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2120$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2122$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2123 ;; 2124esac 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2126$as_echo_n "checking for $2... " >&6; } 2127if eval \${$3+:} false; then : 2128 $as_echo_n "(cached) " >&6 2129else 2130 eval "$3=\$ac_header_compiler" 2131fi 2132eval ac_res=\$$3 2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2134$as_echo "$ac_res" >&6; } 2135fi 2136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2137 2138} # ac_fn_cxx_check_header_mongrel 2139 2140# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 2141# --------------------------------------------- 2142# Tests whether TYPE exists after having included INCLUDES, setting cache 2143# variable VAR accordingly. 2144ac_fn_cxx_check_type () 2145{ 2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2148$as_echo_n "checking for $2... " >&6; } 2149if eval \${$3+:} false; then : 2150 $as_echo_n "(cached) " >&6 2151else 2152 eval "$3=no" 2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2154/* end confdefs.h. */ 2155$4 2156int 2157main () 2158{ 2159if (sizeof ($2)) 2160 return 0; 2161 ; 2162 return 0; 2163} 2164_ACEOF 2165if ac_fn_cxx_try_compile "$LINENO"; then : 2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2167/* end confdefs.h. */ 2168$4 2169int 2170main () 2171{ 2172if (sizeof (($2))) 2173 return 0; 2174 ; 2175 return 0; 2176} 2177_ACEOF 2178if ac_fn_cxx_try_compile "$LINENO"; then : 2179 2180else 2181 eval "$3=yes" 2182fi 2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2184fi 2185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2186fi 2187eval ac_res=\$$3 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2189$as_echo "$ac_res" >&6; } 2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2191 2192} # ac_fn_cxx_check_type 2193 2194# ac_fn_cxx_try_run LINENO 2195# ------------------------ 2196# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2197# that executables *can* be run. 2198ac_fn_cxx_try_run () 2199{ 2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2201 if { { ac_try="$ac_link" 2202case "(($ac_try" in 2203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2204 *) ac_try_echo=$ac_try;; 2205esac 2206eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2207$as_echo "$ac_try_echo"; } >&5 2208 (eval "$ac_link") 2>&5 2209 ac_status=$? 2210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2211 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2212 { { case "(($ac_try" in 2213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2214 *) ac_try_echo=$ac_try;; 2215esac 2216eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2217$as_echo "$ac_try_echo"; } >&5 2218 (eval "$ac_try") 2>&5 2219 ac_status=$? 2220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2221 test $ac_status = 0; }; }; then : 2222 ac_retval=0 2223else 2224 $as_echo "$as_me: program exited with status $ac_status" >&5 2225 $as_echo "$as_me: failed program was:" >&5 2226sed 's/^/| /' conftest.$ac_ext >&5 2227 2228 ac_retval=$ac_status 2229fi 2230 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2231 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2232 as_fn_set_status $ac_retval 2233 2234} # ac_fn_cxx_try_run 2235 2236# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2237# ---------------------------------------------- 2238# Tries to find the compile-time value of EXPR in a program that includes 2239# INCLUDES, setting VAR accordingly. Returns whether the value could be 2240# computed 2241ac_fn_cxx_compute_int () 2242{ 2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2244 if test "$cross_compiling" = yes; then 2245 # Depending upon the size, compute the lo and hi bounds. 2246cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2247/* end confdefs.h. */ 2248$4 2249int 2250main () 2251{ 2252static int test_array [1 - 2 * !(($2) >= 0)]; 2253test_array [0] = 0; 2254return test_array [0]; 2255 2256 ; 2257 return 0; 2258} 2259_ACEOF 2260if ac_fn_cxx_try_compile "$LINENO"; then : 2261 ac_lo=0 ac_mid=0 2262 while :; do 2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2264/* end confdefs.h. */ 2265$4 2266int 2267main () 2268{ 2269static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2270test_array [0] = 0; 2271return test_array [0]; 2272 2273 ; 2274 return 0; 2275} 2276_ACEOF 2277if ac_fn_cxx_try_compile "$LINENO"; then : 2278 ac_hi=$ac_mid; break 2279else 2280 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2281 if test $ac_lo -le $ac_mid; then 2282 ac_lo= ac_hi= 2283 break 2284 fi 2285 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2286fi 2287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2288 done 2289else 2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2291/* end confdefs.h. */ 2292$4 2293int 2294main () 2295{ 2296static int test_array [1 - 2 * !(($2) < 0)]; 2297test_array [0] = 0; 2298return test_array [0]; 2299 2300 ; 2301 return 0; 2302} 2303_ACEOF 2304if ac_fn_cxx_try_compile "$LINENO"; then : 2305 ac_hi=-1 ac_mid=-1 2306 while :; do 2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2308/* end confdefs.h. */ 2309$4 2310int 2311main () 2312{ 2313static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2314test_array [0] = 0; 2315return test_array [0]; 2316 2317 ; 2318 return 0; 2319} 2320_ACEOF 2321if ac_fn_cxx_try_compile "$LINENO"; then : 2322 ac_lo=$ac_mid; break 2323else 2324 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2325 if test $ac_mid -le $ac_hi; then 2326 ac_lo= ac_hi= 2327 break 2328 fi 2329 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2330fi 2331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2332 done 2333else 2334 ac_lo= ac_hi= 2335fi 2336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2337fi 2338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2339# Binary search between lo and hi bounds. 2340while test "x$ac_lo" != "x$ac_hi"; do 2341 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2343/* end confdefs.h. */ 2344$4 2345int 2346main () 2347{ 2348static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2349test_array [0] = 0; 2350return test_array [0]; 2351 2352 ; 2353 return 0; 2354} 2355_ACEOF 2356if ac_fn_cxx_try_compile "$LINENO"; then : 2357 ac_hi=$ac_mid 2358else 2359 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2360fi 2361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2362done 2363case $ac_lo in #(( 2364?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2365'') ac_retval=1 ;; 2366esac 2367 else 2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2369/* end confdefs.h. */ 2370$4 2371static long int longval () { return $2; } 2372static unsigned long int ulongval () { return $2; } 2373#include <stdio.h> 2374#include <stdlib.h> 2375int 2376main () 2377{ 2378 2379 FILE *f = fopen ("conftest.val", "w"); 2380 if (! f) 2381 return 1; 2382 if (($2) < 0) 2383 { 2384 long int i = longval (); 2385 if (i != ($2)) 2386 return 1; 2387 fprintf (f, "%ld", i); 2388 } 2389 else 2390 { 2391 unsigned long int i = ulongval (); 2392 if (i != ($2)) 2393 return 1; 2394 fprintf (f, "%lu", i); 2395 } 2396 /* Do not output a trailing newline, as this causes \r\n confusion 2397 on some platforms. */ 2398 return ferror (f) || fclose (f) != 0; 2399 2400 ; 2401 return 0; 2402} 2403_ACEOF 2404if ac_fn_cxx_try_run "$LINENO"; then : 2405 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2406else 2407 ac_retval=1 2408fi 2409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2410 conftest.$ac_objext conftest.beam conftest.$ac_ext 2411rm -f conftest.val 2412 2413 fi 2414 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2415 as_fn_set_status $ac_retval 2416 2417} # ac_fn_cxx_compute_int 2418 2419# ac_fn_cxx_check_func LINENO FUNC VAR 2420# ------------------------------------ 2421# Tests whether FUNC exists, setting the cache variable VAR accordingly 2422ac_fn_cxx_check_func () 2423{ 2424 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2426$as_echo_n "checking for $2... " >&6; } 2427if eval \${$3+:} false; then : 2428 $as_echo_n "(cached) " >&6 2429else 2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2431/* end confdefs.h. */ 2432/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2433 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2434#define $2 innocuous_$2 2435 2436/* System header to define __stub macros and hopefully few prototypes, 2437 which can conflict with char $2 (); below. 2438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2439 <limits.h> exists even on freestanding compilers. */ 2440 2441#ifdef __STDC__ 2442# include <limits.h> 2443#else 2444# include <assert.h> 2445#endif 2446 2447#undef $2 2448 2449/* Override any GCC internal prototype to avoid an error. 2450 Use char because int might match the return type of a GCC 2451 builtin and then its argument prototype would still apply. */ 2452#ifdef __cplusplus 2453extern "C" 2454#endif 2455char $2 (); 2456/* The GNU C library defines this for functions which it implements 2457 to always fail with ENOSYS. Some functions are actually named 2458 something starting with __ and the normal name is an alias. */ 2459#if defined __stub_$2 || defined __stub___$2 2460choke me 2461#endif 2462 2463int 2464main () 2465{ 2466return $2 (); 2467 ; 2468 return 0; 2469} 2470_ACEOF 2471if ac_fn_cxx_try_link "$LINENO"; then : 2472 eval "$3=yes" 2473else 2474 eval "$3=no" 2475fi 2476rm -f core conftest.err conftest.$ac_objext \ 2477 conftest$ac_exeext conftest.$ac_ext 2478fi 2479eval ac_res=\$$3 2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2481$as_echo "$ac_res" >&6; } 2482 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2483 2484} # ac_fn_cxx_check_func 2485cat >config.log <<_ACEOF 2486This file contains any messages produced by compilers while 2487running configure, to aid debugging if configure makes a mistake. 2488 2489It was created by liborcus $as_me 0.16.1, which was 2490generated by GNU Autoconf 2.69. Invocation command line was 2491 2492 $ $0 $@ 2493 2494_ACEOF 2495exec 5>>config.log 2496{ 2497cat <<_ASUNAME 2498## --------- ## 2499## Platform. ## 2500## --------- ## 2501 2502hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2503uname -m = `(uname -m) 2>/dev/null || echo unknown` 2504uname -r = `(uname -r) 2>/dev/null || echo unknown` 2505uname -s = `(uname -s) 2>/dev/null || echo unknown` 2506uname -v = `(uname -v) 2>/dev/null || echo unknown` 2507 2508/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2509/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2510 2511/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2512/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2513/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2514/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2515/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2516/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2517/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2518 2519_ASUNAME 2520 2521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2522for as_dir in $PATH 2523do 2524 IFS=$as_save_IFS 2525 test -z "$as_dir" && as_dir=. 2526 $as_echo "PATH: $as_dir" 2527 done 2528IFS=$as_save_IFS 2529 2530} >&5 2531 2532cat >&5 <<_ACEOF 2533 2534 2535## ----------- ## 2536## Core tests. ## 2537## ----------- ## 2538 2539_ACEOF 2540 2541 2542# Keep a trace of the command line. 2543# Strip out --no-create and --no-recursion so they do not pile up. 2544# Strip out --silent because we don't want to record it for future runs. 2545# Also quote any args containing shell meta-characters. 2546# Make two passes to allow for proper duplicate-argument suppression. 2547ac_configure_args= 2548ac_configure_args0= 2549ac_configure_args1= 2550ac_must_keep_next=false 2551for ac_pass in 1 2 2552do 2553 for ac_arg 2554 do 2555 case $ac_arg in 2556 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2557 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2558 | -silent | --silent | --silen | --sile | --sil) 2559 continue ;; 2560 *\'*) 2561 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2562 esac 2563 case $ac_pass in 2564 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2565 2) 2566 as_fn_append ac_configure_args1 " '$ac_arg'" 2567 if test $ac_must_keep_next = true; then 2568 ac_must_keep_next=false # Got value, back to normal. 2569 else 2570 case $ac_arg in 2571 *=* | --config-cache | -C | -disable-* | --disable-* \ 2572 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2573 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2574 | -with-* | --with-* | -without-* | --without-* | --x) 2575 case "$ac_configure_args0 " in 2576 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2577 esac 2578 ;; 2579 -* ) ac_must_keep_next=true ;; 2580 esac 2581 fi 2582 as_fn_append ac_configure_args " '$ac_arg'" 2583 ;; 2584 esac 2585 done 2586done 2587{ ac_configure_args0=; unset ac_configure_args0;} 2588{ ac_configure_args1=; unset ac_configure_args1;} 2589 2590# When interrupted or exit'd, cleanup temporary files, and complete 2591# config.log. We remove comments because anyway the quotes in there 2592# would cause problems or look ugly. 2593# WARNING: Use '\'' to represent an apostrophe within the trap. 2594# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2595trap 'exit_status=$? 2596 # Save into config.log some information that might help in debugging. 2597 { 2598 echo 2599 2600 $as_echo "## ---------------- ## 2601## Cache variables. ## 2602## ---------------- ##" 2603 echo 2604 # The following way of writing the cache mishandles newlines in values, 2605( 2606 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2607 eval ac_val=\$$ac_var 2608 case $ac_val in #( 2609 *${as_nl}*) 2610 case $ac_var in #( 2611 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2612$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2613 esac 2614 case $ac_var in #( 2615 _ | IFS | as_nl) ;; #( 2616 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2617 *) { eval $ac_var=; unset $ac_var;} ;; 2618 esac ;; 2619 esac 2620 done 2621 (set) 2>&1 | 2622 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2623 *${as_nl}ac_space=\ *) 2624 sed -n \ 2625 "s/'\''/'\''\\\\'\'''\''/g; 2626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2627 ;; #( 2628 *) 2629 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2630 ;; 2631 esac | 2632 sort 2633) 2634 echo 2635 2636 $as_echo "## ----------------- ## 2637## Output variables. ## 2638## ----------------- ##" 2639 echo 2640 for ac_var in $ac_subst_vars 2641 do 2642 eval ac_val=\$$ac_var 2643 case $ac_val in 2644 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2645 esac 2646 $as_echo "$ac_var='\''$ac_val'\''" 2647 done | sort 2648 echo 2649 2650 if test -n "$ac_subst_files"; then 2651 $as_echo "## ------------------- ## 2652## File substitutions. ## 2653## ------------------- ##" 2654 echo 2655 for ac_var in $ac_subst_files 2656 do 2657 eval ac_val=\$$ac_var 2658 case $ac_val in 2659 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2660 esac 2661 $as_echo "$ac_var='\''$ac_val'\''" 2662 done | sort 2663 echo 2664 fi 2665 2666 if test -s confdefs.h; then 2667 $as_echo "## ----------- ## 2668## confdefs.h. ## 2669## ----------- ##" 2670 echo 2671 cat confdefs.h 2672 echo 2673 fi 2674 test "$ac_signal" != 0 && 2675 $as_echo "$as_me: caught signal $ac_signal" 2676 $as_echo "$as_me: exit $exit_status" 2677 } >&5 2678 rm -f core *.core core.conftest.* && 2679 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2680 exit $exit_status 2681' 0 2682for ac_signal in 1 2 13 15; do 2683 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2684done 2685ac_signal=0 2686 2687# confdefs.h avoids OS command line length limits that DEFS can exceed. 2688rm -f -r conftest* confdefs.h 2689 2690$as_echo "/* confdefs.h */" > confdefs.h 2691 2692# Predefined preprocessor variables. 2693 2694cat >>confdefs.h <<_ACEOF 2695#define PACKAGE_NAME "$PACKAGE_NAME" 2696_ACEOF 2697 2698cat >>confdefs.h <<_ACEOF 2699#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2700_ACEOF 2701 2702cat >>confdefs.h <<_ACEOF 2703#define PACKAGE_VERSION "$PACKAGE_VERSION" 2704_ACEOF 2705 2706cat >>confdefs.h <<_ACEOF 2707#define PACKAGE_STRING "$PACKAGE_STRING" 2708_ACEOF 2709 2710cat >>confdefs.h <<_ACEOF 2711#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2712_ACEOF 2713 2714cat >>confdefs.h <<_ACEOF 2715#define PACKAGE_URL "$PACKAGE_URL" 2716_ACEOF 2717 2718 2719# Let the site file select an alternate cache file if it wants to. 2720# Prefer an explicitly selected file to automatically selected ones. 2721ac_site_file1=NONE 2722ac_site_file2=NONE 2723if test -n "$CONFIG_SITE"; then 2724 # We do not want a PATH search for config.site. 2725 case $CONFIG_SITE in #(( 2726 -*) ac_site_file1=./$CONFIG_SITE;; 2727 */*) ac_site_file1=$CONFIG_SITE;; 2728 *) ac_site_file1=./$CONFIG_SITE;; 2729 esac 2730elif test "x$prefix" != xNONE; then 2731 ac_site_file1=$prefix/share/config.site 2732 ac_site_file2=$prefix/etc/config.site 2733else 2734 ac_site_file1=$ac_default_prefix/share/config.site 2735 ac_site_file2=$ac_default_prefix/etc/config.site 2736fi 2737for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2738do 2739 test "x$ac_site_file" = xNONE && continue 2740 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2741 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2742$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2743 sed 's/^/| /' "$ac_site_file" >&5 2744 . "$ac_site_file" \ 2745 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2747as_fn_error $? "failed to load site script $ac_site_file 2748See \`config.log' for more details" "$LINENO" 5; } 2749 fi 2750done 2751 2752if test -r "$cache_file"; then 2753 # Some versions of bash will fail to source /dev/null (special files 2754 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2755 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2756 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2757$as_echo "$as_me: loading cache $cache_file" >&6;} 2758 case $cache_file in 2759 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2760 *) . "./$cache_file";; 2761 esac 2762 fi 2763else 2764 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2765$as_echo "$as_me: creating cache $cache_file" >&6;} 2766 >$cache_file 2767fi 2768 2769# Check that the precious variables saved in the cache have kept the same 2770# value. 2771ac_cache_corrupted=false 2772for ac_var in $ac_precious_vars; do 2773 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2774 eval ac_new_set=\$ac_env_${ac_var}_set 2775 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2776 eval ac_new_val=\$ac_env_${ac_var}_value 2777 case $ac_old_set,$ac_new_set in 2778 set,) 2779 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2780$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2781 ac_cache_corrupted=: ;; 2782 ,set) 2783 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2784$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2785 ac_cache_corrupted=: ;; 2786 ,);; 2787 *) 2788 if test "x$ac_old_val" != "x$ac_new_val"; then 2789 # differences in whitespace do not lead to failure. 2790 ac_old_val_w=`echo x $ac_old_val` 2791 ac_new_val_w=`echo x $ac_new_val` 2792 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2793 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2794$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2795 ac_cache_corrupted=: 2796 else 2797 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2798$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2799 eval $ac_var=\$ac_old_val 2800 fi 2801 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2802$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2803 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2804$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2805 fi;; 2806 esac 2807 # Pass precious variables to config.status. 2808 if test "$ac_new_set" = set; then 2809 case $ac_new_val in 2810 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2811 *) ac_arg=$ac_var=$ac_new_val ;; 2812 esac 2813 case " $ac_configure_args " in 2814 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2815 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2816 esac 2817 fi 2818done 2819if $ac_cache_corrupted; then 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2823$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2824 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2825fi 2826## -------------------- ## 2827## Main body of script. ## 2828## -------------------- ## 2829 2830ac_ext=c 2831ac_cpp='$CPP $CPPFLAGS' 2832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2834ac_compiler_gnu=$ac_cv_c_compiler_gnu 2835 2836 2837 2838 2839ac_config_headers="$ac_config_headers config.h" 2840 2841am__api_version='1.16' 2842 2843ac_aux_dir= 2844for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2845 if test -f "$ac_dir/install-sh"; then 2846 ac_aux_dir=$ac_dir 2847 ac_install_sh="$ac_aux_dir/install-sh -c" 2848 break 2849 elif test -f "$ac_dir/install.sh"; then 2850 ac_aux_dir=$ac_dir 2851 ac_install_sh="$ac_aux_dir/install.sh -c" 2852 break 2853 elif test -f "$ac_dir/shtool"; then 2854 ac_aux_dir=$ac_dir 2855 ac_install_sh="$ac_aux_dir/shtool install -c" 2856 break 2857 fi 2858done 2859if test -z "$ac_aux_dir"; then 2860 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2861fi 2862 2863# These three variables are undocumented and unsupported, 2864# and are intended to be withdrawn in a future Autoconf release. 2865# They can cause serious problems if a builder's source tree is in a directory 2866# whose full name contains unusual characters. 2867ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2868ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2869ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2870 2871 2872# Find a good install program. We prefer a C program (faster), 2873# so one script is as good as another. But avoid the broken or 2874# incompatible versions: 2875# SysV /etc/install, /usr/sbin/install 2876# SunOS /usr/etc/install 2877# IRIX /sbin/install 2878# AIX /bin/install 2879# AmigaOS /C/install, which installs bootblocks on floppy discs 2880# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2881# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2882# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2883# OS/2's system install, which has a completely different semantic 2884# ./install, which can be erroneously created by make from ./install.sh. 2885# Reject install programs that cannot install multiple files. 2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2887$as_echo_n "checking for a BSD-compatible install... " >&6; } 2888if test -z "$INSTALL"; then 2889if ${ac_cv_path_install+:} false; then : 2890 $as_echo_n "(cached) " >&6 2891else 2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2893for as_dir in $PATH 2894do 2895 IFS=$as_save_IFS 2896 test -z "$as_dir" && as_dir=. 2897 # Account for people who put trailing slashes in PATH elements. 2898case $as_dir/ in #(( 2899 ./ | .// | /[cC]/* | \ 2900 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2901 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2902 /usr/ucb/* ) ;; 2903 *) 2904 # OSF1 and SCO ODT 3.0 have their own names for install. 2905 # Don't use installbsd from OSF since it installs stuff as root 2906 # by default. 2907 for ac_prog in ginstall scoinst install; do 2908 for ac_exec_ext in '' $ac_executable_extensions; do 2909 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2910 if test $ac_prog = install && 2911 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2912 # AIX install. It has an incompatible calling convention. 2913 : 2914 elif test $ac_prog = install && 2915 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2916 # program-specific install script used by HP pwplus--don't use. 2917 : 2918 else 2919 rm -rf conftest.one conftest.two conftest.dir 2920 echo one > conftest.one 2921 echo two > conftest.two 2922 mkdir conftest.dir 2923 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2924 test -s conftest.one && test -s conftest.two && 2925 test -s conftest.dir/conftest.one && 2926 test -s conftest.dir/conftest.two 2927 then 2928 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2929 break 3 2930 fi 2931 fi 2932 fi 2933 done 2934 done 2935 ;; 2936esac 2937 2938 done 2939IFS=$as_save_IFS 2940 2941rm -rf conftest.one conftest.two conftest.dir 2942 2943fi 2944 if test "${ac_cv_path_install+set}" = set; then 2945 INSTALL=$ac_cv_path_install 2946 else 2947 # As a last resort, use the slow shell script. Don't cache a 2948 # value for INSTALL within a source directory, because that will 2949 # break other packages using the cache if that directory is 2950 # removed, or if the value is a relative name. 2951 INSTALL=$ac_install_sh 2952 fi 2953fi 2954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2955$as_echo "$INSTALL" >&6; } 2956 2957# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2958# It thinks the first close brace ends the variable substitution. 2959test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2960 2961test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2962 2963test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2964 2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2966$as_echo_n "checking whether build environment is sane... " >&6; } 2967# Reject unsafe characters in $srcdir or the absolute working directory 2968# name. Accept space and tab only in the latter. 2969am_lf=' 2970' 2971case `pwd` in 2972 *[\\\"\#\$\&\'\`$am_lf]*) 2973 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2974esac 2975case $srcdir in 2976 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2977 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2978esac 2979 2980# Do 'set' in a subshell so we don't clobber the current shell's 2981# arguments. Must try -L first in case configure is actually a 2982# symlink; some systems play weird games with the mod time of symlinks 2983# (eg FreeBSD returns the mod time of the symlink's containing 2984# directory). 2985if ( 2986 am_has_slept=no 2987 for am_try in 1 2; do 2988 echo "timestamp, slept: $am_has_slept" > conftest.file 2989 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2990 if test "$*" = "X"; then 2991 # -L didn't work. 2992 set X `ls -t "$srcdir/configure" conftest.file` 2993 fi 2994 if test "$*" != "X $srcdir/configure conftest.file" \ 2995 && test "$*" != "X conftest.file $srcdir/configure"; then 2996 2997 # If neither matched, then we have a broken ls. This can happen 2998 # if, for instance, CONFIG_SHELL is bash and it inherits a 2999 # broken ls alias from the environment. This has actually 3000 # happened. Such a system could not be considered "sane". 3001 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3002 alias in your environment" "$LINENO" 5 3003 fi 3004 if test "$2" = conftest.file || test $am_try -eq 2; then 3005 break 3006 fi 3007 # Just in case. 3008 sleep 1 3009 am_has_slept=yes 3010 done 3011 test "$2" = conftest.file 3012 ) 3013then 3014 # Ok. 3015 : 3016else 3017 as_fn_error $? "newly created file is older than distributed files! 3018Check your system clock" "$LINENO" 5 3019fi 3020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3021$as_echo "yes" >&6; } 3022# If we didn't sleep, we still need to ensure time stamps of config.status and 3023# generated files are strictly newer. 3024am_sleep_pid= 3025if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3026 ( sleep 1 ) & 3027 am_sleep_pid=$! 3028fi 3029 3030rm -f conftest.file 3031 3032test "$program_prefix" != NONE && 3033 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3034# Use a double $ so make ignores it. 3035test "$program_suffix" != NONE && 3036 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3037# Double any \ or $. 3038# By default was `s,x,x', remove it if useless. 3039ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3040program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3041 3042# Expand $ac_aux_dir to an absolute path. 3043am_aux_dir=`cd "$ac_aux_dir" && pwd` 3044 3045if test x"${MISSING+set}" != xset; then 3046 case $am_aux_dir in 3047 *\ * | *\ *) 3048 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3049 *) 3050 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3051 esac 3052fi 3053# Use eval to expand $SHELL 3054if eval "$MISSING --is-lightweight"; then 3055 am_missing_run="$MISSING " 3056else 3057 am_missing_run= 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3059$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3060fi 3061 3062if test x"${install_sh+set}" != xset; then 3063 case $am_aux_dir in 3064 *\ * | *\ *) 3065 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3066 *) 3067 install_sh="\${SHELL} $am_aux_dir/install-sh" 3068 esac 3069fi 3070 3071# Installed binaries are usually stripped using 'strip' when the user 3072# run "make install-strip". However 'strip' might not be the right 3073# tool to use in cross-compilation environments, therefore Automake 3074# will honor the 'STRIP' environment variable to overrule this program. 3075if test "$cross_compiling" != no; then 3076 if test -n "$ac_tool_prefix"; then 3077 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3078set dummy ${ac_tool_prefix}strip; ac_word=$2 3079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3080$as_echo_n "checking for $ac_word... " >&6; } 3081if ${ac_cv_prog_STRIP+:} false; then : 3082 $as_echo_n "(cached) " >&6 3083else 3084 if test -n "$STRIP"; then 3085 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3086else 3087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3088for as_dir in $PATH 3089do 3090 IFS=$as_save_IFS 3091 test -z "$as_dir" && as_dir=. 3092 for ac_exec_ext in '' $ac_executable_extensions; do 3093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3094 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3096 break 2 3097 fi 3098done 3099 done 3100IFS=$as_save_IFS 3101 3102fi 3103fi 3104STRIP=$ac_cv_prog_STRIP 3105if test -n "$STRIP"; then 3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3107$as_echo "$STRIP" >&6; } 3108else 3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3110$as_echo "no" >&6; } 3111fi 3112 3113 3114fi 3115if test -z "$ac_cv_prog_STRIP"; then 3116 ac_ct_STRIP=$STRIP 3117 # Extract the first word of "strip", so it can be a program name with args. 3118set dummy strip; ac_word=$2 3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3120$as_echo_n "checking for $ac_word... " >&6; } 3121if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3122 $as_echo_n "(cached) " >&6 3123else 3124 if test -n "$ac_ct_STRIP"; then 3125 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3126else 3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3128for as_dir in $PATH 3129do 3130 IFS=$as_save_IFS 3131 test -z "$as_dir" && as_dir=. 3132 for ac_exec_ext in '' $ac_executable_extensions; do 3133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3134 ac_cv_prog_ac_ct_STRIP="strip" 3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3136 break 2 3137 fi 3138done 3139 done 3140IFS=$as_save_IFS 3141 3142fi 3143fi 3144ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3145if test -n "$ac_ct_STRIP"; then 3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3147$as_echo "$ac_ct_STRIP" >&6; } 3148else 3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3150$as_echo "no" >&6; } 3151fi 3152 3153 if test "x$ac_ct_STRIP" = x; then 3154 STRIP=":" 3155 else 3156 case $cross_compiling:$ac_tool_warned in 3157yes:) 3158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3160ac_tool_warned=yes ;; 3161esac 3162 STRIP=$ac_ct_STRIP 3163 fi 3164else 3165 STRIP="$ac_cv_prog_STRIP" 3166fi 3167 3168fi 3169INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3170 3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3172$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3173if test -z "$MKDIR_P"; then 3174 if ${ac_cv_path_mkdir+:} false; then : 3175 $as_echo_n "(cached) " >&6 3176else 3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3178for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3179do 3180 IFS=$as_save_IFS 3181 test -z "$as_dir" && as_dir=. 3182 for ac_prog in mkdir gmkdir; do 3183 for ac_exec_ext in '' $ac_executable_extensions; do 3184 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3185 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3186 'mkdir (GNU coreutils) '* | \ 3187 'mkdir (coreutils) '* | \ 3188 'mkdir (fileutils) '4.1*) 3189 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3190 break 3;; 3191 esac 3192 done 3193 done 3194 done 3195IFS=$as_save_IFS 3196 3197fi 3198 3199 test -d ./--version && rmdir ./--version 3200 if test "${ac_cv_path_mkdir+set}" = set; then 3201 MKDIR_P="$ac_cv_path_mkdir -p" 3202 else 3203 # As a last resort, use the slow shell script. Don't cache a 3204 # value for MKDIR_P within a source directory, because that will 3205 # break other packages using the cache if that directory is 3206 # removed, or if the value is a relative name. 3207 MKDIR_P="$ac_install_sh -d" 3208 fi 3209fi 3210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3211$as_echo "$MKDIR_P" >&6; } 3212 3213for ac_prog in gawk mawk nawk awk 3214do 3215 # Extract the first word of "$ac_prog", so it can be a program name with args. 3216set dummy $ac_prog; ac_word=$2 3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3218$as_echo_n "checking for $ac_word... " >&6; } 3219if ${ac_cv_prog_AWK+:} false; then : 3220 $as_echo_n "(cached) " >&6 3221else 3222 if test -n "$AWK"; then 3223 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3224else 3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3226for as_dir in $PATH 3227do 3228 IFS=$as_save_IFS 3229 test -z "$as_dir" && as_dir=. 3230 for ac_exec_ext in '' $ac_executable_extensions; do 3231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3232 ac_cv_prog_AWK="$ac_prog" 3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3234 break 2 3235 fi 3236done 3237 done 3238IFS=$as_save_IFS 3239 3240fi 3241fi 3242AWK=$ac_cv_prog_AWK 3243if test -n "$AWK"; then 3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3245$as_echo "$AWK" >&6; } 3246else 3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3248$as_echo "no" >&6; } 3249fi 3250 3251 3252 test -n "$AWK" && break 3253done 3254 3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3256$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3257set x ${MAKE-make} 3258ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3259if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3260 $as_echo_n "(cached) " >&6 3261else 3262 cat >conftest.make <<\_ACEOF 3263SHELL = /bin/sh 3264all: 3265 @echo '@@@%%%=$(MAKE)=@@@%%%' 3266_ACEOF 3267# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3268case `${MAKE-make} -f conftest.make 2>/dev/null` in 3269 *@@@%%%=?*=@@@%%%*) 3270 eval ac_cv_prog_make_${ac_make}_set=yes;; 3271 *) 3272 eval ac_cv_prog_make_${ac_make}_set=no;; 3273esac 3274rm -f conftest.make 3275fi 3276if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3278$as_echo "yes" >&6; } 3279 SET_MAKE= 3280else 3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3282$as_echo "no" >&6; } 3283 SET_MAKE="MAKE=${MAKE-make}" 3284fi 3285 3286rm -rf .tst 2>/dev/null 3287mkdir .tst 2>/dev/null 3288if test -d .tst; then 3289 am__leading_dot=. 3290else 3291 am__leading_dot=_ 3292fi 3293rmdir .tst 2>/dev/null 3294 3295# Check whether --enable-silent-rules was given. 3296if test "${enable_silent_rules+set}" = set; then : 3297 enableval=$enable_silent_rules; 3298fi 3299 3300case $enable_silent_rules in # ((( 3301 yes) AM_DEFAULT_VERBOSITY=0;; 3302 no) AM_DEFAULT_VERBOSITY=1;; 3303 *) AM_DEFAULT_VERBOSITY=1;; 3304esac 3305am_make=${MAKE-make} 3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3307$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3308if ${am_cv_make_support_nested_variables+:} false; then : 3309 $as_echo_n "(cached) " >&6 3310else 3311 if $as_echo 'TRUE=$(BAR$(V)) 3312BAR0=false 3313BAR1=true 3314V=1 3315am__doit: 3316 @$(TRUE) 3317.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3318 am_cv_make_support_nested_variables=yes 3319else 3320 am_cv_make_support_nested_variables=no 3321fi 3322fi 3323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3324$as_echo "$am_cv_make_support_nested_variables" >&6; } 3325if test $am_cv_make_support_nested_variables = yes; then 3326 AM_V='$(V)' 3327 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3328else 3329 AM_V=$AM_DEFAULT_VERBOSITY 3330 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3331fi 3332AM_BACKSLASH='\' 3333 3334if test "`cd $srcdir && pwd`" != "`pwd`"; then 3335 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3336 # is not polluted with repeated "-I." 3337 am__isrc=' -I$(srcdir)' 3338 # test to see if srcdir already configured 3339 if test -f $srcdir/config.status; then 3340 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3341 fi 3342fi 3343 3344# test whether we have cygpath 3345if test -z "$CYGPATH_W"; then 3346 if (cygpath --version) >/dev/null 2>/dev/null; then 3347 CYGPATH_W='cygpath -w' 3348 else 3349 CYGPATH_W=echo 3350 fi 3351fi 3352 3353 3354# Define the identity of the package. 3355 PACKAGE='liborcus' 3356 VERSION='0.16.1' 3357 3358 3359cat >>confdefs.h <<_ACEOF 3360#define PACKAGE "$PACKAGE" 3361_ACEOF 3362 3363 3364cat >>confdefs.h <<_ACEOF 3365#define VERSION "$VERSION" 3366_ACEOF 3367 3368# Some tools Automake needs. 3369 3370ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3371 3372 3373AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3374 3375 3376AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3377 3378 3379AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3380 3381 3382MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3383 3384# For better backward compatibility. To be removed once Automake 1.9.x 3385# dies out for good. For more background, see: 3386# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3387# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3388mkdir_p='$(MKDIR_P)' 3389 3390# We need awk for the "check" target (and possibly the TAP driver). The 3391# system "awk" is bad on some platforms. 3392# Always define AMTAR for backward compatibility. Yes, it's still used 3393# in the wild :-( We should find a proper way to deprecate it ... 3394AMTAR='$${TAR-tar}' 3395 3396 3397# We'll loop over all known methods to create a tar archive until one works. 3398_am_tools='gnutar pax cpio none' 3399 3400am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3401 3402 3403 3404 3405 3406 3407# POSIX will say in a future version that running "rm -f" with no argument 3408# is OK; and we want to be able to make that assumption in our Makefile 3409# recipes. So use an aggressive probe to check that the usage we want is 3410# actually supported "in the wild" to an acceptable degree. 3411# See automake bug#10828. 3412# To make any issue more visible, cause the running configure to be aborted 3413# by default if the 'rm' program in use doesn't match our expectations; the 3414# user can still override this though. 3415if rm -f && rm -fr && rm -rf; then : OK; else 3416 cat >&2 <<'END' 3417Oops! 3418 3419Your 'rm' program seems unable to run without file operands specified 3420on the command line, even when the '-f' option is present. This is contrary 3421to the behaviour of most rm programs out there, and not conforming with 3422the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3423 3424Please tell bug-automake@gnu.org about your system, including the value 3425of your $PATH and any error possibly output before this message. This 3426can help us improve future automake versions. 3427 3428END 3429 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3430 echo 'Configuration will proceed anyway, since you have set the' >&2 3431 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3432 echo >&2 3433 else 3434 cat >&2 <<'END' 3435Aborting the configuration process, to ensure you take notice of the issue. 3436 3437You can download and install GNU coreutils to get an 'rm' implementation 3438that behaves properly: <https://www.gnu.org/software/coreutils/>. 3439 3440If you want to complete the configuration process using your problematic 3441'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3442to "yes", and re-run configure. 3443 3444END 3445 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3446 fi 3447fi 3448 3449# Check whether --enable-silent-rules was given. 3450if test "${enable_silent_rules+set}" = set; then : 3451 enableval=$enable_silent_rules; 3452fi 3453 3454case $enable_silent_rules in # ((( 3455 yes) AM_DEFAULT_VERBOSITY=0;; 3456 no) AM_DEFAULT_VERBOSITY=1;; 3457 *) AM_DEFAULT_VERBOSITY=0;; 3458esac 3459am_make=${MAKE-make} 3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3461$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3462if ${am_cv_make_support_nested_variables+:} false; then : 3463 $as_echo_n "(cached) " >&6 3464else 3465 if $as_echo 'TRUE=$(BAR$(V)) 3466BAR0=false 3467BAR1=true 3468V=1 3469am__doit: 3470 @$(TRUE) 3471.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3472 am_cv_make_support_nested_variables=yes 3473else 3474 am_cv_make_support_nested_variables=no 3475fi 3476fi 3477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3478$as_echo "$am_cv_make_support_nested_variables" >&6; } 3479if test $am_cv_make_support_nested_variables = yes; then 3480 AM_V='$(V)' 3481 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3482else 3483 AM_V=$AM_DEFAULT_VERBOSITY 3484 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3485fi 3486AM_BACKSLASH='\' 3487 3488ac_ext=cpp 3489ac_cpp='$CXXCPP $CPPFLAGS' 3490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3493 3494DEPDIR="${am__leading_dot}deps" 3495 3496ac_config_commands="$ac_config_commands depfiles" 3497 3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3499$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3500cat > confinc.mk << 'END' 3501am__doit: 3502 @echo this is the am__doit target >confinc.out 3503.PHONY: am__doit 3504END 3505am__include="#" 3506am__quote= 3507# BSD make does it like this. 3508echo '.include "confinc.mk" # ignored' > confmf.BSD 3509# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3510echo 'include confinc.mk # ignored' > confmf.GNU 3511_am_result=no 3512for s in GNU BSD; do 3513 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3514 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3515 ac_status=$? 3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3517 (exit $ac_status); } 3518 case $?:`cat confinc.out 2>/dev/null` in #( 3519 '0:this is the am__doit target') : 3520 case $s in #( 3521 BSD) : 3522 am__include='.include' am__quote='"' ;; #( 3523 *) : 3524 am__include='include' am__quote='' ;; 3525esac ;; #( 3526 *) : 3527 ;; 3528esac 3529 if test "$am__include" != "#"; then 3530 _am_result="yes ($s style)" 3531 break 3532 fi 3533done 3534rm -f confinc.* confmf.* 3535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3536$as_echo "${_am_result}" >&6; } 3537 3538# Check whether --enable-dependency-tracking was given. 3539if test "${enable_dependency_tracking+set}" = set; then : 3540 enableval=$enable_dependency_tracking; 3541fi 3542 3543if test "x$enable_dependency_tracking" != xno; then 3544 am_depcomp="$ac_aux_dir/depcomp" 3545 AMDEPBACKSLASH='\' 3546 am__nodep='_no' 3547fi 3548 if test "x$enable_dependency_tracking" != xno; then 3549 AMDEP_TRUE= 3550 AMDEP_FALSE='#' 3551else 3552 AMDEP_TRUE='#' 3553 AMDEP_FALSE= 3554fi 3555 3556 3557ac_ext=cpp 3558ac_cpp='$CXXCPP $CPPFLAGS' 3559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3562if test -z "$CXX"; then 3563 if test -n "$CCC"; then 3564 CXX=$CCC 3565 else 3566 if test -n "$ac_tool_prefix"; then 3567 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3568 do 3569 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3570set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3572$as_echo_n "checking for $ac_word... " >&6; } 3573if ${ac_cv_prog_CXX+:} false; then : 3574 $as_echo_n "(cached) " >&6 3575else 3576 if test -n "$CXX"; then 3577 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3578else 3579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3580for as_dir in $PATH 3581do 3582 IFS=$as_save_IFS 3583 test -z "$as_dir" && as_dir=. 3584 for ac_exec_ext in '' $ac_executable_extensions; do 3585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3586 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3588 break 2 3589 fi 3590done 3591 done 3592IFS=$as_save_IFS 3593 3594fi 3595fi 3596CXX=$ac_cv_prog_CXX 3597if test -n "$CXX"; then 3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3599$as_echo "$CXX" >&6; } 3600else 3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3602$as_echo "no" >&6; } 3603fi 3604 3605 3606 test -n "$CXX" && break 3607 done 3608fi 3609if test -z "$CXX"; then 3610 ac_ct_CXX=$CXX 3611 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3612do 3613 # Extract the first word of "$ac_prog", so it can be a program name with args. 3614set dummy $ac_prog; ac_word=$2 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3616$as_echo_n "checking for $ac_word... " >&6; } 3617if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3618 $as_echo_n "(cached) " >&6 3619else 3620 if test -n "$ac_ct_CXX"; then 3621 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3622else 3623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3624for as_dir in $PATH 3625do 3626 IFS=$as_save_IFS 3627 test -z "$as_dir" && as_dir=. 3628 for ac_exec_ext in '' $ac_executable_extensions; do 3629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3630 ac_cv_prog_ac_ct_CXX="$ac_prog" 3631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3632 break 2 3633 fi 3634done 3635 done 3636IFS=$as_save_IFS 3637 3638fi 3639fi 3640ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3641if test -n "$ac_ct_CXX"; then 3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3643$as_echo "$ac_ct_CXX" >&6; } 3644else 3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3646$as_echo "no" >&6; } 3647fi 3648 3649 3650 test -n "$ac_ct_CXX" && break 3651done 3652 3653 if test "x$ac_ct_CXX" = x; then 3654 CXX="g++" 3655 else 3656 case $cross_compiling:$ac_tool_warned in 3657yes:) 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3660ac_tool_warned=yes ;; 3661esac 3662 CXX=$ac_ct_CXX 3663 fi 3664fi 3665 3666 fi 3667fi 3668# Provide some information about the compiler. 3669$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3670set X $ac_compile 3671ac_compiler=$2 3672for ac_option in --version -v -V -qversion; do 3673 { { ac_try="$ac_compiler $ac_option >&5" 3674case "(($ac_try" in 3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3676 *) ac_try_echo=$ac_try;; 3677esac 3678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3679$as_echo "$ac_try_echo"; } >&5 3680 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3681 ac_status=$? 3682 if test -s conftest.err; then 3683 sed '10a\ 3684... rest of stderr output deleted ... 3685 10q' conftest.err >conftest.er1 3686 cat conftest.er1 >&5 3687 fi 3688 rm -f conftest.er1 conftest.err 3689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3690 test $ac_status = 0; } 3691done 3692 3693cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3694/* end confdefs.h. */ 3695 3696int 3697main () 3698{ 3699 3700 ; 3701 return 0; 3702} 3703_ACEOF 3704ac_clean_files_save=$ac_clean_files 3705ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3706# Try to create an executable without -o first, disregard a.out. 3707# It will help us diagnose broken compilers, and finding out an intuition 3708# of exeext. 3709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 3710$as_echo_n "checking whether the C++ compiler works... " >&6; } 3711ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3712 3713# The possible output files: 3714ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3715 3716ac_rmfiles= 3717for ac_file in $ac_files 3718do 3719 case $ac_file in 3720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3721 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3722 esac 3723done 3724rm -f $ac_rmfiles 3725 3726if { { ac_try="$ac_link_default" 3727case "(($ac_try" in 3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3729 *) ac_try_echo=$ac_try;; 3730esac 3731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3732$as_echo "$ac_try_echo"; } >&5 3733 (eval "$ac_link_default") 2>&5 3734 ac_status=$? 3735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3736 test $ac_status = 0; }; then : 3737 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3738# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3739# in a Makefile. We should not override ac_cv_exeext if it was cached, 3740# so that the user can short-circuit this test for compilers unknown to 3741# Autoconf. 3742for ac_file in $ac_files '' 3743do 3744 test -f "$ac_file" || continue 3745 case $ac_file in 3746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3747 ;; 3748 [ab].out ) 3749 # We found the default executable, but exeext='' is most 3750 # certainly right. 3751 break;; 3752 *.* ) 3753 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3754 then :; else 3755 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3756 fi 3757 # We set ac_cv_exeext here because the later test for it is not 3758 # safe: cross compilers may not add the suffix if given an `-o' 3759 # argument, so we may need to know it at that point already. 3760 # Even if this section looks crufty: it has the advantage of 3761 # actually working. 3762 break;; 3763 * ) 3764 break;; 3765 esac 3766done 3767test "$ac_cv_exeext" = no && ac_cv_exeext= 3768 3769else 3770 ac_file='' 3771fi 3772if test -z "$ac_file"; then : 3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3774$as_echo "no" >&6; } 3775$as_echo "$as_me: failed program was:" >&5 3776sed 's/^/| /' conftest.$ac_ext >&5 3777 3778{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3780as_fn_error 77 "C++ compiler cannot create executables 3781See \`config.log' for more details" "$LINENO" 5; } 3782else 3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3784$as_echo "yes" >&6; } 3785fi 3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 3787$as_echo_n "checking for C++ compiler default output file name... " >&6; } 3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3789$as_echo "$ac_file" >&6; } 3790ac_exeext=$ac_cv_exeext 3791 3792rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3793ac_clean_files=$ac_clean_files_save 3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3795$as_echo_n "checking for suffix of executables... " >&6; } 3796if { { ac_try="$ac_link" 3797case "(($ac_try" in 3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3799 *) ac_try_echo=$ac_try;; 3800esac 3801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3802$as_echo "$ac_try_echo"; } >&5 3803 (eval "$ac_link") 2>&5 3804 ac_status=$? 3805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3806 test $ac_status = 0; }; then : 3807 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3808# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3809# work properly (i.e., refer to `conftest.exe'), while it won't with 3810# `rm'. 3811for ac_file in conftest.exe conftest conftest.*; do 3812 test -f "$ac_file" || continue 3813 case $ac_file in 3814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3815 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3816 break;; 3817 * ) break;; 3818 esac 3819done 3820else 3821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3823as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3824See \`config.log' for more details" "$LINENO" 5; } 3825fi 3826rm -f conftest conftest$ac_cv_exeext 3827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3828$as_echo "$ac_cv_exeext" >&6; } 3829 3830rm -f conftest.$ac_ext 3831EXEEXT=$ac_cv_exeext 3832ac_exeext=$EXEEXT 3833cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3834/* end confdefs.h. */ 3835#include <stdio.h> 3836int 3837main () 3838{ 3839FILE *f = fopen ("conftest.out", "w"); 3840 return ferror (f) || fclose (f) != 0; 3841 3842 ; 3843 return 0; 3844} 3845_ACEOF 3846ac_clean_files="$ac_clean_files conftest.out" 3847# Check that the compiler produces executables we can run. If not, either 3848# the compiler is broken, or we cross compile. 3849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3850$as_echo_n "checking whether we are cross compiling... " >&6; } 3851if test "$cross_compiling" != yes; then 3852 { { ac_try="$ac_link" 3853case "(($ac_try" in 3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3855 *) ac_try_echo=$ac_try;; 3856esac 3857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3858$as_echo "$ac_try_echo"; } >&5 3859 (eval "$ac_link") 2>&5 3860 ac_status=$? 3861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3862 test $ac_status = 0; } 3863 if { ac_try='./conftest$ac_cv_exeext' 3864 { { case "(($ac_try" in 3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3866 *) ac_try_echo=$ac_try;; 3867esac 3868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3869$as_echo "$ac_try_echo"; } >&5 3870 (eval "$ac_try") 2>&5 3871 ac_status=$? 3872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3873 test $ac_status = 0; }; }; then 3874 cross_compiling=no 3875 else 3876 if test "$cross_compiling" = maybe; then 3877 cross_compiling=yes 3878 else 3879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3880$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3881as_fn_error $? "cannot run C++ compiled programs. 3882If you meant to cross compile, use \`--host'. 3883See \`config.log' for more details" "$LINENO" 5; } 3884 fi 3885 fi 3886fi 3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3888$as_echo "$cross_compiling" >&6; } 3889 3890rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3891ac_clean_files=$ac_clean_files_save 3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3893$as_echo_n "checking for suffix of object files... " >&6; } 3894if ${ac_cv_objext+:} false; then : 3895 $as_echo_n "(cached) " >&6 3896else 3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3898/* end confdefs.h. */ 3899 3900int 3901main () 3902{ 3903 3904 ; 3905 return 0; 3906} 3907_ACEOF 3908rm -f conftest.o conftest.obj 3909if { { ac_try="$ac_compile" 3910case "(($ac_try" in 3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3912 *) ac_try_echo=$ac_try;; 3913esac 3914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3915$as_echo "$ac_try_echo"; } >&5 3916 (eval "$ac_compile") 2>&5 3917 ac_status=$? 3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3919 test $ac_status = 0; }; then : 3920 for ac_file in conftest.o conftest.obj conftest.*; do 3921 test -f "$ac_file" || continue; 3922 case $ac_file in 3923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3924 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3925 break;; 3926 esac 3927done 3928else 3929 $as_echo "$as_me: failed program was:" >&5 3930sed 's/^/| /' conftest.$ac_ext >&5 3931 3932{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3934as_fn_error $? "cannot compute suffix of object files: cannot compile 3935See \`config.log' for more details" "$LINENO" 5; } 3936fi 3937rm -f conftest.$ac_cv_objext conftest.$ac_ext 3938fi 3939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3940$as_echo "$ac_cv_objext" >&6; } 3941OBJEXT=$ac_cv_objext 3942ac_objext=$OBJEXT 3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3944$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3945if ${ac_cv_cxx_compiler_gnu+:} false; then : 3946 $as_echo_n "(cached) " >&6 3947else 3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3949/* end confdefs.h. */ 3950 3951int 3952main () 3953{ 3954#ifndef __GNUC__ 3955 choke me 3956#endif 3957 3958 ; 3959 return 0; 3960} 3961_ACEOF 3962if ac_fn_cxx_try_compile "$LINENO"; then : 3963 ac_compiler_gnu=yes 3964else 3965 ac_compiler_gnu=no 3966fi 3967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3968ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3969 3970fi 3971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3972$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3973if test $ac_compiler_gnu = yes; then 3974 GXX=yes 3975else 3976 GXX= 3977fi 3978ac_test_CXXFLAGS=${CXXFLAGS+set} 3979ac_save_CXXFLAGS=$CXXFLAGS 3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3981$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3982if ${ac_cv_prog_cxx_g+:} false; then : 3983 $as_echo_n "(cached) " >&6 3984else 3985 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3986 ac_cxx_werror_flag=yes 3987 ac_cv_prog_cxx_g=no 3988 CXXFLAGS="-g" 3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3990/* end confdefs.h. */ 3991 3992int 3993main () 3994{ 3995 3996 ; 3997 return 0; 3998} 3999_ACEOF 4000if ac_fn_cxx_try_compile "$LINENO"; then : 4001 ac_cv_prog_cxx_g=yes 4002else 4003 CXXFLAGS="" 4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4005/* end confdefs.h. */ 4006 4007int 4008main () 4009{ 4010 4011 ; 4012 return 0; 4013} 4014_ACEOF 4015if ac_fn_cxx_try_compile "$LINENO"; then : 4016 4017else 4018 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4019 CXXFLAGS="-g" 4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4021/* end confdefs.h. */ 4022 4023int 4024main () 4025{ 4026 4027 ; 4028 return 0; 4029} 4030_ACEOF 4031if ac_fn_cxx_try_compile "$LINENO"; then : 4032 ac_cv_prog_cxx_g=yes 4033fi 4034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4035fi 4036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4037fi 4038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4039 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4040fi 4041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4042$as_echo "$ac_cv_prog_cxx_g" >&6; } 4043if test "$ac_test_CXXFLAGS" = set; then 4044 CXXFLAGS=$ac_save_CXXFLAGS 4045elif test $ac_cv_prog_cxx_g = yes; then 4046 if test "$GXX" = yes; then 4047 CXXFLAGS="-g -O2" 4048 else 4049 CXXFLAGS="-g" 4050 fi 4051else 4052 if test "$GXX" = yes; then 4053 CXXFLAGS="-O2" 4054 else 4055 CXXFLAGS= 4056 fi 4057fi 4058ac_ext=cpp 4059ac_cpp='$CXXCPP $CPPFLAGS' 4060ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4061ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4062ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4063 4064depcc="$CXX" am_compiler_list= 4065 4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4067$as_echo_n "checking dependency style of $depcc... " >&6; } 4068if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4069 $as_echo_n "(cached) " >&6 4070else 4071 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4072 # We make a subdir and do the tests there. Otherwise we can end up 4073 # making bogus files that we don't know about and never remove. For 4074 # instance it was reported that on HP-UX the gcc test will end up 4075 # making a dummy file named 'D' -- because '-MD' means "put the output 4076 # in D". 4077 rm -rf conftest.dir 4078 mkdir conftest.dir 4079 # Copy depcomp to subdir because otherwise we won't find it if we're 4080 # using a relative directory. 4081 cp "$am_depcomp" conftest.dir 4082 cd conftest.dir 4083 # We will build objects and dependencies in a subdirectory because 4084 # it helps to detect inapplicable dependency modes. For instance 4085 # both Tru64's cc and ICC support -MD to output dependencies as a 4086 # side effect of compilation, but ICC will put the dependencies in 4087 # the current directory while Tru64 will put them in the object 4088 # directory. 4089 mkdir sub 4090 4091 am_cv_CXX_dependencies_compiler_type=none 4092 if test "$am_compiler_list" = ""; then 4093 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4094 fi 4095 am__universal=false 4096 case " $depcc " in #( 4097 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4098 esac 4099 4100 for depmode in $am_compiler_list; do 4101 # Setup a source with many dependencies, because some compilers 4102 # like to wrap large dependency lists on column 80 (with \), and 4103 # we should not choose a depcomp mode which is confused by this. 4104 # 4105 # We need to recreate these files for each test, as the compiler may 4106 # overwrite some of them when testing with obscure command lines. 4107 # This happens at least with the AIX C compiler. 4108 : > sub/conftest.c 4109 for i in 1 2 3 4 5 6; do 4110 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4111 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4112 # Solaris 10 /bin/sh. 4113 echo '/* dummy */' > sub/conftst$i.h 4114 done 4115 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4116 4117 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4118 # mode. It turns out that the SunPro C++ compiler does not properly 4119 # handle '-M -o', and we need to detect this. Also, some Intel 4120 # versions had trouble with output in subdirs. 4121 am__obj=sub/conftest.${OBJEXT-o} 4122 am__minus_obj="-o $am__obj" 4123 case $depmode in 4124 gcc) 4125 # This depmode causes a compiler race in universal mode. 4126 test "$am__universal" = false || continue 4127 ;; 4128 nosideeffect) 4129 # After this tag, mechanisms are not by side-effect, so they'll 4130 # only be used when explicitly requested. 4131 if test "x$enable_dependency_tracking" = xyes; then 4132 continue 4133 else 4134 break 4135 fi 4136 ;; 4137 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4138 # This compiler won't grok '-c -o', but also, the minuso test has 4139 # not run yet. These depmodes are late enough in the game, and 4140 # so weak that their functioning should not be impacted. 4141 am__obj=conftest.${OBJEXT-o} 4142 am__minus_obj= 4143 ;; 4144 none) break ;; 4145 esac 4146 if depmode=$depmode \ 4147 source=sub/conftest.c object=$am__obj \ 4148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4149 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4150 >/dev/null 2>conftest.err && 4151 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4152 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4153 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4154 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4155 # icc doesn't choke on unknown options, it will just issue warnings 4156 # or remarks (even with -Werror). So we grep stderr for any message 4157 # that says an option was ignored or not supported. 4158 # When given -MP, icc 7.0 and 7.1 complain thusly: 4159 # icc: Command line warning: ignoring option '-M'; no argument required 4160 # The diagnosis changed in icc 8.0: 4161 # icc: Command line remark: option '-MP' not supported 4162 if (grep 'ignoring option' conftest.err || 4163 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4164 am_cv_CXX_dependencies_compiler_type=$depmode 4165 break 4166 fi 4167 fi 4168 done 4169 4170 cd .. 4171 rm -rf conftest.dir 4172else 4173 am_cv_CXX_dependencies_compiler_type=none 4174fi 4175 4176fi 4177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4178$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4179CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4180 4181 if 4182 test "x$enable_dependency_tracking" != xno \ 4183 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4184 am__fastdepCXX_TRUE= 4185 am__fastdepCXX_FALSE='#' 4186else 4187 am__fastdepCXX_TRUE='#' 4188 am__fastdepCXX_FALSE= 4189fi 4190 4191 4192 4193 ax_cxx_compile_cxx11_required=true 4194 ac_ext=cpp 4195ac_cpp='$CXXCPP $CPPFLAGS' 4196ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4197ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4198ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4199 ac_success=no 4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 4201$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } 4202if ${ax_cv_cxx_compile_cxx11+:} false; then : 4203 $as_echo_n "(cached) " >&6 4204else 4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4206/* end confdefs.h. */ 4207 4208 template <typename T> 4209 struct check 4210 { 4211 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 4212 }; 4213 4214 struct Base { 4215 virtual void f() {} 4216 }; 4217 struct Child : public Base { 4218 virtual void f() override {} 4219 }; 4220 4221 typedef check<check<bool>> right_angle_brackets; 4222 4223 int a; 4224 decltype(a) b; 4225 4226 typedef check<int> check_type; 4227 check_type c; 4228 check_type&& cr = static_cast<check_type&&>(c); 4229 4230 auto d = a; 4231 auto l = [](){}; 4232 // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable] 4233 struct use_l { use_l() { l(); } }; 4234 4235 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 4236 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this 4237 namespace test_template_alias_sfinae { 4238 struct foo {}; 4239 4240 template<typename T> 4241 using member = typename T::member_type; 4242 4243 template<typename T> 4244 void func(...) {} 4245 4246 template<typename T> 4247 void func(member<T>*) {} 4248 4249 void test(); 4250 4251 void test() { 4252 func<foo>(0); 4253 } 4254 } 4255 4256_ACEOF 4257if ac_fn_cxx_try_compile "$LINENO"; then : 4258 ax_cv_cxx_compile_cxx11=yes 4259else 4260 ax_cv_cxx_compile_cxx11=no 4261fi 4262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4263fi 4264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 4265$as_echo "$ax_cv_cxx_compile_cxx11" >&6; } 4266 if test x$ax_cv_cxx_compile_cxx11 = xyes; then 4267 ac_success=yes 4268 fi 4269 4270 if test x$ac_success = xno; then 4271 for switch in -std=gnu++11 -std=gnu++0x; do 4272 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 4274$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } 4275if eval \${$cachevar+:} false; then : 4276 $as_echo_n "(cached) " >&6 4277else 4278 ac_save_CXXFLAGS="$CXXFLAGS" 4279 CXXFLAGS="$CXXFLAGS $switch" 4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4281/* end confdefs.h. */ 4282 4283 template <typename T> 4284 struct check 4285 { 4286 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 4287 }; 4288 4289 struct Base { 4290 virtual void f() {} 4291 }; 4292 struct Child : public Base { 4293 virtual void f() override {} 4294 }; 4295 4296 typedef check<check<bool>> right_angle_brackets; 4297 4298 int a; 4299 decltype(a) b; 4300 4301 typedef check<int> check_type; 4302 check_type c; 4303 check_type&& cr = static_cast<check_type&&>(c); 4304 4305 auto d = a; 4306 auto l = [](){}; 4307 // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable] 4308 struct use_l { use_l() { l(); } }; 4309 4310 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 4311 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this 4312 namespace test_template_alias_sfinae { 4313 struct foo {}; 4314 4315 template<typename T> 4316 using member = typename T::member_type; 4317 4318 template<typename T> 4319 void func(...) {} 4320 4321 template<typename T> 4322 void func(member<T>*) {} 4323 4324 void test(); 4325 4326 void test() { 4327 func<foo>(0); 4328 } 4329 } 4330 4331_ACEOF 4332if ac_fn_cxx_try_compile "$LINENO"; then : 4333 eval $cachevar=yes 4334else 4335 eval $cachevar=no 4336fi 4337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4338 CXXFLAGS="$ac_save_CXXFLAGS" 4339fi 4340eval ac_res=\$$cachevar 4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4342$as_echo "$ac_res" >&6; } 4343 if eval test x\$$cachevar = xyes; then 4344 CXXFLAGS="$CXXFLAGS $switch" 4345 ac_success=yes 4346 break 4347 fi 4348 done 4349 fi 4350 4351 if test x$ac_success = xno; then 4352 for switch in -std=c++11 -std=c++0x; do 4353 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 4355$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } 4356if eval \${$cachevar+:} false; then : 4357 $as_echo_n "(cached) " >&6 4358else 4359 ac_save_CXXFLAGS="$CXXFLAGS" 4360 CXXFLAGS="$CXXFLAGS $switch" 4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4362/* end confdefs.h. */ 4363 4364 template <typename T> 4365 struct check 4366 { 4367 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 4368 }; 4369 4370 struct Base { 4371 virtual void f() {} 4372 }; 4373 struct Child : public Base { 4374 virtual void f() override {} 4375 }; 4376 4377 typedef check<check<bool>> right_angle_brackets; 4378 4379 int a; 4380 decltype(a) b; 4381 4382 typedef check<int> check_type; 4383 check_type c; 4384 check_type&& cr = static_cast<check_type&&>(c); 4385 4386 auto d = a; 4387 auto l = [](){}; 4388 // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable] 4389 struct use_l { use_l() { l(); } }; 4390 4391 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 4392 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this 4393 namespace test_template_alias_sfinae { 4394 struct foo {}; 4395 4396 template<typename T> 4397 using member = typename T::member_type; 4398 4399 template<typename T> 4400 void func(...) {} 4401 4402 template<typename T> 4403 void func(member<T>*) {} 4404 4405 void test(); 4406 4407 void test() { 4408 func<foo>(0); 4409 } 4410 } 4411 4412_ACEOF 4413if ac_fn_cxx_try_compile "$LINENO"; then : 4414 eval $cachevar=yes 4415else 4416 eval $cachevar=no 4417fi 4418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4419 CXXFLAGS="$ac_save_CXXFLAGS" 4420fi 4421eval ac_res=\$$cachevar 4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4423$as_echo "$ac_res" >&6; } 4424 if eval test x\$$cachevar = xyes; then 4425 CXXFLAGS="$CXXFLAGS $switch" 4426 ac_success=yes 4427 break 4428 fi 4429 done 4430 fi 4431 ac_ext=cpp 4432ac_cpp='$CXXCPP $CPPFLAGS' 4433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4436 4437 if test x$ax_cxx_compile_cxx11_required = xtrue; then 4438 if test x$ac_success = xno; then 4439 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 4440 fi 4441 else 4442 if test x$ac_success = xno; then 4443 HAVE_CXX11=0 4444 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 4445$as_echo "$as_me: No compiler with C++11 support was found" >&6;} 4446 else 4447 HAVE_CXX11=1 4448 4449$as_echo "#define HAVE_CXX11 1" >>confdefs.h 4450 4451 fi 4452 4453 4454 fi 4455 4456CXXFLAGS="-fvisibility=hidden $CXXFLAGS -Wall -pthread -Wshadow" 4457 4458# =========================== 4459# Find required base packages 4460# =========================== 4461ac_ext=c 4462ac_cpp='$CPP $CPPFLAGS' 4463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4465ac_compiler_gnu=$ac_cv_c_compiler_gnu 4466if test -n "$ac_tool_prefix"; then 4467 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4468set dummy ${ac_tool_prefix}gcc; ac_word=$2 4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4470$as_echo_n "checking for $ac_word... " >&6; } 4471if ${ac_cv_prog_CC+:} false; then : 4472 $as_echo_n "(cached) " >&6 4473else 4474 if test -n "$CC"; then 4475 ac_cv_prog_CC="$CC" # Let the user override the test. 4476else 4477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4478for as_dir in $PATH 4479do 4480 IFS=$as_save_IFS 4481 test -z "$as_dir" && as_dir=. 4482 for ac_exec_ext in '' $ac_executable_extensions; do 4483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4484 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4486 break 2 4487 fi 4488done 4489 done 4490IFS=$as_save_IFS 4491 4492fi 4493fi 4494CC=$ac_cv_prog_CC 4495if test -n "$CC"; then 4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4497$as_echo "$CC" >&6; } 4498else 4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4500$as_echo "no" >&6; } 4501fi 4502 4503 4504fi 4505if test -z "$ac_cv_prog_CC"; then 4506 ac_ct_CC=$CC 4507 # Extract the first word of "gcc", so it can be a program name with args. 4508set dummy gcc; ac_word=$2 4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4510$as_echo_n "checking for $ac_word... " >&6; } 4511if ${ac_cv_prog_ac_ct_CC+:} false; then : 4512 $as_echo_n "(cached) " >&6 4513else 4514 if test -n "$ac_ct_CC"; then 4515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4516else 4517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4518for as_dir in $PATH 4519do 4520 IFS=$as_save_IFS 4521 test -z "$as_dir" && as_dir=. 4522 for ac_exec_ext in '' $ac_executable_extensions; do 4523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4524 ac_cv_prog_ac_ct_CC="gcc" 4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4526 break 2 4527 fi 4528done 4529 done 4530IFS=$as_save_IFS 4531 4532fi 4533fi 4534ac_ct_CC=$ac_cv_prog_ac_ct_CC 4535if test -n "$ac_ct_CC"; then 4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4537$as_echo "$ac_ct_CC" >&6; } 4538else 4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4540$as_echo "no" >&6; } 4541fi 4542 4543 if test "x$ac_ct_CC" = x; then 4544 CC="" 4545 else 4546 case $cross_compiling:$ac_tool_warned in 4547yes:) 4548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4550ac_tool_warned=yes ;; 4551esac 4552 CC=$ac_ct_CC 4553 fi 4554else 4555 CC="$ac_cv_prog_CC" 4556fi 4557 4558if test -z "$CC"; then 4559 if test -n "$ac_tool_prefix"; then 4560 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4561set dummy ${ac_tool_prefix}cc; ac_word=$2 4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4563$as_echo_n "checking for $ac_word... " >&6; } 4564if ${ac_cv_prog_CC+:} false; then : 4565 $as_echo_n "(cached) " >&6 4566else 4567 if test -n "$CC"; then 4568 ac_cv_prog_CC="$CC" # Let the user override the test. 4569else 4570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4571for as_dir in $PATH 4572do 4573 IFS=$as_save_IFS 4574 test -z "$as_dir" && as_dir=. 4575 for ac_exec_ext in '' $ac_executable_extensions; do 4576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4577 ac_cv_prog_CC="${ac_tool_prefix}cc" 4578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4579 break 2 4580 fi 4581done 4582 done 4583IFS=$as_save_IFS 4584 4585fi 4586fi 4587CC=$ac_cv_prog_CC 4588if test -n "$CC"; then 4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4590$as_echo "$CC" >&6; } 4591else 4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4593$as_echo "no" >&6; } 4594fi 4595 4596 4597 fi 4598fi 4599if test -z "$CC"; then 4600 # Extract the first word of "cc", so it can be a program name with args. 4601set dummy cc; ac_word=$2 4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4603$as_echo_n "checking for $ac_word... " >&6; } 4604if ${ac_cv_prog_CC+:} false; then : 4605 $as_echo_n "(cached) " >&6 4606else 4607 if test -n "$CC"; then 4608 ac_cv_prog_CC="$CC" # Let the user override the test. 4609else 4610 ac_prog_rejected=no 4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4612for as_dir in $PATH 4613do 4614 IFS=$as_save_IFS 4615 test -z "$as_dir" && as_dir=. 4616 for ac_exec_ext in '' $ac_executable_extensions; do 4617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4618 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4619 ac_prog_rejected=yes 4620 continue 4621 fi 4622 ac_cv_prog_CC="cc" 4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4624 break 2 4625 fi 4626done 4627 done 4628IFS=$as_save_IFS 4629 4630if test $ac_prog_rejected = yes; then 4631 # We found a bogon in the path, so make sure we never use it. 4632 set dummy $ac_cv_prog_CC 4633 shift 4634 if test $# != 0; then 4635 # We chose a different compiler from the bogus one. 4636 # However, it has the same basename, so the bogon will be chosen 4637 # first if we set CC to just the basename; use the full file name. 4638 shift 4639 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4640 fi 4641fi 4642fi 4643fi 4644CC=$ac_cv_prog_CC 4645if test -n "$CC"; then 4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4647$as_echo "$CC" >&6; } 4648else 4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4650$as_echo "no" >&6; } 4651fi 4652 4653 4654fi 4655if test -z "$CC"; then 4656 if test -n "$ac_tool_prefix"; then 4657 for ac_prog in cl.exe 4658 do 4659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4660set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4662$as_echo_n "checking for $ac_word... " >&6; } 4663if ${ac_cv_prog_CC+:} false; then : 4664 $as_echo_n "(cached) " >&6 4665else 4666 if test -n "$CC"; then 4667 ac_cv_prog_CC="$CC" # Let the user override the test. 4668else 4669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4670for as_dir in $PATH 4671do 4672 IFS=$as_save_IFS 4673 test -z "$as_dir" && as_dir=. 4674 for ac_exec_ext in '' $ac_executable_extensions; do 4675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4676 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4678 break 2 4679 fi 4680done 4681 done 4682IFS=$as_save_IFS 4683 4684fi 4685fi 4686CC=$ac_cv_prog_CC 4687if test -n "$CC"; then 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4689$as_echo "$CC" >&6; } 4690else 4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4692$as_echo "no" >&6; } 4693fi 4694 4695 4696 test -n "$CC" && break 4697 done 4698fi 4699if test -z "$CC"; then 4700 ac_ct_CC=$CC 4701 for ac_prog in cl.exe 4702do 4703 # Extract the first word of "$ac_prog", so it can be a program name with args. 4704set dummy $ac_prog; ac_word=$2 4705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4706$as_echo_n "checking for $ac_word... " >&6; } 4707if ${ac_cv_prog_ac_ct_CC+:} false; then : 4708 $as_echo_n "(cached) " >&6 4709else 4710 if test -n "$ac_ct_CC"; then 4711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4712else 4713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4714for as_dir in $PATH 4715do 4716 IFS=$as_save_IFS 4717 test -z "$as_dir" && as_dir=. 4718 for ac_exec_ext in '' $ac_executable_extensions; do 4719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4720 ac_cv_prog_ac_ct_CC="$ac_prog" 4721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4722 break 2 4723 fi 4724done 4725 done 4726IFS=$as_save_IFS 4727 4728fi 4729fi 4730ac_ct_CC=$ac_cv_prog_ac_ct_CC 4731if test -n "$ac_ct_CC"; then 4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4733$as_echo "$ac_ct_CC" >&6; } 4734else 4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4736$as_echo "no" >&6; } 4737fi 4738 4739 4740 test -n "$ac_ct_CC" && break 4741done 4742 4743 if test "x$ac_ct_CC" = x; then 4744 CC="" 4745 else 4746 case $cross_compiling:$ac_tool_warned in 4747yes:) 4748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4750ac_tool_warned=yes ;; 4751esac 4752 CC=$ac_ct_CC 4753 fi 4754fi 4755 4756fi 4757 4758 4759test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4761as_fn_error $? "no acceptable C compiler found in \$PATH 4762See \`config.log' for more details" "$LINENO" 5; } 4763 4764# Provide some information about the compiler. 4765$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4766set X $ac_compile 4767ac_compiler=$2 4768for ac_option in --version -v -V -qversion; do 4769 { { ac_try="$ac_compiler $ac_option >&5" 4770case "(($ac_try" in 4771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4772 *) ac_try_echo=$ac_try;; 4773esac 4774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4775$as_echo "$ac_try_echo"; } >&5 4776 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4777 ac_status=$? 4778 if test -s conftest.err; then 4779 sed '10a\ 4780... rest of stderr output deleted ... 4781 10q' conftest.err >conftest.er1 4782 cat conftest.er1 >&5 4783 fi 4784 rm -f conftest.er1 conftest.err 4785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4786 test $ac_status = 0; } 4787done 4788 4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4790$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4791if ${ac_cv_c_compiler_gnu+:} false; then : 4792 $as_echo_n "(cached) " >&6 4793else 4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4795/* end confdefs.h. */ 4796 4797int 4798main () 4799{ 4800#ifndef __GNUC__ 4801 choke me 4802#endif 4803 4804 ; 4805 return 0; 4806} 4807_ACEOF 4808if ac_fn_c_try_compile "$LINENO"; then : 4809 ac_compiler_gnu=yes 4810else 4811 ac_compiler_gnu=no 4812fi 4813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4814ac_cv_c_compiler_gnu=$ac_compiler_gnu 4815 4816fi 4817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4818$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4819if test $ac_compiler_gnu = yes; then 4820 GCC=yes 4821else 4822 GCC= 4823fi 4824ac_test_CFLAGS=${CFLAGS+set} 4825ac_save_CFLAGS=$CFLAGS 4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4827$as_echo_n "checking whether $CC accepts -g... " >&6; } 4828if ${ac_cv_prog_cc_g+:} false; then : 4829 $as_echo_n "(cached) " >&6 4830else 4831 ac_save_c_werror_flag=$ac_c_werror_flag 4832 ac_c_werror_flag=yes 4833 ac_cv_prog_cc_g=no 4834 CFLAGS="-g" 4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4836/* end confdefs.h. */ 4837 4838int 4839main () 4840{ 4841 4842 ; 4843 return 0; 4844} 4845_ACEOF 4846if ac_fn_c_try_compile "$LINENO"; then : 4847 ac_cv_prog_cc_g=yes 4848else 4849 CFLAGS="" 4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4851/* end confdefs.h. */ 4852 4853int 4854main () 4855{ 4856 4857 ; 4858 return 0; 4859} 4860_ACEOF 4861if ac_fn_c_try_compile "$LINENO"; then : 4862 4863else 4864 ac_c_werror_flag=$ac_save_c_werror_flag 4865 CFLAGS="-g" 4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4867/* end confdefs.h. */ 4868 4869int 4870main () 4871{ 4872 4873 ; 4874 return 0; 4875} 4876_ACEOF 4877if ac_fn_c_try_compile "$LINENO"; then : 4878 ac_cv_prog_cc_g=yes 4879fi 4880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4881fi 4882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4883fi 4884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4885 ac_c_werror_flag=$ac_save_c_werror_flag 4886fi 4887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4888$as_echo "$ac_cv_prog_cc_g" >&6; } 4889if test "$ac_test_CFLAGS" = set; then 4890 CFLAGS=$ac_save_CFLAGS 4891elif test $ac_cv_prog_cc_g = yes; then 4892 if test "$GCC" = yes; then 4893 CFLAGS="-g -O2" 4894 else 4895 CFLAGS="-g" 4896 fi 4897else 4898 if test "$GCC" = yes; then 4899 CFLAGS="-O2" 4900 else 4901 CFLAGS= 4902 fi 4903fi 4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4905$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4906if ${ac_cv_prog_cc_c89+:} false; then : 4907 $as_echo_n "(cached) " >&6 4908else 4909 ac_cv_prog_cc_c89=no 4910ac_save_CC=$CC 4911cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4912/* end confdefs.h. */ 4913#include <stdarg.h> 4914#include <stdio.h> 4915struct stat; 4916/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4917struct buf { int x; }; 4918FILE * (*rcsopen) (struct buf *, struct stat *, int); 4919static char *e (p, i) 4920 char **p; 4921 int i; 4922{ 4923 return p[i]; 4924} 4925static char *f (char * (*g) (char **, int), char **p, ...) 4926{ 4927 char *s; 4928 va_list v; 4929 va_start (v,p); 4930 s = g (p, va_arg (v,int)); 4931 va_end (v); 4932 return s; 4933} 4934 4935/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4936 function prototypes and stuff, but not '\xHH' hex character constants. 4937 These don't provoke an error unfortunately, instead are silently treated 4938 as 'x'. The following induces an error, until -std is added to get 4939 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4940 array size at least. It's necessary to write '\x00'==0 to get something 4941 that's true only with -std. */ 4942int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4943 4944/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4945 inside strings and character constants. */ 4946#define FOO(x) 'x' 4947int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4948 4949int test (int i, double x); 4950struct s1 {int (*f) (int a);}; 4951struct s2 {int (*f) (double a);}; 4952int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4953int argc; 4954char **argv; 4955int 4956main () 4957{ 4958return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4959 ; 4960 return 0; 4961} 4962_ACEOF 4963for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4964 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4965do 4966 CC="$ac_save_CC $ac_arg" 4967 if ac_fn_c_try_compile "$LINENO"; then : 4968 ac_cv_prog_cc_c89=$ac_arg 4969fi 4970rm -f core conftest.err conftest.$ac_objext 4971 test "x$ac_cv_prog_cc_c89" != "xno" && break 4972done 4973rm -f conftest.$ac_ext 4974CC=$ac_save_CC 4975 4976fi 4977# AC_CACHE_VAL 4978case "x$ac_cv_prog_cc_c89" in 4979 x) 4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4981$as_echo "none needed" >&6; } ;; 4982 xno) 4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4984$as_echo "unsupported" >&6; } ;; 4985 *) 4986 CC="$CC $ac_cv_prog_cc_c89" 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4988$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4989esac 4990if test "x$ac_cv_prog_cc_c89" != xno; then : 4991 4992fi 4993 4994ac_ext=cpp 4995ac_cpp='$CXXCPP $CPPFLAGS' 4996ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4997ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4998ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4999 5000ac_ext=c 5001ac_cpp='$CPP $CPPFLAGS' 5002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5004ac_compiler_gnu=$ac_cv_c_compiler_gnu 5005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5006$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5007if ${am_cv_prog_cc_c_o+:} false; then : 5008 $as_echo_n "(cached) " >&6 5009else 5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5011/* end confdefs.h. */ 5012 5013int 5014main () 5015{ 5016 5017 ; 5018 return 0; 5019} 5020_ACEOF 5021 # Make sure it works both with $CC and with simple cc. 5022 # Following AC_PROG_CC_C_O, we do the test twice because some 5023 # compilers refuse to overwrite an existing .o file with -o, 5024 # though they will create one. 5025 am_cv_prog_cc_c_o=yes 5026 for am_i in 1 2; do 5027 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5028 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5029 ac_status=$? 5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5031 (exit $ac_status); } \ 5032 && test -f conftest2.$ac_objext; then 5033 : OK 5034 else 5035 am_cv_prog_cc_c_o=no 5036 break 5037 fi 5038 done 5039 rm -f core conftest* 5040 unset am_i 5041fi 5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5043$as_echo "$am_cv_prog_cc_c_o" >&6; } 5044if test "$am_cv_prog_cc_c_o" != yes; then 5045 # Losing compiler, so override with the script. 5046 # FIXME: It is wrong to rewrite CC. 5047 # But if we don't then we get into trouble of one sort or another. 5048 # A longer-term fix would be to have automake use am__CC in this case, 5049 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5050 CC="$am_aux_dir/compile $CC" 5051fi 5052ac_ext=cpp 5053ac_cpp='$CXXCPP $CPPFLAGS' 5054ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5055ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5056ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5057 5058 5059depcc="$CC" am_compiler_list= 5060 5061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5062$as_echo_n "checking dependency style of $depcc... " >&6; } 5063if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5064 $as_echo_n "(cached) " >&6 5065else 5066 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5067 # We make a subdir and do the tests there. Otherwise we can end up 5068 # making bogus files that we don't know about and never remove. For 5069 # instance it was reported that on HP-UX the gcc test will end up 5070 # making a dummy file named 'D' -- because '-MD' means "put the output 5071 # in D". 5072 rm -rf conftest.dir 5073 mkdir conftest.dir 5074 # Copy depcomp to subdir because otherwise we won't find it if we're 5075 # using a relative directory. 5076 cp "$am_depcomp" conftest.dir 5077 cd conftest.dir 5078 # We will build objects and dependencies in a subdirectory because 5079 # it helps to detect inapplicable dependency modes. For instance 5080 # both Tru64's cc and ICC support -MD to output dependencies as a 5081 # side effect of compilation, but ICC will put the dependencies in 5082 # the current directory while Tru64 will put them in the object 5083 # directory. 5084 mkdir sub 5085 5086 am_cv_CC_dependencies_compiler_type=none 5087 if test "$am_compiler_list" = ""; then 5088 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5089 fi 5090 am__universal=false 5091 case " $depcc " in #( 5092 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5093 esac 5094 5095 for depmode in $am_compiler_list; do 5096 # Setup a source with many dependencies, because some compilers 5097 # like to wrap large dependency lists on column 80 (with \), and 5098 # we should not choose a depcomp mode which is confused by this. 5099 # 5100 # We need to recreate these files for each test, as the compiler may 5101 # overwrite some of them when testing with obscure command lines. 5102 # This happens at least with the AIX C compiler. 5103 : > sub/conftest.c 5104 for i in 1 2 3 4 5 6; do 5105 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5106 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5107 # Solaris 10 /bin/sh. 5108 echo '/* dummy */' > sub/conftst$i.h 5109 done 5110 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5111 5112 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5113 # mode. It turns out that the SunPro C++ compiler does not properly 5114 # handle '-M -o', and we need to detect this. Also, some Intel 5115 # versions had trouble with output in subdirs. 5116 am__obj=sub/conftest.${OBJEXT-o} 5117 am__minus_obj="-o $am__obj" 5118 case $depmode in 5119 gcc) 5120 # This depmode causes a compiler race in universal mode. 5121 test "$am__universal" = false || continue 5122 ;; 5123 nosideeffect) 5124 # After this tag, mechanisms are not by side-effect, so they'll 5125 # only be used when explicitly requested. 5126 if test "x$enable_dependency_tracking" = xyes; then 5127 continue 5128 else 5129 break 5130 fi 5131 ;; 5132 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5133 # This compiler won't grok '-c -o', but also, the minuso test has 5134 # not run yet. These depmodes are late enough in the game, and 5135 # so weak that their functioning should not be impacted. 5136 am__obj=conftest.${OBJEXT-o} 5137 am__minus_obj= 5138 ;; 5139 none) break ;; 5140 esac 5141 if depmode=$depmode \ 5142 source=sub/conftest.c object=$am__obj \ 5143 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5144 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5145 >/dev/null 2>conftest.err && 5146 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5147 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5148 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5149 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5150 # icc doesn't choke on unknown options, it will just issue warnings 5151 # or remarks (even with -Werror). So we grep stderr for any message 5152 # that says an option was ignored or not supported. 5153 # When given -MP, icc 7.0 and 7.1 complain thusly: 5154 # icc: Command line warning: ignoring option '-M'; no argument required 5155 # The diagnosis changed in icc 8.0: 5156 # icc: Command line remark: option '-MP' not supported 5157 if (grep 'ignoring option' conftest.err || 5158 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5159 am_cv_CC_dependencies_compiler_type=$depmode 5160 break 5161 fi 5162 fi 5163 done 5164 5165 cd .. 5166 rm -rf conftest.dir 5167else 5168 am_cv_CC_dependencies_compiler_type=none 5169fi 5170 5171fi 5172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5173$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5174CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5175 5176 if 5177 test "x$enable_dependency_tracking" != xno \ 5178 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5179 am__fastdepCC_TRUE= 5180 am__fastdepCC_FALSE='#' 5181else 5182 am__fastdepCC_TRUE='#' 5183 am__fastdepCC_FALSE= 5184fi 5185 5186 5187ac_ext=c 5188ac_cpp='$CPP $CPPFLAGS' 5189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5191ac_compiler_gnu=$ac_cv_c_compiler_gnu 5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5193$as_echo_n "checking how to run the C preprocessor... " >&6; } 5194# On Suns, sometimes $CPP names a directory. 5195if test -n "$CPP" && test -d "$CPP"; then 5196 CPP= 5197fi 5198if test -z "$CPP"; then 5199 if ${ac_cv_prog_CPP+:} false; then : 5200 $as_echo_n "(cached) " >&6 5201else 5202 # Double quotes because CPP needs to be expanded 5203 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5204 do 5205 ac_preproc_ok=false 5206for ac_c_preproc_warn_flag in '' yes 5207do 5208 # Use a header file that comes with gcc, so configuring glibc 5209 # with a fresh cross-compiler works. 5210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5211 # <limits.h> exists even on freestanding compilers. 5212 # On the NeXT, cc -E runs the code through the compiler's parser, 5213 # not just through cpp. "Syntax error" is here to catch this case. 5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5215/* end confdefs.h. */ 5216#ifdef __STDC__ 5217# include <limits.h> 5218#else 5219# include <assert.h> 5220#endif 5221 Syntax error 5222_ACEOF 5223if ac_fn_c_try_cpp "$LINENO"; then : 5224 5225else 5226 # Broken: fails on valid input. 5227continue 5228fi 5229rm -f conftest.err conftest.i conftest.$ac_ext 5230 5231 # OK, works on sane cases. Now check whether nonexistent headers 5232 # can be detected and how. 5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5234/* end confdefs.h. */ 5235#include <ac_nonexistent.h> 5236_ACEOF 5237if ac_fn_c_try_cpp "$LINENO"; then : 5238 # Broken: success on invalid input. 5239continue 5240else 5241 # Passes both tests. 5242ac_preproc_ok=: 5243break 5244fi 5245rm -f conftest.err conftest.i conftest.$ac_ext 5246 5247done 5248# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5249rm -f conftest.i conftest.err conftest.$ac_ext 5250if $ac_preproc_ok; then : 5251 break 5252fi 5253 5254 done 5255 ac_cv_prog_CPP=$CPP 5256 5257fi 5258 CPP=$ac_cv_prog_CPP 5259else 5260 ac_cv_prog_CPP=$CPP 5261fi 5262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5263$as_echo "$CPP" >&6; } 5264ac_preproc_ok=false 5265for ac_c_preproc_warn_flag in '' yes 5266do 5267 # Use a header file that comes with gcc, so configuring glibc 5268 # with a fresh cross-compiler works. 5269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5270 # <limits.h> exists even on freestanding compilers. 5271 # On the NeXT, cc -E runs the code through the compiler's parser, 5272 # not just through cpp. "Syntax error" is here to catch this case. 5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5274/* end confdefs.h. */ 5275#ifdef __STDC__ 5276# include <limits.h> 5277#else 5278# include <assert.h> 5279#endif 5280 Syntax error 5281_ACEOF 5282if ac_fn_c_try_cpp "$LINENO"; then : 5283 5284else 5285 # Broken: fails on valid input. 5286continue 5287fi 5288rm -f conftest.err conftest.i conftest.$ac_ext 5289 5290 # OK, works on sane cases. Now check whether nonexistent headers 5291 # can be detected and how. 5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5293/* end confdefs.h. */ 5294#include <ac_nonexistent.h> 5295_ACEOF 5296if ac_fn_c_try_cpp "$LINENO"; then : 5297 # Broken: success on invalid input. 5298continue 5299else 5300 # Passes both tests. 5301ac_preproc_ok=: 5302break 5303fi 5304rm -f conftest.err conftest.i conftest.$ac_ext 5305 5306done 5307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5308rm -f conftest.i conftest.err conftest.$ac_ext 5309if $ac_preproc_ok; then : 5310 5311else 5312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5314as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5315See \`config.log' for more details" "$LINENO" 5; } 5316fi 5317 5318ac_ext=cpp 5319ac_cpp='$CXXCPP $CPPFLAGS' 5320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5323 5324ac_ext=cpp 5325ac_cpp='$CXXCPP $CPPFLAGS' 5326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5329if test -z "$CXX"; then 5330 if test -n "$CCC"; then 5331 CXX=$CCC 5332 else 5333 if test -n "$ac_tool_prefix"; then 5334 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5335 do 5336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5337set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5339$as_echo_n "checking for $ac_word... " >&6; } 5340if ${ac_cv_prog_CXX+:} false; then : 5341 $as_echo_n "(cached) " >&6 5342else 5343 if test -n "$CXX"; then 5344 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5345else 5346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5347for as_dir in $PATH 5348do 5349 IFS=$as_save_IFS 5350 test -z "$as_dir" && as_dir=. 5351 for ac_exec_ext in '' $ac_executable_extensions; do 5352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5353 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5355 break 2 5356 fi 5357done 5358 done 5359IFS=$as_save_IFS 5360 5361fi 5362fi 5363CXX=$ac_cv_prog_CXX 5364if test -n "$CXX"; then 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5366$as_echo "$CXX" >&6; } 5367else 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5369$as_echo "no" >&6; } 5370fi 5371 5372 5373 test -n "$CXX" && break 5374 done 5375fi 5376if test -z "$CXX"; then 5377 ac_ct_CXX=$CXX 5378 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5379do 5380 # Extract the first word of "$ac_prog", so it can be a program name with args. 5381set dummy $ac_prog; ac_word=$2 5382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5383$as_echo_n "checking for $ac_word... " >&6; } 5384if ${ac_cv_prog_ac_ct_CXX+:} false; then : 5385 $as_echo_n "(cached) " >&6 5386else 5387 if test -n "$ac_ct_CXX"; then 5388 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5389else 5390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5391for as_dir in $PATH 5392do 5393 IFS=$as_save_IFS 5394 test -z "$as_dir" && as_dir=. 5395 for ac_exec_ext in '' $ac_executable_extensions; do 5396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5397 ac_cv_prog_ac_ct_CXX="$ac_prog" 5398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5399 break 2 5400 fi 5401done 5402 done 5403IFS=$as_save_IFS 5404 5405fi 5406fi 5407ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5408if test -n "$ac_ct_CXX"; then 5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5410$as_echo "$ac_ct_CXX" >&6; } 5411else 5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5413$as_echo "no" >&6; } 5414fi 5415 5416 5417 test -n "$ac_ct_CXX" && break 5418done 5419 5420 if test "x$ac_ct_CXX" = x; then 5421 CXX="g++" 5422 else 5423 case $cross_compiling:$ac_tool_warned in 5424yes:) 5425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5427ac_tool_warned=yes ;; 5428esac 5429 CXX=$ac_ct_CXX 5430 fi 5431fi 5432 5433 fi 5434fi 5435# Provide some information about the compiler. 5436$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5437set X $ac_compile 5438ac_compiler=$2 5439for ac_option in --version -v -V -qversion; do 5440 { { ac_try="$ac_compiler $ac_option >&5" 5441case "(($ac_try" in 5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5443 *) ac_try_echo=$ac_try;; 5444esac 5445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5446$as_echo "$ac_try_echo"; } >&5 5447 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5448 ac_status=$? 5449 if test -s conftest.err; then 5450 sed '10a\ 5451... rest of stderr output deleted ... 5452 10q' conftest.err >conftest.er1 5453 cat conftest.er1 >&5 5454 fi 5455 rm -f conftest.er1 conftest.err 5456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5457 test $ac_status = 0; } 5458done 5459 5460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5461$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5462if ${ac_cv_cxx_compiler_gnu+:} false; then : 5463 $as_echo_n "(cached) " >&6 5464else 5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5466/* end confdefs.h. */ 5467 5468int 5469main () 5470{ 5471#ifndef __GNUC__ 5472 choke me 5473#endif 5474 5475 ; 5476 return 0; 5477} 5478_ACEOF 5479if ac_fn_cxx_try_compile "$LINENO"; then : 5480 ac_compiler_gnu=yes 5481else 5482 ac_compiler_gnu=no 5483fi 5484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5485ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5486 5487fi 5488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5489$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5490if test $ac_compiler_gnu = yes; then 5491 GXX=yes 5492else 5493 GXX= 5494fi 5495ac_test_CXXFLAGS=${CXXFLAGS+set} 5496ac_save_CXXFLAGS=$CXXFLAGS 5497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5498$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5499if ${ac_cv_prog_cxx_g+:} false; then : 5500 $as_echo_n "(cached) " >&6 5501else 5502 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5503 ac_cxx_werror_flag=yes 5504 ac_cv_prog_cxx_g=no 5505 CXXFLAGS="-g" 5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5507/* end confdefs.h. */ 5508 5509int 5510main () 5511{ 5512 5513 ; 5514 return 0; 5515} 5516_ACEOF 5517if ac_fn_cxx_try_compile "$LINENO"; then : 5518 ac_cv_prog_cxx_g=yes 5519else 5520 CXXFLAGS="" 5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5522/* end confdefs.h. */ 5523 5524int 5525main () 5526{ 5527 5528 ; 5529 return 0; 5530} 5531_ACEOF 5532if ac_fn_cxx_try_compile "$LINENO"; then : 5533 5534else 5535 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5536 CXXFLAGS="-g" 5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5538/* end confdefs.h. */ 5539 5540int 5541main () 5542{ 5543 5544 ; 5545 return 0; 5546} 5547_ACEOF 5548if ac_fn_cxx_try_compile "$LINENO"; then : 5549 ac_cv_prog_cxx_g=yes 5550fi 5551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5552fi 5553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5554fi 5555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5556 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5557fi 5558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5559$as_echo "$ac_cv_prog_cxx_g" >&6; } 5560if test "$ac_test_CXXFLAGS" = set; then 5561 CXXFLAGS=$ac_save_CXXFLAGS 5562elif test $ac_cv_prog_cxx_g = yes; then 5563 if test "$GXX" = yes; then 5564 CXXFLAGS="-g -O2" 5565 else 5566 CXXFLAGS="-g" 5567 fi 5568else 5569 if test "$GXX" = yes; then 5570 CXXFLAGS="-O2" 5571 else 5572 CXXFLAGS= 5573 fi 5574fi 5575ac_ext=cpp 5576ac_cpp='$CXXCPP $CPPFLAGS' 5577ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5578ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5579ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5580 5581depcc="$CXX" am_compiler_list= 5582 5583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5584$as_echo_n "checking dependency style of $depcc... " >&6; } 5585if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 5586 $as_echo_n "(cached) " >&6 5587else 5588 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5589 # We make a subdir and do the tests there. Otherwise we can end up 5590 # making bogus files that we don't know about and never remove. For 5591 # instance it was reported that on HP-UX the gcc test will end up 5592 # making a dummy file named 'D' -- because '-MD' means "put the output 5593 # in D". 5594 rm -rf conftest.dir 5595 mkdir conftest.dir 5596 # Copy depcomp to subdir because otherwise we won't find it if we're 5597 # using a relative directory. 5598 cp "$am_depcomp" conftest.dir 5599 cd conftest.dir 5600 # We will build objects and dependencies in a subdirectory because 5601 # it helps to detect inapplicable dependency modes. For instance 5602 # both Tru64's cc and ICC support -MD to output dependencies as a 5603 # side effect of compilation, but ICC will put the dependencies in 5604 # the current directory while Tru64 will put them in the object 5605 # directory. 5606 mkdir sub 5607 5608 am_cv_CXX_dependencies_compiler_type=none 5609 if test "$am_compiler_list" = ""; then 5610 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5611 fi 5612 am__universal=false 5613 case " $depcc " in #( 5614 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5615 esac 5616 5617 for depmode in $am_compiler_list; do 5618 # Setup a source with many dependencies, because some compilers 5619 # like to wrap large dependency lists on column 80 (with \), and 5620 # we should not choose a depcomp mode which is confused by this. 5621 # 5622 # We need to recreate these files for each test, as the compiler may 5623 # overwrite some of them when testing with obscure command lines. 5624 # This happens at least with the AIX C compiler. 5625 : > sub/conftest.c 5626 for i in 1 2 3 4 5 6; do 5627 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5628 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5629 # Solaris 10 /bin/sh. 5630 echo '/* dummy */' > sub/conftst$i.h 5631 done 5632 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5633 5634 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5635 # mode. It turns out that the SunPro C++ compiler does not properly 5636 # handle '-M -o', and we need to detect this. Also, some Intel 5637 # versions had trouble with output in subdirs. 5638 am__obj=sub/conftest.${OBJEXT-o} 5639 am__minus_obj="-o $am__obj" 5640 case $depmode in 5641 gcc) 5642 # This depmode causes a compiler race in universal mode. 5643 test "$am__universal" = false || continue 5644 ;; 5645 nosideeffect) 5646 # After this tag, mechanisms are not by side-effect, so they'll 5647 # only be used when explicitly requested. 5648 if test "x$enable_dependency_tracking" = xyes; then 5649 continue 5650 else 5651 break 5652 fi 5653 ;; 5654 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5655 # This compiler won't grok '-c -o', but also, the minuso test has 5656 # not run yet. These depmodes are late enough in the game, and 5657 # so weak that their functioning should not be impacted. 5658 am__obj=conftest.${OBJEXT-o} 5659 am__minus_obj= 5660 ;; 5661 none) break ;; 5662 esac 5663 if depmode=$depmode \ 5664 source=sub/conftest.c object=$am__obj \ 5665 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5666 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5667 >/dev/null 2>conftest.err && 5668 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5669 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5670 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5671 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5672 # icc doesn't choke on unknown options, it will just issue warnings 5673 # or remarks (even with -Werror). So we grep stderr for any message 5674 # that says an option was ignored or not supported. 5675 # When given -MP, icc 7.0 and 7.1 complain thusly: 5676 # icc: Command line warning: ignoring option '-M'; no argument required 5677 # The diagnosis changed in icc 8.0: 5678 # icc: Command line remark: option '-MP' not supported 5679 if (grep 'ignoring option' conftest.err || 5680 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5681 am_cv_CXX_dependencies_compiler_type=$depmode 5682 break 5683 fi 5684 fi 5685 done 5686 5687 cd .. 5688 rm -rf conftest.dir 5689else 5690 am_cv_CXX_dependencies_compiler_type=none 5691fi 5692 5693fi 5694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5695$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5696CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5697 5698 if 5699 test "x$enable_dependency_tracking" != xno \ 5700 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5701 am__fastdepCXX_TRUE= 5702 am__fastdepCXX_FALSE='#' 5703else 5704 am__fastdepCXX_TRUE='#' 5705 am__fastdepCXX_FALSE= 5706fi 5707 5708 5709 5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5711$as_echo_n "checking whether ln -s works... " >&6; } 5712LN_S=$as_ln_s 5713if test "$LN_S" = "ln -s"; then 5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5715$as_echo "yes" >&6; } 5716else 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5718$as_echo "no, using $LN_S" >&6; } 5719fi 5720 5721case `pwd` in 5722 *\ * | *\ *) 5723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5724$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5725esac 5726 5727 5728 5729macro_version='2.4.6' 5730macro_revision='2.4.6' 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744ltmain=$ac_aux_dir/ltmain.sh 5745 5746# Make sure we can run config.sub. 5747$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5748 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5749 5750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5751$as_echo_n "checking build system type... " >&6; } 5752if ${ac_cv_build+:} false; then : 5753 $as_echo_n "(cached) " >&6 5754else 5755 ac_build_alias=$build_alias 5756test "x$ac_build_alias" = x && 5757 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5758test "x$ac_build_alias" = x && 5759 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5760ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5761 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5762 5763fi 5764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5765$as_echo "$ac_cv_build" >&6; } 5766case $ac_cv_build in 5767*-*-*) ;; 5768*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5769esac 5770build=$ac_cv_build 5771ac_save_IFS=$IFS; IFS='-' 5772set x $ac_cv_build 5773shift 5774build_cpu=$1 5775build_vendor=$2 5776shift; shift 5777# Remember, the first character of IFS is used to create $*, 5778# except with old shells: 5779build_os=$* 5780IFS=$ac_save_IFS 5781case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5782 5783 5784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5785$as_echo_n "checking host system type... " >&6; } 5786if ${ac_cv_host+:} false; then : 5787 $as_echo_n "(cached) " >&6 5788else 5789 if test "x$host_alias" = x; then 5790 ac_cv_host=$ac_cv_build 5791else 5792 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5793 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5794fi 5795 5796fi 5797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5798$as_echo "$ac_cv_host" >&6; } 5799case $ac_cv_host in 5800*-*-*) ;; 5801*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5802esac 5803host=$ac_cv_host 5804ac_save_IFS=$IFS; IFS='-' 5805set x $ac_cv_host 5806shift 5807host_cpu=$1 5808host_vendor=$2 5809shift; shift 5810# Remember, the first character of IFS is used to create $*, 5811# except with old shells: 5812host_os=$* 5813IFS=$ac_save_IFS 5814case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5815 5816 5817# Backslashify metacharacters that are still active within 5818# double-quoted strings. 5819sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5820 5821# Same as above, but do not quote variable references. 5822double_quote_subst='s/\(["`\\]\)/\\\1/g' 5823 5824# Sed substitution to delay expansion of an escaped shell variable in a 5825# double_quote_subst'ed string. 5826delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5827 5828# Sed substitution to delay expansion of an escaped single quote. 5829delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5830 5831# Sed substitution to avoid accidental globbing in evaled expressions 5832no_glob_subst='s/\*/\\\*/g' 5833 5834ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5835ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5836ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5837 5838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5839$as_echo_n "checking how to print strings... " >&6; } 5840# Test print first, because it will be a builtin if present. 5841if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5842 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5843 ECHO='print -r --' 5844elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5845 ECHO='printf %s\n' 5846else 5847 # Use this function as a fallback that always works. 5848 func_fallback_echo () 5849 { 5850 eval 'cat <<_LTECHO_EOF 5851$1 5852_LTECHO_EOF' 5853 } 5854 ECHO='func_fallback_echo' 5855fi 5856 5857# func_echo_all arg... 5858# Invoke $ECHO with all args, space-separated. 5859func_echo_all () 5860{ 5861 $ECHO "" 5862} 5863 5864case $ECHO in 5865 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5866$as_echo "printf" >&6; } ;; 5867 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5868$as_echo "print -r" >&6; } ;; 5869 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5870$as_echo "cat" >&6; } ;; 5871esac 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5887$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5888if ${ac_cv_path_SED+:} false; then : 5889 $as_echo_n "(cached) " >&6 5890else 5891 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5892 for ac_i in 1 2 3 4 5 6 7; do 5893 ac_script="$ac_script$as_nl$ac_script" 5894 done 5895 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5896 { ac_script=; unset ac_script;} 5897 if test -z "$SED"; then 5898 ac_path_SED_found=false 5899 # Loop through the user's path and test for each of PROGNAME-LIST 5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5901for as_dir in $PATH 5902do 5903 IFS=$as_save_IFS 5904 test -z "$as_dir" && as_dir=. 5905 for ac_prog in sed gsed; do 5906 for ac_exec_ext in '' $ac_executable_extensions; do 5907 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5908 as_fn_executable_p "$ac_path_SED" || continue 5909# Check for GNU ac_path_SED and select it if it is found. 5910 # Check for GNU $ac_path_SED 5911case `"$ac_path_SED" --version 2>&1` in 5912*GNU*) 5913 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5914*) 5915 ac_count=0 5916 $as_echo_n 0123456789 >"conftest.in" 5917 while : 5918 do 5919 cat "conftest.in" "conftest.in" >"conftest.tmp" 5920 mv "conftest.tmp" "conftest.in" 5921 cp "conftest.in" "conftest.nl" 5922 $as_echo '' >> "conftest.nl" 5923 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5925 as_fn_arith $ac_count + 1 && ac_count=$as_val 5926 if test $ac_count -gt ${ac_path_SED_max-0}; then 5927 # Best one so far, save it but keep looking for a better one 5928 ac_cv_path_SED="$ac_path_SED" 5929 ac_path_SED_max=$ac_count 5930 fi 5931 # 10*(2^10) chars as input seems more than enough 5932 test $ac_count -gt 10 && break 5933 done 5934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5935esac 5936 5937 $ac_path_SED_found && break 3 5938 done 5939 done 5940 done 5941IFS=$as_save_IFS 5942 if test -z "$ac_cv_path_SED"; then 5943 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5944 fi 5945else 5946 ac_cv_path_SED=$SED 5947fi 5948 5949fi 5950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5951$as_echo "$ac_cv_path_SED" >&6; } 5952 SED="$ac_cv_path_SED" 5953 rm -f conftest.sed 5954 5955test -z "$SED" && SED=sed 5956Xsed="$SED -e 1s/^X//" 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5969$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5970if ${ac_cv_path_GREP+:} false; then : 5971 $as_echo_n "(cached) " >&6 5972else 5973 if test -z "$GREP"; then 5974 ac_path_GREP_found=false 5975 # Loop through the user's path and test for each of PROGNAME-LIST 5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5977for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5978do 5979 IFS=$as_save_IFS 5980 test -z "$as_dir" && as_dir=. 5981 for ac_prog in grep ggrep; do 5982 for ac_exec_ext in '' $ac_executable_extensions; do 5983 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5984 as_fn_executable_p "$ac_path_GREP" || continue 5985# Check for GNU ac_path_GREP and select it if it is found. 5986 # Check for GNU $ac_path_GREP 5987case `"$ac_path_GREP" --version 2>&1` in 5988*GNU*) 5989 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5990*) 5991 ac_count=0 5992 $as_echo_n 0123456789 >"conftest.in" 5993 while : 5994 do 5995 cat "conftest.in" "conftest.in" >"conftest.tmp" 5996 mv "conftest.tmp" "conftest.in" 5997 cp "conftest.in" "conftest.nl" 5998 $as_echo 'GREP' >> "conftest.nl" 5999 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6000 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6001 as_fn_arith $ac_count + 1 && ac_count=$as_val 6002 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6003 # Best one so far, save it but keep looking for a better one 6004 ac_cv_path_GREP="$ac_path_GREP" 6005 ac_path_GREP_max=$ac_count 6006 fi 6007 # 10*(2^10) chars as input seems more than enough 6008 test $ac_count -gt 10 && break 6009 done 6010 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6011esac 6012 6013 $ac_path_GREP_found && break 3 6014 done 6015 done 6016 done 6017IFS=$as_save_IFS 6018 if test -z "$ac_cv_path_GREP"; then 6019 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6020 fi 6021else 6022 ac_cv_path_GREP=$GREP 6023fi 6024 6025fi 6026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6027$as_echo "$ac_cv_path_GREP" >&6; } 6028 GREP="$ac_cv_path_GREP" 6029 6030 6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6032$as_echo_n "checking for egrep... " >&6; } 6033if ${ac_cv_path_EGREP+:} false; then : 6034 $as_echo_n "(cached) " >&6 6035else 6036 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6037 then ac_cv_path_EGREP="$GREP -E" 6038 else 6039 if test -z "$EGREP"; then 6040 ac_path_EGREP_found=false 6041 # Loop through the user's path and test for each of PROGNAME-LIST 6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6043for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6044do 6045 IFS=$as_save_IFS 6046 test -z "$as_dir" && as_dir=. 6047 for ac_prog in egrep; do 6048 for ac_exec_ext in '' $ac_executable_extensions; do 6049 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6050 as_fn_executable_p "$ac_path_EGREP" || continue 6051# Check for GNU ac_path_EGREP and select it if it is found. 6052 # Check for GNU $ac_path_EGREP 6053case `"$ac_path_EGREP" --version 2>&1` in 6054*GNU*) 6055 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6056*) 6057 ac_count=0 6058 $as_echo_n 0123456789 >"conftest.in" 6059 while : 6060 do 6061 cat "conftest.in" "conftest.in" >"conftest.tmp" 6062 mv "conftest.tmp" "conftest.in" 6063 cp "conftest.in" "conftest.nl" 6064 $as_echo 'EGREP' >> "conftest.nl" 6065 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6066 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6067 as_fn_arith $ac_count + 1 && ac_count=$as_val 6068 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6069 # Best one so far, save it but keep looking for a better one 6070 ac_cv_path_EGREP="$ac_path_EGREP" 6071 ac_path_EGREP_max=$ac_count 6072 fi 6073 # 10*(2^10) chars as input seems more than enough 6074 test $ac_count -gt 10 && break 6075 done 6076 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6077esac 6078 6079 $ac_path_EGREP_found && break 3 6080 done 6081 done 6082 done 6083IFS=$as_save_IFS 6084 if test -z "$ac_cv_path_EGREP"; then 6085 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6086 fi 6087else 6088 ac_cv_path_EGREP=$EGREP 6089fi 6090 6091 fi 6092fi 6093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6094$as_echo "$ac_cv_path_EGREP" >&6; } 6095 EGREP="$ac_cv_path_EGREP" 6096 6097 6098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6099$as_echo_n "checking for fgrep... " >&6; } 6100if ${ac_cv_path_FGREP+:} false; then : 6101 $as_echo_n "(cached) " >&6 6102else 6103 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6104 then ac_cv_path_FGREP="$GREP -F" 6105 else 6106 if test -z "$FGREP"; then 6107 ac_path_FGREP_found=false 6108 # Loop through the user's path and test for each of PROGNAME-LIST 6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6110for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6111do 6112 IFS=$as_save_IFS 6113 test -z "$as_dir" && as_dir=. 6114 for ac_prog in fgrep; do 6115 for ac_exec_ext in '' $ac_executable_extensions; do 6116 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6117 as_fn_executable_p "$ac_path_FGREP" || continue 6118# Check for GNU ac_path_FGREP and select it if it is found. 6119 # Check for GNU $ac_path_FGREP 6120case `"$ac_path_FGREP" --version 2>&1` in 6121*GNU*) 6122 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6123*) 6124 ac_count=0 6125 $as_echo_n 0123456789 >"conftest.in" 6126 while : 6127 do 6128 cat "conftest.in" "conftest.in" >"conftest.tmp" 6129 mv "conftest.tmp" "conftest.in" 6130 cp "conftest.in" "conftest.nl" 6131 $as_echo 'FGREP' >> "conftest.nl" 6132 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6133 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6134 as_fn_arith $ac_count + 1 && ac_count=$as_val 6135 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6136 # Best one so far, save it but keep looking for a better one 6137 ac_cv_path_FGREP="$ac_path_FGREP" 6138 ac_path_FGREP_max=$ac_count 6139 fi 6140 # 10*(2^10) chars as input seems more than enough 6141 test $ac_count -gt 10 && break 6142 done 6143 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6144esac 6145 6146 $ac_path_FGREP_found && break 3 6147 done 6148 done 6149 done 6150IFS=$as_save_IFS 6151 if test -z "$ac_cv_path_FGREP"; then 6152 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6153 fi 6154else 6155 ac_cv_path_FGREP=$FGREP 6156fi 6157 6158 fi 6159fi 6160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6161$as_echo "$ac_cv_path_FGREP" >&6; } 6162 FGREP="$ac_cv_path_FGREP" 6163 6164 6165test -z "$GREP" && GREP=grep 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185# Check whether --with-gnu-ld was given. 6186if test "${with_gnu_ld+set}" = set; then : 6187 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6188else 6189 with_gnu_ld=no 6190fi 6191 6192ac_prog=ld 6193if test yes = "$GCC"; then 6194 # Check if gcc -print-prog-name=ld gives a path. 6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6196$as_echo_n "checking for ld used by $CC... " >&6; } 6197 case $host in 6198 *-*-mingw*) 6199 # gcc leaves a trailing carriage return, which upsets mingw 6200 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6201 *) 6202 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6203 esac 6204 case $ac_prog in 6205 # Accept absolute paths. 6206 [\\/]* | ?:[\\/]*) 6207 re_direlt='/[^/][^/]*/\.\./' 6208 # Canonicalize the pathname of ld 6209 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6210 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6211 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6212 done 6213 test -z "$LD" && LD=$ac_prog 6214 ;; 6215 "") 6216 # If it fails, then pretend we aren't using GCC. 6217 ac_prog=ld 6218 ;; 6219 *) 6220 # If it is relative, then search for the first ld in PATH. 6221 with_gnu_ld=unknown 6222 ;; 6223 esac 6224elif test yes = "$with_gnu_ld"; then 6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6226$as_echo_n "checking for GNU ld... " >&6; } 6227else 6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6229$as_echo_n "checking for non-GNU ld... " >&6; } 6230fi 6231if ${lt_cv_path_LD+:} false; then : 6232 $as_echo_n "(cached) " >&6 6233else 6234 if test -z "$LD"; then 6235 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6236 for ac_dir in $PATH; do 6237 IFS=$lt_save_ifs 6238 test -z "$ac_dir" && ac_dir=. 6239 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6240 lt_cv_path_LD=$ac_dir/$ac_prog 6241 # Check to see if the program is GNU ld. I'd rather use --version, 6242 # but apparently some variants of GNU ld only accept -v. 6243 # Break only if it was the GNU/non-GNU ld that we prefer. 6244 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6245 *GNU* | *'with BFD'*) 6246 test no != "$with_gnu_ld" && break 6247 ;; 6248 *) 6249 test yes != "$with_gnu_ld" && break 6250 ;; 6251 esac 6252 fi 6253 done 6254 IFS=$lt_save_ifs 6255else 6256 lt_cv_path_LD=$LD # Let the user override the test with a path. 6257fi 6258fi 6259 6260LD=$lt_cv_path_LD 6261if test -n "$LD"; then 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6263$as_echo "$LD" >&6; } 6264else 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6266$as_echo "no" >&6; } 6267fi 6268test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6270$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6271if ${lt_cv_prog_gnu_ld+:} false; then : 6272 $as_echo_n "(cached) " >&6 6273else 6274 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6275case `$LD -v 2>&1 </dev/null` in 6276*GNU* | *'with BFD'*) 6277 lt_cv_prog_gnu_ld=yes 6278 ;; 6279*) 6280 lt_cv_prog_gnu_ld=no 6281 ;; 6282esac 6283fi 6284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6285$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6286with_gnu_ld=$lt_cv_prog_gnu_ld 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6297$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6298if ${lt_cv_path_NM+:} false; then : 6299 $as_echo_n "(cached) " >&6 6300else 6301 if test -n "$NM"; then 6302 # Let the user override the test. 6303 lt_cv_path_NM=$NM 6304else 6305 lt_nm_to_check=${ac_tool_prefix}nm 6306 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6307 lt_nm_to_check="$lt_nm_to_check nm" 6308 fi 6309 for lt_tmp_nm in $lt_nm_to_check; do 6310 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6311 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6312 IFS=$lt_save_ifs 6313 test -z "$ac_dir" && ac_dir=. 6314 tmp_nm=$ac_dir/$lt_tmp_nm 6315 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6316 # Check to see if the nm accepts a BSD-compat flag. 6317 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6318 # nm: unknown option "B" ignored 6319 # Tru64's nm complains that /dev/null is an invalid object file 6320 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6321 case $build_os in 6322 mingw*) lt_bad_file=conftest.nm/nofile ;; 6323 *) lt_bad_file=/dev/null ;; 6324 esac 6325 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 6326 *$lt_bad_file* | *'Invalid file or object type'*) 6327 lt_cv_path_NM="$tmp_nm -B" 6328 break 2 6329 ;; 6330 *) 6331 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6332 */dev/null*) 6333 lt_cv_path_NM="$tmp_nm -p" 6334 break 2 6335 ;; 6336 *) 6337 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6338 continue # so that we can try to find one that supports BSD flags 6339 ;; 6340 esac 6341 ;; 6342 esac 6343 fi 6344 done 6345 IFS=$lt_save_ifs 6346 done 6347 : ${lt_cv_path_NM=no} 6348fi 6349fi 6350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6351$as_echo "$lt_cv_path_NM" >&6; } 6352if test no != "$lt_cv_path_NM"; then 6353 NM=$lt_cv_path_NM 6354else 6355 # Didn't find any BSD compatible name lister, look for dumpbin. 6356 if test -n "$DUMPBIN"; then : 6357 # Let the user override the test. 6358 else 6359 if test -n "$ac_tool_prefix"; then 6360 for ac_prog in dumpbin "link -dump" 6361 do 6362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6363set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6365$as_echo_n "checking for $ac_word... " >&6; } 6366if ${ac_cv_prog_DUMPBIN+:} false; then : 6367 $as_echo_n "(cached) " >&6 6368else 6369 if test -n "$DUMPBIN"; then 6370 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6371else 6372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6373for as_dir in $PATH 6374do 6375 IFS=$as_save_IFS 6376 test -z "$as_dir" && as_dir=. 6377 for ac_exec_ext in '' $ac_executable_extensions; do 6378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6379 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6381 break 2 6382 fi 6383done 6384 done 6385IFS=$as_save_IFS 6386 6387fi 6388fi 6389DUMPBIN=$ac_cv_prog_DUMPBIN 6390if test -n "$DUMPBIN"; then 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6392$as_echo "$DUMPBIN" >&6; } 6393else 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6395$as_echo "no" >&6; } 6396fi 6397 6398 6399 test -n "$DUMPBIN" && break 6400 done 6401fi 6402if test -z "$DUMPBIN"; then 6403 ac_ct_DUMPBIN=$DUMPBIN 6404 for ac_prog in dumpbin "link -dump" 6405do 6406 # Extract the first word of "$ac_prog", so it can be a program name with args. 6407set dummy $ac_prog; ac_word=$2 6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6409$as_echo_n "checking for $ac_word... " >&6; } 6410if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6411 $as_echo_n "(cached) " >&6 6412else 6413 if test -n "$ac_ct_DUMPBIN"; then 6414 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6415else 6416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6417for as_dir in $PATH 6418do 6419 IFS=$as_save_IFS 6420 test -z "$as_dir" && as_dir=. 6421 for ac_exec_ext in '' $ac_executable_extensions; do 6422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6423 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6425 break 2 6426 fi 6427done 6428 done 6429IFS=$as_save_IFS 6430 6431fi 6432fi 6433ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6434if test -n "$ac_ct_DUMPBIN"; then 6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6436$as_echo "$ac_ct_DUMPBIN" >&6; } 6437else 6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6439$as_echo "no" >&6; } 6440fi 6441 6442 6443 test -n "$ac_ct_DUMPBIN" && break 6444done 6445 6446 if test "x$ac_ct_DUMPBIN" = x; then 6447 DUMPBIN=":" 6448 else 6449 case $cross_compiling:$ac_tool_warned in 6450yes:) 6451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6453ac_tool_warned=yes ;; 6454esac 6455 DUMPBIN=$ac_ct_DUMPBIN 6456 fi 6457fi 6458 6459 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6460 *COFF*) 6461 DUMPBIN="$DUMPBIN -symbols -headers" 6462 ;; 6463 *) 6464 DUMPBIN=: 6465 ;; 6466 esac 6467 fi 6468 6469 if test : != "$DUMPBIN"; then 6470 NM=$DUMPBIN 6471 fi 6472fi 6473test -z "$NM" && NM=nm 6474 6475 6476 6477 6478 6479 6480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6481$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6482if ${lt_cv_nm_interface+:} false; then : 6483 $as_echo_n "(cached) " >&6 6484else 6485 lt_cv_nm_interface="BSD nm" 6486 echo "int some_variable = 0;" > conftest.$ac_ext 6487 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6488 (eval "$ac_compile" 2>conftest.err) 6489 cat conftest.err >&5 6490 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6491 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6492 cat conftest.err >&5 6493 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6494 cat conftest.out >&5 6495 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6496 lt_cv_nm_interface="MS dumpbin" 6497 fi 6498 rm -f conftest* 6499fi 6500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6501$as_echo "$lt_cv_nm_interface" >&6; } 6502 6503# find the maximum length of command line arguments 6504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6505$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6506if ${lt_cv_sys_max_cmd_len+:} false; then : 6507 $as_echo_n "(cached) " >&6 6508else 6509 i=0 6510 teststring=ABCD 6511 6512 case $build_os in 6513 msdosdjgpp*) 6514 # On DJGPP, this test can blow up pretty badly due to problems in libc 6515 # (any single argument exceeding 2000 bytes causes a buffer overrun 6516 # during glob expansion). Even if it were fixed, the result of this 6517 # check would be larger than it should be. 6518 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6519 ;; 6520 6521 gnu*) 6522 # Under GNU Hurd, this test is not required because there is 6523 # no limit to the length of command line arguments. 6524 # Libtool will interpret -1 as no limit whatsoever 6525 lt_cv_sys_max_cmd_len=-1; 6526 ;; 6527 6528 cygwin* | mingw* | cegcc*) 6529 # On Win9x/ME, this test blows up -- it succeeds, but takes 6530 # about 5 minutes as the teststring grows exponentially. 6531 # Worse, since 9x/ME are not pre-emptively multitasking, 6532 # you end up with a "frozen" computer, even though with patience 6533 # the test eventually succeeds (with a max line length of 256k). 6534 # Instead, let's just punt: use the minimum linelength reported by 6535 # all of the supported platforms: 8192 (on NT/2K/XP). 6536 lt_cv_sys_max_cmd_len=8192; 6537 ;; 6538 6539 mint*) 6540 # On MiNT this can take a long time and run out of memory. 6541 lt_cv_sys_max_cmd_len=8192; 6542 ;; 6543 6544 amigaos*) 6545 # On AmigaOS with pdksh, this test takes hours, literally. 6546 # So we just punt and use a minimum line length of 8192. 6547 lt_cv_sys_max_cmd_len=8192; 6548 ;; 6549 6550 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6551 # This has been around since 386BSD, at least. Likely further. 6552 if test -x /sbin/sysctl; then 6553 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6554 elif test -x /usr/sbin/sysctl; then 6555 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6556 else 6557 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6558 fi 6559 # And add a safety zone 6560 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6561 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6562 ;; 6563 6564 interix*) 6565 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6566 lt_cv_sys_max_cmd_len=196608 6567 ;; 6568 6569 os2*) 6570 # The test takes a long time on OS/2. 6571 lt_cv_sys_max_cmd_len=8192 6572 ;; 6573 6574 osf*) 6575 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6576 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6577 # nice to cause kernel panics so lets avoid the loop below. 6578 # First set a reasonable default. 6579 lt_cv_sys_max_cmd_len=16384 6580 # 6581 if test -x /sbin/sysconfig; then 6582 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6583 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6584 esac 6585 fi 6586 ;; 6587 sco3.2v5*) 6588 lt_cv_sys_max_cmd_len=102400 6589 ;; 6590 sysv5* | sco5v6* | sysv4.2uw2*) 6591 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6592 if test -n "$kargmax"; then 6593 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6594 else 6595 lt_cv_sys_max_cmd_len=32768 6596 fi 6597 ;; 6598 *) 6599 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6600 if test -n "$lt_cv_sys_max_cmd_len" && \ 6601 test undefined != "$lt_cv_sys_max_cmd_len"; then 6602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6604 else 6605 # Make teststring a little bigger before we do anything with it. 6606 # a 1K string should be a reasonable start. 6607 for i in 1 2 3 4 5 6 7 8; do 6608 teststring=$teststring$teststring 6609 done 6610 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6611 # If test is not a shell built-in, we'll probably end up computing a 6612 # maximum length that is only half of the actual maximum length, but 6613 # we can't tell. 6614 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6615 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6616 test 17 != "$i" # 1/2 MB should be enough 6617 do 6618 i=`expr $i + 1` 6619 teststring=$teststring$teststring 6620 done 6621 # Only check the string length outside the loop. 6622 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6623 teststring= 6624 # Add a significant safety factor because C++ compilers can tack on 6625 # massive amounts of additional arguments before passing them to the 6626 # linker. It appears as though 1/2 is a usable value. 6627 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6628 fi 6629 ;; 6630 esac 6631 6632fi 6633 6634if test -n "$lt_cv_sys_max_cmd_len"; then 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6636$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6637else 6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6639$as_echo "none" >&6; } 6640fi 6641max_cmd_len=$lt_cv_sys_max_cmd_len 6642 6643 6644 6645 6646 6647 6648: ${CP="cp -f"} 6649: ${MV="mv -f"} 6650: ${RM="rm -f"} 6651 6652if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6653 lt_unset=unset 6654else 6655 lt_unset=false 6656fi 6657 6658 6659 6660 6661 6662# test EBCDIC or ASCII 6663case `echo X|tr X '\101'` in 6664 A) # ASCII based system 6665 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6666 lt_SP2NL='tr \040 \012' 6667 lt_NL2SP='tr \015\012 \040\040' 6668 ;; 6669 *) # EBCDIC based system 6670 lt_SP2NL='tr \100 \n' 6671 lt_NL2SP='tr \r\n \100\100' 6672 ;; 6673esac 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6684$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6685if ${lt_cv_to_host_file_cmd+:} false; then : 6686 $as_echo_n "(cached) " >&6 6687else 6688 case $host in 6689 *-*-mingw* ) 6690 case $build in 6691 *-*-mingw* ) # actually msys 6692 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6693 ;; 6694 *-*-cygwin* ) 6695 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6696 ;; 6697 * ) # otherwise, assume *nix 6698 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6699 ;; 6700 esac 6701 ;; 6702 *-*-cygwin* ) 6703 case $build in 6704 *-*-mingw* ) # actually msys 6705 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6706 ;; 6707 *-*-cygwin* ) 6708 lt_cv_to_host_file_cmd=func_convert_file_noop 6709 ;; 6710 * ) # otherwise, assume *nix 6711 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6712 ;; 6713 esac 6714 ;; 6715 * ) # unhandled hosts (and "normal" native builds) 6716 lt_cv_to_host_file_cmd=func_convert_file_noop 6717 ;; 6718esac 6719 6720fi 6721 6722to_host_file_cmd=$lt_cv_to_host_file_cmd 6723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6724$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6725 6726 6727 6728 6729 6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6731$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6732if ${lt_cv_to_tool_file_cmd+:} false; then : 6733 $as_echo_n "(cached) " >&6 6734else 6735 #assume ordinary cross tools, or native build. 6736lt_cv_to_tool_file_cmd=func_convert_file_noop 6737case $host in 6738 *-*-mingw* ) 6739 case $build in 6740 *-*-mingw* ) # actually msys 6741 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6742 ;; 6743 esac 6744 ;; 6745esac 6746 6747fi 6748 6749to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6751$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6752 6753 6754 6755 6756 6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6758$as_echo_n "checking for $LD option to reload object files... " >&6; } 6759if ${lt_cv_ld_reload_flag+:} false; then : 6760 $as_echo_n "(cached) " >&6 6761else 6762 lt_cv_ld_reload_flag='-r' 6763fi 6764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6765$as_echo "$lt_cv_ld_reload_flag" >&6; } 6766reload_flag=$lt_cv_ld_reload_flag 6767case $reload_flag in 6768"" | " "*) ;; 6769*) reload_flag=" $reload_flag" ;; 6770esac 6771reload_cmds='$LD$reload_flag -o $output$reload_objs' 6772case $host_os in 6773 cygwin* | mingw* | pw32* | cegcc*) 6774 if test yes != "$GCC"; then 6775 reload_cmds=false 6776 fi 6777 ;; 6778 darwin*) 6779 if test yes = "$GCC"; then 6780 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6781 else 6782 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6783 fi 6784 ;; 6785esac 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795if test -n "$ac_tool_prefix"; then 6796 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6797set dummy ${ac_tool_prefix}objdump; ac_word=$2 6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6799$as_echo_n "checking for $ac_word... " >&6; } 6800if ${ac_cv_prog_OBJDUMP+:} false; then : 6801 $as_echo_n "(cached) " >&6 6802else 6803 if test -n "$OBJDUMP"; then 6804 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6805else 6806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6807for as_dir in $PATH 6808do 6809 IFS=$as_save_IFS 6810 test -z "$as_dir" && as_dir=. 6811 for ac_exec_ext in '' $ac_executable_extensions; do 6812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6813 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6815 break 2 6816 fi 6817done 6818 done 6819IFS=$as_save_IFS 6820 6821fi 6822fi 6823OBJDUMP=$ac_cv_prog_OBJDUMP 6824if test -n "$OBJDUMP"; then 6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6826$as_echo "$OBJDUMP" >&6; } 6827else 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6829$as_echo "no" >&6; } 6830fi 6831 6832 6833fi 6834if test -z "$ac_cv_prog_OBJDUMP"; then 6835 ac_ct_OBJDUMP=$OBJDUMP 6836 # Extract the first word of "objdump", so it can be a program name with args. 6837set dummy objdump; ac_word=$2 6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6839$as_echo_n "checking for $ac_word... " >&6; } 6840if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6841 $as_echo_n "(cached) " >&6 6842else 6843 if test -n "$ac_ct_OBJDUMP"; then 6844 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6845else 6846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6847for as_dir in $PATH 6848do 6849 IFS=$as_save_IFS 6850 test -z "$as_dir" && as_dir=. 6851 for ac_exec_ext in '' $ac_executable_extensions; do 6852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6853 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6855 break 2 6856 fi 6857done 6858 done 6859IFS=$as_save_IFS 6860 6861fi 6862fi 6863ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6864if test -n "$ac_ct_OBJDUMP"; then 6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6866$as_echo "$ac_ct_OBJDUMP" >&6; } 6867else 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6869$as_echo "no" >&6; } 6870fi 6871 6872 if test "x$ac_ct_OBJDUMP" = x; then 6873 OBJDUMP="false" 6874 else 6875 case $cross_compiling:$ac_tool_warned in 6876yes:) 6877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6879ac_tool_warned=yes ;; 6880esac 6881 OBJDUMP=$ac_ct_OBJDUMP 6882 fi 6883else 6884 OBJDUMP="$ac_cv_prog_OBJDUMP" 6885fi 6886 6887test -z "$OBJDUMP" && OBJDUMP=objdump 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6898$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6899if ${lt_cv_deplibs_check_method+:} false; then : 6900 $as_echo_n "(cached) " >&6 6901else 6902 lt_cv_file_magic_cmd='$MAGIC_CMD' 6903lt_cv_file_magic_test_file= 6904lt_cv_deplibs_check_method='unknown' 6905# Need to set the preceding variable on all platforms that support 6906# interlibrary dependencies. 6907# 'none' -- dependencies not supported. 6908# 'unknown' -- same as none, but documents that we really don't know. 6909# 'pass_all' -- all dependencies passed with no checks. 6910# 'test_compile' -- check by making test program. 6911# 'file_magic [[regex]]' -- check by looking for files in library path 6912# that responds to the $file_magic_cmd with a given extended regex. 6913# If you have 'file' or equivalent on your system and you're not sure 6914# whether 'pass_all' will *always* work, you probably want this one. 6915 6916case $host_os in 6917aix[4-9]*) 6918 lt_cv_deplibs_check_method=pass_all 6919 ;; 6920 6921beos*) 6922 lt_cv_deplibs_check_method=pass_all 6923 ;; 6924 6925bsdi[45]*) 6926 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6927 lt_cv_file_magic_cmd='/usr/bin/file -L' 6928 lt_cv_file_magic_test_file=/shlib/libc.so 6929 ;; 6930 6931cygwin*) 6932 # func_win32_libid is a shell function defined in ltmain.sh 6933 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6934 lt_cv_file_magic_cmd='func_win32_libid' 6935 ;; 6936 6937mingw* | pw32*) 6938 # Base MSYS/MinGW do not provide the 'file' command needed by 6939 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6940 # unless we find 'file', for example because we are cross-compiling. 6941 if ( file / ) >/dev/null 2>&1; then 6942 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6943 lt_cv_file_magic_cmd='func_win32_libid' 6944 else 6945 # Keep this pattern in sync with the one in func_win32_libid. 6946 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6947 lt_cv_file_magic_cmd='$OBJDUMP -f' 6948 fi 6949 ;; 6950 6951cegcc*) 6952 # use the weaker test based on 'objdump'. See mingw*. 6953 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6954 lt_cv_file_magic_cmd='$OBJDUMP -f' 6955 ;; 6956 6957darwin* | rhapsody*) 6958 lt_cv_deplibs_check_method=pass_all 6959 ;; 6960 6961freebsd* | dragonfly*) 6962 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6963 case $host_cpu in 6964 i*86 ) 6965 # Not sure whether the presence of OpenBSD here was a mistake. 6966 # Let's accept both of them until this is cleared up. 6967 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6968 lt_cv_file_magic_cmd=/usr/bin/file 6969 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6970 ;; 6971 esac 6972 else 6973 lt_cv_deplibs_check_method=pass_all 6974 fi 6975 ;; 6976 6977haiku*) 6978 lt_cv_deplibs_check_method=pass_all 6979 ;; 6980 6981hpux10.20* | hpux11*) 6982 lt_cv_file_magic_cmd=/usr/bin/file 6983 case $host_cpu in 6984 ia64*) 6985 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6986 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6987 ;; 6988 hppa*64*) 6989 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]' 6990 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6991 ;; 6992 *) 6993 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6994 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6995 ;; 6996 esac 6997 ;; 6998 6999interix[3-9]*) 7000 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7001 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7002 ;; 7003 7004irix5* | irix6* | nonstopux*) 7005 case $LD in 7006 *-32|*"-32 ") libmagic=32-bit;; 7007 *-n32|*"-n32 ") libmagic=N32;; 7008 *-64|*"-64 ") libmagic=64-bit;; 7009 *) libmagic=never-match;; 7010 esac 7011 lt_cv_deplibs_check_method=pass_all 7012 ;; 7013 7014# This must be glibc/ELF. 7015linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7016 lt_cv_deplibs_check_method=pass_all 7017 ;; 7018 7019netbsd* | netbsdelf*-gnu) 7020 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7022 else 7023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7024 fi 7025 ;; 7026 7027newos6*) 7028 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7029 lt_cv_file_magic_cmd=/usr/bin/file 7030 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7031 ;; 7032 7033*nto* | *qnx*) 7034 lt_cv_deplibs_check_method=pass_all 7035 ;; 7036 7037openbsd* | bitrig*) 7038 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 7039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7040 else 7041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7042 fi 7043 ;; 7044 7045osf3* | osf4* | osf5*) 7046 lt_cv_deplibs_check_method=pass_all 7047 ;; 7048 7049rdos*) 7050 lt_cv_deplibs_check_method=pass_all 7051 ;; 7052 7053solaris*) 7054 lt_cv_deplibs_check_method=pass_all 7055 ;; 7056 7057sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7058 lt_cv_deplibs_check_method=pass_all 7059 ;; 7060 7061sysv4 | sysv4.3*) 7062 case $host_vendor in 7063 motorola) 7064 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]' 7065 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7066 ;; 7067 ncr) 7068 lt_cv_deplibs_check_method=pass_all 7069 ;; 7070 sequent) 7071 lt_cv_file_magic_cmd='/bin/file' 7072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7073 ;; 7074 sni) 7075 lt_cv_file_magic_cmd='/bin/file' 7076 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7077 lt_cv_file_magic_test_file=/lib/libc.so 7078 ;; 7079 siemens) 7080 lt_cv_deplibs_check_method=pass_all 7081 ;; 7082 pc) 7083 lt_cv_deplibs_check_method=pass_all 7084 ;; 7085 esac 7086 ;; 7087 7088tpf*) 7089 lt_cv_deplibs_check_method=pass_all 7090 ;; 7091os2*) 7092 lt_cv_deplibs_check_method=pass_all 7093 ;; 7094esac 7095 7096fi 7097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7098$as_echo "$lt_cv_deplibs_check_method" >&6; } 7099 7100file_magic_glob= 7101want_nocaseglob=no 7102if test "$build" = "$host"; then 7103 case $host_os in 7104 mingw* | pw32*) 7105 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7106 want_nocaseglob=yes 7107 else 7108 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7109 fi 7110 ;; 7111 esac 7112fi 7113 7114file_magic_cmd=$lt_cv_file_magic_cmd 7115deplibs_check_method=$lt_cv_deplibs_check_method 7116test -z "$deplibs_check_method" && deplibs_check_method=unknown 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139if test -n "$ac_tool_prefix"; then 7140 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7141set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7143$as_echo_n "checking for $ac_word... " >&6; } 7144if ${ac_cv_prog_DLLTOOL+:} false; then : 7145 $as_echo_n "(cached) " >&6 7146else 7147 if test -n "$DLLTOOL"; then 7148 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7149else 7150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7151for as_dir in $PATH 7152do 7153 IFS=$as_save_IFS 7154 test -z "$as_dir" && as_dir=. 7155 for ac_exec_ext in '' $ac_executable_extensions; do 7156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7157 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7159 break 2 7160 fi 7161done 7162 done 7163IFS=$as_save_IFS 7164 7165fi 7166fi 7167DLLTOOL=$ac_cv_prog_DLLTOOL 7168if test -n "$DLLTOOL"; then 7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7170$as_echo "$DLLTOOL" >&6; } 7171else 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7173$as_echo "no" >&6; } 7174fi 7175 7176 7177fi 7178if test -z "$ac_cv_prog_DLLTOOL"; then 7179 ac_ct_DLLTOOL=$DLLTOOL 7180 # Extract the first word of "dlltool", so it can be a program name with args. 7181set dummy dlltool; ac_word=$2 7182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7183$as_echo_n "checking for $ac_word... " >&6; } 7184if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7185 $as_echo_n "(cached) " >&6 7186else 7187 if test -n "$ac_ct_DLLTOOL"; then 7188 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7189else 7190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7191for as_dir in $PATH 7192do 7193 IFS=$as_save_IFS 7194 test -z "$as_dir" && as_dir=. 7195 for ac_exec_ext in '' $ac_executable_extensions; do 7196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7197 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7199 break 2 7200 fi 7201done 7202 done 7203IFS=$as_save_IFS 7204 7205fi 7206fi 7207ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7208if test -n "$ac_ct_DLLTOOL"; then 7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7210$as_echo "$ac_ct_DLLTOOL" >&6; } 7211else 7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7213$as_echo "no" >&6; } 7214fi 7215 7216 if test "x$ac_ct_DLLTOOL" = x; then 7217 DLLTOOL="false" 7218 else 7219 case $cross_compiling:$ac_tool_warned in 7220yes:) 7221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7223ac_tool_warned=yes ;; 7224esac 7225 DLLTOOL=$ac_ct_DLLTOOL 7226 fi 7227else 7228 DLLTOOL="$ac_cv_prog_DLLTOOL" 7229fi 7230 7231test -z "$DLLTOOL" && DLLTOOL=dlltool 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7243$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7244if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7245 $as_echo_n "(cached) " >&6 7246else 7247 lt_cv_sharedlib_from_linklib_cmd='unknown' 7248 7249case $host_os in 7250cygwin* | mingw* | pw32* | cegcc*) 7251 # two different shell functions defined in ltmain.sh; 7252 # decide which one to use based on capabilities of $DLLTOOL 7253 case `$DLLTOOL --help 2>&1` in 7254 *--identify-strict*) 7255 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7256 ;; 7257 *) 7258 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7259 ;; 7260 esac 7261 ;; 7262*) 7263 # fallback: assume linklib IS sharedlib 7264 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7265 ;; 7266esac 7267 7268fi 7269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7270$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7271sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7272test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7273 7274 7275 7276 7277 7278 7279 7280if test -n "$ac_tool_prefix"; then 7281 for ac_prog in ar 7282 do 7283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7284set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7286$as_echo_n "checking for $ac_word... " >&6; } 7287if ${ac_cv_prog_AR+:} false; then : 7288 $as_echo_n "(cached) " >&6 7289else 7290 if test -n "$AR"; then 7291 ac_cv_prog_AR="$AR" # Let the user override the test. 7292else 7293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7294for as_dir in $PATH 7295do 7296 IFS=$as_save_IFS 7297 test -z "$as_dir" && as_dir=. 7298 for ac_exec_ext in '' $ac_executable_extensions; do 7299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7300 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7302 break 2 7303 fi 7304done 7305 done 7306IFS=$as_save_IFS 7307 7308fi 7309fi 7310AR=$ac_cv_prog_AR 7311if test -n "$AR"; then 7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7313$as_echo "$AR" >&6; } 7314else 7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7316$as_echo "no" >&6; } 7317fi 7318 7319 7320 test -n "$AR" && break 7321 done 7322fi 7323if test -z "$AR"; then 7324 ac_ct_AR=$AR 7325 for ac_prog in ar 7326do 7327 # Extract the first word of "$ac_prog", so it can be a program name with args. 7328set dummy $ac_prog; ac_word=$2 7329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7330$as_echo_n "checking for $ac_word... " >&6; } 7331if ${ac_cv_prog_ac_ct_AR+:} false; then : 7332 $as_echo_n "(cached) " >&6 7333else 7334 if test -n "$ac_ct_AR"; then 7335 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7336else 7337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7338for as_dir in $PATH 7339do 7340 IFS=$as_save_IFS 7341 test -z "$as_dir" && as_dir=. 7342 for ac_exec_ext in '' $ac_executable_extensions; do 7343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7344 ac_cv_prog_ac_ct_AR="$ac_prog" 7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7346 break 2 7347 fi 7348done 7349 done 7350IFS=$as_save_IFS 7351 7352fi 7353fi 7354ac_ct_AR=$ac_cv_prog_ac_ct_AR 7355if test -n "$ac_ct_AR"; then 7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7357$as_echo "$ac_ct_AR" >&6; } 7358else 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7360$as_echo "no" >&6; } 7361fi 7362 7363 7364 test -n "$ac_ct_AR" && break 7365done 7366 7367 if test "x$ac_ct_AR" = x; then 7368 AR="false" 7369 else 7370 case $cross_compiling:$ac_tool_warned in 7371yes:) 7372{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7374ac_tool_warned=yes ;; 7375esac 7376 AR=$ac_ct_AR 7377 fi 7378fi 7379 7380: ${AR=ar} 7381: ${AR_FLAGS=cr} 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7394$as_echo_n "checking for archiver @FILE support... " >&6; } 7395if ${lt_cv_ar_at_file+:} false; then : 7396 $as_echo_n "(cached) " >&6 7397else 7398 lt_cv_ar_at_file=no 7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7400/* end confdefs.h. */ 7401 7402int 7403main () 7404{ 7405 7406 ; 7407 return 0; 7408} 7409_ACEOF 7410if ac_fn_cxx_try_compile "$LINENO"; then : 7411 echo conftest.$ac_objext > conftest.lst 7412 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7414 (eval $lt_ar_try) 2>&5 7415 ac_status=$? 7416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7417 test $ac_status = 0; } 7418 if test 0 -eq "$ac_status"; then 7419 # Ensure the archiver fails upon bogus file names. 7420 rm -f conftest.$ac_objext libconftest.a 7421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7422 (eval $lt_ar_try) 2>&5 7423 ac_status=$? 7424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7425 test $ac_status = 0; } 7426 if test 0 -ne "$ac_status"; then 7427 lt_cv_ar_at_file=@ 7428 fi 7429 fi 7430 rm -f conftest.* libconftest.a 7431 7432fi 7433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7434 7435fi 7436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7437$as_echo "$lt_cv_ar_at_file" >&6; } 7438 7439if test no = "$lt_cv_ar_at_file"; then 7440 archiver_list_spec= 7441else 7442 archiver_list_spec=$lt_cv_ar_at_file 7443fi 7444 7445 7446 7447 7448 7449 7450 7451if test -n "$ac_tool_prefix"; then 7452 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7453set dummy ${ac_tool_prefix}strip; 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_STRIP+:} false; then : 7457 $as_echo_n "(cached) " >&6 7458else 7459 if test -n "$STRIP"; then 7460 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip" 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 7479STRIP=$ac_cv_prog_STRIP 7480if test -n "$STRIP"; then 7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7482$as_echo "$STRIP" >&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_STRIP"; then 7491 ac_ct_STRIP=$STRIP 7492 # Extract the first word of "strip", so it can be a program name with args. 7493set dummy strip; 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_STRIP+:} false; then : 7497 $as_echo_n "(cached) " >&6 7498else 7499 if test -n "$ac_ct_STRIP"; then 7500 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_STRIP="strip" 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_STRIP=$ac_cv_prog_ac_ct_STRIP 7520if test -n "$ac_ct_STRIP"; then 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7522$as_echo "$ac_ct_STRIP" >&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_STRIP" = x; then 7529 STRIP=":" 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 STRIP=$ac_ct_STRIP 7538 fi 7539else 7540 STRIP="$ac_cv_prog_STRIP" 7541fi 7542 7543test -z "$STRIP" && STRIP=: 7544 7545 7546 7547 7548 7549 7550if test -n "$ac_tool_prefix"; then 7551 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7552set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7554$as_echo_n "checking for $ac_word... " >&6; } 7555if ${ac_cv_prog_RANLIB+:} false; then : 7556 $as_echo_n "(cached) " >&6 7557else 7558 if test -n "$RANLIB"; then 7559 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7560else 7561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7562for as_dir in $PATH 7563do 7564 IFS=$as_save_IFS 7565 test -z "$as_dir" && as_dir=. 7566 for ac_exec_ext in '' $ac_executable_extensions; do 7567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7568 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7570 break 2 7571 fi 7572done 7573 done 7574IFS=$as_save_IFS 7575 7576fi 7577fi 7578RANLIB=$ac_cv_prog_RANLIB 7579if test -n "$RANLIB"; then 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7581$as_echo "$RANLIB" >&6; } 7582else 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7584$as_echo "no" >&6; } 7585fi 7586 7587 7588fi 7589if test -z "$ac_cv_prog_RANLIB"; then 7590 ac_ct_RANLIB=$RANLIB 7591 # Extract the first word of "ranlib", so it can be a program name with args. 7592set dummy ranlib; ac_word=$2 7593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7594$as_echo_n "checking for $ac_word... " >&6; } 7595if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7596 $as_echo_n "(cached) " >&6 7597else 7598 if test -n "$ac_ct_RANLIB"; then 7599 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7600else 7601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7602for as_dir in $PATH 7603do 7604 IFS=$as_save_IFS 7605 test -z "$as_dir" && as_dir=. 7606 for ac_exec_ext in '' $ac_executable_extensions; do 7607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7608 ac_cv_prog_ac_ct_RANLIB="ranlib" 7609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7610 break 2 7611 fi 7612done 7613 done 7614IFS=$as_save_IFS 7615 7616fi 7617fi 7618ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7619if test -n "$ac_ct_RANLIB"; then 7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7621$as_echo "$ac_ct_RANLIB" >&6; } 7622else 7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7624$as_echo "no" >&6; } 7625fi 7626 7627 if test "x$ac_ct_RANLIB" = x; then 7628 RANLIB=":" 7629 else 7630 case $cross_compiling:$ac_tool_warned in 7631yes:) 7632{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7634ac_tool_warned=yes ;; 7635esac 7636 RANLIB=$ac_ct_RANLIB 7637 fi 7638else 7639 RANLIB="$ac_cv_prog_RANLIB" 7640fi 7641 7642test -z "$RANLIB" && RANLIB=: 7643 7644 7645 7646 7647 7648 7649# Determine commands to create old-style static archives. 7650old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7651old_postinstall_cmds='chmod 644 $oldlib' 7652old_postuninstall_cmds= 7653 7654if test -n "$RANLIB"; then 7655 case $host_os in 7656 bitrig* | openbsd*) 7657 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7658 ;; 7659 *) 7660 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7661 ;; 7662 esac 7663 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7664fi 7665 7666case $host_os in 7667 darwin*) 7668 lock_old_archive_extraction=yes ;; 7669 *) 7670 lock_old_archive_extraction=no ;; 7671esac 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711# If no C compiler was specified, use CC. 7712LTCC=${LTCC-"$CC"} 7713 7714# If no C compiler flags were specified, use CFLAGS. 7715LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7716 7717# Allow CC to be a program name with arguments. 7718compiler=$CC 7719 7720 7721# Check for command to grab the raw symbol name followed by C symbol from nm. 7722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7723$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7724if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7725 $as_echo_n "(cached) " >&6 7726else 7727 7728# These are sane defaults that work on at least a few old systems. 7729# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7730 7731# Character class describing NM global symbol codes. 7732symcode='[BCDEGRST]' 7733 7734# Regexp to match symbols that can be accessed directly from C. 7735sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7736 7737# Define system-specific variables. 7738case $host_os in 7739aix*) 7740 symcode='[BCDT]' 7741 ;; 7742cygwin* | mingw* | pw32* | cegcc*) 7743 symcode='[ABCDGISTW]' 7744 ;; 7745hpux*) 7746 if test ia64 = "$host_cpu"; then 7747 symcode='[ABCDEGRST]' 7748 fi 7749 ;; 7750irix* | nonstopux*) 7751 symcode='[BCDEGRST]' 7752 ;; 7753osf*) 7754 symcode='[BCDEGQRST]' 7755 ;; 7756solaris*) 7757 symcode='[BDRT]' 7758 ;; 7759sco3.2v5*) 7760 symcode='[DT]' 7761 ;; 7762sysv4.2uw2*) 7763 symcode='[DT]' 7764 ;; 7765sysv5* | sco5v6* | unixware* | OpenUNIX*) 7766 symcode='[ABDT]' 7767 ;; 7768sysv4) 7769 symcode='[DFNSTU]' 7770 ;; 7771esac 7772 7773# If we're using GNU nm, then use its standard symbol codes. 7774case `$NM -V 2>&1` in 7775*GNU* | *'with BFD'*) 7776 symcode='[ABCDGIRSTW]' ;; 7777esac 7778 7779if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7780 # Gets list of data symbols to import. 7781 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7782 # Adjust the below global symbol transforms to fixup imported variables. 7783 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7784 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7785 lt_c_name_lib_hook="\ 7786 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7787 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7788else 7789 # Disable hooks by default. 7790 lt_cv_sys_global_symbol_to_import= 7791 lt_cdecl_hook= 7792 lt_c_name_hook= 7793 lt_c_name_lib_hook= 7794fi 7795 7796# Transform an extracted symbol line into a proper C declaration. 7797# Some systems (esp. on ia64) link data and code symbols differently, 7798# so use this general approach. 7799lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7800$lt_cdecl_hook\ 7801" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7802" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7803 7804# Transform an extracted symbol line into symbol name and symbol address 7805lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7806$lt_c_name_hook\ 7807" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7808" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7809 7810# Transform an extracted symbol line into symbol name with lib prefix and 7811# symbol address. 7812lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7813$lt_c_name_lib_hook\ 7814" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7815" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7816" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7817 7818# Handle CRLF in mingw tool chain 7819opt_cr= 7820case $build_os in 7821mingw*) 7822 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7823 ;; 7824esac 7825 7826# Try without a prefix underscore, then with it. 7827for ac_symprfx in "" "_"; do 7828 7829 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7830 symxfrm="\\1 $ac_symprfx\\2 \\2" 7831 7832 # Write the raw and C identifiers. 7833 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7834 # Fake it for dumpbin and say T for any non-static function, 7835 # D for any global variable and I for any imported variable. 7836 # Also find C++ and __fastcall symbols from MSVC++, 7837 # which start with @ or ?. 7838 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7839" {last_section=section; section=\$ 3};"\ 7840" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7841" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7842" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7843" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7844" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7845" \$ 0!~/External *\|/{next};"\ 7846" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7847" {if(hide[section]) next};"\ 7848" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7849" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7850" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7851" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7852" ' prfx=^$ac_symprfx" 7853 else 7854 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7855 fi 7856 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7857 7858 # Check to see that the pipe works correctly. 7859 pipe_works=no 7860 7861 rm -f conftest* 7862 cat > conftest.$ac_ext <<_LT_EOF 7863#ifdef __cplusplus 7864extern "C" { 7865#endif 7866char nm_test_var; 7867void nm_test_func(void); 7868void nm_test_func(void){} 7869#ifdef __cplusplus 7870} 7871#endif 7872int main(){nm_test_var='a';nm_test_func();return(0);} 7873_LT_EOF 7874 7875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7876 (eval $ac_compile) 2>&5 7877 ac_status=$? 7878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7879 test $ac_status = 0; }; then 7880 # Now try to grab the symbols. 7881 nlist=conftest.nm 7882 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 7883 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 7884 # Try sorting and uniquifying the output. 7885 if sort "$nlist" | uniq > "$nlist"T; then 7886 mv -f "$nlist"T "$nlist" 7887 else 7888 rm -f "$nlist"T 7889 fi 7890 7891 # Make sure that we snagged all the symbols we need. 7892 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7893 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7894 cat <<_LT_EOF > conftest.$ac_ext 7895/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7896#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7897/* DATA imports from DLLs on WIN32 can't be const, because runtime 7898 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7899# define LT_DLSYM_CONST 7900#elif defined __osf__ 7901/* This system does not cope well with relocations in const data. */ 7902# define LT_DLSYM_CONST 7903#else 7904# define LT_DLSYM_CONST const 7905#endif 7906 7907#ifdef __cplusplus 7908extern "C" { 7909#endif 7910 7911_LT_EOF 7912 # Now generate the symbol file. 7913 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7914 7915 cat <<_LT_EOF >> conftest.$ac_ext 7916 7917/* The mapping between symbol names and symbols. */ 7918LT_DLSYM_CONST struct { 7919 const char *name; 7920 void *address; 7921} 7922lt__PROGRAM__LTX_preloaded_symbols[] = 7923{ 7924 { "@PROGRAM@", (void *) 0 }, 7925_LT_EOF 7926 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7927 cat <<\_LT_EOF >> conftest.$ac_ext 7928 {0, (void *) 0} 7929}; 7930 7931/* This works around a problem in FreeBSD linker */ 7932#ifdef FREEBSD_WORKAROUND 7933static const void *lt_preloaded_setup() { 7934 return lt__PROGRAM__LTX_preloaded_symbols; 7935} 7936#endif 7937 7938#ifdef __cplusplus 7939} 7940#endif 7941_LT_EOF 7942 # Now try linking the two files. 7943 mv conftest.$ac_objext conftstm.$ac_objext 7944 lt_globsym_save_LIBS=$LIBS 7945 lt_globsym_save_CFLAGS=$CFLAGS 7946 LIBS=conftstm.$ac_objext 7947 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7949 (eval $ac_link) 2>&5 7950 ac_status=$? 7951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7952 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7953 pipe_works=yes 7954 fi 7955 LIBS=$lt_globsym_save_LIBS 7956 CFLAGS=$lt_globsym_save_CFLAGS 7957 else 7958 echo "cannot find nm_test_func in $nlist" >&5 7959 fi 7960 else 7961 echo "cannot find nm_test_var in $nlist" >&5 7962 fi 7963 else 7964 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7965 fi 7966 else 7967 echo "$progname: failed program was:" >&5 7968 cat conftest.$ac_ext >&5 7969 fi 7970 rm -rf conftest* conftst* 7971 7972 # Do not use the global_symbol_pipe unless it works. 7973 if test yes = "$pipe_works"; then 7974 break 7975 else 7976 lt_cv_sys_global_symbol_pipe= 7977 fi 7978done 7979 7980fi 7981 7982if test -z "$lt_cv_sys_global_symbol_pipe"; then 7983 lt_cv_sys_global_symbol_to_cdecl= 7984fi 7985if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7987$as_echo "failed" >&6; } 7988else 7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7990$as_echo "ok" >&6; } 7991fi 7992 7993# Response file support. 7994if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7995 nm_file_list_spec='@' 7996elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7997 nm_file_list_spec='@' 7998fi 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8037$as_echo_n "checking for sysroot... " >&6; } 8038 8039# Check whether --with-sysroot was given. 8040if test "${with_sysroot+set}" = set; then : 8041 withval=$with_sysroot; 8042else 8043 with_sysroot=no 8044fi 8045 8046 8047lt_sysroot= 8048case $with_sysroot in #( 8049 yes) 8050 if test yes = "$GCC"; then 8051 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8052 fi 8053 ;; #( 8054 /*) 8055 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8056 ;; #( 8057 no|'') 8058 ;; #( 8059 *) 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8061$as_echo "$with_sysroot" >&6; } 8062 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8063 ;; 8064esac 8065 8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8067$as_echo "${lt_sysroot:-no}" >&6; } 8068 8069 8070 8071 8072 8073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8074$as_echo_n "checking for a working dd... " >&6; } 8075if ${ac_cv_path_lt_DD+:} false; then : 8076 $as_echo_n "(cached) " >&6 8077else 8078 printf 0123456789abcdef0123456789abcdef >conftest.i 8079cat conftest.i conftest.i >conftest2.i 8080: ${lt_DD:=$DD} 8081if test -z "$lt_DD"; then 8082 ac_path_lt_DD_found=false 8083 # Loop through the user's path and test for each of PROGNAME-LIST 8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8085for as_dir in $PATH 8086do 8087 IFS=$as_save_IFS 8088 test -z "$as_dir" && as_dir=. 8089 for ac_prog in dd; do 8090 for ac_exec_ext in '' $ac_executable_extensions; do 8091 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 8092 as_fn_executable_p "$ac_path_lt_DD" || continue 8093if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8094 cmp -s conftest.i conftest.out \ 8095 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8096fi 8097 $ac_path_lt_DD_found && break 3 8098 done 8099 done 8100 done 8101IFS=$as_save_IFS 8102 if test -z "$ac_cv_path_lt_DD"; then 8103 : 8104 fi 8105else 8106 ac_cv_path_lt_DD=$lt_DD 8107fi 8108 8109rm -f conftest.i conftest2.i conftest.out 8110fi 8111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8112$as_echo "$ac_cv_path_lt_DD" >&6; } 8113 8114 8115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8116$as_echo_n "checking how to truncate binary pipes... " >&6; } 8117if ${lt_cv_truncate_bin+:} false; then : 8118 $as_echo_n "(cached) " >&6 8119else 8120 printf 0123456789abcdef0123456789abcdef >conftest.i 8121cat conftest.i conftest.i >conftest2.i 8122lt_cv_truncate_bin= 8123if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8124 cmp -s conftest.i conftest.out \ 8125 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8126fi 8127rm -f conftest.i conftest2.i conftest.out 8128test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 8129fi 8130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8131$as_echo "$lt_cv_truncate_bin" >&6; } 8132 8133 8134 8135 8136 8137 8138 8139# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8140func_cc_basename () 8141{ 8142 for cc_temp in $*""; do 8143 case $cc_temp in 8144 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8145 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8146 \-*) ;; 8147 *) break;; 8148 esac 8149 done 8150 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8151} 8152 8153 8154# Check whether --enable-libtool-lock was given. 8155if test "${enable_libtool_lock+set}" = set; then : 8156 enableval=$enable_libtool_lock; 8157fi 8158 8159test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8160 8161# Some flags need to be propagated to the compiler or linker for good 8162# libtool support. 8163case $host in 8164ia64-*-hpux*) 8165 # Find out what ABI is being produced by ac_compile, and set mode 8166 # options accordingly. 8167 echo 'int i;' > conftest.$ac_ext 8168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8169 (eval $ac_compile) 2>&5 8170 ac_status=$? 8171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8172 test $ac_status = 0; }; then 8173 case `/usr/bin/file conftest.$ac_objext` in 8174 *ELF-32*) 8175 HPUX_IA64_MODE=32 8176 ;; 8177 *ELF-64*) 8178 HPUX_IA64_MODE=64 8179 ;; 8180 esac 8181 fi 8182 rm -rf conftest* 8183 ;; 8184*-*-irix6*) 8185 # Find out what ABI is being produced by ac_compile, and set linker 8186 # options accordingly. 8187 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8189 (eval $ac_compile) 2>&5 8190 ac_status=$? 8191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8192 test $ac_status = 0; }; then 8193 if test yes = "$lt_cv_prog_gnu_ld"; then 8194 case `/usr/bin/file conftest.$ac_objext` in 8195 *32-bit*) 8196 LD="${LD-ld} -melf32bsmip" 8197 ;; 8198 *N32*) 8199 LD="${LD-ld} -melf32bmipn32" 8200 ;; 8201 *64-bit*) 8202 LD="${LD-ld} -melf64bmip" 8203 ;; 8204 esac 8205 else 8206 case `/usr/bin/file conftest.$ac_objext` in 8207 *32-bit*) 8208 LD="${LD-ld} -32" 8209 ;; 8210 *N32*) 8211 LD="${LD-ld} -n32" 8212 ;; 8213 *64-bit*) 8214 LD="${LD-ld} -64" 8215 ;; 8216 esac 8217 fi 8218 fi 8219 rm -rf conftest* 8220 ;; 8221 8222mips64*-*linux*) 8223 # Find out what ABI is being produced by ac_compile, and set linker 8224 # options accordingly. 8225 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8227 (eval $ac_compile) 2>&5 8228 ac_status=$? 8229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8230 test $ac_status = 0; }; then 8231 emul=elf 8232 case `/usr/bin/file conftest.$ac_objext` in 8233 *32-bit*) 8234 emul="${emul}32" 8235 ;; 8236 *64-bit*) 8237 emul="${emul}64" 8238 ;; 8239 esac 8240 case `/usr/bin/file conftest.$ac_objext` in 8241 *MSB*) 8242 emul="${emul}btsmip" 8243 ;; 8244 *LSB*) 8245 emul="${emul}ltsmip" 8246 ;; 8247 esac 8248 case `/usr/bin/file conftest.$ac_objext` in 8249 *N32*) 8250 emul="${emul}n32" 8251 ;; 8252 esac 8253 LD="${LD-ld} -m $emul" 8254 fi 8255 rm -rf conftest* 8256 ;; 8257 8258x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8259s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8260 # Find out what ABI is being produced by ac_compile, and set linker 8261 # options accordingly. Note that the listed cases only cover the 8262 # situations where additional linker options are needed (such as when 8263 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8264 # vice versa); the common cases where no linker options are needed do 8265 # not appear in the list. 8266 echo 'int i;' > conftest.$ac_ext 8267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8268 (eval $ac_compile) 2>&5 8269 ac_status=$? 8270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8271 test $ac_status = 0; }; then 8272 case `/usr/bin/file conftest.o` in 8273 *32-bit*) 8274 case $host in 8275 x86_64-*kfreebsd*-gnu) 8276 LD="${LD-ld} -m elf_i386_fbsd" 8277 ;; 8278 x86_64-*linux*) 8279 case `/usr/bin/file conftest.o` in 8280 *x86-64*) 8281 LD="${LD-ld} -m elf32_x86_64" 8282 ;; 8283 *) 8284 LD="${LD-ld} -m elf_i386" 8285 ;; 8286 esac 8287 ;; 8288 powerpc64le-*linux*) 8289 LD="${LD-ld} -m elf32lppclinux" 8290 ;; 8291 powerpc64-*linux*) 8292 LD="${LD-ld} -m elf32ppclinux" 8293 ;; 8294 s390x-*linux*) 8295 LD="${LD-ld} -m elf_s390" 8296 ;; 8297 sparc64-*linux*) 8298 LD="${LD-ld} -m elf32_sparc" 8299 ;; 8300 esac 8301 ;; 8302 *64-bit*) 8303 case $host in 8304 x86_64-*kfreebsd*-gnu) 8305 LD="${LD-ld} -m elf_x86_64_fbsd" 8306 ;; 8307 x86_64-*linux*) 8308 LD="${LD-ld} -m elf_x86_64" 8309 ;; 8310 powerpcle-*linux*) 8311 LD="${LD-ld} -m elf64lppc" 8312 ;; 8313 powerpc-*linux*) 8314 LD="${LD-ld} -m elf64ppc" 8315 ;; 8316 s390*-*linux*|s390*-*tpf*) 8317 LD="${LD-ld} -m elf64_s390" 8318 ;; 8319 sparc*-*linux*) 8320 LD="${LD-ld} -m elf64_sparc" 8321 ;; 8322 esac 8323 ;; 8324 esac 8325 fi 8326 rm -rf conftest* 8327 ;; 8328 8329*-*-sco3.2v5*) 8330 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8331 SAVE_CFLAGS=$CFLAGS 8332 CFLAGS="$CFLAGS -belf" 8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8334$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8335if ${lt_cv_cc_needs_belf+:} false; then : 8336 $as_echo_n "(cached) " >&6 8337else 8338 ac_ext=c 8339ac_cpp='$CPP $CPPFLAGS' 8340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8342ac_compiler_gnu=$ac_cv_c_compiler_gnu 8343 8344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8345/* end confdefs.h. */ 8346 8347int 8348main () 8349{ 8350 8351 ; 8352 return 0; 8353} 8354_ACEOF 8355if ac_fn_c_try_link "$LINENO"; then : 8356 lt_cv_cc_needs_belf=yes 8357else 8358 lt_cv_cc_needs_belf=no 8359fi 8360rm -f core conftest.err conftest.$ac_objext \ 8361 conftest$ac_exeext conftest.$ac_ext 8362 ac_ext=c 8363ac_cpp='$CPP $CPPFLAGS' 8364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8366ac_compiler_gnu=$ac_cv_c_compiler_gnu 8367 8368fi 8369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8370$as_echo "$lt_cv_cc_needs_belf" >&6; } 8371 if test yes != "$lt_cv_cc_needs_belf"; then 8372 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8373 CFLAGS=$SAVE_CFLAGS 8374 fi 8375 ;; 8376*-*solaris*) 8377 # Find out what ABI is being produced by ac_compile, and set linker 8378 # options accordingly. 8379 echo 'int i;' > conftest.$ac_ext 8380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8381 (eval $ac_compile) 2>&5 8382 ac_status=$? 8383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8384 test $ac_status = 0; }; then 8385 case `/usr/bin/file conftest.o` in 8386 *64-bit*) 8387 case $lt_cv_prog_gnu_ld in 8388 yes*) 8389 case $host in 8390 i?86-*-solaris*|x86_64-*-solaris*) 8391 LD="${LD-ld} -m elf_x86_64" 8392 ;; 8393 sparc*-*-solaris*) 8394 LD="${LD-ld} -m elf64_sparc" 8395 ;; 8396 esac 8397 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8398 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8399 LD=${LD-ld}_sol2 8400 fi 8401 ;; 8402 *) 8403 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8404 LD="${LD-ld} -64" 8405 fi 8406 ;; 8407 esac 8408 ;; 8409 esac 8410 fi 8411 rm -rf conftest* 8412 ;; 8413esac 8414 8415need_locks=$enable_libtool_lock 8416 8417if test -n "$ac_tool_prefix"; then 8418 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8419set dummy ${ac_tool_prefix}mt; ac_word=$2 8420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8421$as_echo_n "checking for $ac_word... " >&6; } 8422if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8423 $as_echo_n "(cached) " >&6 8424else 8425 if test -n "$MANIFEST_TOOL"; then 8426 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8427else 8428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8429for as_dir in $PATH 8430do 8431 IFS=$as_save_IFS 8432 test -z "$as_dir" && as_dir=. 8433 for ac_exec_ext in '' $ac_executable_extensions; do 8434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8435 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8437 break 2 8438 fi 8439done 8440 done 8441IFS=$as_save_IFS 8442 8443fi 8444fi 8445MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8446if test -n "$MANIFEST_TOOL"; then 8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8448$as_echo "$MANIFEST_TOOL" >&6; } 8449else 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8451$as_echo "no" >&6; } 8452fi 8453 8454 8455fi 8456if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8457 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8458 # Extract the first word of "mt", so it can be a program name with args. 8459set dummy mt; ac_word=$2 8460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8461$as_echo_n "checking for $ac_word... " >&6; } 8462if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8463 $as_echo_n "(cached) " >&6 8464else 8465 if test -n "$ac_ct_MANIFEST_TOOL"; then 8466 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8467else 8468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8469for as_dir in $PATH 8470do 8471 IFS=$as_save_IFS 8472 test -z "$as_dir" && as_dir=. 8473 for ac_exec_ext in '' $ac_executable_extensions; do 8474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8475 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8477 break 2 8478 fi 8479done 8480 done 8481IFS=$as_save_IFS 8482 8483fi 8484fi 8485ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8486if test -n "$ac_ct_MANIFEST_TOOL"; then 8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8488$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8489else 8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8491$as_echo "no" >&6; } 8492fi 8493 8494 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8495 MANIFEST_TOOL=":" 8496 else 8497 case $cross_compiling:$ac_tool_warned in 8498yes:) 8499{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8501ac_tool_warned=yes ;; 8502esac 8503 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8504 fi 8505else 8506 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8507fi 8508 8509test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8511$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8512if ${lt_cv_path_mainfest_tool+:} false; then : 8513 $as_echo_n "(cached) " >&6 8514else 8515 lt_cv_path_mainfest_tool=no 8516 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8517 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8518 cat conftest.err >&5 8519 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8520 lt_cv_path_mainfest_tool=yes 8521 fi 8522 rm -f conftest* 8523fi 8524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8525$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8526if test yes != "$lt_cv_path_mainfest_tool"; then 8527 MANIFEST_TOOL=: 8528fi 8529 8530 8531 8532 8533 8534 8535 case $host_os in 8536 rhapsody* | darwin*) 8537 if test -n "$ac_tool_prefix"; then 8538 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8539set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8541$as_echo_n "checking for $ac_word... " >&6; } 8542if ${ac_cv_prog_DSYMUTIL+:} false; then : 8543 $as_echo_n "(cached) " >&6 8544else 8545 if test -n "$DSYMUTIL"; then 8546 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8547else 8548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8549for as_dir in $PATH 8550do 8551 IFS=$as_save_IFS 8552 test -z "$as_dir" && as_dir=. 8553 for ac_exec_ext in '' $ac_executable_extensions; do 8554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8555 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8557 break 2 8558 fi 8559done 8560 done 8561IFS=$as_save_IFS 8562 8563fi 8564fi 8565DSYMUTIL=$ac_cv_prog_DSYMUTIL 8566if test -n "$DSYMUTIL"; then 8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8568$as_echo "$DSYMUTIL" >&6; } 8569else 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8571$as_echo "no" >&6; } 8572fi 8573 8574 8575fi 8576if test -z "$ac_cv_prog_DSYMUTIL"; then 8577 ac_ct_DSYMUTIL=$DSYMUTIL 8578 # Extract the first word of "dsymutil", so it can be a program name with args. 8579set dummy dsymutil; ac_word=$2 8580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8581$as_echo_n "checking for $ac_word... " >&6; } 8582if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8583 $as_echo_n "(cached) " >&6 8584else 8585 if test -n "$ac_ct_DSYMUTIL"; then 8586 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8587else 8588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8589for as_dir in $PATH 8590do 8591 IFS=$as_save_IFS 8592 test -z "$as_dir" && as_dir=. 8593 for ac_exec_ext in '' $ac_executable_extensions; do 8594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8595 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8597 break 2 8598 fi 8599done 8600 done 8601IFS=$as_save_IFS 8602 8603fi 8604fi 8605ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8606if test -n "$ac_ct_DSYMUTIL"; then 8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8608$as_echo "$ac_ct_DSYMUTIL" >&6; } 8609else 8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8611$as_echo "no" >&6; } 8612fi 8613 8614 if test "x$ac_ct_DSYMUTIL" = x; then 8615 DSYMUTIL=":" 8616 else 8617 case $cross_compiling:$ac_tool_warned in 8618yes:) 8619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8621ac_tool_warned=yes ;; 8622esac 8623 DSYMUTIL=$ac_ct_DSYMUTIL 8624 fi 8625else 8626 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8627fi 8628 8629 if test -n "$ac_tool_prefix"; then 8630 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8631set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8633$as_echo_n "checking for $ac_word... " >&6; } 8634if ${ac_cv_prog_NMEDIT+:} false; then : 8635 $as_echo_n "(cached) " >&6 8636else 8637 if test -n "$NMEDIT"; then 8638 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8639else 8640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8641for as_dir in $PATH 8642do 8643 IFS=$as_save_IFS 8644 test -z "$as_dir" && as_dir=. 8645 for ac_exec_ext in '' $ac_executable_extensions; do 8646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8647 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8649 break 2 8650 fi 8651done 8652 done 8653IFS=$as_save_IFS 8654 8655fi 8656fi 8657NMEDIT=$ac_cv_prog_NMEDIT 8658if test -n "$NMEDIT"; then 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8660$as_echo "$NMEDIT" >&6; } 8661else 8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8663$as_echo "no" >&6; } 8664fi 8665 8666 8667fi 8668if test -z "$ac_cv_prog_NMEDIT"; then 8669 ac_ct_NMEDIT=$NMEDIT 8670 # Extract the first word of "nmedit", so it can be a program name with args. 8671set dummy nmedit; ac_word=$2 8672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8673$as_echo_n "checking for $ac_word... " >&6; } 8674if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8675 $as_echo_n "(cached) " >&6 8676else 8677 if test -n "$ac_ct_NMEDIT"; then 8678 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8679else 8680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8681for as_dir in $PATH 8682do 8683 IFS=$as_save_IFS 8684 test -z "$as_dir" && as_dir=. 8685 for ac_exec_ext in '' $ac_executable_extensions; do 8686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8687 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8689 break 2 8690 fi 8691done 8692 done 8693IFS=$as_save_IFS 8694 8695fi 8696fi 8697ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8698if test -n "$ac_ct_NMEDIT"; then 8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8700$as_echo "$ac_ct_NMEDIT" >&6; } 8701else 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8703$as_echo "no" >&6; } 8704fi 8705 8706 if test "x$ac_ct_NMEDIT" = x; then 8707 NMEDIT=":" 8708 else 8709 case $cross_compiling:$ac_tool_warned in 8710yes:) 8711{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8713ac_tool_warned=yes ;; 8714esac 8715 NMEDIT=$ac_ct_NMEDIT 8716 fi 8717else 8718 NMEDIT="$ac_cv_prog_NMEDIT" 8719fi 8720 8721 if test -n "$ac_tool_prefix"; then 8722 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8723set dummy ${ac_tool_prefix}lipo; ac_word=$2 8724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8725$as_echo_n "checking for $ac_word... " >&6; } 8726if ${ac_cv_prog_LIPO+:} false; then : 8727 $as_echo_n "(cached) " >&6 8728else 8729 if test -n "$LIPO"; then 8730 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8731else 8732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8733for as_dir in $PATH 8734do 8735 IFS=$as_save_IFS 8736 test -z "$as_dir" && as_dir=. 8737 for ac_exec_ext in '' $ac_executable_extensions; do 8738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8739 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8741 break 2 8742 fi 8743done 8744 done 8745IFS=$as_save_IFS 8746 8747fi 8748fi 8749LIPO=$ac_cv_prog_LIPO 8750if test -n "$LIPO"; then 8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8752$as_echo "$LIPO" >&6; } 8753else 8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8755$as_echo "no" >&6; } 8756fi 8757 8758 8759fi 8760if test -z "$ac_cv_prog_LIPO"; then 8761 ac_ct_LIPO=$LIPO 8762 # Extract the first word of "lipo", so it can be a program name with args. 8763set dummy lipo; ac_word=$2 8764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8765$as_echo_n "checking for $ac_word... " >&6; } 8766if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8767 $as_echo_n "(cached) " >&6 8768else 8769 if test -n "$ac_ct_LIPO"; then 8770 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8771else 8772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8773for as_dir in $PATH 8774do 8775 IFS=$as_save_IFS 8776 test -z "$as_dir" && as_dir=. 8777 for ac_exec_ext in '' $ac_executable_extensions; do 8778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8779 ac_cv_prog_ac_ct_LIPO="lipo" 8780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8781 break 2 8782 fi 8783done 8784 done 8785IFS=$as_save_IFS 8786 8787fi 8788fi 8789ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8790if test -n "$ac_ct_LIPO"; then 8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8792$as_echo "$ac_ct_LIPO" >&6; } 8793else 8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8795$as_echo "no" >&6; } 8796fi 8797 8798 if test "x$ac_ct_LIPO" = x; then 8799 LIPO=":" 8800 else 8801 case $cross_compiling:$ac_tool_warned in 8802yes:) 8803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8805ac_tool_warned=yes ;; 8806esac 8807 LIPO=$ac_ct_LIPO 8808 fi 8809else 8810 LIPO="$ac_cv_prog_LIPO" 8811fi 8812 8813 if test -n "$ac_tool_prefix"; then 8814 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8815set dummy ${ac_tool_prefix}otool; ac_word=$2 8816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8817$as_echo_n "checking for $ac_word... " >&6; } 8818if ${ac_cv_prog_OTOOL+:} false; then : 8819 $as_echo_n "(cached) " >&6 8820else 8821 if test -n "$OTOOL"; then 8822 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8823else 8824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8825for as_dir in $PATH 8826do 8827 IFS=$as_save_IFS 8828 test -z "$as_dir" && as_dir=. 8829 for ac_exec_ext in '' $ac_executable_extensions; do 8830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8831 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8833 break 2 8834 fi 8835done 8836 done 8837IFS=$as_save_IFS 8838 8839fi 8840fi 8841OTOOL=$ac_cv_prog_OTOOL 8842if test -n "$OTOOL"; then 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8844$as_echo "$OTOOL" >&6; } 8845else 8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8847$as_echo "no" >&6; } 8848fi 8849 8850 8851fi 8852if test -z "$ac_cv_prog_OTOOL"; then 8853 ac_ct_OTOOL=$OTOOL 8854 # Extract the first word of "otool", so it can be a program name with args. 8855set dummy otool; ac_word=$2 8856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8857$as_echo_n "checking for $ac_word... " >&6; } 8858if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8859 $as_echo_n "(cached) " >&6 8860else 8861 if test -n "$ac_ct_OTOOL"; then 8862 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8863else 8864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8865for as_dir in $PATH 8866do 8867 IFS=$as_save_IFS 8868 test -z "$as_dir" && as_dir=. 8869 for ac_exec_ext in '' $ac_executable_extensions; do 8870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8871 ac_cv_prog_ac_ct_OTOOL="otool" 8872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8873 break 2 8874 fi 8875done 8876 done 8877IFS=$as_save_IFS 8878 8879fi 8880fi 8881ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8882if test -n "$ac_ct_OTOOL"; then 8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8884$as_echo "$ac_ct_OTOOL" >&6; } 8885else 8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8887$as_echo "no" >&6; } 8888fi 8889 8890 if test "x$ac_ct_OTOOL" = x; then 8891 OTOOL=":" 8892 else 8893 case $cross_compiling:$ac_tool_warned in 8894yes:) 8895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8897ac_tool_warned=yes ;; 8898esac 8899 OTOOL=$ac_ct_OTOOL 8900 fi 8901else 8902 OTOOL="$ac_cv_prog_OTOOL" 8903fi 8904 8905 if test -n "$ac_tool_prefix"; then 8906 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8907set dummy ${ac_tool_prefix}otool64; ac_word=$2 8908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8909$as_echo_n "checking for $ac_word... " >&6; } 8910if ${ac_cv_prog_OTOOL64+:} false; then : 8911 $as_echo_n "(cached) " >&6 8912else 8913 if test -n "$OTOOL64"; then 8914 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8915else 8916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8917for as_dir in $PATH 8918do 8919 IFS=$as_save_IFS 8920 test -z "$as_dir" && as_dir=. 8921 for ac_exec_ext in '' $ac_executable_extensions; do 8922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8923 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8925 break 2 8926 fi 8927done 8928 done 8929IFS=$as_save_IFS 8930 8931fi 8932fi 8933OTOOL64=$ac_cv_prog_OTOOL64 8934if test -n "$OTOOL64"; then 8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8936$as_echo "$OTOOL64" >&6; } 8937else 8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8939$as_echo "no" >&6; } 8940fi 8941 8942 8943fi 8944if test -z "$ac_cv_prog_OTOOL64"; then 8945 ac_ct_OTOOL64=$OTOOL64 8946 # Extract the first word of "otool64", so it can be a program name with args. 8947set dummy otool64; ac_word=$2 8948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8949$as_echo_n "checking for $ac_word... " >&6; } 8950if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8951 $as_echo_n "(cached) " >&6 8952else 8953 if test -n "$ac_ct_OTOOL64"; then 8954 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8955else 8956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8957for as_dir in $PATH 8958do 8959 IFS=$as_save_IFS 8960 test -z "$as_dir" && as_dir=. 8961 for ac_exec_ext in '' $ac_executable_extensions; do 8962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8963 ac_cv_prog_ac_ct_OTOOL64="otool64" 8964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8965 break 2 8966 fi 8967done 8968 done 8969IFS=$as_save_IFS 8970 8971fi 8972fi 8973ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8974if test -n "$ac_ct_OTOOL64"; then 8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8976$as_echo "$ac_ct_OTOOL64" >&6; } 8977else 8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8979$as_echo "no" >&6; } 8980fi 8981 8982 if test "x$ac_ct_OTOOL64" = x; then 8983 OTOOL64=":" 8984 else 8985 case $cross_compiling:$ac_tool_warned in 8986yes:) 8987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8989ac_tool_warned=yes ;; 8990esac 8991 OTOOL64=$ac_ct_OTOOL64 8992 fi 8993else 8994 OTOOL64="$ac_cv_prog_OTOOL64" 8995fi 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9024$as_echo_n "checking for -single_module linker flag... " >&6; } 9025if ${lt_cv_apple_cc_single_mod+:} false; then : 9026 $as_echo_n "(cached) " >&6 9027else 9028 lt_cv_apple_cc_single_mod=no 9029 if test -z "$LT_MULTI_MODULE"; then 9030 # By default we will add the -single_module flag. You can override 9031 # by either setting the environment variable LT_MULTI_MODULE 9032 # non-empty at configure time, or by adding -multi_module to the 9033 # link flags. 9034 rm -rf libconftest.dylib* 9035 echo "int foo(void){return 1;}" > conftest.c 9036 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9037-dynamiclib -Wl,-single_module conftest.c" >&5 9038 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9039 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9040 _lt_result=$? 9041 # If there is a non-empty error log, and "single_module" 9042 # appears in it, assume the flag caused a linker warning 9043 if test -s conftest.err && $GREP single_module conftest.err; then 9044 cat conftest.err >&5 9045 # Otherwise, if the output was created with a 0 exit code from 9046 # the compiler, it worked. 9047 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9048 lt_cv_apple_cc_single_mod=yes 9049 else 9050 cat conftest.err >&5 9051 fi 9052 rm -rf libconftest.dylib* 9053 rm -f conftest.* 9054 fi 9055fi 9056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9057$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9058 9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9060$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9061if ${lt_cv_ld_exported_symbols_list+:} false; then : 9062 $as_echo_n "(cached) " >&6 9063else 9064 lt_cv_ld_exported_symbols_list=no 9065 save_LDFLAGS=$LDFLAGS 9066 echo "_main" > conftest.sym 9067 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9069/* end confdefs.h. */ 9070 9071int 9072main () 9073{ 9074 9075 ; 9076 return 0; 9077} 9078_ACEOF 9079if ac_fn_c_try_link "$LINENO"; then : 9080 lt_cv_ld_exported_symbols_list=yes 9081else 9082 lt_cv_ld_exported_symbols_list=no 9083fi 9084rm -f core conftest.err conftest.$ac_objext \ 9085 conftest$ac_exeext conftest.$ac_ext 9086 LDFLAGS=$save_LDFLAGS 9087 9088fi 9089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9090$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9091 9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9093$as_echo_n "checking for -force_load linker flag... " >&6; } 9094if ${lt_cv_ld_force_load+:} false; then : 9095 $as_echo_n "(cached) " >&6 9096else 9097 lt_cv_ld_force_load=no 9098 cat > conftest.c << _LT_EOF 9099int forced_loaded() { return 2;} 9100_LT_EOF 9101 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9102 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9103 echo "$AR cr libconftest.a conftest.o" >&5 9104 $AR cr libconftest.a conftest.o 2>&5 9105 echo "$RANLIB libconftest.a" >&5 9106 $RANLIB libconftest.a 2>&5 9107 cat > conftest.c << _LT_EOF 9108int main() { return 0;} 9109_LT_EOF 9110 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9111 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9112 _lt_result=$? 9113 if test -s conftest.err && $GREP force_load conftest.err; then 9114 cat conftest.err >&5 9115 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9116 lt_cv_ld_force_load=yes 9117 else 9118 cat conftest.err >&5 9119 fi 9120 rm -f conftest.err libconftest.a conftest conftest.c 9121 rm -rf conftest.dSYM 9122 9123fi 9124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9125$as_echo "$lt_cv_ld_force_load" >&6; } 9126 case $host_os in 9127 rhapsody* | darwin1.[012]) 9128 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9129 darwin1.*) 9130 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9131 darwin*) # darwin 5.x on 9132 # if running on 10.5 or later, the deployment target defaults 9133 # to the OS version, if on x86, and 10.4, the deployment 9134 # target defaults to 10.4. Don't you love it? 9135 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9136 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9137 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9138 10.[012][,.]*) 9139 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9140 10.*) 9141 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9142 esac 9143 ;; 9144 esac 9145 if test yes = "$lt_cv_apple_cc_single_mod"; then 9146 _lt_dar_single_mod='$single_module' 9147 fi 9148 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9149 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9150 else 9151 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9152 fi 9153 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9154 _lt_dsymutil='~$DSYMUTIL $lib || :' 9155 else 9156 _lt_dsymutil= 9157 fi 9158 ;; 9159 esac 9160 9161# func_munge_path_list VARIABLE PATH 9162# ----------------------------------- 9163# VARIABLE is name of variable containing _space_ separated list of 9164# directories to be munged by the contents of PATH, which is string 9165# having a format: 9166# "DIR[:DIR]:" 9167# string "DIR[ DIR]" will be prepended to VARIABLE 9168# ":DIR[:DIR]" 9169# string "DIR[ DIR]" will be appended to VARIABLE 9170# "DIRP[:DIRP]::[DIRA:]DIRA" 9171# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9172# "DIRA[ DIRA]" will be appended to VARIABLE 9173# "DIR[:DIR]" 9174# VARIABLE will be replaced by "DIR[ DIR]" 9175func_munge_path_list () 9176{ 9177 case x$2 in 9178 x) 9179 ;; 9180 *:) 9181 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9182 ;; 9183 x:*) 9184 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9185 ;; 9186 *::*) 9187 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9188 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9189 ;; 9190 *) 9191 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9192 ;; 9193 esac 9194} 9195 9196 9197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 9198$as_echo_n "checking for ANSI C header files... " >&6; } 9199if ${ac_cv_header_stdc+:} false; then : 9200 $as_echo_n "(cached) " >&6 9201else 9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9203/* end confdefs.h. */ 9204#include <stdlib.h> 9205#include <stdarg.h> 9206#include <string.h> 9207#include <float.h> 9208 9209int 9210main () 9211{ 9212 9213 ; 9214 return 0; 9215} 9216_ACEOF 9217if ac_fn_c_try_compile "$LINENO"; then : 9218 ac_cv_header_stdc=yes 9219else 9220 ac_cv_header_stdc=no 9221fi 9222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9223 9224if test $ac_cv_header_stdc = yes; then 9225 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9227/* end confdefs.h. */ 9228#include <string.h> 9229 9230_ACEOF 9231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9232 $EGREP "memchr" >/dev/null 2>&1; then : 9233 9234else 9235 ac_cv_header_stdc=no 9236fi 9237rm -f conftest* 9238 9239fi 9240 9241if test $ac_cv_header_stdc = yes; then 9242 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 9243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9244/* end confdefs.h. */ 9245#include <stdlib.h> 9246 9247_ACEOF 9248if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9249 $EGREP "free" >/dev/null 2>&1; then : 9250 9251else 9252 ac_cv_header_stdc=no 9253fi 9254rm -f conftest* 9255 9256fi 9257 9258if test $ac_cv_header_stdc = yes; then 9259 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 9260 if test "$cross_compiling" = yes; then : 9261 : 9262else 9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9264/* end confdefs.h. */ 9265#include <ctype.h> 9266#include <stdlib.h> 9267#if ((' ' & 0x0FF) == 0x020) 9268# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 9269# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 9270#else 9271# define ISLOWER(c) \ 9272 (('a' <= (c) && (c) <= 'i') \ 9273 || ('j' <= (c) && (c) <= 'r') \ 9274 || ('s' <= (c) && (c) <= 'z')) 9275# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 9276#endif 9277 9278#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 9279int 9280main () 9281{ 9282 int i; 9283 for (i = 0; i < 256; i++) 9284 if (XOR (islower (i), ISLOWER (i)) 9285 || toupper (i) != TOUPPER (i)) 9286 return 2; 9287 return 0; 9288} 9289_ACEOF 9290if ac_fn_c_try_run "$LINENO"; then : 9291 9292else 9293 ac_cv_header_stdc=no 9294fi 9295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9296 conftest.$ac_objext conftest.beam conftest.$ac_ext 9297fi 9298 9299fi 9300fi 9301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 9302$as_echo "$ac_cv_header_stdc" >&6; } 9303if test $ac_cv_header_stdc = yes; then 9304 9305$as_echo "#define STDC_HEADERS 1" >>confdefs.h 9306 9307fi 9308 9309# On IRIX 5.3, sys/types and inttypes.h are conflicting. 9310for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 9311 inttypes.h stdint.h unistd.h 9312do : 9313 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9314ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 9315" 9316if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9317 cat >>confdefs.h <<_ACEOF 9318#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9319_ACEOF 9320 9321fi 9322 9323done 9324 9325 9326for ac_header in dlfcn.h 9327do : 9328 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9329" 9330if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9331 cat >>confdefs.h <<_ACEOF 9332#define HAVE_DLFCN_H 1 9333_ACEOF 9334 9335fi 9336 9337done 9338 9339 9340 9341func_stripname_cnf () 9342{ 9343 case $2 in 9344 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 9345 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 9346 esac 9347} # func_stripname_cnf 9348 9349 9350 9351 9352 9353# Set options 9354 9355 9356 9357 enable_dlopen=no 9358 9359 9360 enable_win32_dll=no 9361 9362 9363 # Check whether --enable-shared was given. 9364if test "${enable_shared+set}" = set; then : 9365 enableval=$enable_shared; p=${PACKAGE-default} 9366 case $enableval in 9367 yes) enable_shared=yes ;; 9368 no) enable_shared=no ;; 9369 *) 9370 enable_shared=no 9371 # Look at the argument we got. We use all the common list separators. 9372 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9373 for pkg in $enableval; do 9374 IFS=$lt_save_ifs 9375 if test "X$pkg" = "X$p"; then 9376 enable_shared=yes 9377 fi 9378 done 9379 IFS=$lt_save_ifs 9380 ;; 9381 esac 9382else 9383 enable_shared=yes 9384fi 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 # Check whether --enable-static was given. 9395if test "${enable_static+set}" = set; then : 9396 enableval=$enable_static; p=${PACKAGE-default} 9397 case $enableval in 9398 yes) enable_static=yes ;; 9399 no) enable_static=no ;; 9400 *) 9401 enable_static=no 9402 # Look at the argument we got. We use all the common list separators. 9403 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9404 for pkg in $enableval; do 9405 IFS=$lt_save_ifs 9406 if test "X$pkg" = "X$p"; then 9407 enable_static=yes 9408 fi 9409 done 9410 IFS=$lt_save_ifs 9411 ;; 9412 esac 9413else 9414 enable_static=yes 9415fi 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426# Check whether --with-pic was given. 9427if test "${with_pic+set}" = set; then : 9428 withval=$with_pic; lt_p=${PACKAGE-default} 9429 case $withval in 9430 yes|no) pic_mode=$withval ;; 9431 *) 9432 pic_mode=default 9433 # Look at the argument we got. We use all the common list separators. 9434 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9435 for lt_pkg in $withval; do 9436 IFS=$lt_save_ifs 9437 if test "X$lt_pkg" = "X$lt_p"; then 9438 pic_mode=yes 9439 fi 9440 done 9441 IFS=$lt_save_ifs 9442 ;; 9443 esac 9444else 9445 pic_mode=default 9446fi 9447 9448 9449 9450 9451 9452 9453 9454 9455 # Check whether --enable-fast-install was given. 9456if test "${enable_fast_install+set}" = set; then : 9457 enableval=$enable_fast_install; p=${PACKAGE-default} 9458 case $enableval in 9459 yes) enable_fast_install=yes ;; 9460 no) enable_fast_install=no ;; 9461 *) 9462 enable_fast_install=no 9463 # Look at the argument we got. We use all the common list separators. 9464 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9465 for pkg in $enableval; do 9466 IFS=$lt_save_ifs 9467 if test "X$pkg" = "X$p"; then 9468 enable_fast_install=yes 9469 fi 9470 done 9471 IFS=$lt_save_ifs 9472 ;; 9473 esac 9474else 9475 enable_fast_install=yes 9476fi 9477 9478 9479 9480 9481 9482 9483 9484 9485 shared_archive_member_spec= 9486case $host,$enable_shared in 9487power*-*-aix[5-9]*,yes) 9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9489$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9490 9491# Check whether --with-aix-soname was given. 9492if test "${with_aix_soname+set}" = set; then : 9493 withval=$with_aix_soname; case $withval in 9494 aix|svr4|both) 9495 ;; 9496 *) 9497 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9498 ;; 9499 esac 9500 lt_cv_with_aix_soname=$with_aix_soname 9501else 9502 if ${lt_cv_with_aix_soname+:} false; then : 9503 $as_echo_n "(cached) " >&6 9504else 9505 lt_cv_with_aix_soname=aix 9506fi 9507 9508 with_aix_soname=$lt_cv_with_aix_soname 9509fi 9510 9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9512$as_echo "$with_aix_soname" >&6; } 9513 if test aix != "$with_aix_soname"; then 9514 # For the AIX way of multilib, we name the shared archive member 9515 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9516 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9517 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9518 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9519 if test 64 = "${OBJECT_MODE-32}"; then 9520 shared_archive_member_spec=shr_64 9521 else 9522 shared_archive_member_spec=shr 9523 fi 9524 fi 9525 ;; 9526*) 9527 with_aix_soname=aix 9528 ;; 9529esac 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540# This can be used to rebuild libtool when needed 9541LIBTOOL_DEPS=$ltmain 9542 9543# Always use our own libtool. 9544LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575test -z "$LN_S" && LN_S="ln -s" 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590if test -n "${ZSH_VERSION+set}"; then 9591 setopt NO_GLOB_SUBST 9592fi 9593 9594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9595$as_echo_n "checking for objdir... " >&6; } 9596if ${lt_cv_objdir+:} false; then : 9597 $as_echo_n "(cached) " >&6 9598else 9599 rm -f .libs 2>/dev/null 9600mkdir .libs 2>/dev/null 9601if test -d .libs; then 9602 lt_cv_objdir=.libs 9603else 9604 # MS-DOS does not allow filenames that begin with a dot. 9605 lt_cv_objdir=_libs 9606fi 9607rmdir .libs 2>/dev/null 9608fi 9609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9610$as_echo "$lt_cv_objdir" >&6; } 9611objdir=$lt_cv_objdir 9612 9613 9614 9615 9616 9617cat >>confdefs.h <<_ACEOF 9618#define LT_OBJDIR "$lt_cv_objdir/" 9619_ACEOF 9620 9621 9622 9623 9624case $host_os in 9625aix3*) 9626 # AIX sometimes has problems with the GCC collect2 program. For some 9627 # reason, if we set the COLLECT_NAMES environment variable, the problems 9628 # vanish in a puff of smoke. 9629 if test set != "${COLLECT_NAMES+set}"; then 9630 COLLECT_NAMES= 9631 export COLLECT_NAMES 9632 fi 9633 ;; 9634esac 9635 9636# Global variables: 9637ofile=libtool 9638can_build_shared=yes 9639 9640# All known linkers require a '.a' archive for static linking (except MSVC, 9641# which needs '.lib'). 9642libext=a 9643 9644with_gnu_ld=$lt_cv_prog_gnu_ld 9645 9646old_CC=$CC 9647old_CFLAGS=$CFLAGS 9648 9649# Set sane defaults for various variables 9650test -z "$CC" && CC=cc 9651test -z "$LTCC" && LTCC=$CC 9652test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9653test -z "$LD" && LD=ld 9654test -z "$ac_objext" && ac_objext=o 9655 9656func_cc_basename $compiler 9657cc_basename=$func_cc_basename_result 9658 9659 9660# Only perform the check for file, if the check method requires it 9661test -z "$MAGIC_CMD" && MAGIC_CMD=file 9662case $deplibs_check_method in 9663file_magic*) 9664 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9666$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9667if ${lt_cv_path_MAGIC_CMD+:} false; then : 9668 $as_echo_n "(cached) " >&6 9669else 9670 case $MAGIC_CMD in 9671[\\/*] | ?:[\\/]*) 9672 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9673 ;; 9674*) 9675 lt_save_MAGIC_CMD=$MAGIC_CMD 9676 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9677 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9678 for ac_dir in $ac_dummy; do 9679 IFS=$lt_save_ifs 9680 test -z "$ac_dir" && ac_dir=. 9681 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9682 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9683 if test -n "$file_magic_test_file"; then 9684 case $deplibs_check_method in 9685 "file_magic "*) 9686 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9687 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9688 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9689 $EGREP "$file_magic_regex" > /dev/null; then 9690 : 9691 else 9692 cat <<_LT_EOF 1>&2 9693 9694*** Warning: the command libtool uses to detect shared libraries, 9695*** $file_magic_cmd, produces output that libtool cannot recognize. 9696*** The result is that libtool may fail to recognize shared libraries 9697*** as such. This will affect the creation of libtool libraries that 9698*** depend on shared libraries, but programs linked with such libtool 9699*** libraries will work regardless of this problem. Nevertheless, you 9700*** may want to report the problem to your system manager and/or to 9701*** bug-libtool@gnu.org 9702 9703_LT_EOF 9704 fi ;; 9705 esac 9706 fi 9707 break 9708 fi 9709 done 9710 IFS=$lt_save_ifs 9711 MAGIC_CMD=$lt_save_MAGIC_CMD 9712 ;; 9713esac 9714fi 9715 9716MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9717if test -n "$MAGIC_CMD"; then 9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9719$as_echo "$MAGIC_CMD" >&6; } 9720else 9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9722$as_echo "no" >&6; } 9723fi 9724 9725 9726 9727 9728 9729if test -z "$lt_cv_path_MAGIC_CMD"; then 9730 if test -n "$ac_tool_prefix"; then 9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9732$as_echo_n "checking for file... " >&6; } 9733if ${lt_cv_path_MAGIC_CMD+:} false; then : 9734 $as_echo_n "(cached) " >&6 9735else 9736 case $MAGIC_CMD in 9737[\\/*] | ?:[\\/]*) 9738 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9739 ;; 9740*) 9741 lt_save_MAGIC_CMD=$MAGIC_CMD 9742 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9743 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9744 for ac_dir in $ac_dummy; do 9745 IFS=$lt_save_ifs 9746 test -z "$ac_dir" && ac_dir=. 9747 if test -f "$ac_dir/file"; then 9748 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9749 if test -n "$file_magic_test_file"; then 9750 case $deplibs_check_method in 9751 "file_magic "*) 9752 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9753 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9754 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9755 $EGREP "$file_magic_regex" > /dev/null; then 9756 : 9757 else 9758 cat <<_LT_EOF 1>&2 9759 9760*** Warning: the command libtool uses to detect shared libraries, 9761*** $file_magic_cmd, produces output that libtool cannot recognize. 9762*** The result is that libtool may fail to recognize shared libraries 9763*** as such. This will affect the creation of libtool libraries that 9764*** depend on shared libraries, but programs linked with such libtool 9765*** libraries will work regardless of this problem. Nevertheless, you 9766*** may want to report the problem to your system manager and/or to 9767*** bug-libtool@gnu.org 9768 9769_LT_EOF 9770 fi ;; 9771 esac 9772 fi 9773 break 9774 fi 9775 done 9776 IFS=$lt_save_ifs 9777 MAGIC_CMD=$lt_save_MAGIC_CMD 9778 ;; 9779esac 9780fi 9781 9782MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9783if test -n "$MAGIC_CMD"; then 9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9785$as_echo "$MAGIC_CMD" >&6; } 9786else 9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9788$as_echo "no" >&6; } 9789fi 9790 9791 9792 else 9793 MAGIC_CMD=: 9794 fi 9795fi 9796 9797 fi 9798 ;; 9799esac 9800 9801# Use C for the default configuration in the libtool script 9802 9803lt_save_CC=$CC 9804ac_ext=c 9805ac_cpp='$CPP $CPPFLAGS' 9806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9808ac_compiler_gnu=$ac_cv_c_compiler_gnu 9809 9810 9811# Source file extension for C test sources. 9812ac_ext=c 9813 9814# Object file extension for compiled C test sources. 9815objext=o 9816objext=$objext 9817 9818# Code to be used in simple compile tests 9819lt_simple_compile_test_code="int some_variable = 0;" 9820 9821# Code to be used in simple link tests 9822lt_simple_link_test_code='int main(){return(0);}' 9823 9824 9825 9826 9827 9828 9829 9830# If no C compiler was specified, use CC. 9831LTCC=${LTCC-"$CC"} 9832 9833# If no C compiler flags were specified, use CFLAGS. 9834LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9835 9836# Allow CC to be a program name with arguments. 9837compiler=$CC 9838 9839# Save the default compiler, since it gets overwritten when the other 9840# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9841compiler_DEFAULT=$CC 9842 9843# save warnings/boilerplate of simple test code 9844ac_outfile=conftest.$ac_objext 9845echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9846eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9847_lt_compiler_boilerplate=`cat conftest.err` 9848$RM conftest* 9849 9850ac_outfile=conftest.$ac_objext 9851echo "$lt_simple_link_test_code" >conftest.$ac_ext 9852eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9853_lt_linker_boilerplate=`cat conftest.err` 9854$RM -r conftest* 9855 9856 9857## CAVEAT EMPTOR: 9858## There is no encapsulation within the following macros, do not change 9859## the running order or otherwise move them around unless you know exactly 9860## what you are doing... 9861if test -n "$compiler"; then 9862 9863lt_prog_compiler_no_builtin_flag= 9864 9865if test yes = "$GCC"; then 9866 case $cc_basename in 9867 nvcc*) 9868 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9869 *) 9870 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9871 esac 9872 9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9874$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9875if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9876 $as_echo_n "(cached) " >&6 9877else 9878 lt_cv_prog_compiler_rtti_exceptions=no 9879 ac_outfile=conftest.$ac_objext 9880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9881 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9882 # Insert the option either (1) after the last *FLAGS variable, or 9883 # (2) before a word containing "conftest.", or (3) at the end. 9884 # Note that $ac_compile itself does not contain backslashes and begins 9885 # with a dollar sign (not a hyphen), so the echo should work correctly. 9886 # The option is referenced via a variable to avoid confusing sed. 9887 lt_compile=`echo "$ac_compile" | $SED \ 9888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9890 -e 's:$: $lt_compiler_flag:'` 9891 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9892 (eval "$lt_compile" 2>conftest.err) 9893 ac_status=$? 9894 cat conftest.err >&5 9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9896 if (exit $ac_status) && test -s "$ac_outfile"; then 9897 # The compiler can only warn and ignore the option if not recognized 9898 # So say no if there are warnings other than the usual output. 9899 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9901 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9902 lt_cv_prog_compiler_rtti_exceptions=yes 9903 fi 9904 fi 9905 $RM conftest* 9906 9907fi 9908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9909$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9910 9911if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9912 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9913else 9914 : 9915fi 9916 9917fi 9918 9919 9920 9921 9922 9923 9924 lt_prog_compiler_wl= 9925lt_prog_compiler_pic= 9926lt_prog_compiler_static= 9927 9928 9929 if test yes = "$GCC"; then 9930 lt_prog_compiler_wl='-Wl,' 9931 lt_prog_compiler_static='-static' 9932 9933 case $host_os in 9934 aix*) 9935 # All AIX code is PIC. 9936 if test ia64 = "$host_cpu"; then 9937 # AIX 5 now supports IA64 processor 9938 lt_prog_compiler_static='-Bstatic' 9939 fi 9940 lt_prog_compiler_pic='-fPIC' 9941 ;; 9942 9943 amigaos*) 9944 case $host_cpu in 9945 powerpc) 9946 # see comment about AmigaOS4 .so support 9947 lt_prog_compiler_pic='-fPIC' 9948 ;; 9949 m68k) 9950 # FIXME: we need at least 68020 code to build shared libraries, but 9951 # adding the '-m68020' flag to GCC prevents building anything better, 9952 # like '-m68040'. 9953 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9954 ;; 9955 esac 9956 ;; 9957 9958 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9959 # PIC is the default for these OSes. 9960 ;; 9961 9962 mingw* | cygwin* | pw32* | os2* | cegcc*) 9963 # This hack is so that the source file can tell whether it is being 9964 # built for inclusion in a dll (and should export symbols for example). 9965 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9966 # (--disable-auto-import) libraries 9967 lt_prog_compiler_pic='-DDLL_EXPORT' 9968 case $host_os in 9969 os2*) 9970 lt_prog_compiler_static='$wl-static' 9971 ;; 9972 esac 9973 ;; 9974 9975 darwin* | rhapsody*) 9976 # PIC is the default on this platform 9977 # Common symbols not allowed in MH_DYLIB files 9978 lt_prog_compiler_pic='-fno-common' 9979 ;; 9980 9981 haiku*) 9982 # PIC is the default for Haiku. 9983 # The "-static" flag exists, but is broken. 9984 lt_prog_compiler_static= 9985 ;; 9986 9987 hpux*) 9988 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9989 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9990 # sets the default TLS model and affects inlining. 9991 case $host_cpu in 9992 hppa*64*) 9993 # +Z the default 9994 ;; 9995 *) 9996 lt_prog_compiler_pic='-fPIC' 9997 ;; 9998 esac 9999 ;; 10000 10001 interix[3-9]*) 10002 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10003 # Instead, we relocate shared libraries at runtime. 10004 ;; 10005 10006 msdosdjgpp*) 10007 # Just because we use GCC doesn't mean we suddenly get shared libraries 10008 # on systems that don't support them. 10009 lt_prog_compiler_can_build_shared=no 10010 enable_shared=no 10011 ;; 10012 10013 *nto* | *qnx*) 10014 # QNX uses GNU C++, but need to define -shared option too, otherwise 10015 # it will coredump. 10016 lt_prog_compiler_pic='-fPIC -shared' 10017 ;; 10018 10019 sysv4*MP*) 10020 if test -d /usr/nec; then 10021 lt_prog_compiler_pic=-Kconform_pic 10022 fi 10023 ;; 10024 10025 *) 10026 lt_prog_compiler_pic='-fPIC' 10027 ;; 10028 esac 10029 10030 case $cc_basename in 10031 nvcc*) # Cuda Compiler Driver 2.2 10032 lt_prog_compiler_wl='-Xlinker ' 10033 if test -n "$lt_prog_compiler_pic"; then 10034 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10035 fi 10036 ;; 10037 esac 10038 else 10039 # PORTME Check for flag to pass linker flags through the system compiler. 10040 case $host_os in 10041 aix*) 10042 lt_prog_compiler_wl='-Wl,' 10043 if test ia64 = "$host_cpu"; then 10044 # AIX 5 now supports IA64 processor 10045 lt_prog_compiler_static='-Bstatic' 10046 else 10047 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10048 fi 10049 ;; 10050 10051 darwin* | rhapsody*) 10052 # PIC is the default on this platform 10053 # Common symbols not allowed in MH_DYLIB files 10054 lt_prog_compiler_pic='-fno-common' 10055 case $cc_basename in 10056 nagfor*) 10057 # NAG Fortran compiler 10058 lt_prog_compiler_wl='-Wl,-Wl,,' 10059 lt_prog_compiler_pic='-PIC' 10060 lt_prog_compiler_static='-Bstatic' 10061 ;; 10062 esac 10063 ;; 10064 10065 mingw* | cygwin* | pw32* | os2* | cegcc*) 10066 # This hack is so that the source file can tell whether it is being 10067 # built for inclusion in a dll (and should export symbols for example). 10068 lt_prog_compiler_pic='-DDLL_EXPORT' 10069 case $host_os in 10070 os2*) 10071 lt_prog_compiler_static='$wl-static' 10072 ;; 10073 esac 10074 ;; 10075 10076 hpux9* | hpux10* | hpux11*) 10077 lt_prog_compiler_wl='-Wl,' 10078 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10079 # not for PA HP-UX. 10080 case $host_cpu in 10081 hppa*64*|ia64*) 10082 # +Z the default 10083 ;; 10084 *) 10085 lt_prog_compiler_pic='+Z' 10086 ;; 10087 esac 10088 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10089 lt_prog_compiler_static='$wl-a ${wl}archive' 10090 ;; 10091 10092 irix5* | irix6* | nonstopux*) 10093 lt_prog_compiler_wl='-Wl,' 10094 # PIC (with -KPIC) is the default. 10095 lt_prog_compiler_static='-non_shared' 10096 ;; 10097 10098 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10099 case $cc_basename in 10100 # old Intel for x86_64, which still supported -KPIC. 10101 ecc*) 10102 lt_prog_compiler_wl='-Wl,' 10103 lt_prog_compiler_pic='-KPIC' 10104 lt_prog_compiler_static='-static' 10105 ;; 10106 # flang / f18. f95 an alias for gfortran or flang on Debian 10107 flang* | f18* | f95*) 10108 lt_prog_compiler_wl='-Wl,' 10109 lt_prog_compiler_pic='-fPIC' 10110 lt_prog_compiler_static='-static' 10111 ;; 10112 # icc used to be incompatible with GCC. 10113 # ICC 10 doesn't accept -KPIC any more. 10114 icc* | ifort*) 10115 lt_prog_compiler_wl='-Wl,' 10116 lt_prog_compiler_pic='-fPIC' 10117 lt_prog_compiler_static='-static' 10118 ;; 10119 # Lahey Fortran 8.1. 10120 lf95*) 10121 lt_prog_compiler_wl='-Wl,' 10122 lt_prog_compiler_pic='--shared' 10123 lt_prog_compiler_static='--static' 10124 ;; 10125 nagfor*) 10126 # NAG Fortran compiler 10127 lt_prog_compiler_wl='-Wl,-Wl,,' 10128 lt_prog_compiler_pic='-PIC' 10129 lt_prog_compiler_static='-Bstatic' 10130 ;; 10131 tcc*) 10132 # Fabrice Bellard et al's Tiny C Compiler 10133 lt_prog_compiler_wl='-Wl,' 10134 lt_prog_compiler_pic='-fPIC' 10135 lt_prog_compiler_static='-static' 10136 ;; 10137 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10138 # Portland Group compilers (*not* the Pentium gcc compiler, 10139 # which looks to be a dead project) 10140 lt_prog_compiler_wl='-Wl,' 10141 lt_prog_compiler_pic='-fpic' 10142 lt_prog_compiler_static='-Bstatic' 10143 ;; 10144 ccc*) 10145 lt_prog_compiler_wl='-Wl,' 10146 # All Alpha code is PIC. 10147 lt_prog_compiler_static='-non_shared' 10148 ;; 10149 xl* | bgxl* | bgf* | mpixl*) 10150 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10151 lt_prog_compiler_wl='-Wl,' 10152 lt_prog_compiler_pic='-qpic' 10153 lt_prog_compiler_static='-qstaticlink' 10154 ;; 10155 *) 10156 case `$CC -V 2>&1 | sed 5q` in 10157 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10158 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10159 lt_prog_compiler_pic='-KPIC' 10160 lt_prog_compiler_static='-Bstatic' 10161 lt_prog_compiler_wl='' 10162 ;; 10163 *Sun\ F* | *Sun*Fortran*) 10164 lt_prog_compiler_pic='-KPIC' 10165 lt_prog_compiler_static='-Bstatic' 10166 lt_prog_compiler_wl='-Qoption ld ' 10167 ;; 10168 *Sun\ C*) 10169 # Sun C 5.9 10170 lt_prog_compiler_pic='-KPIC' 10171 lt_prog_compiler_static='-Bstatic' 10172 lt_prog_compiler_wl='-Wl,' 10173 ;; 10174 *Intel*\ [CF]*Compiler*) 10175 lt_prog_compiler_wl='-Wl,' 10176 lt_prog_compiler_pic='-fPIC' 10177 lt_prog_compiler_static='-static' 10178 ;; 10179 *Portland\ Group*) 10180 lt_prog_compiler_wl='-Wl,' 10181 lt_prog_compiler_pic='-fpic' 10182 lt_prog_compiler_static='-Bstatic' 10183 ;; 10184 esac 10185 ;; 10186 esac 10187 ;; 10188 10189 newsos6) 10190 lt_prog_compiler_pic='-KPIC' 10191 lt_prog_compiler_static='-Bstatic' 10192 ;; 10193 10194 *nto* | *qnx*) 10195 # QNX uses GNU C++, but need to define -shared option too, otherwise 10196 # it will coredump. 10197 lt_prog_compiler_pic='-fPIC -shared' 10198 ;; 10199 10200 osf3* | osf4* | osf5*) 10201 lt_prog_compiler_wl='-Wl,' 10202 # All OSF/1 code is PIC. 10203 lt_prog_compiler_static='-non_shared' 10204 ;; 10205 10206 rdos*) 10207 lt_prog_compiler_static='-non_shared' 10208 ;; 10209 10210 solaris*) 10211 lt_prog_compiler_pic='-KPIC' 10212 lt_prog_compiler_static='-Bstatic' 10213 case $cc_basename in 10214 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10215 lt_prog_compiler_wl='-Qoption ld ';; 10216 *) 10217 lt_prog_compiler_wl='-Wl,';; 10218 esac 10219 ;; 10220 10221 sunos4*) 10222 lt_prog_compiler_wl='-Qoption ld ' 10223 lt_prog_compiler_pic='-PIC' 10224 lt_prog_compiler_static='-Bstatic' 10225 ;; 10226 10227 sysv4 | sysv4.2uw2* | sysv4.3*) 10228 lt_prog_compiler_wl='-Wl,' 10229 lt_prog_compiler_pic='-KPIC' 10230 lt_prog_compiler_static='-Bstatic' 10231 ;; 10232 10233 sysv4*MP*) 10234 if test -d /usr/nec; then 10235 lt_prog_compiler_pic='-Kconform_pic' 10236 lt_prog_compiler_static='-Bstatic' 10237 fi 10238 ;; 10239 10240 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10241 lt_prog_compiler_wl='-Wl,' 10242 lt_prog_compiler_pic='-KPIC' 10243 lt_prog_compiler_static='-Bstatic' 10244 ;; 10245 10246 unicos*) 10247 lt_prog_compiler_wl='-Wl,' 10248 lt_prog_compiler_can_build_shared=no 10249 ;; 10250 10251 uts4*) 10252 lt_prog_compiler_pic='-pic' 10253 lt_prog_compiler_static='-Bstatic' 10254 ;; 10255 10256 *) 10257 lt_prog_compiler_can_build_shared=no 10258 ;; 10259 esac 10260 fi 10261 10262case $host_os in 10263 # For platforms that do not support PIC, -DPIC is meaningless: 10264 *djgpp*) 10265 lt_prog_compiler_pic= 10266 ;; 10267 *) 10268 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10269 ;; 10270esac 10271 10272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10273$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10274if ${lt_cv_prog_compiler_pic+:} false; then : 10275 $as_echo_n "(cached) " >&6 10276else 10277 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10278fi 10279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10280$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10281lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10282 10283# 10284# Check to make sure the PIC flag actually works. 10285# 10286if test -n "$lt_prog_compiler_pic"; then 10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10288$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10289if ${lt_cv_prog_compiler_pic_works+:} false; then : 10290 $as_echo_n "(cached) " >&6 10291else 10292 lt_cv_prog_compiler_pic_works=no 10293 ac_outfile=conftest.$ac_objext 10294 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10295 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10296 # Insert the option either (1) after the last *FLAGS variable, or 10297 # (2) before a word containing "conftest.", or (3) at the end. 10298 # Note that $ac_compile itself does not contain backslashes and begins 10299 # with a dollar sign (not a hyphen), so the echo should work correctly. 10300 # The option is referenced via a variable to avoid confusing sed. 10301 lt_compile=`echo "$ac_compile" | $SED \ 10302 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10303 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10304 -e 's:$: $lt_compiler_flag:'` 10305 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10306 (eval "$lt_compile" 2>conftest.err) 10307 ac_status=$? 10308 cat conftest.err >&5 10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10310 if (exit $ac_status) && test -s "$ac_outfile"; then 10311 # The compiler can only warn and ignore the option if not recognized 10312 # So say no if there are warnings other than the usual output. 10313 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10314 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10315 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10316 lt_cv_prog_compiler_pic_works=yes 10317 fi 10318 fi 10319 $RM conftest* 10320 10321fi 10322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10323$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10324 10325if test yes = "$lt_cv_prog_compiler_pic_works"; then 10326 case $lt_prog_compiler_pic in 10327 "" | " "*) ;; 10328 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10329 esac 10330else 10331 lt_prog_compiler_pic= 10332 lt_prog_compiler_can_build_shared=no 10333fi 10334 10335fi 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347# 10348# Check to make sure the static flag actually works. 10349# 10350wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10352$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10353if ${lt_cv_prog_compiler_static_works+:} false; then : 10354 $as_echo_n "(cached) " >&6 10355else 10356 lt_cv_prog_compiler_static_works=no 10357 save_LDFLAGS=$LDFLAGS 10358 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10359 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10360 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10361 # The linker can only warn and ignore the option if not recognized 10362 # So say no if there are warnings 10363 if test -s conftest.err; then 10364 # Append any errors to the config.log. 10365 cat conftest.err 1>&5 10366 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10367 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10368 if diff conftest.exp conftest.er2 >/dev/null; then 10369 lt_cv_prog_compiler_static_works=yes 10370 fi 10371 else 10372 lt_cv_prog_compiler_static_works=yes 10373 fi 10374 fi 10375 $RM -r conftest* 10376 LDFLAGS=$save_LDFLAGS 10377 10378fi 10379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10380$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10381 10382if test yes = "$lt_cv_prog_compiler_static_works"; then 10383 : 10384else 10385 lt_prog_compiler_static= 10386fi 10387 10388 10389 10390 10391 10392 10393 10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10395$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10396if ${lt_cv_prog_compiler_c_o+:} false; then : 10397 $as_echo_n "(cached) " >&6 10398else 10399 lt_cv_prog_compiler_c_o=no 10400 $RM -r conftest 2>/dev/null 10401 mkdir conftest 10402 cd conftest 10403 mkdir out 10404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10405 10406 lt_compiler_flag="-o out/conftest2.$ac_objext" 10407 # Insert the option either (1) after the last *FLAGS variable, or 10408 # (2) before a word containing "conftest.", or (3) at the end. 10409 # Note that $ac_compile itself does not contain backslashes and begins 10410 # with a dollar sign (not a hyphen), so the echo should work correctly. 10411 lt_compile=`echo "$ac_compile" | $SED \ 10412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10414 -e 's:$: $lt_compiler_flag:'` 10415 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10416 (eval "$lt_compile" 2>out/conftest.err) 10417 ac_status=$? 10418 cat out/conftest.err >&5 10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10420 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10421 then 10422 # The compiler can only warn and ignore the option if not recognized 10423 # So say no if there are warnings 10424 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10425 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10426 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10427 lt_cv_prog_compiler_c_o=yes 10428 fi 10429 fi 10430 chmod u+w . 2>&5 10431 $RM conftest* 10432 # SGI C++ compiler will create directory out/ii_files/ for 10433 # template instantiation 10434 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10435 $RM out/* && rmdir out 10436 cd .. 10437 $RM -r conftest 10438 $RM conftest* 10439 10440fi 10441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10442$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10443 10444 10445 10446 10447 10448 10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10450$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10451if ${lt_cv_prog_compiler_c_o+:} false; then : 10452 $as_echo_n "(cached) " >&6 10453else 10454 lt_cv_prog_compiler_c_o=no 10455 $RM -r conftest 2>/dev/null 10456 mkdir conftest 10457 cd conftest 10458 mkdir out 10459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10460 10461 lt_compiler_flag="-o out/conftest2.$ac_objext" 10462 # Insert the option either (1) after the last *FLAGS variable, or 10463 # (2) before a word containing "conftest.", or (3) at the end. 10464 # Note that $ac_compile itself does not contain backslashes and begins 10465 # with a dollar sign (not a hyphen), so the echo should work correctly. 10466 lt_compile=`echo "$ac_compile" | $SED \ 10467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10469 -e 's:$: $lt_compiler_flag:'` 10470 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10471 (eval "$lt_compile" 2>out/conftest.err) 10472 ac_status=$? 10473 cat out/conftest.err >&5 10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10475 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10476 then 10477 # The compiler can only warn and ignore the option if not recognized 10478 # So say no if there are warnings 10479 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10480 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10481 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10482 lt_cv_prog_compiler_c_o=yes 10483 fi 10484 fi 10485 chmod u+w . 2>&5 10486 $RM conftest* 10487 # SGI C++ compiler will create directory out/ii_files/ for 10488 # template instantiation 10489 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10490 $RM out/* && rmdir out 10491 cd .. 10492 $RM -r conftest 10493 $RM conftest* 10494 10495fi 10496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10497$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10498 10499 10500 10501 10502hard_links=nottested 10503if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10504 # do not overwrite the value of need_locks provided by the user 10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10506$as_echo_n "checking if we can lock with hard links... " >&6; } 10507 hard_links=yes 10508 $RM conftest* 10509 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10510 touch conftest.a 10511 ln conftest.a conftest.b 2>&5 || hard_links=no 10512 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10514$as_echo "$hard_links" >&6; } 10515 if test no = "$hard_links"; then 10516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10517$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10518 need_locks=warn 10519 fi 10520else 10521 need_locks=no 10522fi 10523 10524 10525 10526 10527 10528 10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10530$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10531 10532 runpath_var= 10533 allow_undefined_flag= 10534 always_export_symbols=no 10535 archive_cmds= 10536 archive_expsym_cmds= 10537 compiler_needs_object=no 10538 enable_shared_with_static_runtimes=no 10539 export_dynamic_flag_spec= 10540 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10541 hardcode_automatic=no 10542 hardcode_direct=no 10543 hardcode_direct_absolute=no 10544 hardcode_libdir_flag_spec= 10545 hardcode_libdir_separator= 10546 hardcode_minus_L=no 10547 hardcode_shlibpath_var=unsupported 10548 inherit_rpath=no 10549 link_all_deplibs=unknown 10550 module_cmds= 10551 module_expsym_cmds= 10552 old_archive_from_new_cmds= 10553 old_archive_from_expsyms_cmds= 10554 thread_safe_flag_spec= 10555 whole_archive_flag_spec= 10556 # include_expsyms should be a list of space-separated symbols to be *always* 10557 # included in the symbol list 10558 include_expsyms= 10559 # exclude_expsyms can be an extended regexp of symbols to exclude 10560 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10561 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10562 # as well as any symbol that contains 'd'. 10563 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10564 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10565 # platforms (ab)use it in PIC code, but their linkers get confused if 10566 # the symbol is explicitly referenced. Since portable code cannot 10567 # rely on this symbol name, it's probably fine to never include it in 10568 # preloaded symbol tables. 10569 # Exclude shared library initialization/finalization symbols. 10570 extract_expsyms_cmds= 10571 10572 case $host_os in 10573 cygwin* | mingw* | pw32* | cegcc*) 10574 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10575 # When not using gcc, we currently assume that we are using 10576 # Microsoft Visual C++. 10577 if test yes != "$GCC"; then 10578 with_gnu_ld=no 10579 fi 10580 ;; 10581 interix*) 10582 # we just hope/assume this is gcc and not c89 (= MSVC++) 10583 with_gnu_ld=yes 10584 ;; 10585 openbsd* | bitrig*) 10586 with_gnu_ld=no 10587 ;; 10588 linux* | k*bsd*-gnu | gnu*) 10589 link_all_deplibs=no 10590 ;; 10591 esac 10592 10593 ld_shlibs=yes 10594 10595 # On some targets, GNU ld is compatible enough with the native linker 10596 # that we're better off using the native interface for both. 10597 lt_use_gnu_ld_interface=no 10598 if test yes = "$with_gnu_ld"; then 10599 case $host_os in 10600 aix*) 10601 # The AIX port of GNU ld has always aspired to compatibility 10602 # with the native linker. However, as the warning in the GNU ld 10603 # block says, versions before 2.19.5* couldn't really create working 10604 # shared libraries, regardless of the interface used. 10605 case `$LD -v 2>&1` in 10606 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10607 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10608 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10609 *) 10610 lt_use_gnu_ld_interface=yes 10611 ;; 10612 esac 10613 ;; 10614 *) 10615 lt_use_gnu_ld_interface=yes 10616 ;; 10617 esac 10618 fi 10619 10620 if test yes = "$lt_use_gnu_ld_interface"; then 10621 # If archive_cmds runs LD, not CC, wlarc should be empty 10622 wlarc='$wl' 10623 10624 # Set some defaults for GNU ld with shared library support. These 10625 # are reset later if shared libraries are not supported. Putting them 10626 # here allows them to be overridden if necessary. 10627 runpath_var=LD_RUN_PATH 10628 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10629 export_dynamic_flag_spec='$wl--export-dynamic' 10630 # ancient GNU ld didn't support --whole-archive et. al. 10631 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10632 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10633 else 10634 whole_archive_flag_spec= 10635 fi 10636 supports_anon_versioning=no 10637 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10638 *GNU\ gold*) supports_anon_versioning=yes ;; 10639 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10640 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10641 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10642 *\ 2.11.*) ;; # other 2.11 versions 10643 *) supports_anon_versioning=yes ;; 10644 esac 10645 10646 # See if GNU ld supports shared libraries. 10647 case $host_os in 10648 aix[3-9]*) 10649 # On AIX/PPC, the GNU linker is very broken 10650 if test ia64 != "$host_cpu"; then 10651 ld_shlibs=no 10652 cat <<_LT_EOF 1>&2 10653 10654*** Warning: the GNU linker, at least up to release 2.19, is reported 10655*** to be unable to reliably create shared libraries on AIX. 10656*** Therefore, libtool is disabling shared libraries support. If you 10657*** really care for shared libraries, you may want to install binutils 10658*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10659*** You will then need to restart the configuration process. 10660 10661_LT_EOF 10662 fi 10663 ;; 10664 10665 amigaos*) 10666 case $host_cpu in 10667 powerpc) 10668 # see comment about AmigaOS4 .so support 10669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10670 archive_expsym_cmds='' 10671 ;; 10672 m68k) 10673 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)' 10674 hardcode_libdir_flag_spec='-L$libdir' 10675 hardcode_minus_L=yes 10676 ;; 10677 esac 10678 ;; 10679 10680 beos*) 10681 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10682 allow_undefined_flag=unsupported 10683 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10684 # support --undefined. This deserves some investigation. FIXME 10685 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10686 else 10687 ld_shlibs=no 10688 fi 10689 ;; 10690 10691 cygwin* | mingw* | pw32* | cegcc*) 10692 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10693 # as there is no search path for DLLs. 10694 hardcode_libdir_flag_spec='-L$libdir' 10695 export_dynamic_flag_spec='$wl--export-all-symbols' 10696 allow_undefined_flag=unsupported 10697 always_export_symbols=no 10698 enable_shared_with_static_runtimes=yes 10699 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' 10700 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10701 10702 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10704 # If the export-symbols file already is a .def file, use it as 10705 # is; otherwise, prepend EXPORTS... 10706 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10707 cp $export_symbols $output_objdir/$soname.def; 10708 else 10709 echo EXPORTS > $output_objdir/$soname.def; 10710 cat $export_symbols >> $output_objdir/$soname.def; 10711 fi~ 10712 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10713 else 10714 ld_shlibs=no 10715 fi 10716 ;; 10717 10718 haiku*) 10719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10720 link_all_deplibs=yes 10721 ;; 10722 10723 os2*) 10724 hardcode_libdir_flag_spec='-L$libdir' 10725 hardcode_minus_L=yes 10726 allow_undefined_flag=unsupported 10727 shrext_cmds=.dll 10728 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10729 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10730 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10731 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10732 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10733 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10734 emximp -o $lib $output_objdir/$libname.def' 10735 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10736 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10737 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10738 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10739 prefix_cmds="$SED"~ 10740 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10741 prefix_cmds="$prefix_cmds -e 1d"; 10742 fi~ 10743 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10744 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10745 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10746 emximp -o $lib $output_objdir/$libname.def' 10747 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10748 enable_shared_with_static_runtimes=yes 10749 ;; 10750 10751 interix[3-9]*) 10752 hardcode_direct=no 10753 hardcode_shlibpath_var=no 10754 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10755 export_dynamic_flag_spec='$wl-E' 10756 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10757 # Instead, shared libraries are loaded at an image base (0x10000000 by 10758 # default) and relocated if they conflict, which is a slow very memory 10759 # consuming and fragmenting process. To avoid this, we pick a random, 10760 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10761 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10762 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10763 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' 10764 ;; 10765 10766 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10767 tmp_diet=no 10768 if test linux-dietlibc = "$host_os"; then 10769 case $cc_basename in 10770 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10771 esac 10772 fi 10773 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10774 && test no = "$tmp_diet" 10775 then 10776 tmp_addflag=' $pic_flag' 10777 tmp_sharedflag='-shared' 10778 case $cc_basename,$host_cpu in 10779 pgcc*) # Portland Group C compiler 10780 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' 10781 tmp_addflag=' $pic_flag' 10782 ;; 10783 pgf77* | pgf90* | pgf95* | pgfortran*) 10784 # Portland Group f77 and f90 compilers 10785 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' 10786 tmp_addflag=' $pic_flag -Mnomain' ;; 10787 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10788 tmp_addflag=' -i_dynamic' ;; 10789 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10790 tmp_addflag=' -i_dynamic -nofor_main' ;; 10791 ifc* | ifort*) # Intel Fortran compiler 10792 tmp_addflag=' -nofor_main' ;; 10793 lf95*) # Lahey Fortran 8.1 10794 whole_archive_flag_spec= 10795 tmp_sharedflag='--shared' ;; 10796 nagfor*) # NAGFOR 5.3 10797 tmp_sharedflag='-Wl,-shared' ;; 10798 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10799 tmp_sharedflag='-qmkshrobj' 10800 tmp_addflag= ;; 10801 nvcc*) # Cuda Compiler Driver 2.2 10802 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' 10803 compiler_needs_object=yes 10804 ;; 10805 esac 10806 case `$CC -V 2>&1 | sed 5q` in 10807 *Sun\ C*) # Sun C 5.9 10808 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' 10809 compiler_needs_object=yes 10810 tmp_sharedflag='-G' ;; 10811 *Sun\ F*) # Sun Fortran 8.3 10812 tmp_sharedflag='-G' ;; 10813 esac 10814 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10815 10816 if test yes = "$supports_anon_versioning"; then 10817 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10818 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10819 echo "local: *; };" >> $output_objdir/$libname.ver~ 10820 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10821 fi 10822 10823 case $cc_basename in 10824 tcc*) 10825 export_dynamic_flag_spec='-rdynamic' 10826 ;; 10827 xlf* | bgf* | bgxlf* | mpixlf*) 10828 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10829 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10830 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10831 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10832 if test yes = "$supports_anon_versioning"; then 10833 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10834 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10835 echo "local: *; };" >> $output_objdir/$libname.ver~ 10836 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10837 fi 10838 ;; 10839 esac 10840 else 10841 ld_shlibs=no 10842 fi 10843 ;; 10844 10845 netbsd* | netbsdelf*-gnu) 10846 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10847 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10848 wlarc= 10849 else 10850 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10851 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10852 fi 10853 ;; 10854 10855 solaris*) 10856 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10857 ld_shlibs=no 10858 cat <<_LT_EOF 1>&2 10859 10860*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10861*** create shared libraries on Solaris systems. Therefore, libtool 10862*** is disabling shared libraries support. We urge you to upgrade GNU 10863*** binutils to release 2.9.1 or newer. Another option is to modify 10864*** your PATH or compiler configuration so that the native linker is 10865*** used, and then restart. 10866 10867_LT_EOF 10868 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10869 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10870 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10871 else 10872 ld_shlibs=no 10873 fi 10874 ;; 10875 10876 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10877 case `$LD -v 2>&1` in 10878 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10879 ld_shlibs=no 10880 cat <<_LT_EOF 1>&2 10881 10882*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10883*** reliably create shared libraries on SCO systems. Therefore, libtool 10884*** is disabling shared libraries support. We urge you to upgrade GNU 10885*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10886*** your PATH or compiler configuration so that the native linker is 10887*** used, and then restart. 10888 10889_LT_EOF 10890 ;; 10891 *) 10892 # For security reasons, it is highly recommended that you always 10893 # use absolute paths for naming shared libraries, and exclude the 10894 # DT_RUNPATH tag from executables and libraries. But doing so 10895 # requires that you compile everything twice, which is a pain. 10896 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10897 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10899 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10900 else 10901 ld_shlibs=no 10902 fi 10903 ;; 10904 esac 10905 ;; 10906 10907 sunos4*) 10908 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10909 wlarc= 10910 hardcode_direct=yes 10911 hardcode_shlibpath_var=no 10912 ;; 10913 10914 *) 10915 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10916 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10917 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10918 else 10919 ld_shlibs=no 10920 fi 10921 ;; 10922 esac 10923 10924 if test no = "$ld_shlibs"; then 10925 runpath_var= 10926 hardcode_libdir_flag_spec= 10927 export_dynamic_flag_spec= 10928 whole_archive_flag_spec= 10929 fi 10930 else 10931 # PORTME fill in a description of your system's linker (not GNU ld) 10932 case $host_os in 10933 aix3*) 10934 allow_undefined_flag=unsupported 10935 always_export_symbols=yes 10936 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' 10937 # Note: this linker hardcodes the directories in LIBPATH if there 10938 # are no directories specified by -L. 10939 hardcode_minus_L=yes 10940 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10941 # Neither direct hardcoding nor static linking is supported with a 10942 # broken collect2. 10943 hardcode_direct=unsupported 10944 fi 10945 ;; 10946 10947 aix[4-9]*) 10948 if test ia64 = "$host_cpu"; then 10949 # On IA64, the linker does run time linking by default, so we don't 10950 # have to do anything special. 10951 aix_use_runtimelinking=no 10952 exp_sym_flag='-Bexport' 10953 no_entry_flag= 10954 else 10955 # If we're using GNU nm, then we don't want the "-C" option. 10956 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10957 # Without the "-l" option, or with the "-B" option, AIX nm treats 10958 # weak defined symbols like other global defined symbols, whereas 10959 # GNU nm marks them as "W". 10960 # While the 'weak' keyword is ignored in the Export File, we need 10961 # it in the Import File for the 'aix-soname' feature, so we have 10962 # to replace the "-B" option with "-P" for AIX nm. 10963 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10964 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' 10965 else 10966 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' 10967 fi 10968 aix_use_runtimelinking=no 10969 10970 # Test if we are trying to use run time linking or normal 10971 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10972 # have runtime linking enabled, and use it for executables. 10973 # For shared libraries, we enable/disable runtime linking 10974 # depending on the kind of the shared library created - 10975 # when "with_aix_soname,aix_use_runtimelinking" is: 10976 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10977 # "aix,yes" lib.so shared, rtl:yes, for executables 10978 # lib.a static archive 10979 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10980 # lib.a(lib.so.V) shared, rtl:no, for executables 10981 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10982 # lib.a(lib.so.V) shared, rtl:no 10983 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10984 # lib.a static archive 10985 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10986 for ld_flag in $LDFLAGS; do 10987 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10988 aix_use_runtimelinking=yes 10989 break 10990 fi 10991 done 10992 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10993 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10994 # so we don't have lib.a shared libs to link our executables. 10995 # We have to force runtime linking in this case. 10996 aix_use_runtimelinking=yes 10997 LDFLAGS="$LDFLAGS -Wl,-brtl" 10998 fi 10999 ;; 11000 esac 11001 11002 exp_sym_flag='-bexport' 11003 no_entry_flag='-bnoentry' 11004 fi 11005 11006 # When large executables or shared objects are built, AIX ld can 11007 # have problems creating the table of contents. If linking a library 11008 # or program results in "error TOC overflow" add -mminimal-toc to 11009 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11010 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11011 11012 archive_cmds='' 11013 hardcode_direct=yes 11014 hardcode_direct_absolute=yes 11015 hardcode_libdir_separator=':' 11016 link_all_deplibs=yes 11017 file_list_spec='$wl-f,' 11018 case $with_aix_soname,$aix_use_runtimelinking in 11019 aix,*) ;; # traditional, no import file 11020 svr4,* | *,yes) # use import file 11021 # The Import File defines what to hardcode. 11022 hardcode_direct=no 11023 hardcode_direct_absolute=no 11024 ;; 11025 esac 11026 11027 if test yes = "$GCC"; then 11028 case $host_os in aix4.[012]|aix4.[012].*) 11029 # We only want to do this on AIX 4.2 and lower, the check 11030 # below for broken collect2 doesn't work under 4.3+ 11031 collect2name=`$CC -print-prog-name=collect2` 11032 if test -f "$collect2name" && 11033 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11034 then 11035 # We have reworked collect2 11036 : 11037 else 11038 # We have old collect2 11039 hardcode_direct=unsupported 11040 # It fails to find uninstalled libraries when the uninstalled 11041 # path is not listed in the libpath. Setting hardcode_minus_L 11042 # to unsupported forces relinking 11043 hardcode_minus_L=yes 11044 hardcode_libdir_flag_spec='-L$libdir' 11045 hardcode_libdir_separator= 11046 fi 11047 ;; 11048 esac 11049 shared_flag='-shared' 11050 if test yes = "$aix_use_runtimelinking"; then 11051 shared_flag="$shared_flag "'$wl-G' 11052 fi 11053 # Need to ensure runtime linking is disabled for the traditional 11054 # shared library, or the linker may eventually find shared libraries 11055 # /with/ Import File - we do not want to mix them. 11056 shared_flag_aix='-shared' 11057 shared_flag_svr4='-shared $wl-G' 11058 else 11059 # not using gcc 11060 if test ia64 = "$host_cpu"; then 11061 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11062 # chokes on -Wl,-G. The following line is correct: 11063 shared_flag='-G' 11064 else 11065 if test yes = "$aix_use_runtimelinking"; then 11066 shared_flag='$wl-G' 11067 else 11068 shared_flag='$wl-bM:SRE' 11069 fi 11070 shared_flag_aix='$wl-bM:SRE' 11071 shared_flag_svr4='$wl-G' 11072 fi 11073 fi 11074 11075 export_dynamic_flag_spec='$wl-bexpall' 11076 # It seems that -bexpall does not export symbols beginning with 11077 # underscore (_), so it is better to generate a list of symbols to export. 11078 always_export_symbols=yes 11079 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11080 # Warning - without using the other runtime loading flags (-brtl), 11081 # -berok will link without error, but may produce a broken library. 11082 allow_undefined_flag='-berok' 11083 # Determine the default libpath from the value encoded in an 11084 # empty executable. 11085 if test set = "${lt_cv_aix_libpath+set}"; then 11086 aix_libpath=$lt_cv_aix_libpath 11087else 11088 if ${lt_cv_aix_libpath_+:} false; then : 11089 $as_echo_n "(cached) " >&6 11090else 11091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11092/* end confdefs.h. */ 11093 11094int 11095main () 11096{ 11097 11098 ; 11099 return 0; 11100} 11101_ACEOF 11102if ac_fn_c_try_link "$LINENO"; then : 11103 11104 lt_aix_libpath_sed=' 11105 /Import File Strings/,/^$/ { 11106 /^0/ { 11107 s/^0 *\([^ ]*\) *$/\1/ 11108 p 11109 } 11110 }' 11111 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11112 # Check for a 64-bit object if we didn't find anything. 11113 if test -z "$lt_cv_aix_libpath_"; then 11114 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11115 fi 11116fi 11117rm -f core conftest.err conftest.$ac_objext \ 11118 conftest$ac_exeext conftest.$ac_ext 11119 if test -z "$lt_cv_aix_libpath_"; then 11120 lt_cv_aix_libpath_=/usr/lib:/lib 11121 fi 11122 11123fi 11124 11125 aix_libpath=$lt_cv_aix_libpath_ 11126fi 11127 11128 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11129 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 11130 else 11131 if test ia64 = "$host_cpu"; then 11132 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11133 allow_undefined_flag="-z nodefs" 11134 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" 11135 else 11136 # Determine the default libpath from the value encoded in an 11137 # empty executable. 11138 if test set = "${lt_cv_aix_libpath+set}"; then 11139 aix_libpath=$lt_cv_aix_libpath 11140else 11141 if ${lt_cv_aix_libpath_+:} false; then : 11142 $as_echo_n "(cached) " >&6 11143else 11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11145/* end confdefs.h. */ 11146 11147int 11148main () 11149{ 11150 11151 ; 11152 return 0; 11153} 11154_ACEOF 11155if ac_fn_c_try_link "$LINENO"; then : 11156 11157 lt_aix_libpath_sed=' 11158 /Import File Strings/,/^$/ { 11159 /^0/ { 11160 s/^0 *\([^ ]*\) *$/\1/ 11161 p 11162 } 11163 }' 11164 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11165 # Check for a 64-bit object if we didn't find anything. 11166 if test -z "$lt_cv_aix_libpath_"; then 11167 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11168 fi 11169fi 11170rm -f core conftest.err conftest.$ac_objext \ 11171 conftest$ac_exeext conftest.$ac_ext 11172 if test -z "$lt_cv_aix_libpath_"; then 11173 lt_cv_aix_libpath_=/usr/lib:/lib 11174 fi 11175 11176fi 11177 11178 aix_libpath=$lt_cv_aix_libpath_ 11179fi 11180 11181 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11182 # Warning - without using the other run time loading flags, 11183 # -berok will link without error, but may produce a broken library. 11184 no_undefined_flag=' $wl-bernotok' 11185 allow_undefined_flag=' $wl-berok' 11186 if test yes = "$with_gnu_ld"; then 11187 # We only use this code for GNU lds that support --whole-archive. 11188 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11189 else 11190 # Exported symbols can be pulled into shared objects from archives 11191 whole_archive_flag_spec='$convenience' 11192 fi 11193 archive_cmds_need_lc=yes 11194 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11195 # -brtl affects multiple linker settings, -berok does not and is overridden later 11196 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11197 if test svr4 != "$with_aix_soname"; then 11198 # This is similar to how AIX traditionally builds its shared libraries. 11199 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' 11200 fi 11201 if test aix != "$with_aix_soname"; then 11202 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' 11203 else 11204 # used by -dlpreopen to get the symbols 11205 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11206 fi 11207 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11208 fi 11209 fi 11210 ;; 11211 11212 amigaos*) 11213 case $host_cpu in 11214 powerpc) 11215 # see comment about AmigaOS4 .so support 11216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11217 archive_expsym_cmds='' 11218 ;; 11219 m68k) 11220 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)' 11221 hardcode_libdir_flag_spec='-L$libdir' 11222 hardcode_minus_L=yes 11223 ;; 11224 esac 11225 ;; 11226 11227 bsdi[45]*) 11228 export_dynamic_flag_spec=-rdynamic 11229 ;; 11230 11231 cygwin* | mingw* | pw32* | cegcc*) 11232 # When not using gcc, we currently assume that we are using 11233 # Microsoft Visual C++. 11234 # hardcode_libdir_flag_spec is actually meaningless, as there is 11235 # no search path for DLLs. 11236 case $cc_basename in 11237 cl*) 11238 # Native MSVC 11239 hardcode_libdir_flag_spec=' ' 11240 allow_undefined_flag=unsupported 11241 always_export_symbols=yes 11242 file_list_spec='@' 11243 # Tell ltmain to make .lib files, not .a files. 11244 libext=lib 11245 # Tell ltmain to make .dll files, not .so files. 11246 shrext_cmds=.dll 11247 # FIXME: Setting linknames here is a bad hack. 11248 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11249 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11250 cp "$export_symbols" "$output_objdir/$soname.def"; 11251 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11252 else 11253 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11254 fi~ 11255 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11256 linknames=' 11257 # The linker will not automatically build a static lib if we build a DLL. 11258 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11259 enable_shared_with_static_runtimes=yes 11260 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11261 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11262 # Don't use ranlib 11263 old_postinstall_cmds='chmod 644 $oldlib' 11264 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11265 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11266 case $lt_outputfile in 11267 *.exe|*.EXE) ;; 11268 *) 11269 lt_outputfile=$lt_outputfile.exe 11270 lt_tool_outputfile=$lt_tool_outputfile.exe 11271 ;; 11272 esac~ 11273 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11274 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11275 $RM "$lt_outputfile.manifest"; 11276 fi' 11277 ;; 11278 *) 11279 # Assume MSVC wrapper 11280 hardcode_libdir_flag_spec=' ' 11281 allow_undefined_flag=unsupported 11282 # Tell ltmain to make .lib files, not .a files. 11283 libext=lib 11284 # Tell ltmain to make .dll files, not .so files. 11285 shrext_cmds=.dll 11286 # FIXME: Setting linknames here is a bad hack. 11287 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11288 # The linker will automatically build a .lib file if we build a DLL. 11289 old_archive_from_new_cmds='true' 11290 # FIXME: Should let the user specify the lib program. 11291 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11292 enable_shared_with_static_runtimes=yes 11293 ;; 11294 esac 11295 ;; 11296 11297 darwin* | rhapsody*) 11298 11299 11300 archive_cmds_need_lc=no 11301 hardcode_direct=no 11302 hardcode_automatic=yes 11303 hardcode_shlibpath_var=unsupported 11304 if test yes = "$lt_cv_ld_force_load"; then 11305 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\"`' 11306 11307 else 11308 whole_archive_flag_spec='' 11309 fi 11310 link_all_deplibs=yes 11311 allow_undefined_flag=$_lt_dar_allow_undefined 11312 case $cc_basename in 11313 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11314 *) _lt_dar_can_shared=$GCC ;; 11315 esac 11316 if test yes = "$_lt_dar_can_shared"; then 11317 output_verbose_link_cmd=func_echo_all 11318 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11319 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11320 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" 11321 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" 11322 11323 else 11324 ld_shlibs=no 11325 fi 11326 11327 ;; 11328 11329 dgux*) 11330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11331 hardcode_libdir_flag_spec='-L$libdir' 11332 hardcode_shlibpath_var=no 11333 ;; 11334 11335 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11336 # support. Future versions do this automatically, but an explicit c++rt0.o 11337 # does not break anything, and helps significantly (at the cost of a little 11338 # extra space). 11339 freebsd2.2*) 11340 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11341 hardcode_libdir_flag_spec='-R$libdir' 11342 hardcode_direct=yes 11343 hardcode_shlibpath_var=no 11344 ;; 11345 11346 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11347 freebsd2.*) 11348 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11349 hardcode_direct=yes 11350 hardcode_minus_L=yes 11351 hardcode_shlibpath_var=no 11352 ;; 11353 11354 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11355 freebsd* | dragonfly*) 11356 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11357 hardcode_libdir_flag_spec='-R$libdir' 11358 hardcode_direct=yes 11359 hardcode_shlibpath_var=no 11360 ;; 11361 11362 hpux9*) 11363 if test yes = "$GCC"; then 11364 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' 11365 else 11366 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' 11367 fi 11368 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11369 hardcode_libdir_separator=: 11370 hardcode_direct=yes 11371 11372 # hardcode_minus_L: Not really in the search PATH, 11373 # but as the default location of the library. 11374 hardcode_minus_L=yes 11375 export_dynamic_flag_spec='$wl-E' 11376 ;; 11377 11378 hpux10*) 11379 if test yes,no = "$GCC,$with_gnu_ld"; then 11380 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11381 else 11382 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11383 fi 11384 if test no = "$with_gnu_ld"; then 11385 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11386 hardcode_libdir_separator=: 11387 hardcode_direct=yes 11388 hardcode_direct_absolute=yes 11389 export_dynamic_flag_spec='$wl-E' 11390 # hardcode_minus_L: Not really in the search PATH, 11391 # but as the default location of the library. 11392 hardcode_minus_L=yes 11393 fi 11394 ;; 11395 11396 hpux11*) 11397 if test yes,no = "$GCC,$with_gnu_ld"; then 11398 case $host_cpu in 11399 hppa*64*) 11400 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11401 ;; 11402 ia64*) 11403 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11404 ;; 11405 *) 11406 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11407 ;; 11408 esac 11409 else 11410 case $host_cpu in 11411 hppa*64*) 11412 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11413 ;; 11414 ia64*) 11415 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11416 ;; 11417 *) 11418 11419 # Older versions of the 11.00 compiler do not understand -b yet 11420 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11422$as_echo_n "checking if $CC understands -b... " >&6; } 11423if ${lt_cv_prog_compiler__b+:} false; then : 11424 $as_echo_n "(cached) " >&6 11425else 11426 lt_cv_prog_compiler__b=no 11427 save_LDFLAGS=$LDFLAGS 11428 LDFLAGS="$LDFLAGS -b" 11429 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11430 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11431 # The linker can only warn and ignore the option if not recognized 11432 # So say no if there are warnings 11433 if test -s conftest.err; then 11434 # Append any errors to the config.log. 11435 cat conftest.err 1>&5 11436 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11438 if diff conftest.exp conftest.er2 >/dev/null; then 11439 lt_cv_prog_compiler__b=yes 11440 fi 11441 else 11442 lt_cv_prog_compiler__b=yes 11443 fi 11444 fi 11445 $RM -r conftest* 11446 LDFLAGS=$save_LDFLAGS 11447 11448fi 11449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11450$as_echo "$lt_cv_prog_compiler__b" >&6; } 11451 11452if test yes = "$lt_cv_prog_compiler__b"; then 11453 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11454else 11455 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11456fi 11457 11458 ;; 11459 esac 11460 fi 11461 if test no = "$with_gnu_ld"; then 11462 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11463 hardcode_libdir_separator=: 11464 11465 case $host_cpu in 11466 hppa*64*|ia64*) 11467 hardcode_direct=no 11468 hardcode_shlibpath_var=no 11469 ;; 11470 *) 11471 hardcode_direct=yes 11472 hardcode_direct_absolute=yes 11473 export_dynamic_flag_spec='$wl-E' 11474 11475 # hardcode_minus_L: Not really in the search PATH, 11476 # but as the default location of the library. 11477 hardcode_minus_L=yes 11478 ;; 11479 esac 11480 fi 11481 ;; 11482 11483 irix5* | irix6* | nonstopux*) 11484 if test yes = "$GCC"; then 11485 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' 11486 # Try to use the -exported_symbol ld option, if it does not 11487 # work, assume that -exports_file does not work either and 11488 # implicitly export all symbols. 11489 # This should be the same for all languages, so no per-tag cache variable. 11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11491$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11492if ${lt_cv_irix_exported_symbol+:} false; then : 11493 $as_echo_n "(cached) " >&6 11494else 11495 save_LDFLAGS=$LDFLAGS 11496 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11498/* end confdefs.h. */ 11499int foo (void) { return 0; } 11500_ACEOF 11501if ac_fn_c_try_link "$LINENO"; then : 11502 lt_cv_irix_exported_symbol=yes 11503else 11504 lt_cv_irix_exported_symbol=no 11505fi 11506rm -f core conftest.err conftest.$ac_objext \ 11507 conftest$ac_exeext conftest.$ac_ext 11508 LDFLAGS=$save_LDFLAGS 11509fi 11510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11511$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11512 if test yes = "$lt_cv_irix_exported_symbol"; then 11513 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' 11514 fi 11515 link_all_deplibs=no 11516 else 11517 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' 11518 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' 11519 fi 11520 archive_cmds_need_lc='no' 11521 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11522 hardcode_libdir_separator=: 11523 inherit_rpath=yes 11524 link_all_deplibs=yes 11525 ;; 11526 11527 linux*) 11528 case $cc_basename in 11529 tcc*) 11530 # Fabrice Bellard et al's Tiny C Compiler 11531 ld_shlibs=yes 11532 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11533 ;; 11534 esac 11535 ;; 11536 11537 netbsd* | netbsdelf*-gnu) 11538 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11540 else 11541 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11542 fi 11543 hardcode_libdir_flag_spec='-R$libdir' 11544 hardcode_direct=yes 11545 hardcode_shlibpath_var=no 11546 ;; 11547 11548 newsos6) 11549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11550 hardcode_direct=yes 11551 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11552 hardcode_libdir_separator=: 11553 hardcode_shlibpath_var=no 11554 ;; 11555 11556 *nto* | *qnx*) 11557 ;; 11558 11559 openbsd* | bitrig*) 11560 if test -f /usr/libexec/ld.so; then 11561 hardcode_direct=yes 11562 hardcode_shlibpath_var=no 11563 hardcode_direct_absolute=yes 11564 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11565 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11566 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11567 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11568 export_dynamic_flag_spec='$wl-E' 11569 else 11570 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11571 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11572 fi 11573 else 11574 ld_shlibs=no 11575 fi 11576 ;; 11577 11578 os2*) 11579 hardcode_libdir_flag_spec='-L$libdir' 11580 hardcode_minus_L=yes 11581 allow_undefined_flag=unsupported 11582 shrext_cmds=.dll 11583 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11584 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11585 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11586 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11587 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11588 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11589 emximp -o $lib $output_objdir/$libname.def' 11590 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11591 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11592 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11593 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11594 prefix_cmds="$SED"~ 11595 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11596 prefix_cmds="$prefix_cmds -e 1d"; 11597 fi~ 11598 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11599 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11600 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11601 emximp -o $lib $output_objdir/$libname.def' 11602 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11603 enable_shared_with_static_runtimes=yes 11604 ;; 11605 11606 osf3*) 11607 if test yes = "$GCC"; then 11608 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11609 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' 11610 else 11611 allow_undefined_flag=' -expect_unresolved \*' 11612 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' 11613 fi 11614 archive_cmds_need_lc='no' 11615 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11616 hardcode_libdir_separator=: 11617 ;; 11618 11619 osf4* | osf5*) # as osf3* with the addition of -msym flag 11620 if test yes = "$GCC"; then 11621 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11622 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' 11623 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11624 else 11625 allow_undefined_flag=' -expect_unresolved \*' 11626 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' 11627 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~ 11628 $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' 11629 11630 # Both c and cxx compiler support -rpath directly 11631 hardcode_libdir_flag_spec='-rpath $libdir' 11632 fi 11633 archive_cmds_need_lc='no' 11634 hardcode_libdir_separator=: 11635 ;; 11636 11637 solaris*) 11638 no_undefined_flag=' -z defs' 11639 if test yes = "$GCC"; then 11640 wlarc='$wl' 11641 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11642 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11643 $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' 11644 else 11645 case `$CC -V 2>&1` in 11646 *"Compilers 5.0"*) 11647 wlarc='' 11648 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11649 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11650 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11651 ;; 11652 *) 11653 wlarc='$wl' 11654 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11655 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11656 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11657 ;; 11658 esac 11659 fi 11660 hardcode_libdir_flag_spec='-R$libdir' 11661 hardcode_shlibpath_var=no 11662 case $host_os in 11663 solaris2.[0-5] | solaris2.[0-5].*) ;; 11664 *) 11665 # The compiler driver will combine and reorder linker options, 11666 # but understands '-z linker_flag'. GCC discards it without '$wl', 11667 # but is careful enough not to reorder. 11668 # Supported since Solaris 2.6 (maybe 2.5.1?) 11669 if test yes = "$GCC"; then 11670 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11671 else 11672 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11673 fi 11674 ;; 11675 esac 11676 link_all_deplibs=yes 11677 ;; 11678 11679 sunos4*) 11680 if test sequent = "$host_vendor"; then 11681 # Use $CC to link under sequent, because it throws in some extra .o 11682 # files that make .init and .fini sections work. 11683 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11684 else 11685 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11686 fi 11687 hardcode_libdir_flag_spec='-L$libdir' 11688 hardcode_direct=yes 11689 hardcode_minus_L=yes 11690 hardcode_shlibpath_var=no 11691 ;; 11692 11693 sysv4) 11694 case $host_vendor in 11695 sni) 11696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11697 hardcode_direct=yes # is this really true??? 11698 ;; 11699 siemens) 11700 ## LD is ld it makes a PLAMLIB 11701 ## CC just makes a GrossModule. 11702 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11703 reload_cmds='$CC -r -o $output$reload_objs' 11704 hardcode_direct=no 11705 ;; 11706 motorola) 11707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11708 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11709 ;; 11710 esac 11711 runpath_var='LD_RUN_PATH' 11712 hardcode_shlibpath_var=no 11713 ;; 11714 11715 sysv4.3*) 11716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11717 hardcode_shlibpath_var=no 11718 export_dynamic_flag_spec='-Bexport' 11719 ;; 11720 11721 sysv4*MP*) 11722 if test -d /usr/nec; then 11723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11724 hardcode_shlibpath_var=no 11725 runpath_var=LD_RUN_PATH 11726 hardcode_runpath_var=yes 11727 ld_shlibs=yes 11728 fi 11729 ;; 11730 11731 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11732 no_undefined_flag='$wl-z,text' 11733 archive_cmds_need_lc=no 11734 hardcode_shlibpath_var=no 11735 runpath_var='LD_RUN_PATH' 11736 11737 if test yes = "$GCC"; then 11738 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11739 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11740 else 11741 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11742 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11743 fi 11744 ;; 11745 11746 sysv5* | sco3.2v5* | sco5v6*) 11747 # Note: We CANNOT use -z defs as we might desire, because we do not 11748 # link with -lc, and that would cause any symbols used from libc to 11749 # always be unresolved, which means just about no library would 11750 # ever link correctly. If we're not using GNU ld we use -z text 11751 # though, which does catch some bad symbols but isn't as heavy-handed 11752 # as -z defs. 11753 no_undefined_flag='$wl-z,text' 11754 allow_undefined_flag='$wl-z,nodefs' 11755 archive_cmds_need_lc=no 11756 hardcode_shlibpath_var=no 11757 hardcode_libdir_flag_spec='$wl-R,$libdir' 11758 hardcode_libdir_separator=':' 11759 link_all_deplibs=yes 11760 export_dynamic_flag_spec='$wl-Bexport' 11761 runpath_var='LD_RUN_PATH' 11762 11763 if test yes = "$GCC"; then 11764 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11765 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11766 else 11767 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11768 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11769 fi 11770 ;; 11771 11772 uts4*) 11773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11774 hardcode_libdir_flag_spec='-L$libdir' 11775 hardcode_shlibpath_var=no 11776 ;; 11777 11778 *) 11779 ld_shlibs=no 11780 ;; 11781 esac 11782 11783 if test sni = "$host_vendor"; then 11784 case $host in 11785 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11786 export_dynamic_flag_spec='$wl-Blargedynsym' 11787 ;; 11788 esac 11789 fi 11790 fi 11791 11792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11793$as_echo "$ld_shlibs" >&6; } 11794test no = "$ld_shlibs" && can_build_shared=no 11795 11796with_gnu_ld=$with_gnu_ld 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812# 11813# Do we need to explicitly link libc? 11814# 11815case "x$archive_cmds_need_lc" in 11816x|xyes) 11817 # Assume -lc should be added 11818 archive_cmds_need_lc=yes 11819 11820 if test yes,yes = "$GCC,$enable_shared"; then 11821 case $archive_cmds in 11822 *'~'*) 11823 # FIXME: we may have to deal with multi-command sequences. 11824 ;; 11825 '$CC '*) 11826 # Test whether the compiler implicitly links with -lc since on some 11827 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11828 # to ld, don't add -lc before -lgcc. 11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11830$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11831if ${lt_cv_archive_cmds_need_lc+:} false; then : 11832 $as_echo_n "(cached) " >&6 11833else 11834 $RM conftest* 11835 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11836 11837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11838 (eval $ac_compile) 2>&5 11839 ac_status=$? 11840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11841 test $ac_status = 0; } 2>conftest.err; then 11842 soname=conftest 11843 lib=conftest 11844 libobjs=conftest.$ac_objext 11845 deplibs= 11846 wl=$lt_prog_compiler_wl 11847 pic_flag=$lt_prog_compiler_pic 11848 compiler_flags=-v 11849 linker_flags=-v 11850 verstring= 11851 output_objdir=. 11852 libname=conftest 11853 lt_save_allow_undefined_flag=$allow_undefined_flag 11854 allow_undefined_flag= 11855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11856 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11857 ac_status=$? 11858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11859 test $ac_status = 0; } 11860 then 11861 lt_cv_archive_cmds_need_lc=no 11862 else 11863 lt_cv_archive_cmds_need_lc=yes 11864 fi 11865 allow_undefined_flag=$lt_save_allow_undefined_flag 11866 else 11867 cat conftest.err 1>&5 11868 fi 11869 $RM conftest* 11870 11871fi 11872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11873$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11874 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11875 ;; 11876 esac 11877 fi 11878 ;; 11879esac 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12033$as_echo_n "checking dynamic linker characteristics... " >&6; } 12034 12035if test yes = "$GCC"; then 12036 case $host_os in 12037 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12038 *) lt_awk_arg='/^libraries:/' ;; 12039 esac 12040 case $host_os in 12041 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12042 *) lt_sed_strip_eq='s|=/|/|g' ;; 12043 esac 12044 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12045 case $lt_search_path_spec in 12046 *\;*) 12047 # if the path contains ";" then we assume it to be the separator 12048 # otherwise default to the standard path separator (i.e. ":") - it is 12049 # assumed that no part of a normal pathname contains ";" but that should 12050 # okay in the real world where ";" in dirpaths is itself problematic. 12051 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12052 ;; 12053 *) 12054 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12055 ;; 12056 esac 12057 # Ok, now we have the path, separated by spaces, we can step through it 12058 # and add multilib dir if necessary... 12059 lt_tmp_lt_search_path_spec= 12060 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12061 # ...but if some path component already ends with the multilib dir we assume 12062 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12063 case "$lt_multi_os_dir; $lt_search_path_spec " in 12064 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12065 lt_multi_os_dir= 12066 ;; 12067 esac 12068 for lt_sys_path in $lt_search_path_spec; do 12069 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12070 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12071 elif test -n "$lt_multi_os_dir"; then 12072 test -d "$lt_sys_path" && \ 12073 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12074 fi 12075 done 12076 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12077BEGIN {RS = " "; FS = "/|\n";} { 12078 lt_foo = ""; 12079 lt_count = 0; 12080 for (lt_i = NF; lt_i > 0; lt_i--) { 12081 if ($lt_i != "" && $lt_i != ".") { 12082 if ($lt_i == "..") { 12083 lt_count++; 12084 } else { 12085 if (lt_count == 0) { 12086 lt_foo = "/" $lt_i lt_foo; 12087 } else { 12088 lt_count--; 12089 } 12090 } 12091 } 12092 } 12093 if (lt_foo != "") { lt_freq[lt_foo]++; } 12094 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12095}'` 12096 # AWK program above erroneously prepends '/' to C:/dos/paths 12097 # for these hosts. 12098 case $host_os in 12099 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12100 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12101 esac 12102 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12103else 12104 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12105fi 12106library_names_spec= 12107libname_spec='lib$name' 12108soname_spec= 12109shrext_cmds=.so 12110postinstall_cmds= 12111postuninstall_cmds= 12112finish_cmds= 12113finish_eval= 12114shlibpath_var= 12115shlibpath_overrides_runpath=unknown 12116version_type=none 12117dynamic_linker="$host_os ld.so" 12118sys_lib_dlsearch_path_spec="/lib /usr/lib" 12119need_lib_prefix=unknown 12120hardcode_into_libs=no 12121 12122# when you set need_version to no, make sure it does not cause -set_version 12123# flags to be left without arguments 12124need_version=unknown 12125 12126 12127 12128case $host_os in 12129aix3*) 12130 version_type=linux # correct to gnu/linux during the next big refactor 12131 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12132 shlibpath_var=LIBPATH 12133 12134 # AIX 3 has no versioning support, so we append a major version to the name. 12135 soname_spec='$libname$release$shared_ext$major' 12136 ;; 12137 12138aix[4-9]*) 12139 version_type=linux # correct to gnu/linux during the next big refactor 12140 need_lib_prefix=no 12141 need_version=no 12142 hardcode_into_libs=yes 12143 if test ia64 = "$host_cpu"; then 12144 # AIX 5 supports IA64 12145 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12146 shlibpath_var=LD_LIBRARY_PATH 12147 else 12148 # With GCC up to 2.95.x, collect2 would create an import file 12149 # for dependence libraries. The import file would start with 12150 # the line '#! .'. This would cause the generated library to 12151 # depend on '.', always an invalid library. This was fixed in 12152 # development snapshots of GCC prior to 3.0. 12153 case $host_os in 12154 aix4 | aix4.[01] | aix4.[01].*) 12155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12156 echo ' yes ' 12157 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12158 : 12159 else 12160 can_build_shared=no 12161 fi 12162 ;; 12163 esac 12164 # Using Import Files as archive members, it is possible to support 12165 # filename-based versioning of shared library archives on AIX. While 12166 # this would work for both with and without runtime linking, it will 12167 # prevent static linking of such archives. So we do filename-based 12168 # shared library versioning with .so extension only, which is used 12169 # when both runtime linking and shared linking is enabled. 12170 # Unfortunately, runtime linking may impact performance, so we do 12171 # not want this to be the default eventually. Also, we use the 12172 # versioned .so libs for executables only if there is the -brtl 12173 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12174 # To allow for filename-based versioning support, we need to create 12175 # libNAME.so.V as an archive file, containing: 12176 # *) an Import File, referring to the versioned filename of the 12177 # archive as well as the shared archive member, telling the 12178 # bitwidth (32 or 64) of that shared object, and providing the 12179 # list of exported symbols of that shared object, eventually 12180 # decorated with the 'weak' keyword 12181 # *) the shared object with the F_LOADONLY flag set, to really avoid 12182 # it being seen by the linker. 12183 # At run time we better use the real file rather than another symlink, 12184 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12185 12186 case $with_aix_soname,$aix_use_runtimelinking in 12187 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12188 # soname into executable. Probably we can add versioning support to 12189 # collect2, so additional links can be useful in future. 12190 aix,yes) # traditional libtool 12191 dynamic_linker='AIX unversionable lib.so' 12192 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12193 # instead of lib<name>.a to let people know that these are not 12194 # typical AIX shared libraries. 12195 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12196 ;; 12197 aix,no) # traditional AIX only 12198 dynamic_linker='AIX lib.a(lib.so.V)' 12199 # We preserve .a as extension for shared libraries through AIX4.2 12200 # and later when we are not doing run time linking. 12201 library_names_spec='$libname$release.a $libname.a' 12202 soname_spec='$libname$release$shared_ext$major' 12203 ;; 12204 svr4,*) # full svr4 only 12205 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12206 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12207 # We do not specify a path in Import Files, so LIBPATH fires. 12208 shlibpath_overrides_runpath=yes 12209 ;; 12210 *,yes) # both, prefer svr4 12211 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12212 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12213 # unpreferred sharedlib libNAME.a needs extra handling 12214 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"' 12215 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"' 12216 # We do not specify a path in Import Files, so LIBPATH fires. 12217 shlibpath_overrides_runpath=yes 12218 ;; 12219 *,no) # both, prefer aix 12220 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12221 library_names_spec='$libname$release.a $libname.a' 12222 soname_spec='$libname$release$shared_ext$major' 12223 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12224 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)' 12225 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"' 12226 ;; 12227 esac 12228 shlibpath_var=LIBPATH 12229 fi 12230 ;; 12231 12232amigaos*) 12233 case $host_cpu in 12234 powerpc) 12235 # Since July 2007 AmigaOS4 officially supports .so libraries. 12236 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12237 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12238 ;; 12239 m68k) 12240 library_names_spec='$libname.ixlibrary $libname.a' 12241 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12242 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' 12243 ;; 12244 esac 12245 ;; 12246 12247beos*) 12248 library_names_spec='$libname$shared_ext' 12249 dynamic_linker="$host_os ld.so" 12250 shlibpath_var=LIBRARY_PATH 12251 ;; 12252 12253bsdi[45]*) 12254 version_type=linux # correct to gnu/linux during the next big refactor 12255 need_version=no 12256 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12257 soname_spec='$libname$release$shared_ext$major' 12258 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12259 shlibpath_var=LD_LIBRARY_PATH 12260 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12261 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12262 # the default ld.so.conf also contains /usr/contrib/lib and 12263 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12264 # libtool to hard-code these into programs 12265 ;; 12266 12267cygwin* | mingw* | pw32* | cegcc*) 12268 version_type=windows 12269 shrext_cmds=.dll 12270 need_version=no 12271 need_lib_prefix=no 12272 12273 case $GCC,$cc_basename in 12274 yes,*) 12275 # gcc 12276 library_names_spec='$libname.dll.a' 12277 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12278 postinstall_cmds='base_file=`basename \$file`~ 12279 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12280 dldir=$destdir/`dirname \$dlpath`~ 12281 test -d \$dldir || mkdir -p \$dldir~ 12282 $install_prog $dir/$dlname \$dldir/$dlname~ 12283 chmod a+x \$dldir/$dlname~ 12284 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12285 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12286 fi' 12287 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12288 dlpath=$dir/\$dldll~ 12289 $RM \$dlpath' 12290 shlibpath_overrides_runpath=yes 12291 12292 case $host_os in 12293 cygwin*) 12294 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12295 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12296 12297 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12298 ;; 12299 mingw* | cegcc*) 12300 # MinGW DLLs use traditional 'lib' prefix 12301 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12302 ;; 12303 pw32*) 12304 # pw32 DLLs use 'pw' prefix rather than 'lib' 12305 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12306 ;; 12307 esac 12308 dynamic_linker='Win32 ld.exe' 12309 ;; 12310 12311 *,cl*) 12312 # Native MSVC 12313 libname_spec='$name' 12314 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12315 library_names_spec='$libname.dll.lib' 12316 12317 case $build_os in 12318 mingw*) 12319 sys_lib_search_path_spec= 12320 lt_save_ifs=$IFS 12321 IFS=';' 12322 for lt_path in $LIB 12323 do 12324 IFS=$lt_save_ifs 12325 # Let DOS variable expansion print the short 8.3 style file name. 12326 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12327 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12328 done 12329 IFS=$lt_save_ifs 12330 # Convert to MSYS style. 12331 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12332 ;; 12333 cygwin*) 12334 # Convert to unix form, then to dos form, then back to unix form 12335 # but this time dos style (no spaces!) so that the unix form looks 12336 # like /cygdrive/c/PROGRA~1:/cygdr... 12337 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12338 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12339 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12340 ;; 12341 *) 12342 sys_lib_search_path_spec=$LIB 12343 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12344 # It is most probably a Windows format PATH. 12345 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12346 else 12347 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12348 fi 12349 # FIXME: find the short name or the path components, as spaces are 12350 # common. (e.g. "Program Files" -> "PROGRA~1") 12351 ;; 12352 esac 12353 12354 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12355 postinstall_cmds='base_file=`basename \$file`~ 12356 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12357 dldir=$destdir/`dirname \$dlpath`~ 12358 test -d \$dldir || mkdir -p \$dldir~ 12359 $install_prog $dir/$dlname \$dldir/$dlname' 12360 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12361 dlpath=$dir/\$dldll~ 12362 $RM \$dlpath' 12363 shlibpath_overrides_runpath=yes 12364 dynamic_linker='Win32 link.exe' 12365 ;; 12366 12367 *) 12368 # Assume MSVC wrapper 12369 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12370 dynamic_linker='Win32 ld.exe' 12371 ;; 12372 esac 12373 # FIXME: first we should search . and the directory the executable is in 12374 shlibpath_var=PATH 12375 ;; 12376 12377darwin* | rhapsody*) 12378 dynamic_linker="$host_os dyld" 12379 version_type=darwin 12380 need_lib_prefix=no 12381 need_version=no 12382 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12383 soname_spec='$libname$release$major$shared_ext' 12384 shlibpath_overrides_runpath=yes 12385 shlibpath_var=DYLD_LIBRARY_PATH 12386 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12387 12388 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12389 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12390 ;; 12391 12392dgux*) 12393 version_type=linux # correct to gnu/linux during the next big refactor 12394 need_lib_prefix=no 12395 need_version=no 12396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12397 soname_spec='$libname$release$shared_ext$major' 12398 shlibpath_var=LD_LIBRARY_PATH 12399 ;; 12400 12401freebsd* | dragonfly*) 12402 # DragonFly does not have aout. When/if they implement a new 12403 # versioning mechanism, adjust this. 12404 if test -x /usr/bin/objformat; then 12405 objformat=`/usr/bin/objformat` 12406 else 12407 case $host_os in 12408 freebsd[23].*) objformat=aout ;; 12409 *) objformat=elf ;; 12410 esac 12411 fi 12412 version_type=freebsd-$objformat 12413 case $version_type in 12414 freebsd-elf*) 12415 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12416 soname_spec='$libname$release$shared_ext$major' 12417 need_version=no 12418 need_lib_prefix=no 12419 ;; 12420 freebsd-*) 12421 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12422 need_version=yes 12423 ;; 12424 esac 12425 shlibpath_var=LD_LIBRARY_PATH 12426 case $host_os in 12427 freebsd2.*) 12428 shlibpath_overrides_runpath=yes 12429 ;; 12430 freebsd3.[01]* | freebsdelf3.[01]*) 12431 shlibpath_overrides_runpath=yes 12432 hardcode_into_libs=yes 12433 ;; 12434 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12435 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12436 shlibpath_overrides_runpath=no 12437 hardcode_into_libs=yes 12438 ;; 12439 *) # from 4.6 on, and DragonFly 12440 shlibpath_overrides_runpath=yes 12441 hardcode_into_libs=yes 12442 ;; 12443 esac 12444 ;; 12445 12446haiku*) 12447 version_type=linux # correct to gnu/linux during the next big refactor 12448 need_lib_prefix=no 12449 need_version=no 12450 dynamic_linker="$host_os runtime_loader" 12451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12452 soname_spec='$libname$release$shared_ext$major' 12453 shlibpath_var=LIBRARY_PATH 12454 shlibpath_overrides_runpath=no 12455 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12456 hardcode_into_libs=yes 12457 ;; 12458 12459hpux9* | hpux10* | hpux11*) 12460 # Give a soname corresponding to the major version so that dld.sl refuses to 12461 # link against other versions. 12462 version_type=sunos 12463 need_lib_prefix=no 12464 need_version=no 12465 case $host_cpu in 12466 ia64*) 12467 shrext_cmds='.so' 12468 hardcode_into_libs=yes 12469 dynamic_linker="$host_os dld.so" 12470 shlibpath_var=LD_LIBRARY_PATH 12471 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12472 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12473 soname_spec='$libname$release$shared_ext$major' 12474 if test 32 = "$HPUX_IA64_MODE"; then 12475 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12476 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12477 else 12478 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12479 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12480 fi 12481 ;; 12482 hppa*64*) 12483 shrext_cmds='.sl' 12484 hardcode_into_libs=yes 12485 dynamic_linker="$host_os dld.sl" 12486 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12487 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12489 soname_spec='$libname$release$shared_ext$major' 12490 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12491 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12492 ;; 12493 *) 12494 shrext_cmds='.sl' 12495 dynamic_linker="$host_os dld.sl" 12496 shlibpath_var=SHLIB_PATH 12497 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12499 soname_spec='$libname$release$shared_ext$major' 12500 ;; 12501 esac 12502 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12503 postinstall_cmds='chmod 555 $lib' 12504 # or fails outright, so override atomically: 12505 install_override_mode=555 12506 ;; 12507 12508interix[3-9]*) 12509 version_type=linux # correct to gnu/linux during the next big refactor 12510 need_lib_prefix=no 12511 need_version=no 12512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12513 soname_spec='$libname$release$shared_ext$major' 12514 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12515 shlibpath_var=LD_LIBRARY_PATH 12516 shlibpath_overrides_runpath=no 12517 hardcode_into_libs=yes 12518 ;; 12519 12520irix5* | irix6* | nonstopux*) 12521 case $host_os in 12522 nonstopux*) version_type=nonstopux ;; 12523 *) 12524 if test yes = "$lt_cv_prog_gnu_ld"; then 12525 version_type=linux # correct to gnu/linux during the next big refactor 12526 else 12527 version_type=irix 12528 fi ;; 12529 esac 12530 need_lib_prefix=no 12531 need_version=no 12532 soname_spec='$libname$release$shared_ext$major' 12533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12534 case $host_os in 12535 irix5* | nonstopux*) 12536 libsuff= shlibsuff= 12537 ;; 12538 *) 12539 case $LD in # libtool.m4 will add one of these switches to LD 12540 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12541 libsuff= shlibsuff= libmagic=32-bit;; 12542 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12543 libsuff=32 shlibsuff=N32 libmagic=N32;; 12544 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12545 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12546 *) libsuff= shlibsuff= libmagic=never-match;; 12547 esac 12548 ;; 12549 esac 12550 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12551 shlibpath_overrides_runpath=no 12552 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12553 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12554 hardcode_into_libs=yes 12555 ;; 12556 12557# No shared lib support for Linux oldld, aout, or coff. 12558linux*oldld* | linux*aout* | linux*coff*) 12559 dynamic_linker=no 12560 ;; 12561 12562linux*android*) 12563 version_type=none # Android doesn't support versioned libraries. 12564 need_lib_prefix=no 12565 need_version=no 12566 library_names_spec='$libname$release$shared_ext' 12567 soname_spec='$libname$release$shared_ext' 12568 finish_cmds= 12569 shlibpath_var=LD_LIBRARY_PATH 12570 shlibpath_overrides_runpath=yes 12571 12572 # This implies no fast_install, which is unacceptable. 12573 # Some rework will be needed to allow for fast_install 12574 # before this can be enabled. 12575 hardcode_into_libs=yes 12576 12577 dynamic_linker='Android linker' 12578 # Don't embed -rpath directories since the linker doesn't support them. 12579 hardcode_libdir_flag_spec='-L$libdir' 12580 ;; 12581 12582# This must be glibc/ELF. 12583linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12584 version_type=linux # correct to gnu/linux during the next big refactor 12585 need_lib_prefix=no 12586 need_version=no 12587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12588 soname_spec='$libname$release$shared_ext$major' 12589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12590 shlibpath_var=LD_LIBRARY_PATH 12591 shlibpath_overrides_runpath=no 12592 12593 # Some binutils ld are patched to set DT_RUNPATH 12594 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12595 $as_echo_n "(cached) " >&6 12596else 12597 lt_cv_shlibpath_overrides_runpath=no 12598 save_LDFLAGS=$LDFLAGS 12599 save_libdir=$libdir 12600 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12601 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12603/* end confdefs.h. */ 12604 12605int 12606main () 12607{ 12608 12609 ; 12610 return 0; 12611} 12612_ACEOF 12613if ac_fn_c_try_link "$LINENO"; then : 12614 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12615 lt_cv_shlibpath_overrides_runpath=yes 12616fi 12617fi 12618rm -f core conftest.err conftest.$ac_objext \ 12619 conftest$ac_exeext conftest.$ac_ext 12620 LDFLAGS=$save_LDFLAGS 12621 libdir=$save_libdir 12622 12623fi 12624 12625 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12626 12627 # This implies no fast_install, which is unacceptable. 12628 # Some rework will be needed to allow for fast_install 12629 # before this can be enabled. 12630 hardcode_into_libs=yes 12631 12632 # Ideally, we could use ldconfig to report *all* directores which are 12633 # searched for libraries, however this is still not possible. Aside from not 12634 # being certain /sbin/ldconfig is available, command 12635 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12636 # even though it is searched at run-time. Try to do the best guess by 12637 # appending ld.so.conf contents (and includes) to the search path. 12638 if test -f /etc/ld.so.conf; then 12639 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' ' '` 12640 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12641 fi 12642 12643 # We used to test for /lib/ld.so.1 and disable shared libraries on 12644 # powerpc, because MkLinux only supported shared libraries with the 12645 # GNU dynamic linker. Since this was broken with cross compilers, 12646 # most powerpc-linux boxes support dynamic linking these days and 12647 # people can always --disable-shared, the test was removed, and we 12648 # assume the GNU/Linux dynamic linker is in use. 12649 dynamic_linker='GNU/Linux ld.so' 12650 ;; 12651 12652netbsdelf*-gnu) 12653 version_type=linux 12654 need_lib_prefix=no 12655 need_version=no 12656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12657 soname_spec='${libname}${release}${shared_ext}$major' 12658 shlibpath_var=LD_LIBRARY_PATH 12659 shlibpath_overrides_runpath=no 12660 hardcode_into_libs=yes 12661 dynamic_linker='NetBSD ld.elf_so' 12662 ;; 12663 12664netbsd*) 12665 version_type=sunos 12666 need_lib_prefix=no 12667 need_version=no 12668 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12669 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12671 dynamic_linker='NetBSD (a.out) ld.so' 12672 else 12673 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12674 soname_spec='$libname$release$shared_ext$major' 12675 dynamic_linker='NetBSD ld.elf_so' 12676 fi 12677 shlibpath_var=LD_LIBRARY_PATH 12678 shlibpath_overrides_runpath=yes 12679 hardcode_into_libs=yes 12680 ;; 12681 12682newsos6) 12683 version_type=linux # correct to gnu/linux during the next big refactor 12684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12685 shlibpath_var=LD_LIBRARY_PATH 12686 shlibpath_overrides_runpath=yes 12687 ;; 12688 12689*nto* | *qnx*) 12690 version_type=qnx 12691 need_lib_prefix=no 12692 need_version=no 12693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12694 soname_spec='$libname$release$shared_ext$major' 12695 shlibpath_var=LD_LIBRARY_PATH 12696 shlibpath_overrides_runpath=no 12697 hardcode_into_libs=yes 12698 dynamic_linker='ldqnx.so' 12699 ;; 12700 12701openbsd* | bitrig*) 12702 version_type=sunos 12703 sys_lib_dlsearch_path_spec=/usr/lib 12704 need_lib_prefix=no 12705 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12706 need_version=no 12707 else 12708 need_version=yes 12709 fi 12710 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12712 shlibpath_var=LD_LIBRARY_PATH 12713 shlibpath_overrides_runpath=yes 12714 ;; 12715 12716os2*) 12717 libname_spec='$name' 12718 version_type=windows 12719 shrext_cmds=.dll 12720 need_version=no 12721 need_lib_prefix=no 12722 # OS/2 can only load a DLL with a base name of 8 characters or less. 12723 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12724 v=$($ECHO $release$versuffix | tr -d .-); 12725 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12726 $ECHO $n$v`$shared_ext' 12727 library_names_spec='${libname}_dll.$libext' 12728 dynamic_linker='OS/2 ld.exe' 12729 shlibpath_var=BEGINLIBPATH 12730 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12731 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12732 postinstall_cmds='base_file=`basename \$file`~ 12733 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12734 dldir=$destdir/`dirname \$dlpath`~ 12735 test -d \$dldir || mkdir -p \$dldir~ 12736 $install_prog $dir/$dlname \$dldir/$dlname~ 12737 chmod a+x \$dldir/$dlname~ 12738 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12739 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12740 fi' 12741 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12742 dlpath=$dir/\$dldll~ 12743 $RM \$dlpath' 12744 ;; 12745 12746osf3* | osf4* | osf5*) 12747 version_type=osf 12748 need_lib_prefix=no 12749 need_version=no 12750 soname_spec='$libname$release$shared_ext$major' 12751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12752 shlibpath_var=LD_LIBRARY_PATH 12753 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12754 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12755 ;; 12756 12757rdos*) 12758 dynamic_linker=no 12759 ;; 12760 12761solaris*) 12762 version_type=linux # correct to gnu/linux during the next big refactor 12763 need_lib_prefix=no 12764 need_version=no 12765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12766 soname_spec='$libname$release$shared_ext$major' 12767 shlibpath_var=LD_LIBRARY_PATH 12768 shlibpath_overrides_runpath=yes 12769 hardcode_into_libs=yes 12770 # ldd complains unless libraries are executable 12771 postinstall_cmds='chmod +x $lib' 12772 ;; 12773 12774sunos4*) 12775 version_type=sunos 12776 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12777 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12778 shlibpath_var=LD_LIBRARY_PATH 12779 shlibpath_overrides_runpath=yes 12780 if test yes = "$with_gnu_ld"; then 12781 need_lib_prefix=no 12782 fi 12783 need_version=yes 12784 ;; 12785 12786sysv4 | sysv4.3*) 12787 version_type=linux # correct to gnu/linux during the next big refactor 12788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12789 soname_spec='$libname$release$shared_ext$major' 12790 shlibpath_var=LD_LIBRARY_PATH 12791 case $host_vendor in 12792 sni) 12793 shlibpath_overrides_runpath=no 12794 need_lib_prefix=no 12795 runpath_var=LD_RUN_PATH 12796 ;; 12797 siemens) 12798 need_lib_prefix=no 12799 ;; 12800 motorola) 12801 need_lib_prefix=no 12802 need_version=no 12803 shlibpath_overrides_runpath=no 12804 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12805 ;; 12806 esac 12807 ;; 12808 12809sysv4*MP*) 12810 if test -d /usr/nec; then 12811 version_type=linux # correct to gnu/linux during the next big refactor 12812 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12813 soname_spec='$libname$shared_ext.$major' 12814 shlibpath_var=LD_LIBRARY_PATH 12815 fi 12816 ;; 12817 12818sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12819 version_type=sco 12820 need_lib_prefix=no 12821 need_version=no 12822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12823 soname_spec='$libname$release$shared_ext$major' 12824 shlibpath_var=LD_LIBRARY_PATH 12825 shlibpath_overrides_runpath=yes 12826 hardcode_into_libs=yes 12827 if test yes = "$with_gnu_ld"; then 12828 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12829 else 12830 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12831 case $host_os in 12832 sco3.2v5*) 12833 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12834 ;; 12835 esac 12836 fi 12837 sys_lib_dlsearch_path_spec='/usr/lib' 12838 ;; 12839 12840tpf*) 12841 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12842 version_type=linux # correct to gnu/linux during the next big refactor 12843 need_lib_prefix=no 12844 need_version=no 12845 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12846 shlibpath_var=LD_LIBRARY_PATH 12847 shlibpath_overrides_runpath=no 12848 hardcode_into_libs=yes 12849 ;; 12850 12851uts4*) 12852 version_type=linux # correct to gnu/linux during the next big refactor 12853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12854 soname_spec='$libname$release$shared_ext$major' 12855 shlibpath_var=LD_LIBRARY_PATH 12856 ;; 12857 12858*) 12859 dynamic_linker=no 12860 ;; 12861esac 12862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12863$as_echo "$dynamic_linker" >&6; } 12864test no = "$dynamic_linker" && can_build_shared=no 12865 12866variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12867if test yes = "$GCC"; then 12868 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12869fi 12870 12871if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12872 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12873fi 12874 12875if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12876 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12877fi 12878 12879# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12880configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12881 12882# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12883func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12884 12885# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12886configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12985$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12986hardcode_action= 12987if test -n "$hardcode_libdir_flag_spec" || 12988 test -n "$runpath_var" || 12989 test yes = "$hardcode_automatic"; then 12990 12991 # We can hardcode non-existent directories. 12992 if test no != "$hardcode_direct" && 12993 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12994 # have to relink, otherwise we might link with an installed library 12995 # when we should be linking with a yet-to-be-installed one 12996 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12997 test no != "$hardcode_minus_L"; then 12998 # Linking always hardcodes the temporary library directory. 12999 hardcode_action=relink 13000 else 13001 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13002 hardcode_action=immediate 13003 fi 13004else 13005 # We cannot hardcode anything, or else we can only hardcode existing 13006 # directories. 13007 hardcode_action=unsupported 13008fi 13009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13010$as_echo "$hardcode_action" >&6; } 13011 13012if test relink = "$hardcode_action" || 13013 test yes = "$inherit_rpath"; then 13014 # Fast installation is not supported 13015 enable_fast_install=no 13016elif test yes = "$shlibpath_overrides_runpath" || 13017 test no = "$enable_shared"; then 13018 # Fast installation is not necessary 13019 enable_fast_install=needless 13020fi 13021 13022 13023 13024 13025 13026 13027 if test yes != "$enable_dlopen"; then 13028 enable_dlopen=unknown 13029 enable_dlopen_self=unknown 13030 enable_dlopen_self_static=unknown 13031else 13032 lt_cv_dlopen=no 13033 lt_cv_dlopen_libs= 13034 13035 case $host_os in 13036 beos*) 13037 lt_cv_dlopen=load_add_on 13038 lt_cv_dlopen_libs= 13039 lt_cv_dlopen_self=yes 13040 ;; 13041 13042 mingw* | pw32* | cegcc*) 13043 lt_cv_dlopen=LoadLibrary 13044 lt_cv_dlopen_libs= 13045 ;; 13046 13047 cygwin*) 13048 lt_cv_dlopen=dlopen 13049 lt_cv_dlopen_libs= 13050 ;; 13051 13052 darwin*) 13053 # if libdl is installed we need to link against it 13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13055$as_echo_n "checking for dlopen in -ldl... " >&6; } 13056if ${ac_cv_lib_dl_dlopen+:} false; then : 13057 $as_echo_n "(cached) " >&6 13058else 13059 ac_check_lib_save_LIBS=$LIBS 13060LIBS="-ldl $LIBS" 13061cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13062/* end confdefs.h. */ 13063 13064/* Override any GCC internal prototype to avoid an error. 13065 Use char because int might match the return type of a GCC 13066 builtin and then its argument prototype would still apply. */ 13067#ifdef __cplusplus 13068extern "C" 13069#endif 13070char dlopen (); 13071int 13072main () 13073{ 13074return dlopen (); 13075 ; 13076 return 0; 13077} 13078_ACEOF 13079if ac_fn_c_try_link "$LINENO"; then : 13080 ac_cv_lib_dl_dlopen=yes 13081else 13082 ac_cv_lib_dl_dlopen=no 13083fi 13084rm -f core conftest.err conftest.$ac_objext \ 13085 conftest$ac_exeext conftest.$ac_ext 13086LIBS=$ac_check_lib_save_LIBS 13087fi 13088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13089$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13090if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13091 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13092else 13093 13094 lt_cv_dlopen=dyld 13095 lt_cv_dlopen_libs= 13096 lt_cv_dlopen_self=yes 13097 13098fi 13099 13100 ;; 13101 13102 tpf*) 13103 # Don't try to run any link tests for TPF. We know it's impossible 13104 # because TPF is a cross-compiler, and we know how we open DSOs. 13105 lt_cv_dlopen=dlopen 13106 lt_cv_dlopen_libs= 13107 lt_cv_dlopen_self=no 13108 ;; 13109 13110 *) 13111 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13112if test "x$ac_cv_func_shl_load" = xyes; then : 13113 lt_cv_dlopen=shl_load 13114else 13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13116$as_echo_n "checking for shl_load in -ldld... " >&6; } 13117if ${ac_cv_lib_dld_shl_load+:} false; then : 13118 $as_echo_n "(cached) " >&6 13119else 13120 ac_check_lib_save_LIBS=$LIBS 13121LIBS="-ldld $LIBS" 13122cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13123/* end confdefs.h. */ 13124 13125/* Override any GCC internal prototype to avoid an error. 13126 Use char because int might match the return type of a GCC 13127 builtin and then its argument prototype would still apply. */ 13128#ifdef __cplusplus 13129extern "C" 13130#endif 13131char shl_load (); 13132int 13133main () 13134{ 13135return shl_load (); 13136 ; 13137 return 0; 13138} 13139_ACEOF 13140if ac_fn_c_try_link "$LINENO"; then : 13141 ac_cv_lib_dld_shl_load=yes 13142else 13143 ac_cv_lib_dld_shl_load=no 13144fi 13145rm -f core conftest.err conftest.$ac_objext \ 13146 conftest$ac_exeext conftest.$ac_ext 13147LIBS=$ac_check_lib_save_LIBS 13148fi 13149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13150$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13151if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13152 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13153else 13154 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13155if test "x$ac_cv_func_dlopen" = xyes; then : 13156 lt_cv_dlopen=dlopen 13157else 13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13159$as_echo_n "checking for dlopen in -ldl... " >&6; } 13160if ${ac_cv_lib_dl_dlopen+:} false; then : 13161 $as_echo_n "(cached) " >&6 13162else 13163 ac_check_lib_save_LIBS=$LIBS 13164LIBS="-ldl $LIBS" 13165cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13166/* end confdefs.h. */ 13167 13168/* Override any GCC internal prototype to avoid an error. 13169 Use char because int might match the return type of a GCC 13170 builtin and then its argument prototype would still apply. */ 13171#ifdef __cplusplus 13172extern "C" 13173#endif 13174char dlopen (); 13175int 13176main () 13177{ 13178return dlopen (); 13179 ; 13180 return 0; 13181} 13182_ACEOF 13183if ac_fn_c_try_link "$LINENO"; then : 13184 ac_cv_lib_dl_dlopen=yes 13185else 13186 ac_cv_lib_dl_dlopen=no 13187fi 13188rm -f core conftest.err conftest.$ac_objext \ 13189 conftest$ac_exeext conftest.$ac_ext 13190LIBS=$ac_check_lib_save_LIBS 13191fi 13192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13193$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13194if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13195 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13196else 13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13198$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13199if ${ac_cv_lib_svld_dlopen+:} false; then : 13200 $as_echo_n "(cached) " >&6 13201else 13202 ac_check_lib_save_LIBS=$LIBS 13203LIBS="-lsvld $LIBS" 13204cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13205/* end confdefs.h. */ 13206 13207/* Override any GCC internal prototype to avoid an error. 13208 Use char because int might match the return type of a GCC 13209 builtin and then its argument prototype would still apply. */ 13210#ifdef __cplusplus 13211extern "C" 13212#endif 13213char dlopen (); 13214int 13215main () 13216{ 13217return dlopen (); 13218 ; 13219 return 0; 13220} 13221_ACEOF 13222if ac_fn_c_try_link "$LINENO"; then : 13223 ac_cv_lib_svld_dlopen=yes 13224else 13225 ac_cv_lib_svld_dlopen=no 13226fi 13227rm -f core conftest.err conftest.$ac_objext \ 13228 conftest$ac_exeext conftest.$ac_ext 13229LIBS=$ac_check_lib_save_LIBS 13230fi 13231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13232$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13233if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13234 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13235else 13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13237$as_echo_n "checking for dld_link in -ldld... " >&6; } 13238if ${ac_cv_lib_dld_dld_link+:} false; then : 13239 $as_echo_n "(cached) " >&6 13240else 13241 ac_check_lib_save_LIBS=$LIBS 13242LIBS="-ldld $LIBS" 13243cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13244/* end confdefs.h. */ 13245 13246/* Override any GCC internal prototype to avoid an error. 13247 Use char because int might match the return type of a GCC 13248 builtin and then its argument prototype would still apply. */ 13249#ifdef __cplusplus 13250extern "C" 13251#endif 13252char dld_link (); 13253int 13254main () 13255{ 13256return dld_link (); 13257 ; 13258 return 0; 13259} 13260_ACEOF 13261if ac_fn_c_try_link "$LINENO"; then : 13262 ac_cv_lib_dld_dld_link=yes 13263else 13264 ac_cv_lib_dld_dld_link=no 13265fi 13266rm -f core conftest.err conftest.$ac_objext \ 13267 conftest$ac_exeext conftest.$ac_ext 13268LIBS=$ac_check_lib_save_LIBS 13269fi 13270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13271$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13272if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13273 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13274fi 13275 13276 13277fi 13278 13279 13280fi 13281 13282 13283fi 13284 13285 13286fi 13287 13288 13289fi 13290 13291 ;; 13292 esac 13293 13294 if test no = "$lt_cv_dlopen"; then 13295 enable_dlopen=no 13296 else 13297 enable_dlopen=yes 13298 fi 13299 13300 case $lt_cv_dlopen in 13301 dlopen) 13302 save_CPPFLAGS=$CPPFLAGS 13303 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13304 13305 save_LDFLAGS=$LDFLAGS 13306 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13307 13308 save_LIBS=$LIBS 13309 LIBS="$lt_cv_dlopen_libs $LIBS" 13310 13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13312$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13313if ${lt_cv_dlopen_self+:} false; then : 13314 $as_echo_n "(cached) " >&6 13315else 13316 if test yes = "$cross_compiling"; then : 13317 lt_cv_dlopen_self=cross 13318else 13319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13320 lt_status=$lt_dlunknown 13321 cat > conftest.$ac_ext <<_LT_EOF 13322#line $LINENO "configure" 13323#include "confdefs.h" 13324 13325#if HAVE_DLFCN_H 13326#include <dlfcn.h> 13327#endif 13328 13329#include <stdio.h> 13330 13331#ifdef RTLD_GLOBAL 13332# define LT_DLGLOBAL RTLD_GLOBAL 13333#else 13334# ifdef DL_GLOBAL 13335# define LT_DLGLOBAL DL_GLOBAL 13336# else 13337# define LT_DLGLOBAL 0 13338# endif 13339#endif 13340 13341/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13342 find out it does not work in some platform. */ 13343#ifndef LT_DLLAZY_OR_NOW 13344# ifdef RTLD_LAZY 13345# define LT_DLLAZY_OR_NOW RTLD_LAZY 13346# else 13347# ifdef DL_LAZY 13348# define LT_DLLAZY_OR_NOW DL_LAZY 13349# else 13350# ifdef RTLD_NOW 13351# define LT_DLLAZY_OR_NOW RTLD_NOW 13352# else 13353# ifdef DL_NOW 13354# define LT_DLLAZY_OR_NOW DL_NOW 13355# else 13356# define LT_DLLAZY_OR_NOW 0 13357# endif 13358# endif 13359# endif 13360# endif 13361#endif 13362 13363/* When -fvisibility=hidden is used, assume the code has been annotated 13364 correspondingly for the symbols needed. */ 13365#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13366int fnord () __attribute__((visibility("default"))); 13367#endif 13368 13369int fnord () { return 42; } 13370int main () 13371{ 13372 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13373 int status = $lt_dlunknown; 13374 13375 if (self) 13376 { 13377 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13378 else 13379 { 13380 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13381 else puts (dlerror ()); 13382 } 13383 /* dlclose (self); */ 13384 } 13385 else 13386 puts (dlerror ()); 13387 13388 return status; 13389} 13390_LT_EOF 13391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13392 (eval $ac_link) 2>&5 13393 ac_status=$? 13394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13395 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13396 (./conftest; exit; ) >&5 2>/dev/null 13397 lt_status=$? 13398 case x$lt_status in 13399 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13400 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13401 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13402 esac 13403 else : 13404 # compilation failed 13405 lt_cv_dlopen_self=no 13406 fi 13407fi 13408rm -fr conftest* 13409 13410 13411fi 13412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13413$as_echo "$lt_cv_dlopen_self" >&6; } 13414 13415 if test yes = "$lt_cv_dlopen_self"; then 13416 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13418$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13419if ${lt_cv_dlopen_self_static+:} false; then : 13420 $as_echo_n "(cached) " >&6 13421else 13422 if test yes = "$cross_compiling"; then : 13423 lt_cv_dlopen_self_static=cross 13424else 13425 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13426 lt_status=$lt_dlunknown 13427 cat > conftest.$ac_ext <<_LT_EOF 13428#line $LINENO "configure" 13429#include "confdefs.h" 13430 13431#if HAVE_DLFCN_H 13432#include <dlfcn.h> 13433#endif 13434 13435#include <stdio.h> 13436 13437#ifdef RTLD_GLOBAL 13438# define LT_DLGLOBAL RTLD_GLOBAL 13439#else 13440# ifdef DL_GLOBAL 13441# define LT_DLGLOBAL DL_GLOBAL 13442# else 13443# define LT_DLGLOBAL 0 13444# endif 13445#endif 13446 13447/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13448 find out it does not work in some platform. */ 13449#ifndef LT_DLLAZY_OR_NOW 13450# ifdef RTLD_LAZY 13451# define LT_DLLAZY_OR_NOW RTLD_LAZY 13452# else 13453# ifdef DL_LAZY 13454# define LT_DLLAZY_OR_NOW DL_LAZY 13455# else 13456# ifdef RTLD_NOW 13457# define LT_DLLAZY_OR_NOW RTLD_NOW 13458# else 13459# ifdef DL_NOW 13460# define LT_DLLAZY_OR_NOW DL_NOW 13461# else 13462# define LT_DLLAZY_OR_NOW 0 13463# endif 13464# endif 13465# endif 13466# endif 13467#endif 13468 13469/* When -fvisibility=hidden is used, assume the code has been annotated 13470 correspondingly for the symbols needed. */ 13471#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13472int fnord () __attribute__((visibility("default"))); 13473#endif 13474 13475int fnord () { return 42; } 13476int main () 13477{ 13478 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13479 int status = $lt_dlunknown; 13480 13481 if (self) 13482 { 13483 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13484 else 13485 { 13486 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13487 else puts (dlerror ()); 13488 } 13489 /* dlclose (self); */ 13490 } 13491 else 13492 puts (dlerror ()); 13493 13494 return status; 13495} 13496_LT_EOF 13497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13498 (eval $ac_link) 2>&5 13499 ac_status=$? 13500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13501 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13502 (./conftest; exit; ) >&5 2>/dev/null 13503 lt_status=$? 13504 case x$lt_status in 13505 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13506 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13507 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13508 esac 13509 else : 13510 # compilation failed 13511 lt_cv_dlopen_self_static=no 13512 fi 13513fi 13514rm -fr conftest* 13515 13516 13517fi 13518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13519$as_echo "$lt_cv_dlopen_self_static" >&6; } 13520 fi 13521 13522 CPPFLAGS=$save_CPPFLAGS 13523 LDFLAGS=$save_LDFLAGS 13524 LIBS=$save_LIBS 13525 ;; 13526 esac 13527 13528 case $lt_cv_dlopen_self in 13529 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13530 *) enable_dlopen_self=unknown ;; 13531 esac 13532 13533 case $lt_cv_dlopen_self_static in 13534 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13535 *) enable_dlopen_self_static=unknown ;; 13536 esac 13537fi 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555striplib= 13556old_striplib= 13557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13558$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13559if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13560 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13561 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13563$as_echo "yes" >&6; } 13564else 13565# FIXME - insert some real tests, host_os isn't really good enough 13566 case $host_os in 13567 darwin*) 13568 if test -n "$STRIP"; then 13569 striplib="$STRIP -x" 13570 old_striplib="$STRIP -S" 13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13572$as_echo "yes" >&6; } 13573 else 13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13575$as_echo "no" >&6; } 13576 fi 13577 ;; 13578 *) 13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13580$as_echo "no" >&6; } 13581 ;; 13582 esac 13583fi 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 # Report what library types will actually be built 13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13598$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13600$as_echo "$can_build_shared" >&6; } 13601 13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13603$as_echo_n "checking whether to build shared libraries... " >&6; } 13604 test no = "$can_build_shared" && enable_shared=no 13605 13606 # On AIX, shared libraries and static libraries use the same namespace, and 13607 # are all built from PIC. 13608 case $host_os in 13609 aix3*) 13610 test yes = "$enable_shared" && enable_static=no 13611 if test -n "$RANLIB"; then 13612 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13613 postinstall_cmds='$RANLIB $lib' 13614 fi 13615 ;; 13616 13617 aix[4-9]*) 13618 if test ia64 != "$host_cpu"; then 13619 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13620 yes,aix,yes) ;; # shared object as lib.so file only 13621 yes,svr4,*) ;; # shared object as lib.so archive member only 13622 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13623 esac 13624 fi 13625 ;; 13626 esac 13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13628$as_echo "$enable_shared" >&6; } 13629 13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13631$as_echo_n "checking whether to build static libraries... " >&6; } 13632 # Make sure either enable_shared or enable_static is yes. 13633 test yes = "$enable_shared" || enable_static=yes 13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13635$as_echo "$enable_static" >&6; } 13636 13637 13638 13639 13640fi 13641ac_ext=cpp 13642ac_cpp='$CXXCPP $CPPFLAGS' 13643ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13644ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13645ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13646 13647CC=$lt_save_CC 13648 13649 if test -n "$CXX" && ( test no != "$CXX" && 13650 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13651 (test g++ != "$CXX"))); then 13652 ac_ext=cpp 13653ac_cpp='$CXXCPP $CPPFLAGS' 13654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13658$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13659if test -z "$CXXCPP"; then 13660 if ${ac_cv_prog_CXXCPP+:} false; then : 13661 $as_echo_n "(cached) " >&6 13662else 13663 # Double quotes because CXXCPP needs to be expanded 13664 for CXXCPP in "$CXX -E" "/lib/cpp" 13665 do 13666 ac_preproc_ok=false 13667for ac_cxx_preproc_warn_flag in '' yes 13668do 13669 # Use a header file that comes with gcc, so configuring glibc 13670 # with a fresh cross-compiler works. 13671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13672 # <limits.h> exists even on freestanding compilers. 13673 # On the NeXT, cc -E runs the code through the compiler's parser, 13674 # not just through cpp. "Syntax error" is here to catch this case. 13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13676/* end confdefs.h. */ 13677#ifdef __STDC__ 13678# include <limits.h> 13679#else 13680# include <assert.h> 13681#endif 13682 Syntax error 13683_ACEOF 13684if ac_fn_cxx_try_cpp "$LINENO"; then : 13685 13686else 13687 # Broken: fails on valid input. 13688continue 13689fi 13690rm -f conftest.err conftest.i conftest.$ac_ext 13691 13692 # OK, works on sane cases. Now check whether nonexistent headers 13693 # can be detected and how. 13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13695/* end confdefs.h. */ 13696#include <ac_nonexistent.h> 13697_ACEOF 13698if ac_fn_cxx_try_cpp "$LINENO"; then : 13699 # Broken: success on invalid input. 13700continue 13701else 13702 # Passes both tests. 13703ac_preproc_ok=: 13704break 13705fi 13706rm -f conftest.err conftest.i conftest.$ac_ext 13707 13708done 13709# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13710rm -f conftest.i conftest.err conftest.$ac_ext 13711if $ac_preproc_ok; then : 13712 break 13713fi 13714 13715 done 13716 ac_cv_prog_CXXCPP=$CXXCPP 13717 13718fi 13719 CXXCPP=$ac_cv_prog_CXXCPP 13720else 13721 ac_cv_prog_CXXCPP=$CXXCPP 13722fi 13723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13724$as_echo "$CXXCPP" >&6; } 13725ac_preproc_ok=false 13726for ac_cxx_preproc_warn_flag in '' yes 13727do 13728 # Use a header file that comes with gcc, so configuring glibc 13729 # with a fresh cross-compiler works. 13730 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13731 # <limits.h> exists even on freestanding compilers. 13732 # On the NeXT, cc -E runs the code through the compiler's parser, 13733 # not just through cpp. "Syntax error" is here to catch this case. 13734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13735/* end confdefs.h. */ 13736#ifdef __STDC__ 13737# include <limits.h> 13738#else 13739# include <assert.h> 13740#endif 13741 Syntax error 13742_ACEOF 13743if ac_fn_cxx_try_cpp "$LINENO"; then : 13744 13745else 13746 # Broken: fails on valid input. 13747continue 13748fi 13749rm -f conftest.err conftest.i conftest.$ac_ext 13750 13751 # OK, works on sane cases. Now check whether nonexistent headers 13752 # can be detected and how. 13753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13754/* end confdefs.h. */ 13755#include <ac_nonexistent.h> 13756_ACEOF 13757if ac_fn_cxx_try_cpp "$LINENO"; then : 13758 # Broken: success on invalid input. 13759continue 13760else 13761 # Passes both tests. 13762ac_preproc_ok=: 13763break 13764fi 13765rm -f conftest.err conftest.i conftest.$ac_ext 13766 13767done 13768# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13769rm -f conftest.i conftest.err conftest.$ac_ext 13770if $ac_preproc_ok; then : 13771 13772else 13773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13775as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13776See \`config.log' for more details" "$LINENO" 5; } 13777fi 13778 13779ac_ext=cpp 13780ac_cpp='$CXXCPP $CPPFLAGS' 13781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13784 13785else 13786 _lt_caught_CXX_error=yes 13787fi 13788 13789ac_ext=cpp 13790ac_cpp='$CXXCPP $CPPFLAGS' 13791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13794 13795archive_cmds_need_lc_CXX=no 13796allow_undefined_flag_CXX= 13797always_export_symbols_CXX=no 13798archive_expsym_cmds_CXX= 13799compiler_needs_object_CXX=no 13800export_dynamic_flag_spec_CXX= 13801hardcode_direct_CXX=no 13802hardcode_direct_absolute_CXX=no 13803hardcode_libdir_flag_spec_CXX= 13804hardcode_libdir_separator_CXX= 13805hardcode_minus_L_CXX=no 13806hardcode_shlibpath_var_CXX=unsupported 13807hardcode_automatic_CXX=no 13808inherit_rpath_CXX=no 13809module_cmds_CXX= 13810module_expsym_cmds_CXX= 13811link_all_deplibs_CXX=unknown 13812old_archive_cmds_CXX=$old_archive_cmds 13813reload_flag_CXX=$reload_flag 13814reload_cmds_CXX=$reload_cmds 13815no_undefined_flag_CXX= 13816whole_archive_flag_spec_CXX= 13817enable_shared_with_static_runtimes_CXX=no 13818 13819# Source file extension for C++ test sources. 13820ac_ext=cpp 13821 13822# Object file extension for compiled C++ test sources. 13823objext=o 13824objext_CXX=$objext 13825 13826# No sense in running all these tests if we already determined that 13827# the CXX compiler isn't working. Some variables (like enable_shared) 13828# are currently assumed to apply to all compilers on this platform, 13829# and will be corrupted by setting them based on a non-working compiler. 13830if test yes != "$_lt_caught_CXX_error"; then 13831 # Code to be used in simple compile tests 13832 lt_simple_compile_test_code="int some_variable = 0;" 13833 13834 # Code to be used in simple link tests 13835 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13836 13837 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13838 13839 13840 13841 13842 13843 13844# If no C compiler was specified, use CC. 13845LTCC=${LTCC-"$CC"} 13846 13847# If no C compiler flags were specified, use CFLAGS. 13848LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13849 13850# Allow CC to be a program name with arguments. 13851compiler=$CC 13852 13853 13854 # save warnings/boilerplate of simple test code 13855 ac_outfile=conftest.$ac_objext 13856echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13857eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13858_lt_compiler_boilerplate=`cat conftest.err` 13859$RM conftest* 13860 13861 ac_outfile=conftest.$ac_objext 13862echo "$lt_simple_link_test_code" >conftest.$ac_ext 13863eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13864_lt_linker_boilerplate=`cat conftest.err` 13865$RM -r conftest* 13866 13867 13868 # Allow CC to be a program name with arguments. 13869 lt_save_CC=$CC 13870 lt_save_CFLAGS=$CFLAGS 13871 lt_save_LD=$LD 13872 lt_save_GCC=$GCC 13873 GCC=$GXX 13874 lt_save_with_gnu_ld=$with_gnu_ld 13875 lt_save_path_LD=$lt_cv_path_LD 13876 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13877 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13878 else 13879 $as_unset lt_cv_prog_gnu_ld 13880 fi 13881 if test -n "${lt_cv_path_LDCXX+set}"; then 13882 lt_cv_path_LD=$lt_cv_path_LDCXX 13883 else 13884 $as_unset lt_cv_path_LD 13885 fi 13886 test -z "${LDCXX+set}" || LD=$LDCXX 13887 CC=${CXX-"c++"} 13888 CFLAGS=$CXXFLAGS 13889 compiler=$CC 13890 compiler_CXX=$CC 13891 func_cc_basename $compiler 13892cc_basename=$func_cc_basename_result 13893 13894 13895 if test -n "$compiler"; then 13896 # We don't want -fno-exception when compiling C++ code, so set the 13897 # no_builtin_flag separately 13898 if test yes = "$GXX"; then 13899 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13900 else 13901 lt_prog_compiler_no_builtin_flag_CXX= 13902 fi 13903 13904 if test yes = "$GXX"; then 13905 # Set up default GNU C++ configuration 13906 13907 13908 13909# Check whether --with-gnu-ld was given. 13910if test "${with_gnu_ld+set}" = set; then : 13911 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13912else 13913 with_gnu_ld=no 13914fi 13915 13916ac_prog=ld 13917if test yes = "$GCC"; then 13918 # Check if gcc -print-prog-name=ld gives a path. 13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13920$as_echo_n "checking for ld used by $CC... " >&6; } 13921 case $host in 13922 *-*-mingw*) 13923 # gcc leaves a trailing carriage return, which upsets mingw 13924 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13925 *) 13926 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13927 esac 13928 case $ac_prog in 13929 # Accept absolute paths. 13930 [\\/]* | ?:[\\/]*) 13931 re_direlt='/[^/][^/]*/\.\./' 13932 # Canonicalize the pathname of ld 13933 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13934 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13935 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13936 done 13937 test -z "$LD" && LD=$ac_prog 13938 ;; 13939 "") 13940 # If it fails, then pretend we aren't using GCC. 13941 ac_prog=ld 13942 ;; 13943 *) 13944 # If it is relative, then search for the first ld in PATH. 13945 with_gnu_ld=unknown 13946 ;; 13947 esac 13948elif test yes = "$with_gnu_ld"; then 13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13950$as_echo_n "checking for GNU ld... " >&6; } 13951else 13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13953$as_echo_n "checking for non-GNU ld... " >&6; } 13954fi 13955if ${lt_cv_path_LD+:} false; then : 13956 $as_echo_n "(cached) " >&6 13957else 13958 if test -z "$LD"; then 13959 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13960 for ac_dir in $PATH; do 13961 IFS=$lt_save_ifs 13962 test -z "$ac_dir" && ac_dir=. 13963 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13964 lt_cv_path_LD=$ac_dir/$ac_prog 13965 # Check to see if the program is GNU ld. I'd rather use --version, 13966 # but apparently some variants of GNU ld only accept -v. 13967 # Break only if it was the GNU/non-GNU ld that we prefer. 13968 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13969 *GNU* | *'with BFD'*) 13970 test no != "$with_gnu_ld" && break 13971 ;; 13972 *) 13973 test yes != "$with_gnu_ld" && break 13974 ;; 13975 esac 13976 fi 13977 done 13978 IFS=$lt_save_ifs 13979else 13980 lt_cv_path_LD=$LD # Let the user override the test with a path. 13981fi 13982fi 13983 13984LD=$lt_cv_path_LD 13985if test -n "$LD"; then 13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13987$as_echo "$LD" >&6; } 13988else 13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13990$as_echo "no" >&6; } 13991fi 13992test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13994$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13995if ${lt_cv_prog_gnu_ld+:} false; then : 13996 $as_echo_n "(cached) " >&6 13997else 13998 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13999case `$LD -v 2>&1 </dev/null` in 14000*GNU* | *'with BFD'*) 14001 lt_cv_prog_gnu_ld=yes 14002 ;; 14003*) 14004 lt_cv_prog_gnu_ld=no 14005 ;; 14006esac 14007fi 14008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14009$as_echo "$lt_cv_prog_gnu_ld" >&6; } 14010with_gnu_ld=$lt_cv_prog_gnu_ld 14011 14012 14013 14014 14015 14016 14017 14018 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14019 # archiving commands below assume that GNU ld is being used. 14020 if test yes = "$with_gnu_ld"; then 14021 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14022 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' 14023 14024 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14025 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14026 14027 # If archive_cmds runs LD, not CC, wlarc should be empty 14028 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14029 # investigate it a little bit more. (MM) 14030 wlarc='$wl' 14031 14032 # ancient GNU ld didn't support --whole-archive et. al. 14033 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 14034 $GREP 'no-whole-archive' > /dev/null; then 14035 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14036 else 14037 whole_archive_flag_spec_CXX= 14038 fi 14039 else 14040 with_gnu_ld=no 14041 wlarc= 14042 14043 # A generic and very simple default shared library creation 14044 # command for GNU C++ for the case where it uses the native 14045 # linker, instead of GNU ld. If possible, this setting should 14046 # overridden to take advantage of the native linker features on 14047 # the platform it is being used on. 14048 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14049 fi 14050 14051 # Commands to make compiler produce verbose output that lists 14052 # what "hidden" libraries, object files and flags are used when 14053 # linking a shared library. 14054 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 14055 14056 else 14057 GXX=no 14058 with_gnu_ld=no 14059 wlarc= 14060 fi 14061 14062 # PORTME: fill in a description of your system's C++ link characteristics 14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14064$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14065 ld_shlibs_CXX=yes 14066 case $host_os in 14067 aix3*) 14068 # FIXME: insert proper C++ library support 14069 ld_shlibs_CXX=no 14070 ;; 14071 aix[4-9]*) 14072 if test ia64 = "$host_cpu"; then 14073 # On IA64, the linker does run time linking by default, so we don't 14074 # have to do anything special. 14075 aix_use_runtimelinking=no 14076 exp_sym_flag='-Bexport' 14077 no_entry_flag= 14078 else 14079 aix_use_runtimelinking=no 14080 14081 # Test if we are trying to use run time linking or normal 14082 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14083 # have runtime linking enabled, and use it for executables. 14084 # For shared libraries, we enable/disable runtime linking 14085 # depending on the kind of the shared library created - 14086 # when "with_aix_soname,aix_use_runtimelinking" is: 14087 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14088 # "aix,yes" lib.so shared, rtl:yes, for executables 14089 # lib.a static archive 14090 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14091 # lib.a(lib.so.V) shared, rtl:no, for executables 14092 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14093 # lib.a(lib.so.V) shared, rtl:no 14094 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14095 # lib.a static archive 14096 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14097 for ld_flag in $LDFLAGS; do 14098 case $ld_flag in 14099 *-brtl*) 14100 aix_use_runtimelinking=yes 14101 break 14102 ;; 14103 esac 14104 done 14105 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14106 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14107 # so we don't have lib.a shared libs to link our executables. 14108 # We have to force runtime linking in this case. 14109 aix_use_runtimelinking=yes 14110 LDFLAGS="$LDFLAGS -Wl,-brtl" 14111 fi 14112 ;; 14113 esac 14114 14115 exp_sym_flag='-bexport' 14116 no_entry_flag='-bnoentry' 14117 fi 14118 14119 # When large executables or shared objects are built, AIX ld can 14120 # have problems creating the table of contents. If linking a library 14121 # or program results in "error TOC overflow" add -mminimal-toc to 14122 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14123 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14124 14125 archive_cmds_CXX='' 14126 hardcode_direct_CXX=yes 14127 hardcode_direct_absolute_CXX=yes 14128 hardcode_libdir_separator_CXX=':' 14129 link_all_deplibs_CXX=yes 14130 file_list_spec_CXX='$wl-f,' 14131 case $with_aix_soname,$aix_use_runtimelinking in 14132 aix,*) ;; # no import file 14133 svr4,* | *,yes) # use import file 14134 # The Import File defines what to hardcode. 14135 hardcode_direct_CXX=no 14136 hardcode_direct_absolute_CXX=no 14137 ;; 14138 esac 14139 14140 if test yes = "$GXX"; then 14141 case $host_os in aix4.[012]|aix4.[012].*) 14142 # We only want to do this on AIX 4.2 and lower, the check 14143 # below for broken collect2 doesn't work under 4.3+ 14144 collect2name=`$CC -print-prog-name=collect2` 14145 if test -f "$collect2name" && 14146 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14147 then 14148 # We have reworked collect2 14149 : 14150 else 14151 # We have old collect2 14152 hardcode_direct_CXX=unsupported 14153 # It fails to find uninstalled libraries when the uninstalled 14154 # path is not listed in the libpath. Setting hardcode_minus_L 14155 # to unsupported forces relinking 14156 hardcode_minus_L_CXX=yes 14157 hardcode_libdir_flag_spec_CXX='-L$libdir' 14158 hardcode_libdir_separator_CXX= 14159 fi 14160 esac 14161 shared_flag='-shared' 14162 if test yes = "$aix_use_runtimelinking"; then 14163 shared_flag=$shared_flag' $wl-G' 14164 fi 14165 # Need to ensure runtime linking is disabled for the traditional 14166 # shared library, or the linker may eventually find shared libraries 14167 # /with/ Import File - we do not want to mix them. 14168 shared_flag_aix='-shared' 14169 shared_flag_svr4='-shared $wl-G' 14170 else 14171 # not using gcc 14172 if test ia64 = "$host_cpu"; then 14173 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14174 # chokes on -Wl,-G. The following line is correct: 14175 shared_flag='-G' 14176 else 14177 if test yes = "$aix_use_runtimelinking"; then 14178 shared_flag='$wl-G' 14179 else 14180 shared_flag='$wl-bM:SRE' 14181 fi 14182 shared_flag_aix='$wl-bM:SRE' 14183 shared_flag_svr4='$wl-G' 14184 fi 14185 fi 14186 14187 export_dynamic_flag_spec_CXX='$wl-bexpall' 14188 # It seems that -bexpall does not export symbols beginning with 14189 # underscore (_), so it is better to generate a list of symbols to 14190 # export. 14191 always_export_symbols_CXX=yes 14192 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14193 # Warning - without using the other runtime loading flags (-brtl), 14194 # -berok will link without error, but may produce a broken library. 14195 # The "-G" linker flag allows undefined symbols. 14196 no_undefined_flag_CXX='-bernotok' 14197 # Determine the default libpath from the value encoded in an empty 14198 # executable. 14199 if test set = "${lt_cv_aix_libpath+set}"; then 14200 aix_libpath=$lt_cv_aix_libpath 14201else 14202 if ${lt_cv_aix_libpath__CXX+:} false; then : 14203 $as_echo_n "(cached) " >&6 14204else 14205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14206/* end confdefs.h. */ 14207 14208int 14209main () 14210{ 14211 14212 ; 14213 return 0; 14214} 14215_ACEOF 14216if ac_fn_cxx_try_link "$LINENO"; then : 14217 14218 lt_aix_libpath_sed=' 14219 /Import File Strings/,/^$/ { 14220 /^0/ { 14221 s/^0 *\([^ ]*\) *$/\1/ 14222 p 14223 } 14224 }' 14225 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14226 # Check for a 64-bit object if we didn't find anything. 14227 if test -z "$lt_cv_aix_libpath__CXX"; then 14228 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14229 fi 14230fi 14231rm -f core conftest.err conftest.$ac_objext \ 14232 conftest$ac_exeext conftest.$ac_ext 14233 if test -z "$lt_cv_aix_libpath__CXX"; then 14234 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14235 fi 14236 14237fi 14238 14239 aix_libpath=$lt_cv_aix_libpath__CXX 14240fi 14241 14242 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14243 14244 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 14245 else 14246 if test ia64 = "$host_cpu"; then 14247 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14248 allow_undefined_flag_CXX="-z nodefs" 14249 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" 14250 else 14251 # Determine the default libpath from the value encoded in an 14252 # empty executable. 14253 if test set = "${lt_cv_aix_libpath+set}"; then 14254 aix_libpath=$lt_cv_aix_libpath 14255else 14256 if ${lt_cv_aix_libpath__CXX+:} false; then : 14257 $as_echo_n "(cached) " >&6 14258else 14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14260/* end confdefs.h. */ 14261 14262int 14263main () 14264{ 14265 14266 ; 14267 return 0; 14268} 14269_ACEOF 14270if ac_fn_cxx_try_link "$LINENO"; then : 14271 14272 lt_aix_libpath_sed=' 14273 /Import File Strings/,/^$/ { 14274 /^0/ { 14275 s/^0 *\([^ ]*\) *$/\1/ 14276 p 14277 } 14278 }' 14279 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14280 # Check for a 64-bit object if we didn't find anything. 14281 if test -z "$lt_cv_aix_libpath__CXX"; then 14282 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14283 fi 14284fi 14285rm -f core conftest.err conftest.$ac_objext \ 14286 conftest$ac_exeext conftest.$ac_ext 14287 if test -z "$lt_cv_aix_libpath__CXX"; then 14288 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14289 fi 14290 14291fi 14292 14293 aix_libpath=$lt_cv_aix_libpath__CXX 14294fi 14295 14296 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14297 # Warning - without using the other run time loading flags, 14298 # -berok will link without error, but may produce a broken library. 14299 no_undefined_flag_CXX=' $wl-bernotok' 14300 allow_undefined_flag_CXX=' $wl-berok' 14301 if test yes = "$with_gnu_ld"; then 14302 # We only use this code for GNU lds that support --whole-archive. 14303 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14304 else 14305 # Exported symbols can be pulled into shared objects from archives 14306 whole_archive_flag_spec_CXX='$convenience' 14307 fi 14308 archive_cmds_need_lc_CXX=yes 14309 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14310 # -brtl affects multiple linker settings, -berok does not and is overridden later 14311 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14312 if test svr4 != "$with_aix_soname"; then 14313 # This is similar to how AIX traditionally builds its shared 14314 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14315 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' 14316 fi 14317 if test aix != "$with_aix_soname"; then 14318 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' 14319 else 14320 # used by -dlpreopen to get the symbols 14321 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14322 fi 14323 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14324 fi 14325 fi 14326 ;; 14327 14328 beos*) 14329 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14330 allow_undefined_flag_CXX=unsupported 14331 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14332 # support --undefined. This deserves some investigation. FIXME 14333 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14334 else 14335 ld_shlibs_CXX=no 14336 fi 14337 ;; 14338 14339 chorus*) 14340 case $cc_basename in 14341 *) 14342 # FIXME: insert proper C++ library support 14343 ld_shlibs_CXX=no 14344 ;; 14345 esac 14346 ;; 14347 14348 cygwin* | mingw* | pw32* | cegcc*) 14349 case $GXX,$cc_basename in 14350 ,cl* | no,cl*) 14351 # Native MSVC 14352 # hardcode_libdir_flag_spec is actually meaningless, as there is 14353 # no search path for DLLs. 14354 hardcode_libdir_flag_spec_CXX=' ' 14355 allow_undefined_flag_CXX=unsupported 14356 always_export_symbols_CXX=yes 14357 file_list_spec_CXX='@' 14358 # Tell ltmain to make .lib files, not .a files. 14359 libext=lib 14360 # Tell ltmain to make .dll files, not .so files. 14361 shrext_cmds=.dll 14362 # FIXME: Setting linknames here is a bad hack. 14363 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14364 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14365 cp "$export_symbols" "$output_objdir/$soname.def"; 14366 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14367 else 14368 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14369 fi~ 14370 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14371 linknames=' 14372 # The linker will not automatically build a static lib if we build a DLL. 14373 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14374 enable_shared_with_static_runtimes_CXX=yes 14375 # Don't use ranlib 14376 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14377 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14378 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14379 case $lt_outputfile in 14380 *.exe|*.EXE) ;; 14381 *) 14382 lt_outputfile=$lt_outputfile.exe 14383 lt_tool_outputfile=$lt_tool_outputfile.exe 14384 ;; 14385 esac~ 14386 func_to_tool_file "$lt_outputfile"~ 14387 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14388 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14389 $RM "$lt_outputfile.manifest"; 14390 fi' 14391 ;; 14392 *) 14393 # g++ 14394 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14395 # as there is no search path for DLLs. 14396 hardcode_libdir_flag_spec_CXX='-L$libdir' 14397 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14398 allow_undefined_flag_CXX=unsupported 14399 always_export_symbols_CXX=no 14400 enable_shared_with_static_runtimes_CXX=yes 14401 14402 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14403 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' 14404 # If the export-symbols file already is a .def file, use it as 14405 # is; otherwise, prepend EXPORTS... 14406 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14407 cp $export_symbols $output_objdir/$soname.def; 14408 else 14409 echo EXPORTS > $output_objdir/$soname.def; 14410 cat $export_symbols >> $output_objdir/$soname.def; 14411 fi~ 14412 $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' 14413 else 14414 ld_shlibs_CXX=no 14415 fi 14416 ;; 14417 esac 14418 ;; 14419 darwin* | rhapsody*) 14420 14421 14422 archive_cmds_need_lc_CXX=no 14423 hardcode_direct_CXX=no 14424 hardcode_automatic_CXX=yes 14425 hardcode_shlibpath_var_CXX=unsupported 14426 if test yes = "$lt_cv_ld_force_load"; then 14427 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\"`' 14428 14429 else 14430 whole_archive_flag_spec_CXX='' 14431 fi 14432 link_all_deplibs_CXX=yes 14433 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14434 case $cc_basename in 14435 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14436 *) _lt_dar_can_shared=$GCC ;; 14437 esac 14438 if test yes = "$_lt_dar_can_shared"; then 14439 output_verbose_link_cmd=func_echo_all 14440 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" 14441 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14442 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" 14443 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" 14444 if test yes != "$lt_cv_apple_cc_single_mod"; then 14445 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" 14446 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" 14447 fi 14448 14449 else 14450 ld_shlibs_CXX=no 14451 fi 14452 14453 ;; 14454 14455 os2*) 14456 hardcode_libdir_flag_spec_CXX='-L$libdir' 14457 hardcode_minus_L_CXX=yes 14458 allow_undefined_flag_CXX=unsupported 14459 shrext_cmds=.dll 14460 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14461 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14462 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14463 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14464 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14465 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14466 emximp -o $lib $output_objdir/$libname.def' 14467 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14468 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14469 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14470 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14471 prefix_cmds="$SED"~ 14472 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14473 prefix_cmds="$prefix_cmds -e 1d"; 14474 fi~ 14475 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14476 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14477 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14478 emximp -o $lib $output_objdir/$libname.def' 14479 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14480 enable_shared_with_static_runtimes_CXX=yes 14481 ;; 14482 14483 dgux*) 14484 case $cc_basename in 14485 ec++*) 14486 # FIXME: insert proper C++ library support 14487 ld_shlibs_CXX=no 14488 ;; 14489 ghcx*) 14490 # Green Hills C++ Compiler 14491 # FIXME: insert proper C++ library support 14492 ld_shlibs_CXX=no 14493 ;; 14494 *) 14495 # FIXME: insert proper C++ library support 14496 ld_shlibs_CXX=no 14497 ;; 14498 esac 14499 ;; 14500 14501 freebsd2.*) 14502 # C++ shared libraries reported to be fairly broken before 14503 # switch to ELF 14504 ld_shlibs_CXX=no 14505 ;; 14506 14507 freebsd-elf*) 14508 archive_cmds_need_lc_CXX=no 14509 ;; 14510 14511 freebsd* | dragonfly*) 14512 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14513 # conventions 14514 ld_shlibs_CXX=yes 14515 ;; 14516 14517 haiku*) 14518 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14519 link_all_deplibs_CXX=yes 14520 ;; 14521 14522 hpux9*) 14523 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14524 hardcode_libdir_separator_CXX=: 14525 export_dynamic_flag_spec_CXX='$wl-E' 14526 hardcode_direct_CXX=yes 14527 hardcode_minus_L_CXX=yes # Not in the search PATH, 14528 # but as the default 14529 # location of the library. 14530 14531 case $cc_basename in 14532 CC*) 14533 # FIXME: insert proper C++ library support 14534 ld_shlibs_CXX=no 14535 ;; 14536 aCC*) 14537 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' 14538 # Commands to make compiler produce verbose output that lists 14539 # what "hidden" libraries, object files and flags are used when 14540 # linking a shared library. 14541 # 14542 # There doesn't appear to be a way to prevent this compiler from 14543 # explicitly linking system object files so we need to strip them 14544 # from the output so that they don't get included in the library 14545 # dependencies. 14546 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"' 14547 ;; 14548 *) 14549 if test yes = "$GXX"; then 14550 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' 14551 else 14552 # FIXME: insert proper C++ library support 14553 ld_shlibs_CXX=no 14554 fi 14555 ;; 14556 esac 14557 ;; 14558 14559 hpux10*|hpux11*) 14560 if test no = "$with_gnu_ld"; then 14561 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14562 hardcode_libdir_separator_CXX=: 14563 14564 case $host_cpu in 14565 hppa*64*|ia64*) 14566 ;; 14567 *) 14568 export_dynamic_flag_spec_CXX='$wl-E' 14569 ;; 14570 esac 14571 fi 14572 case $host_cpu in 14573 hppa*64*|ia64*) 14574 hardcode_direct_CXX=no 14575 hardcode_shlibpath_var_CXX=no 14576 ;; 14577 *) 14578 hardcode_direct_CXX=yes 14579 hardcode_direct_absolute_CXX=yes 14580 hardcode_minus_L_CXX=yes # Not in the search PATH, 14581 # but as the default 14582 # location of the library. 14583 ;; 14584 esac 14585 14586 case $cc_basename in 14587 CC*) 14588 # FIXME: insert proper C++ library support 14589 ld_shlibs_CXX=no 14590 ;; 14591 aCC*) 14592 case $host_cpu in 14593 hppa*64*) 14594 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14595 ;; 14596 ia64*) 14597 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14598 ;; 14599 *) 14600 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14601 ;; 14602 esac 14603 # Commands to make compiler produce verbose output that lists 14604 # what "hidden" libraries, object files and flags are used when 14605 # linking a shared library. 14606 # 14607 # There doesn't appear to be a way to prevent this compiler from 14608 # explicitly linking system object files so we need to strip them 14609 # from the output so that they don't get included in the library 14610 # dependencies. 14611 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"' 14612 ;; 14613 *) 14614 if test yes = "$GXX"; then 14615 if test no = "$with_gnu_ld"; then 14616 case $host_cpu in 14617 hppa*64*) 14618 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14619 ;; 14620 ia64*) 14621 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14622 ;; 14623 *) 14624 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' 14625 ;; 14626 esac 14627 fi 14628 else 14629 # FIXME: insert proper C++ library support 14630 ld_shlibs_CXX=no 14631 fi 14632 ;; 14633 esac 14634 ;; 14635 14636 interix[3-9]*) 14637 hardcode_direct_CXX=no 14638 hardcode_shlibpath_var_CXX=no 14639 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14640 export_dynamic_flag_spec_CXX='$wl-E' 14641 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14642 # Instead, shared libraries are loaded at an image base (0x10000000 by 14643 # default) and relocated if they conflict, which is a slow very memory 14644 # consuming and fragmenting process. To avoid this, we pick a random, 14645 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14646 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14647 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' 14648 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' 14649 ;; 14650 irix5* | irix6*) 14651 case $cc_basename in 14652 CC*) 14653 # SGI C++ 14654 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' 14655 14656 # Archives containing C++ object files must be created using 14657 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14658 # necessary to make sure instantiated templates are included 14659 # in the archive. 14660 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14661 ;; 14662 *) 14663 if test yes = "$GXX"; then 14664 if test no = "$with_gnu_ld"; then 14665 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' 14666 else 14667 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' 14668 fi 14669 fi 14670 link_all_deplibs_CXX=yes 14671 ;; 14672 esac 14673 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14674 hardcode_libdir_separator_CXX=: 14675 inherit_rpath_CXX=yes 14676 ;; 14677 14678 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14679 case $cc_basename in 14680 KCC*) 14681 # Kuck and Associates, Inc. (KAI) C++ Compiler 14682 14683 # KCC will only create a shared library if the output file 14684 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14685 # to its proper name (with version) after linking. 14686 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' 14687 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' 14688 # Commands to make compiler produce verbose output that lists 14689 # what "hidden" libraries, object files and flags are used when 14690 # linking a shared library. 14691 # 14692 # There doesn't appear to be a way to prevent this compiler from 14693 # explicitly linking system object files so we need to strip them 14694 # from the output so that they don't get included in the library 14695 # dependencies. 14696 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"' 14697 14698 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14699 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14700 14701 # Archives containing C++ object files must be created using 14702 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14703 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14704 ;; 14705 icpc* | ecpc* ) 14706 # Intel C++ 14707 with_gnu_ld=yes 14708 # version 8.0 and above of icpc choke on multiply defined symbols 14709 # if we add $predep_objects and $postdep_objects, however 7.1 and 14710 # earlier do not add the objects themselves. 14711 case `$CC -V 2>&1` in 14712 *"Version 7."*) 14713 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14714 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' 14715 ;; 14716 *) # Version 8.0 or newer 14717 tmp_idyn= 14718 case $host_cpu in 14719 ia64*) tmp_idyn=' -i_dynamic';; 14720 esac 14721 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14722 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' 14723 ;; 14724 esac 14725 archive_cmds_need_lc_CXX=no 14726 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14727 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14728 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14729 ;; 14730 pgCC* | pgcpp*) 14731 # Portland Group C++ compiler 14732 case `$CC -V` in 14733 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14734 prelink_cmds_CXX='tpldir=Template.dir~ 14735 rm -rf $tpldir~ 14736 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14737 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14738 old_archive_cmds_CXX='tpldir=Template.dir~ 14739 rm -rf $tpldir~ 14740 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14741 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14742 $RANLIB $oldlib' 14743 archive_cmds_CXX='tpldir=Template.dir~ 14744 rm -rf $tpldir~ 14745 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14746 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14747 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14748 rm -rf $tpldir~ 14749 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14750 $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' 14751 ;; 14752 *) # Version 6 and above use weak symbols 14753 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14754 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' 14755 ;; 14756 esac 14757 14758 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14759 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14760 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' 14761 ;; 14762 cxx*) 14763 # Compaq C++ 14764 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14765 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' 14766 14767 runpath_var=LD_RUN_PATH 14768 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14769 hardcode_libdir_separator_CXX=: 14770 14771 # Commands to make compiler produce verbose output that lists 14772 # what "hidden" libraries, object files and flags are used when 14773 # linking a shared library. 14774 # 14775 # There doesn't appear to be a way to prevent this compiler from 14776 # explicitly linking system object files so we need to strip them 14777 # from the output so that they don't get included in the library 14778 # dependencies. 14779 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' 14780 ;; 14781 xl* | mpixl* | bgxl*) 14782 # IBM XL 8.0 on PPC, with GNU ld 14783 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14784 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14785 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14786 if test yes = "$supports_anon_versioning"; then 14787 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14788 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14789 echo "local: *; };" >> $output_objdir/$libname.ver~ 14790 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14791 fi 14792 ;; 14793 *) 14794 case `$CC -V 2>&1 | sed 5q` in 14795 *Sun\ C*) 14796 # Sun C++ 5.9 14797 no_undefined_flag_CXX=' -zdefs' 14798 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14799 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' 14800 hardcode_libdir_flag_spec_CXX='-R$libdir' 14801 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' 14802 compiler_needs_object_CXX=yes 14803 14804 # Not sure whether something based on 14805 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14806 # would be better. 14807 output_verbose_link_cmd='func_echo_all' 14808 14809 # Archives containing C++ object files must be created using 14810 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14811 # necessary to make sure instantiated templates are included 14812 # in the archive. 14813 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14814 ;; 14815 esac 14816 ;; 14817 esac 14818 ;; 14819 14820 lynxos*) 14821 # FIXME: insert proper C++ library support 14822 ld_shlibs_CXX=no 14823 ;; 14824 14825 m88k*) 14826 # FIXME: insert proper C++ library support 14827 ld_shlibs_CXX=no 14828 ;; 14829 14830 mvs*) 14831 case $cc_basename in 14832 cxx*) 14833 # FIXME: insert proper C++ library support 14834 ld_shlibs_CXX=no 14835 ;; 14836 *) 14837 # FIXME: insert proper C++ library support 14838 ld_shlibs_CXX=no 14839 ;; 14840 esac 14841 ;; 14842 14843 netbsd*) 14844 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14845 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14846 wlarc= 14847 hardcode_libdir_flag_spec_CXX='-R$libdir' 14848 hardcode_direct_CXX=yes 14849 hardcode_shlibpath_var_CXX=no 14850 fi 14851 # Workaround some broken pre-1.5 toolchains 14852 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14853 ;; 14854 14855 *nto* | *qnx*) 14856 ld_shlibs_CXX=yes 14857 ;; 14858 14859 openbsd* | bitrig*) 14860 if test -f /usr/libexec/ld.so; then 14861 hardcode_direct_CXX=yes 14862 hardcode_shlibpath_var_CXX=no 14863 hardcode_direct_absolute_CXX=yes 14864 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14865 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14866 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14867 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14868 export_dynamic_flag_spec_CXX='$wl-E' 14869 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14870 fi 14871 output_verbose_link_cmd=func_echo_all 14872 else 14873 ld_shlibs_CXX=no 14874 fi 14875 ;; 14876 14877 osf3* | osf4* | osf5*) 14878 case $cc_basename in 14879 KCC*) 14880 # Kuck and Associates, Inc. (KAI) C++ Compiler 14881 14882 # KCC will only create a shared library if the output file 14883 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14884 # to its proper name (with version) after linking. 14885 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' 14886 14887 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14888 hardcode_libdir_separator_CXX=: 14889 14890 # Archives containing C++ object files must be created using 14891 # the KAI C++ compiler. 14892 case $host in 14893 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14894 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14895 esac 14896 ;; 14897 RCC*) 14898 # Rational C++ 2.4.1 14899 # FIXME: insert proper C++ library support 14900 ld_shlibs_CXX=no 14901 ;; 14902 cxx*) 14903 case $host in 14904 osf3*) 14905 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14906 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' 14907 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14908 ;; 14909 *) 14910 allow_undefined_flag_CXX=' -expect_unresolved \*' 14911 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' 14912 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14913 echo "-hidden">> $lib.exp~ 14914 $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~ 14915 $RM $lib.exp' 14916 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14917 ;; 14918 esac 14919 14920 hardcode_libdir_separator_CXX=: 14921 14922 # Commands to make compiler produce verbose output that lists 14923 # what "hidden" libraries, object files and flags are used when 14924 # linking a shared library. 14925 # 14926 # There doesn't appear to be a way to prevent this compiler from 14927 # explicitly linking system object files so we need to strip them 14928 # from the output so that they don't get included in the library 14929 # dependencies. 14930 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"' 14931 ;; 14932 *) 14933 if test yes,no = "$GXX,$with_gnu_ld"; then 14934 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14935 case $host in 14936 osf3*) 14937 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' 14938 ;; 14939 *) 14940 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' 14941 ;; 14942 esac 14943 14944 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14945 hardcode_libdir_separator_CXX=: 14946 14947 # Commands to make compiler produce verbose output that lists 14948 # what "hidden" libraries, object files and flags are used when 14949 # linking a shared library. 14950 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 14951 14952 else 14953 # FIXME: insert proper C++ library support 14954 ld_shlibs_CXX=no 14955 fi 14956 ;; 14957 esac 14958 ;; 14959 14960 psos*) 14961 # FIXME: insert proper C++ library support 14962 ld_shlibs_CXX=no 14963 ;; 14964 14965 sunos4*) 14966 case $cc_basename in 14967 CC*) 14968 # Sun C++ 4.x 14969 # FIXME: insert proper C++ library support 14970 ld_shlibs_CXX=no 14971 ;; 14972 lcc*) 14973 # Lucid 14974 # FIXME: insert proper C++ library support 14975 ld_shlibs_CXX=no 14976 ;; 14977 *) 14978 # FIXME: insert proper C++ library support 14979 ld_shlibs_CXX=no 14980 ;; 14981 esac 14982 ;; 14983 14984 solaris*) 14985 case $cc_basename in 14986 CC* | sunCC*) 14987 # Sun C++ 4.2, 5.x and Centerline C++ 14988 archive_cmds_need_lc_CXX=yes 14989 no_undefined_flag_CXX=' -zdefs' 14990 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14991 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14992 $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' 14993 14994 hardcode_libdir_flag_spec_CXX='-R$libdir' 14995 hardcode_shlibpath_var_CXX=no 14996 case $host_os in 14997 solaris2.[0-5] | solaris2.[0-5].*) ;; 14998 *) 14999 # The compiler driver will combine and reorder linker options, 15000 # but understands '-z linker_flag'. 15001 # Supported since Solaris 2.6 (maybe 2.5.1?) 15002 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15003 ;; 15004 esac 15005 link_all_deplibs_CXX=yes 15006 15007 output_verbose_link_cmd='func_echo_all' 15008 15009 # Archives containing C++ object files must be created using 15010 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15011 # necessary to make sure instantiated templates are included 15012 # in the archive. 15013 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15014 ;; 15015 gcx*) 15016 # Green Hills C++ Compiler 15017 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15018 15019 # The C++ compiler must be used to create the archive. 15020 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15021 ;; 15022 *) 15023 # GNU C++ compiler with Solaris linker 15024 if test yes,no = "$GXX,$with_gnu_ld"; then 15025 no_undefined_flag_CXX=' $wl-z ${wl}defs' 15026 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15027 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15028 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15029 $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' 15030 15031 # Commands to make compiler produce verbose output that lists 15032 # what "hidden" libraries, object files and flags are used when 15033 # linking a shared library. 15034 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 15035 else 15036 # g++ 2.7 appears to require '-G' NOT '-shared' on this 15037 # platform. 15038 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15039 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15040 $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' 15041 15042 # Commands to make compiler produce verbose output that lists 15043 # what "hidden" libraries, object files and flags are used when 15044 # linking a shared library. 15045 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 15046 fi 15047 15048 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 15049 case $host_os in 15050 solaris2.[0-5] | solaris2.[0-5].*) ;; 15051 *) 15052 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15053 ;; 15054 esac 15055 fi 15056 ;; 15057 esac 15058 ;; 15059 15060 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15061 no_undefined_flag_CXX='$wl-z,text' 15062 archive_cmds_need_lc_CXX=no 15063 hardcode_shlibpath_var_CXX=no 15064 runpath_var='LD_RUN_PATH' 15065 15066 case $cc_basename in 15067 CC*) 15068 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15069 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15070 ;; 15071 *) 15072 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15073 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15074 ;; 15075 esac 15076 ;; 15077 15078 sysv5* | sco3.2v5* | sco5v6*) 15079 # Note: We CANNOT use -z defs as we might desire, because we do not 15080 # link with -lc, and that would cause any symbols used from libc to 15081 # always be unresolved, which means just about no library would 15082 # ever link correctly. If we're not using GNU ld we use -z text 15083 # though, which does catch some bad symbols but isn't as heavy-handed 15084 # as -z defs. 15085 no_undefined_flag_CXX='$wl-z,text' 15086 allow_undefined_flag_CXX='$wl-z,nodefs' 15087 archive_cmds_need_lc_CXX=no 15088 hardcode_shlibpath_var_CXX=no 15089 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 15090 hardcode_libdir_separator_CXX=':' 15091 link_all_deplibs_CXX=yes 15092 export_dynamic_flag_spec_CXX='$wl-Bexport' 15093 runpath_var='LD_RUN_PATH' 15094 15095 case $cc_basename in 15096 CC*) 15097 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15098 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15099 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15100 '"$old_archive_cmds_CXX" 15101 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15102 '"$reload_cmds_CXX" 15103 ;; 15104 *) 15105 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15106 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15107 ;; 15108 esac 15109 ;; 15110 15111 tandem*) 15112 case $cc_basename in 15113 NCC*) 15114 # NonStop-UX NCC 3.20 15115 # FIXME: insert proper C++ library support 15116 ld_shlibs_CXX=no 15117 ;; 15118 *) 15119 # FIXME: insert proper C++ library support 15120 ld_shlibs_CXX=no 15121 ;; 15122 esac 15123 ;; 15124 15125 vxworks*) 15126 # FIXME: insert proper C++ library support 15127 ld_shlibs_CXX=no 15128 ;; 15129 15130 *) 15131 # FIXME: insert proper C++ library support 15132 ld_shlibs_CXX=no 15133 ;; 15134 esac 15135 15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15137$as_echo "$ld_shlibs_CXX" >&6; } 15138 test no = "$ld_shlibs_CXX" && can_build_shared=no 15139 15140 GCC_CXX=$GXX 15141 LD_CXX=$LD 15142 15143 ## CAVEAT EMPTOR: 15144 ## There is no encapsulation within the following macros, do not change 15145 ## the running order or otherwise move them around unless you know exactly 15146 ## what you are doing... 15147 # Dependencies to place before and after the object being linked: 15148predep_objects_CXX= 15149postdep_objects_CXX= 15150predeps_CXX= 15151postdeps_CXX= 15152compiler_lib_search_path_CXX= 15153 15154cat > conftest.$ac_ext <<_LT_EOF 15155class Foo 15156{ 15157public: 15158 Foo (void) { a = 0; } 15159private: 15160 int a; 15161}; 15162_LT_EOF 15163 15164 15165_lt_libdeps_save_CFLAGS=$CFLAGS 15166case "$CC $CFLAGS " in #( 15167*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15168*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15169*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15170esac 15171 15172if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15173 (eval $ac_compile) 2>&5 15174 ac_status=$? 15175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15176 test $ac_status = 0; }; then 15177 # Parse the compiler output and extract the necessary 15178 # objects, libraries and library flags. 15179 15180 # Sentinel used to keep track of whether or not we are before 15181 # the conftest object file. 15182 pre_test_object_deps_done=no 15183 15184 for p in `eval "$output_verbose_link_cmd"`; do 15185 case $prev$p in 15186 15187 -L* | -R* | -l*) 15188 # Some compilers place space between "-{L,R}" and the path. 15189 # Remove the space. 15190 if test x-L = "$p" || 15191 test x-R = "$p"; then 15192 prev=$p 15193 continue 15194 fi 15195 15196 # Expand the sysroot to ease extracting the directories later. 15197 if test -z "$prev"; then 15198 case $p in 15199 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15200 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15201 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15202 esac 15203 fi 15204 case $p in 15205 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15206 esac 15207 if test no = "$pre_test_object_deps_done"; then 15208 case $prev in 15209 -L | -R) 15210 # Internal compiler library paths should come after those 15211 # provided the user. The postdeps already come after the 15212 # user supplied libs so there is no need to process them. 15213 if test -z "$compiler_lib_search_path_CXX"; then 15214 compiler_lib_search_path_CXX=$prev$p 15215 else 15216 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15217 fi 15218 ;; 15219 # The "-l" case would never come before the object being 15220 # linked, so don't bother handling this case. 15221 esac 15222 else 15223 if test -z "$postdeps_CXX"; then 15224 postdeps_CXX=$prev$p 15225 else 15226 postdeps_CXX="${postdeps_CXX} $prev$p" 15227 fi 15228 fi 15229 prev= 15230 ;; 15231 15232 *.lto.$objext) ;; # Ignore GCC LTO objects 15233 *.$objext) 15234 # This assumes that the test object file only shows up 15235 # once in the compiler output. 15236 if test "$p" = "conftest.$objext"; then 15237 pre_test_object_deps_done=yes 15238 continue 15239 fi 15240 15241 if test no = "$pre_test_object_deps_done"; then 15242 if test -z "$predep_objects_CXX"; then 15243 predep_objects_CXX=$p 15244 else 15245 predep_objects_CXX="$predep_objects_CXX $p" 15246 fi 15247 else 15248 if test -z "$postdep_objects_CXX"; then 15249 postdep_objects_CXX=$p 15250 else 15251 postdep_objects_CXX="$postdep_objects_CXX $p" 15252 fi 15253 fi 15254 ;; 15255 15256 *) ;; # Ignore the rest. 15257 15258 esac 15259 done 15260 15261 # Clean up. 15262 rm -f a.out a.exe 15263else 15264 echo "libtool.m4: error: problem compiling CXX test program" 15265fi 15266 15267$RM -f confest.$objext 15268CFLAGS=$_lt_libdeps_save_CFLAGS 15269 15270# PORTME: override above test on systems where it is broken 15271case $host_os in 15272interix[3-9]*) 15273 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15274 # hack all around it, let's just trust "g++" to DTRT. 15275 predep_objects_CXX= 15276 postdep_objects_CXX= 15277 postdeps_CXX= 15278 ;; 15279esac 15280 15281 15282case " $postdeps_CXX " in 15283*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15284esac 15285 compiler_lib_search_dirs_CXX= 15286if test -n "${compiler_lib_search_path_CXX}"; then 15287 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15288fi 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 lt_prog_compiler_wl_CXX= 15321lt_prog_compiler_pic_CXX= 15322lt_prog_compiler_static_CXX= 15323 15324 15325 # C++ specific cases for pic, static, wl, etc. 15326 if test yes = "$GXX"; then 15327 lt_prog_compiler_wl_CXX='-Wl,' 15328 lt_prog_compiler_static_CXX='-static' 15329 15330 case $host_os in 15331 aix*) 15332 # All AIX code is PIC. 15333 if test ia64 = "$host_cpu"; then 15334 # AIX 5 now supports IA64 processor 15335 lt_prog_compiler_static_CXX='-Bstatic' 15336 fi 15337 lt_prog_compiler_pic_CXX='-fPIC' 15338 ;; 15339 15340 amigaos*) 15341 case $host_cpu in 15342 powerpc) 15343 # see comment about AmigaOS4 .so support 15344 lt_prog_compiler_pic_CXX='-fPIC' 15345 ;; 15346 m68k) 15347 # FIXME: we need at least 68020 code to build shared libraries, but 15348 # adding the '-m68020' flag to GCC prevents building anything better, 15349 # like '-m68040'. 15350 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15351 ;; 15352 esac 15353 ;; 15354 15355 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15356 # PIC is the default for these OSes. 15357 ;; 15358 mingw* | cygwin* | os2* | pw32* | cegcc*) 15359 # This hack is so that the source file can tell whether it is being 15360 # built for inclusion in a dll (and should export symbols for example). 15361 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15362 # (--disable-auto-import) libraries 15363 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15364 case $host_os in 15365 os2*) 15366 lt_prog_compiler_static_CXX='$wl-static' 15367 ;; 15368 esac 15369 ;; 15370 darwin* | rhapsody*) 15371 # PIC is the default on this platform 15372 # Common symbols not allowed in MH_DYLIB files 15373 lt_prog_compiler_pic_CXX='-fno-common' 15374 ;; 15375 *djgpp*) 15376 # DJGPP does not support shared libraries at all 15377 lt_prog_compiler_pic_CXX= 15378 ;; 15379 haiku*) 15380 # PIC is the default for Haiku. 15381 # The "-static" flag exists, but is broken. 15382 lt_prog_compiler_static_CXX= 15383 ;; 15384 interix[3-9]*) 15385 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15386 # Instead, we relocate shared libraries at runtime. 15387 ;; 15388 sysv4*MP*) 15389 if test -d /usr/nec; then 15390 lt_prog_compiler_pic_CXX=-Kconform_pic 15391 fi 15392 ;; 15393 hpux*) 15394 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15395 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15396 # sets the default TLS model and affects inlining. 15397 case $host_cpu in 15398 hppa*64*) 15399 ;; 15400 *) 15401 lt_prog_compiler_pic_CXX='-fPIC' 15402 ;; 15403 esac 15404 ;; 15405 *qnx* | *nto*) 15406 # QNX uses GNU C++, but need to define -shared option too, otherwise 15407 # it will coredump. 15408 lt_prog_compiler_pic_CXX='-fPIC -shared' 15409 ;; 15410 *) 15411 lt_prog_compiler_pic_CXX='-fPIC' 15412 ;; 15413 esac 15414 else 15415 case $host_os in 15416 aix[4-9]*) 15417 # All AIX code is PIC. 15418 if test ia64 = "$host_cpu"; then 15419 # AIX 5 now supports IA64 processor 15420 lt_prog_compiler_static_CXX='-Bstatic' 15421 else 15422 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15423 fi 15424 ;; 15425 chorus*) 15426 case $cc_basename in 15427 cxch68*) 15428 # Green Hills C++ Compiler 15429 # _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" 15430 ;; 15431 esac 15432 ;; 15433 mingw* | cygwin* | os2* | pw32* | cegcc*) 15434 # This hack is so that the source file can tell whether it is being 15435 # built for inclusion in a dll (and should export symbols for example). 15436 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15437 ;; 15438 dgux*) 15439 case $cc_basename in 15440 ec++*) 15441 lt_prog_compiler_pic_CXX='-KPIC' 15442 ;; 15443 ghcx*) 15444 # Green Hills C++ Compiler 15445 lt_prog_compiler_pic_CXX='-pic' 15446 ;; 15447 *) 15448 ;; 15449 esac 15450 ;; 15451 freebsd* | dragonfly*) 15452 # FreeBSD uses GNU C++ 15453 ;; 15454 hpux9* | hpux10* | hpux11*) 15455 case $cc_basename in 15456 CC*) 15457 lt_prog_compiler_wl_CXX='-Wl,' 15458 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15459 if test ia64 != "$host_cpu"; then 15460 lt_prog_compiler_pic_CXX='+Z' 15461 fi 15462 ;; 15463 aCC*) 15464 lt_prog_compiler_wl_CXX='-Wl,' 15465 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15466 case $host_cpu in 15467 hppa*64*|ia64*) 15468 # +Z the default 15469 ;; 15470 *) 15471 lt_prog_compiler_pic_CXX='+Z' 15472 ;; 15473 esac 15474 ;; 15475 *) 15476 ;; 15477 esac 15478 ;; 15479 interix*) 15480 # This is c89, which is MS Visual C++ (no shared libs) 15481 # Anyone wants to do a port? 15482 ;; 15483 irix5* | irix6* | nonstopux*) 15484 case $cc_basename in 15485 CC*) 15486 lt_prog_compiler_wl_CXX='-Wl,' 15487 lt_prog_compiler_static_CXX='-non_shared' 15488 # CC pic flag -KPIC is the default. 15489 ;; 15490 *) 15491 ;; 15492 esac 15493 ;; 15494 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15495 case $cc_basename in 15496 KCC*) 15497 # KAI C++ Compiler 15498 lt_prog_compiler_wl_CXX='--backend -Wl,' 15499 lt_prog_compiler_pic_CXX='-fPIC' 15500 ;; 15501 ecpc* ) 15502 # old Intel C++ for x86_64, which still supported -KPIC. 15503 lt_prog_compiler_wl_CXX='-Wl,' 15504 lt_prog_compiler_pic_CXX='-KPIC' 15505 lt_prog_compiler_static_CXX='-static' 15506 ;; 15507 icpc* ) 15508 # Intel C++, used to be incompatible with GCC. 15509 # ICC 10 doesn't accept -KPIC any more. 15510 lt_prog_compiler_wl_CXX='-Wl,' 15511 lt_prog_compiler_pic_CXX='-fPIC' 15512 lt_prog_compiler_static_CXX='-static' 15513 ;; 15514 pgCC* | pgcpp*) 15515 # Portland Group C++ compiler 15516 lt_prog_compiler_wl_CXX='-Wl,' 15517 lt_prog_compiler_pic_CXX='-fpic' 15518 lt_prog_compiler_static_CXX='-Bstatic' 15519 ;; 15520 cxx*) 15521 # Compaq C++ 15522 # Make sure the PIC flag is empty. It appears that all Alpha 15523 # Linux and Compaq Tru64 Unix objects are PIC. 15524 lt_prog_compiler_pic_CXX= 15525 lt_prog_compiler_static_CXX='-non_shared' 15526 ;; 15527 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15528 # IBM XL 8.0, 9.0 on PPC and BlueGene 15529 lt_prog_compiler_wl_CXX='-Wl,' 15530 lt_prog_compiler_pic_CXX='-qpic' 15531 lt_prog_compiler_static_CXX='-qstaticlink' 15532 ;; 15533 *) 15534 case `$CC -V 2>&1 | sed 5q` in 15535 *Sun\ C*) 15536 # Sun C++ 5.9 15537 lt_prog_compiler_pic_CXX='-KPIC' 15538 lt_prog_compiler_static_CXX='-Bstatic' 15539 lt_prog_compiler_wl_CXX='-Qoption ld ' 15540 ;; 15541 esac 15542 ;; 15543 esac 15544 ;; 15545 lynxos*) 15546 ;; 15547 m88k*) 15548 ;; 15549 mvs*) 15550 case $cc_basename in 15551 cxx*) 15552 lt_prog_compiler_pic_CXX='-W c,exportall' 15553 ;; 15554 *) 15555 ;; 15556 esac 15557 ;; 15558 netbsd* | netbsdelf*-gnu) 15559 ;; 15560 *qnx* | *nto*) 15561 # QNX uses GNU C++, but need to define -shared option too, otherwise 15562 # it will coredump. 15563 lt_prog_compiler_pic_CXX='-fPIC -shared' 15564 ;; 15565 osf3* | osf4* | osf5*) 15566 case $cc_basename in 15567 KCC*) 15568 lt_prog_compiler_wl_CXX='--backend -Wl,' 15569 ;; 15570 RCC*) 15571 # Rational C++ 2.4.1 15572 lt_prog_compiler_pic_CXX='-pic' 15573 ;; 15574 cxx*) 15575 # Digital/Compaq C++ 15576 lt_prog_compiler_wl_CXX='-Wl,' 15577 # Make sure the PIC flag is empty. It appears that all Alpha 15578 # Linux and Compaq Tru64 Unix objects are PIC. 15579 lt_prog_compiler_pic_CXX= 15580 lt_prog_compiler_static_CXX='-non_shared' 15581 ;; 15582 *) 15583 ;; 15584 esac 15585 ;; 15586 psos*) 15587 ;; 15588 solaris*) 15589 case $cc_basename in 15590 CC* | sunCC*) 15591 # Sun C++ 4.2, 5.x and Centerline C++ 15592 lt_prog_compiler_pic_CXX='-KPIC' 15593 lt_prog_compiler_static_CXX='-Bstatic' 15594 lt_prog_compiler_wl_CXX='-Qoption ld ' 15595 ;; 15596 gcx*) 15597 # Green Hills C++ Compiler 15598 lt_prog_compiler_pic_CXX='-PIC' 15599 ;; 15600 *) 15601 ;; 15602 esac 15603 ;; 15604 sunos4*) 15605 case $cc_basename in 15606 CC*) 15607 # Sun C++ 4.x 15608 lt_prog_compiler_pic_CXX='-pic' 15609 lt_prog_compiler_static_CXX='-Bstatic' 15610 ;; 15611 lcc*) 15612 # Lucid 15613 lt_prog_compiler_pic_CXX='-pic' 15614 ;; 15615 *) 15616 ;; 15617 esac 15618 ;; 15619 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15620 case $cc_basename in 15621 CC*) 15622 lt_prog_compiler_wl_CXX='-Wl,' 15623 lt_prog_compiler_pic_CXX='-KPIC' 15624 lt_prog_compiler_static_CXX='-Bstatic' 15625 ;; 15626 esac 15627 ;; 15628 tandem*) 15629 case $cc_basename in 15630 NCC*) 15631 # NonStop-UX NCC 3.20 15632 lt_prog_compiler_pic_CXX='-KPIC' 15633 ;; 15634 *) 15635 ;; 15636 esac 15637 ;; 15638 vxworks*) 15639 ;; 15640 *) 15641 lt_prog_compiler_can_build_shared_CXX=no 15642 ;; 15643 esac 15644 fi 15645 15646case $host_os in 15647 # For platforms that do not support PIC, -DPIC is meaningless: 15648 *djgpp*) 15649 lt_prog_compiler_pic_CXX= 15650 ;; 15651 *) 15652 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15653 ;; 15654esac 15655 15656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15657$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15658if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15659 $as_echo_n "(cached) " >&6 15660else 15661 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15662fi 15663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15664$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15665lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15666 15667# 15668# Check to make sure the PIC flag actually works. 15669# 15670if test -n "$lt_prog_compiler_pic_CXX"; then 15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15672$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15673if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15674 $as_echo_n "(cached) " >&6 15675else 15676 lt_cv_prog_compiler_pic_works_CXX=no 15677 ac_outfile=conftest.$ac_objext 15678 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15679 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15680 # Insert the option either (1) after the last *FLAGS variable, or 15681 # (2) before a word containing "conftest.", or (3) at the end. 15682 # Note that $ac_compile itself does not contain backslashes and begins 15683 # with a dollar sign (not a hyphen), so the echo should work correctly. 15684 # The option is referenced via a variable to avoid confusing sed. 15685 lt_compile=`echo "$ac_compile" | $SED \ 15686 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15687 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15688 -e 's:$: $lt_compiler_flag:'` 15689 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15690 (eval "$lt_compile" 2>conftest.err) 15691 ac_status=$? 15692 cat conftest.err >&5 15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15694 if (exit $ac_status) && test -s "$ac_outfile"; then 15695 # The compiler can only warn and ignore the option if not recognized 15696 # So say no if there are warnings other than the usual output. 15697 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15698 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15699 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15700 lt_cv_prog_compiler_pic_works_CXX=yes 15701 fi 15702 fi 15703 $RM conftest* 15704 15705fi 15706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15707$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15708 15709if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15710 case $lt_prog_compiler_pic_CXX in 15711 "" | " "*) ;; 15712 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15713 esac 15714else 15715 lt_prog_compiler_pic_CXX= 15716 lt_prog_compiler_can_build_shared_CXX=no 15717fi 15718 15719fi 15720 15721 15722 15723 15724 15725# 15726# Check to make sure the static flag actually works. 15727# 15728wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15730$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15731if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15732 $as_echo_n "(cached) " >&6 15733else 15734 lt_cv_prog_compiler_static_works_CXX=no 15735 save_LDFLAGS=$LDFLAGS 15736 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15737 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15738 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15739 # The linker can only warn and ignore the option if not recognized 15740 # So say no if there are warnings 15741 if test -s conftest.err; then 15742 # Append any errors to the config.log. 15743 cat conftest.err 1>&5 15744 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15746 if diff conftest.exp conftest.er2 >/dev/null; then 15747 lt_cv_prog_compiler_static_works_CXX=yes 15748 fi 15749 else 15750 lt_cv_prog_compiler_static_works_CXX=yes 15751 fi 15752 fi 15753 $RM -r conftest* 15754 LDFLAGS=$save_LDFLAGS 15755 15756fi 15757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15758$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15759 15760if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15761 : 15762else 15763 lt_prog_compiler_static_CXX= 15764fi 15765 15766 15767 15768 15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15770$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15771if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15772 $as_echo_n "(cached) " >&6 15773else 15774 lt_cv_prog_compiler_c_o_CXX=no 15775 $RM -r conftest 2>/dev/null 15776 mkdir conftest 15777 cd conftest 15778 mkdir out 15779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15780 15781 lt_compiler_flag="-o out/conftest2.$ac_objext" 15782 # Insert the option either (1) after the last *FLAGS variable, or 15783 # (2) before a word containing "conftest.", or (3) at the end. 15784 # Note that $ac_compile itself does not contain backslashes and begins 15785 # with a dollar sign (not a hyphen), so the echo should work correctly. 15786 lt_compile=`echo "$ac_compile" | $SED \ 15787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15789 -e 's:$: $lt_compiler_flag:'` 15790 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15791 (eval "$lt_compile" 2>out/conftest.err) 15792 ac_status=$? 15793 cat out/conftest.err >&5 15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15795 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15796 then 15797 # The compiler can only warn and ignore the option if not recognized 15798 # So say no if there are warnings 15799 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15800 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15801 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15802 lt_cv_prog_compiler_c_o_CXX=yes 15803 fi 15804 fi 15805 chmod u+w . 2>&5 15806 $RM conftest* 15807 # SGI C++ compiler will create directory out/ii_files/ for 15808 # template instantiation 15809 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15810 $RM out/* && rmdir out 15811 cd .. 15812 $RM -r conftest 15813 $RM conftest* 15814 15815fi 15816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15817$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15818 15819 15820 15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15822$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15823if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15824 $as_echo_n "(cached) " >&6 15825else 15826 lt_cv_prog_compiler_c_o_CXX=no 15827 $RM -r conftest 2>/dev/null 15828 mkdir conftest 15829 cd conftest 15830 mkdir out 15831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15832 15833 lt_compiler_flag="-o out/conftest2.$ac_objext" 15834 # Insert the option either (1) after the last *FLAGS variable, or 15835 # (2) before a word containing "conftest.", or (3) at the end. 15836 # Note that $ac_compile itself does not contain backslashes and begins 15837 # with a dollar sign (not a hyphen), so the echo should work correctly. 15838 lt_compile=`echo "$ac_compile" | $SED \ 15839 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15841 -e 's:$: $lt_compiler_flag:'` 15842 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15843 (eval "$lt_compile" 2>out/conftest.err) 15844 ac_status=$? 15845 cat out/conftest.err >&5 15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15847 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15848 then 15849 # The compiler can only warn and ignore the option if not recognized 15850 # So say no if there are warnings 15851 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15852 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15853 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15854 lt_cv_prog_compiler_c_o_CXX=yes 15855 fi 15856 fi 15857 chmod u+w . 2>&5 15858 $RM conftest* 15859 # SGI C++ compiler will create directory out/ii_files/ for 15860 # template instantiation 15861 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15862 $RM out/* && rmdir out 15863 cd .. 15864 $RM -r conftest 15865 $RM conftest* 15866 15867fi 15868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15869$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15870 15871 15872 15873 15874hard_links=nottested 15875if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15876 # do not overwrite the value of need_locks provided by the user 15877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15878$as_echo_n "checking if we can lock with hard links... " >&6; } 15879 hard_links=yes 15880 $RM conftest* 15881 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15882 touch conftest.a 15883 ln conftest.a conftest.b 2>&5 || hard_links=no 15884 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15886$as_echo "$hard_links" >&6; } 15887 if test no = "$hard_links"; then 15888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15889$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15890 need_locks=warn 15891 fi 15892else 15893 need_locks=no 15894fi 15895 15896 15897 15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15899$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15900 15901 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15902 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15903 case $host_os in 15904 aix[4-9]*) 15905 # If we're using GNU nm, then we don't want the "-C" option. 15906 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15907 # Without the "-l" option, or with the "-B" option, AIX nm treats 15908 # weak defined symbols like other global defined symbols, whereas 15909 # GNU nm marks them as "W". 15910 # While the 'weak' keyword is ignored in the Export File, we need 15911 # it in the Import File for the 'aix-soname' feature, so we have 15912 # to replace the "-B" option with "-P" for AIX nm. 15913 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15914 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' 15915 else 15916 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' 15917 fi 15918 ;; 15919 pw32*) 15920 export_symbols_cmds_CXX=$ltdll_cmds 15921 ;; 15922 cygwin* | mingw* | cegcc*) 15923 case $cc_basename in 15924 cl*) 15925 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15926 ;; 15927 *) 15928 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' 15929 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15930 ;; 15931 esac 15932 ;; 15933 linux* | k*bsd*-gnu | gnu*) 15934 link_all_deplibs_CXX=no 15935 ;; 15936 *) 15937 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15938 ;; 15939 esac 15940 15941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15942$as_echo "$ld_shlibs_CXX" >&6; } 15943test no = "$ld_shlibs_CXX" && can_build_shared=no 15944 15945with_gnu_ld_CXX=$with_gnu_ld 15946 15947 15948 15949 15950 15951 15952# 15953# Do we need to explicitly link libc? 15954# 15955case "x$archive_cmds_need_lc_CXX" in 15956x|xyes) 15957 # Assume -lc should be added 15958 archive_cmds_need_lc_CXX=yes 15959 15960 if test yes,yes = "$GCC,$enable_shared"; then 15961 case $archive_cmds_CXX in 15962 *'~'*) 15963 # FIXME: we may have to deal with multi-command sequences. 15964 ;; 15965 '$CC '*) 15966 # Test whether the compiler implicitly links with -lc since on some 15967 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15968 # to ld, don't add -lc before -lgcc. 15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15970$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15971if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15972 $as_echo_n "(cached) " >&6 15973else 15974 $RM conftest* 15975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15976 15977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15978 (eval $ac_compile) 2>&5 15979 ac_status=$? 15980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15981 test $ac_status = 0; } 2>conftest.err; then 15982 soname=conftest 15983 lib=conftest 15984 libobjs=conftest.$ac_objext 15985 deplibs= 15986 wl=$lt_prog_compiler_wl_CXX 15987 pic_flag=$lt_prog_compiler_pic_CXX 15988 compiler_flags=-v 15989 linker_flags=-v 15990 verstring= 15991 output_objdir=. 15992 libname=conftest 15993 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15994 allow_undefined_flag_CXX= 15995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15996 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15997 ac_status=$? 15998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15999 test $ac_status = 0; } 16000 then 16001 lt_cv_archive_cmds_need_lc_CXX=no 16002 else 16003 lt_cv_archive_cmds_need_lc_CXX=yes 16004 fi 16005 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16006 else 16007 cat conftest.err 1>&5 16008 fi 16009 $RM conftest* 16010 16011fi 16012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16013$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16014 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16015 ;; 16016 esac 16017 fi 16018 ;; 16019esac 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16083$as_echo_n "checking dynamic linker characteristics... " >&6; } 16084 16085library_names_spec= 16086libname_spec='lib$name' 16087soname_spec= 16088shrext_cmds=.so 16089postinstall_cmds= 16090postuninstall_cmds= 16091finish_cmds= 16092finish_eval= 16093shlibpath_var= 16094shlibpath_overrides_runpath=unknown 16095version_type=none 16096dynamic_linker="$host_os ld.so" 16097sys_lib_dlsearch_path_spec="/lib /usr/lib" 16098need_lib_prefix=unknown 16099hardcode_into_libs=no 16100 16101# when you set need_version to no, make sure it does not cause -set_version 16102# flags to be left without arguments 16103need_version=unknown 16104 16105 16106 16107case $host_os in 16108aix3*) 16109 version_type=linux # correct to gnu/linux during the next big refactor 16110 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16111 shlibpath_var=LIBPATH 16112 16113 # AIX 3 has no versioning support, so we append a major version to the name. 16114 soname_spec='$libname$release$shared_ext$major' 16115 ;; 16116 16117aix[4-9]*) 16118 version_type=linux # correct to gnu/linux during the next big refactor 16119 need_lib_prefix=no 16120 need_version=no 16121 hardcode_into_libs=yes 16122 if test ia64 = "$host_cpu"; then 16123 # AIX 5 supports IA64 16124 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16125 shlibpath_var=LD_LIBRARY_PATH 16126 else 16127 # With GCC up to 2.95.x, collect2 would create an import file 16128 # for dependence libraries. The import file would start with 16129 # the line '#! .'. This would cause the generated library to 16130 # depend on '.', always an invalid library. This was fixed in 16131 # development snapshots of GCC prior to 3.0. 16132 case $host_os in 16133 aix4 | aix4.[01] | aix4.[01].*) 16134 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16135 echo ' yes ' 16136 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16137 : 16138 else 16139 can_build_shared=no 16140 fi 16141 ;; 16142 esac 16143 # Using Import Files as archive members, it is possible to support 16144 # filename-based versioning of shared library archives on AIX. While 16145 # this would work for both with and without runtime linking, it will 16146 # prevent static linking of such archives. So we do filename-based 16147 # shared library versioning with .so extension only, which is used 16148 # when both runtime linking and shared linking is enabled. 16149 # Unfortunately, runtime linking may impact performance, so we do 16150 # not want this to be the default eventually. Also, we use the 16151 # versioned .so libs for executables only if there is the -brtl 16152 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16153 # To allow for filename-based versioning support, we need to create 16154 # libNAME.so.V as an archive file, containing: 16155 # *) an Import File, referring to the versioned filename of the 16156 # archive as well as the shared archive member, telling the 16157 # bitwidth (32 or 64) of that shared object, and providing the 16158 # list of exported symbols of that shared object, eventually 16159 # decorated with the 'weak' keyword 16160 # *) the shared object with the F_LOADONLY flag set, to really avoid 16161 # it being seen by the linker. 16162 # At run time we better use the real file rather than another symlink, 16163 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16164 16165 case $with_aix_soname,$aix_use_runtimelinking in 16166 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16167 # soname into executable. Probably we can add versioning support to 16168 # collect2, so additional links can be useful in future. 16169 aix,yes) # traditional libtool 16170 dynamic_linker='AIX unversionable lib.so' 16171 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16172 # instead of lib<name>.a to let people know that these are not 16173 # typical AIX shared libraries. 16174 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16175 ;; 16176 aix,no) # traditional AIX only 16177 dynamic_linker='AIX lib.a(lib.so.V)' 16178 # We preserve .a as extension for shared libraries through AIX4.2 16179 # and later when we are not doing run time linking. 16180 library_names_spec='$libname$release.a $libname.a' 16181 soname_spec='$libname$release$shared_ext$major' 16182 ;; 16183 svr4,*) # full svr4 only 16184 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16185 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16186 # We do not specify a path in Import Files, so LIBPATH fires. 16187 shlibpath_overrides_runpath=yes 16188 ;; 16189 *,yes) # both, prefer svr4 16190 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16191 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16192 # unpreferred sharedlib libNAME.a needs extra handling 16193 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"' 16194 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"' 16195 # We do not specify a path in Import Files, so LIBPATH fires. 16196 shlibpath_overrides_runpath=yes 16197 ;; 16198 *,no) # both, prefer aix 16199 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16200 library_names_spec='$libname$release.a $libname.a' 16201 soname_spec='$libname$release$shared_ext$major' 16202 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16203 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)' 16204 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"' 16205 ;; 16206 esac 16207 shlibpath_var=LIBPATH 16208 fi 16209 ;; 16210 16211amigaos*) 16212 case $host_cpu in 16213 powerpc) 16214 # Since July 2007 AmigaOS4 officially supports .so libraries. 16215 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16217 ;; 16218 m68k) 16219 library_names_spec='$libname.ixlibrary $libname.a' 16220 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16221 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' 16222 ;; 16223 esac 16224 ;; 16225 16226beos*) 16227 library_names_spec='$libname$shared_ext' 16228 dynamic_linker="$host_os ld.so" 16229 shlibpath_var=LIBRARY_PATH 16230 ;; 16231 16232bsdi[45]*) 16233 version_type=linux # correct to gnu/linux during the next big refactor 16234 need_version=no 16235 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16236 soname_spec='$libname$release$shared_ext$major' 16237 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16238 shlibpath_var=LD_LIBRARY_PATH 16239 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16240 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16241 # the default ld.so.conf also contains /usr/contrib/lib and 16242 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16243 # libtool to hard-code these into programs 16244 ;; 16245 16246cygwin* | mingw* | pw32* | cegcc*) 16247 version_type=windows 16248 shrext_cmds=.dll 16249 need_version=no 16250 need_lib_prefix=no 16251 16252 case $GCC,$cc_basename in 16253 yes,*) 16254 # gcc 16255 library_names_spec='$libname.dll.a' 16256 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16257 postinstall_cmds='base_file=`basename \$file`~ 16258 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16259 dldir=$destdir/`dirname \$dlpath`~ 16260 test -d \$dldir || mkdir -p \$dldir~ 16261 $install_prog $dir/$dlname \$dldir/$dlname~ 16262 chmod a+x \$dldir/$dlname~ 16263 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16264 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16265 fi' 16266 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16267 dlpath=$dir/\$dldll~ 16268 $RM \$dlpath' 16269 shlibpath_overrides_runpath=yes 16270 16271 case $host_os in 16272 cygwin*) 16273 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16274 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16275 16276 ;; 16277 mingw* | cegcc*) 16278 # MinGW DLLs use traditional 'lib' prefix 16279 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16280 ;; 16281 pw32*) 16282 # pw32 DLLs use 'pw' prefix rather than 'lib' 16283 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16284 ;; 16285 esac 16286 dynamic_linker='Win32 ld.exe' 16287 ;; 16288 16289 *,cl*) 16290 # Native MSVC 16291 libname_spec='$name' 16292 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16293 library_names_spec='$libname.dll.lib' 16294 16295 case $build_os in 16296 mingw*) 16297 sys_lib_search_path_spec= 16298 lt_save_ifs=$IFS 16299 IFS=';' 16300 for lt_path in $LIB 16301 do 16302 IFS=$lt_save_ifs 16303 # Let DOS variable expansion print the short 8.3 style file name. 16304 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16305 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16306 done 16307 IFS=$lt_save_ifs 16308 # Convert to MSYS style. 16309 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16310 ;; 16311 cygwin*) 16312 # Convert to unix form, then to dos form, then back to unix form 16313 # but this time dos style (no spaces!) so that the unix form looks 16314 # like /cygdrive/c/PROGRA~1:/cygdr... 16315 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16316 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16317 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16318 ;; 16319 *) 16320 sys_lib_search_path_spec=$LIB 16321 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16322 # It is most probably a Windows format PATH. 16323 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16324 else 16325 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16326 fi 16327 # FIXME: find the short name or the path components, as spaces are 16328 # common. (e.g. "Program Files" -> "PROGRA~1") 16329 ;; 16330 esac 16331 16332 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16333 postinstall_cmds='base_file=`basename \$file`~ 16334 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16335 dldir=$destdir/`dirname \$dlpath`~ 16336 test -d \$dldir || mkdir -p \$dldir~ 16337 $install_prog $dir/$dlname \$dldir/$dlname' 16338 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16339 dlpath=$dir/\$dldll~ 16340 $RM \$dlpath' 16341 shlibpath_overrides_runpath=yes 16342 dynamic_linker='Win32 link.exe' 16343 ;; 16344 16345 *) 16346 # Assume MSVC wrapper 16347 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16348 dynamic_linker='Win32 ld.exe' 16349 ;; 16350 esac 16351 # FIXME: first we should search . and the directory the executable is in 16352 shlibpath_var=PATH 16353 ;; 16354 16355darwin* | rhapsody*) 16356 dynamic_linker="$host_os dyld" 16357 version_type=darwin 16358 need_lib_prefix=no 16359 need_version=no 16360 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16361 soname_spec='$libname$release$major$shared_ext' 16362 shlibpath_overrides_runpath=yes 16363 shlibpath_var=DYLD_LIBRARY_PATH 16364 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16365 16366 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16367 ;; 16368 16369dgux*) 16370 version_type=linux # correct to gnu/linux during the next big refactor 16371 need_lib_prefix=no 16372 need_version=no 16373 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16374 soname_spec='$libname$release$shared_ext$major' 16375 shlibpath_var=LD_LIBRARY_PATH 16376 ;; 16377 16378freebsd* | dragonfly*) 16379 # DragonFly does not have aout. When/if they implement a new 16380 # versioning mechanism, adjust this. 16381 if test -x /usr/bin/objformat; then 16382 objformat=`/usr/bin/objformat` 16383 else 16384 case $host_os in 16385 freebsd[23].*) objformat=aout ;; 16386 *) objformat=elf ;; 16387 esac 16388 fi 16389 version_type=freebsd-$objformat 16390 case $version_type in 16391 freebsd-elf*) 16392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16393 soname_spec='$libname$release$shared_ext$major' 16394 need_version=no 16395 need_lib_prefix=no 16396 ;; 16397 freebsd-*) 16398 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16399 need_version=yes 16400 ;; 16401 esac 16402 shlibpath_var=LD_LIBRARY_PATH 16403 case $host_os in 16404 freebsd2.*) 16405 shlibpath_overrides_runpath=yes 16406 ;; 16407 freebsd3.[01]* | freebsdelf3.[01]*) 16408 shlibpath_overrides_runpath=yes 16409 hardcode_into_libs=yes 16410 ;; 16411 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16412 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16413 shlibpath_overrides_runpath=no 16414 hardcode_into_libs=yes 16415 ;; 16416 *) # from 4.6 on, and DragonFly 16417 shlibpath_overrides_runpath=yes 16418 hardcode_into_libs=yes 16419 ;; 16420 esac 16421 ;; 16422 16423haiku*) 16424 version_type=linux # correct to gnu/linux during the next big refactor 16425 need_lib_prefix=no 16426 need_version=no 16427 dynamic_linker="$host_os runtime_loader" 16428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16429 soname_spec='$libname$release$shared_ext$major' 16430 shlibpath_var=LIBRARY_PATH 16431 shlibpath_overrides_runpath=no 16432 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16433 hardcode_into_libs=yes 16434 ;; 16435 16436hpux9* | hpux10* | hpux11*) 16437 # Give a soname corresponding to the major version so that dld.sl refuses to 16438 # link against other versions. 16439 version_type=sunos 16440 need_lib_prefix=no 16441 need_version=no 16442 case $host_cpu in 16443 ia64*) 16444 shrext_cmds='.so' 16445 hardcode_into_libs=yes 16446 dynamic_linker="$host_os dld.so" 16447 shlibpath_var=LD_LIBRARY_PATH 16448 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16449 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16450 soname_spec='$libname$release$shared_ext$major' 16451 if test 32 = "$HPUX_IA64_MODE"; then 16452 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16453 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16454 else 16455 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16456 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16457 fi 16458 ;; 16459 hppa*64*) 16460 shrext_cmds='.sl' 16461 hardcode_into_libs=yes 16462 dynamic_linker="$host_os dld.sl" 16463 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16464 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16466 soname_spec='$libname$release$shared_ext$major' 16467 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16468 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16469 ;; 16470 *) 16471 shrext_cmds='.sl' 16472 dynamic_linker="$host_os dld.sl" 16473 shlibpath_var=SHLIB_PATH 16474 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16476 soname_spec='$libname$release$shared_ext$major' 16477 ;; 16478 esac 16479 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16480 postinstall_cmds='chmod 555 $lib' 16481 # or fails outright, so override atomically: 16482 install_override_mode=555 16483 ;; 16484 16485interix[3-9]*) 16486 version_type=linux # correct to gnu/linux during the next big refactor 16487 need_lib_prefix=no 16488 need_version=no 16489 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16490 soname_spec='$libname$release$shared_ext$major' 16491 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16492 shlibpath_var=LD_LIBRARY_PATH 16493 shlibpath_overrides_runpath=no 16494 hardcode_into_libs=yes 16495 ;; 16496 16497irix5* | irix6* | nonstopux*) 16498 case $host_os in 16499 nonstopux*) version_type=nonstopux ;; 16500 *) 16501 if test yes = "$lt_cv_prog_gnu_ld"; then 16502 version_type=linux # correct to gnu/linux during the next big refactor 16503 else 16504 version_type=irix 16505 fi ;; 16506 esac 16507 need_lib_prefix=no 16508 need_version=no 16509 soname_spec='$libname$release$shared_ext$major' 16510 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16511 case $host_os in 16512 irix5* | nonstopux*) 16513 libsuff= shlibsuff= 16514 ;; 16515 *) 16516 case $LD in # libtool.m4 will add one of these switches to LD 16517 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16518 libsuff= shlibsuff= libmagic=32-bit;; 16519 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16520 libsuff=32 shlibsuff=N32 libmagic=N32;; 16521 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16522 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16523 *) libsuff= shlibsuff= libmagic=never-match;; 16524 esac 16525 ;; 16526 esac 16527 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16528 shlibpath_overrides_runpath=no 16529 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16530 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16531 hardcode_into_libs=yes 16532 ;; 16533 16534# No shared lib support for Linux oldld, aout, or coff. 16535linux*oldld* | linux*aout* | linux*coff*) 16536 dynamic_linker=no 16537 ;; 16538 16539linux*android*) 16540 version_type=none # Android doesn't support versioned libraries. 16541 need_lib_prefix=no 16542 need_version=no 16543 library_names_spec='$libname$release$shared_ext' 16544 soname_spec='$libname$release$shared_ext' 16545 finish_cmds= 16546 shlibpath_var=LD_LIBRARY_PATH 16547 shlibpath_overrides_runpath=yes 16548 16549 # This implies no fast_install, which is unacceptable. 16550 # Some rework will be needed to allow for fast_install 16551 # before this can be enabled. 16552 hardcode_into_libs=yes 16553 16554 dynamic_linker='Android linker' 16555 # Don't embed -rpath directories since the linker doesn't support them. 16556 hardcode_libdir_flag_spec_CXX='-L$libdir' 16557 ;; 16558 16559# This must be glibc/ELF. 16560linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16561 version_type=linux # correct to gnu/linux during the next big refactor 16562 need_lib_prefix=no 16563 need_version=no 16564 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16565 soname_spec='$libname$release$shared_ext$major' 16566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16567 shlibpath_var=LD_LIBRARY_PATH 16568 shlibpath_overrides_runpath=no 16569 16570 # Some binutils ld are patched to set DT_RUNPATH 16571 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16572 $as_echo_n "(cached) " >&6 16573else 16574 lt_cv_shlibpath_overrides_runpath=no 16575 save_LDFLAGS=$LDFLAGS 16576 save_libdir=$libdir 16577 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16578 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16580/* end confdefs.h. */ 16581 16582int 16583main () 16584{ 16585 16586 ; 16587 return 0; 16588} 16589_ACEOF 16590if ac_fn_cxx_try_link "$LINENO"; then : 16591 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16592 lt_cv_shlibpath_overrides_runpath=yes 16593fi 16594fi 16595rm -f core conftest.err conftest.$ac_objext \ 16596 conftest$ac_exeext conftest.$ac_ext 16597 LDFLAGS=$save_LDFLAGS 16598 libdir=$save_libdir 16599 16600fi 16601 16602 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16603 16604 # This implies no fast_install, which is unacceptable. 16605 # Some rework will be needed to allow for fast_install 16606 # before this can be enabled. 16607 hardcode_into_libs=yes 16608 16609 # Ideally, we could use ldconfig to report *all* directores which are 16610 # searched for libraries, however this is still not possible. Aside from not 16611 # being certain /sbin/ldconfig is available, command 16612 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16613 # even though it is searched at run-time. Try to do the best guess by 16614 # appending ld.so.conf contents (and includes) to the search path. 16615 if test -f /etc/ld.so.conf; then 16616 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' ' '` 16617 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16618 fi 16619 16620 # We used to test for /lib/ld.so.1 and disable shared libraries on 16621 # powerpc, because MkLinux only supported shared libraries with the 16622 # GNU dynamic linker. Since this was broken with cross compilers, 16623 # most powerpc-linux boxes support dynamic linking these days and 16624 # people can always --disable-shared, the test was removed, and we 16625 # assume the GNU/Linux dynamic linker is in use. 16626 dynamic_linker='GNU/Linux ld.so' 16627 ;; 16628 16629netbsdelf*-gnu) 16630 version_type=linux 16631 need_lib_prefix=no 16632 need_version=no 16633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16634 soname_spec='${libname}${release}${shared_ext}$major' 16635 shlibpath_var=LD_LIBRARY_PATH 16636 shlibpath_overrides_runpath=no 16637 hardcode_into_libs=yes 16638 dynamic_linker='NetBSD ld.elf_so' 16639 ;; 16640 16641netbsd*) 16642 version_type=sunos 16643 need_lib_prefix=no 16644 need_version=no 16645 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16646 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16648 dynamic_linker='NetBSD (a.out) ld.so' 16649 else 16650 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16651 soname_spec='$libname$release$shared_ext$major' 16652 dynamic_linker='NetBSD ld.elf_so' 16653 fi 16654 shlibpath_var=LD_LIBRARY_PATH 16655 shlibpath_overrides_runpath=yes 16656 hardcode_into_libs=yes 16657 ;; 16658 16659newsos6) 16660 version_type=linux # correct to gnu/linux during the next big refactor 16661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16662 shlibpath_var=LD_LIBRARY_PATH 16663 shlibpath_overrides_runpath=yes 16664 ;; 16665 16666*nto* | *qnx*) 16667 version_type=qnx 16668 need_lib_prefix=no 16669 need_version=no 16670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16671 soname_spec='$libname$release$shared_ext$major' 16672 shlibpath_var=LD_LIBRARY_PATH 16673 shlibpath_overrides_runpath=no 16674 hardcode_into_libs=yes 16675 dynamic_linker='ldqnx.so' 16676 ;; 16677 16678openbsd* | bitrig*) 16679 version_type=sunos 16680 sys_lib_dlsearch_path_spec=/usr/lib 16681 need_lib_prefix=no 16682 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16683 need_version=no 16684 else 16685 need_version=yes 16686 fi 16687 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16689 shlibpath_var=LD_LIBRARY_PATH 16690 shlibpath_overrides_runpath=yes 16691 ;; 16692 16693os2*) 16694 libname_spec='$name' 16695 version_type=windows 16696 shrext_cmds=.dll 16697 need_version=no 16698 need_lib_prefix=no 16699 # OS/2 can only load a DLL with a base name of 8 characters or less. 16700 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16701 v=$($ECHO $release$versuffix | tr -d .-); 16702 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16703 $ECHO $n$v`$shared_ext' 16704 library_names_spec='${libname}_dll.$libext' 16705 dynamic_linker='OS/2 ld.exe' 16706 shlibpath_var=BEGINLIBPATH 16707 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16709 postinstall_cmds='base_file=`basename \$file`~ 16710 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16711 dldir=$destdir/`dirname \$dlpath`~ 16712 test -d \$dldir || mkdir -p \$dldir~ 16713 $install_prog $dir/$dlname \$dldir/$dlname~ 16714 chmod a+x \$dldir/$dlname~ 16715 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16716 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16717 fi' 16718 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16719 dlpath=$dir/\$dldll~ 16720 $RM \$dlpath' 16721 ;; 16722 16723osf3* | osf4* | osf5*) 16724 version_type=osf 16725 need_lib_prefix=no 16726 need_version=no 16727 soname_spec='$libname$release$shared_ext$major' 16728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16729 shlibpath_var=LD_LIBRARY_PATH 16730 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16731 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16732 ;; 16733 16734rdos*) 16735 dynamic_linker=no 16736 ;; 16737 16738solaris*) 16739 version_type=linux # correct to gnu/linux during the next big refactor 16740 need_lib_prefix=no 16741 need_version=no 16742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16743 soname_spec='$libname$release$shared_ext$major' 16744 shlibpath_var=LD_LIBRARY_PATH 16745 shlibpath_overrides_runpath=yes 16746 hardcode_into_libs=yes 16747 # ldd complains unless libraries are executable 16748 postinstall_cmds='chmod +x $lib' 16749 ;; 16750 16751sunos4*) 16752 version_type=sunos 16753 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16754 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16755 shlibpath_var=LD_LIBRARY_PATH 16756 shlibpath_overrides_runpath=yes 16757 if test yes = "$with_gnu_ld"; then 16758 need_lib_prefix=no 16759 fi 16760 need_version=yes 16761 ;; 16762 16763sysv4 | sysv4.3*) 16764 version_type=linux # correct to gnu/linux during the next big refactor 16765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16766 soname_spec='$libname$release$shared_ext$major' 16767 shlibpath_var=LD_LIBRARY_PATH 16768 case $host_vendor in 16769 sni) 16770 shlibpath_overrides_runpath=no 16771 need_lib_prefix=no 16772 runpath_var=LD_RUN_PATH 16773 ;; 16774 siemens) 16775 need_lib_prefix=no 16776 ;; 16777 motorola) 16778 need_lib_prefix=no 16779 need_version=no 16780 shlibpath_overrides_runpath=no 16781 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16782 ;; 16783 esac 16784 ;; 16785 16786sysv4*MP*) 16787 if test -d /usr/nec; then 16788 version_type=linux # correct to gnu/linux during the next big refactor 16789 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16790 soname_spec='$libname$shared_ext.$major' 16791 shlibpath_var=LD_LIBRARY_PATH 16792 fi 16793 ;; 16794 16795sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16796 version_type=sco 16797 need_lib_prefix=no 16798 need_version=no 16799 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16800 soname_spec='$libname$release$shared_ext$major' 16801 shlibpath_var=LD_LIBRARY_PATH 16802 shlibpath_overrides_runpath=yes 16803 hardcode_into_libs=yes 16804 if test yes = "$with_gnu_ld"; then 16805 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16806 else 16807 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16808 case $host_os in 16809 sco3.2v5*) 16810 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16811 ;; 16812 esac 16813 fi 16814 sys_lib_dlsearch_path_spec='/usr/lib' 16815 ;; 16816 16817tpf*) 16818 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16819 version_type=linux # correct to gnu/linux during the next big refactor 16820 need_lib_prefix=no 16821 need_version=no 16822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16823 shlibpath_var=LD_LIBRARY_PATH 16824 shlibpath_overrides_runpath=no 16825 hardcode_into_libs=yes 16826 ;; 16827 16828uts4*) 16829 version_type=linux # correct to gnu/linux during the next big refactor 16830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16831 soname_spec='$libname$release$shared_ext$major' 16832 shlibpath_var=LD_LIBRARY_PATH 16833 ;; 16834 16835*) 16836 dynamic_linker=no 16837 ;; 16838esac 16839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16840$as_echo "$dynamic_linker" >&6; } 16841test no = "$dynamic_linker" && can_build_shared=no 16842 16843variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16844if test yes = "$GCC"; then 16845 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16846fi 16847 16848if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16849 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16850fi 16851 16852if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16853 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16854fi 16855 16856# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16857configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16858 16859# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16860func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16861 16862# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16863configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16905$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16906hardcode_action_CXX= 16907if test -n "$hardcode_libdir_flag_spec_CXX" || 16908 test -n "$runpath_var_CXX" || 16909 test yes = "$hardcode_automatic_CXX"; then 16910 16911 # We can hardcode non-existent directories. 16912 if test no != "$hardcode_direct_CXX" && 16913 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16914 # have to relink, otherwise we might link with an installed library 16915 # when we should be linking with a yet-to-be-installed one 16916 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16917 test no != "$hardcode_minus_L_CXX"; then 16918 # Linking always hardcodes the temporary library directory. 16919 hardcode_action_CXX=relink 16920 else 16921 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16922 hardcode_action_CXX=immediate 16923 fi 16924else 16925 # We cannot hardcode anything, or else we can only hardcode existing 16926 # directories. 16927 hardcode_action_CXX=unsupported 16928fi 16929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16930$as_echo "$hardcode_action_CXX" >&6; } 16931 16932if test relink = "$hardcode_action_CXX" || 16933 test yes = "$inherit_rpath_CXX"; then 16934 # Fast installation is not supported 16935 enable_fast_install=no 16936elif test yes = "$shlibpath_overrides_runpath" || 16937 test no = "$enable_shared"; then 16938 # Fast installation is not necessary 16939 enable_fast_install=needless 16940fi 16941 16942 16943 16944 16945 16946 16947 16948 fi # test -n "$compiler" 16949 16950 CC=$lt_save_CC 16951 CFLAGS=$lt_save_CFLAGS 16952 LDCXX=$LD 16953 LD=$lt_save_LD 16954 GCC=$lt_save_GCC 16955 with_gnu_ld=$lt_save_with_gnu_ld 16956 lt_cv_path_LDCXX=$lt_cv_path_LD 16957 lt_cv_path_LD=$lt_save_path_LD 16958 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16959 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16960fi # test yes != "$_lt_caught_CXX_error" 16961 16962ac_ext=cpp 16963ac_cpp='$CXXCPP $CPPFLAGS' 16964ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16965ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16966ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 ac_config_commands="$ac_config_commands libtool" 16983 16984 16985 16986 16987# Only expand once: 16988 16989 16990enable_win32_dll=yes 16991 16992case $host in 16993*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 16994 if test -n "$ac_tool_prefix"; then 16995 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 16996set dummy ${ac_tool_prefix}as; ac_word=$2 16997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16998$as_echo_n "checking for $ac_word... " >&6; } 16999if ${ac_cv_prog_AS+:} false; then : 17000 $as_echo_n "(cached) " >&6 17001else 17002 if test -n "$AS"; then 17003 ac_cv_prog_AS="$AS" # Let the user override the test. 17004else 17005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17006for as_dir in $PATH 17007do 17008 IFS=$as_save_IFS 17009 test -z "$as_dir" && as_dir=. 17010 for ac_exec_ext in '' $ac_executable_extensions; do 17011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17012 ac_cv_prog_AS="${ac_tool_prefix}as" 17013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17014 break 2 17015 fi 17016done 17017 done 17018IFS=$as_save_IFS 17019 17020fi 17021fi 17022AS=$ac_cv_prog_AS 17023if test -n "$AS"; then 17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 17025$as_echo "$AS" >&6; } 17026else 17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17028$as_echo "no" >&6; } 17029fi 17030 17031 17032fi 17033if test -z "$ac_cv_prog_AS"; then 17034 ac_ct_AS=$AS 17035 # Extract the first word of "as", so it can be a program name with args. 17036set dummy as; ac_word=$2 17037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17038$as_echo_n "checking for $ac_word... " >&6; } 17039if ${ac_cv_prog_ac_ct_AS+:} false; then : 17040 $as_echo_n "(cached) " >&6 17041else 17042 if test -n "$ac_ct_AS"; then 17043 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 17044else 17045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17046for as_dir in $PATH 17047do 17048 IFS=$as_save_IFS 17049 test -z "$as_dir" && as_dir=. 17050 for ac_exec_ext in '' $ac_executable_extensions; do 17051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17052 ac_cv_prog_ac_ct_AS="as" 17053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17054 break 2 17055 fi 17056done 17057 done 17058IFS=$as_save_IFS 17059 17060fi 17061fi 17062ac_ct_AS=$ac_cv_prog_ac_ct_AS 17063if test -n "$ac_ct_AS"; then 17064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 17065$as_echo "$ac_ct_AS" >&6; } 17066else 17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17068$as_echo "no" >&6; } 17069fi 17070 17071 if test "x$ac_ct_AS" = x; then 17072 AS="false" 17073 else 17074 case $cross_compiling:$ac_tool_warned in 17075yes:) 17076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17078ac_tool_warned=yes ;; 17079esac 17080 AS=$ac_ct_AS 17081 fi 17082else 17083 AS="$ac_cv_prog_AS" 17084fi 17085 17086 if test -n "$ac_tool_prefix"; then 17087 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 17088set dummy ${ac_tool_prefix}dlltool; ac_word=$2 17089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17090$as_echo_n "checking for $ac_word... " >&6; } 17091if ${ac_cv_prog_DLLTOOL+:} false; then : 17092 $as_echo_n "(cached) " >&6 17093else 17094 if test -n "$DLLTOOL"; then 17095 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 17096else 17097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17098for as_dir in $PATH 17099do 17100 IFS=$as_save_IFS 17101 test -z "$as_dir" && as_dir=. 17102 for ac_exec_ext in '' $ac_executable_extensions; do 17103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17104 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 17105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17106 break 2 17107 fi 17108done 17109 done 17110IFS=$as_save_IFS 17111 17112fi 17113fi 17114DLLTOOL=$ac_cv_prog_DLLTOOL 17115if test -n "$DLLTOOL"; then 17116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 17117$as_echo "$DLLTOOL" >&6; } 17118else 17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17120$as_echo "no" >&6; } 17121fi 17122 17123 17124fi 17125if test -z "$ac_cv_prog_DLLTOOL"; then 17126 ac_ct_DLLTOOL=$DLLTOOL 17127 # Extract the first word of "dlltool", so it can be a program name with args. 17128set dummy dlltool; ac_word=$2 17129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17130$as_echo_n "checking for $ac_word... " >&6; } 17131if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 17132 $as_echo_n "(cached) " >&6 17133else 17134 if test -n "$ac_ct_DLLTOOL"; then 17135 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 17136else 17137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17138for as_dir in $PATH 17139do 17140 IFS=$as_save_IFS 17141 test -z "$as_dir" && as_dir=. 17142 for ac_exec_ext in '' $ac_executable_extensions; do 17143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17144 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 17145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17146 break 2 17147 fi 17148done 17149 done 17150IFS=$as_save_IFS 17151 17152fi 17153fi 17154ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 17155if test -n "$ac_ct_DLLTOOL"; then 17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 17157$as_echo "$ac_ct_DLLTOOL" >&6; } 17158else 17159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17160$as_echo "no" >&6; } 17161fi 17162 17163 if test "x$ac_ct_DLLTOOL" = x; then 17164 DLLTOOL="false" 17165 else 17166 case $cross_compiling:$ac_tool_warned in 17167yes:) 17168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17170ac_tool_warned=yes ;; 17171esac 17172 DLLTOOL=$ac_ct_DLLTOOL 17173 fi 17174else 17175 DLLTOOL="$ac_cv_prog_DLLTOOL" 17176fi 17177 17178 if test -n "$ac_tool_prefix"; then 17179 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 17180set dummy ${ac_tool_prefix}objdump; ac_word=$2 17181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17182$as_echo_n "checking for $ac_word... " >&6; } 17183if ${ac_cv_prog_OBJDUMP+:} false; then : 17184 $as_echo_n "(cached) " >&6 17185else 17186 if test -n "$OBJDUMP"; then 17187 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 17188else 17189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17190for as_dir in $PATH 17191do 17192 IFS=$as_save_IFS 17193 test -z "$as_dir" && as_dir=. 17194 for ac_exec_ext in '' $ac_executable_extensions; do 17195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17196 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 17197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17198 break 2 17199 fi 17200done 17201 done 17202IFS=$as_save_IFS 17203 17204fi 17205fi 17206OBJDUMP=$ac_cv_prog_OBJDUMP 17207if test -n "$OBJDUMP"; then 17208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 17209$as_echo "$OBJDUMP" >&6; } 17210else 17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17212$as_echo "no" >&6; } 17213fi 17214 17215 17216fi 17217if test -z "$ac_cv_prog_OBJDUMP"; then 17218 ac_ct_OBJDUMP=$OBJDUMP 17219 # Extract the first word of "objdump", so it can be a program name with args. 17220set dummy objdump; ac_word=$2 17221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17222$as_echo_n "checking for $ac_word... " >&6; } 17223if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 17224 $as_echo_n "(cached) " >&6 17225else 17226 if test -n "$ac_ct_OBJDUMP"; then 17227 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 17228else 17229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17230for as_dir in $PATH 17231do 17232 IFS=$as_save_IFS 17233 test -z "$as_dir" && as_dir=. 17234 for ac_exec_ext in '' $ac_executable_extensions; do 17235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17236 ac_cv_prog_ac_ct_OBJDUMP="objdump" 17237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17238 break 2 17239 fi 17240done 17241 done 17242IFS=$as_save_IFS 17243 17244fi 17245fi 17246ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 17247if test -n "$ac_ct_OBJDUMP"; then 17248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 17249$as_echo "$ac_ct_OBJDUMP" >&6; } 17250else 17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17252$as_echo "no" >&6; } 17253fi 17254 17255 if test "x$ac_ct_OBJDUMP" = x; then 17256 OBJDUMP="false" 17257 else 17258 case $cross_compiling:$ac_tool_warned in 17259yes:) 17260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17262ac_tool_warned=yes ;; 17263esac 17264 OBJDUMP=$ac_ct_OBJDUMP 17265 fi 17266else 17267 OBJDUMP="$ac_cv_prog_OBJDUMP" 17268fi 17269 17270 ;; 17271esac 17272 17273test -z "$AS" && AS=as 17274 17275 17276 17277 17278 17279test -z "$DLLTOOL" && DLLTOOL=dlltool 17280 17281 17282test -z "$OBJDUMP" && OBJDUMP=objdump 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292 17293 17294if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 17295 if test -n "$ac_tool_prefix"; then 17296 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 17297set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 17298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17299$as_echo_n "checking for $ac_word... " >&6; } 17300if ${ac_cv_path_PKG_CONFIG+:} false; then : 17301 $as_echo_n "(cached) " >&6 17302else 17303 case $PKG_CONFIG in 17304 [\\/]* | ?:[\\/]*) 17305 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 17306 ;; 17307 *) 17308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17309for as_dir in $PATH 17310do 17311 IFS=$as_save_IFS 17312 test -z "$as_dir" && as_dir=. 17313 for ac_exec_ext in '' $ac_executable_extensions; do 17314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17315 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17317 break 2 17318 fi 17319done 17320 done 17321IFS=$as_save_IFS 17322 17323 ;; 17324esac 17325fi 17326PKG_CONFIG=$ac_cv_path_PKG_CONFIG 17327if test -n "$PKG_CONFIG"; then 17328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 17329$as_echo "$PKG_CONFIG" >&6; } 17330else 17331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17332$as_echo "no" >&6; } 17333fi 17334 17335 17336fi 17337if test -z "$ac_cv_path_PKG_CONFIG"; then 17338 ac_pt_PKG_CONFIG=$PKG_CONFIG 17339 # Extract the first word of "pkg-config", so it can be a program name with args. 17340set dummy pkg-config; ac_word=$2 17341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17342$as_echo_n "checking for $ac_word... " >&6; } 17343if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 17344 $as_echo_n "(cached) " >&6 17345else 17346 case $ac_pt_PKG_CONFIG in 17347 [\\/]* | ?:[\\/]*) 17348 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 17349 ;; 17350 *) 17351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17352for as_dir in $PATH 17353do 17354 IFS=$as_save_IFS 17355 test -z "$as_dir" && as_dir=. 17356 for ac_exec_ext in '' $ac_executable_extensions; do 17357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17358 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17360 break 2 17361 fi 17362done 17363 done 17364IFS=$as_save_IFS 17365 17366 ;; 17367esac 17368fi 17369ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 17370if test -n "$ac_pt_PKG_CONFIG"; then 17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 17372$as_echo "$ac_pt_PKG_CONFIG" >&6; } 17373else 17374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17375$as_echo "no" >&6; } 17376fi 17377 17378 if test "x$ac_pt_PKG_CONFIG" = x; then 17379 PKG_CONFIG="" 17380 else 17381 case $cross_compiling:$ac_tool_warned in 17382yes:) 17383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17385ac_tool_warned=yes ;; 17386esac 17387 PKG_CONFIG=$ac_pt_PKG_CONFIG 17388 fi 17389else 17390 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 17391fi 17392 17393fi 17394if test -n "$PKG_CONFIG"; then 17395 _pkg_min_version=0.20 17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 17397$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 17398 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17400$as_echo "yes" >&6; } 17401 else 17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17403$as_echo "no" >&6; } 17404 PKG_CONFIG="" 17405 fi 17406fi 17407 17408# ===================== 17409# Find required headers 17410# ===================== 17411 17412for ac_header in stdlib.h sys/time.h unistd.h 17413do : 17414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17415ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17416if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17417 cat >>confdefs.h <<_ACEOF 17418#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17419_ACEOF 17420 17421fi 17422 17423done 17424 17425 17426# ============================================================= 17427# Checks for typedefs, structures, and compiler characteristics 17428# ============================================================= 17429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 17430$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 17431if ${ac_cv_header_stdbool_h+:} false; then : 17432 $as_echo_n "(cached) " >&6 17433else 17434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17435/* end confdefs.h. */ 17436 17437 #include <stdbool.h> 17438 #ifndef bool 17439 "error: bool is not defined" 17440 #endif 17441 #ifndef false 17442 "error: false is not defined" 17443 #endif 17444 #if false 17445 "error: false is not 0" 17446 #endif 17447 #ifndef true 17448 "error: true is not defined" 17449 #endif 17450 #if true != 1 17451 "error: true is not 1" 17452 #endif 17453 #ifndef __bool_true_false_are_defined 17454 "error: __bool_true_false_are_defined is not defined" 17455 #endif 17456 17457 struct s { _Bool s: 1; _Bool t; } s; 17458 17459 char a[true == 1 ? 1 : -1]; 17460 char b[false == 0 ? 1 : -1]; 17461 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 17462 char d[(bool) 0.5 == true ? 1 : -1]; 17463 /* See body of main program for 'e'. */ 17464 char f[(_Bool) 0.0 == false ? 1 : -1]; 17465 char g[true]; 17466 char h[sizeof (_Bool)]; 17467 char i[sizeof s.t]; 17468 enum { j = false, k = true, l = false * true, m = true * 256 }; 17469 /* The following fails for 17470 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 17471 _Bool n[m]; 17472 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 17473 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 17474 /* Catch a bug in an HP-UX C compiler. See 17475 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 17476 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 17477 */ 17478 _Bool q = true; 17479 _Bool *pq = &q; 17480 17481int 17482main () 17483{ 17484 17485 bool e = &s; 17486 *pq |= q; 17487 *pq |= ! q; 17488 /* Refer to every declared value, to avoid compiler optimizations. */ 17489 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 17490 + !m + !n + !o + !p + !q + !pq); 17491 17492 ; 17493 return 0; 17494} 17495_ACEOF 17496if ac_fn_cxx_try_compile "$LINENO"; then : 17497 ac_cv_header_stdbool_h=yes 17498else 17499 ac_cv_header_stdbool_h=no 17500fi 17501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17502fi 17503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 17504$as_echo "$ac_cv_header_stdbool_h" >&6; } 17505 ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 17506if test "x$ac_cv_type__Bool" = xyes; then : 17507 17508cat >>confdefs.h <<_ACEOF 17509#define HAVE__BOOL 1 17510_ACEOF 17511 17512 17513fi 17514 17515 17516if test $ac_cv_header_stdbool_h = yes; then 17517 17518$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 17519 17520fi 17521 17522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 17523$as_echo_n "checking for inline... " >&6; } 17524if ${ac_cv_c_inline+:} false; then : 17525 $as_echo_n "(cached) " >&6 17526else 17527 ac_cv_c_inline=no 17528for ac_kw in inline __inline__ __inline; do 17529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17530/* end confdefs.h. */ 17531#ifndef __cplusplus 17532typedef int foo_t; 17533static $ac_kw foo_t static_foo () {return 0; } 17534$ac_kw foo_t foo () {return 0; } 17535#endif 17536 17537_ACEOF 17538if ac_fn_cxx_try_compile "$LINENO"; then : 17539 ac_cv_c_inline=$ac_kw 17540fi 17541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17542 test "$ac_cv_c_inline" != no && break 17543done 17544 17545fi 17546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 17547$as_echo "$ac_cv_c_inline" >&6; } 17548 17549case $ac_cv_c_inline in 17550 inline | yes) ;; 17551 *) 17552 case $ac_cv_c_inline in 17553 no) ac_val=;; 17554 *) ac_val=$ac_cv_c_inline;; 17555 esac 17556 cat >>confdefs.h <<_ACEOF 17557#ifndef __cplusplus 17558#define inline $ac_val 17559#endif 17560_ACEOF 17561 ;; 17562esac 17563 17564ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 17565if test "x$ac_cv_type_mode_t" = xyes; then : 17566 17567else 17568 17569cat >>confdefs.h <<_ACEOF 17570#define mode_t int 17571_ACEOF 17572 17573fi 17574 17575ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 17576if test "x$ac_cv_type_size_t" = xyes; then : 17577 17578else 17579 17580cat >>confdefs.h <<_ACEOF 17581#define size_t unsigned int 17582_ACEOF 17583 17584fi 17585 17586 17587# The cast to long int works around a bug in the HP C Compiler 17588# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17589# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17590# This bug is HP SR number 8606223364. 17591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 17592$as_echo_n "checking size of void *... " >&6; } 17593if ${ac_cv_sizeof_void_p+:} false; then : 17594 $as_echo_n "(cached) " >&6 17595else 17596 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 17597 17598else 17599 if test "$ac_cv_type_void_p" = yes; then 17600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17602as_fn_error 77 "cannot compute sizeof (void *) 17603See \`config.log' for more details" "$LINENO" 5; } 17604 else 17605 ac_cv_sizeof_void_p=0 17606 fi 17607fi 17608 17609fi 17610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 17611$as_echo "$ac_cv_sizeof_void_p" >&6; } 17612 17613 17614 17615cat >>confdefs.h <<_ACEOF 17616#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 17617_ACEOF 17618 17619 17620CXXFLAGS="$CXXFLAGS -DSIZEOF_VOID_P=$ac_cv_sizeof_void_p" 17621 17622# ============================ 17623# Checks for library functions 17624# ============================ 17625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 17626$as_echo_n "checking for working strtod... " >&6; } 17627if ${ac_cv_func_strtod+:} false; then : 17628 $as_echo_n "(cached) " >&6 17629else 17630 if test "$cross_compiling" = yes; then : 17631 ac_cv_func_strtod=no 17632else 17633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17634/* end confdefs.h. */ 17635 17636$ac_includes_default 17637#ifndef strtod 17638double strtod (); 17639#endif 17640int 17641main() 17642{ 17643 { 17644 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 17645 char *string = " +69"; 17646 char *term; 17647 double value; 17648 value = strtod (string, &term); 17649 if (value != 69 || term != (string + 4)) 17650 return 1; 17651 } 17652 17653 { 17654 /* Under Solaris 2.4, strtod returns the wrong value for the 17655 terminating character under some conditions. */ 17656 char *string = "NaN"; 17657 char *term; 17658 strtod (string, &term); 17659 if (term != string && *(term - 1) == 0) 17660 return 1; 17661 } 17662 return 0; 17663} 17664 17665_ACEOF 17666if ac_fn_cxx_try_run "$LINENO"; then : 17667 ac_cv_func_strtod=yes 17668else 17669 ac_cv_func_strtod=no 17670fi 17671rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17672 conftest.$ac_objext conftest.beam conftest.$ac_ext 17673fi 17674 17675fi 17676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 17677$as_echo "$ac_cv_func_strtod" >&6; } 17678if test $ac_cv_func_strtod = no; then 17679 case " $LIBOBJS " in 17680 *" strtod.$ac_objext "* ) ;; 17681 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" 17682 ;; 17683esac 17684 17685ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow" 17686if test "x$ac_cv_func_pow" = xyes; then : 17687 17688fi 17689 17690if test $ac_cv_func_pow = no; then 17691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 17692$as_echo_n "checking for pow in -lm... " >&6; } 17693if ${ac_cv_lib_m_pow+:} false; then : 17694 $as_echo_n "(cached) " >&6 17695else 17696 ac_check_lib_save_LIBS=$LIBS 17697LIBS="-lm $LIBS" 17698cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17699/* end confdefs.h. */ 17700 17701/* Override any GCC internal prototype to avoid an error. 17702 Use char because int might match the return type of a GCC 17703 builtin and then its argument prototype would still apply. */ 17704#ifdef __cplusplus 17705extern "C" 17706#endif 17707char pow (); 17708int 17709main () 17710{ 17711return pow (); 17712 ; 17713 return 0; 17714} 17715_ACEOF 17716if ac_fn_cxx_try_link "$LINENO"; then : 17717 ac_cv_lib_m_pow=yes 17718else 17719 ac_cv_lib_m_pow=no 17720fi 17721rm -f core conftest.err conftest.$ac_objext \ 17722 conftest$ac_exeext conftest.$ac_ext 17723LIBS=$ac_check_lib_save_LIBS 17724fi 17725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 17726$as_echo "$ac_cv_lib_m_pow" >&6; } 17727if test "x$ac_cv_lib_m_pow" = xyes; then : 17728 POW_LIB=-lm 17729else 17730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 17731$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 17732fi 17733 17734fi 17735 17736fi 17737 17738for ac_func in gettimeofday 17739do : 17740 ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 17741if test "x$ac_cv_func_gettimeofday" = xyes; then : 17742 cat >>confdefs.h <<_ACEOF 17743#define HAVE_GETTIMEOFDAY 1 17744_ACEOF 17745 17746fi 17747done 17748 17749 17750$as_echo "#define _REENTRANT /**/" >>confdefs.h 17751 17752 17753$as_echo "#define BOOST_ALL_NO_LIB /**/" >>confdefs.h 17754 17755 17756# ====================== 17757# Set required ixion api 17758# ====================== 17759IXION_REQUIRED_API_VERSION=0.16 17760 17761 17762# ============= 17763# Set orcus api 17764# ============= 17765ORCUS_API_VERSION=0.16 17766ORCUS_MAJOR_VERSION=0 17767ORCUS_MINOR_VERSION=16 17768ORCUS_MICRO_VERSION=1 17769 17770 17771 17772 17773 17774echo "$as_me: this is boost.m4 serial 27" >&5 17775boost_save_IFS=$IFS 17776boost_version_req=1.36 17777IFS=. 17778set x $boost_version_req 0 0 0 17779IFS=$boost_save_IFS 17780shift 17781boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"` 17782boost_version_req_string=$1.$2.$3 17783 17784# Check whether --with-boost was given. 17785if test "${with_boost+set}" = set; then : 17786 withval=$with_boost; 17787fi 17788# If BOOST_ROOT is set and the user has not provided a value to 17789# --with-boost, then treat BOOST_ROOT as if it the user supplied it. 17790if test x"$BOOST_ROOT" != x; then 17791 if test x"$with_boost" = x; then 17792 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5 17793$as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;} 17794 with_boost=$BOOST_ROOT 17795 else 17796 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5 17797$as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;} 17798 fi 17799fi 17800DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'" 17801boost_save_CPPFLAGS=$CPPFLAGS 17802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5 17803$as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; } 17804if ${boost_cv_inc_path+:} false; then : 17805 $as_echo_n "(cached) " >&6 17806else 17807 boost_cv_inc_path=no 17808ac_ext=cpp 17809ac_cpp='$CXXCPP $CPPFLAGS' 17810ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17811ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17812ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17814/* end confdefs.h. */ 17815#include <boost/version.hpp> 17816#if !defined BOOST_VERSION 17817# error BOOST_VERSION is not defined 17818#elif BOOST_VERSION < $boost_version_req 17819# error Boost headers version < $boost_version_req 17820#endif 17821 17822int 17823main () 17824{ 17825 17826 ; 17827 return 0; 17828} 17829_ACEOF 17830 # If the user provided a value to --with-boost, use it and only it. 17831 case $with_boost in #( 17832 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \ 17833 /usr/include C:/Boost/include;; #( 17834 *) set x "$with_boost/include" "$with_boost";; 17835 esac 17836 shift 17837 for boost_dir 17838 do 17839 # Without --layout=system, Boost (or at least some versions) installs 17840 # itself in <prefix>/include/boost-<version>. This inner loop helps to 17841 # find headers in such directories. 17842 # 17843 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version 17844 # order followed by ${boost_dir}. The final '.' is a sentinel for 17845 # searching $boost_dir" itself. Entries are whitespace separated. 17846 # 17847 # I didn't indent this loop on purpose (to avoid over-indented code) 17848 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \ 17849 && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \ 17850 && echo .` 17851 for boost_inc in $boost_layout_system_search_list 17852 do 17853 if test x"$boost_inc" != x.; then 17854 boost_inc="$boost_dir/$boost_inc" 17855 else 17856 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list 17857 fi 17858 if test x"$boost_inc" != x; then 17859 # We are going to check whether the version of Boost installed 17860 # in $boost_inc is usable by running a compilation that 17861 # #includes it. But if we pass a -I/some/path in which Boost 17862 # is not installed, the compiler will just skip this -I and 17863 # use other locations (either from CPPFLAGS, or from its list 17864 # of system include directories). As a result we would use 17865 # header installed on the machine instead of the /some/path 17866 # specified by the user. So in that precise case (trying 17867 # $boost_inc), make sure the version.hpp exists. 17868 # 17869 # Use test -e as there can be symlinks. 17870 test -e "$boost_inc/boost/version.hpp" || continue 17871 CPPFLAGS="$CPPFLAGS -I$boost_inc" 17872 fi 17873 if ac_fn_cxx_try_compile "$LINENO"; then : 17874 boost_cv_inc_path=yes 17875else 17876 boost_cv_version=no 17877fi 17878rm -f core conftest.err conftest.$ac_objext 17879 if test x"$boost_cv_inc_path" = xyes; then 17880 if test x"$boost_inc" != x; then 17881 boost_cv_inc_path=$boost_inc 17882 fi 17883 break 2 17884 fi 17885 done 17886 done 17887ac_ext=cpp 17888ac_cpp='$CXXCPP $CPPFLAGS' 17889ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17890ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17891ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17892 17893fi 17894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5 17895$as_echo "$boost_cv_inc_path" >&6; } 17896 case $boost_cv_inc_path in #( 17897 no) 17898 boost_errmsg="cannot find Boost headers version >= $boost_version_req_string" 17899 as_fn_error $? "$boost_errmsg" "$LINENO" 5 17900 17901 ;;#( 17902 yes) 17903 BOOST_CPPFLAGS= 17904 ;;#( 17905 *) 17906 BOOST_CPPFLAGS="-I$boost_cv_inc_path" 17907 ;; 17908 esac 17909 if test x"$boost_cv_inc_path" != xno; then 17910 17911$as_echo "#define HAVE_BOOST 1" >>confdefs.h 17912 17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5 17914$as_echo_n "checking for Boost's header version... " >&6; } 17915if ${boost_cv_lib_version+:} false; then : 17916 $as_echo_n "(cached) " >&6 17917else 17918 ac_ext=cpp 17919ac_cpp='$CXXCPP $CPPFLAGS' 17920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17923cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17924/* end confdefs.h. */ 17925#include <boost/version.hpp> 17926boost-lib-version = BOOST_LIB_VERSION 17927_ACEOF 17928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17929 grep -v '#' | 17930 grep -v '^[[:space:]]*$' | 17931 tr -d '\r' | 17932 tr -s '\n' ' ' | 17933 $SED -n -e "/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1; then : 17934 boost_cv_lib_version=`cat conftest.i` 17935fi 17936rm -rf conftest* 17937ac_ext=cpp 17938ac_cpp='$CXXCPP $CPPFLAGS' 17939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17942 17943fi 17944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5 17945$as_echo "$boost_cv_lib_version" >&6; } 17946 # e.g. "134" for 1_34_1 or "135" for 1_35 17947 boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'` 17948 case $boost_major_version in #( 17949 '' | *[!0-9]*) 17950 as_fn_error $? "invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5 17951 ;; 17952 esac 17953fi 17954CPPFLAGS=$boost_save_CPPFLAGS 17955 17956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5 17957$as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; } 17958if ${boost_cv_lib_tag+:} false; then : 17959 $as_echo_n "(cached) " >&6 17960else 17961 boost_cv_lib_tag=unknown 17962if test x$boost_cv_inc_path != xno; then 17963 ac_ext=cpp 17964ac_cpp='$CXXCPP $CPPFLAGS' 17965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17968 # The following tests are mostly inspired by boost/config/auto_link.hpp 17969 # The list is sorted to most recent/common to oldest compiler (in order 17970 # to increase the likelihood of finding the right compiler with the 17971 # least number of compilation attempt). 17972 # Beware that some tests are sensible to the order (for instance, we must 17973 # look for MinGW before looking for GCC3). 17974 # I used one compilation test per compiler with a #error to recognize 17975 # each compiler so that it works even when cross-compiling (let me know 17976 # if you know a better approach). 17977 # Known missing tags (known from Boost's tools/build/v2/tools/common.jam): 17978 # como, edg, kcc, bck, mp, sw, tru, xlc 17979 # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines 17980 # the same defines as GCC's). 17981 for i in \ 17982 "defined __GNUC__ && __GNUC__ == 8 && __GNUC_MINOR__ == 2 && !defined __ICC && \ 17983 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 17984 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw82" \ 17985 "defined __GNUC__ && __GNUC__ == 8 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc82" \ 17986 "defined __GNUC__ && __GNUC__ == 8 && __GNUC_MINOR__ == 1 && !defined __ICC && \ 17987 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 17988 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw81" \ 17989 "defined __GNUC__ && __GNUC__ == 8 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc81" \ 17990 "defined __GNUC__ && __GNUC__ == 8 && __GNUC_MINOR__ == 0 && !defined __ICC && \ 17991 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 17992 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw80" \ 17993 "defined __GNUC__ && __GNUC__ == 8 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc80" \ 17994 "defined __GNUC__ && __GNUC__ == 7 && __GNUC_MINOR__ == 3 && !defined __ICC && \ 17995 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 17996 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw73" \ 17997 "defined __GNUC__ && __GNUC__ == 7 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc73" \ 17998 "defined __GNUC__ && __GNUC__ == 7 && __GNUC_MINOR__ == 2 && !defined __ICC && \ 17999 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18000 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw72" \ 18001 "defined __GNUC__ && __GNUC__ == 7 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc72" \ 18002 "defined __GNUC__ && __GNUC__ == 7 && __GNUC_MINOR__ == 1 && !defined __ICC && \ 18003 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18004 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw71" \ 18005 "defined __GNUC__ && __GNUC__ == 7 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc71" \ 18006 "defined __GNUC__ && __GNUC__ == 7 && __GNUC_MINOR__ == 0 && !defined __ICC && \ 18007 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18008 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw70" \ 18009 "defined __GNUC__ && __GNUC__ == 7 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc70" \ 18010 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 4 && !defined __ICC && \ 18011 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18012 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw64" \ 18013 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc64" \ 18014 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 3 && !defined __ICC && \ 18015 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18016 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw63" \ 18017 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc63" \ 18018 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 2 && !defined __ICC && \ 18019 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18020 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw62" \ 18021 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc62" \ 18022 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 1 && !defined __ICC && \ 18023 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18024 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw61" \ 18025 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc61" \ 18026 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 0 && !defined __ICC && \ 18027 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18028 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw60" \ 18029 "defined __GNUC__ && __GNUC__ == 6 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc60" \ 18030 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 5 && !defined __ICC && \ 18031 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18032 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw55" \ 18033 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc55" \ 18034 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 4 && !defined __ICC && \ 18035 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18036 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw54" \ 18037 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc54" \ 18038 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC && \ 18039 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18040 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw53" \ 18041 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc53" \ 18042 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC && \ 18043 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18044 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw52" \ 18045 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc52" \ 18046 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC && \ 18047 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18048 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw51" \ 18049 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc51" \ 18050 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC && \ 18051 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18052 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw50" \ 18053 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc50" \ 18054 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC && \ 18055 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18056 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw410" \ 18057 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC @ gcc410" \ 18058 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC && \ 18059 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18060 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw49" \ 18061 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC @ gcc49" \ 18062 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC && \ 18063 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18064 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw48" \ 18065 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \ 18066 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC && \ 18067 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18068 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw47" \ 18069 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \ 18070 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC && \ 18071 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18072 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw46" \ 18073 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \ 18074 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC && \ 18075 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18076 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw45" \ 18077 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \ 18078 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC && \ 18079 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18080 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw44" \ 18081 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \ 18082 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC && \ 18083 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18084 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw43" \ 18085 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \ 18086 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC && \ 18087 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18088 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw42" \ 18089 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \ 18090 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC && \ 18091 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18092 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw41" \ 18093 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \ 18094 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC && \ 18095 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18096 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw40" \ 18097 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \ 18098 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \ 18099 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 18100 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \ 18101 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \ 18102 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \ 18103 "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \ 18104 "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \ 18105 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \ 18106 "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \ 18107 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \ 18108 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \ 18109 "defined __BORLANDC__ @ bcb" \ 18110 "defined __ICC && (defined __unix || defined ) @ il" \ 18111 "defined __ICL @ iw" \ 18112 "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \ 18113 "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \ 18114 "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \ 18115 "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \ 18116 "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \ 18117 "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8" 18118 do 18119 boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '` 18120 boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'` 18121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18122/* end confdefs.h. */ 18123 18124#if $boost_tag_test 18125/* OK */ 18126#else 18127# error $boost_tag_test 18128#endif 18129 18130int 18131main () 18132{ 18133 18134 ; 18135 return 0; 18136} 18137_ACEOF 18138if ac_fn_cxx_try_compile "$LINENO"; then : 18139 boost_cv_lib_tag=$boost_tag; break 18140fi 18141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18142 done 18143ac_ext=cpp 18144ac_cpp='$CXXCPP $CPPFLAGS' 18145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18148 case $boost_cv_lib_tag in #( 18149 # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed 18150 # to "gcc41" for instance. 18151 *-gcc | *'-gcc ') :;; #( Don't re-add -gcc: it's already in there. 18152 gcc*) 18153 boost_tag_x= 18154 case $host_os in #( 18155 darwin*) 18156 if test $boost_major_version -ge 136; then 18157 # The `x' added in r46793 of Boost. 18158 boost_tag_x=x 18159 fi;; 18160 esac 18161 # We can specify multiple tags in this variable because it's used by 18162 # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ... 18163 boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc" 18164 ;; #( 18165 unknown) 18166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5 18167$as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;} 18168 boost_cv_lib_tag= 18169 ;; 18170 esac 18171fi 18172fi 18173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5 18174$as_echo "$boost_cv_lib_tag" >&6; } 18175# Check whether --enable-static-boost was given. 18176if test "${enable_static_boost+set}" = set; then : 18177 enableval=$enable_static_boost; enable_static_boost=yes 18178else 18179 enable_static_boost=no 18180fi 18181 18182# Check whether we do better use `mt' even though we weren't ask to. 18183ac_ext=cpp 18184ac_cpp='$CXXCPP $CPPFLAGS' 18185ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18186ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18187ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18188cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18189/* end confdefs.h. */ 18190 18191#if defined _REENTRANT || defined _MT || defined __MT__ 18192/* use -mt */ 18193#else 18194# error MT not needed 18195#endif 18196 18197int 18198main () 18199{ 18200 18201 ; 18202 return 0; 18203} 18204_ACEOF 18205if ac_fn_cxx_try_compile "$LINENO"; then : 18206 boost_guess_use_mt=: 18207else 18208 boost_guess_use_mt=false 18209fi 18210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18211ac_ext=cpp 18212ac_cpp='$CXXCPP $CPPFLAGS' 18213ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18214ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18215ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18216 18217# Do we have to check for Boost.System? This link-time dependency was 18218# added as of 1.35.0. If we have a version <1.35, we must not attempt to 18219# find Boost.System as it didn't exist by then. 18220if test $boost_major_version -ge 135; then 18221 if test x"$boost_cv_inc_path" = xno; then 18222 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5 18223$as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;} 18224else 18225ac_ext=cpp 18226ac_cpp='$CXXCPP $CPPFLAGS' 18227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18230if test x"$boost_cv_inc_path" = xno; then 18231 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5 18232$as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;} 18233else 18234ac_ext=cpp 18235ac_cpp='$CXXCPP $CPPFLAGS' 18236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18239boost_save_CPPFLAGS=$CPPFLAGS 18240CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 18241ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default" 18242if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes; then : 18243 18244$as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h 18245 18246else 18247 as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5 18248fi 18249 18250 18251CPPFLAGS=$boost_save_CPPFLAGS 18252ac_ext=cpp 18253ac_cpp='$CXXCPP $CPPFLAGS' 18254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18257fi 18258 18259boost_save_CPPFLAGS=$CPPFLAGS 18260CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 18261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5 18262$as_echo_n "checking for the Boost system library... " >&6; } 18263if ${boost_cv_lib_system+:} false; then : 18264 $as_echo_n "(cached) " >&6 18265else 18266 boost_cv_lib_system=no 18267 case "" in #( 18268 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #( 18269 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #( 18270 (*) boost_mt=; boost_rtopt=;; 18271 esac 18272 if test $enable_static_boost = yes; then 18273 boost_rtopt="s$boost_rtopt" 18274 fi 18275 # Find the proper debug variant depending on what we've been asked to find. 18276 case $boost_rtopt in #( 18277 (*d*) boost_rt_d=$boost_rtopt;; #( 18278 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn') 18279 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #( 18280 (*) boost_rt_d='-d';; 18281 esac 18282 # If the PREFERRED-RT-OPT are not empty, prepend a `-'. 18283 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt" 18284 $boost_guess_use_mt && boost_mt=-mt 18285 # Look for the abs path the static archive. 18286 # $libext is computed by Libtool but let's make sure it's non empty. 18287 test -z "$libext" && 18288 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5 18289 boost_save_ac_objext=$ac_objext 18290 # Generate the test file. 18291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18292/* end confdefs.h. */ 18293 18294#include <boost/system/error_code.hpp> 18295 18296int 18297main () 18298{ 18299boost::system::error_code e; e.clear(); 18300 ; 18301 return 0; 18302} 18303_ACEOF 18304 if ac_fn_cxx_try_compile "$LINENO"; then : 18305 ac_objext=do_not_rm_me_plz 18306else 18307 as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5 18308fi 18309rm -f core conftest.err conftest.$ac_objext 18310 ac_objext=$boost_save_ac_objext 18311 boost_failed_libs= 18312# Don't bother to ident the following nested for loops, only the 2 18313# innermost ones matter. 18314for boost_lib_ in system; do 18315for boost_tag_ in -$boost_cv_lib_tag ''; do 18316for boost_ver_ in -$boost_cv_lib_version ''; do 18317for boost_mt_ in $boost_mt -mt ''; do 18318for boost_rtopt_ in $boost_rtopt '' -d; do 18319 for boost_full_suffix in \ 18320 $boost_last_suffix \ 18321 x$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \ 18322 x$boost_tag_$boost_rtopt_$boost_ver_ \ 18323 x$boost_tag_$boost_mt_$boost_ver_ \ 18324 x$boost_tag_$boost_ver_ 18325 do 18326 boost_real_suffix=`echo "$boost_full_suffix" | sed 's/^x//'` 18327 boost_lib="boost_$boost_lib_$boost_real_suffix" 18328 # Avoid testing twice the same lib 18329 case $boost_failed_libs in #( 18330 (*@$boost_lib@*) continue;; 18331 esac 18332 # If with_boost is empty, we'll search in /lib first, which is not quite 18333 # right so instead we'll try to a location based on where the headers are. 18334 boost_tmp_lib=$with_boost 18335 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} 18336 for boost_ldpath in "$boost_tmp_lib/lib" '' \ 18337 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \ 18338 "$with_boost" C:/Boost/lib /lib* 18339 do 18340 # Don't waste time with directories that don't exist. 18341 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then 18342 continue 18343 fi 18344 boost_save_LDFLAGS=$LDFLAGS 18345 # Are we looking for a static library? 18346 case $boost_ldpath:$boost_rtopt_ in #( 18347 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) 18348 boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext" 18349 test -e "$boost_cv_lib_system_LIBS" || continue;; #( 18350 (*) # No: use -lboost_foo to find the shared library. 18351 boost_cv_lib_system_LIBS="-l$boost_lib";; 18352 esac 18353 boost_save_LIBS=$LIBS 18354 LIBS="$boost_cv_lib_system_LIBS $LIBS" 18355 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath" 18356 rm -f conftest$ac_exeext 18357boost_save_ac_ext=$ac_ext 18358boost_use_source=: 18359# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 18360# tries to link the existing object file instead of compiling from source. 18361test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 18362 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 18363if { { ac_try="$ac_link" 18364case "(($ac_try" in 18365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18366 *) ac_try_echo=$ac_try;; 18367esac 18368eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18369$as_echo "$ac_try_echo"; } >&5 18370 (eval "$ac_link") 2>conftest.err 18371 ac_status=$? 18372 if test -s conftest.err; then 18373 grep -v '^ *+' conftest.err >conftest.er1 18374 cat conftest.er1 >&5 18375 mv -f conftest.er1 conftest.err 18376 fi 18377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18378 test $ac_status = 0; } && { 18379 test -z "$ac_cxx_werror_flag" || 18380 test ! -s conftest.err 18381 } && test -s conftest$ac_exeext && { 18382 test "$cross_compiling" = yes || 18383 $as_executable_p conftest$ac_exeext 18384 }; then : 18385 boost_cv_lib_system=yes 18386else 18387 if $boost_use_source; then 18388 $as_echo "$as_me: failed program was:" >&5 18389sed 's/^/| /' conftest.$ac_ext >&5 18390 18391 fi 18392 boost_cv_lib_system=no 18393fi 18394ac_objext=$boost_save_ac_objext 18395ac_ext=$boost_save_ac_ext 18396rm -f core conftest.err conftest_ipa8_conftest.oo \ 18397 conftest$ac_exeext 18398 ac_objext=$boost_save_ac_objext 18399 LDFLAGS=$boost_save_LDFLAGS 18400 LIBS=$boost_save_LIBS 18401 if test x"$boost_cv_lib_system" = xyes; then 18402 # Check or used cached result of whether or not using -R or 18403 # -rpath makes sense. Some implementations of ld, such as for 18404 # Mac OSX, require -rpath but -R is the flag known to work on 18405 # other systems. https://github.com/tsuna/boost.m4/issues/19 18406 if ${boost_cv_rpath_link_ldflag+:} false; then : 18407 $as_echo_n "(cached) " >&6 18408else 18409 case $boost_ldpath in 18410 '') # Nothing to do. 18411 boost_cv_rpath_link_ldflag= 18412 boost_rpath_link_ldflag_found=yes;; 18413 *) 18414 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do 18415 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 18416 LIBS="$boost_cv_lib_system_LIBS $boost_save_LIBS" 18417 rm -f conftest$ac_exeext 18418boost_save_ac_ext=$ac_ext 18419boost_use_source=: 18420# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 18421# tries to link the existing object file instead of compiling from source. 18422test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 18423 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 18424if { { ac_try="$ac_link" 18425case "(($ac_try" in 18426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18427 *) ac_try_echo=$ac_try;; 18428esac 18429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18430$as_echo "$ac_try_echo"; } >&5 18431 (eval "$ac_link") 2>conftest.err 18432 ac_status=$? 18433 if test -s conftest.err; then 18434 grep -v '^ *+' conftest.err >conftest.er1 18435 cat conftest.er1 >&5 18436 mv -f conftest.er1 conftest.err 18437 fi 18438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18439 test $ac_status = 0; } && { 18440 test -z "$ac_cxx_werror_flag" || 18441 test ! -s conftest.err 18442 } && test -s conftest$ac_exeext && { 18443 test "$cross_compiling" = yes || 18444 $as_executable_p conftest$ac_exeext 18445 }; then : 18446 boost_rpath_link_ldflag_found=yes 18447 break 18448else 18449 if $boost_use_source; then 18450 $as_echo "$as_me: failed program was:" >&5 18451sed 's/^/| /' conftest.$ac_ext >&5 18452 18453 fi 18454 boost_rpath_link_ldflag_found=no 18455fi 18456ac_objext=$boost_save_ac_objext 18457ac_ext=$boost_save_ac_ext 18458rm -f core conftest.err conftest_ipa8_conftest.oo \ 18459 conftest$ac_exeext 18460 done 18461 ;; 18462 esac 18463 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then : 18464 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5 18465fi 18466 LDFLAGS=$boost_save_LDFLAGS 18467 LIBS=$boost_save_LIBS 18468 18469fi 18470 18471 test x"$boost_ldpath" != x && 18472 boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 18473 boost_cv_lib_system_LDPATH="$boost_ldpath" 18474 boost_last_suffix="$boost_full_suffix" 18475 break 7 18476 else 18477 boost_failed_libs="$boost_failed_libs@$boost_lib@" 18478 fi 18479 done 18480 done 18481done 18482done 18483done 18484done 18485done # boost_lib_ 18486rm -f conftest.$ac_objext 18487 18488fi 18489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5 18490$as_echo "$boost_cv_lib_system" >&6; } 18491case $boost_cv_lib_system in #( 18492 (yes) $as_echo "$as_me: failed program was:" >&5 18493sed 's/^/| /' conftest.$ac_ext >&5 18494 18495 18496$as_echo "#define HAVE_BOOST_SYSTEM 1" >>confdefs.h 18497 BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS 18498 BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH 18499 BOOST_LDPATH=$boost_cv_lib_system_LDPATH 18500 BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS 18501 ;; 18502 (no) $as_echo "$as_me: failed program was:" >&5 18503sed 's/^/| /' conftest.$ac_ext >&5 18504 18505 as_fn_error $? "cannot find flags to link with the Boost system library (libboost-system)" "$LINENO" 5 18506 ;; 18507esac 18508CPPFLAGS=$boost_save_CPPFLAGS 18509ac_ext=cpp 18510ac_cpp='$CXXCPP $CPPFLAGS' 18511ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18512ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18513ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18514fi 18515 18516 18517 18518fi # end of the Boost.System check. 18519boost_filesystem_save_LIBS=$LIBS 18520boost_filesystem_save_LDFLAGS=$LDFLAGS 18521LIBS="$LIBS $BOOST_SYSTEM_LIBS" 18522LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS" 18523if test x"$boost_cv_inc_path" = xno; then 18524 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost filesystem library" >&5 18525$as_echo "$as_me: Boost not available, not searching for the Boost filesystem library" >&6;} 18526else 18527ac_ext=cpp 18528ac_cpp='$CXXCPP $CPPFLAGS' 18529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18532if test x"$boost_cv_inc_path" = xno; then 18533 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/filesystem/path.hpp" >&5 18534$as_echo "$as_me: Boost not available, not searching for boost/filesystem/path.hpp" >&6;} 18535else 18536ac_ext=cpp 18537ac_cpp='$CXXCPP $CPPFLAGS' 18538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18541boost_save_CPPFLAGS=$CPPFLAGS 18542CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 18543ac_fn_cxx_check_header_mongrel "$LINENO" "boost/filesystem/path.hpp" "ac_cv_header_boost_filesystem_path_hpp" "$ac_includes_default" 18544if test "x$ac_cv_header_boost_filesystem_path_hpp" = xyes; then : 18545 18546$as_echo "#define HAVE_BOOST_FILESYSTEM_PATH_HPP 1" >>confdefs.h 18547 18548else 18549 as_fn_error $? "cannot find boost/filesystem/path.hpp" "$LINENO" 5 18550fi 18551 18552 18553CPPFLAGS=$boost_save_CPPFLAGS 18554ac_ext=cpp 18555ac_cpp='$CXXCPP $CPPFLAGS' 18556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18559fi 18560 18561boost_save_CPPFLAGS=$CPPFLAGS 18562CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 18563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost filesystem library" >&5 18564$as_echo_n "checking for the Boost filesystem library... " >&6; } 18565if ${boost_cv_lib_filesystem+:} false; then : 18566 $as_echo_n "(cached) " >&6 18567else 18568 boost_cv_lib_filesystem=no 18569 case "" in #( 18570 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #( 18571 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #( 18572 (*) boost_mt=; boost_rtopt=;; 18573 esac 18574 if test $enable_static_boost = yes; then 18575 boost_rtopt="s$boost_rtopt" 18576 fi 18577 # Find the proper debug variant depending on what we've been asked to find. 18578 case $boost_rtopt in #( 18579 (*d*) boost_rt_d=$boost_rtopt;; #( 18580 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn') 18581 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #( 18582 (*) boost_rt_d='-d';; 18583 esac 18584 # If the PREFERRED-RT-OPT are not empty, prepend a `-'. 18585 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt" 18586 $boost_guess_use_mt && boost_mt=-mt 18587 # Look for the abs path the static archive. 18588 # $libext is computed by Libtool but let's make sure it's non empty. 18589 test -z "$libext" && 18590 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5 18591 boost_save_ac_objext=$ac_objext 18592 # Generate the test file. 18593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18594/* end confdefs.h. */ 18595 18596#include <boost/filesystem/path.hpp> 18597 18598int 18599main () 18600{ 18601boost::filesystem::path p; 18602 ; 18603 return 0; 18604} 18605_ACEOF 18606 if ac_fn_cxx_try_compile "$LINENO"; then : 18607 ac_objext=do_not_rm_me_plz 18608else 18609 as_fn_error $? "cannot compile a test that uses Boost filesystem" "$LINENO" 5 18610fi 18611rm -f core conftest.err conftest.$ac_objext 18612 ac_objext=$boost_save_ac_objext 18613 boost_failed_libs= 18614# Don't bother to ident the following nested for loops, only the 2 18615# innermost ones matter. 18616for boost_lib_ in filesystem; do 18617for boost_tag_ in -$boost_cv_lib_tag ''; do 18618for boost_ver_ in -$boost_cv_lib_version ''; do 18619for boost_mt_ in $boost_mt -mt ''; do 18620for boost_rtopt_ in $boost_rtopt '' -d; do 18621 for boost_full_suffix in \ 18622 $boost_last_suffix \ 18623 x$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \ 18624 x$boost_tag_$boost_rtopt_$boost_ver_ \ 18625 x$boost_tag_$boost_mt_$boost_ver_ \ 18626 x$boost_tag_$boost_ver_ 18627 do 18628 boost_real_suffix=`echo "$boost_full_suffix" | sed 's/^x//'` 18629 boost_lib="boost_$boost_lib_$boost_real_suffix" 18630 # Avoid testing twice the same lib 18631 case $boost_failed_libs in #( 18632 (*@$boost_lib@*) continue;; 18633 esac 18634 # If with_boost is empty, we'll search in /lib first, which is not quite 18635 # right so instead we'll try to a location based on where the headers are. 18636 boost_tmp_lib=$with_boost 18637 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} 18638 for boost_ldpath in "$boost_tmp_lib/lib" '' \ 18639 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \ 18640 "$with_boost" C:/Boost/lib /lib* 18641 do 18642 # Don't waste time with directories that don't exist. 18643 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then 18644 continue 18645 fi 18646 boost_save_LDFLAGS=$LDFLAGS 18647 # Are we looking for a static library? 18648 case $boost_ldpath:$boost_rtopt_ in #( 18649 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) 18650 boost_cv_lib_filesystem_LIBS="$boost_ldpath/lib$boost_lib.$libext" 18651 test -e "$boost_cv_lib_filesystem_LIBS" || continue;; #( 18652 (*) # No: use -lboost_foo to find the shared library. 18653 boost_cv_lib_filesystem_LIBS="-l$boost_lib";; 18654 esac 18655 boost_save_LIBS=$LIBS 18656 LIBS="$boost_cv_lib_filesystem_LIBS $LIBS" 18657 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath" 18658 rm -f conftest$ac_exeext 18659boost_save_ac_ext=$ac_ext 18660boost_use_source=: 18661# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 18662# tries to link the existing object file instead of compiling from source. 18663test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 18664 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 18665if { { ac_try="$ac_link" 18666case "(($ac_try" in 18667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18668 *) ac_try_echo=$ac_try;; 18669esac 18670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18671$as_echo "$ac_try_echo"; } >&5 18672 (eval "$ac_link") 2>conftest.err 18673 ac_status=$? 18674 if test -s conftest.err; then 18675 grep -v '^ *+' conftest.err >conftest.er1 18676 cat conftest.er1 >&5 18677 mv -f conftest.er1 conftest.err 18678 fi 18679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18680 test $ac_status = 0; } && { 18681 test -z "$ac_cxx_werror_flag" || 18682 test ! -s conftest.err 18683 } && test -s conftest$ac_exeext && { 18684 test "$cross_compiling" = yes || 18685 $as_executable_p conftest$ac_exeext 18686 }; then : 18687 boost_cv_lib_filesystem=yes 18688else 18689 if $boost_use_source; then 18690 $as_echo "$as_me: failed program was:" >&5 18691sed 's/^/| /' conftest.$ac_ext >&5 18692 18693 fi 18694 boost_cv_lib_filesystem=no 18695fi 18696ac_objext=$boost_save_ac_objext 18697ac_ext=$boost_save_ac_ext 18698rm -f core conftest.err conftest_ipa8_conftest.oo \ 18699 conftest$ac_exeext 18700 ac_objext=$boost_save_ac_objext 18701 LDFLAGS=$boost_save_LDFLAGS 18702 LIBS=$boost_save_LIBS 18703 if test x"$boost_cv_lib_filesystem" = xyes; then 18704 # Check or used cached result of whether or not using -R or 18705 # -rpath makes sense. Some implementations of ld, such as for 18706 # Mac OSX, require -rpath but -R is the flag known to work on 18707 # other systems. https://github.com/tsuna/boost.m4/issues/19 18708 if ${boost_cv_rpath_link_ldflag+:} false; then : 18709 $as_echo_n "(cached) " >&6 18710else 18711 case $boost_ldpath in 18712 '') # Nothing to do. 18713 boost_cv_rpath_link_ldflag= 18714 boost_rpath_link_ldflag_found=yes;; 18715 *) 18716 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do 18717 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 18718 LIBS="$boost_cv_lib_filesystem_LIBS $boost_save_LIBS" 18719 rm -f conftest$ac_exeext 18720boost_save_ac_ext=$ac_ext 18721boost_use_source=: 18722# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 18723# tries to link the existing object file instead of compiling from source. 18724test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 18725 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 18726if { { ac_try="$ac_link" 18727case "(($ac_try" in 18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18729 *) ac_try_echo=$ac_try;; 18730esac 18731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18732$as_echo "$ac_try_echo"; } >&5 18733 (eval "$ac_link") 2>conftest.err 18734 ac_status=$? 18735 if test -s conftest.err; then 18736 grep -v '^ *+' conftest.err >conftest.er1 18737 cat conftest.er1 >&5 18738 mv -f conftest.er1 conftest.err 18739 fi 18740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18741 test $ac_status = 0; } && { 18742 test -z "$ac_cxx_werror_flag" || 18743 test ! -s conftest.err 18744 } && test -s conftest$ac_exeext && { 18745 test "$cross_compiling" = yes || 18746 $as_executable_p conftest$ac_exeext 18747 }; then : 18748 boost_rpath_link_ldflag_found=yes 18749 break 18750else 18751 if $boost_use_source; then 18752 $as_echo "$as_me: failed program was:" >&5 18753sed 's/^/| /' conftest.$ac_ext >&5 18754 18755 fi 18756 boost_rpath_link_ldflag_found=no 18757fi 18758ac_objext=$boost_save_ac_objext 18759ac_ext=$boost_save_ac_ext 18760rm -f core conftest.err conftest_ipa8_conftest.oo \ 18761 conftest$ac_exeext 18762 done 18763 ;; 18764 esac 18765 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then : 18766 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5 18767fi 18768 LDFLAGS=$boost_save_LDFLAGS 18769 LIBS=$boost_save_LIBS 18770 18771fi 18772 18773 test x"$boost_ldpath" != x && 18774 boost_cv_lib_filesystem_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 18775 boost_cv_lib_filesystem_LDPATH="$boost_ldpath" 18776 boost_last_suffix="$boost_full_suffix" 18777 break 7 18778 else 18779 boost_failed_libs="$boost_failed_libs@$boost_lib@" 18780 fi 18781 done 18782 done 18783done 18784done 18785done 18786done 18787done # boost_lib_ 18788rm -f conftest.$ac_objext 18789 18790fi 18791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_filesystem" >&5 18792$as_echo "$boost_cv_lib_filesystem" >&6; } 18793case $boost_cv_lib_filesystem in #( 18794 (yes) $as_echo "$as_me: failed program was:" >&5 18795sed 's/^/| /' conftest.$ac_ext >&5 18796 18797 18798$as_echo "#define HAVE_BOOST_FILESYSTEM 1" >>confdefs.h 18799 BOOST_FILESYSTEM_LDFLAGS=$boost_cv_lib_filesystem_LDFLAGS 18800 BOOST_FILESYSTEM_LDPATH=$boost_cv_lib_filesystem_LDPATH 18801 BOOST_LDPATH=$boost_cv_lib_filesystem_LDPATH 18802 BOOST_FILESYSTEM_LIBS=$boost_cv_lib_filesystem_LIBS 18803 ;; 18804 (no) $as_echo "$as_me: failed program was:" >&5 18805sed 's/^/| /' conftest.$ac_ext >&5 18806 18807 as_fn_error $? "cannot find flags to link with the Boost filesystem library (libboost-filesystem)" "$LINENO" 5 18808 ;; 18809esac 18810CPPFLAGS=$boost_save_CPPFLAGS 18811ac_ext=cpp 18812ac_cpp='$CXXCPP $CPPFLAGS' 18813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18816fi 18817 18818if test $enable_static_boost = yes && test $boost_major_version -ge 135; then 18819 BOOST_FILESYSTEM_LIBS="$BOOST_FILESYSTEM_LIBS $BOOST_SYSTEM_LIBS" 18820fi 18821LIBS=$boost_filesystem_save_LIBS 18822LDFLAGS=$boost_filesystem_save_LDFLAGS 18823 18824 18825if test x"$boost_cv_inc_path" = xno; then 18826 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5 18827$as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;} 18828else 18829ac_ext=cpp 18830ac_cpp='$CXXCPP $CPPFLAGS' 18831ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18832ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18833ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18834if test x"$boost_cv_inc_path" = xno; then 18835 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5 18836$as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;} 18837else 18838ac_ext=cpp 18839ac_cpp='$CXXCPP $CPPFLAGS' 18840ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18841ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18842ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18843boost_save_CPPFLAGS=$CPPFLAGS 18844CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 18845ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default" 18846if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes; then : 18847 18848$as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h 18849 18850else 18851 as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5 18852fi 18853 18854 18855CPPFLAGS=$boost_save_CPPFLAGS 18856ac_ext=cpp 18857ac_cpp='$CXXCPP $CPPFLAGS' 18858ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18859ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18860ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18861fi 18862 18863boost_save_CPPFLAGS=$CPPFLAGS 18864CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 18865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5 18866$as_echo_n "checking for the Boost system library... " >&6; } 18867if ${boost_cv_lib_system+:} false; then : 18868 $as_echo_n "(cached) " >&6 18869else 18870 boost_cv_lib_system=no 18871 case "" in #( 18872 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #( 18873 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #( 18874 (*) boost_mt=; boost_rtopt=;; 18875 esac 18876 if test $enable_static_boost = yes; then 18877 boost_rtopt="s$boost_rtopt" 18878 fi 18879 # Find the proper debug variant depending on what we've been asked to find. 18880 case $boost_rtopt in #( 18881 (*d*) boost_rt_d=$boost_rtopt;; #( 18882 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn') 18883 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #( 18884 (*) boost_rt_d='-d';; 18885 esac 18886 # If the PREFERRED-RT-OPT are not empty, prepend a `-'. 18887 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt" 18888 $boost_guess_use_mt && boost_mt=-mt 18889 # Look for the abs path the static archive. 18890 # $libext is computed by Libtool but let's make sure it's non empty. 18891 test -z "$libext" && 18892 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5 18893 boost_save_ac_objext=$ac_objext 18894 # Generate the test file. 18895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18896/* end confdefs.h. */ 18897 18898#include <boost/system/error_code.hpp> 18899 18900int 18901main () 18902{ 18903boost::system::error_code e; e.clear(); 18904 ; 18905 return 0; 18906} 18907_ACEOF 18908 if ac_fn_cxx_try_compile "$LINENO"; then : 18909 ac_objext=do_not_rm_me_plz 18910else 18911 as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5 18912fi 18913rm -f core conftest.err conftest.$ac_objext 18914 ac_objext=$boost_save_ac_objext 18915 boost_failed_libs= 18916# Don't bother to ident the following nested for loops, only the 2 18917# innermost ones matter. 18918for boost_lib_ in system; do 18919for boost_tag_ in -$boost_cv_lib_tag ''; do 18920for boost_ver_ in -$boost_cv_lib_version ''; do 18921for boost_mt_ in $boost_mt -mt ''; do 18922for boost_rtopt_ in $boost_rtopt '' -d; do 18923 for boost_full_suffix in \ 18924 $boost_last_suffix \ 18925 x$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \ 18926 x$boost_tag_$boost_rtopt_$boost_ver_ \ 18927 x$boost_tag_$boost_mt_$boost_ver_ \ 18928 x$boost_tag_$boost_ver_ 18929 do 18930 boost_real_suffix=`echo "$boost_full_suffix" | sed 's/^x//'` 18931 boost_lib="boost_$boost_lib_$boost_real_suffix" 18932 # Avoid testing twice the same lib 18933 case $boost_failed_libs in #( 18934 (*@$boost_lib@*) continue;; 18935 esac 18936 # If with_boost is empty, we'll search in /lib first, which is not quite 18937 # right so instead we'll try to a location based on where the headers are. 18938 boost_tmp_lib=$with_boost 18939 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} 18940 for boost_ldpath in "$boost_tmp_lib/lib" '' \ 18941 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \ 18942 "$with_boost" C:/Boost/lib /lib* 18943 do 18944 # Don't waste time with directories that don't exist. 18945 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then 18946 continue 18947 fi 18948 boost_save_LDFLAGS=$LDFLAGS 18949 # Are we looking for a static library? 18950 case $boost_ldpath:$boost_rtopt_ in #( 18951 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) 18952 boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext" 18953 test -e "$boost_cv_lib_system_LIBS" || continue;; #( 18954 (*) # No: use -lboost_foo to find the shared library. 18955 boost_cv_lib_system_LIBS="-l$boost_lib";; 18956 esac 18957 boost_save_LIBS=$LIBS 18958 LIBS="$boost_cv_lib_system_LIBS $LIBS" 18959 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath" 18960 rm -f conftest$ac_exeext 18961boost_save_ac_ext=$ac_ext 18962boost_use_source=: 18963# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 18964# tries to link the existing object file instead of compiling from source. 18965test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 18966 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 18967if { { ac_try="$ac_link" 18968case "(($ac_try" in 18969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18970 *) ac_try_echo=$ac_try;; 18971esac 18972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18973$as_echo "$ac_try_echo"; } >&5 18974 (eval "$ac_link") 2>conftest.err 18975 ac_status=$? 18976 if test -s conftest.err; then 18977 grep -v '^ *+' conftest.err >conftest.er1 18978 cat conftest.er1 >&5 18979 mv -f conftest.er1 conftest.err 18980 fi 18981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18982 test $ac_status = 0; } && { 18983 test -z "$ac_cxx_werror_flag" || 18984 test ! -s conftest.err 18985 } && test -s conftest$ac_exeext && { 18986 test "$cross_compiling" = yes || 18987 $as_executable_p conftest$ac_exeext 18988 }; then : 18989 boost_cv_lib_system=yes 18990else 18991 if $boost_use_source; then 18992 $as_echo "$as_me: failed program was:" >&5 18993sed 's/^/| /' conftest.$ac_ext >&5 18994 18995 fi 18996 boost_cv_lib_system=no 18997fi 18998ac_objext=$boost_save_ac_objext 18999ac_ext=$boost_save_ac_ext 19000rm -f core conftest.err conftest_ipa8_conftest.oo \ 19001 conftest$ac_exeext 19002 ac_objext=$boost_save_ac_objext 19003 LDFLAGS=$boost_save_LDFLAGS 19004 LIBS=$boost_save_LIBS 19005 if test x"$boost_cv_lib_system" = xyes; then 19006 # Check or used cached result of whether or not using -R or 19007 # -rpath makes sense. Some implementations of ld, such as for 19008 # Mac OSX, require -rpath but -R is the flag known to work on 19009 # other systems. https://github.com/tsuna/boost.m4/issues/19 19010 if ${boost_cv_rpath_link_ldflag+:} false; then : 19011 $as_echo_n "(cached) " >&6 19012else 19013 case $boost_ldpath in 19014 '') # Nothing to do. 19015 boost_cv_rpath_link_ldflag= 19016 boost_rpath_link_ldflag_found=yes;; 19017 *) 19018 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do 19019 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 19020 LIBS="$boost_cv_lib_system_LIBS $boost_save_LIBS" 19021 rm -f conftest$ac_exeext 19022boost_save_ac_ext=$ac_ext 19023boost_use_source=: 19024# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 19025# tries to link the existing object file instead of compiling from source. 19026test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 19027 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 19028if { { ac_try="$ac_link" 19029case "(($ac_try" in 19030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19031 *) ac_try_echo=$ac_try;; 19032esac 19033eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 19034$as_echo "$ac_try_echo"; } >&5 19035 (eval "$ac_link") 2>conftest.err 19036 ac_status=$? 19037 if test -s conftest.err; then 19038 grep -v '^ *+' conftest.err >conftest.er1 19039 cat conftest.er1 >&5 19040 mv -f conftest.er1 conftest.err 19041 fi 19042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19043 test $ac_status = 0; } && { 19044 test -z "$ac_cxx_werror_flag" || 19045 test ! -s conftest.err 19046 } && test -s conftest$ac_exeext && { 19047 test "$cross_compiling" = yes || 19048 $as_executable_p conftest$ac_exeext 19049 }; then : 19050 boost_rpath_link_ldflag_found=yes 19051 break 19052else 19053 if $boost_use_source; then 19054 $as_echo "$as_me: failed program was:" >&5 19055sed 's/^/| /' conftest.$ac_ext >&5 19056 19057 fi 19058 boost_rpath_link_ldflag_found=no 19059fi 19060ac_objext=$boost_save_ac_objext 19061ac_ext=$boost_save_ac_ext 19062rm -f core conftest.err conftest_ipa8_conftest.oo \ 19063 conftest$ac_exeext 19064 done 19065 ;; 19066 esac 19067 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then : 19068 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5 19069fi 19070 LDFLAGS=$boost_save_LDFLAGS 19071 LIBS=$boost_save_LIBS 19072 19073fi 19074 19075 test x"$boost_ldpath" != x && 19076 boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 19077 boost_cv_lib_system_LDPATH="$boost_ldpath" 19078 boost_last_suffix="$boost_full_suffix" 19079 break 7 19080 else 19081 boost_failed_libs="$boost_failed_libs@$boost_lib@" 19082 fi 19083 done 19084 done 19085done 19086done 19087done 19088done 19089done # boost_lib_ 19090rm -f conftest.$ac_objext 19091 19092fi 19093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5 19094$as_echo "$boost_cv_lib_system" >&6; } 19095case $boost_cv_lib_system in #( 19096 (yes) $as_echo "$as_me: failed program was:" >&5 19097sed 's/^/| /' conftest.$ac_ext >&5 19098 19099 19100$as_echo "#define HAVE_BOOST_SYSTEM 1" >>confdefs.h 19101 BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS 19102 BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH 19103 BOOST_LDPATH=$boost_cv_lib_system_LDPATH 19104 BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS 19105 ;; 19106 (no) $as_echo "$as_me: failed program was:" >&5 19107sed 's/^/| /' conftest.$ac_ext >&5 19108 19109 as_fn_error $? "cannot find flags to link with the Boost system library (libboost-system)" "$LINENO" 5 19110 ;; 19111esac 19112CPPFLAGS=$boost_save_CPPFLAGS 19113ac_ext=cpp 19114ac_cpp='$CXXCPP $CPPFLAGS' 19115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19118fi 19119 19120 19121 19122 19123# ========================================================= 19124# Determine if we are going to build static lib (for MinGW) 19125# ========================================================= 19126 if test "$enable_shared" = no -a "$enable_static" = yes; then 19127 HAVE_STATIC_LIB_TRUE= 19128 HAVE_STATIC_LIB_FALSE='#' 19129else 19130 HAVE_STATIC_LIB_TRUE='#' 19131 HAVE_STATIC_LIB_FALSE= 19132fi 19133 19134 19135# ===================== 19136# Development Utilities 19137# ===================== 19138# Check whether --enable-debug-utils was given. 19139if test "${enable_debug_utils+set}" = set; then : 19140 enableval=$enable_debug_utils; enable_debug_utils="$enableval" 19141else 19142 enable_debug_utils=no 19143 19144fi 19145 19146 19147# ===== 19148# Debug 19149# ===== 19150# Check whether --enable-debug was given. 19151if test "${enable_debug+set}" = set; then : 19152 enableval=$enable_debug; enable_debug="$enableval" 19153else 19154 enable_debug=no 19155 19156fi 19157 19158if test "x$enable_debug" != "xno"; then : 19159 19160 CXXFLAGS="$CXXFLAGS -g -O0 -DMDDS_ASSERT_STRING_MAP" 19161 enable_debug_utils=yes 19162 19163else 19164 19165 CXXFLAGS="$CXXFLAGS -O2" 19166 19167$as_echo "#define NDEBUG /**/" >>confdefs.h 19168 19169 19170fi 19171 19172if test "x$enable_debug_utils" != "xno"; then : 19173 19174 CXXFLAGS="$CXXFLAGS -D__ORCUS_DEBUG_UTILS" 19175 19176fi 19177 19178# zlib is a hard requirement in liborcus-parser. 19179 19180pkg_failed=no 19181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 19182$as_echo_n "checking for ZLIB... " >&6; } 19183 19184if test -n "$ZLIB_CFLAGS"; then 19185 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" 19186 elif test -n "$PKG_CONFIG"; then 19187 if test -n "$PKG_CONFIG" && \ 19188 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 19189 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 19190 ac_status=$? 19191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19192 test $ac_status = 0; }; then 19193 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null` 19194 test "x$?" != "x0" && pkg_failed=yes 19195else 19196 pkg_failed=yes 19197fi 19198 else 19199 pkg_failed=untried 19200fi 19201if test -n "$ZLIB_LIBS"; then 19202 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" 19203 elif test -n "$PKG_CONFIG"; then 19204 if test -n "$PKG_CONFIG" && \ 19205 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 19206 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 19207 ac_status=$? 19208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19209 test $ac_status = 0; }; then 19210 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null` 19211 test "x$?" != "x0" && pkg_failed=yes 19212else 19213 pkg_failed=yes 19214fi 19215 else 19216 pkg_failed=untried 19217fi 19218 19219 19220 19221if test $pkg_failed = yes; then 19222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19223$as_echo "no" >&6; } 19224 19225if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19226 _pkg_short_errors_supported=yes 19227else 19228 _pkg_short_errors_supported=no 19229fi 19230 if test $_pkg_short_errors_supported = yes; then 19231 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1` 19232 else 19233 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1` 19234 fi 19235 # Put the nasty error message in config.log where it belongs 19236 echo "$ZLIB_PKG_ERRORS" >&5 19237 19238 as_fn_error $? "Package requirements (zlib) were not met: 19239 19240$ZLIB_PKG_ERRORS 19241 19242Consider adjusting the PKG_CONFIG_PATH environment variable if you 19243installed software in a non-standard prefix. 19244 19245Alternatively, you may set the environment variables ZLIB_CFLAGS 19246and ZLIB_LIBS to avoid the need to call pkg-config. 19247See the pkg-config man page for more details." "$LINENO" 5 19248elif test $pkg_failed = untried; then 19249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19250$as_echo "no" >&6; } 19251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19253as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19254is in your PATH or set the PKG_CONFIG environment variable to the full 19255path to pkg-config. 19256 19257Alternatively, you may set the environment variables ZLIB_CFLAGS 19258and ZLIB_LIBS to avoid the need to call pkg-config. 19259See the pkg-config man page for more details. 19260 19261To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19262See \`config.log' for more details" "$LINENO" 5; } 19263else 19264 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS 19265 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS 19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19267$as_echo "yes" >&6; } 19268 19269fi 19270 19271# ============== 19272# tools (binary) 19273# ============== 19274 19275# Check whether --with-tools was given. 19276if test "${with_tools+set}" = set; then : 19277 withval=$with_tools; with_tools="$withval" 19278else 19279 with_tools=yes 19280 19281fi 19282 19283 19284# ================== 19285# ods filter support 19286# ================== 19287 19288# Check whether --with-ods-filter was given. 19289if test "${with_ods_filter+set}" = set; then : 19290 withval=$with_ods_filter; with_ods_filter="$withval" 19291else 19292 with_ods_filter=yes 19293 19294fi 19295 19296 19297# =================== 19298# xlsx filter support 19299# =================== 19300 19301# Check whether --with-xlsx-filter was given. 19302if test "${with_xlsx_filter+set}" = set; then : 19303 withval=$with_xlsx_filter; with_xlsx_filter="$withval" 19304else 19305 with_xlsx_filter=yes 19306 19307fi 19308 19309 19310# ====================== 19311# xls xml filter support 19312# ====================== 19313 19314# Check whether --with-xls-xml-filter was given. 19315if test "${with_xls_xml_filter+set}" = set; then : 19316 withval=$with_xls_xml_filter; with_xls_xml_filter="$withval" 19317else 19318 with_xls_xml_filter=yes 19319 19320fi 19321 19322 19323# ======================= 19324# gnumeric filter support 19325# ======================= 19326 19327# Check whether --with-gnumeric-filter was given. 19328if test "${with_gnumeric_filter+set}" = set; then : 19329 withval=$with_gnumeric_filter; with_gnumeric_filter="$withval" 19330else 19331 with_gnumeric_filter=yes 19332 19333fi 19334 19335 19336 19337# Check whether --with-cpu-features was given. 19338if test "${with_cpu_features+set}" = set; then : 19339 withval=$with_cpu_features; with_cpu_features="$withval" 19340else 19341 with_cpu_features=no 19342 19343fi 19344 19345 19346 if test "x$with_ods_filter" != "xno"; then 19347 WITH_ODS_FILTER_TRUE= 19348 WITH_ODS_FILTER_FALSE='#' 19349else 19350 WITH_ODS_FILTER_TRUE='#' 19351 WITH_ODS_FILTER_FALSE= 19352fi 19353 19354 if test "x$with_xlsx_filter" != "xno"; then 19355 WITH_XLSX_FILTER_TRUE= 19356 WITH_XLSX_FILTER_FALSE='#' 19357else 19358 WITH_XLSX_FILTER_TRUE='#' 19359 WITH_XLSX_FILTER_FALSE= 19360fi 19361 19362 if test "x$with_xls_xml_filter" != "xno"; then 19363 WITH_XLS_XML_FILTER_TRUE= 19364 WITH_XLS_XML_FILTER_FALSE='#' 19365else 19366 WITH_XLS_XML_FILTER_TRUE='#' 19367 WITH_XLS_XML_FILTER_FALSE= 19368fi 19369 19370 if test "x$with_gnumeric_filter" != "xno"; then 19371 WITH_GNUMERIC_FILTER_TRUE= 19372 WITH_GNUMERIC_FILTER_FALSE='#' 19373else 19374 WITH_GNUMERIC_FILTER_TRUE='#' 19375 WITH_GNUMERIC_FILTER_FALSE= 19376fi 19377 19378 if test "x$with_tools" != "xno"; then 19379 WITH_TOOLS_TRUE= 19380 WITH_TOOLS_FALSE='#' 19381else 19382 WITH_TOOLS_TRUE='#' 19383 WITH_TOOLS_FALSE= 19384fi 19385 19386 19387if test "x$with_ods_filter" != "xno"; then : 19388 19389 CXXFLAGS="$CXXFLAGS -D__ORCUS_ODS" 19390 19391fi 19392 19393if test "x$with_xlsx_filter" != "xno"; then : 19394 19395 CXXFLAGS="$CXXFLAGS -D__ORCUS_XLSX" 19396 19397fi 19398 19399if test "x$with_xls_xml_filter" != "xno"; then : 19400 19401 CXXFLAGS="$CXXFLAGS -D__ORCUS_XLS_XML" 19402 19403fi 19404 19405if test "x$with_gnumeric_filter" != "xno"; then : 19406 19407 CXXFLAGS="$CXXFLAGS -D__ORCUS_GNUMERIC" 19408 if test x"$boost_cv_inc_path" = xno; then 19409 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost iostreams library" >&5 19410$as_echo "$as_me: Boost not available, not searching for the Boost iostreams library" >&6;} 19411else 19412ac_ext=cpp 19413ac_cpp='$CXXCPP $CPPFLAGS' 19414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19417if test x"$boost_cv_inc_path" = xno; then 19418 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/iostreams/device/file_descriptor.hpp" >&5 19419$as_echo "$as_me: Boost not available, not searching for boost/iostreams/device/file_descriptor.hpp" >&6;} 19420else 19421ac_ext=cpp 19422ac_cpp='$CXXCPP $CPPFLAGS' 19423ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19424ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19425ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19426boost_save_CPPFLAGS=$CPPFLAGS 19427CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 19428ac_fn_cxx_check_header_mongrel "$LINENO" "boost/iostreams/device/file_descriptor.hpp" "ac_cv_header_boost_iostreams_device_file_descriptor_hpp" "$ac_includes_default" 19429if test "x$ac_cv_header_boost_iostreams_device_file_descriptor_hpp" = xyes; then : 19430 19431$as_echo "#define HAVE_BOOST_IOSTREAMS_DEVICE_FILE_DESCRIPTOR_HPP 1" >>confdefs.h 19432 19433else 19434 as_fn_error $? "cannot find boost/iostreams/device/file_descriptor.hpp" "$LINENO" 5 19435fi 19436 19437 19438CPPFLAGS=$boost_save_CPPFLAGS 19439ac_ext=cpp 19440ac_cpp='$CXXCPP $CPPFLAGS' 19441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19444fi 19445 19446boost_save_CPPFLAGS=$CPPFLAGS 19447CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 19448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost iostreams library" >&5 19449$as_echo_n "checking for the Boost iostreams library... " >&6; } 19450if ${boost_cv_lib_iostreams+:} false; then : 19451 $as_echo_n "(cached) " >&6 19452else 19453 boost_cv_lib_iostreams=no 19454 case "" in #( 19455 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #( 19456 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #( 19457 (*) boost_mt=; boost_rtopt=;; 19458 esac 19459 if test $enable_static_boost = yes; then 19460 boost_rtopt="s$boost_rtopt" 19461 fi 19462 # Find the proper debug variant depending on what we've been asked to find. 19463 case $boost_rtopt in #( 19464 (*d*) boost_rt_d=$boost_rtopt;; #( 19465 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn') 19466 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #( 19467 (*) boost_rt_d='-d';; 19468 esac 19469 # If the PREFERRED-RT-OPT are not empty, prepend a `-'. 19470 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt" 19471 $boost_guess_use_mt && boost_mt=-mt 19472 # Look for the abs path the static archive. 19473 # $libext is computed by Libtool but let's make sure it's non empty. 19474 test -z "$libext" && 19475 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5 19476 boost_save_ac_objext=$ac_objext 19477 # Generate the test file. 19478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19479/* end confdefs.h. */ 19480 19481#include <boost/iostreams/device/file_descriptor.hpp> 19482 19483int 19484main () 19485{ 19486boost::iostreams::file_descriptor fd; fd.close(); 19487 ; 19488 return 0; 19489} 19490_ACEOF 19491 if ac_fn_cxx_try_compile "$LINENO"; then : 19492 ac_objext=do_not_rm_me_plz 19493else 19494 as_fn_error $? "cannot compile a test that uses Boost iostreams" "$LINENO" 5 19495fi 19496rm -f core conftest.err conftest.$ac_objext 19497 ac_objext=$boost_save_ac_objext 19498 boost_failed_libs= 19499# Don't bother to ident the following nested for loops, only the 2 19500# innermost ones matter. 19501for boost_lib_ in iostreams; do 19502for boost_tag_ in -$boost_cv_lib_tag ''; do 19503for boost_ver_ in -$boost_cv_lib_version ''; do 19504for boost_mt_ in $boost_mt -mt ''; do 19505for boost_rtopt_ in $boost_rtopt '' -d; do 19506 for boost_full_suffix in \ 19507 $boost_last_suffix \ 19508 x$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \ 19509 x$boost_tag_$boost_rtopt_$boost_ver_ \ 19510 x$boost_tag_$boost_mt_$boost_ver_ \ 19511 x$boost_tag_$boost_ver_ 19512 do 19513 boost_real_suffix=`echo "$boost_full_suffix" | sed 's/^x//'` 19514 boost_lib="boost_$boost_lib_$boost_real_suffix" 19515 # Avoid testing twice the same lib 19516 case $boost_failed_libs in #( 19517 (*@$boost_lib@*) continue;; 19518 esac 19519 # If with_boost is empty, we'll search in /lib first, which is not quite 19520 # right so instead we'll try to a location based on where the headers are. 19521 boost_tmp_lib=$with_boost 19522 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} 19523 for boost_ldpath in "$boost_tmp_lib/lib" '' \ 19524 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \ 19525 "$with_boost" C:/Boost/lib /lib* 19526 do 19527 # Don't waste time with directories that don't exist. 19528 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then 19529 continue 19530 fi 19531 boost_save_LDFLAGS=$LDFLAGS 19532 # Are we looking for a static library? 19533 case $boost_ldpath:$boost_rtopt_ in #( 19534 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) 19535 boost_cv_lib_iostreams_LIBS="$boost_ldpath/lib$boost_lib.$libext" 19536 test -e "$boost_cv_lib_iostreams_LIBS" || continue;; #( 19537 (*) # No: use -lboost_foo to find the shared library. 19538 boost_cv_lib_iostreams_LIBS="-l$boost_lib";; 19539 esac 19540 boost_save_LIBS=$LIBS 19541 LIBS="$boost_cv_lib_iostreams_LIBS $LIBS" 19542 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath" 19543 rm -f conftest$ac_exeext 19544boost_save_ac_ext=$ac_ext 19545boost_use_source=: 19546# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 19547# tries to link the existing object file instead of compiling from source. 19548test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 19549 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 19550if { { ac_try="$ac_link" 19551case "(($ac_try" in 19552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19553 *) ac_try_echo=$ac_try;; 19554esac 19555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 19556$as_echo "$ac_try_echo"; } >&5 19557 (eval "$ac_link") 2>conftest.err 19558 ac_status=$? 19559 if test -s conftest.err; then 19560 grep -v '^ *+' conftest.err >conftest.er1 19561 cat conftest.er1 >&5 19562 mv -f conftest.er1 conftest.err 19563 fi 19564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19565 test $ac_status = 0; } && { 19566 test -z "$ac_cxx_werror_flag" || 19567 test ! -s conftest.err 19568 } && test -s conftest$ac_exeext && { 19569 test "$cross_compiling" = yes || 19570 $as_executable_p conftest$ac_exeext 19571 }; then : 19572 boost_cv_lib_iostreams=yes 19573else 19574 if $boost_use_source; then 19575 $as_echo "$as_me: failed program was:" >&5 19576sed 's/^/| /' conftest.$ac_ext >&5 19577 19578 fi 19579 boost_cv_lib_iostreams=no 19580fi 19581ac_objext=$boost_save_ac_objext 19582ac_ext=$boost_save_ac_ext 19583rm -f core conftest.err conftest_ipa8_conftest.oo \ 19584 conftest$ac_exeext 19585 ac_objext=$boost_save_ac_objext 19586 LDFLAGS=$boost_save_LDFLAGS 19587 LIBS=$boost_save_LIBS 19588 if test x"$boost_cv_lib_iostreams" = xyes; then 19589 # Check or used cached result of whether or not using -R or 19590 # -rpath makes sense. Some implementations of ld, such as for 19591 # Mac OSX, require -rpath but -R is the flag known to work on 19592 # other systems. https://github.com/tsuna/boost.m4/issues/19 19593 if ${boost_cv_rpath_link_ldflag+:} false; then : 19594 $as_echo_n "(cached) " >&6 19595else 19596 case $boost_ldpath in 19597 '') # Nothing to do. 19598 boost_cv_rpath_link_ldflag= 19599 boost_rpath_link_ldflag_found=yes;; 19600 *) 19601 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do 19602 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 19603 LIBS="$boost_cv_lib_iostreams_LIBS $boost_save_LIBS" 19604 rm -f conftest$ac_exeext 19605boost_save_ac_ext=$ac_ext 19606boost_use_source=: 19607# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 19608# tries to link the existing object file instead of compiling from source. 19609test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 19610 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 19611if { { ac_try="$ac_link" 19612case "(($ac_try" in 19613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19614 *) ac_try_echo=$ac_try;; 19615esac 19616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 19617$as_echo "$ac_try_echo"; } >&5 19618 (eval "$ac_link") 2>conftest.err 19619 ac_status=$? 19620 if test -s conftest.err; then 19621 grep -v '^ *+' conftest.err >conftest.er1 19622 cat conftest.er1 >&5 19623 mv -f conftest.er1 conftest.err 19624 fi 19625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19626 test $ac_status = 0; } && { 19627 test -z "$ac_cxx_werror_flag" || 19628 test ! -s conftest.err 19629 } && test -s conftest$ac_exeext && { 19630 test "$cross_compiling" = yes || 19631 $as_executable_p conftest$ac_exeext 19632 }; then : 19633 boost_rpath_link_ldflag_found=yes 19634 break 19635else 19636 if $boost_use_source; then 19637 $as_echo "$as_me: failed program was:" >&5 19638sed 's/^/| /' conftest.$ac_ext >&5 19639 19640 fi 19641 boost_rpath_link_ldflag_found=no 19642fi 19643ac_objext=$boost_save_ac_objext 19644ac_ext=$boost_save_ac_ext 19645rm -f core conftest.err conftest_ipa8_conftest.oo \ 19646 conftest$ac_exeext 19647 done 19648 ;; 19649 esac 19650 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then : 19651 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5 19652fi 19653 LDFLAGS=$boost_save_LDFLAGS 19654 LIBS=$boost_save_LIBS 19655 19656fi 19657 19658 test x"$boost_ldpath" != x && 19659 boost_cv_lib_iostreams_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 19660 boost_cv_lib_iostreams_LDPATH="$boost_ldpath" 19661 boost_last_suffix="$boost_full_suffix" 19662 break 7 19663 else 19664 boost_failed_libs="$boost_failed_libs@$boost_lib@" 19665 fi 19666 done 19667 done 19668done 19669done 19670done 19671done 19672done # boost_lib_ 19673rm -f conftest.$ac_objext 19674 19675fi 19676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_iostreams" >&5 19677$as_echo "$boost_cv_lib_iostreams" >&6; } 19678case $boost_cv_lib_iostreams in #( 19679 (yes) $as_echo "$as_me: failed program was:" >&5 19680sed 's/^/| /' conftest.$ac_ext >&5 19681 19682 19683$as_echo "#define HAVE_BOOST_IOSTREAMS 1" >>confdefs.h 19684 BOOST_IOSTREAMS_LDFLAGS=$boost_cv_lib_iostreams_LDFLAGS 19685 BOOST_IOSTREAMS_LDPATH=$boost_cv_lib_iostreams_LDPATH 19686 BOOST_LDPATH=$boost_cv_lib_iostreams_LDPATH 19687 BOOST_IOSTREAMS_LIBS=$boost_cv_lib_iostreams_LIBS 19688 ;; 19689 (no) $as_echo "$as_me: failed program was:" >&5 19690sed 's/^/| /' conftest.$ac_ext >&5 19691 19692 as_fn_error $? "cannot find flags to link with the Boost iostreams library (libboost-iostreams)" "$LINENO" 5 19693 ;; 19694esac 19695CPPFLAGS=$boost_save_CPPFLAGS 19696ac_ext=cpp 19697ac_cpp='$CXXCPP $CPPFLAGS' 19698ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19699ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19700ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19701fi 19702 19703 19704 19705 19706fi 19707 19708if test "x$with_cpu_features" != "xno"; then : 19709 19710 CXXFLAGS="$CXXFLAGS -D__ORCUS_CPU_FEATURES" 19711 19712fi 19713 19714if test "x$with_tools" != "xno"; then : 19715 19716 if test x"$boost_cv_inc_path" = xno; then 19717 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost program_options library" >&5 19718$as_echo "$as_me: Boost not available, not searching for the Boost program_options library" >&6;} 19719else 19720ac_ext=cpp 19721ac_cpp='$CXXCPP $CPPFLAGS' 19722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19725if test x"$boost_cv_inc_path" = xno; then 19726 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/program_options.hpp" >&5 19727$as_echo "$as_me: Boost not available, not searching for boost/program_options.hpp" >&6;} 19728else 19729ac_ext=cpp 19730ac_cpp='$CXXCPP $CPPFLAGS' 19731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19734boost_save_CPPFLAGS=$CPPFLAGS 19735CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 19736ac_fn_cxx_check_header_mongrel "$LINENO" "boost/program_options.hpp" "ac_cv_header_boost_program_options_hpp" "$ac_includes_default" 19737if test "x$ac_cv_header_boost_program_options_hpp" = xyes; then : 19738 19739$as_echo "#define HAVE_BOOST_PROGRAM_OPTIONS_HPP 1" >>confdefs.h 19740 19741else 19742 as_fn_error $? "cannot find boost/program_options.hpp" "$LINENO" 5 19743fi 19744 19745 19746CPPFLAGS=$boost_save_CPPFLAGS 19747ac_ext=cpp 19748ac_cpp='$CXXCPP $CPPFLAGS' 19749ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19750ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19751ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19752fi 19753 19754boost_save_CPPFLAGS=$CPPFLAGS 19755CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 19756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost program_options library" >&5 19757$as_echo_n "checking for the Boost program_options library... " >&6; } 19758if ${boost_cv_lib_program_options+:} false; then : 19759 $as_echo_n "(cached) " >&6 19760else 19761 boost_cv_lib_program_options=no 19762 case "" in #( 19763 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #( 19764 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #( 19765 (*) boost_mt=; boost_rtopt=;; 19766 esac 19767 if test $enable_static_boost = yes; then 19768 boost_rtopt="s$boost_rtopt" 19769 fi 19770 # Find the proper debug variant depending on what we've been asked to find. 19771 case $boost_rtopt in #( 19772 (*d*) boost_rt_d=$boost_rtopt;; #( 19773 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn') 19774 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #( 19775 (*) boost_rt_d='-d';; 19776 esac 19777 # If the PREFERRED-RT-OPT are not empty, prepend a `-'. 19778 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt" 19779 $boost_guess_use_mt && boost_mt=-mt 19780 # Look for the abs path the static archive. 19781 # $libext is computed by Libtool but let's make sure it's non empty. 19782 test -z "$libext" && 19783 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5 19784 boost_save_ac_objext=$ac_objext 19785 # Generate the test file. 19786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19787/* end confdefs.h. */ 19788 19789#include <boost/program_options.hpp> 19790 19791int 19792main () 19793{ 19794boost::program_options::options_description d("test"); 19795 ; 19796 return 0; 19797} 19798_ACEOF 19799 if ac_fn_cxx_try_compile "$LINENO"; then : 19800 ac_objext=do_not_rm_me_plz 19801else 19802 as_fn_error $? "cannot compile a test that uses Boost program_options" "$LINENO" 5 19803fi 19804rm -f core conftest.err conftest.$ac_objext 19805 ac_objext=$boost_save_ac_objext 19806 boost_failed_libs= 19807# Don't bother to ident the following nested for loops, only the 2 19808# innermost ones matter. 19809for boost_lib_ in program_options; do 19810for boost_tag_ in -$boost_cv_lib_tag ''; do 19811for boost_ver_ in -$boost_cv_lib_version ''; do 19812for boost_mt_ in $boost_mt -mt ''; do 19813for boost_rtopt_ in $boost_rtopt '' -d; do 19814 for boost_full_suffix in \ 19815 $boost_last_suffix \ 19816 x$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \ 19817 x$boost_tag_$boost_rtopt_$boost_ver_ \ 19818 x$boost_tag_$boost_mt_$boost_ver_ \ 19819 x$boost_tag_$boost_ver_ 19820 do 19821 boost_real_suffix=`echo "$boost_full_suffix" | sed 's/^x//'` 19822 boost_lib="boost_$boost_lib_$boost_real_suffix" 19823 # Avoid testing twice the same lib 19824 case $boost_failed_libs in #( 19825 (*@$boost_lib@*) continue;; 19826 esac 19827 # If with_boost is empty, we'll search in /lib first, which is not quite 19828 # right so instead we'll try to a location based on where the headers are. 19829 boost_tmp_lib=$with_boost 19830 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} 19831 for boost_ldpath in "$boost_tmp_lib/lib" '' \ 19832 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \ 19833 "$with_boost" C:/Boost/lib /lib* 19834 do 19835 # Don't waste time with directories that don't exist. 19836 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then 19837 continue 19838 fi 19839 boost_save_LDFLAGS=$LDFLAGS 19840 # Are we looking for a static library? 19841 case $boost_ldpath:$boost_rtopt_ in #( 19842 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) 19843 boost_cv_lib_program_options_LIBS="$boost_ldpath/lib$boost_lib.$libext" 19844 test -e "$boost_cv_lib_program_options_LIBS" || continue;; #( 19845 (*) # No: use -lboost_foo to find the shared library. 19846 boost_cv_lib_program_options_LIBS="-l$boost_lib";; 19847 esac 19848 boost_save_LIBS=$LIBS 19849 LIBS="$boost_cv_lib_program_options_LIBS $LIBS" 19850 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath" 19851 rm -f conftest$ac_exeext 19852boost_save_ac_ext=$ac_ext 19853boost_use_source=: 19854# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 19855# tries to link the existing object file instead of compiling from source. 19856test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 19857 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 19858if { { ac_try="$ac_link" 19859case "(($ac_try" in 19860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19861 *) ac_try_echo=$ac_try;; 19862esac 19863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 19864$as_echo "$ac_try_echo"; } >&5 19865 (eval "$ac_link") 2>conftest.err 19866 ac_status=$? 19867 if test -s conftest.err; then 19868 grep -v '^ *+' conftest.err >conftest.er1 19869 cat conftest.er1 >&5 19870 mv -f conftest.er1 conftest.err 19871 fi 19872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19873 test $ac_status = 0; } && { 19874 test -z "$ac_cxx_werror_flag" || 19875 test ! -s conftest.err 19876 } && test -s conftest$ac_exeext && { 19877 test "$cross_compiling" = yes || 19878 $as_executable_p conftest$ac_exeext 19879 }; then : 19880 boost_cv_lib_program_options=yes 19881else 19882 if $boost_use_source; then 19883 $as_echo "$as_me: failed program was:" >&5 19884sed 's/^/| /' conftest.$ac_ext >&5 19885 19886 fi 19887 boost_cv_lib_program_options=no 19888fi 19889ac_objext=$boost_save_ac_objext 19890ac_ext=$boost_save_ac_ext 19891rm -f core conftest.err conftest_ipa8_conftest.oo \ 19892 conftest$ac_exeext 19893 ac_objext=$boost_save_ac_objext 19894 LDFLAGS=$boost_save_LDFLAGS 19895 LIBS=$boost_save_LIBS 19896 if test x"$boost_cv_lib_program_options" = xyes; then 19897 # Check or used cached result of whether or not using -R or 19898 # -rpath makes sense. Some implementations of ld, such as for 19899 # Mac OSX, require -rpath but -R is the flag known to work on 19900 # other systems. https://github.com/tsuna/boost.m4/issues/19 19901 if ${boost_cv_rpath_link_ldflag+:} false; then : 19902 $as_echo_n "(cached) " >&6 19903else 19904 case $boost_ldpath in 19905 '') # Nothing to do. 19906 boost_cv_rpath_link_ldflag= 19907 boost_rpath_link_ldflag_found=yes;; 19908 *) 19909 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do 19910 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 19911 LIBS="$boost_cv_lib_program_options_LIBS $boost_save_LIBS" 19912 rm -f conftest$ac_exeext 19913boost_save_ac_ext=$ac_ext 19914boost_use_source=: 19915# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 19916# tries to link the existing object file instead of compiling from source. 19917test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 19918 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 19919if { { ac_try="$ac_link" 19920case "(($ac_try" in 19921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19922 *) ac_try_echo=$ac_try;; 19923esac 19924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 19925$as_echo "$ac_try_echo"; } >&5 19926 (eval "$ac_link") 2>conftest.err 19927 ac_status=$? 19928 if test -s conftest.err; then 19929 grep -v '^ *+' conftest.err >conftest.er1 19930 cat conftest.er1 >&5 19931 mv -f conftest.er1 conftest.err 19932 fi 19933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19934 test $ac_status = 0; } && { 19935 test -z "$ac_cxx_werror_flag" || 19936 test ! -s conftest.err 19937 } && test -s conftest$ac_exeext && { 19938 test "$cross_compiling" = yes || 19939 $as_executable_p conftest$ac_exeext 19940 }; then : 19941 boost_rpath_link_ldflag_found=yes 19942 break 19943else 19944 if $boost_use_source; then 19945 $as_echo "$as_me: failed program was:" >&5 19946sed 's/^/| /' conftest.$ac_ext >&5 19947 19948 fi 19949 boost_rpath_link_ldflag_found=no 19950fi 19951ac_objext=$boost_save_ac_objext 19952ac_ext=$boost_save_ac_ext 19953rm -f core conftest.err conftest_ipa8_conftest.oo \ 19954 conftest$ac_exeext 19955 done 19956 ;; 19957 esac 19958 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then : 19959 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5 19960fi 19961 LDFLAGS=$boost_save_LDFLAGS 19962 LIBS=$boost_save_LIBS 19963 19964fi 19965 19966 test x"$boost_ldpath" != x && 19967 boost_cv_lib_program_options_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 19968 boost_cv_lib_program_options_LDPATH="$boost_ldpath" 19969 boost_last_suffix="$boost_full_suffix" 19970 break 7 19971 else 19972 boost_failed_libs="$boost_failed_libs@$boost_lib@" 19973 fi 19974 done 19975 done 19976done 19977done 19978done 19979done 19980done # boost_lib_ 19981rm -f conftest.$ac_objext 19982 19983fi 19984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_program_options" >&5 19985$as_echo "$boost_cv_lib_program_options" >&6; } 19986case $boost_cv_lib_program_options in #( 19987 (yes) $as_echo "$as_me: failed program was:" >&5 19988sed 's/^/| /' conftest.$ac_ext >&5 19989 19990 19991$as_echo "#define HAVE_BOOST_PROGRAM_OPTIONS 1" >>confdefs.h 19992 BOOST_PROGRAM_OPTIONS_LDFLAGS=$boost_cv_lib_program_options_LDFLAGS 19993 BOOST_PROGRAM_OPTIONS_LDPATH=$boost_cv_lib_program_options_LDPATH 19994 BOOST_LDPATH=$boost_cv_lib_program_options_LDPATH 19995 BOOST_PROGRAM_OPTIONS_LIBS=$boost_cv_lib_program_options_LIBS 19996 ;; 19997 (no) $as_echo "$as_me: failed program was:" >&5 19998sed 's/^/| /' conftest.$ac_ext >&5 19999 20000 as_fn_error $? "cannot find flags to link with the Boost program_options library (libboost-program_options)" "$LINENO" 5 20001 ;; 20002esac 20003CPPFLAGS=$boost_save_CPPFLAGS 20004ac_ext=cpp 20005ac_cpp='$CXXCPP $CPPFLAGS' 20006ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20007ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20008ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20009fi 20010 20011 20012 20013 if test x"$boost_cv_inc_path" = xno; then 20014 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5 20015$as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;} 20016else 20017ac_ext=cpp 20018ac_cpp='$CXXCPP $CPPFLAGS' 20019ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20020ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20021ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20022if test x"$boost_cv_inc_path" = xno; then 20023 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5 20024$as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;} 20025else 20026ac_ext=cpp 20027ac_cpp='$CXXCPP $CPPFLAGS' 20028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20031boost_save_CPPFLAGS=$CPPFLAGS 20032CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 20033ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default" 20034if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes; then : 20035 20036$as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h 20037 20038else 20039 as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5 20040fi 20041 20042 20043CPPFLAGS=$boost_save_CPPFLAGS 20044ac_ext=cpp 20045ac_cpp='$CXXCPP $CPPFLAGS' 20046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20049fi 20050 20051boost_save_CPPFLAGS=$CPPFLAGS 20052CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 20053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5 20054$as_echo_n "checking for the Boost system library... " >&6; } 20055if ${boost_cv_lib_system+:} false; then : 20056 $as_echo_n "(cached) " >&6 20057else 20058 boost_cv_lib_system=no 20059 case "" in #( 20060 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #( 20061 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #( 20062 (*) boost_mt=; boost_rtopt=;; 20063 esac 20064 if test $enable_static_boost = yes; then 20065 boost_rtopt="s$boost_rtopt" 20066 fi 20067 # Find the proper debug variant depending on what we've been asked to find. 20068 case $boost_rtopt in #( 20069 (*d*) boost_rt_d=$boost_rtopt;; #( 20070 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn') 20071 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #( 20072 (*) boost_rt_d='-d';; 20073 esac 20074 # If the PREFERRED-RT-OPT are not empty, prepend a `-'. 20075 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt" 20076 $boost_guess_use_mt && boost_mt=-mt 20077 # Look for the abs path the static archive. 20078 # $libext is computed by Libtool but let's make sure it's non empty. 20079 test -z "$libext" && 20080 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5 20081 boost_save_ac_objext=$ac_objext 20082 # Generate the test file. 20083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20084/* end confdefs.h. */ 20085 20086#include <boost/system/error_code.hpp> 20087 20088int 20089main () 20090{ 20091boost::system::error_code e; e.clear(); 20092 ; 20093 return 0; 20094} 20095_ACEOF 20096 if ac_fn_cxx_try_compile "$LINENO"; then : 20097 ac_objext=do_not_rm_me_plz 20098else 20099 as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5 20100fi 20101rm -f core conftest.err conftest.$ac_objext 20102 ac_objext=$boost_save_ac_objext 20103 boost_failed_libs= 20104# Don't bother to ident the following nested for loops, only the 2 20105# innermost ones matter. 20106for boost_lib_ in system; do 20107for boost_tag_ in -$boost_cv_lib_tag ''; do 20108for boost_ver_ in -$boost_cv_lib_version ''; do 20109for boost_mt_ in $boost_mt -mt ''; do 20110for boost_rtopt_ in $boost_rtopt '' -d; do 20111 for boost_full_suffix in \ 20112 $boost_last_suffix \ 20113 x$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \ 20114 x$boost_tag_$boost_rtopt_$boost_ver_ \ 20115 x$boost_tag_$boost_mt_$boost_ver_ \ 20116 x$boost_tag_$boost_ver_ 20117 do 20118 boost_real_suffix=`echo "$boost_full_suffix" | sed 's/^x//'` 20119 boost_lib="boost_$boost_lib_$boost_real_suffix" 20120 # Avoid testing twice the same lib 20121 case $boost_failed_libs in #( 20122 (*@$boost_lib@*) continue;; 20123 esac 20124 # If with_boost is empty, we'll search in /lib first, which is not quite 20125 # right so instead we'll try to a location based on where the headers are. 20126 boost_tmp_lib=$with_boost 20127 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} 20128 for boost_ldpath in "$boost_tmp_lib/lib" '' \ 20129 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \ 20130 "$with_boost" C:/Boost/lib /lib* 20131 do 20132 # Don't waste time with directories that don't exist. 20133 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then 20134 continue 20135 fi 20136 boost_save_LDFLAGS=$LDFLAGS 20137 # Are we looking for a static library? 20138 case $boost_ldpath:$boost_rtopt_ in #( 20139 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) 20140 boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext" 20141 test -e "$boost_cv_lib_system_LIBS" || continue;; #( 20142 (*) # No: use -lboost_foo to find the shared library. 20143 boost_cv_lib_system_LIBS="-l$boost_lib";; 20144 esac 20145 boost_save_LIBS=$LIBS 20146 LIBS="$boost_cv_lib_system_LIBS $LIBS" 20147 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath" 20148 rm -f conftest$ac_exeext 20149boost_save_ac_ext=$ac_ext 20150boost_use_source=: 20151# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 20152# tries to link the existing object file instead of compiling from source. 20153test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 20154 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 20155if { { ac_try="$ac_link" 20156case "(($ac_try" in 20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20158 *) ac_try_echo=$ac_try;; 20159esac 20160eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 20161$as_echo "$ac_try_echo"; } >&5 20162 (eval "$ac_link") 2>conftest.err 20163 ac_status=$? 20164 if test -s conftest.err; then 20165 grep -v '^ *+' conftest.err >conftest.er1 20166 cat conftest.er1 >&5 20167 mv -f conftest.er1 conftest.err 20168 fi 20169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20170 test $ac_status = 0; } && { 20171 test -z "$ac_cxx_werror_flag" || 20172 test ! -s conftest.err 20173 } && test -s conftest$ac_exeext && { 20174 test "$cross_compiling" = yes || 20175 $as_executable_p conftest$ac_exeext 20176 }; then : 20177 boost_cv_lib_system=yes 20178else 20179 if $boost_use_source; then 20180 $as_echo "$as_me: failed program was:" >&5 20181sed 's/^/| /' conftest.$ac_ext >&5 20182 20183 fi 20184 boost_cv_lib_system=no 20185fi 20186ac_objext=$boost_save_ac_objext 20187ac_ext=$boost_save_ac_ext 20188rm -f core conftest.err conftest_ipa8_conftest.oo \ 20189 conftest$ac_exeext 20190 ac_objext=$boost_save_ac_objext 20191 LDFLAGS=$boost_save_LDFLAGS 20192 LIBS=$boost_save_LIBS 20193 if test x"$boost_cv_lib_system" = xyes; then 20194 # Check or used cached result of whether or not using -R or 20195 # -rpath makes sense. Some implementations of ld, such as for 20196 # Mac OSX, require -rpath but -R is the flag known to work on 20197 # other systems. https://github.com/tsuna/boost.m4/issues/19 20198 if ${boost_cv_rpath_link_ldflag+:} false; then : 20199 $as_echo_n "(cached) " >&6 20200else 20201 case $boost_ldpath in 20202 '') # Nothing to do. 20203 boost_cv_rpath_link_ldflag= 20204 boost_rpath_link_ldflag_found=yes;; 20205 *) 20206 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do 20207 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 20208 LIBS="$boost_cv_lib_system_LIBS $boost_save_LIBS" 20209 rm -f conftest$ac_exeext 20210boost_save_ac_ext=$ac_ext 20211boost_use_source=: 20212# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 20213# tries to link the existing object file instead of compiling from source. 20214test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 20215 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 20216if { { ac_try="$ac_link" 20217case "(($ac_try" in 20218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20219 *) ac_try_echo=$ac_try;; 20220esac 20221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 20222$as_echo "$ac_try_echo"; } >&5 20223 (eval "$ac_link") 2>conftest.err 20224 ac_status=$? 20225 if test -s conftest.err; then 20226 grep -v '^ *+' conftest.err >conftest.er1 20227 cat conftest.er1 >&5 20228 mv -f conftest.er1 conftest.err 20229 fi 20230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20231 test $ac_status = 0; } && { 20232 test -z "$ac_cxx_werror_flag" || 20233 test ! -s conftest.err 20234 } && test -s conftest$ac_exeext && { 20235 test "$cross_compiling" = yes || 20236 $as_executable_p conftest$ac_exeext 20237 }; then : 20238 boost_rpath_link_ldflag_found=yes 20239 break 20240else 20241 if $boost_use_source; then 20242 $as_echo "$as_me: failed program was:" >&5 20243sed 's/^/| /' conftest.$ac_ext >&5 20244 20245 fi 20246 boost_rpath_link_ldflag_found=no 20247fi 20248ac_objext=$boost_save_ac_objext 20249ac_ext=$boost_save_ac_ext 20250rm -f core conftest.err conftest_ipa8_conftest.oo \ 20251 conftest$ac_exeext 20252 done 20253 ;; 20254 esac 20255 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then : 20256 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5 20257fi 20258 LDFLAGS=$boost_save_LDFLAGS 20259 LIBS=$boost_save_LIBS 20260 20261fi 20262 20263 test x"$boost_ldpath" != x && 20264 boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 20265 boost_cv_lib_system_LDPATH="$boost_ldpath" 20266 boost_last_suffix="$boost_full_suffix" 20267 break 7 20268 else 20269 boost_failed_libs="$boost_failed_libs@$boost_lib@" 20270 fi 20271 done 20272 done 20273done 20274done 20275done 20276done 20277done # boost_lib_ 20278rm -f conftest.$ac_objext 20279 20280fi 20281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5 20282$as_echo "$boost_cv_lib_system" >&6; } 20283case $boost_cv_lib_system in #( 20284 (yes) $as_echo "$as_me: failed program was:" >&5 20285sed 's/^/| /' conftest.$ac_ext >&5 20286 20287 20288$as_echo "#define HAVE_BOOST_SYSTEM 1" >>confdefs.h 20289 BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS 20290 BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH 20291 BOOST_LDPATH=$boost_cv_lib_system_LDPATH 20292 BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS 20293 ;; 20294 (no) $as_echo "$as_me: failed program was:" >&5 20295sed 's/^/| /' conftest.$ac_ext >&5 20296 20297 as_fn_error $? "cannot find flags to link with the Boost system library (libboost-system)" "$LINENO" 5 20298 ;; 20299esac 20300CPPFLAGS=$boost_save_CPPFLAGS 20301ac_ext=cpp 20302ac_cpp='$CXXCPP $CPPFLAGS' 20303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20306fi 20307 20308 20309 20310 20311fi 20312 20313# ============ 20314# mdds support 20315# ============ 20316 20317pkg_failed=no 20318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MDDS" >&5 20319$as_echo_n "checking for MDDS... " >&6; } 20320 20321if test -n "$MDDS_CFLAGS"; then 20322 pkg_cv_MDDS_CFLAGS="$MDDS_CFLAGS" 20323 elif test -n "$PKG_CONFIG"; then 20324 if test -n "$PKG_CONFIG" && \ 20325 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mdds-1.5 >= 1.4.99\""; } >&5 20326 ($PKG_CONFIG --exists --print-errors "mdds-1.5 >= 1.4.99") 2>&5 20327 ac_status=$? 20328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20329 test $ac_status = 0; }; then 20330 pkg_cv_MDDS_CFLAGS=`$PKG_CONFIG --cflags "mdds-1.5 >= 1.4.99" 2>/dev/null` 20331 test "x$?" != "x0" && pkg_failed=yes 20332else 20333 pkg_failed=yes 20334fi 20335 else 20336 pkg_failed=untried 20337fi 20338if test -n "$MDDS_LIBS"; then 20339 pkg_cv_MDDS_LIBS="$MDDS_LIBS" 20340 elif test -n "$PKG_CONFIG"; then 20341 if test -n "$PKG_CONFIG" && \ 20342 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mdds-1.5 >= 1.4.99\""; } >&5 20343 ($PKG_CONFIG --exists --print-errors "mdds-1.5 >= 1.4.99") 2>&5 20344 ac_status=$? 20345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20346 test $ac_status = 0; }; then 20347 pkg_cv_MDDS_LIBS=`$PKG_CONFIG --libs "mdds-1.5 >= 1.4.99" 2>/dev/null` 20348 test "x$?" != "x0" && pkg_failed=yes 20349else 20350 pkg_failed=yes 20351fi 20352 else 20353 pkg_failed=untried 20354fi 20355 20356 20357 20358if test $pkg_failed = yes; then 20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20360$as_echo "no" >&6; } 20361 20362if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20363 _pkg_short_errors_supported=yes 20364else 20365 _pkg_short_errors_supported=no 20366fi 20367 if test $_pkg_short_errors_supported = yes; then 20368 MDDS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mdds-1.5 >= 1.4.99" 2>&1` 20369 else 20370 MDDS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mdds-1.5 >= 1.4.99" 2>&1` 20371 fi 20372 # Put the nasty error message in config.log where it belongs 20373 echo "$MDDS_PKG_ERRORS" >&5 20374 20375 as_fn_error $? "Package requirements (mdds-1.5 >= 1.4.99) were not met: 20376 20377$MDDS_PKG_ERRORS 20378 20379Consider adjusting the PKG_CONFIG_PATH environment variable if you 20380installed software in a non-standard prefix. 20381 20382Alternatively, you may set the environment variables MDDS_CFLAGS 20383and MDDS_LIBS to avoid the need to call pkg-config. 20384See the pkg-config man page for more details." "$LINENO" 5 20385elif test $pkg_failed = untried; then 20386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20387$as_echo "no" >&6; } 20388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20390as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20391is in your PATH or set the PKG_CONFIG environment variable to the full 20392path to pkg-config. 20393 20394Alternatively, you may set the environment variables MDDS_CFLAGS 20395and MDDS_LIBS to avoid the need to call pkg-config. 20396See the pkg-config man page for more details. 20397 20398To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20399See \`config.log' for more details" "$LINENO" 5; } 20400else 20401 MDDS_CFLAGS=$pkg_cv_MDDS_CFLAGS 20402 MDDS_LIBS=$pkg_cv_MDDS_LIBS 20403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20404$as_echo "yes" >&6; } 20405 20406fi 20407CXXFLAGS="$CXXFLAGS $MDDS_CFLAGS" 20408 20409# ================= 20410# Spreadsheet model 20411# ================= 20412# Check whether --enable-spreadsheet-model was given. 20413if test "${enable_spreadsheet_model+set}" = set; then : 20414 enableval=$enable_spreadsheet_model; enable_spreadsheet_model="$enableval" 20415else 20416 enable_spreadsheet_model=yes 20417 20418fi 20419 20420if test "x$enable_spreadsheet_model" != "xno"; then : 20421 20422 20423pkg_failed=no 20424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBIXION" >&5 20425$as_echo_n "checking for LIBIXION... " >&6; } 20426 20427if test -n "$LIBIXION_CFLAGS"; then 20428 pkg_cv_LIBIXION_CFLAGS="$LIBIXION_CFLAGS" 20429 elif test -n "$PKG_CONFIG"; then 20430 if test -n "$PKG_CONFIG" && \ 20431 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libixion-\$IXION_REQUIRED_API_VERSION >= 0.16.0\""; } >&5 20432 ($PKG_CONFIG --exists --print-errors "libixion-$IXION_REQUIRED_API_VERSION >= 0.16.0") 2>&5 20433 ac_status=$? 20434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20435 test $ac_status = 0; }; then 20436 pkg_cv_LIBIXION_CFLAGS=`$PKG_CONFIG --cflags "libixion-$IXION_REQUIRED_API_VERSION >= 0.16.0" 2>/dev/null` 20437 test "x$?" != "x0" && pkg_failed=yes 20438else 20439 pkg_failed=yes 20440fi 20441 else 20442 pkg_failed=untried 20443fi 20444if test -n "$LIBIXION_LIBS"; then 20445 pkg_cv_LIBIXION_LIBS="$LIBIXION_LIBS" 20446 elif test -n "$PKG_CONFIG"; then 20447 if test -n "$PKG_CONFIG" && \ 20448 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libixion-\$IXION_REQUIRED_API_VERSION >= 0.16.0\""; } >&5 20449 ($PKG_CONFIG --exists --print-errors "libixion-$IXION_REQUIRED_API_VERSION >= 0.16.0") 2>&5 20450 ac_status=$? 20451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20452 test $ac_status = 0; }; then 20453 pkg_cv_LIBIXION_LIBS=`$PKG_CONFIG --libs "libixion-$IXION_REQUIRED_API_VERSION >= 0.16.0" 2>/dev/null` 20454 test "x$?" != "x0" && pkg_failed=yes 20455else 20456 pkg_failed=yes 20457fi 20458 else 20459 pkg_failed=untried 20460fi 20461 20462 20463 20464if test $pkg_failed = yes; then 20465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20466$as_echo "no" >&6; } 20467 20468if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20469 _pkg_short_errors_supported=yes 20470else 20471 _pkg_short_errors_supported=no 20472fi 20473 if test $_pkg_short_errors_supported = yes; then 20474 LIBIXION_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libixion-$IXION_REQUIRED_API_VERSION >= 0.16.0" 2>&1` 20475 else 20476 LIBIXION_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libixion-$IXION_REQUIRED_API_VERSION >= 0.16.0" 2>&1` 20477 fi 20478 # Put the nasty error message in config.log where it belongs 20479 echo "$LIBIXION_PKG_ERRORS" >&5 20480 20481 as_fn_error $? "Package requirements (libixion-$IXION_REQUIRED_API_VERSION >= 0.16.0) were not met: 20482 20483$LIBIXION_PKG_ERRORS 20484 20485Consider adjusting the PKG_CONFIG_PATH environment variable if you 20486installed software in a non-standard prefix. 20487 20488Alternatively, you may set the environment variables LIBIXION_CFLAGS 20489and LIBIXION_LIBS to avoid the need to call pkg-config. 20490See the pkg-config man page for more details." "$LINENO" 5 20491elif test $pkg_failed = untried; then 20492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20493$as_echo "no" >&6; } 20494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20496as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20497is in your PATH or set the PKG_CONFIG environment variable to the full 20498path to pkg-config. 20499 20500Alternatively, you may set the environment variables LIBIXION_CFLAGS 20501and LIBIXION_LIBS to avoid the need to call pkg-config. 20502See the pkg-config man page for more details. 20503 20504To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20505See \`config.log' for more details" "$LINENO" 5; } 20506else 20507 LIBIXION_CFLAGS=$pkg_cv_LIBIXION_CFLAGS 20508 LIBIXION_LIBS=$pkg_cv_LIBIXION_LIBS 20509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20510$as_echo "yes" >&6; } 20511 20512fi 20513 CXXFLAGS="$CXXFLAGS -D__ORCUS_SPREADSHEET_MODEL" 20514 if test x"$boost_cv_inc_path" = xno; then 20515 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost date_time library" >&5 20516$as_echo "$as_me: Boost not available, not searching for the Boost date_time library" >&6;} 20517else 20518ac_ext=cpp 20519ac_cpp='$CXXCPP $CPPFLAGS' 20520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20523if test x"$boost_cv_inc_path" = xno; then 20524 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/date_time/posix_time/posix_time.hpp" >&5 20525$as_echo "$as_me: Boost not available, not searching for boost/date_time/posix_time/posix_time.hpp" >&6;} 20526else 20527ac_ext=cpp 20528ac_cpp='$CXXCPP $CPPFLAGS' 20529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20532boost_save_CPPFLAGS=$CPPFLAGS 20533CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 20534ac_fn_cxx_check_header_mongrel "$LINENO" "boost/date_time/posix_time/posix_time.hpp" "ac_cv_header_boost_date_time_posix_time_posix_time_hpp" "$ac_includes_default" 20535if test "x$ac_cv_header_boost_date_time_posix_time_posix_time_hpp" = xyes; then : 20536 20537$as_echo "#define HAVE_BOOST_DATE_TIME_POSIX_TIME_POSIX_TIME_HPP 1" >>confdefs.h 20538 20539else 20540 as_fn_error $? "cannot find boost/date_time/posix_time/posix_time.hpp" "$LINENO" 5 20541fi 20542 20543 20544CPPFLAGS=$boost_save_CPPFLAGS 20545ac_ext=cpp 20546ac_cpp='$CXXCPP $CPPFLAGS' 20547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20550fi 20551 20552boost_save_CPPFLAGS=$CPPFLAGS 20553CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 20554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost date_time library" >&5 20555$as_echo_n "checking for the Boost date_time library... " >&6; } 20556if ${boost_cv_lib_date_time+:} false; then : 20557 $as_echo_n "(cached) " >&6 20558else 20559 boost_cv_lib_date_time=no 20560 case "" in #( 20561 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #( 20562 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #( 20563 (*) boost_mt=; boost_rtopt=;; 20564 esac 20565 if test $enable_static_boost = yes; then 20566 boost_rtopt="s$boost_rtopt" 20567 fi 20568 # Find the proper debug variant depending on what we've been asked to find. 20569 case $boost_rtopt in #( 20570 (*d*) boost_rt_d=$boost_rtopt;; #( 20571 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn') 20572 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #( 20573 (*) boost_rt_d='-d';; 20574 esac 20575 # If the PREFERRED-RT-OPT are not empty, prepend a `-'. 20576 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt" 20577 $boost_guess_use_mt && boost_mt=-mt 20578 # Look for the abs path the static archive. 20579 # $libext is computed by Libtool but let's make sure it's non empty. 20580 test -z "$libext" && 20581 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5 20582 boost_save_ac_objext=$ac_objext 20583 # Generate the test file. 20584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20585/* end confdefs.h. */ 20586 20587#include <boost/date_time/posix_time/posix_time.hpp> 20588 20589int 20590main () 20591{ 20592boost::posix_time::ptime t; 20593 ; 20594 return 0; 20595} 20596_ACEOF 20597 if ac_fn_cxx_try_compile "$LINENO"; then : 20598 ac_objext=do_not_rm_me_plz 20599else 20600 as_fn_error $? "cannot compile a test that uses Boost date_time" "$LINENO" 5 20601fi 20602rm -f core conftest.err conftest.$ac_objext 20603 ac_objext=$boost_save_ac_objext 20604 boost_failed_libs= 20605# Don't bother to ident the following nested for loops, only the 2 20606# innermost ones matter. 20607for boost_lib_ in date_time; do 20608for boost_tag_ in -$boost_cv_lib_tag ''; do 20609for boost_ver_ in -$boost_cv_lib_version ''; do 20610for boost_mt_ in $boost_mt -mt ''; do 20611for boost_rtopt_ in $boost_rtopt '' -d; do 20612 for boost_full_suffix in \ 20613 $boost_last_suffix \ 20614 x$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \ 20615 x$boost_tag_$boost_rtopt_$boost_ver_ \ 20616 x$boost_tag_$boost_mt_$boost_ver_ \ 20617 x$boost_tag_$boost_ver_ 20618 do 20619 boost_real_suffix=`echo "$boost_full_suffix" | sed 's/^x//'` 20620 boost_lib="boost_$boost_lib_$boost_real_suffix" 20621 # Avoid testing twice the same lib 20622 case $boost_failed_libs in #( 20623 (*@$boost_lib@*) continue;; 20624 esac 20625 # If with_boost is empty, we'll search in /lib first, which is not quite 20626 # right so instead we'll try to a location based on where the headers are. 20627 boost_tmp_lib=$with_boost 20628 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} 20629 for boost_ldpath in "$boost_tmp_lib/lib" '' \ 20630 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \ 20631 "$with_boost" C:/Boost/lib /lib* 20632 do 20633 # Don't waste time with directories that don't exist. 20634 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then 20635 continue 20636 fi 20637 boost_save_LDFLAGS=$LDFLAGS 20638 # Are we looking for a static library? 20639 case $boost_ldpath:$boost_rtopt_ in #( 20640 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) 20641 boost_cv_lib_date_time_LIBS="$boost_ldpath/lib$boost_lib.$libext" 20642 test -e "$boost_cv_lib_date_time_LIBS" || continue;; #( 20643 (*) # No: use -lboost_foo to find the shared library. 20644 boost_cv_lib_date_time_LIBS="-l$boost_lib";; 20645 esac 20646 boost_save_LIBS=$LIBS 20647 LIBS="$boost_cv_lib_date_time_LIBS $LIBS" 20648 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath" 20649 rm -f conftest$ac_exeext 20650boost_save_ac_ext=$ac_ext 20651boost_use_source=: 20652# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 20653# tries to link the existing object file instead of compiling from source. 20654test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 20655 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 20656if { { ac_try="$ac_link" 20657case "(($ac_try" in 20658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20659 *) ac_try_echo=$ac_try;; 20660esac 20661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 20662$as_echo "$ac_try_echo"; } >&5 20663 (eval "$ac_link") 2>conftest.err 20664 ac_status=$? 20665 if test -s conftest.err; then 20666 grep -v '^ *+' conftest.err >conftest.er1 20667 cat conftest.er1 >&5 20668 mv -f conftest.er1 conftest.err 20669 fi 20670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20671 test $ac_status = 0; } && { 20672 test -z "$ac_cxx_werror_flag" || 20673 test ! -s conftest.err 20674 } && test -s conftest$ac_exeext && { 20675 test "$cross_compiling" = yes || 20676 $as_executable_p conftest$ac_exeext 20677 }; then : 20678 boost_cv_lib_date_time=yes 20679else 20680 if $boost_use_source; then 20681 $as_echo "$as_me: failed program was:" >&5 20682sed 's/^/| /' conftest.$ac_ext >&5 20683 20684 fi 20685 boost_cv_lib_date_time=no 20686fi 20687ac_objext=$boost_save_ac_objext 20688ac_ext=$boost_save_ac_ext 20689rm -f core conftest.err conftest_ipa8_conftest.oo \ 20690 conftest$ac_exeext 20691 ac_objext=$boost_save_ac_objext 20692 LDFLAGS=$boost_save_LDFLAGS 20693 LIBS=$boost_save_LIBS 20694 if test x"$boost_cv_lib_date_time" = xyes; then 20695 # Check or used cached result of whether or not using -R or 20696 # -rpath makes sense. Some implementations of ld, such as for 20697 # Mac OSX, require -rpath but -R is the flag known to work on 20698 # other systems. https://github.com/tsuna/boost.m4/issues/19 20699 if ${boost_cv_rpath_link_ldflag+:} false; then : 20700 $as_echo_n "(cached) " >&6 20701else 20702 case $boost_ldpath in 20703 '') # Nothing to do. 20704 boost_cv_rpath_link_ldflag= 20705 boost_rpath_link_ldflag_found=yes;; 20706 *) 20707 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do 20708 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 20709 LIBS="$boost_cv_lib_date_time_LIBS $boost_save_LIBS" 20710 rm -f conftest$ac_exeext 20711boost_save_ac_ext=$ac_ext 20712boost_use_source=: 20713# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 20714# tries to link the existing object file instead of compiling from source. 20715test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 20716 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 20717if { { ac_try="$ac_link" 20718case "(($ac_try" in 20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20720 *) ac_try_echo=$ac_try;; 20721esac 20722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 20723$as_echo "$ac_try_echo"; } >&5 20724 (eval "$ac_link") 2>conftest.err 20725 ac_status=$? 20726 if test -s conftest.err; then 20727 grep -v '^ *+' conftest.err >conftest.er1 20728 cat conftest.er1 >&5 20729 mv -f conftest.er1 conftest.err 20730 fi 20731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20732 test $ac_status = 0; } && { 20733 test -z "$ac_cxx_werror_flag" || 20734 test ! -s conftest.err 20735 } && test -s conftest$ac_exeext && { 20736 test "$cross_compiling" = yes || 20737 $as_executable_p conftest$ac_exeext 20738 }; then : 20739 boost_rpath_link_ldflag_found=yes 20740 break 20741else 20742 if $boost_use_source; then 20743 $as_echo "$as_me: failed program was:" >&5 20744sed 's/^/| /' conftest.$ac_ext >&5 20745 20746 fi 20747 boost_rpath_link_ldflag_found=no 20748fi 20749ac_objext=$boost_save_ac_objext 20750ac_ext=$boost_save_ac_ext 20751rm -f core conftest.err conftest_ipa8_conftest.oo \ 20752 conftest$ac_exeext 20753 done 20754 ;; 20755 esac 20756 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then : 20757 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5 20758fi 20759 LDFLAGS=$boost_save_LDFLAGS 20760 LIBS=$boost_save_LIBS 20761 20762fi 20763 20764 test x"$boost_ldpath" != x && 20765 boost_cv_lib_date_time_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 20766 boost_cv_lib_date_time_LDPATH="$boost_ldpath" 20767 boost_last_suffix="$boost_full_suffix" 20768 break 7 20769 else 20770 boost_failed_libs="$boost_failed_libs@$boost_lib@" 20771 fi 20772 done 20773 done 20774done 20775done 20776done 20777done 20778done # boost_lib_ 20779rm -f conftest.$ac_objext 20780 20781fi 20782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_date_time" >&5 20783$as_echo "$boost_cv_lib_date_time" >&6; } 20784case $boost_cv_lib_date_time in #( 20785 (yes) $as_echo "$as_me: failed program was:" >&5 20786sed 's/^/| /' conftest.$ac_ext >&5 20787 20788 20789$as_echo "#define HAVE_BOOST_DATE_TIME 1" >>confdefs.h 20790 BOOST_DATE_TIME_LDFLAGS=$boost_cv_lib_date_time_LDFLAGS 20791 BOOST_DATE_TIME_LDPATH=$boost_cv_lib_date_time_LDPATH 20792 BOOST_LDPATH=$boost_cv_lib_date_time_LDPATH 20793 BOOST_DATE_TIME_LIBS=$boost_cv_lib_date_time_LIBS 20794 ;; 20795 (no) $as_echo "$as_me: failed program was:" >&5 20796sed 's/^/| /' conftest.$ac_ext >&5 20797 20798 as_fn_error $? "cannot find flags to link with the Boost date_time library (libboost-date_time)" "$LINENO" 5 20799 ;; 20800esac 20801CPPFLAGS=$boost_save_CPPFLAGS 20802ac_ext=cpp 20803ac_cpp='$CXXCPP $CPPFLAGS' 20804ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20805ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20806ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20807fi 20808 20809 20810 20811 20812fi 20813 if test "x$enable_spreadsheet_model" != "xno"; then 20814 BUILD_SPREADSHEET_MODEL_TRUE= 20815 BUILD_SPREADSHEET_MODEL_FALSE='#' 20816else 20817 BUILD_SPREADSHEET_MODEL_TRUE='#' 20818 BUILD_SPREADSHEET_MODEL_FALSE= 20819fi 20820 20821 20822# ============== 20823# Python support 20824# ============== 20825# Check whether --enable-python was given. 20826if test "${enable_python+set}" = set; then : 20827 enableval=$enable_python; enable_python="$enableval" 20828else 20829 enable_python=yes 20830 20831fi 20832 20833 20834# Check for python. 20835if test "x$enable_python" != "xno"; then : 20836 20837 20838 20839 20840 20841 20842 20843 if test -n "$PYTHON"; then 20844 # If the user set $PYTHON, use it and don't search something else. 20845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3" >&5 20846$as_echo_n "checking whether $PYTHON version is >= 3... " >&6; } 20847 prog="import sys 20848# split strings by '.' and convert to numeric. Append some zeros 20849# because we need at least 4 digits for the hex conversion. 20850# map returns an iterator in Python 3.0 and a list in 2.x 20851minver = list(map(int, '3'.split('.'))) + [0, 0, 0] 20852minverhex = 0 20853# xrange is not present in Python 3.0 and range returns an iterator 20854for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 20855sys.exit(sys.hexversion < minverhex)" 20856 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 20857 ($PYTHON -c "$prog") >&5 2>&5 20858 ac_status=$? 20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20860 (exit $ac_status); }; then : 20861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20862$as_echo "yes" >&6; } 20863else 20864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20865$as_echo "no" >&6; } 20866 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 20867fi 20868 am_display_PYTHON=$PYTHON 20869 else 20870 # Otherwise, try each interpreter until we find one that satisfies 20871 # VERSION. 20872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3" >&5 20873$as_echo_n "checking for a Python interpreter with version >= 3... " >&6; } 20874if ${am_cv_pathless_PYTHON+:} false; then : 20875 $as_echo_n "(cached) " >&6 20876else 20877 20878 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do 20879 test "$am_cv_pathless_PYTHON" = none && break 20880 prog="import sys 20881# split strings by '.' and convert to numeric. Append some zeros 20882# because we need at least 4 digits for the hex conversion. 20883# map returns an iterator in Python 3.0 and a list in 2.x 20884minver = list(map(int, '3'.split('.'))) + [0, 0, 0] 20885minverhex = 0 20886# xrange is not present in Python 3.0 and range returns an iterator 20887for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 20888sys.exit(sys.hexversion < minverhex)" 20889 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 20890 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 20891 ac_status=$? 20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20893 (exit $ac_status); }; then : 20894 break 20895fi 20896 done 20897fi 20898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 20899$as_echo "$am_cv_pathless_PYTHON" >&6; } 20900 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. 20901 if test "$am_cv_pathless_PYTHON" = none; then 20902 PYTHON=: 20903 else 20904 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. 20905set dummy $am_cv_pathless_PYTHON; ac_word=$2 20906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20907$as_echo_n "checking for $ac_word... " >&6; } 20908if ${ac_cv_path_PYTHON+:} false; then : 20909 $as_echo_n "(cached) " >&6 20910else 20911 case $PYTHON in 20912 [\\/]* | ?:[\\/]*) 20913 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 20914 ;; 20915 *) 20916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20917for as_dir in $PATH 20918do 20919 IFS=$as_save_IFS 20920 test -z "$as_dir" && as_dir=. 20921 for ac_exec_ext in '' $ac_executable_extensions; do 20922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20923 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 20924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20925 break 2 20926 fi 20927done 20928 done 20929IFS=$as_save_IFS 20930 20931 ;; 20932esac 20933fi 20934PYTHON=$ac_cv_path_PYTHON 20935if test -n "$PYTHON"; then 20936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 20937$as_echo "$PYTHON" >&6; } 20938else 20939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20940$as_echo "no" >&6; } 20941fi 20942 20943 20944 fi 20945 am_display_PYTHON=$am_cv_pathless_PYTHON 20946 fi 20947 20948 20949 if test "$PYTHON" = :; then 20950 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5 20951 else 20952 20953 20954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 20955$as_echo_n "checking for $am_display_PYTHON version... " >&6; } 20956if ${am_cv_python_version+:} false; then : 20957 $as_echo_n "(cached) " >&6 20958else 20959 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"` 20960fi 20961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 20962$as_echo "$am_cv_python_version" >&6; } 20963 PYTHON_VERSION=$am_cv_python_version 20964 20965 20966 20967 PYTHON_PREFIX='${prefix}' 20968 20969 PYTHON_EXEC_PREFIX='${exec_prefix}' 20970 20971 20972 20973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 20974$as_echo_n "checking for $am_display_PYTHON platform... " >&6; } 20975if ${am_cv_python_platform+:} false; then : 20976 $as_echo_n "(cached) " >&6 20977else 20978 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` 20979fi 20980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 20981$as_echo "$am_cv_python_platform" >&6; } 20982 PYTHON_PLATFORM=$am_cv_python_platform 20983 20984 20985 # Just factor out some code duplication. 20986 am_python_setup_sysconfig="\ 20987import sys 20988# Prefer sysconfig over distutils.sysconfig, for better compatibility 20989# with python 3.x. See automake bug#10227. 20990try: 20991 import sysconfig 20992except ImportError: 20993 can_use_sysconfig = 0 20994else: 20995 can_use_sysconfig = 1 20996# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 20997# <https://github.com/pypa/virtualenv/issues/118> 20998try: 20999 from platform import python_implementation 21000 if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 21001 can_use_sysconfig = 0 21002except ImportError: 21003 pass" 21004 21005 21006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5 21007$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; } 21008if ${am_cv_python_pythondir+:} false; then : 21009 $as_echo_n "(cached) " >&6 21010else 21011 if test "x$prefix" = xNONE 21012 then 21013 am_py_prefix=$ac_default_prefix 21014 else 21015 am_py_prefix=$prefix 21016 fi 21017 am_cv_python_pythondir=`$PYTHON -c " 21018$am_python_setup_sysconfig 21019if can_use_sysconfig: 21020 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) 21021else: 21022 from distutils import sysconfig 21023 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 21024sys.stdout.write(sitedir)"` 21025 case $am_cv_python_pythondir in 21026 $am_py_prefix*) 21027 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 21028 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` 21029 ;; 21030 *) 21031 case $am_py_prefix in 21032 /usr|/System*) ;; 21033 *) 21034 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages 21035 ;; 21036 esac 21037 ;; 21038 esac 21039 21040fi 21041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 21042$as_echo "$am_cv_python_pythondir" >&6; } 21043 pythondir=$am_cv_python_pythondir 21044 21045 21046 21047 pkgpythondir=\${pythondir}/$PACKAGE 21048 21049 21050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5 21051$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; } 21052if ${am_cv_python_pyexecdir+:} false; then : 21053 $as_echo_n "(cached) " >&6 21054else 21055 if test "x$exec_prefix" = xNONE 21056 then 21057 am_py_exec_prefix=$am_py_prefix 21058 else 21059 am_py_exec_prefix=$exec_prefix 21060 fi 21061 am_cv_python_pyexecdir=`$PYTHON -c " 21062$am_python_setup_sysconfig 21063if can_use_sysconfig: 21064 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'}) 21065else: 21066 from distutils import sysconfig 21067 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix') 21068sys.stdout.write(sitedir)"` 21069 case $am_cv_python_pyexecdir in 21070 $am_py_exec_prefix*) 21071 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 21072 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` 21073 ;; 21074 *) 21075 case $am_py_exec_prefix in 21076 /usr|/System*) ;; 21077 *) 21078 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages 21079 ;; 21080 esac 21081 ;; 21082 esac 21083 21084fi 21085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 21086$as_echo "$am_cv_python_pyexecdir" >&6; } 21087 pyexecdir=$am_cv_python_pyexecdir 21088 21089 21090 21091 pkgpyexecdir=\${pyexecdir}/$PACKAGE 21092 21093 21094 21095 fi 21096 21097 21098 21099pkg_failed=no 21100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5 21101$as_echo_n "checking for PYTHON... " >&6; } 21102 21103if test -n "$PYTHON_CFLAGS"; then 21104 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS" 21105 elif test -n "$PKG_CONFIG"; then 21106 if test -n "$PKG_CONFIG" && \ 21107 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python3 >= 0.28\""; } >&5 21108 ($PKG_CONFIG --exists --print-errors "python3 >= 0.28") 2>&5 21109 ac_status=$? 21110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21111 test $ac_status = 0; }; then 21112 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python3 >= 0.28" 2>/dev/null` 21113 test "x$?" != "x0" && pkg_failed=yes 21114else 21115 pkg_failed=yes 21116fi 21117 else 21118 pkg_failed=untried 21119fi 21120if test -n "$PYTHON_LIBS"; then 21121 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS" 21122 elif test -n "$PKG_CONFIG"; then 21123 if test -n "$PKG_CONFIG" && \ 21124 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python3 >= 0.28\""; } >&5 21125 ($PKG_CONFIG --exists --print-errors "python3 >= 0.28") 2>&5 21126 ac_status=$? 21127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21128 test $ac_status = 0; }; then 21129 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python3 >= 0.28" 2>/dev/null` 21130 test "x$?" != "x0" && pkg_failed=yes 21131else 21132 pkg_failed=yes 21133fi 21134 else 21135 pkg_failed=untried 21136fi 21137 21138 21139 21140if test $pkg_failed = yes; then 21141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21142$as_echo "no" >&6; } 21143 21144if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21145 _pkg_short_errors_supported=yes 21146else 21147 _pkg_short_errors_supported=no 21148fi 21149 if test $_pkg_short_errors_supported = yes; then 21150 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python3 >= 0.28" 2>&1` 21151 else 21152 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python3 >= 0.28" 2>&1` 21153 fi 21154 # Put the nasty error message in config.log where it belongs 21155 echo "$PYTHON_PKG_ERRORS" >&5 21156 21157 as_fn_error $? "Package requirements (python3 >= 0.28) were not met: 21158 21159$PYTHON_PKG_ERRORS 21160 21161Consider adjusting the PKG_CONFIG_PATH environment variable if you 21162installed software in a non-standard prefix. 21163 21164Alternatively, you may set the environment variables PYTHON_CFLAGS 21165and PYTHON_LIBS to avoid the need to call pkg-config. 21166See the pkg-config man page for more details." "$LINENO" 5 21167elif test $pkg_failed = untried; then 21168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21169$as_echo "no" >&6; } 21170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21172as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21173is in your PATH or set the PKG_CONFIG environment variable to the full 21174path to pkg-config. 21175 21176Alternatively, you may set the environment variables PYTHON_CFLAGS 21177and PYTHON_LIBS to avoid the need to call pkg-config. 21178See the pkg-config man page for more details. 21179 21180To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21181See \`config.log' for more details" "$LINENO" 5; } 21182else 21183 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS 21184 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS 21185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21186$as_echo "yes" >&6; } 21187 21188fi 21189 21190fi 21191 if test "x$enable_python" != "xno"; then 21192 BUILD_PYTHON_TRUE= 21193 BUILD_PYTHON_FALSE='#' 21194else 21195 BUILD_PYTHON_TRUE='#' 21196 BUILD_PYTHON_FALSE= 21197fi 21198 21199 21200# csv is always enabled. 21201CXXFLAGS="$CXXFLAGS -D__ORCUS_PYTHON_CSV" 21202 21203with_python_xlsx="no" 21204if test "x$enable_spreadsheet_model" != "xno"; then 21205 if test "x$enable_python" != "xno"; then 21206 if test "x$with_xlsx_filter" != "xno"; then 21207 with_python_xlsx="yes" 21208 fi 21209 fi 21210fi 21211 21212if test "x$with_python_xlsx" != "xno"; then 21213 CXXFLAGS="$CXXFLAGS -D__ORCUS_PYTHON_XLSX" 21214fi 21215 21216with_python_ods="no" 21217if test "x$enable_spreadsheet_model" != "xno"; then 21218 if test "x$enable_python" != "xno"; then 21219 if test "x$with_ods_filter" != "xno"; then 21220 with_python_ods="yes" 21221 fi 21222 fi 21223fi 21224 21225if test "x$with_python_ods" != "xno"; then 21226 CXXFLAGS="$CXXFLAGS -D__ORCUS_PYTHON_ODS" 21227fi 21228 21229with_python_xls_xml="no" 21230if test "x$enable_spreadsheet_model" != "xno"; then 21231 if test "x$enable_python" != "xno"; then 21232 if test "x$with_xls_xml_filter" != "xno"; then 21233 with_python_xls_xml="yes" 21234 fi 21235 fi 21236fi 21237 21238if test "x$with_python_xls_xml" != "xno"; then 21239 CXXFLAGS="$CXXFLAGS -D__ORCUS_PYTHON_XLS_XML" 21240fi 21241 21242with_python_gnumeric="no" 21243if test "x$enable_spreadsheet_model" != "xno"; then 21244 if test "x$enable_python" != "xno"; then 21245 if test "x$with_gnumeric_filter" != "xno"; then 21246 with_python_gnumeric="yes" 21247 fi 21248 fi 21249fi 21250 21251if test "x$with_python_gnumeric" != "xno"; then 21252 CXXFLAGS="$CXXFLAGS -D__ORCUS_PYTHON_GNUMERIC" 21253fi 21254 21255 if test "x$with_python_xlsx" != "xno"; then 21256 WITH_PYTHON_XLSX_TRUE= 21257 WITH_PYTHON_XLSX_FALSE='#' 21258else 21259 WITH_PYTHON_XLSX_TRUE='#' 21260 WITH_PYTHON_XLSX_FALSE= 21261fi 21262 21263 if test "x$with_python_ods" != "xno"; then 21264 WITH_PYTHON_ODS_TRUE= 21265 WITH_PYTHON_ODS_FALSE='#' 21266else 21267 WITH_PYTHON_ODS_TRUE='#' 21268 WITH_PYTHON_ODS_FALSE= 21269fi 21270 21271 if test "x$with_python_csv" != "xno"; then 21272 WITH_PYTHON_CSV_TRUE= 21273 WITH_PYTHON_CSV_FALSE='#' 21274else 21275 WITH_PYTHON_CSV_TRUE='#' 21276 WITH_PYTHON_CSV_FALSE= 21277fi 21278 21279 if test "x$with_python_xls_xml" != "xno"; then 21280 WITH_PYTHON_XLS_XML_TRUE= 21281 WITH_PYTHON_XLS_XML_FALSE='#' 21282else 21283 WITH_PYTHON_XLS_XML_TRUE='#' 21284 WITH_PYTHON_XLS_XML_FALSE= 21285fi 21286 21287 if test "x$with_python_gnumeric" != "xno"; then 21288 WITH_PYTHON_GNUMERIC_TRUE= 21289 WITH_PYTHON_GNUMERIC_FALSE='#' 21290else 21291 WITH_PYTHON_GNUMERIC_TRUE='#' 21292 WITH_PYTHON_GNUMERIC_FALSE= 21293fi 21294 21295 21296# ============== 21297# Werror support 21298# ============== 21299 21300# NB: This must come at the end of all the other header detections, as enabling 21301# it may cause some header detections to fail. 21302 21303# Check whether --enable-werror was given. 21304if test "${enable_werror+set}" = set; then : 21305 enableval=$enable_werror; enable_werror="$enableval" 21306else 21307 enable_werror=no 21308 21309fi 21310 21311if test x"$enable_werror" = "xyes"; then : 21312 21313 CXXFLAGS="$CXXFLAGS -Werror" 21314 21315fi 21316 21317ac_config_files="$ac_config_files Makefile liborcus-$ORCUS_API_VERSION.pc:liborcus.pc.in liborcus-spreadsheet-model-$ORCUS_API_VERSION.pc:liborcus-spreadsheet-model.pc.in include/Makefile include/orcus/Makefile include/orcus/detail/Makefile include/orcus/mso/Makefile include/orcus/spreadsheet/Makefile src/Makefile src/include/Makefile src/liborcus/Makefile src/liborcus/constants.inl src/mso/Makefile src/parser/Makefile src/python/Makefile src/spreadsheet/Makefile test/python/env.json benchmark/Makefile doc_example/Makefile" 21318 21319cat >confcache <<\_ACEOF 21320# This file is a shell script that caches the results of configure 21321# tests run on this system so they can be shared between configure 21322# scripts and configure runs, see configure's option --config-cache. 21323# It is not useful on other systems. If it contains results you don't 21324# want to keep, you may remove or edit it. 21325# 21326# config.status only pays attention to the cache file if you give it 21327# the --recheck option to rerun configure. 21328# 21329# `ac_cv_env_foo' variables (set or unset) will be overridden when 21330# loading this file, other *unset* `ac_cv_foo' will be assigned the 21331# following values. 21332 21333_ACEOF 21334 21335# The following way of writing the cache mishandles newlines in values, 21336# but we know of no workaround that is simple, portable, and efficient. 21337# So, we kill variables containing newlines. 21338# Ultrix sh set writes to stderr and can't be redirected directly, 21339# and sets the high bit in the cache file unless we assign to the vars. 21340( 21341 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21342 eval ac_val=\$$ac_var 21343 case $ac_val in #( 21344 *${as_nl}*) 21345 case $ac_var in #( 21346 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21347$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21348 esac 21349 case $ac_var in #( 21350 _ | IFS | as_nl) ;; #( 21351 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21352 *) { eval $ac_var=; unset $ac_var;} ;; 21353 esac ;; 21354 esac 21355 done 21356 21357 (set) 2>&1 | 21358 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21359 *${as_nl}ac_space=\ *) 21360 # `set' does not quote correctly, so add quotes: double-quote 21361 # substitution turns \\\\ into \\, and sed turns \\ into \. 21362 sed -n \ 21363 "s/'/'\\\\''/g; 21364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21365 ;; #( 21366 *) 21367 # `set' quotes correctly as required by POSIX, so do not add quotes. 21368 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21369 ;; 21370 esac | 21371 sort 21372) | 21373 sed ' 21374 /^ac_cv_env_/b end 21375 t clear 21376 :clear 21377 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21378 t end 21379 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21380 :end' >>confcache 21381if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21382 if test -w "$cache_file"; then 21383 if test "x$cache_file" != "x/dev/null"; then 21384 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21385$as_echo "$as_me: updating cache $cache_file" >&6;} 21386 if test ! -f "$cache_file" || test -h "$cache_file"; then 21387 cat confcache >"$cache_file" 21388 else 21389 case $cache_file in #( 21390 */* | ?:*) 21391 mv -f confcache "$cache_file"$$ && 21392 mv -f "$cache_file"$$ "$cache_file" ;; #( 21393 *) 21394 mv -f confcache "$cache_file" ;; 21395 esac 21396 fi 21397 fi 21398 else 21399 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21400$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21401 fi 21402fi 21403rm -f confcache 21404 21405test "x$prefix" = xNONE && prefix=$ac_default_prefix 21406# Let make expand exec_prefix. 21407test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21408 21409DEFS=-DHAVE_CONFIG_H 21410 21411ac_libobjs= 21412ac_ltlibobjs= 21413U= 21414for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21415 # 1. Remove the extension, and $U if already installed. 21416 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21417 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21418 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21419 # will be set to the directory where LIBOBJS objects are built. 21420 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21421 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21422done 21423LIBOBJS=$ac_libobjs 21424 21425LTLIBOBJS=$ac_ltlibobjs 21426 21427 21428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21429$as_echo_n "checking that generated files are newer than configure... " >&6; } 21430 if test -n "$am_sleep_pid"; then 21431 # Hide warnings about reused PIDs. 21432 wait $am_sleep_pid 2>/dev/null 21433 fi 21434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 21435$as_echo "done" >&6; } 21436 if test -n "$EXEEXT"; then 21437 am__EXEEXT_TRUE= 21438 am__EXEEXT_FALSE='#' 21439else 21440 am__EXEEXT_TRUE='#' 21441 am__EXEEXT_FALSE= 21442fi 21443 21444if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21445 as_fn_error $? "conditional \"AMDEP\" was never defined. 21446Usually this means the macro was only invoked conditionally." "$LINENO" 5 21447fi 21448if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21449 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 21450Usually this means the macro was only invoked conditionally." "$LINENO" 5 21451fi 21452if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21453 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21454Usually this means the macro was only invoked conditionally." "$LINENO" 5 21455fi 21456if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21457 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 21458Usually this means the macro was only invoked conditionally." "$LINENO" 5 21459fi 21460if test -z "${HAVE_STATIC_LIB_TRUE}" && test -z "${HAVE_STATIC_LIB_FALSE}"; then 21461 as_fn_error $? "conditional \"HAVE_STATIC_LIB\" was never defined. 21462Usually this means the macro was only invoked conditionally." "$LINENO" 5 21463fi 21464if test -z "${WITH_ODS_FILTER_TRUE}" && test -z "${WITH_ODS_FILTER_FALSE}"; then 21465 as_fn_error $? "conditional \"WITH_ODS_FILTER\" was never defined. 21466Usually this means the macro was only invoked conditionally." "$LINENO" 5 21467fi 21468if test -z "${WITH_XLSX_FILTER_TRUE}" && test -z "${WITH_XLSX_FILTER_FALSE}"; then 21469 as_fn_error $? "conditional \"WITH_XLSX_FILTER\" was never defined. 21470Usually this means the macro was only invoked conditionally." "$LINENO" 5 21471fi 21472if test -z "${WITH_XLS_XML_FILTER_TRUE}" && test -z "${WITH_XLS_XML_FILTER_FALSE}"; then 21473 as_fn_error $? "conditional \"WITH_XLS_XML_FILTER\" was never defined. 21474Usually this means the macro was only invoked conditionally." "$LINENO" 5 21475fi 21476if test -z "${WITH_GNUMERIC_FILTER_TRUE}" && test -z "${WITH_GNUMERIC_FILTER_FALSE}"; then 21477 as_fn_error $? "conditional \"WITH_GNUMERIC_FILTER\" was never defined. 21478Usually this means the macro was only invoked conditionally." "$LINENO" 5 21479fi 21480if test -z "${WITH_TOOLS_TRUE}" && test -z "${WITH_TOOLS_FALSE}"; then 21481 as_fn_error $? "conditional \"WITH_TOOLS\" was never defined. 21482Usually this means the macro was only invoked conditionally." "$LINENO" 5 21483fi 21484if test -z "${BUILD_SPREADSHEET_MODEL_TRUE}" && test -z "${BUILD_SPREADSHEET_MODEL_FALSE}"; then 21485 as_fn_error $? "conditional \"BUILD_SPREADSHEET_MODEL\" was never defined. 21486Usually this means the macro was only invoked conditionally." "$LINENO" 5 21487fi 21488if test -z "${BUILD_PYTHON_TRUE}" && test -z "${BUILD_PYTHON_FALSE}"; then 21489 as_fn_error $? "conditional \"BUILD_PYTHON\" was never defined. 21490Usually this means the macro was only invoked conditionally." "$LINENO" 5 21491fi 21492if test -z "${WITH_PYTHON_XLSX_TRUE}" && test -z "${WITH_PYTHON_XLSX_FALSE}"; then 21493 as_fn_error $? "conditional \"WITH_PYTHON_XLSX\" was never defined. 21494Usually this means the macro was only invoked conditionally." "$LINENO" 5 21495fi 21496if test -z "${WITH_PYTHON_ODS_TRUE}" && test -z "${WITH_PYTHON_ODS_FALSE}"; then 21497 as_fn_error $? "conditional \"WITH_PYTHON_ODS\" was never defined. 21498Usually this means the macro was only invoked conditionally." "$LINENO" 5 21499fi 21500if test -z "${WITH_PYTHON_CSV_TRUE}" && test -z "${WITH_PYTHON_CSV_FALSE}"; then 21501 as_fn_error $? "conditional \"WITH_PYTHON_CSV\" was never defined. 21502Usually this means the macro was only invoked conditionally." "$LINENO" 5 21503fi 21504if test -z "${WITH_PYTHON_XLS_XML_TRUE}" && test -z "${WITH_PYTHON_XLS_XML_FALSE}"; then 21505 as_fn_error $? "conditional \"WITH_PYTHON_XLS_XML\" was never defined. 21506Usually this means the macro was only invoked conditionally." "$LINENO" 5 21507fi 21508if test -z "${WITH_PYTHON_GNUMERIC_TRUE}" && test -z "${WITH_PYTHON_GNUMERIC_FALSE}"; then 21509 as_fn_error $? "conditional \"WITH_PYTHON_GNUMERIC\" was never defined. 21510Usually this means the macro was only invoked conditionally." "$LINENO" 5 21511fi 21512 21513: "${CONFIG_STATUS=./config.status}" 21514ac_write_fail=0 21515ac_clean_files_save=$ac_clean_files 21516ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21517{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21518$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21519as_write_fail=0 21520cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21521#! $SHELL 21522# Generated by $as_me. 21523# Run this file to recreate the current configuration. 21524# Compiler output produced by configure, useful for debugging 21525# configure, is in config.log if it exists. 21526 21527debug=false 21528ac_cs_recheck=false 21529ac_cs_silent=false 21530 21531SHELL=\${CONFIG_SHELL-$SHELL} 21532export SHELL 21533_ASEOF 21534cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21535## -------------------- ## 21536## M4sh Initialization. ## 21537## -------------------- ## 21538 21539# Be more Bourne compatible 21540DUALCASE=1; export DUALCASE # for MKS sh 21541if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21542 emulate sh 21543 NULLCMD=: 21544 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21545 # is contrary to our usage. Disable this feature. 21546 alias -g '${1+"$@"}'='"$@"' 21547 setopt NO_GLOB_SUBST 21548else 21549 case `(set -o) 2>/dev/null` in #( 21550 *posix*) : 21551 set -o posix ;; #( 21552 *) : 21553 ;; 21554esac 21555fi 21556 21557 21558as_nl=' 21559' 21560export as_nl 21561# Printing a long string crashes Solaris 7 /usr/bin/printf. 21562as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21563as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21564as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21565# Prefer a ksh shell builtin over an external printf program on Solaris, 21566# but without wasting forks for bash or zsh. 21567if test -z "$BASH_VERSION$ZSH_VERSION" \ 21568 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 21569 as_echo='print -r --' 21570 as_echo_n='print -rn --' 21571elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21572 as_echo='printf %s\n' 21573 as_echo_n='printf %s' 21574else 21575 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21576 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21577 as_echo_n='/usr/ucb/echo -n' 21578 else 21579 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21580 as_echo_n_body='eval 21581 arg=$1; 21582 case $arg in #( 21583 *"$as_nl"*) 21584 expr "X$arg" : "X\\(.*\\)$as_nl"; 21585 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21586 esac; 21587 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21588 ' 21589 export as_echo_n_body 21590 as_echo_n='sh -c $as_echo_n_body as_echo' 21591 fi 21592 export as_echo_body 21593 as_echo='sh -c $as_echo_body as_echo' 21594fi 21595 21596# The user is always right. 21597if test "${PATH_SEPARATOR+set}" != set; then 21598 PATH_SEPARATOR=: 21599 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21600 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21601 PATH_SEPARATOR=';' 21602 } 21603fi 21604 21605 21606# IFS 21607# We need space, tab and new line, in precisely that order. Quoting is 21608# there to prevent editors from complaining about space-tab. 21609# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21610# splitting by setting IFS to empty value.) 21611IFS=" "" $as_nl" 21612 21613# Find who we are. Look in the path if we contain no directory separator. 21614as_myself= 21615case $0 in #(( 21616 *[\\/]* ) as_myself=$0 ;; 21617 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21618for as_dir in $PATH 21619do 21620 IFS=$as_save_IFS 21621 test -z "$as_dir" && as_dir=. 21622 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21623 done 21624IFS=$as_save_IFS 21625 21626 ;; 21627esac 21628# We did not find ourselves, most probably we were run as `sh COMMAND' 21629# in which case we are not to be found in the path. 21630if test "x$as_myself" = x; then 21631 as_myself=$0 21632fi 21633if test ! -f "$as_myself"; then 21634 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21635 exit 1 21636fi 21637 21638# Unset variables that we do not need and which cause bugs (e.g. in 21639# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 21640# suppresses any "Segmentation fault" message there. '((' could 21641# trigger a bug in pdksh 5.2.14. 21642for as_var in BASH_ENV ENV MAIL MAILPATH 21643do eval test x\${$as_var+set} = xset \ 21644 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21645done 21646PS1='$ ' 21647PS2='> ' 21648PS4='+ ' 21649 21650# NLS nuisances. 21651LC_ALL=C 21652export LC_ALL 21653LANGUAGE=C 21654export LANGUAGE 21655 21656# CDPATH. 21657(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21658 21659 21660# as_fn_error STATUS ERROR [LINENO LOG_FD] 21661# ---------------------------------------- 21662# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21663# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21664# script with STATUS, using 1 if that was 0. 21665as_fn_error () 21666{ 21667 as_status=$1; test $as_status -eq 0 && as_status=1 21668 if test "$4"; then 21669 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21670 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21671 fi 21672 $as_echo "$as_me: error: $2" >&2 21673 as_fn_exit $as_status 21674} # as_fn_error 21675 21676 21677# as_fn_set_status STATUS 21678# ----------------------- 21679# Set $? to STATUS, without forking. 21680as_fn_set_status () 21681{ 21682 return $1 21683} # as_fn_set_status 21684 21685# as_fn_exit STATUS 21686# ----------------- 21687# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21688as_fn_exit () 21689{ 21690 set +e 21691 as_fn_set_status $1 21692 exit $1 21693} # as_fn_exit 21694 21695# as_fn_unset VAR 21696# --------------- 21697# Portably unset VAR. 21698as_fn_unset () 21699{ 21700 { eval $1=; unset $1;} 21701} 21702as_unset=as_fn_unset 21703# as_fn_append VAR VALUE 21704# ---------------------- 21705# Append the text in VALUE to the end of the definition contained in VAR. Take 21706# advantage of any shell optimizations that allow amortized linear growth over 21707# repeated appends, instead of the typical quadratic growth present in naive 21708# implementations. 21709if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 21710 eval 'as_fn_append () 21711 { 21712 eval $1+=\$2 21713 }' 21714else 21715 as_fn_append () 21716 { 21717 eval $1=\$$1\$2 21718 } 21719fi # as_fn_append 21720 21721# as_fn_arith ARG... 21722# ------------------ 21723# Perform arithmetic evaluation on the ARGs, and store the result in the 21724# global $as_val. Take advantage of shells that can avoid forks. The arguments 21725# must be portable across $(()) and expr. 21726if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 21727 eval 'as_fn_arith () 21728 { 21729 as_val=$(( $* )) 21730 }' 21731else 21732 as_fn_arith () 21733 { 21734 as_val=`expr "$@" || test $? -eq 1` 21735 } 21736fi # as_fn_arith 21737 21738 21739if expr a : '\(a\)' >/dev/null 2>&1 && 21740 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21741 as_expr=expr 21742else 21743 as_expr=false 21744fi 21745 21746if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21747 as_basename=basename 21748else 21749 as_basename=false 21750fi 21751 21752if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21753 as_dirname=dirname 21754else 21755 as_dirname=false 21756fi 21757 21758as_me=`$as_basename -- "$0" || 21759$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21760 X"$0" : 'X\(//\)$' \| \ 21761 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21762$as_echo X/"$0" | 21763 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21764 s//\1/ 21765 q 21766 } 21767 /^X\/\(\/\/\)$/{ 21768 s//\1/ 21769 q 21770 } 21771 /^X\/\(\/\).*/{ 21772 s//\1/ 21773 q 21774 } 21775 s/.*/./; q'` 21776 21777# Avoid depending upon Character Ranges. 21778as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21779as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21780as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21781as_cr_digits='0123456789' 21782as_cr_alnum=$as_cr_Letters$as_cr_digits 21783 21784ECHO_C= ECHO_N= ECHO_T= 21785case `echo -n x` in #((((( 21786-n*) 21787 case `echo 'xy\c'` in 21788 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21789 xy) ECHO_C='\c';; 21790 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21791 ECHO_T=' ';; 21792 esac;; 21793*) 21794 ECHO_N='-n';; 21795esac 21796 21797rm -f conf$$ conf$$.exe conf$$.file 21798if test -d conf$$.dir; then 21799 rm -f conf$$.dir/conf$$.file 21800else 21801 rm -f conf$$.dir 21802 mkdir conf$$.dir 2>/dev/null 21803fi 21804if (echo >conf$$.file) 2>/dev/null; then 21805 if ln -s conf$$.file conf$$ 2>/dev/null; then 21806 as_ln_s='ln -s' 21807 # ... but there are two gotchas: 21808 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21809 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21810 # In both cases, we have to default to `cp -pR'. 21811 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21812 as_ln_s='cp -pR' 21813 elif ln conf$$.file conf$$ 2>/dev/null; then 21814 as_ln_s=ln 21815 else 21816 as_ln_s='cp -pR' 21817 fi 21818else 21819 as_ln_s='cp -pR' 21820fi 21821rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21822rmdir conf$$.dir 2>/dev/null 21823 21824 21825# as_fn_mkdir_p 21826# ------------- 21827# Create "$as_dir" as a directory, including parents if necessary. 21828as_fn_mkdir_p () 21829{ 21830 21831 case $as_dir in #( 21832 -*) as_dir=./$as_dir;; 21833 esac 21834 test -d "$as_dir" || eval $as_mkdir_p || { 21835 as_dirs= 21836 while :; do 21837 case $as_dir in #( 21838 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21839 *) as_qdir=$as_dir;; 21840 esac 21841 as_dirs="'$as_qdir' $as_dirs" 21842 as_dir=`$as_dirname -- "$as_dir" || 21843$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21844 X"$as_dir" : 'X\(//\)[^/]' \| \ 21845 X"$as_dir" : 'X\(//\)$' \| \ 21846 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21847$as_echo X"$as_dir" | 21848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21849 s//\1/ 21850 q 21851 } 21852 /^X\(\/\/\)[^/].*/{ 21853 s//\1/ 21854 q 21855 } 21856 /^X\(\/\/\)$/{ 21857 s//\1/ 21858 q 21859 } 21860 /^X\(\/\).*/{ 21861 s//\1/ 21862 q 21863 } 21864 s/.*/./; q'` 21865 test -d "$as_dir" && break 21866 done 21867 test -z "$as_dirs" || eval "mkdir $as_dirs" 21868 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21869 21870 21871} # as_fn_mkdir_p 21872if mkdir -p . 2>/dev/null; then 21873 as_mkdir_p='mkdir -p "$as_dir"' 21874else 21875 test -d ./-p && rmdir ./-p 21876 as_mkdir_p=false 21877fi 21878 21879 21880# as_fn_executable_p FILE 21881# ----------------------- 21882# Test if FILE is an executable regular file. 21883as_fn_executable_p () 21884{ 21885 test -f "$1" && test -x "$1" 21886} # as_fn_executable_p 21887as_test_x='test -x' 21888as_executable_p=as_fn_executable_p 21889 21890# Sed expression to map a string onto a valid CPP name. 21891as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21892 21893# Sed expression to map a string onto a valid variable name. 21894as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21895 21896 21897exec 6>&1 21898## ----------------------------------- ## 21899## Main body of $CONFIG_STATUS script. ## 21900## ----------------------------------- ## 21901_ASEOF 21902test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21903 21904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21905# Save the log message, to keep $0 and so on meaningful, and to 21906# report actual input values of CONFIG_FILES etc. instead of their 21907# values after options handling. 21908ac_log=" 21909This file was extended by liborcus $as_me 0.16.1, which was 21910generated by GNU Autoconf 2.69. Invocation command line was 21911 21912 CONFIG_FILES = $CONFIG_FILES 21913 CONFIG_HEADERS = $CONFIG_HEADERS 21914 CONFIG_LINKS = $CONFIG_LINKS 21915 CONFIG_COMMANDS = $CONFIG_COMMANDS 21916 $ $0 $@ 21917 21918on `(hostname || uname -n) 2>/dev/null | sed 1q` 21919" 21920 21921_ACEOF 21922 21923case $ac_config_files in *" 21924"*) set x $ac_config_files; shift; ac_config_files=$*;; 21925esac 21926 21927case $ac_config_headers in *" 21928"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21929esac 21930 21931 21932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21933# Files that config.status was made for. 21934config_files="$ac_config_files" 21935config_headers="$ac_config_headers" 21936config_commands="$ac_config_commands" 21937 21938_ACEOF 21939 21940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21941ac_cs_usage="\ 21942\`$as_me' instantiates files and other configuration actions 21943from templates according to the current configuration. Unless the files 21944and actions are specified as TAGs, all are instantiated by default. 21945 21946Usage: $0 [OPTION]... [TAG]... 21947 21948 -h, --help print this help, then exit 21949 -V, --version print version number and configuration settings, then exit 21950 --config print configuration, then exit 21951 -q, --quiet, --silent 21952 do not print progress messages 21953 -d, --debug don't remove temporary files 21954 --recheck update $as_me by reconfiguring in the same conditions 21955 --file=FILE[:TEMPLATE] 21956 instantiate the configuration file FILE 21957 --header=FILE[:TEMPLATE] 21958 instantiate the configuration header FILE 21959 21960Configuration files: 21961$config_files 21962 21963Configuration headers: 21964$config_headers 21965 21966Configuration commands: 21967$config_commands 21968 21969Report bugs to the package provider." 21970 21971_ACEOF 21972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21973ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21974ac_cs_version="\\ 21975liborcus config.status 0.16.1 21976configured by $0, generated by GNU Autoconf 2.69, 21977 with options \\"\$ac_cs_config\\" 21978 21979Copyright (C) 2012 Free Software Foundation, Inc. 21980This config.status script is free software; the Free Software Foundation 21981gives unlimited permission to copy, distribute and modify it." 21982 21983ac_pwd='$ac_pwd' 21984srcdir='$srcdir' 21985INSTALL='$INSTALL' 21986MKDIR_P='$MKDIR_P' 21987AWK='$AWK' 21988test -n "\$AWK" || AWK=awk 21989_ACEOF 21990 21991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21992# The default lists apply if the user does not specify any file. 21993ac_need_defaults=: 21994while test $# != 0 21995do 21996 case $1 in 21997 --*=?*) 21998 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21999 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22000 ac_shift=: 22001 ;; 22002 --*=) 22003 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22004 ac_optarg= 22005 ac_shift=: 22006 ;; 22007 *) 22008 ac_option=$1 22009 ac_optarg=$2 22010 ac_shift=shift 22011 ;; 22012 esac 22013 22014 case $ac_option in 22015 # Handling of the options. 22016 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22017 ac_cs_recheck=: ;; 22018 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22019 $as_echo "$ac_cs_version"; exit ;; 22020 --config | --confi | --conf | --con | --co | --c ) 22021 $as_echo "$ac_cs_config"; exit ;; 22022 --debug | --debu | --deb | --de | --d | -d ) 22023 debug=: ;; 22024 --file | --fil | --fi | --f ) 22025 $ac_shift 22026 case $ac_optarg in 22027 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22028 '') as_fn_error $? "missing file argument" ;; 22029 esac 22030 as_fn_append CONFIG_FILES " '$ac_optarg'" 22031 ac_need_defaults=false;; 22032 --header | --heade | --head | --hea ) 22033 $ac_shift 22034 case $ac_optarg in 22035 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22036 esac 22037 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22038 ac_need_defaults=false;; 22039 --he | --h) 22040 # Conflict between --help and --header 22041 as_fn_error $? "ambiguous option: \`$1' 22042Try \`$0 --help' for more information.";; 22043 --help | --hel | -h ) 22044 $as_echo "$ac_cs_usage"; exit ;; 22045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22046 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22047 ac_cs_silent=: ;; 22048 22049 # This is an error. 22050 -*) as_fn_error $? "unrecognized option: \`$1' 22051Try \`$0 --help' for more information." ;; 22052 22053 *) as_fn_append ac_config_targets " $1" 22054 ac_need_defaults=false ;; 22055 22056 esac 22057 shift 22058done 22059 22060ac_configure_extra_args= 22061 22062if $ac_cs_silent; then 22063 exec 6>/dev/null 22064 ac_configure_extra_args="$ac_configure_extra_args --silent" 22065fi 22066 22067_ACEOF 22068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22069if \$ac_cs_recheck; then 22070 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22071 shift 22072 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22073 CONFIG_SHELL='$SHELL' 22074 export CONFIG_SHELL 22075 exec "\$@" 22076fi 22077 22078_ACEOF 22079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22080exec 5>>config.log 22081{ 22082 echo 22083 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22084## Running $as_me. ## 22085_ASBOX 22086 $as_echo "$ac_log" 22087} >&5 22088 22089_ACEOF 22090cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22091# 22092# INIT-COMMANDS 22093# 22094AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 22095 22096 22097# The HP-UX ksh and POSIX shell print the target directory to stdout 22098# if CDPATH is set. 22099(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22100 22101sed_quote_subst='$sed_quote_subst' 22102double_quote_subst='$double_quote_subst' 22103delay_variable_subst='$delay_variable_subst' 22104macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22105macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22106enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22107enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22108pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22109enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22110shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 22111SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22112ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 22113PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 22114host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 22115host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 22116host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 22117build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 22118build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 22119build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 22120SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 22121Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 22122GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22123EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22124FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22125LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22126NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22127LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22128max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22129ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22130exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22131lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22132lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22133lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22134lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22135lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22136reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22137reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22138OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 22139deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22140file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22141file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22142want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22143DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22144sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22145AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22146AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22147archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22148STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22149RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22150old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22151old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22152old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22153lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22154CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22155CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22156compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22157GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22158lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22159lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22160lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 22161lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22162lt_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"`' 22163lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 22164nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22165lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22166lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 22167objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22168MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22169lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22170lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22171lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22172lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22173lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22174need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22175MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22176DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22177NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22178LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22179OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22180OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22181libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22182shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22183extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22184archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22185enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22186export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22187whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22188compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22189old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22190old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22191archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22192archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22193module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22194module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22195with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22196allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22197no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22198hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22199hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22200hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22201hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22202hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22203hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22204hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22205inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22206link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22207always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22208export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22209exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22210include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22211prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22212postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22213file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22214variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22215need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22216need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22217version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22218runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22219shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22220shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22221libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22222library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22223soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22224install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22225postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22226postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22227finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22228finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22229hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22230sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22231configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22232configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22233hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22234enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22235enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22236enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22237old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22238striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22239compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 22240predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 22241postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 22242predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 22243postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 22244compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 22245AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 22246LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 22247reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 22248reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22249old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22250compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 22251GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 22252lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 22253lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 22254lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 22255lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 22256lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 22257archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 22258enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 22259export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 22260whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 22261compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 22262old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22263old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22264archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22265archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22266module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22267module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22268with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 22269allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 22270no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 22271hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 22272hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 22273hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 22274hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 22275hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 22276hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 22277hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 22278inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 22279link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 22280always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 22281export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22282exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 22283include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 22284prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22285postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22286file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 22287hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 22288compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 22289predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 22290postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 22291predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 22292postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 22293compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 22294 22295LTCC='$LTCC' 22296LTCFLAGS='$LTCFLAGS' 22297compiler='$compiler_DEFAULT' 22298 22299# A function that is used when there is no print builtin or printf. 22300func_fallback_echo () 22301{ 22302 eval 'cat <<_LTECHO_EOF 22303\$1 22304_LTECHO_EOF' 22305} 22306 22307# Quote evaled strings. 22308for var in SHELL \ 22309ECHO \ 22310PATH_SEPARATOR \ 22311SED \ 22312GREP \ 22313EGREP \ 22314FGREP \ 22315LD \ 22316NM \ 22317LN_S \ 22318lt_SP2NL \ 22319lt_NL2SP \ 22320reload_flag \ 22321OBJDUMP \ 22322deplibs_check_method \ 22323file_magic_cmd \ 22324file_magic_glob \ 22325want_nocaseglob \ 22326DLLTOOL \ 22327sharedlib_from_linklib_cmd \ 22328AR \ 22329AR_FLAGS \ 22330archiver_list_spec \ 22331STRIP \ 22332RANLIB \ 22333CC \ 22334CFLAGS \ 22335compiler \ 22336lt_cv_sys_global_symbol_pipe \ 22337lt_cv_sys_global_symbol_to_cdecl \ 22338lt_cv_sys_global_symbol_to_import \ 22339lt_cv_sys_global_symbol_to_c_name_address \ 22340lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22341lt_cv_nm_interface \ 22342nm_file_list_spec \ 22343lt_cv_truncate_bin \ 22344lt_prog_compiler_no_builtin_flag \ 22345lt_prog_compiler_pic \ 22346lt_prog_compiler_wl \ 22347lt_prog_compiler_static \ 22348lt_cv_prog_compiler_c_o \ 22349need_locks \ 22350MANIFEST_TOOL \ 22351DSYMUTIL \ 22352NMEDIT \ 22353LIPO \ 22354OTOOL \ 22355OTOOL64 \ 22356shrext_cmds \ 22357export_dynamic_flag_spec \ 22358whole_archive_flag_spec \ 22359compiler_needs_object \ 22360with_gnu_ld \ 22361allow_undefined_flag \ 22362no_undefined_flag \ 22363hardcode_libdir_flag_spec \ 22364hardcode_libdir_separator \ 22365exclude_expsyms \ 22366include_expsyms \ 22367file_list_spec \ 22368variables_saved_for_relink \ 22369libname_spec \ 22370library_names_spec \ 22371soname_spec \ 22372install_override_mode \ 22373finish_eval \ 22374old_striplib \ 22375striplib \ 22376compiler_lib_search_dirs \ 22377predep_objects \ 22378postdep_objects \ 22379predeps \ 22380postdeps \ 22381compiler_lib_search_path \ 22382AS \ 22383LD_CXX \ 22384reload_flag_CXX \ 22385compiler_CXX \ 22386lt_prog_compiler_no_builtin_flag_CXX \ 22387lt_prog_compiler_pic_CXX \ 22388lt_prog_compiler_wl_CXX \ 22389lt_prog_compiler_static_CXX \ 22390lt_cv_prog_compiler_c_o_CXX \ 22391export_dynamic_flag_spec_CXX \ 22392whole_archive_flag_spec_CXX \ 22393compiler_needs_object_CXX \ 22394with_gnu_ld_CXX \ 22395allow_undefined_flag_CXX \ 22396no_undefined_flag_CXX \ 22397hardcode_libdir_flag_spec_CXX \ 22398hardcode_libdir_separator_CXX \ 22399exclude_expsyms_CXX \ 22400include_expsyms_CXX \ 22401file_list_spec_CXX \ 22402compiler_lib_search_dirs_CXX \ 22403predep_objects_CXX \ 22404postdep_objects_CXX \ 22405predeps_CXX \ 22406postdeps_CXX \ 22407compiler_lib_search_path_CXX; do 22408 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22409 *[\\\\\\\`\\"\\\$]*) 22410 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22411 ;; 22412 *) 22413 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22414 ;; 22415 esac 22416done 22417 22418# Double-quote double-evaled strings. 22419for var in reload_cmds \ 22420old_postinstall_cmds \ 22421old_postuninstall_cmds \ 22422old_archive_cmds \ 22423extract_expsyms_cmds \ 22424old_archive_from_new_cmds \ 22425old_archive_from_expsyms_cmds \ 22426archive_cmds \ 22427archive_expsym_cmds \ 22428module_cmds \ 22429module_expsym_cmds \ 22430export_symbols_cmds \ 22431prelink_cmds \ 22432postlink_cmds \ 22433postinstall_cmds \ 22434postuninstall_cmds \ 22435finish_cmds \ 22436sys_lib_search_path_spec \ 22437configure_time_dlsearch_path \ 22438configure_time_lt_sys_library_path \ 22439reload_cmds_CXX \ 22440old_archive_cmds_CXX \ 22441old_archive_from_new_cmds_CXX \ 22442old_archive_from_expsyms_cmds_CXX \ 22443archive_cmds_CXX \ 22444archive_expsym_cmds_CXX \ 22445module_cmds_CXX \ 22446module_expsym_cmds_CXX \ 22447export_symbols_cmds_CXX \ 22448prelink_cmds_CXX \ 22449postlink_cmds_CXX; do 22450 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22451 *[\\\\\\\`\\"\\\$]*) 22452 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22453 ;; 22454 *) 22455 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22456 ;; 22457 esac 22458done 22459 22460ac_aux_dir='$ac_aux_dir' 22461 22462# See if we are running on zsh, and set the options that allow our 22463# commands through without removal of \ escapes INIT. 22464if test -n "\${ZSH_VERSION+set}"; then 22465 setopt NO_GLOB_SUBST 22466fi 22467 22468 22469 PACKAGE='$PACKAGE' 22470 VERSION='$VERSION' 22471 RM='$RM' 22472 ofile='$ofile' 22473 22474 22475 22476 22477 22478 22479_ACEOF 22480 22481cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22482 22483# Handling of arguments. 22484for ac_config_target in $ac_config_targets 22485do 22486 case $ac_config_target in 22487 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22488 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22489 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22490 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22491 "liborcus-$ORCUS_API_VERSION.pc") CONFIG_FILES="$CONFIG_FILES liborcus-$ORCUS_API_VERSION.pc:liborcus.pc.in" ;; 22492 "liborcus-spreadsheet-model-$ORCUS_API_VERSION.pc") CONFIG_FILES="$CONFIG_FILES liborcus-spreadsheet-model-$ORCUS_API_VERSION.pc:liborcus-spreadsheet-model.pc.in" ;; 22493 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 22494 "include/orcus/Makefile") CONFIG_FILES="$CONFIG_FILES include/orcus/Makefile" ;; 22495 "include/orcus/detail/Makefile") CONFIG_FILES="$CONFIG_FILES include/orcus/detail/Makefile" ;; 22496 "include/orcus/mso/Makefile") CONFIG_FILES="$CONFIG_FILES include/orcus/mso/Makefile" ;; 22497 "include/orcus/spreadsheet/Makefile") CONFIG_FILES="$CONFIG_FILES include/orcus/spreadsheet/Makefile" ;; 22498 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22499 "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;; 22500 "src/liborcus/Makefile") CONFIG_FILES="$CONFIG_FILES src/liborcus/Makefile" ;; 22501 "src/liborcus/constants.inl") CONFIG_FILES="$CONFIG_FILES src/liborcus/constants.inl" ;; 22502 "src/mso/Makefile") CONFIG_FILES="$CONFIG_FILES src/mso/Makefile" ;; 22503 "src/parser/Makefile") CONFIG_FILES="$CONFIG_FILES src/parser/Makefile" ;; 22504 "src/python/Makefile") CONFIG_FILES="$CONFIG_FILES src/python/Makefile" ;; 22505 "src/spreadsheet/Makefile") CONFIG_FILES="$CONFIG_FILES src/spreadsheet/Makefile" ;; 22506 "test/python/env.json") CONFIG_FILES="$CONFIG_FILES test/python/env.json" ;; 22507 "benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES benchmark/Makefile" ;; 22508 "doc_example/Makefile") CONFIG_FILES="$CONFIG_FILES doc_example/Makefile" ;; 22509 22510 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22511 esac 22512done 22513 22514 22515# If the user did not use the arguments to specify the items to instantiate, 22516# then the envvar interface is used. Set only those that are not. 22517# We use the long form for the default assignment because of an extremely 22518# bizarre bug on SunOS 4.1.3. 22519if $ac_need_defaults; then 22520 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22521 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22522 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22523fi 22524 22525# Have a temporary directory for convenience. Make it in the build tree 22526# simply because there is no reason against having it here, and in addition, 22527# creating and moving files from /tmp can sometimes cause problems. 22528# Hook for its removal unless debugging. 22529# Note that there is a small window in which the directory will not be cleaned: 22530# after its creation but before its name has been assigned to `$tmp'. 22531$debug || 22532{ 22533 tmp= ac_tmp= 22534 trap 'exit_status=$? 22535 : "${ac_tmp:=$tmp}" 22536 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22537' 0 22538 trap 'as_fn_exit 1' 1 2 13 15 22539} 22540# Create a (secure) tmp directory for tmp files. 22541 22542{ 22543 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22544 test -d "$tmp" 22545} || 22546{ 22547 tmp=./conf$$-$RANDOM 22548 (umask 077 && mkdir "$tmp") 22549} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22550ac_tmp=$tmp 22551 22552# Set up the scripts for CONFIG_FILES section. 22553# No need to generate them if there are no CONFIG_FILES. 22554# This happens for instance with `./config.status config.h'. 22555if test -n "$CONFIG_FILES"; then 22556 22557 22558ac_cr=`echo X | tr X '\015'` 22559# On cygwin, bash can eat \r inside `` if the user requested igncr. 22560# But we know of no other shell where ac_cr would be empty at this 22561# point, so we can use a bashism as a fallback. 22562if test "x$ac_cr" = x; then 22563 eval ac_cr=\$\'\\r\' 22564fi 22565ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22566if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22567 ac_cs_awk_cr='\\r' 22568else 22569 ac_cs_awk_cr=$ac_cr 22570fi 22571 22572echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22573_ACEOF 22574 22575 22576{ 22577 echo "cat >conf$$subs.awk <<_ACEOF" && 22578 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22579 echo "_ACEOF" 22580} >conf$$subs.sh || 22581 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22582ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22583ac_delim='%!_!# ' 22584for ac_last_try in false false false false false :; do 22585 . ./conf$$subs.sh || 22586 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22587 22588 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22589 if test $ac_delim_n = $ac_delim_num; then 22590 break 22591 elif $ac_last_try; then 22592 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22593 else 22594 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22595 fi 22596done 22597rm -f conf$$subs.sh 22598 22599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22600cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22601_ACEOF 22602sed -n ' 22603h 22604s/^/S["/; s/!.*/"]=/ 22605p 22606g 22607s/^[^!]*!// 22608:repl 22609t repl 22610s/'"$ac_delim"'$// 22611t delim 22612:nl 22613h 22614s/\(.\{148\}\)..*/\1/ 22615t more1 22616s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22617p 22618n 22619b repl 22620:more1 22621s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22622p 22623g 22624s/.\{148\}// 22625t nl 22626:delim 22627h 22628s/\(.\{148\}\)..*/\1/ 22629t more2 22630s/["\\]/\\&/g; s/^/"/; s/$/"/ 22631p 22632b 22633:more2 22634s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22635p 22636g 22637s/.\{148\}// 22638t delim 22639' <conf$$subs.awk | sed ' 22640/^[^""]/{ 22641 N 22642 s/\n// 22643} 22644' >>$CONFIG_STATUS || ac_write_fail=1 22645rm -f conf$$subs.awk 22646cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22647_ACAWK 22648cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22649 for (key in S) S_is_set[key] = 1 22650 FS = "" 22651 22652} 22653{ 22654 line = $ 0 22655 nfields = split(line, field, "@") 22656 substed = 0 22657 len = length(field[1]) 22658 for (i = 2; i < nfields; i++) { 22659 key = field[i] 22660 keylen = length(key) 22661 if (S_is_set[key]) { 22662 value = S[key] 22663 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22664 len += length(value) + length(field[++i]) 22665 substed = 1 22666 } else 22667 len += 1 + keylen 22668 } 22669 22670 print line 22671} 22672 22673_ACAWK 22674_ACEOF 22675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22676if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22677 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22678else 22679 cat 22680fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22681 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22682_ACEOF 22683 22684# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22685# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22686# trailing colons and then remove the whole line if VPATH becomes empty 22687# (actually we leave an empty line to preserve line numbers). 22688if test "x$srcdir" = x.; then 22689 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22690h 22691s/// 22692s/^/:/ 22693s/[ ]*$/:/ 22694s/:\$(srcdir):/:/g 22695s/:\${srcdir}:/:/g 22696s/:@srcdir@:/:/g 22697s/^:*// 22698s/:*$// 22699x 22700s/\(=[ ]*\).*/\1/ 22701G 22702s/\n// 22703s/^[^=]*=[ ]*$// 22704}' 22705fi 22706 22707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22708fi # test -n "$CONFIG_FILES" 22709 22710# Set up the scripts for CONFIG_HEADERS section. 22711# No need to generate them if there are no CONFIG_HEADERS. 22712# This happens for instance with `./config.status Makefile'. 22713if test -n "$CONFIG_HEADERS"; then 22714cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22715BEGIN { 22716_ACEOF 22717 22718# Transform confdefs.h into an awk script `defines.awk', embedded as 22719# here-document in config.status, that substitutes the proper values into 22720# config.h.in to produce config.h. 22721 22722# Create a delimiter string that does not exist in confdefs.h, to ease 22723# handling of long lines. 22724ac_delim='%!_!# ' 22725for ac_last_try in false false :; do 22726 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22727 if test -z "$ac_tt"; then 22728 break 22729 elif $ac_last_try; then 22730 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22731 else 22732 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22733 fi 22734done 22735 22736# For the awk script, D is an array of macro values keyed by name, 22737# likewise P contains macro parameters if any. Preserve backslash 22738# newline sequences. 22739 22740ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22741sed -n ' 22742s/.\{148\}/&'"$ac_delim"'/g 22743t rset 22744:rset 22745s/^[ ]*#[ ]*define[ ][ ]*/ / 22746t def 22747d 22748:def 22749s/\\$// 22750t bsnl 22751s/["\\]/\\&/g 22752s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22753D["\1"]=" \3"/p 22754s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22755d 22756:bsnl 22757s/["\\]/\\&/g 22758s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22759D["\1"]=" \3\\\\\\n"\\/p 22760t cont 22761s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22762t cont 22763d 22764:cont 22765n 22766s/.\{148\}/&'"$ac_delim"'/g 22767t clear 22768:clear 22769s/\\$// 22770t bsnlc 22771s/["\\]/\\&/g; s/^/"/; s/$/"/p 22772d 22773:bsnlc 22774s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22775b cont 22776' <confdefs.h | sed ' 22777s/'"$ac_delim"'/"\\\ 22778"/g' >>$CONFIG_STATUS || ac_write_fail=1 22779 22780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22781 for (key in D) D_is_set[key] = 1 22782 FS = "" 22783} 22784/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22785 line = \$ 0 22786 split(line, arg, " ") 22787 if (arg[1] == "#") { 22788 defundef = arg[2] 22789 mac1 = arg[3] 22790 } else { 22791 defundef = substr(arg[1], 2) 22792 mac1 = arg[2] 22793 } 22794 split(mac1, mac2, "(") #) 22795 macro = mac2[1] 22796 prefix = substr(line, 1, index(line, defundef) - 1) 22797 if (D_is_set[macro]) { 22798 # Preserve the white space surrounding the "#". 22799 print prefix "define", macro P[macro] D[macro] 22800 next 22801 } else { 22802 # Replace #undef with comments. This is necessary, for example, 22803 # in the case of _POSIX_SOURCE, which is predefined and required 22804 # on some systems where configure will not decide to define it. 22805 if (defundef == "undef") { 22806 print "/*", prefix defundef, macro, "*/" 22807 next 22808 } 22809 } 22810} 22811{ print } 22812_ACAWK 22813_ACEOF 22814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22815 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22816fi # test -n "$CONFIG_HEADERS" 22817 22818 22819eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22820shift 22821for ac_tag 22822do 22823 case $ac_tag in 22824 :[FHLC]) ac_mode=$ac_tag; continue;; 22825 esac 22826 case $ac_mode$ac_tag in 22827 :[FHL]*:*);; 22828 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22829 :[FH]-) ac_tag=-:-;; 22830 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22831 esac 22832 ac_save_IFS=$IFS 22833 IFS=: 22834 set x $ac_tag 22835 IFS=$ac_save_IFS 22836 shift 22837 ac_file=$1 22838 shift 22839 22840 case $ac_mode in 22841 :L) ac_source=$1;; 22842 :[FH]) 22843 ac_file_inputs= 22844 for ac_f 22845 do 22846 case $ac_f in 22847 -) ac_f="$ac_tmp/stdin";; 22848 *) # Look for the file first in the build tree, then in the source tree 22849 # (if the path is not absolute). The absolute path cannot be DOS-style, 22850 # because $ac_f cannot contain `:'. 22851 test -f "$ac_f" || 22852 case $ac_f in 22853 [\\/$]*) false;; 22854 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22855 esac || 22856 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22857 esac 22858 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22859 as_fn_append ac_file_inputs " '$ac_f'" 22860 done 22861 22862 # Let's still pretend it is `configure' which instantiates (i.e., don't 22863 # use $as_me), people would be surprised to read: 22864 # /* config.h. Generated by config.status. */ 22865 configure_input='Generated from '` 22866 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22867 `' by configure.' 22868 if test x"$ac_file" != x-; then 22869 configure_input="$ac_file. $configure_input" 22870 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22871$as_echo "$as_me: creating $ac_file" >&6;} 22872 fi 22873 # Neutralize special characters interpreted by sed in replacement strings. 22874 case $configure_input in #( 22875 *\&* | *\|* | *\\* ) 22876 ac_sed_conf_input=`$as_echo "$configure_input" | 22877 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22878 *) ac_sed_conf_input=$configure_input;; 22879 esac 22880 22881 case $ac_tag in 22882 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22883 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22884 esac 22885 ;; 22886 esac 22887 22888 ac_dir=`$as_dirname -- "$ac_file" || 22889$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22890 X"$ac_file" : 'X\(//\)[^/]' \| \ 22891 X"$ac_file" : 'X\(//\)$' \| \ 22892 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22893$as_echo X"$ac_file" | 22894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22895 s//\1/ 22896 q 22897 } 22898 /^X\(\/\/\)[^/].*/{ 22899 s//\1/ 22900 q 22901 } 22902 /^X\(\/\/\)$/{ 22903 s//\1/ 22904 q 22905 } 22906 /^X\(\/\).*/{ 22907 s//\1/ 22908 q 22909 } 22910 s/.*/./; q'` 22911 as_dir="$ac_dir"; as_fn_mkdir_p 22912 ac_builddir=. 22913 22914case "$ac_dir" in 22915.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22916*) 22917 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22918 # A ".." for each directory in $ac_dir_suffix. 22919 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22920 case $ac_top_builddir_sub in 22921 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22922 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22923 esac ;; 22924esac 22925ac_abs_top_builddir=$ac_pwd 22926ac_abs_builddir=$ac_pwd$ac_dir_suffix 22927# for backward compatibility: 22928ac_top_builddir=$ac_top_build_prefix 22929 22930case $srcdir in 22931 .) # We are building in place. 22932 ac_srcdir=. 22933 ac_top_srcdir=$ac_top_builddir_sub 22934 ac_abs_top_srcdir=$ac_pwd ;; 22935 [\\/]* | ?:[\\/]* ) # Absolute name. 22936 ac_srcdir=$srcdir$ac_dir_suffix; 22937 ac_top_srcdir=$srcdir 22938 ac_abs_top_srcdir=$srcdir ;; 22939 *) # Relative name. 22940 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22941 ac_top_srcdir=$ac_top_build_prefix$srcdir 22942 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22943esac 22944ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22945 22946 22947 case $ac_mode in 22948 :F) 22949 # 22950 # CONFIG_FILE 22951 # 22952 22953 case $INSTALL in 22954 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22955 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22956 esac 22957 ac_MKDIR_P=$MKDIR_P 22958 case $MKDIR_P in 22959 [\\/$]* | ?:[\\/]* ) ;; 22960 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22961 esac 22962_ACEOF 22963 22964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22965# If the template does not know about datarootdir, expand it. 22966# FIXME: This hack should be removed a few years after 2.60. 22967ac_datarootdir_hack=; ac_datarootdir_seen= 22968ac_sed_dataroot=' 22969/datarootdir/ { 22970 p 22971 q 22972} 22973/@datadir@/p 22974/@docdir@/p 22975/@infodir@/p 22976/@localedir@/p 22977/@mandir@/p' 22978case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22979*datarootdir*) ac_datarootdir_seen=yes;; 22980*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22982$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22983_ACEOF 22984cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22985 ac_datarootdir_hack=' 22986 s&@datadir@&$datadir&g 22987 s&@docdir@&$docdir&g 22988 s&@infodir@&$infodir&g 22989 s&@localedir@&$localedir&g 22990 s&@mandir@&$mandir&g 22991 s&\\\${datarootdir}&$datarootdir&g' ;; 22992esac 22993_ACEOF 22994 22995# Neutralize VPATH when `$srcdir' = `.'. 22996# Shell code in configure.ac might set extrasub. 22997# FIXME: do we really want to maintain this feature? 22998cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22999ac_sed_extra="$ac_vpsub 23000$extrasub 23001_ACEOF 23002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23003:t 23004/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23005s|@configure_input@|$ac_sed_conf_input|;t t 23006s&@top_builddir@&$ac_top_builddir_sub&;t t 23007s&@top_build_prefix@&$ac_top_build_prefix&;t t 23008s&@srcdir@&$ac_srcdir&;t t 23009s&@abs_srcdir@&$ac_abs_srcdir&;t t 23010s&@top_srcdir@&$ac_top_srcdir&;t t 23011s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23012s&@builddir@&$ac_builddir&;t t 23013s&@abs_builddir@&$ac_abs_builddir&;t t 23014s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23015s&@INSTALL@&$ac_INSTALL&;t t 23016s&@MKDIR_P@&$ac_MKDIR_P&;t t 23017$ac_datarootdir_hack 23018" 23019eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23020 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23021 23022test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23023 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23024 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23025 "$ac_tmp/out"`; test -z "$ac_out"; } && 23026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23027which seems to be undefined. Please make sure it is defined" >&5 23028$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23029which seems to be undefined. Please make sure it is defined" >&2;} 23030 23031 rm -f "$ac_tmp/stdin" 23032 case $ac_file in 23033 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23034 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23035 esac \ 23036 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23037 ;; 23038 :H) 23039 # 23040 # CONFIG_HEADER 23041 # 23042 if test x"$ac_file" != x-; then 23043 { 23044 $as_echo "/* $configure_input */" \ 23045 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23046 } >"$ac_tmp/config.h" \ 23047 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23048 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23049 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23050$as_echo "$as_me: $ac_file is unchanged" >&6;} 23051 else 23052 rm -f "$ac_file" 23053 mv "$ac_tmp/config.h" "$ac_file" \ 23054 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23055 fi 23056 else 23057 $as_echo "/* $configure_input */" \ 23058 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23059 || as_fn_error $? "could not create -" "$LINENO" 5 23060 fi 23061# Compute "$ac_file"'s index in $config_headers. 23062_am_arg="$ac_file" 23063_am_stamp_count=1 23064for _am_header in $config_headers :; do 23065 case $_am_header in 23066 $_am_arg | $_am_arg:* ) 23067 break ;; 23068 * ) 23069 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23070 esac 23071done 23072echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23073$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23074 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23075 X"$_am_arg" : 'X\(//\)$' \| \ 23076 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23077$as_echo X"$_am_arg" | 23078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23079 s//\1/ 23080 q 23081 } 23082 /^X\(\/\/\)[^/].*/{ 23083 s//\1/ 23084 q 23085 } 23086 /^X\(\/\/\)$/{ 23087 s//\1/ 23088 q 23089 } 23090 /^X\(\/\).*/{ 23091 s//\1/ 23092 q 23093 } 23094 s/.*/./; q'`/stamp-h$_am_stamp_count 23095 ;; 23096 23097 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23098$as_echo "$as_me: executing $ac_file commands" >&6;} 23099 ;; 23100 esac 23101 23102 23103 case $ac_file$ac_mode in 23104 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23105 # Older Autoconf quotes --file arguments for eval, but not when files 23106 # are listed without --file. Let's play safe and only enable the eval 23107 # if we detect the quoting. 23108 # TODO: see whether this extra hack can be removed once we start 23109 # requiring Autoconf 2.70 or later. 23110 case $CONFIG_FILES in #( 23111 *\'*) : 23112 eval set x "$CONFIG_FILES" ;; #( 23113 *) : 23114 set x $CONFIG_FILES ;; #( 23115 *) : 23116 ;; 23117esac 23118 shift 23119 # Used to flag and report bootstrapping failures. 23120 am_rc=0 23121 for am_mf 23122 do 23123 # Strip MF so we end up with the name of the file. 23124 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 23125 # Check whether this is an Automake generated Makefile which includes 23126 # dependency-tracking related rules and includes. 23127 # Grep'ing the whole file directly is not great: AIX grep has a line 23128 # limit of 2048, but all sed's we know have understand at least 4000. 23129 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 23130 || continue 23131 am_dirpart=`$as_dirname -- "$am_mf" || 23132$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23133 X"$am_mf" : 'X\(//\)[^/]' \| \ 23134 X"$am_mf" : 'X\(//\)$' \| \ 23135 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23136$as_echo X"$am_mf" | 23137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23138 s//\1/ 23139 q 23140 } 23141 /^X\(\/\/\)[^/].*/{ 23142 s//\1/ 23143 q 23144 } 23145 /^X\(\/\/\)$/{ 23146 s//\1/ 23147 q 23148 } 23149 /^X\(\/\).*/{ 23150 s//\1/ 23151 q 23152 } 23153 s/.*/./; q'` 23154 am_filepart=`$as_basename -- "$am_mf" || 23155$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 23156 X"$am_mf" : 'X\(//\)$' \| \ 23157 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23158$as_echo X/"$am_mf" | 23159 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23160 s//\1/ 23161 q 23162 } 23163 /^X\/\(\/\/\)$/{ 23164 s//\1/ 23165 q 23166 } 23167 /^X\/\(\/\).*/{ 23168 s//\1/ 23169 q 23170 } 23171 s/.*/./; q'` 23172 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 23173 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23174 | $MAKE -f - am--depfiles" >&5 23175 (cd "$am_dirpart" \ 23176 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23177 | $MAKE -f - am--depfiles) >&5 2>&5 23178 ac_status=$? 23179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23180 (exit $ac_status); } || am_rc=$? 23181 done 23182 if test $am_rc -ne 0; then 23183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23185as_fn_error $? "Something went wrong bootstrapping makefile fragments 23186 for automatic dependency tracking. Try re-running configure with the 23187 '--disable-dependency-tracking' option to at least be able to build 23188 the package (albeit without support for automatic dependency tracking). 23189See \`config.log' for more details" "$LINENO" 5; } 23190 fi 23191 { am_dirpart=; unset am_dirpart;} 23192 { am_filepart=; unset am_filepart;} 23193 { am_mf=; unset am_mf;} 23194 { am_rc=; unset am_rc;} 23195 rm -f conftest-deps.mk 23196} 23197 ;; 23198 "libtool":C) 23199 23200 # See if we are running on zsh, and set the options that allow our 23201 # commands through without removal of \ escapes. 23202 if test -n "${ZSH_VERSION+set}"; then 23203 setopt NO_GLOB_SUBST 23204 fi 23205 23206 cfgfile=${ofile}T 23207 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23208 $RM "$cfgfile" 23209 23210 cat <<_LT_EOF >> "$cfgfile" 23211#! $SHELL 23212# Generated automatically by $as_me ($PACKAGE) $VERSION 23213# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23214 23215# Provide generalized library-building support services. 23216# Written by Gordon Matzigkeit, 1996 23217 23218# Copyright (C) 2014 Free Software Foundation, Inc. 23219# This is free software; see the source for copying conditions. There is NO 23220# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23221 23222# GNU Libtool is free software; you can redistribute it and/or modify 23223# it under the terms of the GNU General Public License as published by 23224# the Free Software Foundation; either version 2 of of the License, or 23225# (at your option) any later version. 23226# 23227# As a special exception to the GNU General Public License, if you 23228# distribute this file as part of a program or library that is built 23229# using GNU Libtool, you may include this file under the same 23230# distribution terms that you use for the rest of that program. 23231# 23232# GNU Libtool is distributed in the hope that it will be useful, but 23233# WITHOUT ANY WARRANTY; without even the implied warranty of 23234# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23235# GNU General Public License for more details. 23236# 23237# You should have received a copy of the GNU General Public License 23238# along with this program. If not, see <http://www.gnu.org/licenses/>. 23239 23240 23241# The names of the tagged configurations supported by this script. 23242available_tags='CXX ' 23243 23244# Configured defaults for sys_lib_dlsearch_path munging. 23245: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 23246 23247# ### BEGIN LIBTOOL CONFIG 23248 23249# Which release of libtool.m4 was used? 23250macro_version=$macro_version 23251macro_revision=$macro_revision 23252 23253# Whether or not to build shared libraries. 23254build_libtool_libs=$enable_shared 23255 23256# Whether or not to build static libraries. 23257build_old_libs=$enable_static 23258 23259# What type of objects to build. 23260pic_mode=$pic_mode 23261 23262# Whether or not to optimize for fast installation. 23263fast_install=$enable_fast_install 23264 23265# Shared archive member basename,for filename based shared library versioning on AIX. 23266shared_archive_member_spec=$shared_archive_member_spec 23267 23268# Shell to use when invoking shell scripts. 23269SHELL=$lt_SHELL 23270 23271# An echo program that protects backslashes. 23272ECHO=$lt_ECHO 23273 23274# The PATH separator for the build system. 23275PATH_SEPARATOR=$lt_PATH_SEPARATOR 23276 23277# The host system. 23278host_alias=$host_alias 23279host=$host 23280host_os=$host_os 23281 23282# The build system. 23283build_alias=$build_alias 23284build=$build 23285build_os=$build_os 23286 23287# A sed program that does not truncate output. 23288SED=$lt_SED 23289 23290# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23291Xsed="\$SED -e 1s/^X//" 23292 23293# A grep program that handles long lines. 23294GREP=$lt_GREP 23295 23296# An ERE matcher. 23297EGREP=$lt_EGREP 23298 23299# A literal string matcher. 23300FGREP=$lt_FGREP 23301 23302# A BSD- or MS-compatible name lister. 23303NM=$lt_NM 23304 23305# Whether we need soft or hard links. 23306LN_S=$lt_LN_S 23307 23308# What is the maximum length of a command? 23309max_cmd_len=$max_cmd_len 23310 23311# Object file suffix (normally "o"). 23312objext=$ac_objext 23313 23314# Executable file suffix (normally ""). 23315exeext=$exeext 23316 23317# whether the shell understands "unset". 23318lt_unset=$lt_unset 23319 23320# turn spaces into newlines. 23321SP2NL=$lt_lt_SP2NL 23322 23323# turn newlines into spaces. 23324NL2SP=$lt_lt_NL2SP 23325 23326# convert \$build file names to \$host format. 23327to_host_file_cmd=$lt_cv_to_host_file_cmd 23328 23329# convert \$build files to toolchain format. 23330to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23331 23332# An object symbol dumper. 23333OBJDUMP=$lt_OBJDUMP 23334 23335# Method to check whether dependent libraries are shared objects. 23336deplibs_check_method=$lt_deplibs_check_method 23337 23338# Command to use when deplibs_check_method = "file_magic". 23339file_magic_cmd=$lt_file_magic_cmd 23340 23341# How to find potential files when deplibs_check_method = "file_magic". 23342file_magic_glob=$lt_file_magic_glob 23343 23344# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23345want_nocaseglob=$lt_want_nocaseglob 23346 23347# DLL creation program. 23348DLLTOOL=$lt_DLLTOOL 23349 23350# Command to associate shared and link libraries. 23351sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23352 23353# The archiver. 23354AR=$lt_AR 23355 23356# Flags to create an archive. 23357AR_FLAGS=$lt_AR_FLAGS 23358 23359# How to feed a file listing to the archiver. 23360archiver_list_spec=$lt_archiver_list_spec 23361 23362# A symbol stripping program. 23363STRIP=$lt_STRIP 23364 23365# Commands used to install an old-style archive. 23366RANLIB=$lt_RANLIB 23367old_postinstall_cmds=$lt_old_postinstall_cmds 23368old_postuninstall_cmds=$lt_old_postuninstall_cmds 23369 23370# Whether to use a lock for old archive extraction. 23371lock_old_archive_extraction=$lock_old_archive_extraction 23372 23373# A C compiler. 23374LTCC=$lt_CC 23375 23376# LTCC compiler flags. 23377LTCFLAGS=$lt_CFLAGS 23378 23379# Take the output of nm and produce a listing of raw symbols and C names. 23380global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23381 23382# Transform the output of nm in a proper C declaration. 23383global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23384 23385# Transform the output of nm into a list of symbols to manually relocate. 23386global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23387 23388# Transform the output of nm in a C name address pair. 23389global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23390 23391# Transform the output of nm in a C name address pair when lib prefix is needed. 23392global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23393 23394# The name lister interface. 23395nm_interface=$lt_lt_cv_nm_interface 23396 23397# Specify filename containing input files for \$NM. 23398nm_file_list_spec=$lt_nm_file_list_spec 23399 23400# The root where to search for dependent libraries,and where our libraries should be installed. 23401lt_sysroot=$lt_sysroot 23402 23403# Command to truncate a binary pipe. 23404lt_truncate_bin=$lt_lt_cv_truncate_bin 23405 23406# The name of the directory that contains temporary libtool files. 23407objdir=$objdir 23408 23409# Used to examine libraries when file_magic_cmd begins with "file". 23410MAGIC_CMD=$MAGIC_CMD 23411 23412# Must we lock files when doing compilation? 23413need_locks=$lt_need_locks 23414 23415# Manifest tool. 23416MANIFEST_TOOL=$lt_MANIFEST_TOOL 23417 23418# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23419DSYMUTIL=$lt_DSYMUTIL 23420 23421# Tool to change global to local symbols on Mac OS X. 23422NMEDIT=$lt_NMEDIT 23423 23424# Tool to manipulate fat objects and archives on Mac OS X. 23425LIPO=$lt_LIPO 23426 23427# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23428OTOOL=$lt_OTOOL 23429 23430# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23431OTOOL64=$lt_OTOOL64 23432 23433# Old archive suffix (normally "a"). 23434libext=$libext 23435 23436# Shared library suffix (normally ".so"). 23437shrext_cmds=$lt_shrext_cmds 23438 23439# The commands to extract the exported symbol list from a shared archive. 23440extract_expsyms_cmds=$lt_extract_expsyms_cmds 23441 23442# Variables whose values should be saved in libtool wrapper scripts and 23443# restored at link time. 23444variables_saved_for_relink=$lt_variables_saved_for_relink 23445 23446# Do we need the "lib" prefix for modules? 23447need_lib_prefix=$need_lib_prefix 23448 23449# Do we need a version for libraries? 23450need_version=$need_version 23451 23452# Library versioning type. 23453version_type=$version_type 23454 23455# Shared library runtime path variable. 23456runpath_var=$runpath_var 23457 23458# Shared library path variable. 23459shlibpath_var=$shlibpath_var 23460 23461# Is shlibpath searched before the hard-coded library search path? 23462shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23463 23464# Format of library name prefix. 23465libname_spec=$lt_libname_spec 23466 23467# List of archive names. First name is the real one, the rest are links. 23468# The last name is the one that the linker finds with -lNAME 23469library_names_spec=$lt_library_names_spec 23470 23471# The coded name of the library, if different from the real name. 23472soname_spec=$lt_soname_spec 23473 23474# Permission mode override for installation of shared libraries. 23475install_override_mode=$lt_install_override_mode 23476 23477# Command to use after installation of a shared archive. 23478postinstall_cmds=$lt_postinstall_cmds 23479 23480# Command to use after uninstallation of a shared archive. 23481postuninstall_cmds=$lt_postuninstall_cmds 23482 23483# Commands used to finish a libtool library installation in a directory. 23484finish_cmds=$lt_finish_cmds 23485 23486# As "finish_cmds", except a single script fragment to be evaled but 23487# not shown. 23488finish_eval=$lt_finish_eval 23489 23490# Whether we should hardcode library paths into libraries. 23491hardcode_into_libs=$hardcode_into_libs 23492 23493# Compile-time system search path for libraries. 23494sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23495 23496# Detected run-time system search path for libraries. 23497sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23498 23499# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23500configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23501 23502# Whether dlopen is supported. 23503dlopen_support=$enable_dlopen 23504 23505# Whether dlopen of programs is supported. 23506dlopen_self=$enable_dlopen_self 23507 23508# Whether dlopen of statically linked programs is supported. 23509dlopen_self_static=$enable_dlopen_self_static 23510 23511# Commands to strip libraries. 23512old_striplib=$lt_old_striplib 23513striplib=$lt_striplib 23514 23515# Assembler program. 23516AS=$lt_AS 23517 23518 23519# The linker used to build libraries. 23520LD=$lt_LD 23521 23522# How to create reloadable object files. 23523reload_flag=$lt_reload_flag 23524reload_cmds=$lt_reload_cmds 23525 23526# Commands used to build an old-style archive. 23527old_archive_cmds=$lt_old_archive_cmds 23528 23529# A language specific compiler. 23530CC=$lt_compiler 23531 23532# Is the compiler the GNU compiler? 23533with_gcc=$GCC 23534 23535# Compiler flag to turn off builtin functions. 23536no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23537 23538# Additional compiler flags for building library objects. 23539pic_flag=$lt_lt_prog_compiler_pic 23540 23541# How to pass a linker flag through the compiler. 23542wl=$lt_lt_prog_compiler_wl 23543 23544# Compiler flag to prevent dynamic linking. 23545link_static_flag=$lt_lt_prog_compiler_static 23546 23547# Does compiler simultaneously support -c and -o options? 23548compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23549 23550# Whether or not to add -lc for building shared libraries. 23551build_libtool_need_lc=$archive_cmds_need_lc 23552 23553# Whether or not to disallow shared libs when runtime libs are static. 23554allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23555 23556# Compiler flag to allow reflexive dlopens. 23557export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23558 23559# Compiler flag to generate shared objects directly from archives. 23560whole_archive_flag_spec=$lt_whole_archive_flag_spec 23561 23562# Whether the compiler copes with passing no objects directly. 23563compiler_needs_object=$lt_compiler_needs_object 23564 23565# Create an old-style archive from a shared archive. 23566old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23567 23568# Create a temporary old-style archive to link instead of a shared archive. 23569old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23570 23571# Commands used to build a shared archive. 23572archive_cmds=$lt_archive_cmds 23573archive_expsym_cmds=$lt_archive_expsym_cmds 23574 23575# Commands used to build a loadable module if different from building 23576# a shared archive. 23577module_cmds=$lt_module_cmds 23578module_expsym_cmds=$lt_module_expsym_cmds 23579 23580# Whether we are building with GNU ld or not. 23581with_gnu_ld=$lt_with_gnu_ld 23582 23583# Flag that allows shared libraries with undefined symbols to be built. 23584allow_undefined_flag=$lt_allow_undefined_flag 23585 23586# Flag that enforces no undefined symbols. 23587no_undefined_flag=$lt_no_undefined_flag 23588 23589# Flag to hardcode \$libdir into a binary during linking. 23590# This must work even if \$libdir does not exist 23591hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23592 23593# Whether we need a single "-rpath" flag with a separated argument. 23594hardcode_libdir_separator=$lt_hardcode_libdir_separator 23595 23596# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23597# DIR into the resulting binary. 23598hardcode_direct=$hardcode_direct 23599 23600# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23601# DIR into the resulting binary and the resulting library dependency is 23602# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23603# library is relocated. 23604hardcode_direct_absolute=$hardcode_direct_absolute 23605 23606# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23607# into the resulting binary. 23608hardcode_minus_L=$hardcode_minus_L 23609 23610# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23611# into the resulting binary. 23612hardcode_shlibpath_var=$hardcode_shlibpath_var 23613 23614# Set to "yes" if building a shared library automatically hardcodes DIR 23615# into the library and all subsequent libraries and executables linked 23616# against it. 23617hardcode_automatic=$hardcode_automatic 23618 23619# Set to yes if linker adds runtime paths of dependent libraries 23620# to runtime path list. 23621inherit_rpath=$inherit_rpath 23622 23623# Whether libtool must link a program against all its dependency libraries. 23624link_all_deplibs=$link_all_deplibs 23625 23626# Set to "yes" if exported symbols are required. 23627always_export_symbols=$always_export_symbols 23628 23629# The commands to list exported symbols. 23630export_symbols_cmds=$lt_export_symbols_cmds 23631 23632# Symbols that should not be listed in the preloaded symbols. 23633exclude_expsyms=$lt_exclude_expsyms 23634 23635# Symbols that must always be exported. 23636include_expsyms=$lt_include_expsyms 23637 23638# Commands necessary for linking programs (against libraries) with templates. 23639prelink_cmds=$lt_prelink_cmds 23640 23641# Commands necessary for finishing linking programs. 23642postlink_cmds=$lt_postlink_cmds 23643 23644# Specify filename containing input files. 23645file_list_spec=$lt_file_list_spec 23646 23647# How to hardcode a shared library path into an executable. 23648hardcode_action=$hardcode_action 23649 23650# The directories searched by this compiler when creating a shared library. 23651compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 23652 23653# Dependencies to place before and after the objects being linked to 23654# create a shared library. 23655predep_objects=$lt_predep_objects 23656postdep_objects=$lt_postdep_objects 23657predeps=$lt_predeps 23658postdeps=$lt_postdeps 23659 23660# The library search path used internally by the compiler when linking 23661# a shared library. 23662compiler_lib_search_path=$lt_compiler_lib_search_path 23663 23664# ### END LIBTOOL CONFIG 23665 23666_LT_EOF 23667 23668 cat <<'_LT_EOF' >> "$cfgfile" 23669 23670# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23671 23672# func_munge_path_list VARIABLE PATH 23673# ----------------------------------- 23674# VARIABLE is name of variable containing _space_ separated list of 23675# directories to be munged by the contents of PATH, which is string 23676# having a format: 23677# "DIR[:DIR]:" 23678# string "DIR[ DIR]" will be prepended to VARIABLE 23679# ":DIR[:DIR]" 23680# string "DIR[ DIR]" will be appended to VARIABLE 23681# "DIRP[:DIRP]::[DIRA:]DIRA" 23682# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23683# "DIRA[ DIRA]" will be appended to VARIABLE 23684# "DIR[:DIR]" 23685# VARIABLE will be replaced by "DIR[ DIR]" 23686func_munge_path_list () 23687{ 23688 case x$2 in 23689 x) 23690 ;; 23691 *:) 23692 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23693 ;; 23694 x:*) 23695 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23696 ;; 23697 *::*) 23698 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23699 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23700 ;; 23701 *) 23702 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23703 ;; 23704 esac 23705} 23706 23707 23708# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23709func_cc_basename () 23710{ 23711 for cc_temp in $*""; do 23712 case $cc_temp in 23713 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23714 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23715 \-*) ;; 23716 *) break;; 23717 esac 23718 done 23719 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23720} 23721 23722 23723# ### END FUNCTIONS SHARED WITH CONFIGURE 23724 23725_LT_EOF 23726 23727 case $host_os in 23728 aix3*) 23729 cat <<\_LT_EOF >> "$cfgfile" 23730# AIX sometimes has problems with the GCC collect2 program. For some 23731# reason, if we set the COLLECT_NAMES environment variable, the problems 23732# vanish in a puff of smoke. 23733if test set != "${COLLECT_NAMES+set}"; then 23734 COLLECT_NAMES= 23735 export COLLECT_NAMES 23736fi 23737_LT_EOF 23738 ;; 23739 esac 23740 23741 23742ltmain=$ac_aux_dir/ltmain.sh 23743 23744 23745 # We use sed instead of cat because bash on DJGPP gets confused if 23746 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23747 # text mode, it properly converts lines to CR/LF. This bash problem 23748 # is reportedly fixed, but why not run on old versions too? 23749 sed '$q' "$ltmain" >> "$cfgfile" \ 23750 || (rm -f "$cfgfile"; exit 1) 23751 23752 mv -f "$cfgfile" "$ofile" || 23753 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23754 chmod +x "$ofile" 23755 23756 23757 cat <<_LT_EOF >> "$ofile" 23758 23759# ### BEGIN LIBTOOL TAG CONFIG: CXX 23760 23761# The linker used to build libraries. 23762LD=$lt_LD_CXX 23763 23764# How to create reloadable object files. 23765reload_flag=$lt_reload_flag_CXX 23766reload_cmds=$lt_reload_cmds_CXX 23767 23768# Commands used to build an old-style archive. 23769old_archive_cmds=$lt_old_archive_cmds_CXX 23770 23771# A language specific compiler. 23772CC=$lt_compiler_CXX 23773 23774# Is the compiler the GNU compiler? 23775with_gcc=$GCC_CXX 23776 23777# Compiler flag to turn off builtin functions. 23778no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 23779 23780# Additional compiler flags for building library objects. 23781pic_flag=$lt_lt_prog_compiler_pic_CXX 23782 23783# How to pass a linker flag through the compiler. 23784wl=$lt_lt_prog_compiler_wl_CXX 23785 23786# Compiler flag to prevent dynamic linking. 23787link_static_flag=$lt_lt_prog_compiler_static_CXX 23788 23789# Does compiler simultaneously support -c and -o options? 23790compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 23791 23792# Whether or not to add -lc for building shared libraries. 23793build_libtool_need_lc=$archive_cmds_need_lc_CXX 23794 23795# Whether or not to disallow shared libs when runtime libs are static. 23796allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 23797 23798# Compiler flag to allow reflexive dlopens. 23799export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 23800 23801# Compiler flag to generate shared objects directly from archives. 23802whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 23803 23804# Whether the compiler copes with passing no objects directly. 23805compiler_needs_object=$lt_compiler_needs_object_CXX 23806 23807# Create an old-style archive from a shared archive. 23808old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 23809 23810# Create a temporary old-style archive to link instead of a shared archive. 23811old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 23812 23813# Commands used to build a shared archive. 23814archive_cmds=$lt_archive_cmds_CXX 23815archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 23816 23817# Commands used to build a loadable module if different from building 23818# a shared archive. 23819module_cmds=$lt_module_cmds_CXX 23820module_expsym_cmds=$lt_module_expsym_cmds_CXX 23821 23822# Whether we are building with GNU ld or not. 23823with_gnu_ld=$lt_with_gnu_ld_CXX 23824 23825# Flag that allows shared libraries with undefined symbols to be built. 23826allow_undefined_flag=$lt_allow_undefined_flag_CXX 23827 23828# Flag that enforces no undefined symbols. 23829no_undefined_flag=$lt_no_undefined_flag_CXX 23830 23831# Flag to hardcode \$libdir into a binary during linking. 23832# This must work even if \$libdir does not exist 23833hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 23834 23835# Whether we need a single "-rpath" flag with a separated argument. 23836hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 23837 23838# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23839# DIR into the resulting binary. 23840hardcode_direct=$hardcode_direct_CXX 23841 23842# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23843# DIR into the resulting binary and the resulting library dependency is 23844# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23845# library is relocated. 23846hardcode_direct_absolute=$hardcode_direct_absolute_CXX 23847 23848# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23849# into the resulting binary. 23850hardcode_minus_L=$hardcode_minus_L_CXX 23851 23852# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23853# into the resulting binary. 23854hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 23855 23856# Set to "yes" if building a shared library automatically hardcodes DIR 23857# into the library and all subsequent libraries and executables linked 23858# against it. 23859hardcode_automatic=$hardcode_automatic_CXX 23860 23861# Set to yes if linker adds runtime paths of dependent libraries 23862# to runtime path list. 23863inherit_rpath=$inherit_rpath_CXX 23864 23865# Whether libtool must link a program against all its dependency libraries. 23866link_all_deplibs=$link_all_deplibs_CXX 23867 23868# Set to "yes" if exported symbols are required. 23869always_export_symbols=$always_export_symbols_CXX 23870 23871# The commands to list exported symbols. 23872export_symbols_cmds=$lt_export_symbols_cmds_CXX 23873 23874# Symbols that should not be listed in the preloaded symbols. 23875exclude_expsyms=$lt_exclude_expsyms_CXX 23876 23877# Symbols that must always be exported. 23878include_expsyms=$lt_include_expsyms_CXX 23879 23880# Commands necessary for linking programs (against libraries) with templates. 23881prelink_cmds=$lt_prelink_cmds_CXX 23882 23883# Commands necessary for finishing linking programs. 23884postlink_cmds=$lt_postlink_cmds_CXX 23885 23886# Specify filename containing input files. 23887file_list_spec=$lt_file_list_spec_CXX 23888 23889# How to hardcode a shared library path into an executable. 23890hardcode_action=$hardcode_action_CXX 23891 23892# The directories searched by this compiler when creating a shared library. 23893compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 23894 23895# Dependencies to place before and after the objects being linked to 23896# create a shared library. 23897predep_objects=$lt_predep_objects_CXX 23898postdep_objects=$lt_postdep_objects_CXX 23899predeps=$lt_predeps_CXX 23900postdeps=$lt_postdeps_CXX 23901 23902# The library search path used internally by the compiler when linking 23903# a shared library. 23904compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 23905 23906# ### END LIBTOOL TAG CONFIG: CXX 23907_LT_EOF 23908 23909 ;; 23910 23911 esac 23912done # for ac_tag 23913 23914 23915as_fn_exit 0 23916_ACEOF 23917ac_clean_files=$ac_clean_files_save 23918 23919test $ac_write_fail = 0 || 23920 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23921 23922 23923# configure is writing to config.log, and then calls config.status. 23924# config.status does its own redirection, appending to config.log. 23925# Unfortunately, on DOS this fails, as config.log is still kept open 23926# by configure, so config.status won't be able to write to it; its 23927# output is simply discarded. So we exec the FD to /dev/null, 23928# effectively closing config.log, so it can be properly (re)opened and 23929# appended to by config.status. When coming back to configure, we 23930# need to make the FD available again. 23931if test "$no_create" != yes; then 23932 ac_cs_success=: 23933 ac_config_status_args= 23934 test "$silent" = yes && 23935 ac_config_status_args="$ac_config_status_args --quiet" 23936 exec 5>/dev/null 23937 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23938 exec 5>>config.log 23939 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23940 # would make configure fail if this is the last instruction. 23941 $ac_cs_success || as_fn_exit 1 23942fi 23943if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23945$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23946fi 23947 23948 23949# ============================================== 23950# Display final informations about configuration 23951# ============================================== 23952{ $as_echo "$as_me:${as_lineno-$LINENO}: 23953============================================================================== 23954Build configuration: 23955 debug $enable_debug 23956 debug-utils $enable_debug_utils 23957 werror $enable_werror 23958 spreadsheet-model $enable_spreadsheet_model 23959 gnumeric-filter $with_gnumeric_filter 23960 ods-filter $with_ods_filter 23961 xlsx-filter $with_xlsx_filter 23962 xls-xml-filter $with_xls_xml_filter 23963 xls-gnumeric $with_gnumeric_filter 23964 tools $with_tools 23965 python $enable_python 23966 python-xlsx $with_python_xlsx 23967 python-ods $with_python_ods 23968 python-xls-xml $with_python_xls_xml 23969 python-gnumeric $with_python_gnumeric 23970 cpu-features $with_cpu_features 23971============================================================================== 23972" >&5 23973$as_echo "$as_me: 23974============================================================================== 23975Build configuration: 23976 debug $enable_debug 23977 debug-utils $enable_debug_utils 23978 werror $enable_werror 23979 spreadsheet-model $enable_spreadsheet_model 23980 gnumeric-filter $with_gnumeric_filter 23981 ods-filter $with_ods_filter 23982 xlsx-filter $with_xlsx_filter 23983 xls-xml-filter $with_xls_xml_filter 23984 xls-gnumeric $with_gnumeric_filter 23985 tools $with_tools 23986 python $enable_python 23987 python-xlsx $with_python_xlsx 23988 python-ods $with_python_ods 23989 python-xls-xml $with_python_xls_xml 23990 python-gnumeric $with_python_gnumeric 23991 cpu-features $with_cpu_features 23992============================================================================== 23993" >&6;} 23994 23995