1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for cclive 0.7.16. 4# 5# Report bugs to <http://cclive.sf.net/bugs/>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: http://cclive.sf.net/bugs/ about your system, including 279$0: any error possibly output before this message. Then 280$0: install a modern shell, or manually run the script 281$0: under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='cclive' 592PACKAGE_TARNAME='cclive' 593PACKAGE_VERSION='0.7.16' 594PACKAGE_STRING='cclive 0.7.16' 595PACKAGE_BUGREPORT='http://cclive.sf.net/bugs/' 596PACKAGE_URL='http://cclive.sf.net/' 597 598ac_unique_file="src/cc/application.cpp" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638ENABLE_CCL_FALSE 639ENABLE_CCL_TRUE 640WITH_MANUAL_FALSE 641WITH_MANUAL_TRUE 642LIBOBJS 643BOOST_FILESYSTEM_LIBS 644BOOST_FILESYSTEM_LDPATH 645BOOST_FILESYSTEM_LDFLAGS 646BOOST_SYSTEM_LIBS 647BOOST_SYSTEM_LDPATH 648BOOST_SYSTEM_LDFLAGS 649BOOST_IOSTREAMS_LIBS 650BOOST_IOSTREAMS_LDPATH 651BOOST_IOSTREAMS_LDFLAGS 652BOOST_PROGRAM_OPTIONS_LIBS 653BOOST_PROGRAM_OPTIONS_LDPATH 654BOOST_PROGRAM_OPTIONS_LDFLAGS 655BOOST_DATE_TIME_LIBS 656BOOST_LDPATH 657BOOST_DATE_TIME_LDPATH 658BOOST_DATE_TIME_LDFLAGS 659BOOST_CPPFLAGS 660DISTCHECK_CONFIGURE_FLAGS 661BOOST_ROOT 662libpcrecpp_LIBS 663libpcrecpp_CFLAGS 664libpcre_LIBS 665libpcre_CFLAGS 666libcurl_LIBS 667libcurl_CFLAGS 668libquvi_LIBS 669libquvi_CFLAGS 670PKG_CONFIG_LIBDIR 671PKG_CONFIG_PATH 672PKG_CONFIG 673HAVE_A2X_FALSE 674HAVE_A2X_TRUE 675A2X 676CXXCPP 677am__fastdepCXX_FALSE 678am__fastdepCXX_TRUE 679CXXDEPMODE 680ac_ct_CXX 681CXXFLAGS 682CXX 683OTOOL64 684OTOOL 685LIPO 686NMEDIT 687DSYMUTIL 688MANIFEST_TOOL 689RANLIB 690DLLTOOL 691OBJDUMP 692LN_S 693NM 694ac_ct_DUMPBIN 695DUMPBIN 696LD 697FGREP 698SED 699LIBTOOL 700ac_ct_AR 701AR 702AM_BACKSLASH 703AM_DEFAULT_VERBOSITY 704AM_DEFAULT_V 705AM_V 706am__fastdepCC_FALSE 707am__fastdepCC_TRUE 708CCDEPMODE 709am__nodep 710AMDEPBACKSLASH 711AMDEP_FALSE 712AMDEP_TRUE 713am__quote 714am__include 715DEPDIR 716am__untar 717am__tar 718AMTAR 719am__leading_dot 720SET_MAKE 721AWK 722mkdir_p 723MKDIR_P 724INSTALL_STRIP_PROGRAM 725STRIP 726install_sh 727MAKEINFO 728AUTOHEADER 729AUTOMAKE 730AUTOCONF 731ACLOCAL 732VERSION 733PACKAGE 734CYGPATH_W 735am__isrc 736INSTALL_DATA 737INSTALL_SCRIPT 738INSTALL_PROGRAM 739EGREP 740GREP 741CPP 742OBJEXT 743EXEEXT 744ac_ct_CC 745CPPFLAGS 746LDFLAGS 747CFLAGS 748CC 749target_os 750target_vendor 751target_cpu 752target 753host_os 754host_vendor 755host_cpu 756host 757build_os 758build_vendor 759build_cpu 760build 761target_alias 762host_alias 763build_alias 764LIBS 765ECHO_T 766ECHO_N 767ECHO_C 768DEFS 769mandir 770localedir 771libdir 772psdir 773pdfdir 774dvidir 775htmldir 776infodir 777docdir 778oldincludedir 779includedir 780localstatedir 781sharedstatedir 782sysconfdir 783datadir 784datarootdir 785libexecdir 786sbindir 787bindir 788program_transform_name 789prefix 790exec_prefix 791PACKAGE_URL 792PACKAGE_BUGREPORT 793PACKAGE_STRING 794PACKAGE_VERSION 795PACKAGE_TARNAME 796PACKAGE_NAME 797PATH_SEPARATOR 798SHELL' 799ac_subst_files='' 800ac_user_opts=' 801enable_option_checking 802enable_dependency_tracking 803enable_silent_rules 804enable_static 805enable_shared 806with_pic 807enable_fast_install 808with_gnu_ld 809with_sysroot 810enable_libtool_lock 811with_boost 812enable_static_boost 813with_manual 814enable_ccl 815' 816 ac_precious_vars='build_alias 817host_alias 818target_alias 819CC 820CFLAGS 821LDFLAGS 822LIBS 823CPPFLAGS 824CPP 825CXX 826CXXFLAGS 827CCC 828CXXCPP 829PKG_CONFIG 830PKG_CONFIG_PATH 831PKG_CONFIG_LIBDIR 832libquvi_CFLAGS 833libquvi_LIBS 834libcurl_CFLAGS 835libcurl_LIBS 836libpcre_CFLAGS 837libpcre_LIBS 838libpcrecpp_CFLAGS 839libpcrecpp_LIBS 840BOOST_ROOT' 841 842 843# Initialize some variables set by options. 844ac_init_help= 845ac_init_version=false 846ac_unrecognized_opts= 847ac_unrecognized_sep= 848# The variables have the same names as the options, with 849# dashes changed to underlines. 850cache_file=/dev/null 851exec_prefix=NONE 852no_create= 853no_recursion= 854prefix=NONE 855program_prefix=NONE 856program_suffix=NONE 857program_transform_name=s,x,x, 858silent= 859site= 860srcdir= 861verbose= 862x_includes=NONE 863x_libraries=NONE 864 865# Installation directory options. 866# These are left unexpanded so users can "make install exec_prefix=/foo" 867# and all the variables that are supposed to be based on exec_prefix 868# by default will actually change. 869# Use braces instead of parens because sh, perl, etc. also accept them. 870# (The list follows the same order as the GNU Coding Standards.) 871bindir='${exec_prefix}/bin' 872sbindir='${exec_prefix}/sbin' 873libexecdir='${exec_prefix}/libexec' 874datarootdir='${prefix}/share' 875datadir='${datarootdir}' 876sysconfdir='${prefix}/etc' 877sharedstatedir='${prefix}/com' 878localstatedir='${prefix}/var' 879includedir='${prefix}/include' 880oldincludedir='/usr/include' 881docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 882infodir='${datarootdir}/info' 883htmldir='${docdir}' 884dvidir='${docdir}' 885pdfdir='${docdir}' 886psdir='${docdir}' 887libdir='${exec_prefix}/lib' 888localedir='${datarootdir}/locale' 889mandir='${datarootdir}/man' 890 891ac_prev= 892ac_dashdash= 893for ac_option 894do 895 # If the previous option needs an argument, assign it. 896 if test -n "$ac_prev"; then 897 eval $ac_prev=\$ac_option 898 ac_prev= 899 continue 900 fi 901 902 case $ac_option in 903 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 904 *=) ac_optarg= ;; 905 *) ac_optarg=yes ;; 906 esac 907 908 # Accept the important Cygnus configure options, so we can diagnose typos. 909 910 case $ac_dashdash$ac_option in 911 --) 912 ac_dashdash=yes ;; 913 914 -bindir | --bindir | --bindi | --bind | --bin | --bi) 915 ac_prev=bindir ;; 916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 917 bindir=$ac_optarg ;; 918 919 -build | --build | --buil | --bui | --bu) 920 ac_prev=build_alias ;; 921 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 922 build_alias=$ac_optarg ;; 923 924 -cache-file | --cache-file | --cache-fil | --cache-fi \ 925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 926 ac_prev=cache_file ;; 927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 929 cache_file=$ac_optarg ;; 930 931 --config-cache | -C) 932 cache_file=config.cache ;; 933 934 -datadir | --datadir | --datadi | --datad) 935 ac_prev=datadir ;; 936 -datadir=* | --datadir=* | --datadi=* | --datad=*) 937 datadir=$ac_optarg ;; 938 939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 940 | --dataroo | --dataro | --datar) 941 ac_prev=datarootdir ;; 942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 944 datarootdir=$ac_optarg ;; 945 946 -disable-* | --disable-*) 947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 948 # Reject names that are not valid shell variable names. 949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 950 as_fn_error $? "invalid feature name: $ac_useropt" 951 ac_useropt_orig=$ac_useropt 952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 953 case $ac_user_opts in 954 *" 955"enable_$ac_useropt" 956"*) ;; 957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 958 ac_unrecognized_sep=', ';; 959 esac 960 eval enable_$ac_useropt=no ;; 961 962 -docdir | --docdir | --docdi | --doc | --do) 963 ac_prev=docdir ;; 964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 965 docdir=$ac_optarg ;; 966 967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 968 ac_prev=dvidir ;; 969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 970 dvidir=$ac_optarg ;; 971 972 -enable-* | --enable-*) 973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 974 # Reject names that are not valid shell variable names. 975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 976 as_fn_error $? "invalid feature name: $ac_useropt" 977 ac_useropt_orig=$ac_useropt 978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 979 case $ac_user_opts in 980 *" 981"enable_$ac_useropt" 982"*) ;; 983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 984 ac_unrecognized_sep=', ';; 985 esac 986 eval enable_$ac_useropt=\$ac_optarg ;; 987 988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 990 | --exec | --exe | --ex) 991 ac_prev=exec_prefix ;; 992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 994 | --exec=* | --exe=* | --ex=*) 995 exec_prefix=$ac_optarg ;; 996 997 -gas | --gas | --ga | --g) 998 # Obsolete; use --with-gas. 999 with_gas=yes ;; 1000 1001 -help | --help | --hel | --he | -h) 1002 ac_init_help=long ;; 1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1004 ac_init_help=recursive ;; 1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1006 ac_init_help=short ;; 1007 1008 -host | --host | --hos | --ho) 1009 ac_prev=host_alias ;; 1010 -host=* | --host=* | --hos=* | --ho=*) 1011 host_alias=$ac_optarg ;; 1012 1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1014 ac_prev=htmldir ;; 1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1016 | --ht=*) 1017 htmldir=$ac_optarg ;; 1018 1019 -includedir | --includedir | --includedi | --included | --include \ 1020 | --includ | --inclu | --incl | --inc) 1021 ac_prev=includedir ;; 1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1023 | --includ=* | --inclu=* | --incl=* | --inc=*) 1024 includedir=$ac_optarg ;; 1025 1026 -infodir | --infodir | --infodi | --infod | --info | --inf) 1027 ac_prev=infodir ;; 1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1029 infodir=$ac_optarg ;; 1030 1031 -libdir | --libdir | --libdi | --libd) 1032 ac_prev=libdir ;; 1033 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1034 libdir=$ac_optarg ;; 1035 1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1037 | --libexe | --libex | --libe) 1038 ac_prev=libexecdir ;; 1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1040 | --libexe=* | --libex=* | --libe=*) 1041 libexecdir=$ac_optarg ;; 1042 1043 -localedir | --localedir | --localedi | --localed | --locale) 1044 ac_prev=localedir ;; 1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1046 localedir=$ac_optarg ;; 1047 1048 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1049 | --localstate | --localstat | --localsta | --localst | --locals) 1050 ac_prev=localstatedir ;; 1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1053 localstatedir=$ac_optarg ;; 1054 1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1056 ac_prev=mandir ;; 1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1058 mandir=$ac_optarg ;; 1059 1060 -nfp | --nfp | --nf) 1061 # Obsolete; use --without-fp. 1062 with_fp=no ;; 1063 1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1065 | --no-cr | --no-c | -n) 1066 no_create=yes ;; 1067 1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1070 no_recursion=yes ;; 1071 1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1074 | --oldin | --oldi | --old | --ol | --o) 1075 ac_prev=oldincludedir ;; 1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1079 oldincludedir=$ac_optarg ;; 1080 1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1082 ac_prev=prefix ;; 1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1084 prefix=$ac_optarg ;; 1085 1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1087 | --program-pre | --program-pr | --program-p) 1088 ac_prev=program_prefix ;; 1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1091 program_prefix=$ac_optarg ;; 1092 1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1094 | --program-suf | --program-su | --program-s) 1095 ac_prev=program_suffix ;; 1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1098 program_suffix=$ac_optarg ;; 1099 1100 -program-transform-name | --program-transform-name \ 1101 | --program-transform-nam | --program-transform-na \ 1102 | --program-transform-n | --program-transform- \ 1103 | --program-transform | --program-transfor \ 1104 | --program-transfo | --program-transf \ 1105 | --program-trans | --program-tran \ 1106 | --progr-tra | --program-tr | --program-t) 1107 ac_prev=program_transform_name ;; 1108 -program-transform-name=* | --program-transform-name=* \ 1109 | --program-transform-nam=* | --program-transform-na=* \ 1110 | --program-transform-n=* | --program-transform-=* \ 1111 | --program-transform=* | --program-transfor=* \ 1112 | --program-transfo=* | --program-transf=* \ 1113 | --program-trans=* | --program-tran=* \ 1114 | --progr-tra=* | --program-tr=* | --program-t=*) 1115 program_transform_name=$ac_optarg ;; 1116 1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1118 ac_prev=pdfdir ;; 1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1120 pdfdir=$ac_optarg ;; 1121 1122 -psdir | --psdir | --psdi | --psd | --ps) 1123 ac_prev=psdir ;; 1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1125 psdir=$ac_optarg ;; 1126 1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1128 | -silent | --silent | --silen | --sile | --sil) 1129 silent=yes ;; 1130 1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1132 ac_prev=sbindir ;; 1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1134 | --sbi=* | --sb=*) 1135 sbindir=$ac_optarg ;; 1136 1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1139 | --sharedst | --shareds | --shared | --share | --shar \ 1140 | --sha | --sh) 1141 ac_prev=sharedstatedir ;; 1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1145 | --sha=* | --sh=*) 1146 sharedstatedir=$ac_optarg ;; 1147 1148 -site | --site | --sit) 1149 ac_prev=site ;; 1150 -site=* | --site=* | --sit=*) 1151 site=$ac_optarg ;; 1152 1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1154 ac_prev=srcdir ;; 1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1156 srcdir=$ac_optarg ;; 1157 1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1159 | --syscon | --sysco | --sysc | --sys | --sy) 1160 ac_prev=sysconfdir ;; 1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1163 sysconfdir=$ac_optarg ;; 1164 1165 -target | --target | --targe | --targ | --tar | --ta | --t) 1166 ac_prev=target_alias ;; 1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1168 target_alias=$ac_optarg ;; 1169 1170 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1171 verbose=yes ;; 1172 1173 -version | --version | --versio | --versi | --vers | -V) 1174 ac_init_version=: ;; 1175 1176 -with-* | --with-*) 1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1178 # Reject names that are not valid shell variable names. 1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1180 as_fn_error $? "invalid package name: $ac_useropt" 1181 ac_useropt_orig=$ac_useropt 1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1183 case $ac_user_opts in 1184 *" 1185"with_$ac_useropt" 1186"*) ;; 1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1188 ac_unrecognized_sep=', ';; 1189 esac 1190 eval with_$ac_useropt=\$ac_optarg ;; 1191 1192 -without-* | --without-*) 1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1194 # Reject names that are not valid shell variable names. 1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1196 as_fn_error $? "invalid package name: $ac_useropt" 1197 ac_useropt_orig=$ac_useropt 1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1199 case $ac_user_opts in 1200 *" 1201"with_$ac_useropt" 1202"*) ;; 1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1204 ac_unrecognized_sep=', ';; 1205 esac 1206 eval with_$ac_useropt=no ;; 1207 1208 --x) 1209 # Obsolete; use --with-x. 1210 with_x=yes ;; 1211 1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1213 | --x-incl | --x-inc | --x-in | --x-i) 1214 ac_prev=x_includes ;; 1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1217 x_includes=$ac_optarg ;; 1218 1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1221 ac_prev=x_libraries ;; 1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1224 x_libraries=$ac_optarg ;; 1225 1226 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1227Try \`$0 --help' for more information" 1228 ;; 1229 1230 *=*) 1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1232 # Reject names that are not valid shell variable names. 1233 case $ac_envvar in #( 1234 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1235 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1236 esac 1237 eval $ac_envvar=\$ac_optarg 1238 export $ac_envvar ;; 1239 1240 *) 1241 # FIXME: should be removed in autoconf 3.0. 1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1245 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1246 ;; 1247 1248 esac 1249done 1250 1251if test -n "$ac_prev"; then 1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1253 as_fn_error $? "missing argument to $ac_option" 1254fi 1255 1256if test -n "$ac_unrecognized_opts"; then 1257 case $enable_option_checking in 1258 no) ;; 1259 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1261 esac 1262fi 1263 1264# Check all directory arguments for consistency. 1265for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1266 datadir sysconfdir sharedstatedir localstatedir includedir \ 1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1268 libdir localedir mandir 1269do 1270 eval ac_val=\$$ac_var 1271 # Remove trailing slashes. 1272 case $ac_val in 1273 */ ) 1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1275 eval $ac_var=\$ac_val;; 1276 esac 1277 # Be sure to have absolute directory names. 1278 case $ac_val in 1279 [\\/$]* | ?:[\\/]* ) continue;; 1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1281 esac 1282 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1283done 1284 1285# There might be people who depend on the old broken behavior: `$host' 1286# used to hold the argument of --host etc. 1287# FIXME: To remove some day. 1288build=$build_alias 1289host=$host_alias 1290target=$target_alias 1291 1292# FIXME: To remove some day. 1293if test "x$host_alias" != x; then 1294 if test "x$build_alias" = x; then 1295 cross_compiling=maybe 1296 elif test "x$build_alias" != "x$host_alias"; then 1297 cross_compiling=yes 1298 fi 1299fi 1300 1301ac_tool_prefix= 1302test -n "$host_alias" && ac_tool_prefix=$host_alias- 1303 1304test "$silent" = yes && exec 6>/dev/null 1305 1306 1307ac_pwd=`pwd` && test -n "$ac_pwd" && 1308ac_ls_di=`ls -di .` && 1309ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1310 as_fn_error $? "working directory cannot be determined" 1311test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1312 as_fn_error $? "pwd does not report name of working directory" 1313 1314 1315# Find the source files, if location was not specified. 1316if test -z "$srcdir"; then 1317 ac_srcdir_defaulted=yes 1318 # Try the directory containing this script, then the parent directory. 1319 ac_confdir=`$as_dirname -- "$as_myself" || 1320$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1321 X"$as_myself" : 'X\(//\)[^/]' \| \ 1322 X"$as_myself" : 'X\(//\)$' \| \ 1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1324$as_echo X"$as_myself" | 1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1326 s//\1/ 1327 q 1328 } 1329 /^X\(\/\/\)[^/].*/{ 1330 s//\1/ 1331 q 1332 } 1333 /^X\(\/\/\)$/{ 1334 s//\1/ 1335 q 1336 } 1337 /^X\(\/\).*/{ 1338 s//\1/ 1339 q 1340 } 1341 s/.*/./; q'` 1342 srcdir=$ac_confdir 1343 if test ! -r "$srcdir/$ac_unique_file"; then 1344 srcdir=.. 1345 fi 1346else 1347 ac_srcdir_defaulted=no 1348fi 1349if test ! -r "$srcdir/$ac_unique_file"; then 1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1351 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1352fi 1353ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1354ac_abs_confdir=`( 1355 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1356 pwd)` 1357# When building in place, set srcdir=. 1358if test "$ac_abs_confdir" = "$ac_pwd"; then 1359 srcdir=. 1360fi 1361# Remove unnecessary trailing slashes from srcdir. 1362# Double slashes in file names in object file debugging info 1363# mess up M-x gdb in Emacs. 1364case $srcdir in 1365*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1366esac 1367for ac_var in $ac_precious_vars; do 1368 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1369 eval ac_env_${ac_var}_value=\$${ac_var} 1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1371 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1372done 1373 1374# 1375# Report the --help message. 1376# 1377if test "$ac_init_help" = "long"; then 1378 # Omit some internal or obsolete options to make the list less imposing. 1379 # This message is too long to be a string in the A/UX 3.1 sh. 1380 cat <<_ACEOF 1381\`configure' configures cclive 0.7.16 to adapt to many kinds of systems. 1382 1383Usage: $0 [OPTION]... [VAR=VALUE]... 1384 1385To assign environment variables (e.g., CC, CFLAGS...), specify them as 1386VAR=VALUE. See below for descriptions of some of the useful variables. 1387 1388Defaults for the options are specified in brackets. 1389 1390Configuration: 1391 -h, --help display this help and exit 1392 --help=short display options specific to this package 1393 --help=recursive display the short help of all the included packages 1394 -V, --version display version information and exit 1395 -q, --quiet, --silent do not print \`checking ...' messages 1396 --cache-file=FILE cache test results in FILE [disabled] 1397 -C, --config-cache alias for \`--cache-file=config.cache' 1398 -n, --no-create do not create output files 1399 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1400 1401Installation directories: 1402 --prefix=PREFIX install architecture-independent files in PREFIX 1403 [$ac_default_prefix] 1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1405 [PREFIX] 1406 1407By default, \`make install' will install all the files in 1408\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1409an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1410for instance \`--prefix=\$HOME'. 1411 1412For better control, use the options below. 1413 1414Fine tuning of the installation directories: 1415 --bindir=DIR user executables [EPREFIX/bin] 1416 --sbindir=DIR system admin executables [EPREFIX/sbin] 1417 --libexecdir=DIR program executables [EPREFIX/libexec] 1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1421 --libdir=DIR object code libraries [EPREFIX/lib] 1422 --includedir=DIR C header files [PREFIX/include] 1423 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1426 --infodir=DIR info documentation [DATAROOTDIR/info] 1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1428 --mandir=DIR man documentation [DATAROOTDIR/man] 1429 --docdir=DIR documentation root [DATAROOTDIR/doc/cclive] 1430 --htmldir=DIR html documentation [DOCDIR] 1431 --dvidir=DIR dvi documentation [DOCDIR] 1432 --pdfdir=DIR pdf documentation [DOCDIR] 1433 --psdir=DIR ps documentation [DOCDIR] 1434_ACEOF 1435 1436 cat <<\_ACEOF 1437 1438Program names: 1439 --program-prefix=PREFIX prepend PREFIX to installed program names 1440 --program-suffix=SUFFIX append SUFFIX to installed program names 1441 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1442 1443System types: 1444 --build=BUILD configure for building on BUILD [guessed] 1445 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1446 --target=TARGET configure for building compilers for TARGET [HOST] 1447_ACEOF 1448fi 1449 1450if test -n "$ac_init_help"; then 1451 case $ac_init_help in 1452 short | recursive ) echo "Configuration of cclive 0.7.16:";; 1453 esac 1454 cat <<\_ACEOF 1455 1456Optional Features: 1457 --disable-option-checking ignore unrecognized --enable/--with options 1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1460 --disable-dependency-tracking speeds up one-time build 1461 --enable-dependency-tracking do not reject slow dependency extractors 1462 --enable-silent-rules less verbose build output (undo: `make V=1') 1463 --disable-silent-rules verbose build output (undo: `make V=0') 1464 --enable-static[=PKGS] build static libraries [default=no] 1465 --enable-shared[=PKGS] build shared libraries [default=yes] 1466 --enable-fast-install[=PKGS] 1467 optimize for fast installation [default=yes] 1468 --disable-libtool-lock avoid locking (might break parallel builds) 1469 --enable-static-boost Prefer the static boost libraries over the shared 1470 ones [no] 1471 --enable-ccl Symlink from 'cclive' executable to 'ccl' 1472 [default=yes] 1473 1474Optional Packages: 1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1477 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1478 both] 1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1480 --with-sysroot=DIR Search for dependent libraries within DIR 1481 (or the compiler's sysroot if not specified). 1482 --with-boost=DIR prefix of Boost 1.42.0 [guess] 1483 --with-manual Install manual page(s) [default=yes] 1484 1485Some influential environment variables: 1486 CC C compiler command 1487 CFLAGS C compiler flags 1488 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1489 nonstandard directory <lib dir> 1490 LIBS libraries to pass to the linker, e.g. -l<library> 1491 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1492 you have headers in a nonstandard directory <include dir> 1493 CPP C preprocessor 1494 CXX C++ compiler command 1495 CXXFLAGS C++ compiler flags 1496 CXXCPP C++ preprocessor 1497 PKG_CONFIG path to pkg-config utility 1498 PKG_CONFIG_PATH 1499 directories to add to pkg-config's search path 1500 PKG_CONFIG_LIBDIR 1501 path overriding pkg-config's built-in search path 1502 libquvi_CFLAGS 1503 C compiler flags for libquvi, overriding pkg-config 1504 libquvi_LIBS 1505 linker flags for libquvi, overriding pkg-config 1506 libcurl_CFLAGS 1507 C compiler flags for libcurl, overriding pkg-config 1508 libcurl_LIBS 1509 linker flags for libcurl, overriding pkg-config 1510 libpcre_CFLAGS 1511 C compiler flags for libpcre, overriding pkg-config 1512 libpcre_LIBS 1513 linker flags for libpcre, overriding pkg-config 1514 libpcrecpp_CFLAGS 1515 C compiler flags for libpcrecpp, overriding pkg-config 1516 libpcrecpp_LIBS 1517 linker flags for libpcrecpp, overriding pkg-config 1518 BOOST_ROOT Location of Boost installation 1519 1520Use these variables to override the choices made by `configure' or to help 1521it to find libraries and programs with nonstandard names/locations. 1522 1523Report bugs to <http://cclive.sf.net/bugs/>. 1524cclive home page: <http://cclive.sf.net/>. 1525_ACEOF 1526ac_status=$? 1527fi 1528 1529if test "$ac_init_help" = "recursive"; then 1530 # If there are subdirs, report their specific --help. 1531 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1532 test -d "$ac_dir" || 1533 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1534 continue 1535 ac_builddir=. 1536 1537case "$ac_dir" in 1538.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1539*) 1540 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1541 # A ".." for each directory in $ac_dir_suffix. 1542 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1543 case $ac_top_builddir_sub in 1544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1546 esac ;; 1547esac 1548ac_abs_top_builddir=$ac_pwd 1549ac_abs_builddir=$ac_pwd$ac_dir_suffix 1550# for backward compatibility: 1551ac_top_builddir=$ac_top_build_prefix 1552 1553case $srcdir in 1554 .) # We are building in place. 1555 ac_srcdir=. 1556 ac_top_srcdir=$ac_top_builddir_sub 1557 ac_abs_top_srcdir=$ac_pwd ;; 1558 [\\/]* | ?:[\\/]* ) # Absolute name. 1559 ac_srcdir=$srcdir$ac_dir_suffix; 1560 ac_top_srcdir=$srcdir 1561 ac_abs_top_srcdir=$srcdir ;; 1562 *) # Relative name. 1563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1564 ac_top_srcdir=$ac_top_build_prefix$srcdir 1565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1566esac 1567ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1568 1569 cd "$ac_dir" || { ac_status=$?; continue; } 1570 # Check for guested configure. 1571 if test -f "$ac_srcdir/configure.gnu"; then 1572 echo && 1573 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1574 elif test -f "$ac_srcdir/configure"; then 1575 echo && 1576 $SHELL "$ac_srcdir/configure" --help=recursive 1577 else 1578 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1579 fi || ac_status=$? 1580 cd "$ac_pwd" || { ac_status=$?; break; } 1581 done 1582fi 1583 1584test -n "$ac_init_help" && exit $ac_status 1585if $ac_init_version; then 1586 cat <<\_ACEOF 1587cclive configure 0.7.16 1588generated by GNU Autoconf 2.69 1589 1590Copyright (C) 2012 Free Software Foundation, Inc. 1591This configure script is free software; the Free Software Foundation 1592gives unlimited permission to copy, distribute and modify it. 1593_ACEOF 1594 exit 1595fi 1596 1597## ------------------------ ## 1598## Autoconf initialization. ## 1599## ------------------------ ## 1600 1601# ac_fn_c_try_compile LINENO 1602# -------------------------- 1603# Try to compile conftest.$ac_ext, and return whether this succeeded. 1604ac_fn_c_try_compile () 1605{ 1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1607 rm -f conftest.$ac_objext 1608 if { { ac_try="$ac_compile" 1609case "(($ac_try" in 1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1611 *) ac_try_echo=$ac_try;; 1612esac 1613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1614$as_echo "$ac_try_echo"; } >&5 1615 (eval "$ac_compile") 2>conftest.err 1616 ac_status=$? 1617 if test -s conftest.err; then 1618 grep -v '^ *+' conftest.err >conftest.er1 1619 cat conftest.er1 >&5 1620 mv -f conftest.er1 conftest.err 1621 fi 1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1623 test $ac_status = 0; } && { 1624 test -z "$ac_c_werror_flag" || 1625 test ! -s conftest.err 1626 } && test -s conftest.$ac_objext; then : 1627 ac_retval=0 1628else 1629 $as_echo "$as_me: failed program was:" >&5 1630sed 's/^/| /' conftest.$ac_ext >&5 1631 1632 ac_retval=1 1633fi 1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1635 as_fn_set_status $ac_retval 1636 1637} # ac_fn_c_try_compile 1638 1639# ac_fn_c_try_cpp LINENO 1640# ---------------------- 1641# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1642ac_fn_c_try_cpp () 1643{ 1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1645 if { { ac_try="$ac_cpp conftest.$ac_ext" 1646case "(($ac_try" in 1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1648 *) ac_try_echo=$ac_try;; 1649esac 1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1651$as_echo "$ac_try_echo"; } >&5 1652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1653 ac_status=$? 1654 if test -s conftest.err; then 1655 grep -v '^ *+' conftest.err >conftest.er1 1656 cat conftest.er1 >&5 1657 mv -f conftest.er1 conftest.err 1658 fi 1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1660 test $ac_status = 0; } > conftest.i && { 1661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1662 test ! -s conftest.err 1663 }; then : 1664 ac_retval=0 1665else 1666 $as_echo "$as_me: failed program was:" >&5 1667sed 's/^/| /' conftest.$ac_ext >&5 1668 1669 ac_retval=1 1670fi 1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1672 as_fn_set_status $ac_retval 1673 1674} # ac_fn_c_try_cpp 1675 1676# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1677# ------------------------------------------------------- 1678# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1679# the include files in INCLUDES and setting the cache variable VAR 1680# accordingly. 1681ac_fn_c_check_header_mongrel () 1682{ 1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1684 if eval \${$3+:} false; then : 1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1686$as_echo_n "checking for $2... " >&6; } 1687if eval \${$3+:} false; then : 1688 $as_echo_n "(cached) " >&6 1689fi 1690eval ac_res=\$$3 1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1692$as_echo "$ac_res" >&6; } 1693else 1694 # Is the header compilable? 1695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1696$as_echo_n "checking $2 usability... " >&6; } 1697cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1698/* end confdefs.h. */ 1699$4 1700#include <$2> 1701_ACEOF 1702if ac_fn_c_try_compile "$LINENO"; then : 1703 ac_header_compiler=yes 1704else 1705 ac_header_compiler=no 1706fi 1707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1709$as_echo "$ac_header_compiler" >&6; } 1710 1711# Is the header present? 1712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1713$as_echo_n "checking $2 presence... " >&6; } 1714cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1715/* end confdefs.h. */ 1716#include <$2> 1717_ACEOF 1718if ac_fn_c_try_cpp "$LINENO"; then : 1719 ac_header_preproc=yes 1720else 1721 ac_header_preproc=no 1722fi 1723rm -f conftest.err conftest.i conftest.$ac_ext 1724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1725$as_echo "$ac_header_preproc" >&6; } 1726 1727# So? What about this header? 1728case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1729 yes:no: ) 1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1731$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1733$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1734 ;; 1735 no:yes:* ) 1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1737$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1739$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1741$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1743$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1745$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1746( $as_echo "## ----------------------------------------- ## 1747## Report this to http://cclive.sf.net/bugs/ ## 1748## ----------------------------------------- ##" 1749 ) | sed "s/^/$as_me: WARNING: /" >&2 1750 ;; 1751esac 1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1753$as_echo_n "checking for $2... " >&6; } 1754if eval \${$3+:} false; then : 1755 $as_echo_n "(cached) " >&6 1756else 1757 eval "$3=\$ac_header_compiler" 1758fi 1759eval ac_res=\$$3 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1761$as_echo "$ac_res" >&6; } 1762fi 1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1764 1765} # ac_fn_c_check_header_mongrel 1766 1767# ac_fn_c_try_run LINENO 1768# ---------------------- 1769# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1770# that executables *can* be run. 1771ac_fn_c_try_run () 1772{ 1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1774 if { { ac_try="$ac_link" 1775case "(($ac_try" in 1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1777 *) ac_try_echo=$ac_try;; 1778esac 1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1780$as_echo "$ac_try_echo"; } >&5 1781 (eval "$ac_link") 2>&5 1782 ac_status=$? 1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1784 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1785 { { case "(($ac_try" in 1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1787 *) ac_try_echo=$ac_try;; 1788esac 1789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1790$as_echo "$ac_try_echo"; } >&5 1791 (eval "$ac_try") 2>&5 1792 ac_status=$? 1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1794 test $ac_status = 0; }; }; then : 1795 ac_retval=0 1796else 1797 $as_echo "$as_me: program exited with status $ac_status" >&5 1798 $as_echo "$as_me: failed program was:" >&5 1799sed 's/^/| /' conftest.$ac_ext >&5 1800 1801 ac_retval=$ac_status 1802fi 1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1805 as_fn_set_status $ac_retval 1806 1807} # ac_fn_c_try_run 1808 1809# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1810# ------------------------------------------------------- 1811# Tests whether HEADER exists and can be compiled using the include files in 1812# INCLUDES, setting the cache variable VAR accordingly. 1813ac_fn_c_check_header_compile () 1814{ 1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1817$as_echo_n "checking for $2... " >&6; } 1818if eval \${$3+:} false; then : 1819 $as_echo_n "(cached) " >&6 1820else 1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1822/* end confdefs.h. */ 1823$4 1824#include <$2> 1825_ACEOF 1826if ac_fn_c_try_compile "$LINENO"; then : 1827 eval "$3=yes" 1828else 1829 eval "$3=no" 1830fi 1831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1832fi 1833eval ac_res=\$$3 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1835$as_echo "$ac_res" >&6; } 1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1837 1838} # ac_fn_c_check_header_compile 1839 1840# ac_fn_c_try_link LINENO 1841# ----------------------- 1842# Try to link conftest.$ac_ext, and return whether this succeeded. 1843ac_fn_c_try_link () 1844{ 1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1846 rm -f conftest.$ac_objext conftest$ac_exeext 1847 if { { ac_try="$ac_link" 1848case "(($ac_try" in 1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1850 *) ac_try_echo=$ac_try;; 1851esac 1852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1853$as_echo "$ac_try_echo"; } >&5 1854 (eval "$ac_link") 2>conftest.err 1855 ac_status=$? 1856 if test -s conftest.err; then 1857 grep -v '^ *+' conftest.err >conftest.er1 1858 cat conftest.er1 >&5 1859 mv -f conftest.er1 conftest.err 1860 fi 1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1862 test $ac_status = 0; } && { 1863 test -z "$ac_c_werror_flag" || 1864 test ! -s conftest.err 1865 } && test -s conftest$ac_exeext && { 1866 test "$cross_compiling" = yes || 1867 test -x conftest$ac_exeext 1868 }; then : 1869 ac_retval=0 1870else 1871 $as_echo "$as_me: failed program was:" >&5 1872sed 's/^/| /' conftest.$ac_ext >&5 1873 1874 ac_retval=1 1875fi 1876 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1877 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1878 # interfere with the next link command; also delete a directory that is 1879 # left behind by Apple's compiler. We do this before executing the actions. 1880 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1882 as_fn_set_status $ac_retval 1883 1884} # ac_fn_c_try_link 1885 1886# ac_fn_c_check_func LINENO FUNC VAR 1887# ---------------------------------- 1888# Tests whether FUNC exists, setting the cache variable VAR accordingly 1889ac_fn_c_check_func () 1890{ 1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1893$as_echo_n "checking for $2... " >&6; } 1894if eval \${$3+:} false; then : 1895 $as_echo_n "(cached) " >&6 1896else 1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1898/* end confdefs.h. */ 1899/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1900 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1901#define $2 innocuous_$2 1902 1903/* System header to define __stub macros and hopefully few prototypes, 1904 which can conflict with char $2 (); below. 1905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1906 <limits.h> exists even on freestanding compilers. */ 1907 1908#ifdef __STDC__ 1909# include <limits.h> 1910#else 1911# include <assert.h> 1912#endif 1913 1914#undef $2 1915 1916/* Override any GCC internal prototype to avoid an error. 1917 Use char because int might match the return type of a GCC 1918 builtin and then its argument prototype would still apply. */ 1919#ifdef __cplusplus 1920extern "C" 1921#endif 1922char $2 (); 1923/* The GNU C library defines this for functions which it implements 1924 to always fail with ENOSYS. Some functions are actually named 1925 something starting with __ and the normal name is an alias. */ 1926#if defined __stub_$2 || defined __stub___$2 1927choke me 1928#endif 1929 1930int 1931main () 1932{ 1933return $2 (); 1934 ; 1935 return 0; 1936} 1937_ACEOF 1938if ac_fn_c_try_link "$LINENO"; then : 1939 eval "$3=yes" 1940else 1941 eval "$3=no" 1942fi 1943rm -f core conftest.err conftest.$ac_objext \ 1944 conftest$ac_exeext conftest.$ac_ext 1945fi 1946eval ac_res=\$$3 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1948$as_echo "$ac_res" >&6; } 1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1950 1951} # ac_fn_c_check_func 1952 1953# ac_fn_cxx_try_compile LINENO 1954# ---------------------------- 1955# Try to compile conftest.$ac_ext, and return whether this succeeded. 1956ac_fn_cxx_try_compile () 1957{ 1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1959 rm -f conftest.$ac_objext 1960 if { { ac_try="$ac_compile" 1961case "(($ac_try" in 1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1963 *) ac_try_echo=$ac_try;; 1964esac 1965eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1966$as_echo "$ac_try_echo"; } >&5 1967 (eval "$ac_compile") 2>conftest.err 1968 ac_status=$? 1969 if test -s conftest.err; then 1970 grep -v '^ *+' conftest.err >conftest.er1 1971 cat conftest.er1 >&5 1972 mv -f conftest.er1 conftest.err 1973 fi 1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1975 test $ac_status = 0; } && { 1976 test -z "$ac_cxx_werror_flag" || 1977 test ! -s conftest.err 1978 } && test -s conftest.$ac_objext; then : 1979 ac_retval=0 1980else 1981 $as_echo "$as_me: failed program was:" >&5 1982sed 's/^/| /' conftest.$ac_ext >&5 1983 1984 ac_retval=1 1985fi 1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1987 as_fn_set_status $ac_retval 1988 1989} # ac_fn_cxx_try_compile 1990 1991# ac_fn_cxx_try_cpp LINENO 1992# ------------------------ 1993# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1994ac_fn_cxx_try_cpp () 1995{ 1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1997 if { { ac_try="$ac_cpp conftest.$ac_ext" 1998case "(($ac_try" in 1999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2000 *) ac_try_echo=$ac_try;; 2001esac 2002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2003$as_echo "$ac_try_echo"; } >&5 2004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2005 ac_status=$? 2006 if test -s conftest.err; then 2007 grep -v '^ *+' conftest.err >conftest.er1 2008 cat conftest.er1 >&5 2009 mv -f conftest.er1 conftest.err 2010 fi 2011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2012 test $ac_status = 0; } > conftest.i && { 2013 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2014 test ! -s conftest.err 2015 }; then : 2016 ac_retval=0 2017else 2018 $as_echo "$as_me: failed program was:" >&5 2019sed 's/^/| /' conftest.$ac_ext >&5 2020 2021 ac_retval=1 2022fi 2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2024 as_fn_set_status $ac_retval 2025 2026} # ac_fn_cxx_try_cpp 2027 2028# ac_fn_cxx_try_link LINENO 2029# ------------------------- 2030# Try to link conftest.$ac_ext, and return whether this succeeded. 2031ac_fn_cxx_try_link () 2032{ 2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2034 rm -f conftest.$ac_objext conftest$ac_exeext 2035 if { { ac_try="$ac_link" 2036case "(($ac_try" in 2037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2038 *) ac_try_echo=$ac_try;; 2039esac 2040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2041$as_echo "$ac_try_echo"; } >&5 2042 (eval "$ac_link") 2>conftest.err 2043 ac_status=$? 2044 if test -s conftest.err; then 2045 grep -v '^ *+' conftest.err >conftest.er1 2046 cat conftest.er1 >&5 2047 mv -f conftest.er1 conftest.err 2048 fi 2049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2050 test $ac_status = 0; } && { 2051 test -z "$ac_cxx_werror_flag" || 2052 test ! -s conftest.err 2053 } && test -s conftest$ac_exeext && { 2054 test "$cross_compiling" = yes || 2055 test -x conftest$ac_exeext 2056 }; then : 2057 ac_retval=0 2058else 2059 $as_echo "$as_me: failed program was:" >&5 2060sed 's/^/| /' conftest.$ac_ext >&5 2061 2062 ac_retval=1 2063fi 2064 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2065 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2066 # interfere with the next link command; also delete a directory that is 2067 # left behind by Apple's compiler. We do this before executing the actions. 2068 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2070 as_fn_set_status $ac_retval 2071 2072} # ac_fn_cxx_try_link 2073 2074# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2075# --------------------------------------------------------- 2076# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2077# the include files in INCLUDES and setting the cache variable VAR 2078# accordingly. 2079ac_fn_cxx_check_header_mongrel () 2080{ 2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2082 if eval \${$3+:} false; then : 2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2084$as_echo_n "checking for $2... " >&6; } 2085if eval \${$3+:} false; then : 2086 $as_echo_n "(cached) " >&6 2087fi 2088eval ac_res=\$$3 2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2090$as_echo "$ac_res" >&6; } 2091else 2092 # Is the header compilable? 2093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2094$as_echo_n "checking $2 usability... " >&6; } 2095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2096/* end confdefs.h. */ 2097$4 2098#include <$2> 2099_ACEOF 2100if ac_fn_cxx_try_compile "$LINENO"; then : 2101 ac_header_compiler=yes 2102else 2103 ac_header_compiler=no 2104fi 2105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2107$as_echo "$ac_header_compiler" >&6; } 2108 2109# Is the header present? 2110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2111$as_echo_n "checking $2 presence... " >&6; } 2112cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2113/* end confdefs.h. */ 2114#include <$2> 2115_ACEOF 2116if ac_fn_cxx_try_cpp "$LINENO"; then : 2117 ac_header_preproc=yes 2118else 2119 ac_header_preproc=no 2120fi 2121rm -f conftest.err conftest.i conftest.$ac_ext 2122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2123$as_echo "$ac_header_preproc" >&6; } 2124 2125# So? What about this header? 2126case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2127 yes:no: ) 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2129$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2131$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2132 ;; 2133 no:yes:* ) 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2135$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2137$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2139$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2141$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2143$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2144( $as_echo "## ----------------------------------------- ## 2145## Report this to http://cclive.sf.net/bugs/ ## 2146## ----------------------------------------- ##" 2147 ) | sed "s/^/$as_me: WARNING: /" >&2 2148 ;; 2149esac 2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2151$as_echo_n "checking for $2... " >&6; } 2152if eval \${$3+:} false; then : 2153 $as_echo_n "(cached) " >&6 2154else 2155 eval "$3=\$ac_header_compiler" 2156fi 2157eval ac_res=\$$3 2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2159$as_echo "$ac_res" >&6; } 2160fi 2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2162 2163} # ac_fn_cxx_check_header_mongrel 2164 2165# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2166# ------------------------------------------- 2167# Tests whether TYPE exists after having included INCLUDES, setting cache 2168# variable VAR accordingly. 2169ac_fn_c_check_type () 2170{ 2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2173$as_echo_n "checking for $2... " >&6; } 2174if eval \${$3+:} false; then : 2175 $as_echo_n "(cached) " >&6 2176else 2177 eval "$3=no" 2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2179/* end confdefs.h. */ 2180$4 2181int 2182main () 2183{ 2184if (sizeof ($2)) 2185 return 0; 2186 ; 2187 return 0; 2188} 2189_ACEOF 2190if ac_fn_c_try_compile "$LINENO"; then : 2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2192/* end confdefs.h. */ 2193$4 2194int 2195main () 2196{ 2197if (sizeof (($2))) 2198 return 0; 2199 ; 2200 return 0; 2201} 2202_ACEOF 2203if ac_fn_c_try_compile "$LINENO"; then : 2204 2205else 2206 eval "$3=yes" 2207fi 2208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2209fi 2210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2211fi 2212eval ac_res=\$$3 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2214$as_echo "$ac_res" >&6; } 2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2216 2217} # ac_fn_c_check_type 2218 2219# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2220# --------------------------------------------- 2221# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2222# accordingly. 2223ac_fn_c_check_decl () 2224{ 2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2226 as_decl_name=`echo $2|sed 's/ *(.*//'` 2227 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2229$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2230if eval \${$3+:} false; then : 2231 $as_echo_n "(cached) " >&6 2232else 2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2234/* end confdefs.h. */ 2235$4 2236int 2237main () 2238{ 2239#ifndef $as_decl_name 2240#ifdef __cplusplus 2241 (void) $as_decl_use; 2242#else 2243 (void) $as_decl_name; 2244#endif 2245#endif 2246 2247 ; 2248 return 0; 2249} 2250_ACEOF 2251if ac_fn_c_try_compile "$LINENO"; then : 2252 eval "$3=yes" 2253else 2254 eval "$3=no" 2255fi 2256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2257fi 2258eval ac_res=\$$3 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2260$as_echo "$ac_res" >&6; } 2261 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2262 2263} # ac_fn_c_check_decl 2264cat >config.log <<_ACEOF 2265This file contains any messages produced by compilers while 2266running configure, to aid debugging if configure makes a mistake. 2267 2268It was created by cclive $as_me 0.7.16, which was 2269generated by GNU Autoconf 2.69. Invocation command line was 2270 2271 $ $0 $@ 2272 2273_ACEOF 2274exec 5>>config.log 2275{ 2276cat <<_ASUNAME 2277## --------- ## 2278## Platform. ## 2279## --------- ## 2280 2281hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2282uname -m = `(uname -m) 2>/dev/null || echo unknown` 2283uname -r = `(uname -r) 2>/dev/null || echo unknown` 2284uname -s = `(uname -s) 2>/dev/null || echo unknown` 2285uname -v = `(uname -v) 2>/dev/null || echo unknown` 2286 2287/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2288/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2289 2290/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2291/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2292/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2293/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2294/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2295/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2296/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2297 2298_ASUNAME 2299 2300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2301for as_dir in $PATH 2302do 2303 IFS=$as_save_IFS 2304 test -z "$as_dir" && as_dir=. 2305 $as_echo "PATH: $as_dir" 2306 done 2307IFS=$as_save_IFS 2308 2309} >&5 2310 2311cat >&5 <<_ACEOF 2312 2313 2314## ----------- ## 2315## Core tests. ## 2316## ----------- ## 2317 2318_ACEOF 2319 2320 2321# Keep a trace of the command line. 2322# Strip out --no-create and --no-recursion so they do not pile up. 2323# Strip out --silent because we don't want to record it for future runs. 2324# Also quote any args containing shell meta-characters. 2325# Make two passes to allow for proper duplicate-argument suppression. 2326ac_configure_args= 2327ac_configure_args0= 2328ac_configure_args1= 2329ac_must_keep_next=false 2330for ac_pass in 1 2 2331do 2332 for ac_arg 2333 do 2334 case $ac_arg in 2335 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2337 | -silent | --silent | --silen | --sile | --sil) 2338 continue ;; 2339 *\'*) 2340 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2341 esac 2342 case $ac_pass in 2343 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2344 2) 2345 as_fn_append ac_configure_args1 " '$ac_arg'" 2346 if test $ac_must_keep_next = true; then 2347 ac_must_keep_next=false # Got value, back to normal. 2348 else 2349 case $ac_arg in 2350 *=* | --config-cache | -C | -disable-* | --disable-* \ 2351 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2352 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2353 | -with-* | --with-* | -without-* | --without-* | --x) 2354 case "$ac_configure_args0 " in 2355 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2356 esac 2357 ;; 2358 -* ) ac_must_keep_next=true ;; 2359 esac 2360 fi 2361 as_fn_append ac_configure_args " '$ac_arg'" 2362 ;; 2363 esac 2364 done 2365done 2366{ ac_configure_args0=; unset ac_configure_args0;} 2367{ ac_configure_args1=; unset ac_configure_args1;} 2368 2369# When interrupted or exit'd, cleanup temporary files, and complete 2370# config.log. We remove comments because anyway the quotes in there 2371# would cause problems or look ugly. 2372# WARNING: Use '\'' to represent an apostrophe within the trap. 2373# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2374trap 'exit_status=$? 2375 # Save into config.log some information that might help in debugging. 2376 { 2377 echo 2378 2379 $as_echo "## ---------------- ## 2380## Cache variables. ## 2381## ---------------- ##" 2382 echo 2383 # The following way of writing the cache mishandles newlines in values, 2384( 2385 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2386 eval ac_val=\$$ac_var 2387 case $ac_val in #( 2388 *${as_nl}*) 2389 case $ac_var in #( 2390 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2391$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2392 esac 2393 case $ac_var in #( 2394 _ | IFS | as_nl) ;; #( 2395 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2396 *) { eval $ac_var=; unset $ac_var;} ;; 2397 esac ;; 2398 esac 2399 done 2400 (set) 2>&1 | 2401 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2402 *${as_nl}ac_space=\ *) 2403 sed -n \ 2404 "s/'\''/'\''\\\\'\'''\''/g; 2405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2406 ;; #( 2407 *) 2408 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2409 ;; 2410 esac | 2411 sort 2412) 2413 echo 2414 2415 $as_echo "## ----------------- ## 2416## Output variables. ## 2417## ----------------- ##" 2418 echo 2419 for ac_var in $ac_subst_vars 2420 do 2421 eval ac_val=\$$ac_var 2422 case $ac_val in 2423 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2424 esac 2425 $as_echo "$ac_var='\''$ac_val'\''" 2426 done | sort 2427 echo 2428 2429 if test -n "$ac_subst_files"; then 2430 $as_echo "## ------------------- ## 2431## File substitutions. ## 2432## ------------------- ##" 2433 echo 2434 for ac_var in $ac_subst_files 2435 do 2436 eval ac_val=\$$ac_var 2437 case $ac_val in 2438 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2439 esac 2440 $as_echo "$ac_var='\''$ac_val'\''" 2441 done | sort 2442 echo 2443 fi 2444 2445 if test -s confdefs.h; then 2446 $as_echo "## ----------- ## 2447## confdefs.h. ## 2448## ----------- ##" 2449 echo 2450 cat confdefs.h 2451 echo 2452 fi 2453 test "$ac_signal" != 0 && 2454 $as_echo "$as_me: caught signal $ac_signal" 2455 $as_echo "$as_me: exit $exit_status" 2456 } >&5 2457 rm -f core *.core core.conftest.* && 2458 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2459 exit $exit_status 2460' 0 2461for ac_signal in 1 2 13 15; do 2462 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2463done 2464ac_signal=0 2465 2466# confdefs.h avoids OS command line length limits that DEFS can exceed. 2467rm -f -r conftest* confdefs.h 2468 2469$as_echo "/* confdefs.h */" > confdefs.h 2470 2471# Predefined preprocessor variables. 2472 2473cat >>confdefs.h <<_ACEOF 2474#define PACKAGE_NAME "$PACKAGE_NAME" 2475_ACEOF 2476 2477cat >>confdefs.h <<_ACEOF 2478#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2479_ACEOF 2480 2481cat >>confdefs.h <<_ACEOF 2482#define PACKAGE_VERSION "$PACKAGE_VERSION" 2483_ACEOF 2484 2485cat >>confdefs.h <<_ACEOF 2486#define PACKAGE_STRING "$PACKAGE_STRING" 2487_ACEOF 2488 2489cat >>confdefs.h <<_ACEOF 2490#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2491_ACEOF 2492 2493cat >>confdefs.h <<_ACEOF 2494#define PACKAGE_URL "$PACKAGE_URL" 2495_ACEOF 2496 2497 2498# Let the site file select an alternate cache file if it wants to. 2499# Prefer an explicitly selected file to automatically selected ones. 2500ac_site_file1=NONE 2501ac_site_file2=NONE 2502if test -n "$CONFIG_SITE"; then 2503 # We do not want a PATH search for config.site. 2504 case $CONFIG_SITE in #(( 2505 -*) ac_site_file1=./$CONFIG_SITE;; 2506 */*) ac_site_file1=$CONFIG_SITE;; 2507 *) ac_site_file1=./$CONFIG_SITE;; 2508 esac 2509elif test "x$prefix" != xNONE; then 2510 ac_site_file1=$prefix/share/config.site 2511 ac_site_file2=$prefix/etc/config.site 2512else 2513 ac_site_file1=$ac_default_prefix/share/config.site 2514 ac_site_file2=$ac_default_prefix/etc/config.site 2515fi 2516for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2517do 2518 test "x$ac_site_file" = xNONE && continue 2519 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2520 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2521$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2522 sed 's/^/| /' "$ac_site_file" >&5 2523 . "$ac_site_file" \ 2524 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2526as_fn_error $? "failed to load site script $ac_site_file 2527See \`config.log' for more details" "$LINENO" 5; } 2528 fi 2529done 2530 2531if test -r "$cache_file"; then 2532 # Some versions of bash will fail to source /dev/null (special files 2533 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2534 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2536$as_echo "$as_me: loading cache $cache_file" >&6;} 2537 case $cache_file in 2538 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2539 *) . "./$cache_file";; 2540 esac 2541 fi 2542else 2543 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2544$as_echo "$as_me: creating cache $cache_file" >&6;} 2545 >$cache_file 2546fi 2547 2548# Check that the precious variables saved in the cache have kept the same 2549# value. 2550ac_cache_corrupted=false 2551for ac_var in $ac_precious_vars; do 2552 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2553 eval ac_new_set=\$ac_env_${ac_var}_set 2554 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2555 eval ac_new_val=\$ac_env_${ac_var}_value 2556 case $ac_old_set,$ac_new_set in 2557 set,) 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2559$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2560 ac_cache_corrupted=: ;; 2561 ,set) 2562 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2563$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2564 ac_cache_corrupted=: ;; 2565 ,);; 2566 *) 2567 if test "x$ac_old_val" != "x$ac_new_val"; then 2568 # differences in whitespace do not lead to failure. 2569 ac_old_val_w=`echo x $ac_old_val` 2570 ac_new_val_w=`echo x $ac_new_val` 2571 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2572 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2573$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2574 ac_cache_corrupted=: 2575 else 2576 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2577$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2578 eval $ac_var=\$ac_old_val 2579 fi 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2581$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2582 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2583$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2584 fi;; 2585 esac 2586 # Pass precious variables to config.status. 2587 if test "$ac_new_set" = set; then 2588 case $ac_new_val in 2589 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2590 *) ac_arg=$ac_var=$ac_new_val ;; 2591 esac 2592 case " $ac_configure_args " in 2593 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2594 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2595 esac 2596 fi 2597done 2598if $ac_cache_corrupted; then 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2602$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2603 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2604fi 2605## -------------------- ## 2606## Main body of script. ## 2607## -------------------- ## 2608 2609ac_ext=c 2610ac_cpp='$CPP $CPPFLAGS' 2611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2613ac_compiler_gnu=$ac_cv_c_compiler_gnu 2614 2615 2616 2617 2618ac_config_headers="$ac_config_headers config.h" 2619 2620ac_aux_dir= 2621for ac_dir in config.aux "$srcdir"/config.aux; do 2622 if test -f "$ac_dir/install-sh"; then 2623 ac_aux_dir=$ac_dir 2624 ac_install_sh="$ac_aux_dir/install-sh -c" 2625 break 2626 elif test -f "$ac_dir/install.sh"; then 2627 ac_aux_dir=$ac_dir 2628 ac_install_sh="$ac_aux_dir/install.sh -c" 2629 break 2630 elif test -f "$ac_dir/shtool"; then 2631 ac_aux_dir=$ac_dir 2632 ac_install_sh="$ac_aux_dir/shtool install -c" 2633 break 2634 fi 2635done 2636if test -z "$ac_aux_dir"; then 2637 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config.aux \"$srcdir\"/config.aux" "$LINENO" 5 2638fi 2639 2640# These three variables are undocumented and unsupported, 2641# and are intended to be withdrawn in a future Autoconf release. 2642# They can cause serious problems if a builder's source tree is in a directory 2643# whose full name contains unusual characters. 2644ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2645ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2646ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2647 2648 2649 2650 2651# Make sure we can run config.sub. 2652$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2653 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2654 2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2656$as_echo_n "checking build system type... " >&6; } 2657if ${ac_cv_build+:} false; then : 2658 $as_echo_n "(cached) " >&6 2659else 2660 ac_build_alias=$build_alias 2661test "x$ac_build_alias" = x && 2662 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2663test "x$ac_build_alias" = x && 2664 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2665ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2666 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2667 2668fi 2669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2670$as_echo "$ac_cv_build" >&6; } 2671case $ac_cv_build in 2672*-*-*) ;; 2673*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2674esac 2675build=$ac_cv_build 2676ac_save_IFS=$IFS; IFS='-' 2677set x $ac_cv_build 2678shift 2679build_cpu=$1 2680build_vendor=$2 2681shift; shift 2682# Remember, the first character of IFS is used to create $*, 2683# except with old shells: 2684build_os=$* 2685IFS=$ac_save_IFS 2686case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2687 2688 2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2690$as_echo_n "checking host system type... " >&6; } 2691if ${ac_cv_host+:} false; then : 2692 $as_echo_n "(cached) " >&6 2693else 2694 if test "x$host_alias" = x; then 2695 ac_cv_host=$ac_cv_build 2696else 2697 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2698 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2699fi 2700 2701fi 2702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2703$as_echo "$ac_cv_host" >&6; } 2704case $ac_cv_host in 2705*-*-*) ;; 2706*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2707esac 2708host=$ac_cv_host 2709ac_save_IFS=$IFS; IFS='-' 2710set x $ac_cv_host 2711shift 2712host_cpu=$1 2713host_vendor=$2 2714shift; shift 2715# Remember, the first character of IFS is used to create $*, 2716# except with old shells: 2717host_os=$* 2718IFS=$ac_save_IFS 2719case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2720 2721 2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2723$as_echo_n "checking target system type... " >&6; } 2724if ${ac_cv_target+:} false; then : 2725 $as_echo_n "(cached) " >&6 2726else 2727 if test "x$target_alias" = x; then 2728 ac_cv_target=$ac_cv_host 2729else 2730 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2731 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2732fi 2733 2734fi 2735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2736$as_echo "$ac_cv_target" >&6; } 2737case $ac_cv_target in 2738*-*-*) ;; 2739*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2740esac 2741target=$ac_cv_target 2742ac_save_IFS=$IFS; IFS='-' 2743set x $ac_cv_target 2744shift 2745target_cpu=$1 2746target_vendor=$2 2747shift; shift 2748# Remember, the first character of IFS is used to create $*, 2749# except with old shells: 2750target_os=$* 2751IFS=$ac_save_IFS 2752case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2753 2754 2755# The aliases save the names the user supplied, while $host etc. 2756# will get canonicalized. 2757test -n "$target_alias" && 2758 test "$program_prefix$program_suffix$program_transform_name" = \ 2759 NONENONEs,x,x, && 2760 program_prefix=${target_alias}- 2761ac_ext=c 2762ac_cpp='$CPP $CPPFLAGS' 2763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2765ac_compiler_gnu=$ac_cv_c_compiler_gnu 2766if test -n "$ac_tool_prefix"; then 2767 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2768set dummy ${ac_tool_prefix}gcc; ac_word=$2 2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2770$as_echo_n "checking for $ac_word... " >&6; } 2771if ${ac_cv_prog_CC+:} false; then : 2772 $as_echo_n "(cached) " >&6 2773else 2774 if test -n "$CC"; then 2775 ac_cv_prog_CC="$CC" # Let the user override the test. 2776else 2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2778for as_dir in $PATH 2779do 2780 IFS=$as_save_IFS 2781 test -z "$as_dir" && as_dir=. 2782 for ac_exec_ext in '' $ac_executable_extensions; do 2783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2784 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2786 break 2 2787 fi 2788done 2789 done 2790IFS=$as_save_IFS 2791 2792fi 2793fi 2794CC=$ac_cv_prog_CC 2795if test -n "$CC"; then 2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2797$as_echo "$CC" >&6; } 2798else 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2800$as_echo "no" >&6; } 2801fi 2802 2803 2804fi 2805if test -z "$ac_cv_prog_CC"; then 2806 ac_ct_CC=$CC 2807 # Extract the first word of "gcc", so it can be a program name with args. 2808set dummy gcc; ac_word=$2 2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2810$as_echo_n "checking for $ac_word... " >&6; } 2811if ${ac_cv_prog_ac_ct_CC+:} false; then : 2812 $as_echo_n "(cached) " >&6 2813else 2814 if test -n "$ac_ct_CC"; then 2815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2816else 2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2818for as_dir in $PATH 2819do 2820 IFS=$as_save_IFS 2821 test -z "$as_dir" && as_dir=. 2822 for ac_exec_ext in '' $ac_executable_extensions; do 2823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2824 ac_cv_prog_ac_ct_CC="gcc" 2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2826 break 2 2827 fi 2828done 2829 done 2830IFS=$as_save_IFS 2831 2832fi 2833fi 2834ac_ct_CC=$ac_cv_prog_ac_ct_CC 2835if test -n "$ac_ct_CC"; then 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2837$as_echo "$ac_ct_CC" >&6; } 2838else 2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2840$as_echo "no" >&6; } 2841fi 2842 2843 if test "x$ac_ct_CC" = x; then 2844 CC="" 2845 else 2846 case $cross_compiling:$ac_tool_warned in 2847yes:) 2848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2850ac_tool_warned=yes ;; 2851esac 2852 CC=$ac_ct_CC 2853 fi 2854else 2855 CC="$ac_cv_prog_CC" 2856fi 2857 2858if test -z "$CC"; then 2859 if test -n "$ac_tool_prefix"; then 2860 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2861set dummy ${ac_tool_prefix}cc; ac_word=$2 2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2863$as_echo_n "checking for $ac_word... " >&6; } 2864if ${ac_cv_prog_CC+:} false; then : 2865 $as_echo_n "(cached) " >&6 2866else 2867 if test -n "$CC"; then 2868 ac_cv_prog_CC="$CC" # Let the user override the test. 2869else 2870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2871for as_dir in $PATH 2872do 2873 IFS=$as_save_IFS 2874 test -z "$as_dir" && as_dir=. 2875 for ac_exec_ext in '' $ac_executable_extensions; do 2876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2877 ac_cv_prog_CC="${ac_tool_prefix}cc" 2878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2879 break 2 2880 fi 2881done 2882 done 2883IFS=$as_save_IFS 2884 2885fi 2886fi 2887CC=$ac_cv_prog_CC 2888if test -n "$CC"; then 2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2890$as_echo "$CC" >&6; } 2891else 2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2893$as_echo "no" >&6; } 2894fi 2895 2896 2897 fi 2898fi 2899if test -z "$CC"; then 2900 # Extract the first word of "cc", so it can be a program name with args. 2901set dummy cc; ac_word=$2 2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2903$as_echo_n "checking for $ac_word... " >&6; } 2904if ${ac_cv_prog_CC+:} false; then : 2905 $as_echo_n "(cached) " >&6 2906else 2907 if test -n "$CC"; then 2908 ac_cv_prog_CC="$CC" # Let the user override the test. 2909else 2910 ac_prog_rejected=no 2911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2912for as_dir in $PATH 2913do 2914 IFS=$as_save_IFS 2915 test -z "$as_dir" && as_dir=. 2916 for ac_exec_ext in '' $ac_executable_extensions; do 2917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2918 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2919 ac_prog_rejected=yes 2920 continue 2921 fi 2922 ac_cv_prog_CC="cc" 2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2924 break 2 2925 fi 2926done 2927 done 2928IFS=$as_save_IFS 2929 2930if test $ac_prog_rejected = yes; then 2931 # We found a bogon in the path, so make sure we never use it. 2932 set dummy $ac_cv_prog_CC 2933 shift 2934 if test $# != 0; then 2935 # We chose a different compiler from the bogus one. 2936 # However, it has the same basename, so the bogon will be chosen 2937 # first if we set CC to just the basename; use the full file name. 2938 shift 2939 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2940 fi 2941fi 2942fi 2943fi 2944CC=$ac_cv_prog_CC 2945if test -n "$CC"; then 2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2947$as_echo "$CC" >&6; } 2948else 2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2950$as_echo "no" >&6; } 2951fi 2952 2953 2954fi 2955if test -z "$CC"; then 2956 if test -n "$ac_tool_prefix"; then 2957 for ac_prog in cl.exe 2958 do 2959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2960set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2962$as_echo_n "checking for $ac_word... " >&6; } 2963if ${ac_cv_prog_CC+:} false; then : 2964 $as_echo_n "(cached) " >&6 2965else 2966 if test -n "$CC"; then 2967 ac_cv_prog_CC="$CC" # Let the user override the test. 2968else 2969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2970for as_dir in $PATH 2971do 2972 IFS=$as_save_IFS 2973 test -z "$as_dir" && as_dir=. 2974 for ac_exec_ext in '' $ac_executable_extensions; do 2975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2976 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2978 break 2 2979 fi 2980done 2981 done 2982IFS=$as_save_IFS 2983 2984fi 2985fi 2986CC=$ac_cv_prog_CC 2987if test -n "$CC"; then 2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2989$as_echo "$CC" >&6; } 2990else 2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2992$as_echo "no" >&6; } 2993fi 2994 2995 2996 test -n "$CC" && break 2997 done 2998fi 2999if test -z "$CC"; then 3000 ac_ct_CC=$CC 3001 for ac_prog in cl.exe 3002do 3003 # Extract the first word of "$ac_prog", so it can be a program name with args. 3004set dummy $ac_prog; ac_word=$2 3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3006$as_echo_n "checking for $ac_word... " >&6; } 3007if ${ac_cv_prog_ac_ct_CC+:} false; then : 3008 $as_echo_n "(cached) " >&6 3009else 3010 if test -n "$ac_ct_CC"; then 3011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3012else 3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3014for as_dir in $PATH 3015do 3016 IFS=$as_save_IFS 3017 test -z "$as_dir" && as_dir=. 3018 for ac_exec_ext in '' $ac_executable_extensions; do 3019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3020 ac_cv_prog_ac_ct_CC="$ac_prog" 3021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3022 break 2 3023 fi 3024done 3025 done 3026IFS=$as_save_IFS 3027 3028fi 3029fi 3030ac_ct_CC=$ac_cv_prog_ac_ct_CC 3031if test -n "$ac_ct_CC"; then 3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3033$as_echo "$ac_ct_CC" >&6; } 3034else 3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3036$as_echo "no" >&6; } 3037fi 3038 3039 3040 test -n "$ac_ct_CC" && break 3041done 3042 3043 if test "x$ac_ct_CC" = x; then 3044 CC="" 3045 else 3046 case $cross_compiling:$ac_tool_warned in 3047yes:) 3048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3050ac_tool_warned=yes ;; 3051esac 3052 CC=$ac_ct_CC 3053 fi 3054fi 3055 3056fi 3057 3058 3059test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3060$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3061as_fn_error $? "no acceptable C compiler found in \$PATH 3062See \`config.log' for more details" "$LINENO" 5; } 3063 3064# Provide some information about the compiler. 3065$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3066set X $ac_compile 3067ac_compiler=$2 3068for ac_option in --version -v -V -qversion; do 3069 { { ac_try="$ac_compiler $ac_option >&5" 3070case "(($ac_try" in 3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3072 *) ac_try_echo=$ac_try;; 3073esac 3074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3075$as_echo "$ac_try_echo"; } >&5 3076 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3077 ac_status=$? 3078 if test -s conftest.err; then 3079 sed '10a\ 3080... rest of stderr output deleted ... 3081 10q' conftest.err >conftest.er1 3082 cat conftest.er1 >&5 3083 fi 3084 rm -f conftest.er1 conftest.err 3085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3086 test $ac_status = 0; } 3087done 3088 3089cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3090/* end confdefs.h. */ 3091 3092int 3093main () 3094{ 3095 3096 ; 3097 return 0; 3098} 3099_ACEOF 3100ac_clean_files_save=$ac_clean_files 3101ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3102# Try to create an executable without -o first, disregard a.out. 3103# It will help us diagnose broken compilers, and finding out an intuition 3104# of exeext. 3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3106$as_echo_n "checking whether the C compiler works... " >&6; } 3107ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3108 3109# The possible output files: 3110ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3111 3112ac_rmfiles= 3113for ac_file in $ac_files 3114do 3115 case $ac_file in 3116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3117 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3118 esac 3119done 3120rm -f $ac_rmfiles 3121 3122if { { ac_try="$ac_link_default" 3123case "(($ac_try" in 3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3125 *) ac_try_echo=$ac_try;; 3126esac 3127eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3128$as_echo "$ac_try_echo"; } >&5 3129 (eval "$ac_link_default") 2>&5 3130 ac_status=$? 3131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3132 test $ac_status = 0; }; then : 3133 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3134# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3135# in a Makefile. We should not override ac_cv_exeext if it was cached, 3136# so that the user can short-circuit this test for compilers unknown to 3137# Autoconf. 3138for ac_file in $ac_files '' 3139do 3140 test -f "$ac_file" || continue 3141 case $ac_file in 3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3143 ;; 3144 [ab].out ) 3145 # We found the default executable, but exeext='' is most 3146 # certainly right. 3147 break;; 3148 *.* ) 3149 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3150 then :; else 3151 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3152 fi 3153 # We set ac_cv_exeext here because the later test for it is not 3154 # safe: cross compilers may not add the suffix if given an `-o' 3155 # argument, so we may need to know it at that point already. 3156 # Even if this section looks crufty: it has the advantage of 3157 # actually working. 3158 break;; 3159 * ) 3160 break;; 3161 esac 3162done 3163test "$ac_cv_exeext" = no && ac_cv_exeext= 3164 3165else 3166 ac_file='' 3167fi 3168if test -z "$ac_file"; then : 3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3170$as_echo "no" >&6; } 3171$as_echo "$as_me: failed program was:" >&5 3172sed 's/^/| /' conftest.$ac_ext >&5 3173 3174{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3176as_fn_error 77 "C compiler cannot create executables 3177See \`config.log' for more details" "$LINENO" 5; } 3178else 3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3180$as_echo "yes" >&6; } 3181fi 3182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3183$as_echo_n "checking for C compiler default output file name... " >&6; } 3184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3185$as_echo "$ac_file" >&6; } 3186ac_exeext=$ac_cv_exeext 3187 3188rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3189ac_clean_files=$ac_clean_files_save 3190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3191$as_echo_n "checking for suffix of executables... " >&6; } 3192if { { ac_try="$ac_link" 3193case "(($ac_try" in 3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3195 *) ac_try_echo=$ac_try;; 3196esac 3197eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3198$as_echo "$ac_try_echo"; } >&5 3199 (eval "$ac_link") 2>&5 3200 ac_status=$? 3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3202 test $ac_status = 0; }; then : 3203 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3204# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3205# work properly (i.e., refer to `conftest.exe'), while it won't with 3206# `rm'. 3207for ac_file in conftest.exe conftest conftest.*; do 3208 test -f "$ac_file" || continue 3209 case $ac_file in 3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3211 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3212 break;; 3213 * ) break;; 3214 esac 3215done 3216else 3217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3219as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3220See \`config.log' for more details" "$LINENO" 5; } 3221fi 3222rm -f conftest conftest$ac_cv_exeext 3223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3224$as_echo "$ac_cv_exeext" >&6; } 3225 3226rm -f conftest.$ac_ext 3227EXEEXT=$ac_cv_exeext 3228ac_exeext=$EXEEXT 3229cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3230/* end confdefs.h. */ 3231#include <stdio.h> 3232int 3233main () 3234{ 3235FILE *f = fopen ("conftest.out", "w"); 3236 return ferror (f) || fclose (f) != 0; 3237 3238 ; 3239 return 0; 3240} 3241_ACEOF 3242ac_clean_files="$ac_clean_files conftest.out" 3243# Check that the compiler produces executables we can run. If not, either 3244# the compiler is broken, or we cross compile. 3245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3246$as_echo_n "checking whether we are cross compiling... " >&6; } 3247if test "$cross_compiling" != yes; then 3248 { { ac_try="$ac_link" 3249case "(($ac_try" in 3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3251 *) ac_try_echo=$ac_try;; 3252esac 3253eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3254$as_echo "$ac_try_echo"; } >&5 3255 (eval "$ac_link") 2>&5 3256 ac_status=$? 3257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3258 test $ac_status = 0; } 3259 if { ac_try='./conftest$ac_cv_exeext' 3260 { { case "(($ac_try" in 3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3262 *) ac_try_echo=$ac_try;; 3263esac 3264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3265$as_echo "$ac_try_echo"; } >&5 3266 (eval "$ac_try") 2>&5 3267 ac_status=$? 3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3269 test $ac_status = 0; }; }; then 3270 cross_compiling=no 3271 else 3272 if test "$cross_compiling" = maybe; then 3273 cross_compiling=yes 3274 else 3275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3277as_fn_error $? "cannot run C compiled programs. 3278If you meant to cross compile, use \`--host'. 3279See \`config.log' for more details" "$LINENO" 5; } 3280 fi 3281 fi 3282fi 3283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3284$as_echo "$cross_compiling" >&6; } 3285 3286rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3287ac_clean_files=$ac_clean_files_save 3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3289$as_echo_n "checking for suffix of object files... " >&6; } 3290if ${ac_cv_objext+:} false; then : 3291 $as_echo_n "(cached) " >&6 3292else 3293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3294/* end confdefs.h. */ 3295 3296int 3297main () 3298{ 3299 3300 ; 3301 return 0; 3302} 3303_ACEOF 3304rm -f conftest.o conftest.obj 3305if { { ac_try="$ac_compile" 3306case "(($ac_try" in 3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3308 *) ac_try_echo=$ac_try;; 3309esac 3310eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3311$as_echo "$ac_try_echo"; } >&5 3312 (eval "$ac_compile") 2>&5 3313 ac_status=$? 3314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3315 test $ac_status = 0; }; then : 3316 for ac_file in conftest.o conftest.obj conftest.*; do 3317 test -f "$ac_file" || continue; 3318 case $ac_file in 3319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3320 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3321 break;; 3322 esac 3323done 3324else 3325 $as_echo "$as_me: failed program was:" >&5 3326sed 's/^/| /' conftest.$ac_ext >&5 3327 3328{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3330as_fn_error $? "cannot compute suffix of object files: cannot compile 3331See \`config.log' for more details" "$LINENO" 5; } 3332fi 3333rm -f conftest.$ac_cv_objext conftest.$ac_ext 3334fi 3335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3336$as_echo "$ac_cv_objext" >&6; } 3337OBJEXT=$ac_cv_objext 3338ac_objext=$OBJEXT 3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3340$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3341if ${ac_cv_c_compiler_gnu+:} false; then : 3342 $as_echo_n "(cached) " >&6 3343else 3344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3345/* end confdefs.h. */ 3346 3347int 3348main () 3349{ 3350#ifndef __GNUC__ 3351 choke me 3352#endif 3353 3354 ; 3355 return 0; 3356} 3357_ACEOF 3358if ac_fn_c_try_compile "$LINENO"; then : 3359 ac_compiler_gnu=yes 3360else 3361 ac_compiler_gnu=no 3362fi 3363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3364ac_cv_c_compiler_gnu=$ac_compiler_gnu 3365 3366fi 3367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3368$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3369if test $ac_compiler_gnu = yes; then 3370 GCC=yes 3371else 3372 GCC= 3373fi 3374ac_test_CFLAGS=${CFLAGS+set} 3375ac_save_CFLAGS=$CFLAGS 3376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3377$as_echo_n "checking whether $CC accepts -g... " >&6; } 3378if ${ac_cv_prog_cc_g+:} false; then : 3379 $as_echo_n "(cached) " >&6 3380else 3381 ac_save_c_werror_flag=$ac_c_werror_flag 3382 ac_c_werror_flag=yes 3383 ac_cv_prog_cc_g=no 3384 CFLAGS="-g" 3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3386/* end confdefs.h. */ 3387 3388int 3389main () 3390{ 3391 3392 ; 3393 return 0; 3394} 3395_ACEOF 3396if ac_fn_c_try_compile "$LINENO"; then : 3397 ac_cv_prog_cc_g=yes 3398else 3399 CFLAGS="" 3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3401/* end confdefs.h. */ 3402 3403int 3404main () 3405{ 3406 3407 ; 3408 return 0; 3409} 3410_ACEOF 3411if ac_fn_c_try_compile "$LINENO"; then : 3412 3413else 3414 ac_c_werror_flag=$ac_save_c_werror_flag 3415 CFLAGS="-g" 3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3417/* end confdefs.h. */ 3418 3419int 3420main () 3421{ 3422 3423 ; 3424 return 0; 3425} 3426_ACEOF 3427if ac_fn_c_try_compile "$LINENO"; then : 3428 ac_cv_prog_cc_g=yes 3429fi 3430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3431fi 3432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3433fi 3434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3435 ac_c_werror_flag=$ac_save_c_werror_flag 3436fi 3437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3438$as_echo "$ac_cv_prog_cc_g" >&6; } 3439if test "$ac_test_CFLAGS" = set; then 3440 CFLAGS=$ac_save_CFLAGS 3441elif test $ac_cv_prog_cc_g = yes; then 3442 if test "$GCC" = yes; then 3443 CFLAGS="-g -O2" 3444 else 3445 CFLAGS="-g" 3446 fi 3447else 3448 if test "$GCC" = yes; then 3449 CFLAGS="-O2" 3450 else 3451 CFLAGS= 3452 fi 3453fi 3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3455$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3456if ${ac_cv_prog_cc_c89+:} false; then : 3457 $as_echo_n "(cached) " >&6 3458else 3459 ac_cv_prog_cc_c89=no 3460ac_save_CC=$CC 3461cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3462/* end confdefs.h. */ 3463#include <stdarg.h> 3464#include <stdio.h> 3465struct stat; 3466/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3467struct buf { int x; }; 3468FILE * (*rcsopen) (struct buf *, struct stat *, int); 3469static char *e (p, i) 3470 char **p; 3471 int i; 3472{ 3473 return p[i]; 3474} 3475static char *f (char * (*g) (char **, int), char **p, ...) 3476{ 3477 char *s; 3478 va_list v; 3479 va_start (v,p); 3480 s = g (p, va_arg (v,int)); 3481 va_end (v); 3482 return s; 3483} 3484 3485/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3486 function prototypes and stuff, but not '\xHH' hex character constants. 3487 These don't provoke an error unfortunately, instead are silently treated 3488 as 'x'. The following induces an error, until -std is added to get 3489 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3490 array size at least. It's necessary to write '\x00'==0 to get something 3491 that's true only with -std. */ 3492int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3493 3494/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3495 inside strings and character constants. */ 3496#define FOO(x) 'x' 3497int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3498 3499int test (int i, double x); 3500struct s1 {int (*f) (int a);}; 3501struct s2 {int (*f) (double a);}; 3502int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3503int argc; 3504char **argv; 3505int 3506main () 3507{ 3508return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3509 ; 3510 return 0; 3511} 3512_ACEOF 3513for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3514 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3515do 3516 CC="$ac_save_CC $ac_arg" 3517 if ac_fn_c_try_compile "$LINENO"; then : 3518 ac_cv_prog_cc_c89=$ac_arg 3519fi 3520rm -f core conftest.err conftest.$ac_objext 3521 test "x$ac_cv_prog_cc_c89" != "xno" && break 3522done 3523rm -f conftest.$ac_ext 3524CC=$ac_save_CC 3525 3526fi 3527# AC_CACHE_VAL 3528case "x$ac_cv_prog_cc_c89" in 3529 x) 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3531$as_echo "none needed" >&6; } ;; 3532 xno) 3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3534$as_echo "unsupported" >&6; } ;; 3535 *) 3536 CC="$CC $ac_cv_prog_cc_c89" 3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3538$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3539esac 3540if test "x$ac_cv_prog_cc_c89" != xno; then : 3541 3542fi 3543 3544ac_ext=c 3545ac_cpp='$CPP $CPPFLAGS' 3546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3548ac_compiler_gnu=$ac_cv_c_compiler_gnu 3549 3550 3551ac_ext=c 3552ac_cpp='$CPP $CPPFLAGS' 3553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3555ac_compiler_gnu=$ac_cv_c_compiler_gnu 3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3557$as_echo_n "checking how to run the C preprocessor... " >&6; } 3558# On Suns, sometimes $CPP names a directory. 3559if test -n "$CPP" && test -d "$CPP"; then 3560 CPP= 3561fi 3562if test -z "$CPP"; then 3563 if ${ac_cv_prog_CPP+:} false; then : 3564 $as_echo_n "(cached) " >&6 3565else 3566 # Double quotes because CPP needs to be expanded 3567 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3568 do 3569 ac_preproc_ok=false 3570for ac_c_preproc_warn_flag in '' yes 3571do 3572 # Use a header file that comes with gcc, so configuring glibc 3573 # with a fresh cross-compiler works. 3574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3575 # <limits.h> exists even on freestanding compilers. 3576 # On the NeXT, cc -E runs the code through the compiler's parser, 3577 # not just through cpp. "Syntax error" is here to catch this case. 3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3579/* end confdefs.h. */ 3580#ifdef __STDC__ 3581# include <limits.h> 3582#else 3583# include <assert.h> 3584#endif 3585 Syntax error 3586_ACEOF 3587if ac_fn_c_try_cpp "$LINENO"; then : 3588 3589else 3590 # Broken: fails on valid input. 3591continue 3592fi 3593rm -f conftest.err conftest.i conftest.$ac_ext 3594 3595 # OK, works on sane cases. Now check whether nonexistent headers 3596 # can be detected and how. 3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3598/* end confdefs.h. */ 3599#include <ac_nonexistent.h> 3600_ACEOF 3601if ac_fn_c_try_cpp "$LINENO"; then : 3602 # Broken: success on invalid input. 3603continue 3604else 3605 # Passes both tests. 3606ac_preproc_ok=: 3607break 3608fi 3609rm -f conftest.err conftest.i conftest.$ac_ext 3610 3611done 3612# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3613rm -f conftest.i conftest.err conftest.$ac_ext 3614if $ac_preproc_ok; then : 3615 break 3616fi 3617 3618 done 3619 ac_cv_prog_CPP=$CPP 3620 3621fi 3622 CPP=$ac_cv_prog_CPP 3623else 3624 ac_cv_prog_CPP=$CPP 3625fi 3626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3627$as_echo "$CPP" >&6; } 3628ac_preproc_ok=false 3629for ac_c_preproc_warn_flag in '' yes 3630do 3631 # Use a header file that comes with gcc, so configuring glibc 3632 # with a fresh cross-compiler works. 3633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3634 # <limits.h> exists even on freestanding compilers. 3635 # On the NeXT, cc -E runs the code through the compiler's parser, 3636 # not just through cpp. "Syntax error" is here to catch this case. 3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3638/* end confdefs.h. */ 3639#ifdef __STDC__ 3640# include <limits.h> 3641#else 3642# include <assert.h> 3643#endif 3644 Syntax error 3645_ACEOF 3646if ac_fn_c_try_cpp "$LINENO"; then : 3647 3648else 3649 # Broken: fails on valid input. 3650continue 3651fi 3652rm -f conftest.err conftest.i conftest.$ac_ext 3653 3654 # OK, works on sane cases. Now check whether nonexistent headers 3655 # can be detected and how. 3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3657/* end confdefs.h. */ 3658#include <ac_nonexistent.h> 3659_ACEOF 3660if ac_fn_c_try_cpp "$LINENO"; then : 3661 # Broken: success on invalid input. 3662continue 3663else 3664 # Passes both tests. 3665ac_preproc_ok=: 3666break 3667fi 3668rm -f conftest.err conftest.i conftest.$ac_ext 3669 3670done 3671# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3672rm -f conftest.i conftest.err conftest.$ac_ext 3673if $ac_preproc_ok; then : 3674 3675else 3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3678as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3679See \`config.log' for more details" "$LINENO" 5; } 3680fi 3681 3682ac_ext=c 3683ac_cpp='$CPP $CPPFLAGS' 3684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3686ac_compiler_gnu=$ac_cv_c_compiler_gnu 3687 3688 3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3690$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3691if ${ac_cv_path_GREP+:} false; then : 3692 $as_echo_n "(cached) " >&6 3693else 3694 if test -z "$GREP"; then 3695 ac_path_GREP_found=false 3696 # Loop through the user's path and test for each of PROGNAME-LIST 3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3698for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3699do 3700 IFS=$as_save_IFS 3701 test -z "$as_dir" && as_dir=. 3702 for ac_prog in grep ggrep; do 3703 for ac_exec_ext in '' $ac_executable_extensions; do 3704 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3705 as_fn_executable_p "$ac_path_GREP" || continue 3706# Check for GNU ac_path_GREP and select it if it is found. 3707 # Check for GNU $ac_path_GREP 3708case `"$ac_path_GREP" --version 2>&1` in 3709*GNU*) 3710 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3711*) 3712 ac_count=0 3713 $as_echo_n 0123456789 >"conftest.in" 3714 while : 3715 do 3716 cat "conftest.in" "conftest.in" >"conftest.tmp" 3717 mv "conftest.tmp" "conftest.in" 3718 cp "conftest.in" "conftest.nl" 3719 $as_echo 'GREP' >> "conftest.nl" 3720 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3721 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3722 as_fn_arith $ac_count + 1 && ac_count=$as_val 3723 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3724 # Best one so far, save it but keep looking for a better one 3725 ac_cv_path_GREP="$ac_path_GREP" 3726 ac_path_GREP_max=$ac_count 3727 fi 3728 # 10*(2^10) chars as input seems more than enough 3729 test $ac_count -gt 10 && break 3730 done 3731 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3732esac 3733 3734 $ac_path_GREP_found && break 3 3735 done 3736 done 3737 done 3738IFS=$as_save_IFS 3739 if test -z "$ac_cv_path_GREP"; then 3740 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3741 fi 3742else 3743 ac_cv_path_GREP=$GREP 3744fi 3745 3746fi 3747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3748$as_echo "$ac_cv_path_GREP" >&6; } 3749 GREP="$ac_cv_path_GREP" 3750 3751 3752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3753$as_echo_n "checking for egrep... " >&6; } 3754if ${ac_cv_path_EGREP+:} false; then : 3755 $as_echo_n "(cached) " >&6 3756else 3757 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3758 then ac_cv_path_EGREP="$GREP -E" 3759 else 3760 if test -z "$EGREP"; then 3761 ac_path_EGREP_found=false 3762 # Loop through the user's path and test for each of PROGNAME-LIST 3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3764for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3765do 3766 IFS=$as_save_IFS 3767 test -z "$as_dir" && as_dir=. 3768 for ac_prog in egrep; do 3769 for ac_exec_ext in '' $ac_executable_extensions; do 3770 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3771 as_fn_executable_p "$ac_path_EGREP" || continue 3772# Check for GNU ac_path_EGREP and select it if it is found. 3773 # Check for GNU $ac_path_EGREP 3774case `"$ac_path_EGREP" --version 2>&1` in 3775*GNU*) 3776 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3777*) 3778 ac_count=0 3779 $as_echo_n 0123456789 >"conftest.in" 3780 while : 3781 do 3782 cat "conftest.in" "conftest.in" >"conftest.tmp" 3783 mv "conftest.tmp" "conftest.in" 3784 cp "conftest.in" "conftest.nl" 3785 $as_echo 'EGREP' >> "conftest.nl" 3786 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3788 as_fn_arith $ac_count + 1 && ac_count=$as_val 3789 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3790 # Best one so far, save it but keep looking for a better one 3791 ac_cv_path_EGREP="$ac_path_EGREP" 3792 ac_path_EGREP_max=$ac_count 3793 fi 3794 # 10*(2^10) chars as input seems more than enough 3795 test $ac_count -gt 10 && break 3796 done 3797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3798esac 3799 3800 $ac_path_EGREP_found && break 3 3801 done 3802 done 3803 done 3804IFS=$as_save_IFS 3805 if test -z "$ac_cv_path_EGREP"; then 3806 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3807 fi 3808else 3809 ac_cv_path_EGREP=$EGREP 3810fi 3811 3812 fi 3813fi 3814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3815$as_echo "$ac_cv_path_EGREP" >&6; } 3816 EGREP="$ac_cv_path_EGREP" 3817 3818 3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3820$as_echo_n "checking for ANSI C header files... " >&6; } 3821if ${ac_cv_header_stdc+:} false; then : 3822 $as_echo_n "(cached) " >&6 3823else 3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3825/* end confdefs.h. */ 3826#include <stdlib.h> 3827#include <stdarg.h> 3828#include <string.h> 3829#include <float.h> 3830 3831int 3832main () 3833{ 3834 3835 ; 3836 return 0; 3837} 3838_ACEOF 3839if ac_fn_c_try_compile "$LINENO"; then : 3840 ac_cv_header_stdc=yes 3841else 3842 ac_cv_header_stdc=no 3843fi 3844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3845 3846if test $ac_cv_header_stdc = yes; then 3847 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3849/* end confdefs.h. */ 3850#include <string.h> 3851 3852_ACEOF 3853if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3854 $EGREP "memchr" >/dev/null 2>&1; then : 3855 3856else 3857 ac_cv_header_stdc=no 3858fi 3859rm -f conftest* 3860 3861fi 3862 3863if test $ac_cv_header_stdc = yes; then 3864 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3866/* end confdefs.h. */ 3867#include <stdlib.h> 3868 3869_ACEOF 3870if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3871 $EGREP "free" >/dev/null 2>&1; then : 3872 3873else 3874 ac_cv_header_stdc=no 3875fi 3876rm -f conftest* 3877 3878fi 3879 3880if test $ac_cv_header_stdc = yes; then 3881 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3882 if test "$cross_compiling" = yes; then : 3883 : 3884else 3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3886/* end confdefs.h. */ 3887#include <ctype.h> 3888#include <stdlib.h> 3889#if ((' ' & 0x0FF) == 0x020) 3890# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3891# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3892#else 3893# define ISLOWER(c) \ 3894 (('a' <= (c) && (c) <= 'i') \ 3895 || ('j' <= (c) && (c) <= 'r') \ 3896 || ('s' <= (c) && (c) <= 'z')) 3897# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3898#endif 3899 3900#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3901int 3902main () 3903{ 3904 int i; 3905 for (i = 0; i < 256; i++) 3906 if (XOR (islower (i), ISLOWER (i)) 3907 || toupper (i) != TOUPPER (i)) 3908 return 2; 3909 return 0; 3910} 3911_ACEOF 3912if ac_fn_c_try_run "$LINENO"; then : 3913 3914else 3915 ac_cv_header_stdc=no 3916fi 3917rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3918 conftest.$ac_objext conftest.beam conftest.$ac_ext 3919fi 3920 3921fi 3922fi 3923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3924$as_echo "$ac_cv_header_stdc" >&6; } 3925if test $ac_cv_header_stdc = yes; then 3926 3927$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3928 3929fi 3930 3931# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3932for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3933 inttypes.h stdint.h unistd.h 3934do : 3935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3936ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3937" 3938if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3939 cat >>confdefs.h <<_ACEOF 3940#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3941_ACEOF 3942 3943fi 3944 3945done 3946 3947 3948 3949 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3950if test "x$ac_cv_header_minix_config_h" = xyes; then : 3951 MINIX=yes 3952else 3953 MINIX= 3954fi 3955 3956 3957 if test "$MINIX" = yes; then 3958 3959$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3960 3961 3962$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3963 3964 3965$as_echo "#define _MINIX 1" >>confdefs.h 3966 3967 fi 3968 3969 3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3971$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3972if ${ac_cv_safe_to_define___extensions__+:} false; then : 3973 $as_echo_n "(cached) " >&6 3974else 3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3976/* end confdefs.h. */ 3977 3978# define __EXTENSIONS__ 1 3979 $ac_includes_default 3980int 3981main () 3982{ 3983 3984 ; 3985 return 0; 3986} 3987_ACEOF 3988if ac_fn_c_try_compile "$LINENO"; then : 3989 ac_cv_safe_to_define___extensions__=yes 3990else 3991 ac_cv_safe_to_define___extensions__=no 3992fi 3993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3994fi 3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3996$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3997 test $ac_cv_safe_to_define___extensions__ = yes && 3998 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3999 4000 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4001 4002 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4003 4004 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4005 4006 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4007 4008 4009 4010 4011cat >>confdefs.h <<_ACEOF 4012#define CANONICAL_TARGET "$target" 4013_ACEOF 4014 4015 4016cat >>confdefs.h <<_ACEOF 4017#define CANONICAL_HOST "$host" 4018_ACEOF 4019 4020 4021am__api_version='1.11' 4022 4023# Find a good install program. We prefer a C program (faster), 4024# so one script is as good as another. But avoid the broken or 4025# incompatible versions: 4026# SysV /etc/install, /usr/sbin/install 4027# SunOS /usr/etc/install 4028# IRIX /sbin/install 4029# AIX /bin/install 4030# AmigaOS /C/install, which installs bootblocks on floppy discs 4031# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4032# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4033# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4034# OS/2's system install, which has a completely different semantic 4035# ./install, which can be erroneously created by make from ./install.sh. 4036# Reject install programs that cannot install multiple files. 4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4038$as_echo_n "checking for a BSD-compatible install... " >&6; } 4039if test -z "$INSTALL"; then 4040if ${ac_cv_path_install+:} false; then : 4041 $as_echo_n "(cached) " >&6 4042else 4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4044for as_dir in $PATH 4045do 4046 IFS=$as_save_IFS 4047 test -z "$as_dir" && as_dir=. 4048 # Account for people who put trailing slashes in PATH elements. 4049case $as_dir/ in #(( 4050 ./ | .// | /[cC]/* | \ 4051 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4052 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4053 /usr/ucb/* ) ;; 4054 *) 4055 # OSF1 and SCO ODT 3.0 have their own names for install. 4056 # Don't use installbsd from OSF since it installs stuff as root 4057 # by default. 4058 for ac_prog in ginstall scoinst install; do 4059 for ac_exec_ext in '' $ac_executable_extensions; do 4060 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4061 if test $ac_prog = install && 4062 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4063 # AIX install. It has an incompatible calling convention. 4064 : 4065 elif test $ac_prog = install && 4066 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4067 # program-specific install script used by HP pwplus--don't use. 4068 : 4069 else 4070 rm -rf conftest.one conftest.two conftest.dir 4071 echo one > conftest.one 4072 echo two > conftest.two 4073 mkdir conftest.dir 4074 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4075 test -s conftest.one && test -s conftest.two && 4076 test -s conftest.dir/conftest.one && 4077 test -s conftest.dir/conftest.two 4078 then 4079 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4080 break 3 4081 fi 4082 fi 4083 fi 4084 done 4085 done 4086 ;; 4087esac 4088 4089 done 4090IFS=$as_save_IFS 4091 4092rm -rf conftest.one conftest.two conftest.dir 4093 4094fi 4095 if test "${ac_cv_path_install+set}" = set; then 4096 INSTALL=$ac_cv_path_install 4097 else 4098 # As a last resort, use the slow shell script. Don't cache a 4099 # value for INSTALL within a source directory, because that will 4100 # break other packages using the cache if that directory is 4101 # removed, or if the value is a relative name. 4102 INSTALL=$ac_install_sh 4103 fi 4104fi 4105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4106$as_echo "$INSTALL" >&6; } 4107 4108# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4109# It thinks the first close brace ends the variable substitution. 4110test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4111 4112test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4113 4114test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4115 4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4117$as_echo_n "checking whether build environment is sane... " >&6; } 4118# Just in case 4119sleep 1 4120echo timestamp > conftest.file 4121# Reject unsafe characters in $srcdir or the absolute working directory 4122# name. Accept space and tab only in the latter. 4123am_lf=' 4124' 4125case `pwd` in 4126 *[\\\"\#\$\&\'\`$am_lf]*) 4127 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4128esac 4129case $srcdir in 4130 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4131 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 4132esac 4133 4134# Do `set' in a subshell so we don't clobber the current shell's 4135# arguments. Must try -L first in case configure is actually a 4136# symlink; some systems play weird games with the mod time of symlinks 4137# (eg FreeBSD returns the mod time of the symlink's containing 4138# directory). 4139if ( 4140 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4141 if test "$*" = "X"; then 4142 # -L didn't work. 4143 set X `ls -t "$srcdir/configure" conftest.file` 4144 fi 4145 rm -f conftest.file 4146 if test "$*" != "X $srcdir/configure conftest.file" \ 4147 && test "$*" != "X conftest.file $srcdir/configure"; then 4148 4149 # If neither matched, then we have a broken ls. This can happen 4150 # if, for instance, CONFIG_SHELL is bash and it inherits a 4151 # broken ls alias from the environment. This has actually 4152 # happened. Such a system could not be considered "sane". 4153 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4154alias in your environment" "$LINENO" 5 4155 fi 4156 4157 test "$2" = conftest.file 4158 ) 4159then 4160 # Ok. 4161 : 4162else 4163 as_fn_error $? "newly created file is older than distributed files! 4164Check your system clock" "$LINENO" 5 4165fi 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4167$as_echo "yes" >&6; } 4168test "$program_prefix" != NONE && 4169 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4170# Use a double $ so make ignores it. 4171test "$program_suffix" != NONE && 4172 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4173# Double any \ or $. 4174# By default was `s,x,x', remove it if useless. 4175ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4176program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4177 4178# expand $ac_aux_dir to an absolute path 4179am_aux_dir=`cd $ac_aux_dir && pwd` 4180 4181if test x"${MISSING+set}" != xset; then 4182 case $am_aux_dir in 4183 *\ * | *\ *) 4184 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4185 *) 4186 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4187 esac 4188fi 4189# Use eval to expand $SHELL 4190if eval "$MISSING --run true"; then 4191 am_missing_run="$MISSING --run " 4192else 4193 am_missing_run= 4194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 4195$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 4196fi 4197 4198if test x"${install_sh}" != xset; then 4199 case $am_aux_dir in 4200 *\ * | *\ *) 4201 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4202 *) 4203 install_sh="\${SHELL} $am_aux_dir/install-sh" 4204 esac 4205fi 4206 4207# Installed binaries are usually stripped using `strip' when the user 4208# run `make install-strip'. However `strip' might not be the right 4209# tool to use in cross-compilation environments, therefore Automake 4210# will honor the `STRIP' environment variable to overrule this program. 4211if test "$cross_compiling" != no; then 4212 if test -n "$ac_tool_prefix"; then 4213 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4214set dummy ${ac_tool_prefix}strip; ac_word=$2 4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4216$as_echo_n "checking for $ac_word... " >&6; } 4217if ${ac_cv_prog_STRIP+:} false; then : 4218 $as_echo_n "(cached) " >&6 4219else 4220 if test -n "$STRIP"; then 4221 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4222else 4223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4224for as_dir in $PATH 4225do 4226 IFS=$as_save_IFS 4227 test -z "$as_dir" && as_dir=. 4228 for ac_exec_ext in '' $ac_executable_extensions; do 4229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4230 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4232 break 2 4233 fi 4234done 4235 done 4236IFS=$as_save_IFS 4237 4238fi 4239fi 4240STRIP=$ac_cv_prog_STRIP 4241if test -n "$STRIP"; then 4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4243$as_echo "$STRIP" >&6; } 4244else 4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4246$as_echo "no" >&6; } 4247fi 4248 4249 4250fi 4251if test -z "$ac_cv_prog_STRIP"; then 4252 ac_ct_STRIP=$STRIP 4253 # Extract the first word of "strip", so it can be a program name with args. 4254set dummy strip; ac_word=$2 4255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4256$as_echo_n "checking for $ac_word... " >&6; } 4257if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4258 $as_echo_n "(cached) " >&6 4259else 4260 if test -n "$ac_ct_STRIP"; then 4261 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4262else 4263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4264for as_dir in $PATH 4265do 4266 IFS=$as_save_IFS 4267 test -z "$as_dir" && as_dir=. 4268 for ac_exec_ext in '' $ac_executable_extensions; do 4269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4270 ac_cv_prog_ac_ct_STRIP="strip" 4271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4272 break 2 4273 fi 4274done 4275 done 4276IFS=$as_save_IFS 4277 4278fi 4279fi 4280ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4281if test -n "$ac_ct_STRIP"; then 4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4283$as_echo "$ac_ct_STRIP" >&6; } 4284else 4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4286$as_echo "no" >&6; } 4287fi 4288 4289 if test "x$ac_ct_STRIP" = x; then 4290 STRIP=":" 4291 else 4292 case $cross_compiling:$ac_tool_warned in 4293yes:) 4294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4296ac_tool_warned=yes ;; 4297esac 4298 STRIP=$ac_ct_STRIP 4299 fi 4300else 4301 STRIP="$ac_cv_prog_STRIP" 4302fi 4303 4304fi 4305INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4306 4307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4308$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4309if test -z "$MKDIR_P"; then 4310 if ${ac_cv_path_mkdir+:} false; then : 4311 $as_echo_n "(cached) " >&6 4312else 4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4314for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4315do 4316 IFS=$as_save_IFS 4317 test -z "$as_dir" && as_dir=. 4318 for ac_prog in mkdir gmkdir; do 4319 for ac_exec_ext in '' $ac_executable_extensions; do 4320 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4321 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4322 'mkdir (GNU coreutils) '* | \ 4323 'mkdir (coreutils) '* | \ 4324 'mkdir (fileutils) '4.1*) 4325 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4326 break 3;; 4327 esac 4328 done 4329 done 4330 done 4331IFS=$as_save_IFS 4332 4333fi 4334 4335 test -d ./--version && rmdir ./--version 4336 if test "${ac_cv_path_mkdir+set}" = set; then 4337 MKDIR_P="$ac_cv_path_mkdir -p" 4338 else 4339 # As a last resort, use the slow shell script. Don't cache a 4340 # value for MKDIR_P within a source directory, because that will 4341 # break other packages using the cache if that directory is 4342 # removed, or if the value is a relative name. 4343 MKDIR_P="$ac_install_sh -d" 4344 fi 4345fi 4346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4347$as_echo "$MKDIR_P" >&6; } 4348 4349mkdir_p="$MKDIR_P" 4350case $mkdir_p in 4351 [\\/$]* | ?:[\\/]*) ;; 4352 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 4353esac 4354 4355for ac_prog in gawk mawk nawk awk 4356do 4357 # Extract the first word of "$ac_prog", so it can be a program name with args. 4358set dummy $ac_prog; ac_word=$2 4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4360$as_echo_n "checking for $ac_word... " >&6; } 4361if ${ac_cv_prog_AWK+:} false; then : 4362 $as_echo_n "(cached) " >&6 4363else 4364 if test -n "$AWK"; then 4365 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4366else 4367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4368for as_dir in $PATH 4369do 4370 IFS=$as_save_IFS 4371 test -z "$as_dir" && as_dir=. 4372 for ac_exec_ext in '' $ac_executable_extensions; do 4373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4374 ac_cv_prog_AWK="$ac_prog" 4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4376 break 2 4377 fi 4378done 4379 done 4380IFS=$as_save_IFS 4381 4382fi 4383fi 4384AWK=$ac_cv_prog_AWK 4385if test -n "$AWK"; then 4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4387$as_echo "$AWK" >&6; } 4388else 4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4390$as_echo "no" >&6; } 4391fi 4392 4393 4394 test -n "$AWK" && break 4395done 4396 4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4398$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4399set x ${MAKE-make} 4400ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4401if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4402 $as_echo_n "(cached) " >&6 4403else 4404 cat >conftest.make <<\_ACEOF 4405SHELL = /bin/sh 4406all: 4407 @echo '@@@%%%=$(MAKE)=@@@%%%' 4408_ACEOF 4409# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4410case `${MAKE-make} -f conftest.make 2>/dev/null` in 4411 *@@@%%%=?*=@@@%%%*) 4412 eval ac_cv_prog_make_${ac_make}_set=yes;; 4413 *) 4414 eval ac_cv_prog_make_${ac_make}_set=no;; 4415esac 4416rm -f conftest.make 4417fi 4418if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4420$as_echo "yes" >&6; } 4421 SET_MAKE= 4422else 4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4424$as_echo "no" >&6; } 4425 SET_MAKE="MAKE=${MAKE-make}" 4426fi 4427 4428rm -rf .tst 2>/dev/null 4429mkdir .tst 2>/dev/null 4430if test -d .tst; then 4431 am__leading_dot=. 4432else 4433 am__leading_dot=_ 4434fi 4435rmdir .tst 2>/dev/null 4436 4437DEPDIR="${am__leading_dot}deps" 4438 4439ac_config_commands="$ac_config_commands depfiles" 4440 4441 4442am_make=${MAKE-make} 4443cat > confinc << 'END' 4444am__doit: 4445 @echo this is the am__doit target 4446.PHONY: am__doit 4447END 4448# If we don't find an include directive, just comment out the code. 4449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4450$as_echo_n "checking for style of include used by $am_make... " >&6; } 4451am__include="#" 4452am__quote= 4453_am_result=none 4454# First try GNU make style include. 4455echo "include confinc" > confmf 4456# Ignore all kinds of additional output from `make'. 4457case `$am_make -s -f confmf 2> /dev/null` in #( 4458*the\ am__doit\ target*) 4459 am__include=include 4460 am__quote= 4461 _am_result=GNU 4462 ;; 4463esac 4464# Now try BSD make style include. 4465if test "$am__include" = "#"; then 4466 echo '.include "confinc"' > confmf 4467 case `$am_make -s -f confmf 2> /dev/null` in #( 4468 *the\ am__doit\ target*) 4469 am__include=.include 4470 am__quote="\"" 4471 _am_result=BSD 4472 ;; 4473 esac 4474fi 4475 4476 4477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4478$as_echo "$_am_result" >&6; } 4479rm -f confinc confmf 4480 4481# Check whether --enable-dependency-tracking was given. 4482if test "${enable_dependency_tracking+set}" = set; then : 4483 enableval=$enable_dependency_tracking; 4484fi 4485 4486if test "x$enable_dependency_tracking" != xno; then 4487 am_depcomp="$ac_aux_dir/depcomp" 4488 AMDEPBACKSLASH='\' 4489 am__nodep='_no' 4490fi 4491 if test "x$enable_dependency_tracking" != xno; then 4492 AMDEP_TRUE= 4493 AMDEP_FALSE='#' 4494else 4495 AMDEP_TRUE='#' 4496 AMDEP_FALSE= 4497fi 4498 4499 4500if test "`cd $srcdir && pwd`" != "`pwd`"; then 4501 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4502 # is not polluted with repeated "-I." 4503 am__isrc=' -I$(srcdir)' 4504 # test to see if srcdir already configured 4505 if test -f $srcdir/config.status; then 4506 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4507 fi 4508fi 4509 4510# test whether we have cygpath 4511if test -z "$CYGPATH_W"; then 4512 if (cygpath --version) >/dev/null 2>/dev/null; then 4513 CYGPATH_W='cygpath -w' 4514 else 4515 CYGPATH_W=echo 4516 fi 4517fi 4518 4519 4520# Define the identity of the package. 4521 PACKAGE='cclive' 4522 VERSION='0.7.16' 4523 4524 4525cat >>confdefs.h <<_ACEOF 4526#define PACKAGE "$PACKAGE" 4527_ACEOF 4528 4529 4530cat >>confdefs.h <<_ACEOF 4531#define VERSION "$VERSION" 4532_ACEOF 4533 4534# Some tools Automake needs. 4535 4536ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4537 4538 4539AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4540 4541 4542AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4543 4544 4545AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4546 4547 4548MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4549 4550# We need awk for the "check" target. The system "awk" is bad on 4551# some platforms. 4552# Always define AMTAR for backward compatibility. Yes, it's still used 4553# in the wild :-( We should find a proper way to deprecate it ... 4554AMTAR='$${TAR-tar}' 4555 4556 4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 4558$as_echo_n "checking how to create a ustar tar archive... " >&6; } 4559# Loop over all known methods to create a tar archive until one works. 4560_am_tools='gnutar plaintar pax cpio none' 4561_am_tools=${am_cv_prog_tar_ustar-$_am_tools} 4562# Do not fold the above two line into one, because Tru64 sh and 4563# Solaris sh will not grok spaces in the rhs of `-'. 4564for _am_tool in $_am_tools 4565do 4566 case $_am_tool in 4567 gnutar) 4568 for _am_tar in tar gnutar gtar; 4569 do 4570 { echo "$as_me:$LINENO: $_am_tar --version" >&5 4571 ($_am_tar --version) >&5 2>&5 4572 ac_status=$? 4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4574 (exit $ac_status); } && break 4575 done 4576 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 4577 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 4578 am__untar="$_am_tar -xf -" 4579 ;; 4580 plaintar) 4581 # Must skip GNU tar: if it does not support --format= it doesn't create 4582 # ustar tarball either. 4583 (tar --version) >/dev/null 2>&1 && continue 4584 am__tar='tar chf - "$$tardir"' 4585 am__tar_='tar chf - "$tardir"' 4586 am__untar='tar xf -' 4587 ;; 4588 pax) 4589 am__tar='pax -L -x ustar -w "$$tardir"' 4590 am__tar_='pax -L -x ustar -w "$tardir"' 4591 am__untar='pax -r' 4592 ;; 4593 cpio) 4594 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 4595 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 4596 am__untar='cpio -i -H ustar -d' 4597 ;; 4598 none) 4599 am__tar=false 4600 am__tar_=false 4601 am__untar=false 4602 ;; 4603 esac 4604 4605 # If the value was cached, stop now. We just wanted to have am__tar 4606 # and am__untar set. 4607 test -n "${am_cv_prog_tar_ustar}" && break 4608 4609 # tar/untar a dummy directory, and stop if the command works 4610 rm -rf conftest.dir 4611 mkdir conftest.dir 4612 echo GrepMe > conftest.dir/file 4613 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 4614 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 4615 ac_status=$? 4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4617 (exit $ac_status); } 4618 rm -rf conftest.dir 4619 if test -s conftest.tar; then 4620 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 4621 ($am__untar <conftest.tar) >&5 2>&5 4622 ac_status=$? 4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4624 (exit $ac_status); } 4625 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 4626 fi 4627done 4628rm -rf conftest.dir 4629 4630if ${am_cv_prog_tar_ustar+:} false; then : 4631 $as_echo_n "(cached) " >&6 4632else 4633 am_cv_prog_tar_ustar=$_am_tool 4634fi 4635 4636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 4637$as_echo "$am_cv_prog_tar_ustar" >&6; } 4638 4639 4640 4641 4642depcc="$CC" am_compiler_list= 4643 4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4645$as_echo_n "checking dependency style of $depcc... " >&6; } 4646if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4647 $as_echo_n "(cached) " >&6 4648else 4649 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4650 # We make a subdir and do the tests there. Otherwise we can end up 4651 # making bogus files that we don't know about and never remove. For 4652 # instance it was reported that on HP-UX the gcc test will end up 4653 # making a dummy file named `D' -- because `-MD' means `put the output 4654 # in D'. 4655 rm -rf conftest.dir 4656 mkdir conftest.dir 4657 # Copy depcomp to subdir because otherwise we won't find it if we're 4658 # using a relative directory. 4659 cp "$am_depcomp" conftest.dir 4660 cd conftest.dir 4661 # We will build objects and dependencies in a subdirectory because 4662 # it helps to detect inapplicable dependency modes. For instance 4663 # both Tru64's cc and ICC support -MD to output dependencies as a 4664 # side effect of compilation, but ICC will put the dependencies in 4665 # the current directory while Tru64 will put them in the object 4666 # directory. 4667 mkdir sub 4668 4669 am_cv_CC_dependencies_compiler_type=none 4670 if test "$am_compiler_list" = ""; then 4671 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4672 fi 4673 am__universal=false 4674 case " $depcc " in #( 4675 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4676 esac 4677 4678 for depmode in $am_compiler_list; do 4679 # Setup a source with many dependencies, because some compilers 4680 # like to wrap large dependency lists on column 80 (with \), and 4681 # we should not choose a depcomp mode which is confused by this. 4682 # 4683 # We need to recreate these files for each test, as the compiler may 4684 # overwrite some of them when testing with obscure command lines. 4685 # This happens at least with the AIX C compiler. 4686 : > sub/conftest.c 4687 for i in 1 2 3 4 5 6; do 4688 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4689 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4690 # Solaris 8's {/usr,}/bin/sh. 4691 touch sub/conftst$i.h 4692 done 4693 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4694 4695 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4696 # mode. It turns out that the SunPro C++ compiler does not properly 4697 # handle `-M -o', and we need to detect this. Also, some Intel 4698 # versions had trouble with output in subdirs 4699 am__obj=sub/conftest.${OBJEXT-o} 4700 am__minus_obj="-o $am__obj" 4701 case $depmode in 4702 gcc) 4703 # This depmode causes a compiler race in universal mode. 4704 test "$am__universal" = false || continue 4705 ;; 4706 nosideeffect) 4707 # after this tag, mechanisms are not by side-effect, so they'll 4708 # only be used when explicitly requested 4709 if test "x$enable_dependency_tracking" = xyes; then 4710 continue 4711 else 4712 break 4713 fi 4714 ;; 4715 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4716 # This compiler won't grok `-c -o', but also, the minuso test has 4717 # not run yet. These depmodes are late enough in the game, and 4718 # so weak that their functioning should not be impacted. 4719 am__obj=conftest.${OBJEXT-o} 4720 am__minus_obj= 4721 ;; 4722 none) break ;; 4723 esac 4724 if depmode=$depmode \ 4725 source=sub/conftest.c object=$am__obj \ 4726 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4727 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4728 >/dev/null 2>conftest.err && 4729 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4730 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4731 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4732 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4733 # icc doesn't choke on unknown options, it will just issue warnings 4734 # or remarks (even with -Werror). So we grep stderr for any message 4735 # that says an option was ignored or not supported. 4736 # When given -MP, icc 7.0 and 7.1 complain thusly: 4737 # icc: Command line warning: ignoring option '-M'; no argument required 4738 # The diagnosis changed in icc 8.0: 4739 # icc: Command line remark: option '-MP' not supported 4740 if (grep 'ignoring option' conftest.err || 4741 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4742 am_cv_CC_dependencies_compiler_type=$depmode 4743 break 4744 fi 4745 fi 4746 done 4747 4748 cd .. 4749 rm -rf conftest.dir 4750else 4751 am_cv_CC_dependencies_compiler_type=none 4752fi 4753 4754fi 4755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4756$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4757CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4758 4759 if 4760 test "x$enable_dependency_tracking" != xno \ 4761 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4762 am__fastdepCC_TRUE= 4763 am__fastdepCC_FALSE='#' 4764else 4765 am__fastdepCC_TRUE='#' 4766 am__fastdepCC_FALSE= 4767fi 4768 4769 4770 4771# Check whether --enable-silent-rules was given. 4772if test "${enable_silent_rules+set}" = set; then : 4773 enableval=$enable_silent_rules; 4774fi 4775 4776case $enable_silent_rules in 4777yes) AM_DEFAULT_VERBOSITY=0;; 4778no) AM_DEFAULT_VERBOSITY=1;; 4779*) AM_DEFAULT_VERBOSITY=0;; 4780esac 4781am_make=${MAKE-make} 4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4783$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4784if ${am_cv_make_support_nested_variables+:} false; then : 4785 $as_echo_n "(cached) " >&6 4786else 4787 if $as_echo 'TRUE=$(BAR$(V)) 4788BAR0=false 4789BAR1=true 4790V=1 4791am__doit: 4792 @$(TRUE) 4793.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4794 am_cv_make_support_nested_variables=yes 4795else 4796 am_cv_make_support_nested_variables=no 4797fi 4798fi 4799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4800$as_echo "$am_cv_make_support_nested_variables" >&6; } 4801if test $am_cv_make_support_nested_variables = yes; then 4802 AM_V='$(V)' 4803 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4804else 4805 AM_V=$AM_DEFAULT_VERBOSITY 4806 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4807fi 4808AM_BACKSLASH='\' 4809 4810 4811# GNU Automake 1.12 requires this macro. Earlier versions do not 4812# recognize this macro. Work around this. 4813if test -n "$ac_tool_prefix"; then 4814 for ac_prog in ar lib "link -lib" 4815 do 4816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4817set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4819$as_echo_n "checking for $ac_word... " >&6; } 4820if ${ac_cv_prog_AR+:} false; then : 4821 $as_echo_n "(cached) " >&6 4822else 4823 if test -n "$AR"; then 4824 ac_cv_prog_AR="$AR" # Let the user override the test. 4825else 4826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4827for as_dir in $PATH 4828do 4829 IFS=$as_save_IFS 4830 test -z "$as_dir" && as_dir=. 4831 for ac_exec_ext in '' $ac_executable_extensions; do 4832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4833 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4835 break 2 4836 fi 4837done 4838 done 4839IFS=$as_save_IFS 4840 4841fi 4842fi 4843AR=$ac_cv_prog_AR 4844if test -n "$AR"; then 4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4846$as_echo "$AR" >&6; } 4847else 4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4849$as_echo "no" >&6; } 4850fi 4851 4852 4853 test -n "$AR" && break 4854 done 4855fi 4856if test -z "$AR"; then 4857 ac_ct_AR=$AR 4858 for ac_prog in ar lib "link -lib" 4859do 4860 # Extract the first word of "$ac_prog", so it can be a program name with args. 4861set dummy $ac_prog; ac_word=$2 4862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4863$as_echo_n "checking for $ac_word... " >&6; } 4864if ${ac_cv_prog_ac_ct_AR+:} false; then : 4865 $as_echo_n "(cached) " >&6 4866else 4867 if test -n "$ac_ct_AR"; then 4868 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4869else 4870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4871for as_dir in $PATH 4872do 4873 IFS=$as_save_IFS 4874 test -z "$as_dir" && as_dir=. 4875 for ac_exec_ext in '' $ac_executable_extensions; do 4876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4877 ac_cv_prog_ac_ct_AR="$ac_prog" 4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4879 break 2 4880 fi 4881done 4882 done 4883IFS=$as_save_IFS 4884 4885fi 4886fi 4887ac_ct_AR=$ac_cv_prog_ac_ct_AR 4888if test -n "$ac_ct_AR"; then 4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4890$as_echo "$ac_ct_AR" >&6; } 4891else 4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4893$as_echo "no" >&6; } 4894fi 4895 4896 4897 test -n "$ac_ct_AR" && break 4898done 4899 4900 if test "x$ac_ct_AR" = x; then 4901 AR="false" 4902 else 4903 case $cross_compiling:$ac_tool_warned in 4904yes:) 4905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4907ac_tool_warned=yes ;; 4908esac 4909 AR=$ac_ct_AR 4910 fi 4911fi 4912 4913: ${AR=ar} 4914 4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4916$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4917if ${am_cv_ar_interface+:} false; then : 4918 $as_echo_n "(cached) " >&6 4919else 4920 am_cv_ar_interface=ar 4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4922/* end confdefs.h. */ 4923int some_variable = 0; 4924_ACEOF 4925if ac_fn_c_try_compile "$LINENO"; then : 4926 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4928 (eval $am_ar_try) 2>&5 4929 ac_status=$? 4930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4931 test $ac_status = 0; } 4932 if test "$ac_status" -eq 0; then 4933 am_cv_ar_interface=ar 4934 else 4935 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4937 (eval $am_ar_try) 2>&5 4938 ac_status=$? 4939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4940 test $ac_status = 0; } 4941 if test "$ac_status" -eq 0; then 4942 am_cv_ar_interface=lib 4943 else 4944 am_cv_ar_interface=unknown 4945 fi 4946 fi 4947 rm -f conftest.lib libconftest.a 4948 4949fi 4950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4951 4952fi 4953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4954$as_echo "$am_cv_ar_interface" >&6; } 4955 4956case $am_cv_ar_interface in 4957ar) 4958 ;; 4959lib) 4960 # Microsoft lib, so override with the ar-lib wrapper script. 4961 # FIXME: It is wrong to rewrite AR. 4962 # But if we don't then we get into trouble of one sort or another. 4963 # A longer-term fix would be to have automake use am__AR in this case, 4964 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4965 # similar. 4966 AR="$am_aux_dir/ar-lib $AR" 4967 ;; 4968unknown) 4969 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4970 ;; 4971esac 4972 4973 4974case `pwd` in 4975 *\ * | *\ *) 4976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4977$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4978esac 4979 4980 4981 4982macro_version='2.4.2' 4983macro_revision='1.3337' 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997ltmain="$ac_aux_dir/ltmain.sh" 4998 4999# Backslashify metacharacters that are still active within 5000# double-quoted strings. 5001sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5002 5003# Same as above, but do not quote variable references. 5004double_quote_subst='s/\(["`\\]\)/\\\1/g' 5005 5006# Sed substitution to delay expansion of an escaped shell variable in a 5007# double_quote_subst'ed string. 5008delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5009 5010# Sed substitution to delay expansion of an escaped single quote. 5011delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5012 5013# Sed substitution to avoid accidental globbing in evaled expressions 5014no_glob_subst='s/\*/\\\*/g' 5015 5016ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5017ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5018ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5019 5020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5021$as_echo_n "checking how to print strings... " >&6; } 5022# Test print first, because it will be a builtin if present. 5023if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5024 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5025 ECHO='print -r --' 5026elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5027 ECHO='printf %s\n' 5028else 5029 # Use this function as a fallback that always works. 5030 func_fallback_echo () 5031 { 5032 eval 'cat <<_LTECHO_EOF 5033$1 5034_LTECHO_EOF' 5035 } 5036 ECHO='func_fallback_echo' 5037fi 5038 5039# func_echo_all arg... 5040# Invoke $ECHO with all args, space-separated. 5041func_echo_all () 5042{ 5043 $ECHO "" 5044} 5045 5046case "$ECHO" in 5047 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5048$as_echo "printf" >&6; } ;; 5049 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5050$as_echo "print -r" >&6; } ;; 5051 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5052$as_echo "cat" >&6; } ;; 5053esac 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5069$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5070if ${ac_cv_path_SED+:} false; then : 5071 $as_echo_n "(cached) " >&6 5072else 5073 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5074 for ac_i in 1 2 3 4 5 6 7; do 5075 ac_script="$ac_script$as_nl$ac_script" 5076 done 5077 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5078 { ac_script=; unset ac_script;} 5079 if test -z "$SED"; then 5080 ac_path_SED_found=false 5081 # Loop through the user's path and test for each of PROGNAME-LIST 5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5083for as_dir in $PATH 5084do 5085 IFS=$as_save_IFS 5086 test -z "$as_dir" && as_dir=. 5087 for ac_prog in sed gsed; do 5088 for ac_exec_ext in '' $ac_executable_extensions; do 5089 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5090 as_fn_executable_p "$ac_path_SED" || continue 5091# Check for GNU ac_path_SED and select it if it is found. 5092 # Check for GNU $ac_path_SED 5093case `"$ac_path_SED" --version 2>&1` in 5094*GNU*) 5095 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5096*) 5097 ac_count=0 5098 $as_echo_n 0123456789 >"conftest.in" 5099 while : 5100 do 5101 cat "conftest.in" "conftest.in" >"conftest.tmp" 5102 mv "conftest.tmp" "conftest.in" 5103 cp "conftest.in" "conftest.nl" 5104 $as_echo '' >> "conftest.nl" 5105 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5107 as_fn_arith $ac_count + 1 && ac_count=$as_val 5108 if test $ac_count -gt ${ac_path_SED_max-0}; then 5109 # Best one so far, save it but keep looking for a better one 5110 ac_cv_path_SED="$ac_path_SED" 5111 ac_path_SED_max=$ac_count 5112 fi 5113 # 10*(2^10) chars as input seems more than enough 5114 test $ac_count -gt 10 && break 5115 done 5116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5117esac 5118 5119 $ac_path_SED_found && break 3 5120 done 5121 done 5122 done 5123IFS=$as_save_IFS 5124 if test -z "$ac_cv_path_SED"; then 5125 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5126 fi 5127else 5128 ac_cv_path_SED=$SED 5129fi 5130 5131fi 5132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5133$as_echo "$ac_cv_path_SED" >&6; } 5134 SED="$ac_cv_path_SED" 5135 rm -f conftest.sed 5136 5137test -z "$SED" && SED=sed 5138Xsed="$SED -e 1s/^X//" 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5151$as_echo_n "checking for fgrep... " >&6; } 5152if ${ac_cv_path_FGREP+:} false; then : 5153 $as_echo_n "(cached) " >&6 5154else 5155 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5156 then ac_cv_path_FGREP="$GREP -F" 5157 else 5158 if test -z "$FGREP"; then 5159 ac_path_FGREP_found=false 5160 # Loop through the user's path and test for each of PROGNAME-LIST 5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5162for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5163do 5164 IFS=$as_save_IFS 5165 test -z "$as_dir" && as_dir=. 5166 for ac_prog in fgrep; do 5167 for ac_exec_ext in '' $ac_executable_extensions; do 5168 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5169 as_fn_executable_p "$ac_path_FGREP" || continue 5170# Check for GNU ac_path_FGREP and select it if it is found. 5171 # Check for GNU $ac_path_FGREP 5172case `"$ac_path_FGREP" --version 2>&1` in 5173*GNU*) 5174 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5175*) 5176 ac_count=0 5177 $as_echo_n 0123456789 >"conftest.in" 5178 while : 5179 do 5180 cat "conftest.in" "conftest.in" >"conftest.tmp" 5181 mv "conftest.tmp" "conftest.in" 5182 cp "conftest.in" "conftest.nl" 5183 $as_echo 'FGREP' >> "conftest.nl" 5184 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5186 as_fn_arith $ac_count + 1 && ac_count=$as_val 5187 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5188 # Best one so far, save it but keep looking for a better one 5189 ac_cv_path_FGREP="$ac_path_FGREP" 5190 ac_path_FGREP_max=$ac_count 5191 fi 5192 # 10*(2^10) chars as input seems more than enough 5193 test $ac_count -gt 10 && break 5194 done 5195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5196esac 5197 5198 $ac_path_FGREP_found && break 3 5199 done 5200 done 5201 done 5202IFS=$as_save_IFS 5203 if test -z "$ac_cv_path_FGREP"; then 5204 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5205 fi 5206else 5207 ac_cv_path_FGREP=$FGREP 5208fi 5209 5210 fi 5211fi 5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5213$as_echo "$ac_cv_path_FGREP" >&6; } 5214 FGREP="$ac_cv_path_FGREP" 5215 5216 5217test -z "$GREP" && GREP=grep 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237# Check whether --with-gnu-ld was given. 5238if test "${with_gnu_ld+set}" = set; then : 5239 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5240else 5241 with_gnu_ld=no 5242fi 5243 5244ac_prog=ld 5245if test "$GCC" = yes; then 5246 # Check if gcc -print-prog-name=ld gives a path. 5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5248$as_echo_n "checking for ld used by $CC... " >&6; } 5249 case $host in 5250 *-*-mingw*) 5251 # gcc leaves a trailing carriage return which upsets mingw 5252 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5253 *) 5254 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5255 esac 5256 case $ac_prog in 5257 # Accept absolute paths. 5258 [\\/]* | ?:[\\/]*) 5259 re_direlt='/[^/][^/]*/\.\./' 5260 # Canonicalize the pathname of ld 5261 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5262 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5263 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5264 done 5265 test -z "$LD" && LD="$ac_prog" 5266 ;; 5267 "") 5268 # If it fails, then pretend we aren't using GCC. 5269 ac_prog=ld 5270 ;; 5271 *) 5272 # If it is relative, then search for the first ld in PATH. 5273 with_gnu_ld=unknown 5274 ;; 5275 esac 5276elif test "$with_gnu_ld" = yes; then 5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5278$as_echo_n "checking for GNU ld... " >&6; } 5279else 5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5281$as_echo_n "checking for non-GNU ld... " >&6; } 5282fi 5283if ${lt_cv_path_LD+:} false; then : 5284 $as_echo_n "(cached) " >&6 5285else 5286 if test -z "$LD"; then 5287 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5288 for ac_dir in $PATH; do 5289 IFS="$lt_save_ifs" 5290 test -z "$ac_dir" && ac_dir=. 5291 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5292 lt_cv_path_LD="$ac_dir/$ac_prog" 5293 # Check to see if the program is GNU ld. I'd rather use --version, 5294 # but apparently some variants of GNU ld only accept -v. 5295 # Break only if it was the GNU/non-GNU ld that we prefer. 5296 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5297 *GNU* | *'with BFD'*) 5298 test "$with_gnu_ld" != no && break 5299 ;; 5300 *) 5301 test "$with_gnu_ld" != yes && break 5302 ;; 5303 esac 5304 fi 5305 done 5306 IFS="$lt_save_ifs" 5307else 5308 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5309fi 5310fi 5311 5312LD="$lt_cv_path_LD" 5313if test -n "$LD"; then 5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5315$as_echo "$LD" >&6; } 5316else 5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5318$as_echo "no" >&6; } 5319fi 5320test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5322$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5323if ${lt_cv_prog_gnu_ld+:} false; then : 5324 $as_echo_n "(cached) " >&6 5325else 5326 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5327case `$LD -v 2>&1 </dev/null` in 5328*GNU* | *'with BFD'*) 5329 lt_cv_prog_gnu_ld=yes 5330 ;; 5331*) 5332 lt_cv_prog_gnu_ld=no 5333 ;; 5334esac 5335fi 5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5337$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5338with_gnu_ld=$lt_cv_prog_gnu_ld 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5349$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5350if ${lt_cv_path_NM+:} false; then : 5351 $as_echo_n "(cached) " >&6 5352else 5353 if test -n "$NM"; then 5354 # Let the user override the test. 5355 lt_cv_path_NM="$NM" 5356else 5357 lt_nm_to_check="${ac_tool_prefix}nm" 5358 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5359 lt_nm_to_check="$lt_nm_to_check nm" 5360 fi 5361 for lt_tmp_nm in $lt_nm_to_check; do 5362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5363 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5364 IFS="$lt_save_ifs" 5365 test -z "$ac_dir" && ac_dir=. 5366 tmp_nm="$ac_dir/$lt_tmp_nm" 5367 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5368 # Check to see if the nm accepts a BSD-compat flag. 5369 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5370 # nm: unknown option "B" ignored 5371 # Tru64's nm complains that /dev/null is an invalid object file 5372 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5373 */dev/null* | *'Invalid file or object type'*) 5374 lt_cv_path_NM="$tmp_nm -B" 5375 break 5376 ;; 5377 *) 5378 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5379 */dev/null*) 5380 lt_cv_path_NM="$tmp_nm -p" 5381 break 5382 ;; 5383 *) 5384 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5385 continue # so that we can try to find one that supports BSD flags 5386 ;; 5387 esac 5388 ;; 5389 esac 5390 fi 5391 done 5392 IFS="$lt_save_ifs" 5393 done 5394 : ${lt_cv_path_NM=no} 5395fi 5396fi 5397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5398$as_echo "$lt_cv_path_NM" >&6; } 5399if test "$lt_cv_path_NM" != "no"; then 5400 NM="$lt_cv_path_NM" 5401else 5402 # Didn't find any BSD compatible name lister, look for dumpbin. 5403 if test -n "$DUMPBIN"; then : 5404 # Let the user override the test. 5405 else 5406 if test -n "$ac_tool_prefix"; then 5407 for ac_prog in dumpbin "link -dump" 5408 do 5409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5410set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5412$as_echo_n "checking for $ac_word... " >&6; } 5413if ${ac_cv_prog_DUMPBIN+:} false; then : 5414 $as_echo_n "(cached) " >&6 5415else 5416 if test -n "$DUMPBIN"; then 5417 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5418else 5419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5420for as_dir in $PATH 5421do 5422 IFS=$as_save_IFS 5423 test -z "$as_dir" && as_dir=. 5424 for ac_exec_ext in '' $ac_executable_extensions; do 5425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5426 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5428 break 2 5429 fi 5430done 5431 done 5432IFS=$as_save_IFS 5433 5434fi 5435fi 5436DUMPBIN=$ac_cv_prog_DUMPBIN 5437if test -n "$DUMPBIN"; then 5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5439$as_echo "$DUMPBIN" >&6; } 5440else 5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5442$as_echo "no" >&6; } 5443fi 5444 5445 5446 test -n "$DUMPBIN" && break 5447 done 5448fi 5449if test -z "$DUMPBIN"; then 5450 ac_ct_DUMPBIN=$DUMPBIN 5451 for ac_prog in dumpbin "link -dump" 5452do 5453 # Extract the first word of "$ac_prog", so it can be a program name with args. 5454set dummy $ac_prog; ac_word=$2 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5456$as_echo_n "checking for $ac_word... " >&6; } 5457if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5458 $as_echo_n "(cached) " >&6 5459else 5460 if test -n "$ac_ct_DUMPBIN"; then 5461 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5462else 5463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5464for as_dir in $PATH 5465do 5466 IFS=$as_save_IFS 5467 test -z "$as_dir" && as_dir=. 5468 for ac_exec_ext in '' $ac_executable_extensions; do 5469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5470 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5472 break 2 5473 fi 5474done 5475 done 5476IFS=$as_save_IFS 5477 5478fi 5479fi 5480ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5481if test -n "$ac_ct_DUMPBIN"; then 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5483$as_echo "$ac_ct_DUMPBIN" >&6; } 5484else 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5486$as_echo "no" >&6; } 5487fi 5488 5489 5490 test -n "$ac_ct_DUMPBIN" && break 5491done 5492 5493 if test "x$ac_ct_DUMPBIN" = x; then 5494 DUMPBIN=":" 5495 else 5496 case $cross_compiling:$ac_tool_warned in 5497yes:) 5498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5500ac_tool_warned=yes ;; 5501esac 5502 DUMPBIN=$ac_ct_DUMPBIN 5503 fi 5504fi 5505 5506 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5507 *COFF*) 5508 DUMPBIN="$DUMPBIN -symbols" 5509 ;; 5510 *) 5511 DUMPBIN=: 5512 ;; 5513 esac 5514 fi 5515 5516 if test "$DUMPBIN" != ":"; then 5517 NM="$DUMPBIN" 5518 fi 5519fi 5520test -z "$NM" && NM=nm 5521 5522 5523 5524 5525 5526 5527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5528$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5529if ${lt_cv_nm_interface+:} false; then : 5530 $as_echo_n "(cached) " >&6 5531else 5532 lt_cv_nm_interface="BSD nm" 5533 echo "int some_variable = 0;" > conftest.$ac_ext 5534 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5535 (eval "$ac_compile" 2>conftest.err) 5536 cat conftest.err >&5 5537 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5538 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5539 cat conftest.err >&5 5540 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5541 cat conftest.out >&5 5542 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5543 lt_cv_nm_interface="MS dumpbin" 5544 fi 5545 rm -f conftest* 5546fi 5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5548$as_echo "$lt_cv_nm_interface" >&6; } 5549 5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5551$as_echo_n "checking whether ln -s works... " >&6; } 5552LN_S=$as_ln_s 5553if test "$LN_S" = "ln -s"; then 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5555$as_echo "yes" >&6; } 5556else 5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5558$as_echo "no, using $LN_S" >&6; } 5559fi 5560 5561# find the maximum length of command line arguments 5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5563$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5564if ${lt_cv_sys_max_cmd_len+:} false; then : 5565 $as_echo_n "(cached) " >&6 5566else 5567 i=0 5568 teststring="ABCD" 5569 5570 case $build_os in 5571 msdosdjgpp*) 5572 # On DJGPP, this test can blow up pretty badly due to problems in libc 5573 # (any single argument exceeding 2000 bytes causes a buffer overrun 5574 # during glob expansion). Even if it were fixed, the result of this 5575 # check would be larger than it should be. 5576 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5577 ;; 5578 5579 gnu*) 5580 # Under GNU Hurd, this test is not required because there is 5581 # no limit to the length of command line arguments. 5582 # Libtool will interpret -1 as no limit whatsoever 5583 lt_cv_sys_max_cmd_len=-1; 5584 ;; 5585 5586 cygwin* | mingw* | cegcc*) 5587 # On Win9x/ME, this test blows up -- it succeeds, but takes 5588 # about 5 minutes as the teststring grows exponentially. 5589 # Worse, since 9x/ME are not pre-emptively multitasking, 5590 # you end up with a "frozen" computer, even though with patience 5591 # the test eventually succeeds (with a max line length of 256k). 5592 # Instead, let's just punt: use the minimum linelength reported by 5593 # all of the supported platforms: 8192 (on NT/2K/XP). 5594 lt_cv_sys_max_cmd_len=8192; 5595 ;; 5596 5597 mint*) 5598 # On MiNT this can take a long time and run out of memory. 5599 lt_cv_sys_max_cmd_len=8192; 5600 ;; 5601 5602 amigaos*) 5603 # On AmigaOS with pdksh, this test takes hours, literally. 5604 # So we just punt and use a minimum line length of 8192. 5605 lt_cv_sys_max_cmd_len=8192; 5606 ;; 5607 5608 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5609 # This has been around since 386BSD, at least. Likely further. 5610 if test -x /sbin/sysctl; then 5611 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5612 elif test -x /usr/sbin/sysctl; then 5613 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5614 else 5615 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5616 fi 5617 # And add a safety zone 5618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5620 ;; 5621 5622 interix*) 5623 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5624 lt_cv_sys_max_cmd_len=196608 5625 ;; 5626 5627 os2*) 5628 # The test takes a long time on OS/2. 5629 lt_cv_sys_max_cmd_len=8192 5630 ;; 5631 5632 osf*) 5633 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5634 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5635 # nice to cause kernel panics so lets avoid the loop below. 5636 # First set a reasonable default. 5637 lt_cv_sys_max_cmd_len=16384 5638 # 5639 if test -x /sbin/sysconfig; then 5640 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5641 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5642 esac 5643 fi 5644 ;; 5645 sco3.2v5*) 5646 lt_cv_sys_max_cmd_len=102400 5647 ;; 5648 sysv5* | sco5v6* | sysv4.2uw2*) 5649 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5650 if test -n "$kargmax"; then 5651 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5652 else 5653 lt_cv_sys_max_cmd_len=32768 5654 fi 5655 ;; 5656 *) 5657 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5658 if test -n "$lt_cv_sys_max_cmd_len"; then 5659 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5661 else 5662 # Make teststring a little bigger before we do anything with it. 5663 # a 1K string should be a reasonable start. 5664 for i in 1 2 3 4 5 6 7 8 ; do 5665 teststring=$teststring$teststring 5666 done 5667 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5668 # If test is not a shell built-in, we'll probably end up computing a 5669 # maximum length that is only half of the actual maximum length, but 5670 # we can't tell. 5671 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5672 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5673 test $i != 17 # 1/2 MB should be enough 5674 do 5675 i=`expr $i + 1` 5676 teststring=$teststring$teststring 5677 done 5678 # Only check the string length outside the loop. 5679 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5680 teststring= 5681 # Add a significant safety factor because C++ compilers can tack on 5682 # massive amounts of additional arguments before passing them to the 5683 # linker. It appears as though 1/2 is a usable value. 5684 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5685 fi 5686 ;; 5687 esac 5688 5689fi 5690 5691if test -n $lt_cv_sys_max_cmd_len ; then 5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5693$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5694else 5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5696$as_echo "none" >&6; } 5697fi 5698max_cmd_len=$lt_cv_sys_max_cmd_len 5699 5700 5701 5702 5703 5704 5705: ${CP="cp -f"} 5706: ${MV="mv -f"} 5707: ${RM="rm -f"} 5708 5709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5710$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5711# Try some XSI features 5712xsi_shell=no 5713( _lt_dummy="a/b/c" 5714 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5715 = c,a/b,b/c, \ 5716 && eval 'test $(( 1 + 1 )) -eq 2 \ 5717 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5718 && xsi_shell=yes 5719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5720$as_echo "$xsi_shell" >&6; } 5721 5722 5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5724$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5725lt_shell_append=no 5726( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5727 >/dev/null 2>&1 \ 5728 && lt_shell_append=yes 5729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5730$as_echo "$lt_shell_append" >&6; } 5731 5732 5733if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5734 lt_unset=unset 5735else 5736 lt_unset=false 5737fi 5738 5739 5740 5741 5742 5743# test EBCDIC or ASCII 5744case `echo X|tr X '\101'` in 5745 A) # ASCII based system 5746 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5747 lt_SP2NL='tr \040 \012' 5748 lt_NL2SP='tr \015\012 \040\040' 5749 ;; 5750 *) # EBCDIC based system 5751 lt_SP2NL='tr \100 \n' 5752 lt_NL2SP='tr \r\n \100\100' 5753 ;; 5754esac 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5765$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5766if ${lt_cv_to_host_file_cmd+:} false; then : 5767 $as_echo_n "(cached) " >&6 5768else 5769 case $host in 5770 *-*-mingw* ) 5771 case $build in 5772 *-*-mingw* ) # actually msys 5773 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5774 ;; 5775 *-*-cygwin* ) 5776 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5777 ;; 5778 * ) # otherwise, assume *nix 5779 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5780 ;; 5781 esac 5782 ;; 5783 *-*-cygwin* ) 5784 case $build in 5785 *-*-mingw* ) # actually msys 5786 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5787 ;; 5788 *-*-cygwin* ) 5789 lt_cv_to_host_file_cmd=func_convert_file_noop 5790 ;; 5791 * ) # otherwise, assume *nix 5792 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5793 ;; 5794 esac 5795 ;; 5796 * ) # unhandled hosts (and "normal" native builds) 5797 lt_cv_to_host_file_cmd=func_convert_file_noop 5798 ;; 5799esac 5800 5801fi 5802 5803to_host_file_cmd=$lt_cv_to_host_file_cmd 5804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5805$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5806 5807 5808 5809 5810 5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5812$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5813if ${lt_cv_to_tool_file_cmd+:} false; then : 5814 $as_echo_n "(cached) " >&6 5815else 5816 #assume ordinary cross tools, or native build. 5817lt_cv_to_tool_file_cmd=func_convert_file_noop 5818case $host in 5819 *-*-mingw* ) 5820 case $build in 5821 *-*-mingw* ) # actually msys 5822 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5823 ;; 5824 esac 5825 ;; 5826esac 5827 5828fi 5829 5830to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5832$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5833 5834 5835 5836 5837 5838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5839$as_echo_n "checking for $LD option to reload object files... " >&6; } 5840if ${lt_cv_ld_reload_flag+:} false; then : 5841 $as_echo_n "(cached) " >&6 5842else 5843 lt_cv_ld_reload_flag='-r' 5844fi 5845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5846$as_echo "$lt_cv_ld_reload_flag" >&6; } 5847reload_flag=$lt_cv_ld_reload_flag 5848case $reload_flag in 5849"" | " "*) ;; 5850*) reload_flag=" $reload_flag" ;; 5851esac 5852reload_cmds='$LD$reload_flag -o $output$reload_objs' 5853case $host_os in 5854 cygwin* | mingw* | pw32* | cegcc*) 5855 if test "$GCC" != yes; then 5856 reload_cmds=false 5857 fi 5858 ;; 5859 darwin*) 5860 if test "$GCC" = yes; then 5861 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5862 else 5863 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5864 fi 5865 ;; 5866esac 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876if test -n "$ac_tool_prefix"; then 5877 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5878set dummy ${ac_tool_prefix}objdump; ac_word=$2 5879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5880$as_echo_n "checking for $ac_word... " >&6; } 5881if ${ac_cv_prog_OBJDUMP+:} false; then : 5882 $as_echo_n "(cached) " >&6 5883else 5884 if test -n "$OBJDUMP"; then 5885 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5886else 5887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5888for as_dir in $PATH 5889do 5890 IFS=$as_save_IFS 5891 test -z "$as_dir" && as_dir=. 5892 for ac_exec_ext in '' $ac_executable_extensions; do 5893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5894 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5896 break 2 5897 fi 5898done 5899 done 5900IFS=$as_save_IFS 5901 5902fi 5903fi 5904OBJDUMP=$ac_cv_prog_OBJDUMP 5905if test -n "$OBJDUMP"; then 5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5907$as_echo "$OBJDUMP" >&6; } 5908else 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5910$as_echo "no" >&6; } 5911fi 5912 5913 5914fi 5915if test -z "$ac_cv_prog_OBJDUMP"; then 5916 ac_ct_OBJDUMP=$OBJDUMP 5917 # Extract the first word of "objdump", so it can be a program name with args. 5918set dummy objdump; ac_word=$2 5919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5920$as_echo_n "checking for $ac_word... " >&6; } 5921if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5922 $as_echo_n "(cached) " >&6 5923else 5924 if test -n "$ac_ct_OBJDUMP"; then 5925 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5926else 5927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5928for as_dir in $PATH 5929do 5930 IFS=$as_save_IFS 5931 test -z "$as_dir" && as_dir=. 5932 for ac_exec_ext in '' $ac_executable_extensions; do 5933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5934 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5936 break 2 5937 fi 5938done 5939 done 5940IFS=$as_save_IFS 5941 5942fi 5943fi 5944ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5945if test -n "$ac_ct_OBJDUMP"; then 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5947$as_echo "$ac_ct_OBJDUMP" >&6; } 5948else 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5950$as_echo "no" >&6; } 5951fi 5952 5953 if test "x$ac_ct_OBJDUMP" = x; then 5954 OBJDUMP="false" 5955 else 5956 case $cross_compiling:$ac_tool_warned in 5957yes:) 5958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5960ac_tool_warned=yes ;; 5961esac 5962 OBJDUMP=$ac_ct_OBJDUMP 5963 fi 5964else 5965 OBJDUMP="$ac_cv_prog_OBJDUMP" 5966fi 5967 5968test -z "$OBJDUMP" && OBJDUMP=objdump 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5979$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5980if ${lt_cv_deplibs_check_method+:} false; then : 5981 $as_echo_n "(cached) " >&6 5982else 5983 lt_cv_file_magic_cmd='$MAGIC_CMD' 5984lt_cv_file_magic_test_file= 5985lt_cv_deplibs_check_method='unknown' 5986# Need to set the preceding variable on all platforms that support 5987# interlibrary dependencies. 5988# 'none' -- dependencies not supported. 5989# `unknown' -- same as none, but documents that we really don't know. 5990# 'pass_all' -- all dependencies passed with no checks. 5991# 'test_compile' -- check by making test program. 5992# 'file_magic [[regex]]' -- check by looking for files in library path 5993# which responds to the $file_magic_cmd with a given extended regex. 5994# If you have `file' or equivalent on your system and you're not sure 5995# whether `pass_all' will *always* work, you probably want this one. 5996 5997case $host_os in 5998aix[4-9]*) 5999 lt_cv_deplibs_check_method=pass_all 6000 ;; 6001 6002beos*) 6003 lt_cv_deplibs_check_method=pass_all 6004 ;; 6005 6006bsdi[45]*) 6007 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6008 lt_cv_file_magic_cmd='/usr/bin/file -L' 6009 lt_cv_file_magic_test_file=/shlib/libc.so 6010 ;; 6011 6012cygwin*) 6013 # func_win32_libid is a shell function defined in ltmain.sh 6014 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6015 lt_cv_file_magic_cmd='func_win32_libid' 6016 ;; 6017 6018mingw* | pw32*) 6019 # Base MSYS/MinGW do not provide the 'file' command needed by 6020 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6021 # unless we find 'file', for example because we are cross-compiling. 6022 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6023 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6024 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6025 lt_cv_file_magic_cmd='func_win32_libid' 6026 else 6027 # Keep this pattern in sync with the one in func_win32_libid. 6028 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6029 lt_cv_file_magic_cmd='$OBJDUMP -f' 6030 fi 6031 ;; 6032 6033cegcc*) 6034 # use the weaker test based on 'objdump'. See mingw*. 6035 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6036 lt_cv_file_magic_cmd='$OBJDUMP -f' 6037 ;; 6038 6039darwin* | rhapsody*) 6040 lt_cv_deplibs_check_method=pass_all 6041 ;; 6042 6043freebsd* | dragonfly*) 6044 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6045 case $host_cpu in 6046 i*86 ) 6047 # Not sure whether the presence of OpenBSD here was a mistake. 6048 # Let's accept both of them until this is cleared up. 6049 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6050 lt_cv_file_magic_cmd=/usr/bin/file 6051 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6052 ;; 6053 esac 6054 else 6055 lt_cv_deplibs_check_method=pass_all 6056 fi 6057 ;; 6058 6059haiku*) 6060 lt_cv_deplibs_check_method=pass_all 6061 ;; 6062 6063hpux10.20* | hpux11*) 6064 lt_cv_file_magic_cmd=/usr/bin/file 6065 case $host_cpu in 6066 ia64*) 6067 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6068 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6069 ;; 6070 hppa*64*) 6071 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]' 6072 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6073 ;; 6074 *) 6075 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6076 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6077 ;; 6078 esac 6079 ;; 6080 6081interix[3-9]*) 6082 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6084 ;; 6085 6086irix5* | irix6* | nonstopux*) 6087 case $LD in 6088 *-32|*"-32 ") libmagic=32-bit;; 6089 *-n32|*"-n32 ") libmagic=N32;; 6090 *-64|*"-64 ") libmagic=64-bit;; 6091 *) libmagic=never-match;; 6092 esac 6093 lt_cv_deplibs_check_method=pass_all 6094 ;; 6095 6096# This must be glibc/ELF. 6097linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6098 lt_cv_deplibs_check_method=pass_all 6099 ;; 6100 6101netbsd* | netbsdelf*-gnu) 6102 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6104 else 6105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6106 fi 6107 ;; 6108 6109newos6*) 6110 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6111 lt_cv_file_magic_cmd=/usr/bin/file 6112 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6113 ;; 6114 6115*nto* | *qnx*) 6116 lt_cv_deplibs_check_method=pass_all 6117 ;; 6118 6119openbsd*) 6120 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6122 else 6123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6124 fi 6125 ;; 6126 6127osf3* | osf4* | osf5*) 6128 lt_cv_deplibs_check_method=pass_all 6129 ;; 6130 6131rdos*) 6132 lt_cv_deplibs_check_method=pass_all 6133 ;; 6134 6135solaris*) 6136 lt_cv_deplibs_check_method=pass_all 6137 ;; 6138 6139sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6140 lt_cv_deplibs_check_method=pass_all 6141 ;; 6142 6143sysv4 | sysv4.3*) 6144 case $host_vendor in 6145 motorola) 6146 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]' 6147 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6148 ;; 6149 ncr) 6150 lt_cv_deplibs_check_method=pass_all 6151 ;; 6152 sequent) 6153 lt_cv_file_magic_cmd='/bin/file' 6154 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6155 ;; 6156 sni) 6157 lt_cv_file_magic_cmd='/bin/file' 6158 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6159 lt_cv_file_magic_test_file=/lib/libc.so 6160 ;; 6161 siemens) 6162 lt_cv_deplibs_check_method=pass_all 6163 ;; 6164 pc) 6165 lt_cv_deplibs_check_method=pass_all 6166 ;; 6167 esac 6168 ;; 6169 6170tpf*) 6171 lt_cv_deplibs_check_method=pass_all 6172 ;; 6173esac 6174 6175fi 6176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6177$as_echo "$lt_cv_deplibs_check_method" >&6; } 6178 6179file_magic_glob= 6180want_nocaseglob=no 6181if test "$build" = "$host"; then 6182 case $host_os in 6183 mingw* | pw32*) 6184 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6185 want_nocaseglob=yes 6186 else 6187 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6188 fi 6189 ;; 6190 esac 6191fi 6192 6193file_magic_cmd=$lt_cv_file_magic_cmd 6194deplibs_check_method=$lt_cv_deplibs_check_method 6195test -z "$deplibs_check_method" && deplibs_check_method=unknown 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218if test -n "$ac_tool_prefix"; then 6219 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6220set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6222$as_echo_n "checking for $ac_word... " >&6; } 6223if ${ac_cv_prog_DLLTOOL+:} false; then : 6224 $as_echo_n "(cached) " >&6 6225else 6226 if test -n "$DLLTOOL"; then 6227 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6228else 6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6230for as_dir in $PATH 6231do 6232 IFS=$as_save_IFS 6233 test -z "$as_dir" && as_dir=. 6234 for ac_exec_ext in '' $ac_executable_extensions; do 6235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6236 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6238 break 2 6239 fi 6240done 6241 done 6242IFS=$as_save_IFS 6243 6244fi 6245fi 6246DLLTOOL=$ac_cv_prog_DLLTOOL 6247if test -n "$DLLTOOL"; then 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6249$as_echo "$DLLTOOL" >&6; } 6250else 6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6252$as_echo "no" >&6; } 6253fi 6254 6255 6256fi 6257if test -z "$ac_cv_prog_DLLTOOL"; then 6258 ac_ct_DLLTOOL=$DLLTOOL 6259 # Extract the first word of "dlltool", so it can be a program name with args. 6260set dummy dlltool; ac_word=$2 6261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6262$as_echo_n "checking for $ac_word... " >&6; } 6263if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6264 $as_echo_n "(cached) " >&6 6265else 6266 if test -n "$ac_ct_DLLTOOL"; then 6267 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6268else 6269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6270for as_dir in $PATH 6271do 6272 IFS=$as_save_IFS 6273 test -z "$as_dir" && as_dir=. 6274 for ac_exec_ext in '' $ac_executable_extensions; do 6275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6276 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6278 break 2 6279 fi 6280done 6281 done 6282IFS=$as_save_IFS 6283 6284fi 6285fi 6286ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6287if test -n "$ac_ct_DLLTOOL"; then 6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6289$as_echo "$ac_ct_DLLTOOL" >&6; } 6290else 6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6292$as_echo "no" >&6; } 6293fi 6294 6295 if test "x$ac_ct_DLLTOOL" = x; then 6296 DLLTOOL="false" 6297 else 6298 case $cross_compiling:$ac_tool_warned in 6299yes:) 6300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6302ac_tool_warned=yes ;; 6303esac 6304 DLLTOOL=$ac_ct_DLLTOOL 6305 fi 6306else 6307 DLLTOOL="$ac_cv_prog_DLLTOOL" 6308fi 6309 6310test -z "$DLLTOOL" && DLLTOOL=dlltool 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6322$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6323if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6324 $as_echo_n "(cached) " >&6 6325else 6326 lt_cv_sharedlib_from_linklib_cmd='unknown' 6327 6328case $host_os in 6329cygwin* | mingw* | pw32* | cegcc*) 6330 # two different shell functions defined in ltmain.sh 6331 # decide which to use based on capabilities of $DLLTOOL 6332 case `$DLLTOOL --help 2>&1` in 6333 *--identify-strict*) 6334 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6335 ;; 6336 *) 6337 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6338 ;; 6339 esac 6340 ;; 6341*) 6342 # fallback: assume linklib IS sharedlib 6343 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6344 ;; 6345esac 6346 6347fi 6348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6349$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6350sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6351test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6352 6353 6354 6355 6356 6357 6358 6359if test -n "$ac_tool_prefix"; then 6360 for ac_prog in ar 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_AR+:} false; then : 6367 $as_echo_n "(cached) " >&6 6368else 6369 if test -n "$AR"; then 6370 ac_cv_prog_AR="$AR" # 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_AR="$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 6389AR=$ac_cv_prog_AR 6390if test -n "$AR"; then 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6392$as_echo "$AR" >&6; } 6393else 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6395$as_echo "no" >&6; } 6396fi 6397 6398 6399 test -n "$AR" && break 6400 done 6401fi 6402if test -z "$AR"; then 6403 ac_ct_AR=$AR 6404 for ac_prog in ar 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_AR+:} false; then : 6411 $as_echo_n "(cached) " >&6 6412else 6413 if test -n "$ac_ct_AR"; then 6414 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_AR="$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_AR=$ac_cv_prog_ac_ct_AR 6434if test -n "$ac_ct_AR"; then 6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6436$as_echo "$ac_ct_AR" >&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_AR" && break 6444done 6445 6446 if test "x$ac_ct_AR" = x; then 6447 AR="false" 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 AR=$ac_ct_AR 6456 fi 6457fi 6458 6459: ${AR=ar} 6460: ${AR_FLAGS=cru} 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6473$as_echo_n "checking for archiver @FILE support... " >&6; } 6474if ${lt_cv_ar_at_file+:} false; then : 6475 $as_echo_n "(cached) " >&6 6476else 6477 lt_cv_ar_at_file=no 6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6479/* end confdefs.h. */ 6480 6481int 6482main () 6483{ 6484 6485 ; 6486 return 0; 6487} 6488_ACEOF 6489if ac_fn_c_try_compile "$LINENO"; then : 6490 echo conftest.$ac_objext > conftest.lst 6491 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6493 (eval $lt_ar_try) 2>&5 6494 ac_status=$? 6495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6496 test $ac_status = 0; } 6497 if test "$ac_status" -eq 0; then 6498 # Ensure the archiver fails upon bogus file names. 6499 rm -f conftest.$ac_objext libconftest.a 6500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6501 (eval $lt_ar_try) 2>&5 6502 ac_status=$? 6503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6504 test $ac_status = 0; } 6505 if test "$ac_status" -ne 0; then 6506 lt_cv_ar_at_file=@ 6507 fi 6508 fi 6509 rm -f conftest.* libconftest.a 6510 6511fi 6512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6513 6514fi 6515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6516$as_echo "$lt_cv_ar_at_file" >&6; } 6517 6518if test "x$lt_cv_ar_at_file" = xno; then 6519 archiver_list_spec= 6520else 6521 archiver_list_spec=$lt_cv_ar_at_file 6522fi 6523 6524 6525 6526 6527 6528 6529 6530if test -n "$ac_tool_prefix"; then 6531 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6532set dummy ${ac_tool_prefix}strip; ac_word=$2 6533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6534$as_echo_n "checking for $ac_word... " >&6; } 6535if ${ac_cv_prog_STRIP+:} false; then : 6536 $as_echo_n "(cached) " >&6 6537else 6538 if test -n "$STRIP"; then 6539 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6540else 6541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6542for as_dir in $PATH 6543do 6544 IFS=$as_save_IFS 6545 test -z "$as_dir" && as_dir=. 6546 for ac_exec_ext in '' $ac_executable_extensions; do 6547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6548 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6550 break 2 6551 fi 6552done 6553 done 6554IFS=$as_save_IFS 6555 6556fi 6557fi 6558STRIP=$ac_cv_prog_STRIP 6559if test -n "$STRIP"; then 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6561$as_echo "$STRIP" >&6; } 6562else 6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6564$as_echo "no" >&6; } 6565fi 6566 6567 6568fi 6569if test -z "$ac_cv_prog_STRIP"; then 6570 ac_ct_STRIP=$STRIP 6571 # Extract the first word of "strip", so it can be a program name with args. 6572set dummy strip; ac_word=$2 6573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6574$as_echo_n "checking for $ac_word... " >&6; } 6575if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6576 $as_echo_n "(cached) " >&6 6577else 6578 if test -n "$ac_ct_STRIP"; then 6579 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6580else 6581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6582for as_dir in $PATH 6583do 6584 IFS=$as_save_IFS 6585 test -z "$as_dir" && as_dir=. 6586 for ac_exec_ext in '' $ac_executable_extensions; do 6587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6588 ac_cv_prog_ac_ct_STRIP="strip" 6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6590 break 2 6591 fi 6592done 6593 done 6594IFS=$as_save_IFS 6595 6596fi 6597fi 6598ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6599if test -n "$ac_ct_STRIP"; then 6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6601$as_echo "$ac_ct_STRIP" >&6; } 6602else 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6604$as_echo "no" >&6; } 6605fi 6606 6607 if test "x$ac_ct_STRIP" = x; then 6608 STRIP=":" 6609 else 6610 case $cross_compiling:$ac_tool_warned in 6611yes:) 6612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6614ac_tool_warned=yes ;; 6615esac 6616 STRIP=$ac_ct_STRIP 6617 fi 6618else 6619 STRIP="$ac_cv_prog_STRIP" 6620fi 6621 6622test -z "$STRIP" && STRIP=: 6623 6624 6625 6626 6627 6628 6629if test -n "$ac_tool_prefix"; then 6630 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6631set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6633$as_echo_n "checking for $ac_word... " >&6; } 6634if ${ac_cv_prog_RANLIB+:} false; then : 6635 $as_echo_n "(cached) " >&6 6636else 6637 if test -n "$RANLIB"; then 6638 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6639else 6640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6641for as_dir in $PATH 6642do 6643 IFS=$as_save_IFS 6644 test -z "$as_dir" && as_dir=. 6645 for ac_exec_ext in '' $ac_executable_extensions; do 6646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6647 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6649 break 2 6650 fi 6651done 6652 done 6653IFS=$as_save_IFS 6654 6655fi 6656fi 6657RANLIB=$ac_cv_prog_RANLIB 6658if test -n "$RANLIB"; then 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6660$as_echo "$RANLIB" >&6; } 6661else 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6663$as_echo "no" >&6; } 6664fi 6665 6666 6667fi 6668if test -z "$ac_cv_prog_RANLIB"; then 6669 ac_ct_RANLIB=$RANLIB 6670 # Extract the first word of "ranlib", so it can be a program name with args. 6671set dummy ranlib; ac_word=$2 6672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6673$as_echo_n "checking for $ac_word... " >&6; } 6674if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6675 $as_echo_n "(cached) " >&6 6676else 6677 if test -n "$ac_ct_RANLIB"; then 6678 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6679else 6680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6681for as_dir in $PATH 6682do 6683 IFS=$as_save_IFS 6684 test -z "$as_dir" && as_dir=. 6685 for ac_exec_ext in '' $ac_executable_extensions; do 6686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6687 ac_cv_prog_ac_ct_RANLIB="ranlib" 6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6689 break 2 6690 fi 6691done 6692 done 6693IFS=$as_save_IFS 6694 6695fi 6696fi 6697ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6698if test -n "$ac_ct_RANLIB"; then 6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6700$as_echo "$ac_ct_RANLIB" >&6; } 6701else 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6703$as_echo "no" >&6; } 6704fi 6705 6706 if test "x$ac_ct_RANLIB" = x; then 6707 RANLIB=":" 6708 else 6709 case $cross_compiling:$ac_tool_warned in 6710yes:) 6711{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6713ac_tool_warned=yes ;; 6714esac 6715 RANLIB=$ac_ct_RANLIB 6716 fi 6717else 6718 RANLIB="$ac_cv_prog_RANLIB" 6719fi 6720 6721test -z "$RANLIB" && RANLIB=: 6722 6723 6724 6725 6726 6727 6728# Determine commands to create old-style static archives. 6729old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6730old_postinstall_cmds='chmod 644 $oldlib' 6731old_postuninstall_cmds= 6732 6733if test -n "$RANLIB"; then 6734 case $host_os in 6735 openbsd*) 6736 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6737 ;; 6738 *) 6739 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6740 ;; 6741 esac 6742 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6743fi 6744 6745case $host_os in 6746 darwin*) 6747 lock_old_archive_extraction=yes ;; 6748 *) 6749 lock_old_archive_extraction=no ;; 6750esac 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790# If no C compiler was specified, use CC. 6791LTCC=${LTCC-"$CC"} 6792 6793# If no C compiler flags were specified, use CFLAGS. 6794LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6795 6796# Allow CC to be a program name with arguments. 6797compiler=$CC 6798 6799 6800# Check for command to grab the raw symbol name followed by C symbol from nm. 6801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6802$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6803if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6804 $as_echo_n "(cached) " >&6 6805else 6806 6807# These are sane defaults that work on at least a few old systems. 6808# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6809 6810# Character class describing NM global symbol codes. 6811symcode='[BCDEGRST]' 6812 6813# Regexp to match symbols that can be accessed directly from C. 6814sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6815 6816# Define system-specific variables. 6817case $host_os in 6818aix*) 6819 symcode='[BCDT]' 6820 ;; 6821cygwin* | mingw* | pw32* | cegcc*) 6822 symcode='[ABCDGISTW]' 6823 ;; 6824hpux*) 6825 if test "$host_cpu" = ia64; then 6826 symcode='[ABCDEGRST]' 6827 fi 6828 ;; 6829irix* | nonstopux*) 6830 symcode='[BCDEGRST]' 6831 ;; 6832osf*) 6833 symcode='[BCDEGQRST]' 6834 ;; 6835solaris*) 6836 symcode='[BDRT]' 6837 ;; 6838sco3.2v5*) 6839 symcode='[DT]' 6840 ;; 6841sysv4.2uw2*) 6842 symcode='[DT]' 6843 ;; 6844sysv5* | sco5v6* | unixware* | OpenUNIX*) 6845 symcode='[ABDT]' 6846 ;; 6847sysv4) 6848 symcode='[DFNSTU]' 6849 ;; 6850esac 6851 6852# If we're using GNU nm, then use its standard symbol codes. 6853case `$NM -V 2>&1` in 6854*GNU* | *'with BFD'*) 6855 symcode='[ABCDGIRSTW]' ;; 6856esac 6857 6858# Transform an extracted symbol line into a proper C declaration. 6859# Some systems (esp. on ia64) link data and code symbols differently, 6860# so use this general approach. 6861lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6862 6863# Transform an extracted symbol line into symbol name and symbol address 6864lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6865lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6866 6867# Handle CRLF in mingw tool chain 6868opt_cr= 6869case $build_os in 6870mingw*) 6871 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6872 ;; 6873esac 6874 6875# Try without a prefix underscore, then with it. 6876for ac_symprfx in "" "_"; do 6877 6878 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6879 symxfrm="\\1 $ac_symprfx\\2 \\2" 6880 6881 # Write the raw and C identifiers. 6882 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6883 # Fake it for dumpbin and say T for any non-static function 6884 # and D for any global variable. 6885 # Also find C++ and __fastcall symbols from MSVC++, 6886 # which start with @ or ?. 6887 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6888" {last_section=section; section=\$ 3};"\ 6889" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6890" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6891" \$ 0!~/External *\|/{next};"\ 6892" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6893" {if(hide[section]) next};"\ 6894" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6895" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6896" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6897" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6898" ' prfx=^$ac_symprfx" 6899 else 6900 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6901 fi 6902 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6903 6904 # Check to see that the pipe works correctly. 6905 pipe_works=no 6906 6907 rm -f conftest* 6908 cat > conftest.$ac_ext <<_LT_EOF 6909#ifdef __cplusplus 6910extern "C" { 6911#endif 6912char nm_test_var; 6913void nm_test_func(void); 6914void nm_test_func(void){} 6915#ifdef __cplusplus 6916} 6917#endif 6918int main(){nm_test_var='a';nm_test_func();return(0);} 6919_LT_EOF 6920 6921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6922 (eval $ac_compile) 2>&5 6923 ac_status=$? 6924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6925 test $ac_status = 0; }; then 6926 # Now try to grab the symbols. 6927 nlist=conftest.nm 6928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6929 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6930 ac_status=$? 6931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6932 test $ac_status = 0; } && test -s "$nlist"; then 6933 # Try sorting and uniquifying the output. 6934 if sort "$nlist" | uniq > "$nlist"T; then 6935 mv -f "$nlist"T "$nlist" 6936 else 6937 rm -f "$nlist"T 6938 fi 6939 6940 # Make sure that we snagged all the symbols we need. 6941 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6942 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6943 cat <<_LT_EOF > conftest.$ac_ext 6944/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6945#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6946/* DATA imports from DLLs on WIN32 con't be const, because runtime 6947 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6948# define LT_DLSYM_CONST 6949#elif defined(__osf__) 6950/* This system does not cope well with relocations in const data. */ 6951# define LT_DLSYM_CONST 6952#else 6953# define LT_DLSYM_CONST const 6954#endif 6955 6956#ifdef __cplusplus 6957extern "C" { 6958#endif 6959 6960_LT_EOF 6961 # Now generate the symbol file. 6962 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6963 6964 cat <<_LT_EOF >> conftest.$ac_ext 6965 6966/* The mapping between symbol names and symbols. */ 6967LT_DLSYM_CONST struct { 6968 const char *name; 6969 void *address; 6970} 6971lt__PROGRAM__LTX_preloaded_symbols[] = 6972{ 6973 { "@PROGRAM@", (void *) 0 }, 6974_LT_EOF 6975 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6976 cat <<\_LT_EOF >> conftest.$ac_ext 6977 {0, (void *) 0} 6978}; 6979 6980/* This works around a problem in FreeBSD linker */ 6981#ifdef FREEBSD_WORKAROUND 6982static const void *lt_preloaded_setup() { 6983 return lt__PROGRAM__LTX_preloaded_symbols; 6984} 6985#endif 6986 6987#ifdef __cplusplus 6988} 6989#endif 6990_LT_EOF 6991 # Now try linking the two files. 6992 mv conftest.$ac_objext conftstm.$ac_objext 6993 lt_globsym_save_LIBS=$LIBS 6994 lt_globsym_save_CFLAGS=$CFLAGS 6995 LIBS="conftstm.$ac_objext" 6996 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6998 (eval $ac_link) 2>&5 6999 ac_status=$? 7000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7001 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7002 pipe_works=yes 7003 fi 7004 LIBS=$lt_globsym_save_LIBS 7005 CFLAGS=$lt_globsym_save_CFLAGS 7006 else 7007 echo "cannot find nm_test_func in $nlist" >&5 7008 fi 7009 else 7010 echo "cannot find nm_test_var in $nlist" >&5 7011 fi 7012 else 7013 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7014 fi 7015 else 7016 echo "$progname: failed program was:" >&5 7017 cat conftest.$ac_ext >&5 7018 fi 7019 rm -rf conftest* conftst* 7020 7021 # Do not use the global_symbol_pipe unless it works. 7022 if test "$pipe_works" = yes; then 7023 break 7024 else 7025 lt_cv_sys_global_symbol_pipe= 7026 fi 7027done 7028 7029fi 7030 7031if test -z "$lt_cv_sys_global_symbol_pipe"; then 7032 lt_cv_sys_global_symbol_to_cdecl= 7033fi 7034if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7036$as_echo "failed" >&6; } 7037else 7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7039$as_echo "ok" >&6; } 7040fi 7041 7042# Response file support. 7043if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7044 nm_file_list_spec='@' 7045elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7046 nm_file_list_spec='@' 7047fi 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7076$as_echo_n "checking for sysroot... " >&6; } 7077 7078# Check whether --with-sysroot was given. 7079if test "${with_sysroot+set}" = set; then : 7080 withval=$with_sysroot; 7081else 7082 with_sysroot=no 7083fi 7084 7085 7086lt_sysroot= 7087case ${with_sysroot} in #( 7088 yes) 7089 if test "$GCC" = yes; then 7090 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7091 fi 7092 ;; #( 7093 /*) 7094 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7095 ;; #( 7096 no|'') 7097 ;; #( 7098 *) 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7100$as_echo "${with_sysroot}" >&6; } 7101 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7102 ;; 7103esac 7104 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7106$as_echo "${lt_sysroot:-no}" >&6; } 7107 7108 7109 7110 7111 7112# Check whether --enable-libtool-lock was given. 7113if test "${enable_libtool_lock+set}" = set; then : 7114 enableval=$enable_libtool_lock; 7115fi 7116 7117test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7118 7119# Some flags need to be propagated to the compiler or linker for good 7120# libtool support. 7121case $host in 7122ia64-*-hpux*) 7123 # Find out which ABI we are using. 7124 echo 'int i;' > conftest.$ac_ext 7125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7126 (eval $ac_compile) 2>&5 7127 ac_status=$? 7128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7129 test $ac_status = 0; }; then 7130 case `/usr/bin/file conftest.$ac_objext` in 7131 *ELF-32*) 7132 HPUX_IA64_MODE="32" 7133 ;; 7134 *ELF-64*) 7135 HPUX_IA64_MODE="64" 7136 ;; 7137 esac 7138 fi 7139 rm -rf conftest* 7140 ;; 7141*-*-irix6*) 7142 # Find out which ABI we are using. 7143 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7145 (eval $ac_compile) 2>&5 7146 ac_status=$? 7147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7148 test $ac_status = 0; }; then 7149 if test "$lt_cv_prog_gnu_ld" = yes; then 7150 case `/usr/bin/file conftest.$ac_objext` in 7151 *32-bit*) 7152 LD="${LD-ld} -melf32bsmip" 7153 ;; 7154 *N32*) 7155 LD="${LD-ld} -melf32bmipn32" 7156 ;; 7157 *64-bit*) 7158 LD="${LD-ld} -melf64bmip" 7159 ;; 7160 esac 7161 else 7162 case `/usr/bin/file conftest.$ac_objext` in 7163 *32-bit*) 7164 LD="${LD-ld} -32" 7165 ;; 7166 *N32*) 7167 LD="${LD-ld} -n32" 7168 ;; 7169 *64-bit*) 7170 LD="${LD-ld} -64" 7171 ;; 7172 esac 7173 fi 7174 fi 7175 rm -rf conftest* 7176 ;; 7177 7178x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7179s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7180 # Find out which ABI we are using. 7181 echo 'int i;' > conftest.$ac_ext 7182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7183 (eval $ac_compile) 2>&5 7184 ac_status=$? 7185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7186 test $ac_status = 0; }; then 7187 case `/usr/bin/file conftest.o` in 7188 *32-bit*) 7189 case $host in 7190 x86_64-*kfreebsd*-gnu) 7191 LD="${LD-ld} -m elf_i386_fbsd" 7192 ;; 7193 x86_64-*linux*) 7194 LD="${LD-ld} -m elf_i386" 7195 ;; 7196 ppc64-*linux*|powerpc64-*linux*) 7197 LD="${LD-ld} -m elf32ppclinux" 7198 ;; 7199 s390x-*linux*) 7200 LD="${LD-ld} -m elf_s390" 7201 ;; 7202 sparc64-*linux*) 7203 LD="${LD-ld} -m elf32_sparc" 7204 ;; 7205 esac 7206 ;; 7207 *64-bit*) 7208 case $host in 7209 x86_64-*kfreebsd*-gnu) 7210 LD="${LD-ld} -m elf_x86_64_fbsd" 7211 ;; 7212 x86_64-*linux*) 7213 LD="${LD-ld} -m elf_x86_64" 7214 ;; 7215 ppc*-*linux*|powerpc*-*linux*) 7216 LD="${LD-ld} -m elf64ppc" 7217 ;; 7218 s390*-*linux*|s390*-*tpf*) 7219 LD="${LD-ld} -m elf64_s390" 7220 ;; 7221 sparc*-*linux*) 7222 LD="${LD-ld} -m elf64_sparc" 7223 ;; 7224 esac 7225 ;; 7226 esac 7227 fi 7228 rm -rf conftest* 7229 ;; 7230 7231*-*-sco3.2v5*) 7232 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7233 SAVE_CFLAGS="$CFLAGS" 7234 CFLAGS="$CFLAGS -belf" 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7236$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7237if ${lt_cv_cc_needs_belf+:} false; then : 7238 $as_echo_n "(cached) " >&6 7239else 7240 ac_ext=c 7241ac_cpp='$CPP $CPPFLAGS' 7242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7244ac_compiler_gnu=$ac_cv_c_compiler_gnu 7245 7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7247/* end confdefs.h. */ 7248 7249int 7250main () 7251{ 7252 7253 ; 7254 return 0; 7255} 7256_ACEOF 7257if ac_fn_c_try_link "$LINENO"; then : 7258 lt_cv_cc_needs_belf=yes 7259else 7260 lt_cv_cc_needs_belf=no 7261fi 7262rm -f core conftest.err conftest.$ac_objext \ 7263 conftest$ac_exeext conftest.$ac_ext 7264 ac_ext=c 7265ac_cpp='$CPP $CPPFLAGS' 7266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7268ac_compiler_gnu=$ac_cv_c_compiler_gnu 7269 7270fi 7271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7272$as_echo "$lt_cv_cc_needs_belf" >&6; } 7273 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7274 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7275 CFLAGS="$SAVE_CFLAGS" 7276 fi 7277 ;; 7278*-*solaris*) 7279 # Find out which ABI we are using. 7280 echo 'int i;' > conftest.$ac_ext 7281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7282 (eval $ac_compile) 2>&5 7283 ac_status=$? 7284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7285 test $ac_status = 0; }; then 7286 case `/usr/bin/file conftest.o` in 7287 *64-bit*) 7288 case $lt_cv_prog_gnu_ld in 7289 yes*) 7290 case $host in 7291 i?86-*-solaris*) 7292 LD="${LD-ld} -m elf_x86_64" 7293 ;; 7294 sparc*-*-solaris*) 7295 LD="${LD-ld} -m elf64_sparc" 7296 ;; 7297 esac 7298 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7299 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7300 LD="${LD-ld}_sol2" 7301 fi 7302 ;; 7303 *) 7304 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7305 LD="${LD-ld} -64" 7306 fi 7307 ;; 7308 esac 7309 ;; 7310 esac 7311 fi 7312 rm -rf conftest* 7313 ;; 7314esac 7315 7316need_locks="$enable_libtool_lock" 7317 7318if test -n "$ac_tool_prefix"; then 7319 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7320set dummy ${ac_tool_prefix}mt; ac_word=$2 7321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7322$as_echo_n "checking for $ac_word... " >&6; } 7323if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7324 $as_echo_n "(cached) " >&6 7325else 7326 if test -n "$MANIFEST_TOOL"; then 7327 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7328else 7329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7330for as_dir in $PATH 7331do 7332 IFS=$as_save_IFS 7333 test -z "$as_dir" && as_dir=. 7334 for ac_exec_ext in '' $ac_executable_extensions; do 7335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7336 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7338 break 2 7339 fi 7340done 7341 done 7342IFS=$as_save_IFS 7343 7344fi 7345fi 7346MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7347if test -n "$MANIFEST_TOOL"; then 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7349$as_echo "$MANIFEST_TOOL" >&6; } 7350else 7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7352$as_echo "no" >&6; } 7353fi 7354 7355 7356fi 7357if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7358 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7359 # Extract the first word of "mt", so it can be a program name with args. 7360set dummy mt; ac_word=$2 7361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7362$as_echo_n "checking for $ac_word... " >&6; } 7363if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7364 $as_echo_n "(cached) " >&6 7365else 7366 if test -n "$ac_ct_MANIFEST_TOOL"; then 7367 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7368else 7369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7370for as_dir in $PATH 7371do 7372 IFS=$as_save_IFS 7373 test -z "$as_dir" && as_dir=. 7374 for ac_exec_ext in '' $ac_executable_extensions; do 7375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7376 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7378 break 2 7379 fi 7380done 7381 done 7382IFS=$as_save_IFS 7383 7384fi 7385fi 7386ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7387if test -n "$ac_ct_MANIFEST_TOOL"; then 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7389$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7390else 7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7392$as_echo "no" >&6; } 7393fi 7394 7395 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7396 MANIFEST_TOOL=":" 7397 else 7398 case $cross_compiling:$ac_tool_warned in 7399yes:) 7400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7402ac_tool_warned=yes ;; 7403esac 7404 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7405 fi 7406else 7407 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7408fi 7409 7410test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7412$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7413if ${lt_cv_path_mainfest_tool+:} false; then : 7414 $as_echo_n "(cached) " >&6 7415else 7416 lt_cv_path_mainfest_tool=no 7417 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7418 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7419 cat conftest.err >&5 7420 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7421 lt_cv_path_mainfest_tool=yes 7422 fi 7423 rm -f conftest* 7424fi 7425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7426$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7427if test "x$lt_cv_path_mainfest_tool" != xyes; then 7428 MANIFEST_TOOL=: 7429fi 7430 7431 7432 7433 7434 7435 7436 case $host_os in 7437 rhapsody* | darwin*) 7438 if test -n "$ac_tool_prefix"; then 7439 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7440set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7442$as_echo_n "checking for $ac_word... " >&6; } 7443if ${ac_cv_prog_DSYMUTIL+:} false; then : 7444 $as_echo_n "(cached) " >&6 7445else 7446 if test -n "$DSYMUTIL"; then 7447 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7448else 7449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7450for as_dir in $PATH 7451do 7452 IFS=$as_save_IFS 7453 test -z "$as_dir" && as_dir=. 7454 for ac_exec_ext in '' $ac_executable_extensions; do 7455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7456 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7458 break 2 7459 fi 7460done 7461 done 7462IFS=$as_save_IFS 7463 7464fi 7465fi 7466DSYMUTIL=$ac_cv_prog_DSYMUTIL 7467if test -n "$DSYMUTIL"; then 7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7469$as_echo "$DSYMUTIL" >&6; } 7470else 7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7472$as_echo "no" >&6; } 7473fi 7474 7475 7476fi 7477if test -z "$ac_cv_prog_DSYMUTIL"; then 7478 ac_ct_DSYMUTIL=$DSYMUTIL 7479 # Extract the first word of "dsymutil", so it can be a program name with args. 7480set dummy dsymutil; ac_word=$2 7481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7482$as_echo_n "checking for $ac_word... " >&6; } 7483if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7484 $as_echo_n "(cached) " >&6 7485else 7486 if test -n "$ac_ct_DSYMUTIL"; then 7487 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7488else 7489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7490for as_dir in $PATH 7491do 7492 IFS=$as_save_IFS 7493 test -z "$as_dir" && as_dir=. 7494 for ac_exec_ext in '' $ac_executable_extensions; do 7495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7496 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7498 break 2 7499 fi 7500done 7501 done 7502IFS=$as_save_IFS 7503 7504fi 7505fi 7506ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7507if test -n "$ac_ct_DSYMUTIL"; then 7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7509$as_echo "$ac_ct_DSYMUTIL" >&6; } 7510else 7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7512$as_echo "no" >&6; } 7513fi 7514 7515 if test "x$ac_ct_DSYMUTIL" = x; then 7516 DSYMUTIL=":" 7517 else 7518 case $cross_compiling:$ac_tool_warned in 7519yes:) 7520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7522ac_tool_warned=yes ;; 7523esac 7524 DSYMUTIL=$ac_ct_DSYMUTIL 7525 fi 7526else 7527 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7528fi 7529 7530 if test -n "$ac_tool_prefix"; then 7531 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7532set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7534$as_echo_n "checking for $ac_word... " >&6; } 7535if ${ac_cv_prog_NMEDIT+:} false; then : 7536 $as_echo_n "(cached) " >&6 7537else 7538 if test -n "$NMEDIT"; then 7539 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7540else 7541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7542for as_dir in $PATH 7543do 7544 IFS=$as_save_IFS 7545 test -z "$as_dir" && as_dir=. 7546 for ac_exec_ext in '' $ac_executable_extensions; do 7547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7548 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7550 break 2 7551 fi 7552done 7553 done 7554IFS=$as_save_IFS 7555 7556fi 7557fi 7558NMEDIT=$ac_cv_prog_NMEDIT 7559if test -n "$NMEDIT"; then 7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7561$as_echo "$NMEDIT" >&6; } 7562else 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7564$as_echo "no" >&6; } 7565fi 7566 7567 7568fi 7569if test -z "$ac_cv_prog_NMEDIT"; then 7570 ac_ct_NMEDIT=$NMEDIT 7571 # Extract the first word of "nmedit", so it can be a program name with args. 7572set dummy nmedit; ac_word=$2 7573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7574$as_echo_n "checking for $ac_word... " >&6; } 7575if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7576 $as_echo_n "(cached) " >&6 7577else 7578 if test -n "$ac_ct_NMEDIT"; then 7579 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7580else 7581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7582for as_dir in $PATH 7583do 7584 IFS=$as_save_IFS 7585 test -z "$as_dir" && as_dir=. 7586 for ac_exec_ext in '' $ac_executable_extensions; do 7587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7588 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7590 break 2 7591 fi 7592done 7593 done 7594IFS=$as_save_IFS 7595 7596fi 7597fi 7598ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7599if test -n "$ac_ct_NMEDIT"; then 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7601$as_echo "$ac_ct_NMEDIT" >&6; } 7602else 7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7604$as_echo "no" >&6; } 7605fi 7606 7607 if test "x$ac_ct_NMEDIT" = x; then 7608 NMEDIT=":" 7609 else 7610 case $cross_compiling:$ac_tool_warned in 7611yes:) 7612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7614ac_tool_warned=yes ;; 7615esac 7616 NMEDIT=$ac_ct_NMEDIT 7617 fi 7618else 7619 NMEDIT="$ac_cv_prog_NMEDIT" 7620fi 7621 7622 if test -n "$ac_tool_prefix"; then 7623 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7624set dummy ${ac_tool_prefix}lipo; ac_word=$2 7625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7626$as_echo_n "checking for $ac_word... " >&6; } 7627if ${ac_cv_prog_LIPO+:} false; then : 7628 $as_echo_n "(cached) " >&6 7629else 7630 if test -n "$LIPO"; then 7631 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7632else 7633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7634for as_dir in $PATH 7635do 7636 IFS=$as_save_IFS 7637 test -z "$as_dir" && as_dir=. 7638 for ac_exec_ext in '' $ac_executable_extensions; do 7639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7640 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7642 break 2 7643 fi 7644done 7645 done 7646IFS=$as_save_IFS 7647 7648fi 7649fi 7650LIPO=$ac_cv_prog_LIPO 7651if test -n "$LIPO"; then 7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7653$as_echo "$LIPO" >&6; } 7654else 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7656$as_echo "no" >&6; } 7657fi 7658 7659 7660fi 7661if test -z "$ac_cv_prog_LIPO"; then 7662 ac_ct_LIPO=$LIPO 7663 # Extract the first word of "lipo", so it can be a program name with args. 7664set dummy lipo; ac_word=$2 7665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7666$as_echo_n "checking for $ac_word... " >&6; } 7667if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7668 $as_echo_n "(cached) " >&6 7669else 7670 if test -n "$ac_ct_LIPO"; then 7671 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7672else 7673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7674for as_dir in $PATH 7675do 7676 IFS=$as_save_IFS 7677 test -z "$as_dir" && as_dir=. 7678 for ac_exec_ext in '' $ac_executable_extensions; do 7679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7680 ac_cv_prog_ac_ct_LIPO="lipo" 7681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7682 break 2 7683 fi 7684done 7685 done 7686IFS=$as_save_IFS 7687 7688fi 7689fi 7690ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7691if test -n "$ac_ct_LIPO"; then 7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7693$as_echo "$ac_ct_LIPO" >&6; } 7694else 7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7696$as_echo "no" >&6; } 7697fi 7698 7699 if test "x$ac_ct_LIPO" = x; then 7700 LIPO=":" 7701 else 7702 case $cross_compiling:$ac_tool_warned in 7703yes:) 7704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7706ac_tool_warned=yes ;; 7707esac 7708 LIPO=$ac_ct_LIPO 7709 fi 7710else 7711 LIPO="$ac_cv_prog_LIPO" 7712fi 7713 7714 if test -n "$ac_tool_prefix"; then 7715 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7716set dummy ${ac_tool_prefix}otool; ac_word=$2 7717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7718$as_echo_n "checking for $ac_word... " >&6; } 7719if ${ac_cv_prog_OTOOL+:} false; then : 7720 $as_echo_n "(cached) " >&6 7721else 7722 if test -n "$OTOOL"; then 7723 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7724else 7725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7726for as_dir in $PATH 7727do 7728 IFS=$as_save_IFS 7729 test -z "$as_dir" && as_dir=. 7730 for ac_exec_ext in '' $ac_executable_extensions; do 7731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7732 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7734 break 2 7735 fi 7736done 7737 done 7738IFS=$as_save_IFS 7739 7740fi 7741fi 7742OTOOL=$ac_cv_prog_OTOOL 7743if test -n "$OTOOL"; then 7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7745$as_echo "$OTOOL" >&6; } 7746else 7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7748$as_echo "no" >&6; } 7749fi 7750 7751 7752fi 7753if test -z "$ac_cv_prog_OTOOL"; then 7754 ac_ct_OTOOL=$OTOOL 7755 # Extract the first word of "otool", so it can be a program name with args. 7756set dummy otool; ac_word=$2 7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7758$as_echo_n "checking for $ac_word... " >&6; } 7759if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7760 $as_echo_n "(cached) " >&6 7761else 7762 if test -n "$ac_ct_OTOOL"; then 7763 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7764else 7765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7766for as_dir in $PATH 7767do 7768 IFS=$as_save_IFS 7769 test -z "$as_dir" && as_dir=. 7770 for ac_exec_ext in '' $ac_executable_extensions; do 7771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7772 ac_cv_prog_ac_ct_OTOOL="otool" 7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7774 break 2 7775 fi 7776done 7777 done 7778IFS=$as_save_IFS 7779 7780fi 7781fi 7782ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7783if test -n "$ac_ct_OTOOL"; then 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7785$as_echo "$ac_ct_OTOOL" >&6; } 7786else 7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7788$as_echo "no" >&6; } 7789fi 7790 7791 if test "x$ac_ct_OTOOL" = x; then 7792 OTOOL=":" 7793 else 7794 case $cross_compiling:$ac_tool_warned in 7795yes:) 7796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7798ac_tool_warned=yes ;; 7799esac 7800 OTOOL=$ac_ct_OTOOL 7801 fi 7802else 7803 OTOOL="$ac_cv_prog_OTOOL" 7804fi 7805 7806 if test -n "$ac_tool_prefix"; then 7807 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7808set dummy ${ac_tool_prefix}otool64; ac_word=$2 7809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7810$as_echo_n "checking for $ac_word... " >&6; } 7811if ${ac_cv_prog_OTOOL64+:} false; then : 7812 $as_echo_n "(cached) " >&6 7813else 7814 if test -n "$OTOOL64"; then 7815 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7816else 7817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7818for as_dir in $PATH 7819do 7820 IFS=$as_save_IFS 7821 test -z "$as_dir" && as_dir=. 7822 for ac_exec_ext in '' $ac_executable_extensions; do 7823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7824 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7826 break 2 7827 fi 7828done 7829 done 7830IFS=$as_save_IFS 7831 7832fi 7833fi 7834OTOOL64=$ac_cv_prog_OTOOL64 7835if test -n "$OTOOL64"; then 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7837$as_echo "$OTOOL64" >&6; } 7838else 7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7840$as_echo "no" >&6; } 7841fi 7842 7843 7844fi 7845if test -z "$ac_cv_prog_OTOOL64"; then 7846 ac_ct_OTOOL64=$OTOOL64 7847 # Extract the first word of "otool64", so it can be a program name with args. 7848set dummy otool64; ac_word=$2 7849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7850$as_echo_n "checking for $ac_word... " >&6; } 7851if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7852 $as_echo_n "(cached) " >&6 7853else 7854 if test -n "$ac_ct_OTOOL64"; then 7855 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7856else 7857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7858for as_dir in $PATH 7859do 7860 IFS=$as_save_IFS 7861 test -z "$as_dir" && as_dir=. 7862 for ac_exec_ext in '' $ac_executable_extensions; do 7863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7864 ac_cv_prog_ac_ct_OTOOL64="otool64" 7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7866 break 2 7867 fi 7868done 7869 done 7870IFS=$as_save_IFS 7871 7872fi 7873fi 7874ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7875if test -n "$ac_ct_OTOOL64"; then 7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7877$as_echo "$ac_ct_OTOOL64" >&6; } 7878else 7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7880$as_echo "no" >&6; } 7881fi 7882 7883 if test "x$ac_ct_OTOOL64" = x; then 7884 OTOOL64=":" 7885 else 7886 case $cross_compiling:$ac_tool_warned in 7887yes:) 7888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7890ac_tool_warned=yes ;; 7891esac 7892 OTOOL64=$ac_ct_OTOOL64 7893 fi 7894else 7895 OTOOL64="$ac_cv_prog_OTOOL64" 7896fi 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7925$as_echo_n "checking for -single_module linker flag... " >&6; } 7926if ${lt_cv_apple_cc_single_mod+:} false; then : 7927 $as_echo_n "(cached) " >&6 7928else 7929 lt_cv_apple_cc_single_mod=no 7930 if test -z "${LT_MULTI_MODULE}"; then 7931 # By default we will add the -single_module flag. You can override 7932 # by either setting the environment variable LT_MULTI_MODULE 7933 # non-empty at configure time, or by adding -multi_module to the 7934 # link flags. 7935 rm -rf libconftest.dylib* 7936 echo "int foo(void){return 1;}" > conftest.c 7937 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7938-dynamiclib -Wl,-single_module conftest.c" >&5 7939 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7940 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7941 _lt_result=$? 7942 # If there is a non-empty error log, and "single_module" 7943 # appears in it, assume the flag caused a linker warning 7944 if test -s conftest.err && $GREP single_module conftest.err; then 7945 cat conftest.err >&5 7946 # Otherwise, if the output was created with a 0 exit code from 7947 # the compiler, it worked. 7948 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7949 lt_cv_apple_cc_single_mod=yes 7950 else 7951 cat conftest.err >&5 7952 fi 7953 rm -rf libconftest.dylib* 7954 rm -f conftest.* 7955 fi 7956fi 7957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7958$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7959 7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7961$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7962if ${lt_cv_ld_exported_symbols_list+:} false; then : 7963 $as_echo_n "(cached) " >&6 7964else 7965 lt_cv_ld_exported_symbols_list=no 7966 save_LDFLAGS=$LDFLAGS 7967 echo "_main" > conftest.sym 7968 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7970/* end confdefs.h. */ 7971 7972int 7973main () 7974{ 7975 7976 ; 7977 return 0; 7978} 7979_ACEOF 7980if ac_fn_c_try_link "$LINENO"; then : 7981 lt_cv_ld_exported_symbols_list=yes 7982else 7983 lt_cv_ld_exported_symbols_list=no 7984fi 7985rm -f core conftest.err conftest.$ac_objext \ 7986 conftest$ac_exeext conftest.$ac_ext 7987 LDFLAGS="$save_LDFLAGS" 7988 7989fi 7990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7991$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7992 7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7994$as_echo_n "checking for -force_load linker flag... " >&6; } 7995if ${lt_cv_ld_force_load+:} false; then : 7996 $as_echo_n "(cached) " >&6 7997else 7998 lt_cv_ld_force_load=no 7999 cat > conftest.c << _LT_EOF 8000int forced_loaded() { return 2;} 8001_LT_EOF 8002 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8003 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8004 echo "$AR cru libconftest.a conftest.o" >&5 8005 $AR cru libconftest.a conftest.o 2>&5 8006 echo "$RANLIB libconftest.a" >&5 8007 $RANLIB libconftest.a 2>&5 8008 cat > conftest.c << _LT_EOF 8009int main() { return 0;} 8010_LT_EOF 8011 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8012 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8013 _lt_result=$? 8014 if test -s conftest.err && $GREP force_load conftest.err; then 8015 cat conftest.err >&5 8016 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8017 lt_cv_ld_force_load=yes 8018 else 8019 cat conftest.err >&5 8020 fi 8021 rm -f conftest.err libconftest.a conftest conftest.c 8022 rm -rf conftest.dSYM 8023 8024fi 8025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8026$as_echo "$lt_cv_ld_force_load" >&6; } 8027 case $host_os in 8028 rhapsody* | darwin1.[012]) 8029 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8030 darwin1.*) 8031 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8032 darwin*) # darwin 5.x on 8033 # if running on 10.5 or later, the deployment target defaults 8034 # to the OS version, if on x86, and 10.4, the deployment 8035 # target defaults to 10.4. Don't you love it? 8036 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8037 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8038 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8039 10.[012]*) 8040 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8041 10.*) 8042 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8043 esac 8044 ;; 8045 esac 8046 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8047 _lt_dar_single_mod='$single_module' 8048 fi 8049 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8050 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8051 else 8052 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8053 fi 8054 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8055 _lt_dsymutil='~$DSYMUTIL $lib || :' 8056 else 8057 _lt_dsymutil= 8058 fi 8059 ;; 8060 esac 8061 8062for ac_header in dlfcn.h 8063do : 8064 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8065" 8066if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8067 cat >>confdefs.h <<_ACEOF 8068#define HAVE_DLFCN_H 1 8069_ACEOF 8070 8071fi 8072 8073done 8074 8075 8076 8077 8078 8079# Set options 8080# Check whether --enable-static was given. 8081if test "${enable_static+set}" = set; then : 8082 enableval=$enable_static; p=${PACKAGE-default} 8083 case $enableval in 8084 yes) enable_static=yes ;; 8085 no) enable_static=no ;; 8086 *) 8087 enable_static=no 8088 # Look at the argument we got. We use all the common list separators. 8089 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8090 for pkg in $enableval; do 8091 IFS="$lt_save_ifs" 8092 if test "X$pkg" = "X$p"; then 8093 enable_static=yes 8094 fi 8095 done 8096 IFS="$lt_save_ifs" 8097 ;; 8098 esac 8099else 8100 enable_static=no 8101fi 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 enable_dlopen=no 8113 8114 8115 enable_win32_dll=no 8116 8117 8118 # Check whether --enable-shared was given. 8119if test "${enable_shared+set}" = set; then : 8120 enableval=$enable_shared; p=${PACKAGE-default} 8121 case $enableval in 8122 yes) enable_shared=yes ;; 8123 no) enable_shared=no ;; 8124 *) 8125 enable_shared=no 8126 # Look at the argument we got. We use all the common list separators. 8127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8128 for pkg in $enableval; do 8129 IFS="$lt_save_ifs" 8130 if test "X$pkg" = "X$p"; then 8131 enable_shared=yes 8132 fi 8133 done 8134 IFS="$lt_save_ifs" 8135 ;; 8136 esac 8137else 8138 enable_shared=yes 8139fi 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151# Check whether --with-pic was given. 8152if test "${with_pic+set}" = set; then : 8153 withval=$with_pic; lt_p=${PACKAGE-default} 8154 case $withval in 8155 yes|no) pic_mode=$withval ;; 8156 *) 8157 pic_mode=default 8158 # Look at the argument we got. We use all the common list separators. 8159 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8160 for lt_pkg in $withval; do 8161 IFS="$lt_save_ifs" 8162 if test "X$lt_pkg" = "X$lt_p"; then 8163 pic_mode=yes 8164 fi 8165 done 8166 IFS="$lt_save_ifs" 8167 ;; 8168 esac 8169else 8170 pic_mode=default 8171fi 8172 8173 8174test -z "$pic_mode" && pic_mode=default 8175 8176 8177 8178 8179 8180 8181 8182 # Check whether --enable-fast-install was given. 8183if test "${enable_fast_install+set}" = set; then : 8184 enableval=$enable_fast_install; p=${PACKAGE-default} 8185 case $enableval in 8186 yes) enable_fast_install=yes ;; 8187 no) enable_fast_install=no ;; 8188 *) 8189 enable_fast_install=no 8190 # Look at the argument we got. We use all the common list separators. 8191 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8192 for pkg in $enableval; do 8193 IFS="$lt_save_ifs" 8194 if test "X$pkg" = "X$p"; then 8195 enable_fast_install=yes 8196 fi 8197 done 8198 IFS="$lt_save_ifs" 8199 ;; 8200 esac 8201else 8202 enable_fast_install=yes 8203fi 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215# This can be used to rebuild libtool when needed 8216LIBTOOL_DEPS="$ltmain" 8217 8218# Always use our own libtool. 8219LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250test -z "$LN_S" && LN_S="ln -s" 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265if test -n "${ZSH_VERSION+set}" ; then 8266 setopt NO_GLOB_SUBST 8267fi 8268 8269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8270$as_echo_n "checking for objdir... " >&6; } 8271if ${lt_cv_objdir+:} false; then : 8272 $as_echo_n "(cached) " >&6 8273else 8274 rm -f .libs 2>/dev/null 8275mkdir .libs 2>/dev/null 8276if test -d .libs; then 8277 lt_cv_objdir=.libs 8278else 8279 # MS-DOS does not allow filenames that begin with a dot. 8280 lt_cv_objdir=_libs 8281fi 8282rmdir .libs 2>/dev/null 8283fi 8284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8285$as_echo "$lt_cv_objdir" >&6; } 8286objdir=$lt_cv_objdir 8287 8288 8289 8290 8291 8292cat >>confdefs.h <<_ACEOF 8293#define LT_OBJDIR "$lt_cv_objdir/" 8294_ACEOF 8295 8296 8297 8298 8299case $host_os in 8300aix3*) 8301 # AIX sometimes has problems with the GCC collect2 program. For some 8302 # reason, if we set the COLLECT_NAMES environment variable, the problems 8303 # vanish in a puff of smoke. 8304 if test "X${COLLECT_NAMES+set}" != Xset; then 8305 COLLECT_NAMES= 8306 export COLLECT_NAMES 8307 fi 8308 ;; 8309esac 8310 8311# Global variables: 8312ofile=libtool 8313can_build_shared=yes 8314 8315# All known linkers require a `.a' archive for static linking (except MSVC, 8316# which needs '.lib'). 8317libext=a 8318 8319with_gnu_ld="$lt_cv_prog_gnu_ld" 8320 8321old_CC="$CC" 8322old_CFLAGS="$CFLAGS" 8323 8324# Set sane defaults for various variables 8325test -z "$CC" && CC=cc 8326test -z "$LTCC" && LTCC=$CC 8327test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8328test -z "$LD" && LD=ld 8329test -z "$ac_objext" && ac_objext=o 8330 8331for cc_temp in $compiler""; do 8332 case $cc_temp in 8333 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8334 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8335 \-*) ;; 8336 *) break;; 8337 esac 8338done 8339cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8340 8341 8342# Only perform the check for file, if the check method requires it 8343test -z "$MAGIC_CMD" && MAGIC_CMD=file 8344case $deplibs_check_method in 8345file_magic*) 8346 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8348$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8349if ${lt_cv_path_MAGIC_CMD+:} false; then : 8350 $as_echo_n "(cached) " >&6 8351else 8352 case $MAGIC_CMD in 8353[\\/*] | ?:[\\/]*) 8354 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8355 ;; 8356*) 8357 lt_save_MAGIC_CMD="$MAGIC_CMD" 8358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8359 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8360 for ac_dir in $ac_dummy; do 8361 IFS="$lt_save_ifs" 8362 test -z "$ac_dir" && ac_dir=. 8363 if test -f $ac_dir/${ac_tool_prefix}file; then 8364 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8365 if test -n "$file_magic_test_file"; then 8366 case $deplibs_check_method in 8367 "file_magic "*) 8368 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8369 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8370 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8371 $EGREP "$file_magic_regex" > /dev/null; then 8372 : 8373 else 8374 cat <<_LT_EOF 1>&2 8375 8376*** Warning: the command libtool uses to detect shared libraries, 8377*** $file_magic_cmd, produces output that libtool cannot recognize. 8378*** The result is that libtool may fail to recognize shared libraries 8379*** as such. This will affect the creation of libtool libraries that 8380*** depend on shared libraries, but programs linked with such libtool 8381*** libraries will work regardless of this problem. Nevertheless, you 8382*** may want to report the problem to your system manager and/or to 8383*** bug-libtool@gnu.org 8384 8385_LT_EOF 8386 fi ;; 8387 esac 8388 fi 8389 break 8390 fi 8391 done 8392 IFS="$lt_save_ifs" 8393 MAGIC_CMD="$lt_save_MAGIC_CMD" 8394 ;; 8395esac 8396fi 8397 8398MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8399if test -n "$MAGIC_CMD"; then 8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8401$as_echo "$MAGIC_CMD" >&6; } 8402else 8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8404$as_echo "no" >&6; } 8405fi 8406 8407 8408 8409 8410 8411if test -z "$lt_cv_path_MAGIC_CMD"; then 8412 if test -n "$ac_tool_prefix"; then 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8414$as_echo_n "checking for file... " >&6; } 8415if ${lt_cv_path_MAGIC_CMD+:} false; then : 8416 $as_echo_n "(cached) " >&6 8417else 8418 case $MAGIC_CMD in 8419[\\/*] | ?:[\\/]*) 8420 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8421 ;; 8422*) 8423 lt_save_MAGIC_CMD="$MAGIC_CMD" 8424 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8425 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8426 for ac_dir in $ac_dummy; do 8427 IFS="$lt_save_ifs" 8428 test -z "$ac_dir" && ac_dir=. 8429 if test -f $ac_dir/file; then 8430 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8431 if test -n "$file_magic_test_file"; then 8432 case $deplibs_check_method in 8433 "file_magic "*) 8434 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8435 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8436 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8437 $EGREP "$file_magic_regex" > /dev/null; then 8438 : 8439 else 8440 cat <<_LT_EOF 1>&2 8441 8442*** Warning: the command libtool uses to detect shared libraries, 8443*** $file_magic_cmd, produces output that libtool cannot recognize. 8444*** The result is that libtool may fail to recognize shared libraries 8445*** as such. This will affect the creation of libtool libraries that 8446*** depend on shared libraries, but programs linked with such libtool 8447*** libraries will work regardless of this problem. Nevertheless, you 8448*** may want to report the problem to your system manager and/or to 8449*** bug-libtool@gnu.org 8450 8451_LT_EOF 8452 fi ;; 8453 esac 8454 fi 8455 break 8456 fi 8457 done 8458 IFS="$lt_save_ifs" 8459 MAGIC_CMD="$lt_save_MAGIC_CMD" 8460 ;; 8461esac 8462fi 8463 8464MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8465if test -n "$MAGIC_CMD"; then 8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8467$as_echo "$MAGIC_CMD" >&6; } 8468else 8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8470$as_echo "no" >&6; } 8471fi 8472 8473 8474 else 8475 MAGIC_CMD=: 8476 fi 8477fi 8478 8479 fi 8480 ;; 8481esac 8482 8483# Use C for the default configuration in the libtool script 8484 8485lt_save_CC="$CC" 8486ac_ext=c 8487ac_cpp='$CPP $CPPFLAGS' 8488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8490ac_compiler_gnu=$ac_cv_c_compiler_gnu 8491 8492 8493# Source file extension for C test sources. 8494ac_ext=c 8495 8496# Object file extension for compiled C test sources. 8497objext=o 8498objext=$objext 8499 8500# Code to be used in simple compile tests 8501lt_simple_compile_test_code="int some_variable = 0;" 8502 8503# Code to be used in simple link tests 8504lt_simple_link_test_code='int main(){return(0);}' 8505 8506 8507 8508 8509 8510 8511 8512# If no C compiler was specified, use CC. 8513LTCC=${LTCC-"$CC"} 8514 8515# If no C compiler flags were specified, use CFLAGS. 8516LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8517 8518# Allow CC to be a program name with arguments. 8519compiler=$CC 8520 8521# Save the default compiler, since it gets overwritten when the other 8522# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8523compiler_DEFAULT=$CC 8524 8525# save warnings/boilerplate of simple test code 8526ac_outfile=conftest.$ac_objext 8527echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8528eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8529_lt_compiler_boilerplate=`cat conftest.err` 8530$RM conftest* 8531 8532ac_outfile=conftest.$ac_objext 8533echo "$lt_simple_link_test_code" >conftest.$ac_ext 8534eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8535_lt_linker_boilerplate=`cat conftest.err` 8536$RM -r conftest* 8537 8538 8539## CAVEAT EMPTOR: 8540## There is no encapsulation within the following macros, do not change 8541## the running order or otherwise move them around unless you know exactly 8542## what you are doing... 8543if test -n "$compiler"; then 8544 8545lt_prog_compiler_no_builtin_flag= 8546 8547if test "$GCC" = yes; then 8548 case $cc_basename in 8549 nvcc*) 8550 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8551 *) 8552 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8553 esac 8554 8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8556$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8557if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8558 $as_echo_n "(cached) " >&6 8559else 8560 lt_cv_prog_compiler_rtti_exceptions=no 8561 ac_outfile=conftest.$ac_objext 8562 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8563 lt_compiler_flag="-fno-rtti -fno-exceptions" 8564 # Insert the option either (1) after the last *FLAGS variable, or 8565 # (2) before a word containing "conftest.", or (3) at the end. 8566 # Note that $ac_compile itself does not contain backslashes and begins 8567 # with a dollar sign (not a hyphen), so the echo should work correctly. 8568 # The option is referenced via a variable to avoid confusing sed. 8569 lt_compile=`echo "$ac_compile" | $SED \ 8570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8572 -e 's:$: $lt_compiler_flag:'` 8573 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8574 (eval "$lt_compile" 2>conftest.err) 8575 ac_status=$? 8576 cat conftest.err >&5 8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8578 if (exit $ac_status) && test -s "$ac_outfile"; then 8579 # The compiler can only warn and ignore the option if not recognized 8580 # So say no if there are warnings other than the usual output. 8581 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8583 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8584 lt_cv_prog_compiler_rtti_exceptions=yes 8585 fi 8586 fi 8587 $RM conftest* 8588 8589fi 8590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8591$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8592 8593if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8594 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8595else 8596 : 8597fi 8598 8599fi 8600 8601 8602 8603 8604 8605 8606 lt_prog_compiler_wl= 8607lt_prog_compiler_pic= 8608lt_prog_compiler_static= 8609 8610 8611 if test "$GCC" = yes; then 8612 lt_prog_compiler_wl='-Wl,' 8613 lt_prog_compiler_static='-static' 8614 8615 case $host_os in 8616 aix*) 8617 # All AIX code is PIC. 8618 if test "$host_cpu" = ia64; then 8619 # AIX 5 now supports IA64 processor 8620 lt_prog_compiler_static='-Bstatic' 8621 fi 8622 ;; 8623 8624 amigaos*) 8625 case $host_cpu in 8626 powerpc) 8627 # see comment about AmigaOS4 .so support 8628 lt_prog_compiler_pic='-fPIC' 8629 ;; 8630 m68k) 8631 # FIXME: we need at least 68020 code to build shared libraries, but 8632 # adding the `-m68020' flag to GCC prevents building anything better, 8633 # like `-m68040'. 8634 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8635 ;; 8636 esac 8637 ;; 8638 8639 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8640 # PIC is the default for these OSes. 8641 ;; 8642 8643 mingw* | cygwin* | pw32* | os2* | cegcc*) 8644 # This hack is so that the source file can tell whether it is being 8645 # built for inclusion in a dll (and should export symbols for example). 8646 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8647 # (--disable-auto-import) libraries 8648 lt_prog_compiler_pic='-DDLL_EXPORT' 8649 ;; 8650 8651 darwin* | rhapsody*) 8652 # PIC is the default on this platform 8653 # Common symbols not allowed in MH_DYLIB files 8654 lt_prog_compiler_pic='-fno-common' 8655 ;; 8656 8657 haiku*) 8658 # PIC is the default for Haiku. 8659 # The "-static" flag exists, but is broken. 8660 lt_prog_compiler_static= 8661 ;; 8662 8663 hpux*) 8664 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8665 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8666 # sets the default TLS model and affects inlining. 8667 case $host_cpu in 8668 hppa*64*) 8669 # +Z the default 8670 ;; 8671 *) 8672 lt_prog_compiler_pic='-fPIC' 8673 ;; 8674 esac 8675 ;; 8676 8677 interix[3-9]*) 8678 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8679 # Instead, we relocate shared libraries at runtime. 8680 ;; 8681 8682 msdosdjgpp*) 8683 # Just because we use GCC doesn't mean we suddenly get shared libraries 8684 # on systems that don't support them. 8685 lt_prog_compiler_can_build_shared=no 8686 enable_shared=no 8687 ;; 8688 8689 *nto* | *qnx*) 8690 # QNX uses GNU C++, but need to define -shared option too, otherwise 8691 # it will coredump. 8692 lt_prog_compiler_pic='-fPIC -shared' 8693 ;; 8694 8695 sysv4*MP*) 8696 if test -d /usr/nec; then 8697 lt_prog_compiler_pic=-Kconform_pic 8698 fi 8699 ;; 8700 8701 *) 8702 lt_prog_compiler_pic='-fPIC' 8703 ;; 8704 esac 8705 8706 case $cc_basename in 8707 nvcc*) # Cuda Compiler Driver 2.2 8708 lt_prog_compiler_wl='-Xlinker ' 8709 if test -n "$lt_prog_compiler_pic"; then 8710 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8711 fi 8712 ;; 8713 esac 8714 else 8715 # PORTME Check for flag to pass linker flags through the system compiler. 8716 case $host_os in 8717 aix*) 8718 lt_prog_compiler_wl='-Wl,' 8719 if test "$host_cpu" = ia64; then 8720 # AIX 5 now supports IA64 processor 8721 lt_prog_compiler_static='-Bstatic' 8722 else 8723 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8724 fi 8725 ;; 8726 8727 mingw* | cygwin* | pw32* | os2* | cegcc*) 8728 # This hack is so that the source file can tell whether it is being 8729 # built for inclusion in a dll (and should export symbols for example). 8730 lt_prog_compiler_pic='-DDLL_EXPORT' 8731 ;; 8732 8733 hpux9* | hpux10* | hpux11*) 8734 lt_prog_compiler_wl='-Wl,' 8735 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8736 # not for PA HP-UX. 8737 case $host_cpu in 8738 hppa*64*|ia64*) 8739 # +Z the default 8740 ;; 8741 *) 8742 lt_prog_compiler_pic='+Z' 8743 ;; 8744 esac 8745 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8746 lt_prog_compiler_static='${wl}-a ${wl}archive' 8747 ;; 8748 8749 irix5* | irix6* | nonstopux*) 8750 lt_prog_compiler_wl='-Wl,' 8751 # PIC (with -KPIC) is the default. 8752 lt_prog_compiler_static='-non_shared' 8753 ;; 8754 8755 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8756 case $cc_basename in 8757 # old Intel for x86_64 which still supported -KPIC. 8758 ecc*) 8759 lt_prog_compiler_wl='-Wl,' 8760 lt_prog_compiler_pic='-KPIC' 8761 lt_prog_compiler_static='-static' 8762 ;; 8763 # icc used to be incompatible with GCC. 8764 # ICC 10 doesn't accept -KPIC any more. 8765 icc* | ifort*) 8766 lt_prog_compiler_wl='-Wl,' 8767 lt_prog_compiler_pic='-fPIC' 8768 lt_prog_compiler_static='-static' 8769 ;; 8770 # Lahey Fortran 8.1. 8771 lf95*) 8772 lt_prog_compiler_wl='-Wl,' 8773 lt_prog_compiler_pic='--shared' 8774 lt_prog_compiler_static='--static' 8775 ;; 8776 nagfor*) 8777 # NAG Fortran compiler 8778 lt_prog_compiler_wl='-Wl,-Wl,,' 8779 lt_prog_compiler_pic='-PIC' 8780 lt_prog_compiler_static='-Bstatic' 8781 ;; 8782 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8783 # Portland Group compilers (*not* the Pentium gcc compiler, 8784 # which looks to be a dead project) 8785 lt_prog_compiler_wl='-Wl,' 8786 lt_prog_compiler_pic='-fpic' 8787 lt_prog_compiler_static='-Bstatic' 8788 ;; 8789 ccc*) 8790 lt_prog_compiler_wl='-Wl,' 8791 # All Alpha code is PIC. 8792 lt_prog_compiler_static='-non_shared' 8793 ;; 8794 xl* | bgxl* | bgf* | mpixl*) 8795 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8796 lt_prog_compiler_wl='-Wl,' 8797 lt_prog_compiler_pic='-qpic' 8798 lt_prog_compiler_static='-qstaticlink' 8799 ;; 8800 *) 8801 case `$CC -V 2>&1 | sed 5q` in 8802 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8803 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8804 lt_prog_compiler_pic='-KPIC' 8805 lt_prog_compiler_static='-Bstatic' 8806 lt_prog_compiler_wl='' 8807 ;; 8808 *Sun\ F* | *Sun*Fortran*) 8809 lt_prog_compiler_pic='-KPIC' 8810 lt_prog_compiler_static='-Bstatic' 8811 lt_prog_compiler_wl='-Qoption ld ' 8812 ;; 8813 *Sun\ C*) 8814 # Sun C 5.9 8815 lt_prog_compiler_pic='-KPIC' 8816 lt_prog_compiler_static='-Bstatic' 8817 lt_prog_compiler_wl='-Wl,' 8818 ;; 8819 *Intel*\ [CF]*Compiler*) 8820 lt_prog_compiler_wl='-Wl,' 8821 lt_prog_compiler_pic='-fPIC' 8822 lt_prog_compiler_static='-static' 8823 ;; 8824 *Portland\ Group*) 8825 lt_prog_compiler_wl='-Wl,' 8826 lt_prog_compiler_pic='-fpic' 8827 lt_prog_compiler_static='-Bstatic' 8828 ;; 8829 esac 8830 ;; 8831 esac 8832 ;; 8833 8834 newsos6) 8835 lt_prog_compiler_pic='-KPIC' 8836 lt_prog_compiler_static='-Bstatic' 8837 ;; 8838 8839 *nto* | *qnx*) 8840 # QNX uses GNU C++, but need to define -shared option too, otherwise 8841 # it will coredump. 8842 lt_prog_compiler_pic='-fPIC -shared' 8843 ;; 8844 8845 osf3* | osf4* | osf5*) 8846 lt_prog_compiler_wl='-Wl,' 8847 # All OSF/1 code is PIC. 8848 lt_prog_compiler_static='-non_shared' 8849 ;; 8850 8851 rdos*) 8852 lt_prog_compiler_static='-non_shared' 8853 ;; 8854 8855 solaris*) 8856 lt_prog_compiler_pic='-KPIC' 8857 lt_prog_compiler_static='-Bstatic' 8858 case $cc_basename in 8859 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8860 lt_prog_compiler_wl='-Qoption ld ';; 8861 *) 8862 lt_prog_compiler_wl='-Wl,';; 8863 esac 8864 ;; 8865 8866 sunos4*) 8867 lt_prog_compiler_wl='-Qoption ld ' 8868 lt_prog_compiler_pic='-PIC' 8869 lt_prog_compiler_static='-Bstatic' 8870 ;; 8871 8872 sysv4 | sysv4.2uw2* | sysv4.3*) 8873 lt_prog_compiler_wl='-Wl,' 8874 lt_prog_compiler_pic='-KPIC' 8875 lt_prog_compiler_static='-Bstatic' 8876 ;; 8877 8878 sysv4*MP*) 8879 if test -d /usr/nec ;then 8880 lt_prog_compiler_pic='-Kconform_pic' 8881 lt_prog_compiler_static='-Bstatic' 8882 fi 8883 ;; 8884 8885 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8886 lt_prog_compiler_wl='-Wl,' 8887 lt_prog_compiler_pic='-KPIC' 8888 lt_prog_compiler_static='-Bstatic' 8889 ;; 8890 8891 unicos*) 8892 lt_prog_compiler_wl='-Wl,' 8893 lt_prog_compiler_can_build_shared=no 8894 ;; 8895 8896 uts4*) 8897 lt_prog_compiler_pic='-pic' 8898 lt_prog_compiler_static='-Bstatic' 8899 ;; 8900 8901 *) 8902 lt_prog_compiler_can_build_shared=no 8903 ;; 8904 esac 8905 fi 8906 8907case $host_os in 8908 # For platforms which do not support PIC, -DPIC is meaningless: 8909 *djgpp*) 8910 lt_prog_compiler_pic= 8911 ;; 8912 *) 8913 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8914 ;; 8915esac 8916 8917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8918$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8919if ${lt_cv_prog_compiler_pic+:} false; then : 8920 $as_echo_n "(cached) " >&6 8921else 8922 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8923fi 8924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8925$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8926lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8927 8928# 8929# Check to make sure the PIC flag actually works. 8930# 8931if test -n "$lt_prog_compiler_pic"; then 8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8933$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8934if ${lt_cv_prog_compiler_pic_works+:} false; then : 8935 $as_echo_n "(cached) " >&6 8936else 8937 lt_cv_prog_compiler_pic_works=no 8938 ac_outfile=conftest.$ac_objext 8939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8940 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8941 # Insert the option either (1) after the last *FLAGS variable, or 8942 # (2) before a word containing "conftest.", or (3) at the end. 8943 # Note that $ac_compile itself does not contain backslashes and begins 8944 # with a dollar sign (not a hyphen), so the echo should work correctly. 8945 # The option is referenced via a variable to avoid confusing sed. 8946 lt_compile=`echo "$ac_compile" | $SED \ 8947 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8948 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8949 -e 's:$: $lt_compiler_flag:'` 8950 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8951 (eval "$lt_compile" 2>conftest.err) 8952 ac_status=$? 8953 cat conftest.err >&5 8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8955 if (exit $ac_status) && test -s "$ac_outfile"; then 8956 # The compiler can only warn and ignore the option if not recognized 8957 # So say no if there are warnings other than the usual output. 8958 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8959 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8960 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8961 lt_cv_prog_compiler_pic_works=yes 8962 fi 8963 fi 8964 $RM conftest* 8965 8966fi 8967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8968$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8969 8970if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8971 case $lt_prog_compiler_pic in 8972 "" | " "*) ;; 8973 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8974 esac 8975else 8976 lt_prog_compiler_pic= 8977 lt_prog_compiler_can_build_shared=no 8978fi 8979 8980fi 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992# 8993# Check to make sure the static flag actually works. 8994# 8995wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8997$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8998if ${lt_cv_prog_compiler_static_works+:} false; then : 8999 $as_echo_n "(cached) " >&6 9000else 9001 lt_cv_prog_compiler_static_works=no 9002 save_LDFLAGS="$LDFLAGS" 9003 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9004 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9005 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9006 # The linker can only warn and ignore the option if not recognized 9007 # So say no if there are warnings 9008 if test -s conftest.err; then 9009 # Append any errors to the config.log. 9010 cat conftest.err 1>&5 9011 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9013 if diff conftest.exp conftest.er2 >/dev/null; then 9014 lt_cv_prog_compiler_static_works=yes 9015 fi 9016 else 9017 lt_cv_prog_compiler_static_works=yes 9018 fi 9019 fi 9020 $RM -r conftest* 9021 LDFLAGS="$save_LDFLAGS" 9022 9023fi 9024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9025$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9026 9027if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9028 : 9029else 9030 lt_prog_compiler_static= 9031fi 9032 9033 9034 9035 9036 9037 9038 9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9040$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9041if ${lt_cv_prog_compiler_c_o+:} false; then : 9042 $as_echo_n "(cached) " >&6 9043else 9044 lt_cv_prog_compiler_c_o=no 9045 $RM -r conftest 2>/dev/null 9046 mkdir conftest 9047 cd conftest 9048 mkdir out 9049 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9050 9051 lt_compiler_flag="-o out/conftest2.$ac_objext" 9052 # Insert the option either (1) after the last *FLAGS variable, or 9053 # (2) before a word containing "conftest.", or (3) at the end. 9054 # Note that $ac_compile itself does not contain backslashes and begins 9055 # with a dollar sign (not a hyphen), so the echo should work correctly. 9056 lt_compile=`echo "$ac_compile" | $SED \ 9057 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9059 -e 's:$: $lt_compiler_flag:'` 9060 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9061 (eval "$lt_compile" 2>out/conftest.err) 9062 ac_status=$? 9063 cat out/conftest.err >&5 9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9065 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9066 then 9067 # The compiler can only warn and ignore the option if not recognized 9068 # So say no if there are warnings 9069 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9070 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9071 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9072 lt_cv_prog_compiler_c_o=yes 9073 fi 9074 fi 9075 chmod u+w . 2>&5 9076 $RM conftest* 9077 # SGI C++ compiler will create directory out/ii_files/ for 9078 # template instantiation 9079 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9080 $RM out/* && rmdir out 9081 cd .. 9082 $RM -r conftest 9083 $RM conftest* 9084 9085fi 9086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9087$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9088 9089 9090 9091 9092 9093 9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9095$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9096if ${lt_cv_prog_compiler_c_o+:} false; then : 9097 $as_echo_n "(cached) " >&6 9098else 9099 lt_cv_prog_compiler_c_o=no 9100 $RM -r conftest 2>/dev/null 9101 mkdir conftest 9102 cd conftest 9103 mkdir out 9104 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9105 9106 lt_compiler_flag="-o out/conftest2.$ac_objext" 9107 # Insert the option either (1) after the last *FLAGS variable, or 9108 # (2) before a word containing "conftest.", or (3) at the end. 9109 # Note that $ac_compile itself does not contain backslashes and begins 9110 # with a dollar sign (not a hyphen), so the echo should work correctly. 9111 lt_compile=`echo "$ac_compile" | $SED \ 9112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9114 -e 's:$: $lt_compiler_flag:'` 9115 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9116 (eval "$lt_compile" 2>out/conftest.err) 9117 ac_status=$? 9118 cat out/conftest.err >&5 9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9120 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9121 then 9122 # The compiler can only warn and ignore the option if not recognized 9123 # So say no if there are warnings 9124 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9125 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9126 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9127 lt_cv_prog_compiler_c_o=yes 9128 fi 9129 fi 9130 chmod u+w . 2>&5 9131 $RM conftest* 9132 # SGI C++ compiler will create directory out/ii_files/ for 9133 # template instantiation 9134 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9135 $RM out/* && rmdir out 9136 cd .. 9137 $RM -r conftest 9138 $RM conftest* 9139 9140fi 9141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9142$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9143 9144 9145 9146 9147hard_links="nottested" 9148if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9149 # do not overwrite the value of need_locks provided by the user 9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9151$as_echo_n "checking if we can lock with hard links... " >&6; } 9152 hard_links=yes 9153 $RM conftest* 9154 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9155 touch conftest.a 9156 ln conftest.a conftest.b 2>&5 || hard_links=no 9157 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9159$as_echo "$hard_links" >&6; } 9160 if test "$hard_links" = no; then 9161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9162$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9163 need_locks=warn 9164 fi 9165else 9166 need_locks=no 9167fi 9168 9169 9170 9171 9172 9173 9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9175$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9176 9177 runpath_var= 9178 allow_undefined_flag= 9179 always_export_symbols=no 9180 archive_cmds= 9181 archive_expsym_cmds= 9182 compiler_needs_object=no 9183 enable_shared_with_static_runtimes=no 9184 export_dynamic_flag_spec= 9185 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9186 hardcode_automatic=no 9187 hardcode_direct=no 9188 hardcode_direct_absolute=no 9189 hardcode_libdir_flag_spec= 9190 hardcode_libdir_separator= 9191 hardcode_minus_L=no 9192 hardcode_shlibpath_var=unsupported 9193 inherit_rpath=no 9194 link_all_deplibs=unknown 9195 module_cmds= 9196 module_expsym_cmds= 9197 old_archive_from_new_cmds= 9198 old_archive_from_expsyms_cmds= 9199 thread_safe_flag_spec= 9200 whole_archive_flag_spec= 9201 # include_expsyms should be a list of space-separated symbols to be *always* 9202 # included in the symbol list 9203 include_expsyms= 9204 # exclude_expsyms can be an extended regexp of symbols to exclude 9205 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9206 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9207 # as well as any symbol that contains `d'. 9208 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9209 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9210 # platforms (ab)use it in PIC code, but their linkers get confused if 9211 # the symbol is explicitly referenced. Since portable code cannot 9212 # rely on this symbol name, it's probably fine to never include it in 9213 # preloaded symbol tables. 9214 # Exclude shared library initialization/finalization symbols. 9215 extract_expsyms_cmds= 9216 9217 case $host_os in 9218 cygwin* | mingw* | pw32* | cegcc*) 9219 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9220 # When not using gcc, we currently assume that we are using 9221 # Microsoft Visual C++. 9222 if test "$GCC" != yes; then 9223 with_gnu_ld=no 9224 fi 9225 ;; 9226 interix*) 9227 # we just hope/assume this is gcc and not c89 (= MSVC++) 9228 with_gnu_ld=yes 9229 ;; 9230 openbsd*) 9231 with_gnu_ld=no 9232 ;; 9233 linux* | k*bsd*-gnu | gnu*) 9234 link_all_deplibs=no 9235 ;; 9236 esac 9237 9238 ld_shlibs=yes 9239 9240 # On some targets, GNU ld is compatible enough with the native linker 9241 # that we're better off using the native interface for both. 9242 lt_use_gnu_ld_interface=no 9243 if test "$with_gnu_ld" = yes; then 9244 case $host_os in 9245 aix*) 9246 # The AIX port of GNU ld has always aspired to compatibility 9247 # with the native linker. However, as the warning in the GNU ld 9248 # block says, versions before 2.19.5* couldn't really create working 9249 # shared libraries, regardless of the interface used. 9250 case `$LD -v 2>&1` in 9251 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9252 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9253 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9254 *) 9255 lt_use_gnu_ld_interface=yes 9256 ;; 9257 esac 9258 ;; 9259 *) 9260 lt_use_gnu_ld_interface=yes 9261 ;; 9262 esac 9263 fi 9264 9265 if test "$lt_use_gnu_ld_interface" = yes; then 9266 # If archive_cmds runs LD, not CC, wlarc should be empty 9267 wlarc='${wl}' 9268 9269 # Set some defaults for GNU ld with shared library support. These 9270 # are reset later if shared libraries are not supported. Putting them 9271 # here allows them to be overridden if necessary. 9272 runpath_var=LD_RUN_PATH 9273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9274 export_dynamic_flag_spec='${wl}--export-dynamic' 9275 # ancient GNU ld didn't support --whole-archive et. al. 9276 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9277 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9278 else 9279 whole_archive_flag_spec= 9280 fi 9281 supports_anon_versioning=no 9282 case `$LD -v 2>&1` in 9283 *GNU\ gold*) supports_anon_versioning=yes ;; 9284 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9285 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9286 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9287 *\ 2.11.*) ;; # other 2.11 versions 9288 *) supports_anon_versioning=yes ;; 9289 esac 9290 9291 # See if GNU ld supports shared libraries. 9292 case $host_os in 9293 aix[3-9]*) 9294 # On AIX/PPC, the GNU linker is very broken 9295 if test "$host_cpu" != ia64; then 9296 ld_shlibs=no 9297 cat <<_LT_EOF 1>&2 9298 9299*** Warning: the GNU linker, at least up to release 2.19, is reported 9300*** to be unable to reliably create shared libraries on AIX. 9301*** Therefore, libtool is disabling shared libraries support. If you 9302*** really care for shared libraries, you may want to install binutils 9303*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9304*** You will then need to restart the configuration process. 9305 9306_LT_EOF 9307 fi 9308 ;; 9309 9310 amigaos*) 9311 case $host_cpu in 9312 powerpc) 9313 # see comment about AmigaOS4 .so support 9314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9315 archive_expsym_cmds='' 9316 ;; 9317 m68k) 9318 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)' 9319 hardcode_libdir_flag_spec='-L$libdir' 9320 hardcode_minus_L=yes 9321 ;; 9322 esac 9323 ;; 9324 9325 beos*) 9326 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9327 allow_undefined_flag=unsupported 9328 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9329 # support --undefined. This deserves some investigation. FIXME 9330 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9331 else 9332 ld_shlibs=no 9333 fi 9334 ;; 9335 9336 cygwin* | mingw* | pw32* | cegcc*) 9337 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9338 # as there is no search path for DLLs. 9339 hardcode_libdir_flag_spec='-L$libdir' 9340 export_dynamic_flag_spec='${wl}--export-all-symbols' 9341 allow_undefined_flag=unsupported 9342 always_export_symbols=no 9343 enable_shared_with_static_runtimes=yes 9344 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' 9345 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9346 9347 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9349 # If the export-symbols file already is a .def file (1st line 9350 # is EXPORTS), use it as is; otherwise, prepend... 9351 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9352 cp $export_symbols $output_objdir/$soname.def; 9353 else 9354 echo EXPORTS > $output_objdir/$soname.def; 9355 cat $export_symbols >> $output_objdir/$soname.def; 9356 fi~ 9357 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9358 else 9359 ld_shlibs=no 9360 fi 9361 ;; 9362 9363 haiku*) 9364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9365 link_all_deplibs=yes 9366 ;; 9367 9368 interix[3-9]*) 9369 hardcode_direct=no 9370 hardcode_shlibpath_var=no 9371 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9372 export_dynamic_flag_spec='${wl}-E' 9373 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9374 # Instead, shared libraries are loaded at an image base (0x10000000 by 9375 # default) and relocated if they conflict, which is a slow very memory 9376 # consuming and fragmenting process. To avoid this, we pick a random, 9377 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9378 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9379 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9380 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' 9381 ;; 9382 9383 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9384 tmp_diet=no 9385 if test "$host_os" = linux-dietlibc; then 9386 case $cc_basename in 9387 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9388 esac 9389 fi 9390 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9391 && test "$tmp_diet" = no 9392 then 9393 tmp_addflag=' $pic_flag' 9394 tmp_sharedflag='-shared' 9395 case $cc_basename,$host_cpu in 9396 pgcc*) # Portland Group C compiler 9397 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' 9398 tmp_addflag=' $pic_flag' 9399 ;; 9400 pgf77* | pgf90* | pgf95* | pgfortran*) 9401 # Portland Group f77 and f90 compilers 9402 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' 9403 tmp_addflag=' $pic_flag -Mnomain' ;; 9404 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9405 tmp_addflag=' -i_dynamic' ;; 9406 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9407 tmp_addflag=' -i_dynamic -nofor_main' ;; 9408 ifc* | ifort*) # Intel Fortran compiler 9409 tmp_addflag=' -nofor_main' ;; 9410 lf95*) # Lahey Fortran 8.1 9411 whole_archive_flag_spec= 9412 tmp_sharedflag='--shared' ;; 9413 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9414 tmp_sharedflag='-qmkshrobj' 9415 tmp_addflag= ;; 9416 nvcc*) # Cuda Compiler Driver 2.2 9417 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' 9418 compiler_needs_object=yes 9419 ;; 9420 esac 9421 case `$CC -V 2>&1 | sed 5q` in 9422 *Sun\ C*) # Sun C 5.9 9423 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' 9424 compiler_needs_object=yes 9425 tmp_sharedflag='-G' ;; 9426 *Sun\ F*) # Sun Fortran 8.3 9427 tmp_sharedflag='-G' ;; 9428 esac 9429 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9430 9431 if test "x$supports_anon_versioning" = xyes; then 9432 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9433 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9434 echo "local: *; };" >> $output_objdir/$libname.ver~ 9435 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9436 fi 9437 9438 case $cc_basename in 9439 xlf* | bgf* | bgxlf* | mpixlf*) 9440 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9441 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9443 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9444 if test "x$supports_anon_versioning" = xyes; then 9445 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9446 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9447 echo "local: *; };" >> $output_objdir/$libname.ver~ 9448 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9449 fi 9450 ;; 9451 esac 9452 else 9453 ld_shlibs=no 9454 fi 9455 ;; 9456 9457 netbsd* | netbsdelf*-gnu) 9458 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9459 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9460 wlarc= 9461 else 9462 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9463 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9464 fi 9465 ;; 9466 9467 solaris*) 9468 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9469 ld_shlibs=no 9470 cat <<_LT_EOF 1>&2 9471 9472*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9473*** create shared libraries on Solaris systems. Therefore, libtool 9474*** is disabling shared libraries support. We urge you to upgrade GNU 9475*** binutils to release 2.9.1 or newer. Another option is to modify 9476*** your PATH or compiler configuration so that the native linker is 9477*** used, and then restart. 9478 9479_LT_EOF 9480 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9481 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9482 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9483 else 9484 ld_shlibs=no 9485 fi 9486 ;; 9487 9488 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9489 case `$LD -v 2>&1` in 9490 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9491 ld_shlibs=no 9492 cat <<_LT_EOF 1>&2 9493 9494*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9495*** reliably create shared libraries on SCO systems. Therefore, libtool 9496*** is disabling shared libraries support. We urge you to upgrade GNU 9497*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9498*** your PATH or compiler configuration so that the native linker is 9499*** used, and then restart. 9500 9501_LT_EOF 9502 ;; 9503 *) 9504 # For security reasons, it is highly recommended that you always 9505 # use absolute paths for naming shared libraries, and exclude the 9506 # DT_RUNPATH tag from executables and libraries. But doing so 9507 # requires that you compile everything twice, which is a pain. 9508 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9509 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9511 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9512 else 9513 ld_shlibs=no 9514 fi 9515 ;; 9516 esac 9517 ;; 9518 9519 sunos4*) 9520 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9521 wlarc= 9522 hardcode_direct=yes 9523 hardcode_shlibpath_var=no 9524 ;; 9525 9526 *) 9527 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9528 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9529 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9530 else 9531 ld_shlibs=no 9532 fi 9533 ;; 9534 esac 9535 9536 if test "$ld_shlibs" = no; then 9537 runpath_var= 9538 hardcode_libdir_flag_spec= 9539 export_dynamic_flag_spec= 9540 whole_archive_flag_spec= 9541 fi 9542 else 9543 # PORTME fill in a description of your system's linker (not GNU ld) 9544 case $host_os in 9545 aix3*) 9546 allow_undefined_flag=unsupported 9547 always_export_symbols=yes 9548 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' 9549 # Note: this linker hardcodes the directories in LIBPATH if there 9550 # are no directories specified by -L. 9551 hardcode_minus_L=yes 9552 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9553 # Neither direct hardcoding nor static linking is supported with a 9554 # broken collect2. 9555 hardcode_direct=unsupported 9556 fi 9557 ;; 9558 9559 aix[4-9]*) 9560 if test "$host_cpu" = ia64; then 9561 # On IA64, the linker does run time linking by default, so we don't 9562 # have to do anything special. 9563 aix_use_runtimelinking=no 9564 exp_sym_flag='-Bexport' 9565 no_entry_flag="" 9566 else 9567 # If we're using GNU nm, then we don't want the "-C" option. 9568 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9569 # Also, AIX nm treats weak defined symbols like other global 9570 # defined symbols, whereas GNU nm marks them as "W". 9571 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9572 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9573 else 9574 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9575 fi 9576 aix_use_runtimelinking=no 9577 9578 # Test if we are trying to use run time linking or normal 9579 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9580 # need to do runtime linking. 9581 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9582 for ld_flag in $LDFLAGS; do 9583 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9584 aix_use_runtimelinking=yes 9585 break 9586 fi 9587 done 9588 ;; 9589 esac 9590 9591 exp_sym_flag='-bexport' 9592 no_entry_flag='-bnoentry' 9593 fi 9594 9595 # When large executables or shared objects are built, AIX ld can 9596 # have problems creating the table of contents. If linking a library 9597 # or program results in "error TOC overflow" add -mminimal-toc to 9598 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9599 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9600 9601 archive_cmds='' 9602 hardcode_direct=yes 9603 hardcode_direct_absolute=yes 9604 hardcode_libdir_separator=':' 9605 link_all_deplibs=yes 9606 file_list_spec='${wl}-f,' 9607 9608 if test "$GCC" = yes; then 9609 case $host_os in aix4.[012]|aix4.[012].*) 9610 # We only want to do this on AIX 4.2 and lower, the check 9611 # below for broken collect2 doesn't work under 4.3+ 9612 collect2name=`${CC} -print-prog-name=collect2` 9613 if test -f "$collect2name" && 9614 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9615 then 9616 # We have reworked collect2 9617 : 9618 else 9619 # We have old collect2 9620 hardcode_direct=unsupported 9621 # It fails to find uninstalled libraries when the uninstalled 9622 # path is not listed in the libpath. Setting hardcode_minus_L 9623 # to unsupported forces relinking 9624 hardcode_minus_L=yes 9625 hardcode_libdir_flag_spec='-L$libdir' 9626 hardcode_libdir_separator= 9627 fi 9628 ;; 9629 esac 9630 shared_flag='-shared' 9631 if test "$aix_use_runtimelinking" = yes; then 9632 shared_flag="$shared_flag "'${wl}-G' 9633 fi 9634 link_all_deplibs=no 9635 else 9636 # not using gcc 9637 if test "$host_cpu" = ia64; then 9638 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9639 # chokes on -Wl,-G. The following line is correct: 9640 shared_flag='-G' 9641 else 9642 if test "$aix_use_runtimelinking" = yes; then 9643 shared_flag='${wl}-G' 9644 else 9645 shared_flag='${wl}-bM:SRE' 9646 fi 9647 fi 9648 fi 9649 9650 export_dynamic_flag_spec='${wl}-bexpall' 9651 # It seems that -bexpall does not export symbols beginning with 9652 # underscore (_), so it is better to generate a list of symbols to export. 9653 always_export_symbols=yes 9654 if test "$aix_use_runtimelinking" = yes; then 9655 # Warning - without using the other runtime loading flags (-brtl), 9656 # -berok will link without error, but may produce a broken library. 9657 allow_undefined_flag='-berok' 9658 # Determine the default libpath from the value encoded in an 9659 # empty executable. 9660 if test "${lt_cv_aix_libpath+set}" = set; then 9661 aix_libpath=$lt_cv_aix_libpath 9662else 9663 if ${lt_cv_aix_libpath_+:} false; then : 9664 $as_echo_n "(cached) " >&6 9665else 9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9667/* end confdefs.h. */ 9668 9669int 9670main () 9671{ 9672 9673 ; 9674 return 0; 9675} 9676_ACEOF 9677if ac_fn_c_try_link "$LINENO"; then : 9678 9679 lt_aix_libpath_sed=' 9680 /Import File Strings/,/^$/ { 9681 /^0/ { 9682 s/^0 *\([^ ]*\) *$/\1/ 9683 p 9684 } 9685 }' 9686 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9687 # Check for a 64-bit object if we didn't find anything. 9688 if test -z "$lt_cv_aix_libpath_"; then 9689 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9690 fi 9691fi 9692rm -f core conftest.err conftest.$ac_objext \ 9693 conftest$ac_exeext conftest.$ac_ext 9694 if test -z "$lt_cv_aix_libpath_"; then 9695 lt_cv_aix_libpath_="/usr/lib:/lib" 9696 fi 9697 9698fi 9699 9700 aix_libpath=$lt_cv_aix_libpath_ 9701fi 9702 9703 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9704 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9705 else 9706 if test "$host_cpu" = ia64; then 9707 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9708 allow_undefined_flag="-z nodefs" 9709 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" 9710 else 9711 # Determine the default libpath from the value encoded in an 9712 # empty executable. 9713 if test "${lt_cv_aix_libpath+set}" = set; then 9714 aix_libpath=$lt_cv_aix_libpath 9715else 9716 if ${lt_cv_aix_libpath_+:} false; then : 9717 $as_echo_n "(cached) " >&6 9718else 9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9720/* end confdefs.h. */ 9721 9722int 9723main () 9724{ 9725 9726 ; 9727 return 0; 9728} 9729_ACEOF 9730if ac_fn_c_try_link "$LINENO"; then : 9731 9732 lt_aix_libpath_sed=' 9733 /Import File Strings/,/^$/ { 9734 /^0/ { 9735 s/^0 *\([^ ]*\) *$/\1/ 9736 p 9737 } 9738 }' 9739 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9740 # Check for a 64-bit object if we didn't find anything. 9741 if test -z "$lt_cv_aix_libpath_"; then 9742 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9743 fi 9744fi 9745rm -f core conftest.err conftest.$ac_objext \ 9746 conftest$ac_exeext conftest.$ac_ext 9747 if test -z "$lt_cv_aix_libpath_"; then 9748 lt_cv_aix_libpath_="/usr/lib:/lib" 9749 fi 9750 9751fi 9752 9753 aix_libpath=$lt_cv_aix_libpath_ 9754fi 9755 9756 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9757 # Warning - without using the other run time loading flags, 9758 # -berok will link without error, but may produce a broken library. 9759 no_undefined_flag=' ${wl}-bernotok' 9760 allow_undefined_flag=' ${wl}-berok' 9761 if test "$with_gnu_ld" = yes; then 9762 # We only use this code for GNU lds that support --whole-archive. 9763 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9764 else 9765 # Exported symbols can be pulled into shared objects from archives 9766 whole_archive_flag_spec='$convenience' 9767 fi 9768 archive_cmds_need_lc=yes 9769 # This is similar to how AIX traditionally builds its shared libraries. 9770 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9771 fi 9772 fi 9773 ;; 9774 9775 amigaos*) 9776 case $host_cpu in 9777 powerpc) 9778 # see comment about AmigaOS4 .so support 9779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9780 archive_expsym_cmds='' 9781 ;; 9782 m68k) 9783 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)' 9784 hardcode_libdir_flag_spec='-L$libdir' 9785 hardcode_minus_L=yes 9786 ;; 9787 esac 9788 ;; 9789 9790 bsdi[45]*) 9791 export_dynamic_flag_spec=-rdynamic 9792 ;; 9793 9794 cygwin* | mingw* | pw32* | cegcc*) 9795 # When not using gcc, we currently assume that we are using 9796 # Microsoft Visual C++. 9797 # hardcode_libdir_flag_spec is actually meaningless, as there is 9798 # no search path for DLLs. 9799 case $cc_basename in 9800 cl*) 9801 # Native MSVC 9802 hardcode_libdir_flag_spec=' ' 9803 allow_undefined_flag=unsupported 9804 always_export_symbols=yes 9805 file_list_spec='@' 9806 # Tell ltmain to make .lib files, not .a files. 9807 libext=lib 9808 # Tell ltmain to make .dll files, not .so files. 9809 shrext_cmds=".dll" 9810 # FIXME: Setting linknames here is a bad hack. 9811 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9812 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9813 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9814 else 9815 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9816 fi~ 9817 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9818 linknames=' 9819 # The linker will not automatically build a static lib if we build a DLL. 9820 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9821 enable_shared_with_static_runtimes=yes 9822 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9823 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9824 # Don't use ranlib 9825 old_postinstall_cmds='chmod 644 $oldlib' 9826 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9827 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9828 case $lt_outputfile in 9829 *.exe|*.EXE) ;; 9830 *) 9831 lt_outputfile="$lt_outputfile.exe" 9832 lt_tool_outputfile="$lt_tool_outputfile.exe" 9833 ;; 9834 esac~ 9835 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9836 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9837 $RM "$lt_outputfile.manifest"; 9838 fi' 9839 ;; 9840 *) 9841 # Assume MSVC wrapper 9842 hardcode_libdir_flag_spec=' ' 9843 allow_undefined_flag=unsupported 9844 # Tell ltmain to make .lib files, not .a files. 9845 libext=lib 9846 # Tell ltmain to make .dll files, not .so files. 9847 shrext_cmds=".dll" 9848 # FIXME: Setting linknames here is a bad hack. 9849 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9850 # The linker will automatically build a .lib file if we build a DLL. 9851 old_archive_from_new_cmds='true' 9852 # FIXME: Should let the user specify the lib program. 9853 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9854 enable_shared_with_static_runtimes=yes 9855 ;; 9856 esac 9857 ;; 9858 9859 darwin* | rhapsody*) 9860 9861 9862 archive_cmds_need_lc=no 9863 hardcode_direct=no 9864 hardcode_automatic=yes 9865 hardcode_shlibpath_var=unsupported 9866 if test "$lt_cv_ld_force_load" = "yes"; then 9867 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\"`' 9868 9869 else 9870 whole_archive_flag_spec='' 9871 fi 9872 link_all_deplibs=yes 9873 allow_undefined_flag="$_lt_dar_allow_undefined" 9874 case $cc_basename in 9875 ifort*) _lt_dar_can_shared=yes ;; 9876 *) _lt_dar_can_shared=$GCC ;; 9877 esac 9878 if test "$_lt_dar_can_shared" = "yes"; then 9879 output_verbose_link_cmd=func_echo_all 9880 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9881 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9882 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}" 9883 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}" 9884 9885 else 9886 ld_shlibs=no 9887 fi 9888 9889 ;; 9890 9891 dgux*) 9892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9893 hardcode_libdir_flag_spec='-L$libdir' 9894 hardcode_shlibpath_var=no 9895 ;; 9896 9897 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9898 # support. Future versions do this automatically, but an explicit c++rt0.o 9899 # does not break anything, and helps significantly (at the cost of a little 9900 # extra space). 9901 freebsd2.2*) 9902 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9903 hardcode_libdir_flag_spec='-R$libdir' 9904 hardcode_direct=yes 9905 hardcode_shlibpath_var=no 9906 ;; 9907 9908 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9909 freebsd2.*) 9910 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9911 hardcode_direct=yes 9912 hardcode_minus_L=yes 9913 hardcode_shlibpath_var=no 9914 ;; 9915 9916 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9917 freebsd* | dragonfly*) 9918 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9919 hardcode_libdir_flag_spec='-R$libdir' 9920 hardcode_direct=yes 9921 hardcode_shlibpath_var=no 9922 ;; 9923 9924 hpux9*) 9925 if test "$GCC" = yes; then 9926 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9927 else 9928 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9929 fi 9930 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9931 hardcode_libdir_separator=: 9932 hardcode_direct=yes 9933 9934 # hardcode_minus_L: Not really in the search PATH, 9935 # but as the default location of the library. 9936 hardcode_minus_L=yes 9937 export_dynamic_flag_spec='${wl}-E' 9938 ;; 9939 9940 hpux10*) 9941 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9942 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9943 else 9944 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9945 fi 9946 if test "$with_gnu_ld" = no; then 9947 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9948 hardcode_libdir_separator=: 9949 hardcode_direct=yes 9950 hardcode_direct_absolute=yes 9951 export_dynamic_flag_spec='${wl}-E' 9952 # hardcode_minus_L: Not really in the search PATH, 9953 # but as the default location of the library. 9954 hardcode_minus_L=yes 9955 fi 9956 ;; 9957 9958 hpux11*) 9959 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9960 case $host_cpu in 9961 hppa*64*) 9962 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9963 ;; 9964 ia64*) 9965 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9966 ;; 9967 *) 9968 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9969 ;; 9970 esac 9971 else 9972 case $host_cpu in 9973 hppa*64*) 9974 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9975 ;; 9976 ia64*) 9977 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9978 ;; 9979 *) 9980 9981 # Older versions of the 11.00 compiler do not understand -b yet 9982 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9984$as_echo_n "checking if $CC understands -b... " >&6; } 9985if ${lt_cv_prog_compiler__b+:} false; then : 9986 $as_echo_n "(cached) " >&6 9987else 9988 lt_cv_prog_compiler__b=no 9989 save_LDFLAGS="$LDFLAGS" 9990 LDFLAGS="$LDFLAGS -b" 9991 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9992 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9993 # The linker can only warn and ignore the option if not recognized 9994 # So say no if there are warnings 9995 if test -s conftest.err; then 9996 # Append any errors to the config.log. 9997 cat conftest.err 1>&5 9998 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10000 if diff conftest.exp conftest.er2 >/dev/null; then 10001 lt_cv_prog_compiler__b=yes 10002 fi 10003 else 10004 lt_cv_prog_compiler__b=yes 10005 fi 10006 fi 10007 $RM -r conftest* 10008 LDFLAGS="$save_LDFLAGS" 10009 10010fi 10011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10012$as_echo "$lt_cv_prog_compiler__b" >&6; } 10013 10014if test x"$lt_cv_prog_compiler__b" = xyes; then 10015 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10016else 10017 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10018fi 10019 10020 ;; 10021 esac 10022 fi 10023 if test "$with_gnu_ld" = no; then 10024 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10025 hardcode_libdir_separator=: 10026 10027 case $host_cpu in 10028 hppa*64*|ia64*) 10029 hardcode_direct=no 10030 hardcode_shlibpath_var=no 10031 ;; 10032 *) 10033 hardcode_direct=yes 10034 hardcode_direct_absolute=yes 10035 export_dynamic_flag_spec='${wl}-E' 10036 10037 # hardcode_minus_L: Not really in the search PATH, 10038 # but as the default location of the library. 10039 hardcode_minus_L=yes 10040 ;; 10041 esac 10042 fi 10043 ;; 10044 10045 irix5* | irix6* | nonstopux*) 10046 if test "$GCC" = yes; then 10047 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' 10048 # Try to use the -exported_symbol ld option, if it does not 10049 # work, assume that -exports_file does not work either and 10050 # implicitly export all symbols. 10051 # This should be the same for all languages, so no per-tag cache variable. 10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10053$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10054if ${lt_cv_irix_exported_symbol+:} false; then : 10055 $as_echo_n "(cached) " >&6 10056else 10057 save_LDFLAGS="$LDFLAGS" 10058 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10060/* end confdefs.h. */ 10061int foo (void) { return 0; } 10062_ACEOF 10063if ac_fn_c_try_link "$LINENO"; then : 10064 lt_cv_irix_exported_symbol=yes 10065else 10066 lt_cv_irix_exported_symbol=no 10067fi 10068rm -f core conftest.err conftest.$ac_objext \ 10069 conftest$ac_exeext conftest.$ac_ext 10070 LDFLAGS="$save_LDFLAGS" 10071fi 10072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10073$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10074 if test "$lt_cv_irix_exported_symbol" = yes; then 10075 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' 10076 fi 10077 else 10078 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' 10079 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' 10080 fi 10081 archive_cmds_need_lc='no' 10082 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10083 hardcode_libdir_separator=: 10084 inherit_rpath=yes 10085 link_all_deplibs=yes 10086 ;; 10087 10088 netbsd* | netbsdelf*-gnu) 10089 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10090 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10091 else 10092 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10093 fi 10094 hardcode_libdir_flag_spec='-R$libdir' 10095 hardcode_direct=yes 10096 hardcode_shlibpath_var=no 10097 ;; 10098 10099 newsos6) 10100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10101 hardcode_direct=yes 10102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10103 hardcode_libdir_separator=: 10104 hardcode_shlibpath_var=no 10105 ;; 10106 10107 *nto* | *qnx*) 10108 ;; 10109 10110 openbsd*) 10111 if test -f /usr/libexec/ld.so; then 10112 hardcode_direct=yes 10113 hardcode_shlibpath_var=no 10114 hardcode_direct_absolute=yes 10115 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10116 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10117 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10118 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10119 export_dynamic_flag_spec='${wl}-E' 10120 else 10121 case $host_os in 10122 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10124 hardcode_libdir_flag_spec='-R$libdir' 10125 ;; 10126 *) 10127 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10128 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10129 ;; 10130 esac 10131 fi 10132 else 10133 ld_shlibs=no 10134 fi 10135 ;; 10136 10137 os2*) 10138 hardcode_libdir_flag_spec='-L$libdir' 10139 hardcode_minus_L=yes 10140 allow_undefined_flag=unsupported 10141 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10142 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10143 ;; 10144 10145 osf3*) 10146 if test "$GCC" = yes; then 10147 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10148 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' 10149 else 10150 allow_undefined_flag=' -expect_unresolved \*' 10151 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' 10152 fi 10153 archive_cmds_need_lc='no' 10154 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10155 hardcode_libdir_separator=: 10156 ;; 10157 10158 osf4* | osf5*) # as osf3* with the addition of -msym flag 10159 if test "$GCC" = yes; then 10160 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10161 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' 10162 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10163 else 10164 allow_undefined_flag=' -expect_unresolved \*' 10165 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' 10166 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~ 10167 $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' 10168 10169 # Both c and cxx compiler support -rpath directly 10170 hardcode_libdir_flag_spec='-rpath $libdir' 10171 fi 10172 archive_cmds_need_lc='no' 10173 hardcode_libdir_separator=: 10174 ;; 10175 10176 solaris*) 10177 no_undefined_flag=' -z defs' 10178 if test "$GCC" = yes; then 10179 wlarc='${wl}' 10180 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10181 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10182 $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' 10183 else 10184 case `$CC -V 2>&1` in 10185 *"Compilers 5.0"*) 10186 wlarc='' 10187 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10188 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10189 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10190 ;; 10191 *) 10192 wlarc='${wl}' 10193 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10194 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10195 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10196 ;; 10197 esac 10198 fi 10199 hardcode_libdir_flag_spec='-R$libdir' 10200 hardcode_shlibpath_var=no 10201 case $host_os in 10202 solaris2.[0-5] | solaris2.[0-5].*) ;; 10203 *) 10204 # The compiler driver will combine and reorder linker options, 10205 # but understands `-z linker_flag'. GCC discards it without `$wl', 10206 # but is careful enough not to reorder. 10207 # Supported since Solaris 2.6 (maybe 2.5.1?) 10208 if test "$GCC" = yes; then 10209 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10210 else 10211 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10212 fi 10213 ;; 10214 esac 10215 link_all_deplibs=yes 10216 ;; 10217 10218 sunos4*) 10219 if test "x$host_vendor" = xsequent; then 10220 # Use $CC to link under sequent, because it throws in some extra .o 10221 # files that make .init and .fini sections work. 10222 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10223 else 10224 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10225 fi 10226 hardcode_libdir_flag_spec='-L$libdir' 10227 hardcode_direct=yes 10228 hardcode_minus_L=yes 10229 hardcode_shlibpath_var=no 10230 ;; 10231 10232 sysv4) 10233 case $host_vendor in 10234 sni) 10235 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10236 hardcode_direct=yes # is this really true??? 10237 ;; 10238 siemens) 10239 ## LD is ld it makes a PLAMLIB 10240 ## CC just makes a GrossModule. 10241 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10242 reload_cmds='$CC -r -o $output$reload_objs' 10243 hardcode_direct=no 10244 ;; 10245 motorola) 10246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10247 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10248 ;; 10249 esac 10250 runpath_var='LD_RUN_PATH' 10251 hardcode_shlibpath_var=no 10252 ;; 10253 10254 sysv4.3*) 10255 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10256 hardcode_shlibpath_var=no 10257 export_dynamic_flag_spec='-Bexport' 10258 ;; 10259 10260 sysv4*MP*) 10261 if test -d /usr/nec; then 10262 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10263 hardcode_shlibpath_var=no 10264 runpath_var=LD_RUN_PATH 10265 hardcode_runpath_var=yes 10266 ld_shlibs=yes 10267 fi 10268 ;; 10269 10270 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10271 no_undefined_flag='${wl}-z,text' 10272 archive_cmds_need_lc=no 10273 hardcode_shlibpath_var=no 10274 runpath_var='LD_RUN_PATH' 10275 10276 if test "$GCC" = yes; then 10277 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10278 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10279 else 10280 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10281 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10282 fi 10283 ;; 10284 10285 sysv5* | sco3.2v5* | sco5v6*) 10286 # Note: We can NOT use -z defs as we might desire, because we do not 10287 # link with -lc, and that would cause any symbols used from libc to 10288 # always be unresolved, which means just about no library would 10289 # ever link correctly. If we're not using GNU ld we use -z text 10290 # though, which does catch some bad symbols but isn't as heavy-handed 10291 # as -z defs. 10292 no_undefined_flag='${wl}-z,text' 10293 allow_undefined_flag='${wl}-z,nodefs' 10294 archive_cmds_need_lc=no 10295 hardcode_shlibpath_var=no 10296 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10297 hardcode_libdir_separator=':' 10298 link_all_deplibs=yes 10299 export_dynamic_flag_spec='${wl}-Bexport' 10300 runpath_var='LD_RUN_PATH' 10301 10302 if test "$GCC" = yes; then 10303 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10304 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10305 else 10306 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10307 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10308 fi 10309 ;; 10310 10311 uts4*) 10312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10313 hardcode_libdir_flag_spec='-L$libdir' 10314 hardcode_shlibpath_var=no 10315 ;; 10316 10317 *) 10318 ld_shlibs=no 10319 ;; 10320 esac 10321 10322 if test x$host_vendor = xsni; then 10323 case $host in 10324 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10325 export_dynamic_flag_spec='${wl}-Blargedynsym' 10326 ;; 10327 esac 10328 fi 10329 fi 10330 10331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10332$as_echo "$ld_shlibs" >&6; } 10333test "$ld_shlibs" = no && can_build_shared=no 10334 10335with_gnu_ld=$with_gnu_ld 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351# 10352# Do we need to explicitly link libc? 10353# 10354case "x$archive_cmds_need_lc" in 10355x|xyes) 10356 # Assume -lc should be added 10357 archive_cmds_need_lc=yes 10358 10359 if test "$enable_shared" = yes && test "$GCC" = yes; then 10360 case $archive_cmds in 10361 *'~'*) 10362 # FIXME: we may have to deal with multi-command sequences. 10363 ;; 10364 '$CC '*) 10365 # Test whether the compiler implicitly links with -lc since on some 10366 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10367 # to ld, don't add -lc before -lgcc. 10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10369$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10370if ${lt_cv_archive_cmds_need_lc+:} false; then : 10371 $as_echo_n "(cached) " >&6 10372else 10373 $RM conftest* 10374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10375 10376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10377 (eval $ac_compile) 2>&5 10378 ac_status=$? 10379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10380 test $ac_status = 0; } 2>conftest.err; then 10381 soname=conftest 10382 lib=conftest 10383 libobjs=conftest.$ac_objext 10384 deplibs= 10385 wl=$lt_prog_compiler_wl 10386 pic_flag=$lt_prog_compiler_pic 10387 compiler_flags=-v 10388 linker_flags=-v 10389 verstring= 10390 output_objdir=. 10391 libname=conftest 10392 lt_save_allow_undefined_flag=$allow_undefined_flag 10393 allow_undefined_flag= 10394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10395 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10396 ac_status=$? 10397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10398 test $ac_status = 0; } 10399 then 10400 lt_cv_archive_cmds_need_lc=no 10401 else 10402 lt_cv_archive_cmds_need_lc=yes 10403 fi 10404 allow_undefined_flag=$lt_save_allow_undefined_flag 10405 else 10406 cat conftest.err 1>&5 10407 fi 10408 $RM conftest* 10409 10410fi 10411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10412$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10413 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10414 ;; 10415 esac 10416 fi 10417 ;; 10418esac 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10572$as_echo_n "checking dynamic linker characteristics... " >&6; } 10573 10574if test "$GCC" = yes; then 10575 case $host_os in 10576 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10577 *) lt_awk_arg="/^libraries:/" ;; 10578 esac 10579 case $host_os in 10580 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10581 *) lt_sed_strip_eq="s,=/,/,g" ;; 10582 esac 10583 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10584 case $lt_search_path_spec in 10585 *\;*) 10586 # if the path contains ";" then we assume it to be the separator 10587 # otherwise default to the standard path separator (i.e. ":") - it is 10588 # assumed that no part of a normal pathname contains ";" but that should 10589 # okay in the real world where ";" in dirpaths is itself problematic. 10590 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10591 ;; 10592 *) 10593 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10594 ;; 10595 esac 10596 # Ok, now we have the path, separated by spaces, we can step through it 10597 # and add multilib dir if necessary. 10598 lt_tmp_lt_search_path_spec= 10599 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10600 for lt_sys_path in $lt_search_path_spec; do 10601 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10602 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10603 else 10604 test -d "$lt_sys_path" && \ 10605 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10606 fi 10607 done 10608 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10609BEGIN {RS=" "; FS="/|\n";} { 10610 lt_foo=""; 10611 lt_count=0; 10612 for (lt_i = NF; lt_i > 0; lt_i--) { 10613 if ($lt_i != "" && $lt_i != ".") { 10614 if ($lt_i == "..") { 10615 lt_count++; 10616 } else { 10617 if (lt_count == 0) { 10618 lt_foo="/" $lt_i lt_foo; 10619 } else { 10620 lt_count--; 10621 } 10622 } 10623 } 10624 } 10625 if (lt_foo != "") { lt_freq[lt_foo]++; } 10626 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10627}'` 10628 # AWK program above erroneously prepends '/' to C:/dos/paths 10629 # for these hosts. 10630 case $host_os in 10631 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10632 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10633 esac 10634 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10635else 10636 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10637fi 10638library_names_spec= 10639libname_spec='lib$name' 10640soname_spec= 10641shrext_cmds=".so" 10642postinstall_cmds= 10643postuninstall_cmds= 10644finish_cmds= 10645finish_eval= 10646shlibpath_var= 10647shlibpath_overrides_runpath=unknown 10648version_type=none 10649dynamic_linker="$host_os ld.so" 10650sys_lib_dlsearch_path_spec="/lib /usr/lib" 10651need_lib_prefix=unknown 10652hardcode_into_libs=no 10653 10654# when you set need_version to no, make sure it does not cause -set_version 10655# flags to be left without arguments 10656need_version=unknown 10657 10658case $host_os in 10659aix3*) 10660 version_type=linux # correct to gnu/linux during the next big refactor 10661 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10662 shlibpath_var=LIBPATH 10663 10664 # AIX 3 has no versioning support, so we append a major version to the name. 10665 soname_spec='${libname}${release}${shared_ext}$major' 10666 ;; 10667 10668aix[4-9]*) 10669 version_type=linux # correct to gnu/linux during the next big refactor 10670 need_lib_prefix=no 10671 need_version=no 10672 hardcode_into_libs=yes 10673 if test "$host_cpu" = ia64; then 10674 # AIX 5 supports IA64 10675 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10676 shlibpath_var=LD_LIBRARY_PATH 10677 else 10678 # With GCC up to 2.95.x, collect2 would create an import file 10679 # for dependence libraries. The import file would start with 10680 # the line `#! .'. This would cause the generated library to 10681 # depend on `.', always an invalid library. This was fixed in 10682 # development snapshots of GCC prior to 3.0. 10683 case $host_os in 10684 aix4 | aix4.[01] | aix4.[01].*) 10685 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10686 echo ' yes ' 10687 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10688 : 10689 else 10690 can_build_shared=no 10691 fi 10692 ;; 10693 esac 10694 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10695 # soname into executable. Probably we can add versioning support to 10696 # collect2, so additional links can be useful in future. 10697 if test "$aix_use_runtimelinking" = yes; then 10698 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10699 # instead of lib<name>.a to let people know that these are not 10700 # typical AIX shared libraries. 10701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10702 else 10703 # We preserve .a as extension for shared libraries through AIX4.2 10704 # and later when we are not doing run time linking. 10705 library_names_spec='${libname}${release}.a $libname.a' 10706 soname_spec='${libname}${release}${shared_ext}$major' 10707 fi 10708 shlibpath_var=LIBPATH 10709 fi 10710 ;; 10711 10712amigaos*) 10713 case $host_cpu in 10714 powerpc) 10715 # Since July 2007 AmigaOS4 officially supports .so libraries. 10716 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10718 ;; 10719 m68k) 10720 library_names_spec='$libname.ixlibrary $libname.a' 10721 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10722 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10723 ;; 10724 esac 10725 ;; 10726 10727beos*) 10728 library_names_spec='${libname}${shared_ext}' 10729 dynamic_linker="$host_os ld.so" 10730 shlibpath_var=LIBRARY_PATH 10731 ;; 10732 10733bsdi[45]*) 10734 version_type=linux # correct to gnu/linux during the next big refactor 10735 need_version=no 10736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10737 soname_spec='${libname}${release}${shared_ext}$major' 10738 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10739 shlibpath_var=LD_LIBRARY_PATH 10740 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10741 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10742 # the default ld.so.conf also contains /usr/contrib/lib and 10743 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10744 # libtool to hard-code these into programs 10745 ;; 10746 10747cygwin* | mingw* | pw32* | cegcc*) 10748 version_type=windows 10749 shrext_cmds=".dll" 10750 need_version=no 10751 need_lib_prefix=no 10752 10753 case $GCC,$cc_basename in 10754 yes,*) 10755 # gcc 10756 library_names_spec='$libname.dll.a' 10757 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10758 postinstall_cmds='base_file=`basename \${file}`~ 10759 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10760 dldir=$destdir/`dirname \$dlpath`~ 10761 test -d \$dldir || mkdir -p \$dldir~ 10762 $install_prog $dir/$dlname \$dldir/$dlname~ 10763 chmod a+x \$dldir/$dlname~ 10764 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10765 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10766 fi' 10767 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10768 dlpath=$dir/\$dldll~ 10769 $RM \$dlpath' 10770 shlibpath_overrides_runpath=yes 10771 10772 case $host_os in 10773 cygwin*) 10774 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10775 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10776 10777 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10778 ;; 10779 mingw* | cegcc*) 10780 # MinGW DLLs use traditional 'lib' prefix 10781 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10782 ;; 10783 pw32*) 10784 # pw32 DLLs use 'pw' prefix rather than 'lib' 10785 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10786 ;; 10787 esac 10788 dynamic_linker='Win32 ld.exe' 10789 ;; 10790 10791 *,cl*) 10792 # Native MSVC 10793 libname_spec='$name' 10794 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10795 library_names_spec='${libname}.dll.lib' 10796 10797 case $build_os in 10798 mingw*) 10799 sys_lib_search_path_spec= 10800 lt_save_ifs=$IFS 10801 IFS=';' 10802 for lt_path in $LIB 10803 do 10804 IFS=$lt_save_ifs 10805 # Let DOS variable expansion print the short 8.3 style file name. 10806 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10807 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10808 done 10809 IFS=$lt_save_ifs 10810 # Convert to MSYS style. 10811 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10812 ;; 10813 cygwin*) 10814 # Convert to unix form, then to dos form, then back to unix form 10815 # but this time dos style (no spaces!) so that the unix form looks 10816 # like /cygdrive/c/PROGRA~1:/cygdr... 10817 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10818 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10819 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10820 ;; 10821 *) 10822 sys_lib_search_path_spec="$LIB" 10823 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10824 # It is most probably a Windows format PATH. 10825 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10826 else 10827 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10828 fi 10829 # FIXME: find the short name or the path components, as spaces are 10830 # common. (e.g. "Program Files" -> "PROGRA~1") 10831 ;; 10832 esac 10833 10834 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10835 postinstall_cmds='base_file=`basename \${file}`~ 10836 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10837 dldir=$destdir/`dirname \$dlpath`~ 10838 test -d \$dldir || mkdir -p \$dldir~ 10839 $install_prog $dir/$dlname \$dldir/$dlname' 10840 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10841 dlpath=$dir/\$dldll~ 10842 $RM \$dlpath' 10843 shlibpath_overrides_runpath=yes 10844 dynamic_linker='Win32 link.exe' 10845 ;; 10846 10847 *) 10848 # Assume MSVC wrapper 10849 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10850 dynamic_linker='Win32 ld.exe' 10851 ;; 10852 esac 10853 # FIXME: first we should search . and the directory the executable is in 10854 shlibpath_var=PATH 10855 ;; 10856 10857darwin* | rhapsody*) 10858 dynamic_linker="$host_os dyld" 10859 version_type=darwin 10860 need_lib_prefix=no 10861 need_version=no 10862 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10863 soname_spec='${libname}${release}${major}$shared_ext' 10864 shlibpath_overrides_runpath=yes 10865 shlibpath_var=DYLD_LIBRARY_PATH 10866 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10867 10868 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10869 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10870 ;; 10871 10872dgux*) 10873 version_type=linux # correct to gnu/linux during the next big refactor 10874 need_lib_prefix=no 10875 need_version=no 10876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10877 soname_spec='${libname}${release}${shared_ext}$major' 10878 shlibpath_var=LD_LIBRARY_PATH 10879 ;; 10880 10881freebsd* | dragonfly*) 10882 # DragonFly does not have aout. When/if they implement a new 10883 # versioning mechanism, adjust this. 10884 if test -x /usr/bin/objformat; then 10885 objformat=`/usr/bin/objformat` 10886 else 10887 case $host_os in 10888 freebsd[23].*) objformat=aout ;; 10889 *) objformat=elf ;; 10890 esac 10891 fi 10892 version_type=freebsd-$objformat 10893 case $version_type in 10894 freebsd-elf*) 10895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10896 need_version=no 10897 need_lib_prefix=no 10898 ;; 10899 freebsd-*) 10900 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10901 need_version=yes 10902 ;; 10903 esac 10904 shlibpath_var=LD_LIBRARY_PATH 10905 case $host_os in 10906 freebsd2.*) 10907 shlibpath_overrides_runpath=yes 10908 ;; 10909 freebsd3.[01]* | freebsdelf3.[01]*) 10910 shlibpath_overrides_runpath=yes 10911 hardcode_into_libs=yes 10912 ;; 10913 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10914 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10915 shlibpath_overrides_runpath=no 10916 hardcode_into_libs=yes 10917 ;; 10918 *) # from 4.6 on, and DragonFly 10919 shlibpath_overrides_runpath=yes 10920 hardcode_into_libs=yes 10921 ;; 10922 esac 10923 ;; 10924 10925haiku*) 10926 version_type=linux # correct to gnu/linux during the next big refactor 10927 need_lib_prefix=no 10928 need_version=no 10929 dynamic_linker="$host_os runtime_loader" 10930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10931 soname_spec='${libname}${release}${shared_ext}$major' 10932 shlibpath_var=LIBRARY_PATH 10933 shlibpath_overrides_runpath=yes 10934 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10935 hardcode_into_libs=yes 10936 ;; 10937 10938hpux9* | hpux10* | hpux11*) 10939 # Give a soname corresponding to the major version so that dld.sl refuses to 10940 # link against other versions. 10941 version_type=sunos 10942 need_lib_prefix=no 10943 need_version=no 10944 case $host_cpu in 10945 ia64*) 10946 shrext_cmds='.so' 10947 hardcode_into_libs=yes 10948 dynamic_linker="$host_os dld.so" 10949 shlibpath_var=LD_LIBRARY_PATH 10950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10952 soname_spec='${libname}${release}${shared_ext}$major' 10953 if test "X$HPUX_IA64_MODE" = X32; then 10954 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10955 else 10956 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10957 fi 10958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10959 ;; 10960 hppa*64*) 10961 shrext_cmds='.sl' 10962 hardcode_into_libs=yes 10963 dynamic_linker="$host_os dld.sl" 10964 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10967 soname_spec='${libname}${release}${shared_ext}$major' 10968 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10970 ;; 10971 *) 10972 shrext_cmds='.sl' 10973 dynamic_linker="$host_os dld.sl" 10974 shlibpath_var=SHLIB_PATH 10975 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10977 soname_spec='${libname}${release}${shared_ext}$major' 10978 ;; 10979 esac 10980 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10981 postinstall_cmds='chmod 555 $lib' 10982 # or fails outright, so override atomically: 10983 install_override_mode=555 10984 ;; 10985 10986interix[3-9]*) 10987 version_type=linux # correct to gnu/linux during the next big refactor 10988 need_lib_prefix=no 10989 need_version=no 10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10991 soname_spec='${libname}${release}${shared_ext}$major' 10992 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10993 shlibpath_var=LD_LIBRARY_PATH 10994 shlibpath_overrides_runpath=no 10995 hardcode_into_libs=yes 10996 ;; 10997 10998irix5* | irix6* | nonstopux*) 10999 case $host_os in 11000 nonstopux*) version_type=nonstopux ;; 11001 *) 11002 if test "$lt_cv_prog_gnu_ld" = yes; then 11003 version_type=linux # correct to gnu/linux during the next big refactor 11004 else 11005 version_type=irix 11006 fi ;; 11007 esac 11008 need_lib_prefix=no 11009 need_version=no 11010 soname_spec='${libname}${release}${shared_ext}$major' 11011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11012 case $host_os in 11013 irix5* | nonstopux*) 11014 libsuff= shlibsuff= 11015 ;; 11016 *) 11017 case $LD in # libtool.m4 will add one of these switches to LD 11018 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11019 libsuff= shlibsuff= libmagic=32-bit;; 11020 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11021 libsuff=32 shlibsuff=N32 libmagic=N32;; 11022 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11023 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11024 *) libsuff= shlibsuff= libmagic=never-match;; 11025 esac 11026 ;; 11027 esac 11028 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11029 shlibpath_overrides_runpath=no 11030 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11031 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11032 hardcode_into_libs=yes 11033 ;; 11034 11035# No shared lib support for Linux oldld, aout, or coff. 11036linux*oldld* | linux*aout* | linux*coff*) 11037 dynamic_linker=no 11038 ;; 11039 11040# This must be glibc/ELF. 11041linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11042 version_type=linux # correct to gnu/linux during the next big refactor 11043 need_lib_prefix=no 11044 need_version=no 11045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11046 soname_spec='${libname}${release}${shared_ext}$major' 11047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11048 shlibpath_var=LD_LIBRARY_PATH 11049 shlibpath_overrides_runpath=no 11050 11051 # Some binutils ld are patched to set DT_RUNPATH 11052 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11053 $as_echo_n "(cached) " >&6 11054else 11055 lt_cv_shlibpath_overrides_runpath=no 11056 save_LDFLAGS=$LDFLAGS 11057 save_libdir=$libdir 11058 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11059 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11061/* end confdefs.h. */ 11062 11063int 11064main () 11065{ 11066 11067 ; 11068 return 0; 11069} 11070_ACEOF 11071if ac_fn_c_try_link "$LINENO"; then : 11072 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11073 lt_cv_shlibpath_overrides_runpath=yes 11074fi 11075fi 11076rm -f core conftest.err conftest.$ac_objext \ 11077 conftest$ac_exeext conftest.$ac_ext 11078 LDFLAGS=$save_LDFLAGS 11079 libdir=$save_libdir 11080 11081fi 11082 11083 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11084 11085 # This implies no fast_install, which is unacceptable. 11086 # Some rework will be needed to allow for fast_install 11087 # before this can be enabled. 11088 hardcode_into_libs=yes 11089 11090 # Append ld.so.conf contents to the search path 11091 if test -f /etc/ld.so.conf; then 11092 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' ' '` 11093 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11094 fi 11095 11096 # We used to test for /lib/ld.so.1 and disable shared libraries on 11097 # powerpc, because MkLinux only supported shared libraries with the 11098 # GNU dynamic linker. Since this was broken with cross compilers, 11099 # most powerpc-linux boxes support dynamic linking these days and 11100 # people can always --disable-shared, the test was removed, and we 11101 # assume the GNU/Linux dynamic linker is in use. 11102 dynamic_linker='GNU/Linux ld.so' 11103 ;; 11104 11105netbsdelf*-gnu) 11106 version_type=linux 11107 need_lib_prefix=no 11108 need_version=no 11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11110 soname_spec='${libname}${release}${shared_ext}$major' 11111 shlibpath_var=LD_LIBRARY_PATH 11112 shlibpath_overrides_runpath=no 11113 hardcode_into_libs=yes 11114 dynamic_linker='NetBSD ld.elf_so' 11115 ;; 11116 11117netbsd*) 11118 version_type=sunos 11119 need_lib_prefix=no 11120 need_version=no 11121 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11124 dynamic_linker='NetBSD (a.out) ld.so' 11125 else 11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11127 soname_spec='${libname}${release}${shared_ext}$major' 11128 dynamic_linker='NetBSD ld.elf_so' 11129 fi 11130 shlibpath_var=LD_LIBRARY_PATH 11131 shlibpath_overrides_runpath=yes 11132 hardcode_into_libs=yes 11133 ;; 11134 11135newsos6) 11136 version_type=linux # correct to gnu/linux during the next big refactor 11137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11138 shlibpath_var=LD_LIBRARY_PATH 11139 shlibpath_overrides_runpath=yes 11140 ;; 11141 11142*nto* | *qnx*) 11143 version_type=qnx 11144 need_lib_prefix=no 11145 need_version=no 11146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11147 soname_spec='${libname}${release}${shared_ext}$major' 11148 shlibpath_var=LD_LIBRARY_PATH 11149 shlibpath_overrides_runpath=no 11150 hardcode_into_libs=yes 11151 dynamic_linker='ldqnx.so' 11152 ;; 11153 11154openbsd*) 11155 version_type=sunos 11156 sys_lib_dlsearch_path_spec="/usr/lib" 11157 need_lib_prefix=no 11158 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11159 case $host_os in 11160 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11161 *) need_version=no ;; 11162 esac 11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11165 shlibpath_var=LD_LIBRARY_PATH 11166 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11167 case $host_os in 11168 openbsd2.[89] | openbsd2.[89].*) 11169 shlibpath_overrides_runpath=no 11170 ;; 11171 *) 11172 shlibpath_overrides_runpath=yes 11173 ;; 11174 esac 11175 else 11176 shlibpath_overrides_runpath=yes 11177 fi 11178 ;; 11179 11180os2*) 11181 libname_spec='$name' 11182 shrext_cmds=".dll" 11183 need_lib_prefix=no 11184 library_names_spec='$libname${shared_ext} $libname.a' 11185 dynamic_linker='OS/2 ld.exe' 11186 shlibpath_var=LIBPATH 11187 ;; 11188 11189osf3* | osf4* | osf5*) 11190 version_type=osf 11191 need_lib_prefix=no 11192 need_version=no 11193 soname_spec='${libname}${release}${shared_ext}$major' 11194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11195 shlibpath_var=LD_LIBRARY_PATH 11196 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11197 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11198 ;; 11199 11200rdos*) 11201 dynamic_linker=no 11202 ;; 11203 11204solaris*) 11205 version_type=linux # correct to gnu/linux during the next big refactor 11206 need_lib_prefix=no 11207 need_version=no 11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11209 soname_spec='${libname}${release}${shared_ext}$major' 11210 shlibpath_var=LD_LIBRARY_PATH 11211 shlibpath_overrides_runpath=yes 11212 hardcode_into_libs=yes 11213 # ldd complains unless libraries are executable 11214 postinstall_cmds='chmod +x $lib' 11215 ;; 11216 11217sunos4*) 11218 version_type=sunos 11219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11220 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11221 shlibpath_var=LD_LIBRARY_PATH 11222 shlibpath_overrides_runpath=yes 11223 if test "$with_gnu_ld" = yes; then 11224 need_lib_prefix=no 11225 fi 11226 need_version=yes 11227 ;; 11228 11229sysv4 | sysv4.3*) 11230 version_type=linux # correct to gnu/linux during the next big refactor 11231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11232 soname_spec='${libname}${release}${shared_ext}$major' 11233 shlibpath_var=LD_LIBRARY_PATH 11234 case $host_vendor in 11235 sni) 11236 shlibpath_overrides_runpath=no 11237 need_lib_prefix=no 11238 runpath_var=LD_RUN_PATH 11239 ;; 11240 siemens) 11241 need_lib_prefix=no 11242 ;; 11243 motorola) 11244 need_lib_prefix=no 11245 need_version=no 11246 shlibpath_overrides_runpath=no 11247 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11248 ;; 11249 esac 11250 ;; 11251 11252sysv4*MP*) 11253 if test -d /usr/nec ;then 11254 version_type=linux # correct to gnu/linux during the next big refactor 11255 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11256 soname_spec='$libname${shared_ext}.$major' 11257 shlibpath_var=LD_LIBRARY_PATH 11258 fi 11259 ;; 11260 11261sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11262 version_type=freebsd-elf 11263 need_lib_prefix=no 11264 need_version=no 11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11266 soname_spec='${libname}${release}${shared_ext}$major' 11267 shlibpath_var=LD_LIBRARY_PATH 11268 shlibpath_overrides_runpath=yes 11269 hardcode_into_libs=yes 11270 if test "$with_gnu_ld" = yes; then 11271 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11272 else 11273 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11274 case $host_os in 11275 sco3.2v5*) 11276 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11277 ;; 11278 esac 11279 fi 11280 sys_lib_dlsearch_path_spec='/usr/lib' 11281 ;; 11282 11283tpf*) 11284 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11285 version_type=linux # correct to gnu/linux during the next big refactor 11286 need_lib_prefix=no 11287 need_version=no 11288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11289 shlibpath_var=LD_LIBRARY_PATH 11290 shlibpath_overrides_runpath=no 11291 hardcode_into_libs=yes 11292 ;; 11293 11294uts4*) 11295 version_type=linux # correct to gnu/linux during the next big refactor 11296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11297 soname_spec='${libname}${release}${shared_ext}$major' 11298 shlibpath_var=LD_LIBRARY_PATH 11299 ;; 11300 11301*) 11302 dynamic_linker=no 11303 ;; 11304esac 11305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11306$as_echo "$dynamic_linker" >&6; } 11307test "$dynamic_linker" = no && can_build_shared=no 11308 11309variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11310if test "$GCC" = yes; then 11311 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11312fi 11313 11314if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11315 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11316fi 11317if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11318 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11319fi 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11413$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11414hardcode_action= 11415if test -n "$hardcode_libdir_flag_spec" || 11416 test -n "$runpath_var" || 11417 test "X$hardcode_automatic" = "Xyes" ; then 11418 11419 # We can hardcode non-existent directories. 11420 if test "$hardcode_direct" != no && 11421 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11422 # have to relink, otherwise we might link with an installed library 11423 # when we should be linking with a yet-to-be-installed one 11424 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11425 test "$hardcode_minus_L" != no; then 11426 # Linking always hardcodes the temporary library directory. 11427 hardcode_action=relink 11428 else 11429 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11430 hardcode_action=immediate 11431 fi 11432else 11433 # We cannot hardcode anything, or else we can only hardcode existing 11434 # directories. 11435 hardcode_action=unsupported 11436fi 11437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11438$as_echo "$hardcode_action" >&6; } 11439 11440if test "$hardcode_action" = relink || 11441 test "$inherit_rpath" = yes; then 11442 # Fast installation is not supported 11443 enable_fast_install=no 11444elif test "$shlibpath_overrides_runpath" = yes || 11445 test "$enable_shared" = no; then 11446 # Fast installation is not necessary 11447 enable_fast_install=needless 11448fi 11449 11450 11451 11452 11453 11454 11455 if test "x$enable_dlopen" != xyes; then 11456 enable_dlopen=unknown 11457 enable_dlopen_self=unknown 11458 enable_dlopen_self_static=unknown 11459else 11460 lt_cv_dlopen=no 11461 lt_cv_dlopen_libs= 11462 11463 case $host_os in 11464 beos*) 11465 lt_cv_dlopen="load_add_on" 11466 lt_cv_dlopen_libs= 11467 lt_cv_dlopen_self=yes 11468 ;; 11469 11470 mingw* | pw32* | cegcc*) 11471 lt_cv_dlopen="LoadLibrary" 11472 lt_cv_dlopen_libs= 11473 ;; 11474 11475 cygwin*) 11476 lt_cv_dlopen="dlopen" 11477 lt_cv_dlopen_libs= 11478 ;; 11479 11480 darwin*) 11481 # if libdl is installed we need to link against it 11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11483$as_echo_n "checking for dlopen in -ldl... " >&6; } 11484if ${ac_cv_lib_dl_dlopen+:} false; then : 11485 $as_echo_n "(cached) " >&6 11486else 11487 ac_check_lib_save_LIBS=$LIBS 11488LIBS="-ldl $LIBS" 11489cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11490/* end confdefs.h. */ 11491 11492/* Override any GCC internal prototype to avoid an error. 11493 Use char because int might match the return type of a GCC 11494 builtin and then its argument prototype would still apply. */ 11495#ifdef __cplusplus 11496extern "C" 11497#endif 11498char dlopen (); 11499int 11500main () 11501{ 11502return dlopen (); 11503 ; 11504 return 0; 11505} 11506_ACEOF 11507if ac_fn_c_try_link "$LINENO"; then : 11508 ac_cv_lib_dl_dlopen=yes 11509else 11510 ac_cv_lib_dl_dlopen=no 11511fi 11512rm -f core conftest.err conftest.$ac_objext \ 11513 conftest$ac_exeext conftest.$ac_ext 11514LIBS=$ac_check_lib_save_LIBS 11515fi 11516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11517$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11518if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11519 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11520else 11521 11522 lt_cv_dlopen="dyld" 11523 lt_cv_dlopen_libs= 11524 lt_cv_dlopen_self=yes 11525 11526fi 11527 11528 ;; 11529 11530 *) 11531 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11532if test "x$ac_cv_func_shl_load" = xyes; then : 11533 lt_cv_dlopen="shl_load" 11534else 11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11536$as_echo_n "checking for shl_load in -ldld... " >&6; } 11537if ${ac_cv_lib_dld_shl_load+:} false; then : 11538 $as_echo_n "(cached) " >&6 11539else 11540 ac_check_lib_save_LIBS=$LIBS 11541LIBS="-ldld $LIBS" 11542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11543/* end confdefs.h. */ 11544 11545/* Override any GCC internal prototype to avoid an error. 11546 Use char because int might match the return type of a GCC 11547 builtin and then its argument prototype would still apply. */ 11548#ifdef __cplusplus 11549extern "C" 11550#endif 11551char shl_load (); 11552int 11553main () 11554{ 11555return shl_load (); 11556 ; 11557 return 0; 11558} 11559_ACEOF 11560if ac_fn_c_try_link "$LINENO"; then : 11561 ac_cv_lib_dld_shl_load=yes 11562else 11563 ac_cv_lib_dld_shl_load=no 11564fi 11565rm -f core conftest.err conftest.$ac_objext \ 11566 conftest$ac_exeext conftest.$ac_ext 11567LIBS=$ac_check_lib_save_LIBS 11568fi 11569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11570$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11571if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11572 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11573else 11574 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11575if test "x$ac_cv_func_dlopen" = xyes; then : 11576 lt_cv_dlopen="dlopen" 11577else 11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11579$as_echo_n "checking for dlopen in -ldl... " >&6; } 11580if ${ac_cv_lib_dl_dlopen+:} false; then : 11581 $as_echo_n "(cached) " >&6 11582else 11583 ac_check_lib_save_LIBS=$LIBS 11584LIBS="-ldl $LIBS" 11585cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11586/* end confdefs.h. */ 11587 11588/* Override any GCC internal prototype to avoid an error. 11589 Use char because int might match the return type of a GCC 11590 builtin and then its argument prototype would still apply. */ 11591#ifdef __cplusplus 11592extern "C" 11593#endif 11594char dlopen (); 11595int 11596main () 11597{ 11598return dlopen (); 11599 ; 11600 return 0; 11601} 11602_ACEOF 11603if ac_fn_c_try_link "$LINENO"; then : 11604 ac_cv_lib_dl_dlopen=yes 11605else 11606 ac_cv_lib_dl_dlopen=no 11607fi 11608rm -f core conftest.err conftest.$ac_objext \ 11609 conftest$ac_exeext conftest.$ac_ext 11610LIBS=$ac_check_lib_save_LIBS 11611fi 11612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11613$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11614if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11615 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11616else 11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11618$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11619if ${ac_cv_lib_svld_dlopen+:} false; then : 11620 $as_echo_n "(cached) " >&6 11621else 11622 ac_check_lib_save_LIBS=$LIBS 11623LIBS="-lsvld $LIBS" 11624cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11625/* end confdefs.h. */ 11626 11627/* Override any GCC internal prototype to avoid an error. 11628 Use char because int might match the return type of a GCC 11629 builtin and then its argument prototype would still apply. */ 11630#ifdef __cplusplus 11631extern "C" 11632#endif 11633char dlopen (); 11634int 11635main () 11636{ 11637return dlopen (); 11638 ; 11639 return 0; 11640} 11641_ACEOF 11642if ac_fn_c_try_link "$LINENO"; then : 11643 ac_cv_lib_svld_dlopen=yes 11644else 11645 ac_cv_lib_svld_dlopen=no 11646fi 11647rm -f core conftest.err conftest.$ac_objext \ 11648 conftest$ac_exeext conftest.$ac_ext 11649LIBS=$ac_check_lib_save_LIBS 11650fi 11651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11652$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11653if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11654 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11655else 11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11657$as_echo_n "checking for dld_link in -ldld... " >&6; } 11658if ${ac_cv_lib_dld_dld_link+:} false; then : 11659 $as_echo_n "(cached) " >&6 11660else 11661 ac_check_lib_save_LIBS=$LIBS 11662LIBS="-ldld $LIBS" 11663cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11664/* end confdefs.h. */ 11665 11666/* Override any GCC internal prototype to avoid an error. 11667 Use char because int might match the return type of a GCC 11668 builtin and then its argument prototype would still apply. */ 11669#ifdef __cplusplus 11670extern "C" 11671#endif 11672char dld_link (); 11673int 11674main () 11675{ 11676return dld_link (); 11677 ; 11678 return 0; 11679} 11680_ACEOF 11681if ac_fn_c_try_link "$LINENO"; then : 11682 ac_cv_lib_dld_dld_link=yes 11683else 11684 ac_cv_lib_dld_dld_link=no 11685fi 11686rm -f core conftest.err conftest.$ac_objext \ 11687 conftest$ac_exeext conftest.$ac_ext 11688LIBS=$ac_check_lib_save_LIBS 11689fi 11690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11691$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11692if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11693 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11694fi 11695 11696 11697fi 11698 11699 11700fi 11701 11702 11703fi 11704 11705 11706fi 11707 11708 11709fi 11710 11711 ;; 11712 esac 11713 11714 if test "x$lt_cv_dlopen" != xno; then 11715 enable_dlopen=yes 11716 else 11717 enable_dlopen=no 11718 fi 11719 11720 case $lt_cv_dlopen in 11721 dlopen) 11722 save_CPPFLAGS="$CPPFLAGS" 11723 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11724 11725 save_LDFLAGS="$LDFLAGS" 11726 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11727 11728 save_LIBS="$LIBS" 11729 LIBS="$lt_cv_dlopen_libs $LIBS" 11730 11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11732$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11733if ${lt_cv_dlopen_self+:} false; then : 11734 $as_echo_n "(cached) " >&6 11735else 11736 if test "$cross_compiling" = yes; then : 11737 lt_cv_dlopen_self=cross 11738else 11739 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11740 lt_status=$lt_dlunknown 11741 cat > conftest.$ac_ext <<_LT_EOF 11742#line $LINENO "configure" 11743#include "confdefs.h" 11744 11745#if HAVE_DLFCN_H 11746#include <dlfcn.h> 11747#endif 11748 11749#include <stdio.h> 11750 11751#ifdef RTLD_GLOBAL 11752# define LT_DLGLOBAL RTLD_GLOBAL 11753#else 11754# ifdef DL_GLOBAL 11755# define LT_DLGLOBAL DL_GLOBAL 11756# else 11757# define LT_DLGLOBAL 0 11758# endif 11759#endif 11760 11761/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11762 find out it does not work in some platform. */ 11763#ifndef LT_DLLAZY_OR_NOW 11764# ifdef RTLD_LAZY 11765# define LT_DLLAZY_OR_NOW RTLD_LAZY 11766# else 11767# ifdef DL_LAZY 11768# define LT_DLLAZY_OR_NOW DL_LAZY 11769# else 11770# ifdef RTLD_NOW 11771# define LT_DLLAZY_OR_NOW RTLD_NOW 11772# else 11773# ifdef DL_NOW 11774# define LT_DLLAZY_OR_NOW DL_NOW 11775# else 11776# define LT_DLLAZY_OR_NOW 0 11777# endif 11778# endif 11779# endif 11780# endif 11781#endif 11782 11783/* When -fvisbility=hidden is used, assume the code has been annotated 11784 correspondingly for the symbols needed. */ 11785#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11786int fnord () __attribute__((visibility("default"))); 11787#endif 11788 11789int fnord () { return 42; } 11790int main () 11791{ 11792 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11793 int status = $lt_dlunknown; 11794 11795 if (self) 11796 { 11797 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11798 else 11799 { 11800 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11801 else puts (dlerror ()); 11802 } 11803 /* dlclose (self); */ 11804 } 11805 else 11806 puts (dlerror ()); 11807 11808 return status; 11809} 11810_LT_EOF 11811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11812 (eval $ac_link) 2>&5 11813 ac_status=$? 11814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11815 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11816 (./conftest; exit; ) >&5 2>/dev/null 11817 lt_status=$? 11818 case x$lt_status in 11819 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11820 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11821 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11822 esac 11823 else : 11824 # compilation failed 11825 lt_cv_dlopen_self=no 11826 fi 11827fi 11828rm -fr conftest* 11829 11830 11831fi 11832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11833$as_echo "$lt_cv_dlopen_self" >&6; } 11834 11835 if test "x$lt_cv_dlopen_self" = xyes; then 11836 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11838$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11839if ${lt_cv_dlopen_self_static+:} false; then : 11840 $as_echo_n "(cached) " >&6 11841else 11842 if test "$cross_compiling" = yes; then : 11843 lt_cv_dlopen_self_static=cross 11844else 11845 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11846 lt_status=$lt_dlunknown 11847 cat > conftest.$ac_ext <<_LT_EOF 11848#line $LINENO "configure" 11849#include "confdefs.h" 11850 11851#if HAVE_DLFCN_H 11852#include <dlfcn.h> 11853#endif 11854 11855#include <stdio.h> 11856 11857#ifdef RTLD_GLOBAL 11858# define LT_DLGLOBAL RTLD_GLOBAL 11859#else 11860# ifdef DL_GLOBAL 11861# define LT_DLGLOBAL DL_GLOBAL 11862# else 11863# define LT_DLGLOBAL 0 11864# endif 11865#endif 11866 11867/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11868 find out it does not work in some platform. */ 11869#ifndef LT_DLLAZY_OR_NOW 11870# ifdef RTLD_LAZY 11871# define LT_DLLAZY_OR_NOW RTLD_LAZY 11872# else 11873# ifdef DL_LAZY 11874# define LT_DLLAZY_OR_NOW DL_LAZY 11875# else 11876# ifdef RTLD_NOW 11877# define LT_DLLAZY_OR_NOW RTLD_NOW 11878# else 11879# ifdef DL_NOW 11880# define LT_DLLAZY_OR_NOW DL_NOW 11881# else 11882# define LT_DLLAZY_OR_NOW 0 11883# endif 11884# endif 11885# endif 11886# endif 11887#endif 11888 11889/* When -fvisbility=hidden is used, assume the code has been annotated 11890 correspondingly for the symbols needed. */ 11891#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11892int fnord () __attribute__((visibility("default"))); 11893#endif 11894 11895int fnord () { return 42; } 11896int main () 11897{ 11898 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11899 int status = $lt_dlunknown; 11900 11901 if (self) 11902 { 11903 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11904 else 11905 { 11906 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11907 else puts (dlerror ()); 11908 } 11909 /* dlclose (self); */ 11910 } 11911 else 11912 puts (dlerror ()); 11913 11914 return status; 11915} 11916_LT_EOF 11917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11918 (eval $ac_link) 2>&5 11919 ac_status=$? 11920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11921 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11922 (./conftest; exit; ) >&5 2>/dev/null 11923 lt_status=$? 11924 case x$lt_status in 11925 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11926 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11927 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11928 esac 11929 else : 11930 # compilation failed 11931 lt_cv_dlopen_self_static=no 11932 fi 11933fi 11934rm -fr conftest* 11935 11936 11937fi 11938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11939$as_echo "$lt_cv_dlopen_self_static" >&6; } 11940 fi 11941 11942 CPPFLAGS="$save_CPPFLAGS" 11943 LDFLAGS="$save_LDFLAGS" 11944 LIBS="$save_LIBS" 11945 ;; 11946 esac 11947 11948 case $lt_cv_dlopen_self in 11949 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11950 *) enable_dlopen_self=unknown ;; 11951 esac 11952 11953 case $lt_cv_dlopen_self_static in 11954 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11955 *) enable_dlopen_self_static=unknown ;; 11956 esac 11957fi 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975striplib= 11976old_striplib= 11977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11978$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11979if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11980 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11981 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11983$as_echo "yes" >&6; } 11984else 11985# FIXME - insert some real tests, host_os isn't really good enough 11986 case $host_os in 11987 darwin*) 11988 if test -n "$STRIP" ; then 11989 striplib="$STRIP -x" 11990 old_striplib="$STRIP -S" 11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11992$as_echo "yes" >&6; } 11993 else 11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11995$as_echo "no" >&6; } 11996 fi 11997 ;; 11998 *) 11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12000$as_echo "no" >&6; } 12001 ;; 12002 esac 12003fi 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 # Report which library types will actually be built 12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12018$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12020$as_echo "$can_build_shared" >&6; } 12021 12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12023$as_echo_n "checking whether to build shared libraries... " >&6; } 12024 test "$can_build_shared" = "no" && enable_shared=no 12025 12026 # On AIX, shared libraries and static libraries use the same namespace, and 12027 # are all built from PIC. 12028 case $host_os in 12029 aix3*) 12030 test "$enable_shared" = yes && enable_static=no 12031 if test -n "$RANLIB"; then 12032 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12033 postinstall_cmds='$RANLIB $lib' 12034 fi 12035 ;; 12036 12037 aix[4-9]*) 12038 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12039 test "$enable_shared" = yes && enable_static=no 12040 fi 12041 ;; 12042 esac 12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12044$as_echo "$enable_shared" >&6; } 12045 12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12047$as_echo_n "checking whether to build static libraries... " >&6; } 12048 # Make sure either enable_shared or enable_static is yes. 12049 test "$enable_shared" = yes || enable_static=yes 12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12051$as_echo "$enable_static" >&6; } 12052 12053 12054 12055 12056fi 12057ac_ext=c 12058ac_cpp='$CPP $CPPFLAGS' 12059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12061ac_compiler_gnu=$ac_cv_c_compiler_gnu 12062 12063CC="$lt_save_CC" 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 ac_config_commands="$ac_config_commands libtool" 12080 12081 12082 12083 12084# Only expand once: 12085 12086 12087 12088 12089# Checks for programs. 12090ac_ext=cpp 12091ac_cpp='$CXXCPP $CPPFLAGS' 12092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12095if test -z "$CXX"; then 12096 if test -n "$CCC"; then 12097 CXX=$CCC 12098 else 12099 if test -n "$ac_tool_prefix"; then 12100 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12101 do 12102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12103set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12105$as_echo_n "checking for $ac_word... " >&6; } 12106if ${ac_cv_prog_CXX+:} false; then : 12107 $as_echo_n "(cached) " >&6 12108else 12109 if test -n "$CXX"; then 12110 ac_cv_prog_CXX="$CXX" # Let the user override the test. 12111else 12112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12113for as_dir in $PATH 12114do 12115 IFS=$as_save_IFS 12116 test -z "$as_dir" && as_dir=. 12117 for ac_exec_ext in '' $ac_executable_extensions; do 12118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12119 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 12120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12121 break 2 12122 fi 12123done 12124 done 12125IFS=$as_save_IFS 12126 12127fi 12128fi 12129CXX=$ac_cv_prog_CXX 12130if test -n "$CXX"; then 12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 12132$as_echo "$CXX" >&6; } 12133else 12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12135$as_echo "no" >&6; } 12136fi 12137 12138 12139 test -n "$CXX" && break 12140 done 12141fi 12142if test -z "$CXX"; then 12143 ac_ct_CXX=$CXX 12144 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12145do 12146 # Extract the first word of "$ac_prog", so it can be a program name with args. 12147set dummy $ac_prog; ac_word=$2 12148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12149$as_echo_n "checking for $ac_word... " >&6; } 12150if ${ac_cv_prog_ac_ct_CXX+:} false; then : 12151 $as_echo_n "(cached) " >&6 12152else 12153 if test -n "$ac_ct_CXX"; then 12154 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 12155else 12156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12157for as_dir in $PATH 12158do 12159 IFS=$as_save_IFS 12160 test -z "$as_dir" && as_dir=. 12161 for ac_exec_ext in '' $ac_executable_extensions; do 12162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12163 ac_cv_prog_ac_ct_CXX="$ac_prog" 12164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12165 break 2 12166 fi 12167done 12168 done 12169IFS=$as_save_IFS 12170 12171fi 12172fi 12173ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 12174if test -n "$ac_ct_CXX"; then 12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 12176$as_echo "$ac_ct_CXX" >&6; } 12177else 12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12179$as_echo "no" >&6; } 12180fi 12181 12182 12183 test -n "$ac_ct_CXX" && break 12184done 12185 12186 if test "x$ac_ct_CXX" = x; then 12187 CXX="g++" 12188 else 12189 case $cross_compiling:$ac_tool_warned in 12190yes:) 12191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12193ac_tool_warned=yes ;; 12194esac 12195 CXX=$ac_ct_CXX 12196 fi 12197fi 12198 12199 fi 12200fi 12201# Provide some information about the compiler. 12202$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 12203set X $ac_compile 12204ac_compiler=$2 12205for ac_option in --version -v -V -qversion; do 12206 { { ac_try="$ac_compiler $ac_option >&5" 12207case "(($ac_try" in 12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12209 *) ac_try_echo=$ac_try;; 12210esac 12211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12212$as_echo "$ac_try_echo"; } >&5 12213 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12214 ac_status=$? 12215 if test -s conftest.err; then 12216 sed '10a\ 12217... rest of stderr output deleted ... 12218 10q' conftest.err >conftest.er1 12219 cat conftest.er1 >&5 12220 fi 12221 rm -f conftest.er1 conftest.err 12222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12223 test $ac_status = 0; } 12224done 12225 12226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 12227$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 12228if ${ac_cv_cxx_compiler_gnu+:} false; then : 12229 $as_echo_n "(cached) " >&6 12230else 12231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12232/* end confdefs.h. */ 12233 12234int 12235main () 12236{ 12237#ifndef __GNUC__ 12238 choke me 12239#endif 12240 12241 ; 12242 return 0; 12243} 12244_ACEOF 12245if ac_fn_cxx_try_compile "$LINENO"; then : 12246 ac_compiler_gnu=yes 12247else 12248 ac_compiler_gnu=no 12249fi 12250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12251ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 12252 12253fi 12254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 12255$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 12256if test $ac_compiler_gnu = yes; then 12257 GXX=yes 12258else 12259 GXX= 12260fi 12261ac_test_CXXFLAGS=${CXXFLAGS+set} 12262ac_save_CXXFLAGS=$CXXFLAGS 12263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 12264$as_echo_n "checking whether $CXX accepts -g... " >&6; } 12265if ${ac_cv_prog_cxx_g+:} false; then : 12266 $as_echo_n "(cached) " >&6 12267else 12268 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 12269 ac_cxx_werror_flag=yes 12270 ac_cv_prog_cxx_g=no 12271 CXXFLAGS="-g" 12272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12273/* end confdefs.h. */ 12274 12275int 12276main () 12277{ 12278 12279 ; 12280 return 0; 12281} 12282_ACEOF 12283if ac_fn_cxx_try_compile "$LINENO"; then : 12284 ac_cv_prog_cxx_g=yes 12285else 12286 CXXFLAGS="" 12287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12288/* end confdefs.h. */ 12289 12290int 12291main () 12292{ 12293 12294 ; 12295 return 0; 12296} 12297_ACEOF 12298if ac_fn_cxx_try_compile "$LINENO"; then : 12299 12300else 12301 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12302 CXXFLAGS="-g" 12303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12304/* end confdefs.h. */ 12305 12306int 12307main () 12308{ 12309 12310 ; 12311 return 0; 12312} 12313_ACEOF 12314if ac_fn_cxx_try_compile "$LINENO"; then : 12315 ac_cv_prog_cxx_g=yes 12316fi 12317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12318fi 12319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12320fi 12321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12322 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12323fi 12324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 12325$as_echo "$ac_cv_prog_cxx_g" >&6; } 12326if test "$ac_test_CXXFLAGS" = set; then 12327 CXXFLAGS=$ac_save_CXXFLAGS 12328elif test $ac_cv_prog_cxx_g = yes; then 12329 if test "$GXX" = yes; then 12330 CXXFLAGS="-g -O2" 12331 else 12332 CXXFLAGS="-g" 12333 fi 12334else 12335 if test "$GXX" = yes; then 12336 CXXFLAGS="-O2" 12337 else 12338 CXXFLAGS= 12339 fi 12340fi 12341ac_ext=c 12342ac_cpp='$CPP $CPPFLAGS' 12343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12345ac_compiler_gnu=$ac_cv_c_compiler_gnu 12346 12347depcc="$CXX" am_compiler_list= 12348 12349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12350$as_echo_n "checking dependency style of $depcc... " >&6; } 12351if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 12352 $as_echo_n "(cached) " >&6 12353else 12354 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12355 # We make a subdir and do the tests there. Otherwise we can end up 12356 # making bogus files that we don't know about and never remove. For 12357 # instance it was reported that on HP-UX the gcc test will end up 12358 # making a dummy file named `D' -- because `-MD' means `put the output 12359 # in D'. 12360 rm -rf conftest.dir 12361 mkdir conftest.dir 12362 # Copy depcomp to subdir because otherwise we won't find it if we're 12363 # using a relative directory. 12364 cp "$am_depcomp" conftest.dir 12365 cd conftest.dir 12366 # We will build objects and dependencies in a subdirectory because 12367 # it helps to detect inapplicable dependency modes. For instance 12368 # both Tru64's cc and ICC support -MD to output dependencies as a 12369 # side effect of compilation, but ICC will put the dependencies in 12370 # the current directory while Tru64 will put them in the object 12371 # directory. 12372 mkdir sub 12373 12374 am_cv_CXX_dependencies_compiler_type=none 12375 if test "$am_compiler_list" = ""; then 12376 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12377 fi 12378 am__universal=false 12379 case " $depcc " in #( 12380 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12381 esac 12382 12383 for depmode in $am_compiler_list; do 12384 # Setup a source with many dependencies, because some compilers 12385 # like to wrap large dependency lists on column 80 (with \), and 12386 # we should not choose a depcomp mode which is confused by this. 12387 # 12388 # We need to recreate these files for each test, as the compiler may 12389 # overwrite some of them when testing with obscure command lines. 12390 # This happens at least with the AIX C compiler. 12391 : > sub/conftest.c 12392 for i in 1 2 3 4 5 6; do 12393 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12394 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 12395 # Solaris 8's {/usr,}/bin/sh. 12396 touch sub/conftst$i.h 12397 done 12398 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12399 12400 # We check with `-c' and `-o' for the sake of the "dashmstdout" 12401 # mode. It turns out that the SunPro C++ compiler does not properly 12402 # handle `-M -o', and we need to detect this. Also, some Intel 12403 # versions had trouble with output in subdirs 12404 am__obj=sub/conftest.${OBJEXT-o} 12405 am__minus_obj="-o $am__obj" 12406 case $depmode in 12407 gcc) 12408 # This depmode causes a compiler race in universal mode. 12409 test "$am__universal" = false || continue 12410 ;; 12411 nosideeffect) 12412 # after this tag, mechanisms are not by side-effect, so they'll 12413 # only be used when explicitly requested 12414 if test "x$enable_dependency_tracking" = xyes; then 12415 continue 12416 else 12417 break 12418 fi 12419 ;; 12420 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12421 # This compiler won't grok `-c -o', but also, the minuso test has 12422 # not run yet. These depmodes are late enough in the game, and 12423 # so weak that their functioning should not be impacted. 12424 am__obj=conftest.${OBJEXT-o} 12425 am__minus_obj= 12426 ;; 12427 none) break ;; 12428 esac 12429 if depmode=$depmode \ 12430 source=sub/conftest.c object=$am__obj \ 12431 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12432 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12433 >/dev/null 2>conftest.err && 12434 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12435 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12436 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12437 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12438 # icc doesn't choke on unknown options, it will just issue warnings 12439 # or remarks (even with -Werror). So we grep stderr for any message 12440 # that says an option was ignored or not supported. 12441 # When given -MP, icc 7.0 and 7.1 complain thusly: 12442 # icc: Command line warning: ignoring option '-M'; no argument required 12443 # The diagnosis changed in icc 8.0: 12444 # icc: Command line remark: option '-MP' not supported 12445 if (grep 'ignoring option' conftest.err || 12446 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12447 am_cv_CXX_dependencies_compiler_type=$depmode 12448 break 12449 fi 12450 fi 12451 done 12452 12453 cd .. 12454 rm -rf conftest.dir 12455else 12456 am_cv_CXX_dependencies_compiler_type=none 12457fi 12458 12459fi 12460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 12461$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 12462CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 12463 12464 if 12465 test "x$enable_dependency_tracking" != xno \ 12466 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 12467 am__fastdepCXX_TRUE= 12468 am__fastdepCXX_FALSE='#' 12469else 12470 am__fastdepCXX_TRUE='#' 12471 am__fastdepCXX_FALSE= 12472fi 12473 12474 12475 12476 12477func_stripname_cnf () 12478{ 12479 case ${2} in 12480 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 12481 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 12482 esac 12483} # func_stripname_cnf 12484 12485 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12486 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12487 (test "X$CXX" != "Xg++"))) ; then 12488 ac_ext=cpp 12489ac_cpp='$CXXCPP $CPPFLAGS' 12490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12494$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12495if test -z "$CXXCPP"; then 12496 if ${ac_cv_prog_CXXCPP+:} false; then : 12497 $as_echo_n "(cached) " >&6 12498else 12499 # Double quotes because CXXCPP needs to be expanded 12500 for CXXCPP in "$CXX -E" "/lib/cpp" 12501 do 12502 ac_preproc_ok=false 12503for ac_cxx_preproc_warn_flag in '' yes 12504do 12505 # Use a header file that comes with gcc, so configuring glibc 12506 # with a fresh cross-compiler works. 12507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12508 # <limits.h> exists even on freestanding compilers. 12509 # On the NeXT, cc -E runs the code through the compiler's parser, 12510 # not just through cpp. "Syntax error" is here to catch this case. 12511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12512/* end confdefs.h. */ 12513#ifdef __STDC__ 12514# include <limits.h> 12515#else 12516# include <assert.h> 12517#endif 12518 Syntax error 12519_ACEOF 12520if ac_fn_cxx_try_cpp "$LINENO"; then : 12521 12522else 12523 # Broken: fails on valid input. 12524continue 12525fi 12526rm -f conftest.err conftest.i conftest.$ac_ext 12527 12528 # OK, works on sane cases. Now check whether nonexistent headers 12529 # can be detected and how. 12530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12531/* end confdefs.h. */ 12532#include <ac_nonexistent.h> 12533_ACEOF 12534if ac_fn_cxx_try_cpp "$LINENO"; then : 12535 # Broken: success on invalid input. 12536continue 12537else 12538 # Passes both tests. 12539ac_preproc_ok=: 12540break 12541fi 12542rm -f conftest.err conftest.i conftest.$ac_ext 12543 12544done 12545# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12546rm -f conftest.i conftest.err conftest.$ac_ext 12547if $ac_preproc_ok; then : 12548 break 12549fi 12550 12551 done 12552 ac_cv_prog_CXXCPP=$CXXCPP 12553 12554fi 12555 CXXCPP=$ac_cv_prog_CXXCPP 12556else 12557 ac_cv_prog_CXXCPP=$CXXCPP 12558fi 12559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12560$as_echo "$CXXCPP" >&6; } 12561ac_preproc_ok=false 12562for ac_cxx_preproc_warn_flag in '' yes 12563do 12564 # Use a header file that comes with gcc, so configuring glibc 12565 # with a fresh cross-compiler works. 12566 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12567 # <limits.h> exists even on freestanding compilers. 12568 # On the NeXT, cc -E runs the code through the compiler's parser, 12569 # not just through cpp. "Syntax error" is here to catch this case. 12570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12571/* end confdefs.h. */ 12572#ifdef __STDC__ 12573# include <limits.h> 12574#else 12575# include <assert.h> 12576#endif 12577 Syntax error 12578_ACEOF 12579if ac_fn_cxx_try_cpp "$LINENO"; then : 12580 12581else 12582 # Broken: fails on valid input. 12583continue 12584fi 12585rm -f conftest.err conftest.i conftest.$ac_ext 12586 12587 # OK, works on sane cases. Now check whether nonexistent headers 12588 # can be detected and how. 12589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12590/* end confdefs.h. */ 12591#include <ac_nonexistent.h> 12592_ACEOF 12593if ac_fn_cxx_try_cpp "$LINENO"; then : 12594 # Broken: success on invalid input. 12595continue 12596else 12597 # Passes both tests. 12598ac_preproc_ok=: 12599break 12600fi 12601rm -f conftest.err conftest.i conftest.$ac_ext 12602 12603done 12604# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12605rm -f conftest.i conftest.err conftest.$ac_ext 12606if $ac_preproc_ok; then : 12607 12608else 12609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12611as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12612See \`config.log' for more details" "$LINENO" 5; } 12613fi 12614 12615ac_ext=c 12616ac_cpp='$CPP $CPPFLAGS' 12617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12619ac_compiler_gnu=$ac_cv_c_compiler_gnu 12620 12621else 12622 _lt_caught_CXX_error=yes 12623fi 12624 12625ac_ext=cpp 12626ac_cpp='$CXXCPP $CPPFLAGS' 12627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12630 12631archive_cmds_need_lc_CXX=no 12632allow_undefined_flag_CXX= 12633always_export_symbols_CXX=no 12634archive_expsym_cmds_CXX= 12635compiler_needs_object_CXX=no 12636export_dynamic_flag_spec_CXX= 12637hardcode_direct_CXX=no 12638hardcode_direct_absolute_CXX=no 12639hardcode_libdir_flag_spec_CXX= 12640hardcode_libdir_separator_CXX= 12641hardcode_minus_L_CXX=no 12642hardcode_shlibpath_var_CXX=unsupported 12643hardcode_automatic_CXX=no 12644inherit_rpath_CXX=no 12645module_cmds_CXX= 12646module_expsym_cmds_CXX= 12647link_all_deplibs_CXX=unknown 12648old_archive_cmds_CXX=$old_archive_cmds 12649reload_flag_CXX=$reload_flag 12650reload_cmds_CXX=$reload_cmds 12651no_undefined_flag_CXX= 12652whole_archive_flag_spec_CXX= 12653enable_shared_with_static_runtimes_CXX=no 12654 12655# Source file extension for C++ test sources. 12656ac_ext=cpp 12657 12658# Object file extension for compiled C++ test sources. 12659objext=o 12660objext_CXX=$objext 12661 12662# No sense in running all these tests if we already determined that 12663# the CXX compiler isn't working. Some variables (like enable_shared) 12664# are currently assumed to apply to all compilers on this platform, 12665# and will be corrupted by setting them based on a non-working compiler. 12666if test "$_lt_caught_CXX_error" != yes; then 12667 # Code to be used in simple compile tests 12668 lt_simple_compile_test_code="int some_variable = 0;" 12669 12670 # Code to be used in simple link tests 12671 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12672 12673 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12674 12675 12676 12677 12678 12679 12680# If no C compiler was specified, use CC. 12681LTCC=${LTCC-"$CC"} 12682 12683# If no C compiler flags were specified, use CFLAGS. 12684LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12685 12686# Allow CC to be a program name with arguments. 12687compiler=$CC 12688 12689 12690 # save warnings/boilerplate of simple test code 12691 ac_outfile=conftest.$ac_objext 12692echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12693eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12694_lt_compiler_boilerplate=`cat conftest.err` 12695$RM conftest* 12696 12697 ac_outfile=conftest.$ac_objext 12698echo "$lt_simple_link_test_code" >conftest.$ac_ext 12699eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12700_lt_linker_boilerplate=`cat conftest.err` 12701$RM -r conftest* 12702 12703 12704 # Allow CC to be a program name with arguments. 12705 lt_save_CC=$CC 12706 lt_save_CFLAGS=$CFLAGS 12707 lt_save_LD=$LD 12708 lt_save_GCC=$GCC 12709 GCC=$GXX 12710 lt_save_with_gnu_ld=$with_gnu_ld 12711 lt_save_path_LD=$lt_cv_path_LD 12712 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12713 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12714 else 12715 $as_unset lt_cv_prog_gnu_ld 12716 fi 12717 if test -n "${lt_cv_path_LDCXX+set}"; then 12718 lt_cv_path_LD=$lt_cv_path_LDCXX 12719 else 12720 $as_unset lt_cv_path_LD 12721 fi 12722 test -z "${LDCXX+set}" || LD=$LDCXX 12723 CC=${CXX-"c++"} 12724 CFLAGS=$CXXFLAGS 12725 compiler=$CC 12726 compiler_CXX=$CC 12727 for cc_temp in $compiler""; do 12728 case $cc_temp in 12729 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12730 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12731 \-*) ;; 12732 *) break;; 12733 esac 12734done 12735cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12736 12737 12738 if test -n "$compiler"; then 12739 # We don't want -fno-exception when compiling C++ code, so set the 12740 # no_builtin_flag separately 12741 if test "$GXX" = yes; then 12742 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12743 else 12744 lt_prog_compiler_no_builtin_flag_CXX= 12745 fi 12746 12747 if test "$GXX" = yes; then 12748 # Set up default GNU C++ configuration 12749 12750 12751 12752# Check whether --with-gnu-ld was given. 12753if test "${with_gnu_ld+set}" = set; then : 12754 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12755else 12756 with_gnu_ld=no 12757fi 12758 12759ac_prog=ld 12760if test "$GCC" = yes; then 12761 # Check if gcc -print-prog-name=ld gives a path. 12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12763$as_echo_n "checking for ld used by $CC... " >&6; } 12764 case $host in 12765 *-*-mingw*) 12766 # gcc leaves a trailing carriage return which upsets mingw 12767 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12768 *) 12769 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12770 esac 12771 case $ac_prog in 12772 # Accept absolute paths. 12773 [\\/]* | ?:[\\/]*) 12774 re_direlt='/[^/][^/]*/\.\./' 12775 # Canonicalize the pathname of ld 12776 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12777 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12778 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12779 done 12780 test -z "$LD" && LD="$ac_prog" 12781 ;; 12782 "") 12783 # If it fails, then pretend we aren't using GCC. 12784 ac_prog=ld 12785 ;; 12786 *) 12787 # If it is relative, then search for the first ld in PATH. 12788 with_gnu_ld=unknown 12789 ;; 12790 esac 12791elif test "$with_gnu_ld" = yes; then 12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12793$as_echo_n "checking for GNU ld... " >&6; } 12794else 12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12796$as_echo_n "checking for non-GNU ld... " >&6; } 12797fi 12798if ${lt_cv_path_LD+:} false; then : 12799 $as_echo_n "(cached) " >&6 12800else 12801 if test -z "$LD"; then 12802 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12803 for ac_dir in $PATH; do 12804 IFS="$lt_save_ifs" 12805 test -z "$ac_dir" && ac_dir=. 12806 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12807 lt_cv_path_LD="$ac_dir/$ac_prog" 12808 # Check to see if the program is GNU ld. I'd rather use --version, 12809 # but apparently some variants of GNU ld only accept -v. 12810 # Break only if it was the GNU/non-GNU ld that we prefer. 12811 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12812 *GNU* | *'with BFD'*) 12813 test "$with_gnu_ld" != no && break 12814 ;; 12815 *) 12816 test "$with_gnu_ld" != yes && break 12817 ;; 12818 esac 12819 fi 12820 done 12821 IFS="$lt_save_ifs" 12822else 12823 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12824fi 12825fi 12826 12827LD="$lt_cv_path_LD" 12828if test -n "$LD"; then 12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12830$as_echo "$LD" >&6; } 12831else 12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12833$as_echo "no" >&6; } 12834fi 12835test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12837$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12838if ${lt_cv_prog_gnu_ld+:} false; then : 12839 $as_echo_n "(cached) " >&6 12840else 12841 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12842case `$LD -v 2>&1 </dev/null` in 12843*GNU* | *'with BFD'*) 12844 lt_cv_prog_gnu_ld=yes 12845 ;; 12846*) 12847 lt_cv_prog_gnu_ld=no 12848 ;; 12849esac 12850fi 12851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12852$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12853with_gnu_ld=$lt_cv_prog_gnu_ld 12854 12855 12856 12857 12858 12859 12860 12861 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12862 # archiving commands below assume that GNU ld is being used. 12863 if test "$with_gnu_ld" = yes; then 12864 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12865 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' 12866 12867 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12868 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12869 12870 # If archive_cmds runs LD, not CC, wlarc should be empty 12871 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12872 # investigate it a little bit more. (MM) 12873 wlarc='${wl}' 12874 12875 # ancient GNU ld didn't support --whole-archive et. al. 12876 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12877 $GREP 'no-whole-archive' > /dev/null; then 12878 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12879 else 12880 whole_archive_flag_spec_CXX= 12881 fi 12882 else 12883 with_gnu_ld=no 12884 wlarc= 12885 12886 # A generic and very simple default shared library creation 12887 # command for GNU C++ for the case where it uses the native 12888 # linker, instead of GNU ld. If possible, this setting should 12889 # overridden to take advantage of the native linker features on 12890 # the platform it is being used on. 12891 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12892 fi 12893 12894 # Commands to make compiler produce verbose output that lists 12895 # what "hidden" libraries, object files and flags are used when 12896 # linking a shared library. 12897 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12898 12899 else 12900 GXX=no 12901 with_gnu_ld=no 12902 wlarc= 12903 fi 12904 12905 # PORTME: fill in a description of your system's C++ link characteristics 12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12907$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12908 ld_shlibs_CXX=yes 12909 case $host_os in 12910 aix3*) 12911 # FIXME: insert proper C++ library support 12912 ld_shlibs_CXX=no 12913 ;; 12914 aix[4-9]*) 12915 if test "$host_cpu" = ia64; then 12916 # On IA64, the linker does run time linking by default, so we don't 12917 # have to do anything special. 12918 aix_use_runtimelinking=no 12919 exp_sym_flag='-Bexport' 12920 no_entry_flag="" 12921 else 12922 aix_use_runtimelinking=no 12923 12924 # Test if we are trying to use run time linking or normal 12925 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12926 # need to do runtime linking. 12927 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12928 for ld_flag in $LDFLAGS; do 12929 case $ld_flag in 12930 *-brtl*) 12931 aix_use_runtimelinking=yes 12932 break 12933 ;; 12934 esac 12935 done 12936 ;; 12937 esac 12938 12939 exp_sym_flag='-bexport' 12940 no_entry_flag='-bnoentry' 12941 fi 12942 12943 # When large executables or shared objects are built, AIX ld can 12944 # have problems creating the table of contents. If linking a library 12945 # or program results in "error TOC overflow" add -mminimal-toc to 12946 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12947 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12948 12949 archive_cmds_CXX='' 12950 hardcode_direct_CXX=yes 12951 hardcode_direct_absolute_CXX=yes 12952 hardcode_libdir_separator_CXX=':' 12953 link_all_deplibs_CXX=yes 12954 file_list_spec_CXX='${wl}-f,' 12955 12956 if test "$GXX" = yes; then 12957 case $host_os in aix4.[012]|aix4.[012].*) 12958 # We only want to do this on AIX 4.2 and lower, the check 12959 # below for broken collect2 doesn't work under 4.3+ 12960 collect2name=`${CC} -print-prog-name=collect2` 12961 if test -f "$collect2name" && 12962 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12963 then 12964 # We have reworked collect2 12965 : 12966 else 12967 # We have old collect2 12968 hardcode_direct_CXX=unsupported 12969 # It fails to find uninstalled libraries when the uninstalled 12970 # path is not listed in the libpath. Setting hardcode_minus_L 12971 # to unsupported forces relinking 12972 hardcode_minus_L_CXX=yes 12973 hardcode_libdir_flag_spec_CXX='-L$libdir' 12974 hardcode_libdir_separator_CXX= 12975 fi 12976 esac 12977 shared_flag='-shared' 12978 if test "$aix_use_runtimelinking" = yes; then 12979 shared_flag="$shared_flag "'${wl}-G' 12980 fi 12981 else 12982 # not using gcc 12983 if test "$host_cpu" = ia64; then 12984 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12985 # chokes on -Wl,-G. The following line is correct: 12986 shared_flag='-G' 12987 else 12988 if test "$aix_use_runtimelinking" = yes; then 12989 shared_flag='${wl}-G' 12990 else 12991 shared_flag='${wl}-bM:SRE' 12992 fi 12993 fi 12994 fi 12995 12996 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12997 # It seems that -bexpall does not export symbols beginning with 12998 # underscore (_), so it is better to generate a list of symbols to 12999 # export. 13000 always_export_symbols_CXX=yes 13001 if test "$aix_use_runtimelinking" = yes; then 13002 # Warning - without using the other runtime loading flags (-brtl), 13003 # -berok will link without error, but may produce a broken library. 13004 allow_undefined_flag_CXX='-berok' 13005 # Determine the default libpath from the value encoded in an empty 13006 # executable. 13007 if test "${lt_cv_aix_libpath+set}" = set; then 13008 aix_libpath=$lt_cv_aix_libpath 13009else 13010 if ${lt_cv_aix_libpath__CXX+:} false; then : 13011 $as_echo_n "(cached) " >&6 13012else 13013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13014/* end confdefs.h. */ 13015 13016int 13017main () 13018{ 13019 13020 ; 13021 return 0; 13022} 13023_ACEOF 13024if ac_fn_cxx_try_link "$LINENO"; then : 13025 13026 lt_aix_libpath_sed=' 13027 /Import File Strings/,/^$/ { 13028 /^0/ { 13029 s/^0 *\([^ ]*\) *$/\1/ 13030 p 13031 } 13032 }' 13033 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13034 # Check for a 64-bit object if we didn't find anything. 13035 if test -z "$lt_cv_aix_libpath__CXX"; then 13036 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13037 fi 13038fi 13039rm -f core conftest.err conftest.$ac_objext \ 13040 conftest$ac_exeext conftest.$ac_ext 13041 if test -z "$lt_cv_aix_libpath__CXX"; then 13042 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13043 fi 13044 13045fi 13046 13047 aix_libpath=$lt_cv_aix_libpath__CXX 13048fi 13049 13050 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13051 13052 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13053 else 13054 if test "$host_cpu" = ia64; then 13055 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13056 allow_undefined_flag_CXX="-z nodefs" 13057 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" 13058 else 13059 # Determine the default libpath from the value encoded in an 13060 # empty executable. 13061 if test "${lt_cv_aix_libpath+set}" = set; then 13062 aix_libpath=$lt_cv_aix_libpath 13063else 13064 if ${lt_cv_aix_libpath__CXX+:} false; then : 13065 $as_echo_n "(cached) " >&6 13066else 13067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13068/* end confdefs.h. */ 13069 13070int 13071main () 13072{ 13073 13074 ; 13075 return 0; 13076} 13077_ACEOF 13078if ac_fn_cxx_try_link "$LINENO"; then : 13079 13080 lt_aix_libpath_sed=' 13081 /Import File Strings/,/^$/ { 13082 /^0/ { 13083 s/^0 *\([^ ]*\) *$/\1/ 13084 p 13085 } 13086 }' 13087 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13088 # Check for a 64-bit object if we didn't find anything. 13089 if test -z "$lt_cv_aix_libpath__CXX"; then 13090 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13091 fi 13092fi 13093rm -f core conftest.err conftest.$ac_objext \ 13094 conftest$ac_exeext conftest.$ac_ext 13095 if test -z "$lt_cv_aix_libpath__CXX"; then 13096 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13097 fi 13098 13099fi 13100 13101 aix_libpath=$lt_cv_aix_libpath__CXX 13102fi 13103 13104 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13105 # Warning - without using the other run time loading flags, 13106 # -berok will link without error, but may produce a broken library. 13107 no_undefined_flag_CXX=' ${wl}-bernotok' 13108 allow_undefined_flag_CXX=' ${wl}-berok' 13109 if test "$with_gnu_ld" = yes; then 13110 # We only use this code for GNU lds that support --whole-archive. 13111 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13112 else 13113 # Exported symbols can be pulled into shared objects from archives 13114 whole_archive_flag_spec_CXX='$convenience' 13115 fi 13116 archive_cmds_need_lc_CXX=yes 13117 # This is similar to how AIX traditionally builds its shared 13118 # libraries. 13119 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13120 fi 13121 fi 13122 ;; 13123 13124 beos*) 13125 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13126 allow_undefined_flag_CXX=unsupported 13127 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13128 # support --undefined. This deserves some investigation. FIXME 13129 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13130 else 13131 ld_shlibs_CXX=no 13132 fi 13133 ;; 13134 13135 chorus*) 13136 case $cc_basename in 13137 *) 13138 # FIXME: insert proper C++ library support 13139 ld_shlibs_CXX=no 13140 ;; 13141 esac 13142 ;; 13143 13144 cygwin* | mingw* | pw32* | cegcc*) 13145 case $GXX,$cc_basename in 13146 ,cl* | no,cl*) 13147 # Native MSVC 13148 # hardcode_libdir_flag_spec is actually meaningless, as there is 13149 # no search path for DLLs. 13150 hardcode_libdir_flag_spec_CXX=' ' 13151 allow_undefined_flag_CXX=unsupported 13152 always_export_symbols_CXX=yes 13153 file_list_spec_CXX='@' 13154 # Tell ltmain to make .lib files, not .a files. 13155 libext=lib 13156 # Tell ltmain to make .dll files, not .so files. 13157 shrext_cmds=".dll" 13158 # FIXME: Setting linknames here is a bad hack. 13159 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 13160 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13161 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 13162 else 13163 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 13164 fi~ 13165 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13166 linknames=' 13167 # The linker will not automatically build a static lib if we build a DLL. 13168 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13169 enable_shared_with_static_runtimes_CXX=yes 13170 # Don't use ranlib 13171 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13172 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13173 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13174 case $lt_outputfile in 13175 *.exe|*.EXE) ;; 13176 *) 13177 lt_outputfile="$lt_outputfile.exe" 13178 lt_tool_outputfile="$lt_tool_outputfile.exe" 13179 ;; 13180 esac~ 13181 func_to_tool_file "$lt_outputfile"~ 13182 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 13183 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13184 $RM "$lt_outputfile.manifest"; 13185 fi' 13186 ;; 13187 *) 13188 # g++ 13189 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13190 # as there is no search path for DLLs. 13191 hardcode_libdir_flag_spec_CXX='-L$libdir' 13192 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 13193 allow_undefined_flag_CXX=unsupported 13194 always_export_symbols_CXX=no 13195 enable_shared_with_static_runtimes_CXX=yes 13196 13197 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13198 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' 13199 # If the export-symbols file already is a .def file (1st line 13200 # is EXPORTS), use it as is; otherwise, prepend... 13201 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13202 cp $export_symbols $output_objdir/$soname.def; 13203 else 13204 echo EXPORTS > $output_objdir/$soname.def; 13205 cat $export_symbols >> $output_objdir/$soname.def; 13206 fi~ 13207 $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' 13208 else 13209 ld_shlibs_CXX=no 13210 fi 13211 ;; 13212 esac 13213 ;; 13214 darwin* | rhapsody*) 13215 13216 13217 archive_cmds_need_lc_CXX=no 13218 hardcode_direct_CXX=no 13219 hardcode_automatic_CXX=yes 13220 hardcode_shlibpath_var_CXX=unsupported 13221 if test "$lt_cv_ld_force_load" = "yes"; then 13222 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\"`' 13223 13224 else 13225 whole_archive_flag_spec_CXX='' 13226 fi 13227 link_all_deplibs_CXX=yes 13228 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 13229 case $cc_basename in 13230 ifort*) _lt_dar_can_shared=yes ;; 13231 *) _lt_dar_can_shared=$GCC ;; 13232 esac 13233 if test "$_lt_dar_can_shared" = "yes"; then 13234 output_verbose_link_cmd=func_echo_all 13235 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}" 13236 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13237 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}" 13238 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}" 13239 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 13240 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}" 13241 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}" 13242 fi 13243 13244 else 13245 ld_shlibs_CXX=no 13246 fi 13247 13248 ;; 13249 13250 dgux*) 13251 case $cc_basename in 13252 ec++*) 13253 # FIXME: insert proper C++ library support 13254 ld_shlibs_CXX=no 13255 ;; 13256 ghcx*) 13257 # Green Hills C++ Compiler 13258 # FIXME: insert proper C++ library support 13259 ld_shlibs_CXX=no 13260 ;; 13261 *) 13262 # FIXME: insert proper C++ library support 13263 ld_shlibs_CXX=no 13264 ;; 13265 esac 13266 ;; 13267 13268 freebsd2.*) 13269 # C++ shared libraries reported to be fairly broken before 13270 # switch to ELF 13271 ld_shlibs_CXX=no 13272 ;; 13273 13274 freebsd-elf*) 13275 archive_cmds_need_lc_CXX=no 13276 ;; 13277 13278 freebsd* | dragonfly*) 13279 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13280 # conventions 13281 ld_shlibs_CXX=yes 13282 ;; 13283 13284 haiku*) 13285 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13286 link_all_deplibs_CXX=yes 13287 ;; 13288 13289 hpux9*) 13290 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13291 hardcode_libdir_separator_CXX=: 13292 export_dynamic_flag_spec_CXX='${wl}-E' 13293 hardcode_direct_CXX=yes 13294 hardcode_minus_L_CXX=yes # Not in the search PATH, 13295 # but as the default 13296 # location of the library. 13297 13298 case $cc_basename in 13299 CC*) 13300 # FIXME: insert proper C++ library support 13301 ld_shlibs_CXX=no 13302 ;; 13303 aCC*) 13304 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13305 # Commands to make compiler produce verbose output that lists 13306 # what "hidden" libraries, object files and flags are used when 13307 # linking a shared library. 13308 # 13309 # There doesn't appear to be a way to prevent this compiler from 13310 # explicitly linking system object files so we need to strip them 13311 # from the output so that they don't get included in the library 13312 # dependencies. 13313 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"' 13314 ;; 13315 *) 13316 if test "$GXX" = yes; then 13317 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13318 else 13319 # FIXME: insert proper C++ library support 13320 ld_shlibs_CXX=no 13321 fi 13322 ;; 13323 esac 13324 ;; 13325 13326 hpux10*|hpux11*) 13327 if test $with_gnu_ld = no; then 13328 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13329 hardcode_libdir_separator_CXX=: 13330 13331 case $host_cpu in 13332 hppa*64*|ia64*) 13333 ;; 13334 *) 13335 export_dynamic_flag_spec_CXX='${wl}-E' 13336 ;; 13337 esac 13338 fi 13339 case $host_cpu in 13340 hppa*64*|ia64*) 13341 hardcode_direct_CXX=no 13342 hardcode_shlibpath_var_CXX=no 13343 ;; 13344 *) 13345 hardcode_direct_CXX=yes 13346 hardcode_direct_absolute_CXX=yes 13347 hardcode_minus_L_CXX=yes # Not in the search PATH, 13348 # but as the default 13349 # location of the library. 13350 ;; 13351 esac 13352 13353 case $cc_basename in 13354 CC*) 13355 # FIXME: insert proper C++ library support 13356 ld_shlibs_CXX=no 13357 ;; 13358 aCC*) 13359 case $host_cpu in 13360 hppa*64*) 13361 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13362 ;; 13363 ia64*) 13364 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13365 ;; 13366 *) 13367 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13368 ;; 13369 esac 13370 # Commands to make compiler produce verbose output that lists 13371 # what "hidden" libraries, object files and flags are used when 13372 # linking a shared library. 13373 # 13374 # There doesn't appear to be a way to prevent this compiler from 13375 # explicitly linking system object files so we need to strip them 13376 # from the output so that they don't get included in the library 13377 # dependencies. 13378 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"' 13379 ;; 13380 *) 13381 if test "$GXX" = yes; then 13382 if test $with_gnu_ld = no; then 13383 case $host_cpu in 13384 hppa*64*) 13385 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13386 ;; 13387 ia64*) 13388 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13389 ;; 13390 *) 13391 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' 13392 ;; 13393 esac 13394 fi 13395 else 13396 # FIXME: insert proper C++ library support 13397 ld_shlibs_CXX=no 13398 fi 13399 ;; 13400 esac 13401 ;; 13402 13403 interix[3-9]*) 13404 hardcode_direct_CXX=no 13405 hardcode_shlibpath_var_CXX=no 13406 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13407 export_dynamic_flag_spec_CXX='${wl}-E' 13408 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13409 # Instead, shared libraries are loaded at an image base (0x10000000 by 13410 # default) and relocated if they conflict, which is a slow very memory 13411 # consuming and fragmenting process. To avoid this, we pick a random, 13412 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13413 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13414 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' 13415 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' 13416 ;; 13417 irix5* | irix6*) 13418 case $cc_basename in 13419 CC*) 13420 # SGI C++ 13421 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' 13422 13423 # Archives containing C++ object files must be created using 13424 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13425 # necessary to make sure instantiated templates are included 13426 # in the archive. 13427 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13428 ;; 13429 *) 13430 if test "$GXX" = yes; then 13431 if test "$with_gnu_ld" = no; then 13432 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' 13433 else 13434 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' 13435 fi 13436 fi 13437 link_all_deplibs_CXX=yes 13438 ;; 13439 esac 13440 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13441 hardcode_libdir_separator_CXX=: 13442 inherit_rpath_CXX=yes 13443 ;; 13444 13445 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13446 case $cc_basename in 13447 KCC*) 13448 # Kuck and Associates, Inc. (KAI) C++ Compiler 13449 13450 # KCC will only create a shared library if the output file 13451 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13452 # to its proper name (with version) after linking. 13453 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' 13454 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' 13455 # Commands to make compiler produce verbose output that lists 13456 # what "hidden" libraries, object files and flags are used when 13457 # linking a shared library. 13458 # 13459 # There doesn't appear to be a way to prevent this compiler from 13460 # explicitly linking system object files so we need to strip them 13461 # from the output so that they don't get included in the library 13462 # dependencies. 13463 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"' 13464 13465 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13466 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13467 13468 # Archives containing C++ object files must be created using 13469 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13470 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13471 ;; 13472 icpc* | ecpc* ) 13473 # Intel C++ 13474 with_gnu_ld=yes 13475 # version 8.0 and above of icpc choke on multiply defined symbols 13476 # if we add $predep_objects and $postdep_objects, however 7.1 and 13477 # earlier do not add the objects themselves. 13478 case `$CC -V 2>&1` in 13479 *"Version 7."*) 13480 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13481 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' 13482 ;; 13483 *) # Version 8.0 or newer 13484 tmp_idyn= 13485 case $host_cpu in 13486 ia64*) tmp_idyn=' -i_dynamic';; 13487 esac 13488 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13489 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' 13490 ;; 13491 esac 13492 archive_cmds_need_lc_CXX=no 13493 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13494 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13495 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13496 ;; 13497 pgCC* | pgcpp*) 13498 # Portland Group C++ compiler 13499 case `$CC -V` in 13500 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13501 prelink_cmds_CXX='tpldir=Template.dir~ 13502 rm -rf $tpldir~ 13503 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13504 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13505 old_archive_cmds_CXX='tpldir=Template.dir~ 13506 rm -rf $tpldir~ 13507 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13508 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13509 $RANLIB $oldlib' 13510 archive_cmds_CXX='tpldir=Template.dir~ 13511 rm -rf $tpldir~ 13512 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13513 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13514 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13515 rm -rf $tpldir~ 13516 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13517 $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' 13518 ;; 13519 *) # Version 6 and above use weak symbols 13520 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13521 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' 13522 ;; 13523 esac 13524 13525 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13526 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13527 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' 13528 ;; 13529 cxx*) 13530 # Compaq C++ 13531 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13532 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' 13533 13534 runpath_var=LD_RUN_PATH 13535 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13536 hardcode_libdir_separator_CXX=: 13537 13538 # Commands to make compiler produce verbose output that lists 13539 # what "hidden" libraries, object files and flags are used when 13540 # linking a shared library. 13541 # 13542 # There doesn't appear to be a way to prevent this compiler from 13543 # explicitly linking system object files so we need to strip them 13544 # from the output so that they don't get included in the library 13545 # dependencies. 13546 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' 13547 ;; 13548 xl* | mpixl* | bgxl*) 13549 # IBM XL 8.0 on PPC, with GNU ld 13550 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13551 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13552 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13553 if test "x$supports_anon_versioning" = xyes; then 13554 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13555 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13556 echo "local: *; };" >> $output_objdir/$libname.ver~ 13557 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13558 fi 13559 ;; 13560 *) 13561 case `$CC -V 2>&1 | sed 5q` in 13562 *Sun\ C*) 13563 # Sun C++ 5.9 13564 no_undefined_flag_CXX=' -zdefs' 13565 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13566 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' 13567 hardcode_libdir_flag_spec_CXX='-R$libdir' 13568 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' 13569 compiler_needs_object_CXX=yes 13570 13571 # Not sure whether something based on 13572 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13573 # would be better. 13574 output_verbose_link_cmd='func_echo_all' 13575 13576 # Archives containing C++ object files must be created using 13577 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13578 # necessary to make sure instantiated templates are included 13579 # in the archive. 13580 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13581 ;; 13582 esac 13583 ;; 13584 esac 13585 ;; 13586 13587 lynxos*) 13588 # FIXME: insert proper C++ library support 13589 ld_shlibs_CXX=no 13590 ;; 13591 13592 m88k*) 13593 # FIXME: insert proper C++ library support 13594 ld_shlibs_CXX=no 13595 ;; 13596 13597 mvs*) 13598 case $cc_basename in 13599 cxx*) 13600 # FIXME: insert proper C++ library support 13601 ld_shlibs_CXX=no 13602 ;; 13603 *) 13604 # FIXME: insert proper C++ library support 13605 ld_shlibs_CXX=no 13606 ;; 13607 esac 13608 ;; 13609 13610 netbsd*) 13611 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13612 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13613 wlarc= 13614 hardcode_libdir_flag_spec_CXX='-R$libdir' 13615 hardcode_direct_CXX=yes 13616 hardcode_shlibpath_var_CXX=no 13617 fi 13618 # Workaround some broken pre-1.5 toolchains 13619 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13620 ;; 13621 13622 *nto* | *qnx*) 13623 ld_shlibs_CXX=yes 13624 ;; 13625 13626 openbsd2*) 13627 # C++ shared libraries are fairly broken 13628 ld_shlibs_CXX=no 13629 ;; 13630 13631 openbsd*) 13632 if test -f /usr/libexec/ld.so; then 13633 hardcode_direct_CXX=yes 13634 hardcode_shlibpath_var_CXX=no 13635 hardcode_direct_absolute_CXX=yes 13636 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13637 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13638 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13639 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13640 export_dynamic_flag_spec_CXX='${wl}-E' 13641 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13642 fi 13643 output_verbose_link_cmd=func_echo_all 13644 else 13645 ld_shlibs_CXX=no 13646 fi 13647 ;; 13648 13649 osf3* | osf4* | osf5*) 13650 case $cc_basename in 13651 KCC*) 13652 # Kuck and Associates, Inc. (KAI) C++ Compiler 13653 13654 # KCC will only create a shared library if the output file 13655 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13656 # to its proper name (with version) after linking. 13657 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' 13658 13659 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13660 hardcode_libdir_separator_CXX=: 13661 13662 # Archives containing C++ object files must be created using 13663 # the KAI C++ compiler. 13664 case $host in 13665 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13666 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13667 esac 13668 ;; 13669 RCC*) 13670 # Rational C++ 2.4.1 13671 # FIXME: insert proper C++ library support 13672 ld_shlibs_CXX=no 13673 ;; 13674 cxx*) 13675 case $host in 13676 osf3*) 13677 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13678 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' 13679 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13680 ;; 13681 *) 13682 allow_undefined_flag_CXX=' -expect_unresolved \*' 13683 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' 13684 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13685 echo "-hidden">> $lib.exp~ 13686 $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~ 13687 $RM $lib.exp' 13688 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13689 ;; 13690 esac 13691 13692 hardcode_libdir_separator_CXX=: 13693 13694 # Commands to make compiler produce verbose output that lists 13695 # what "hidden" libraries, object files and flags are used when 13696 # linking a shared library. 13697 # 13698 # There doesn't appear to be a way to prevent this compiler from 13699 # explicitly linking system object files so we need to strip them 13700 # from the output so that they don't get included in the library 13701 # dependencies. 13702 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"' 13703 ;; 13704 *) 13705 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13706 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13707 case $host in 13708 osf3*) 13709 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' 13710 ;; 13711 *) 13712 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' 13713 ;; 13714 esac 13715 13716 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13717 hardcode_libdir_separator_CXX=: 13718 13719 # Commands to make compiler produce verbose output that lists 13720 # what "hidden" libraries, object files and flags are used when 13721 # linking a shared library. 13722 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13723 13724 else 13725 # FIXME: insert proper C++ library support 13726 ld_shlibs_CXX=no 13727 fi 13728 ;; 13729 esac 13730 ;; 13731 13732 psos*) 13733 # FIXME: insert proper C++ library support 13734 ld_shlibs_CXX=no 13735 ;; 13736 13737 sunos4*) 13738 case $cc_basename in 13739 CC*) 13740 # Sun C++ 4.x 13741 # FIXME: insert proper C++ library support 13742 ld_shlibs_CXX=no 13743 ;; 13744 lcc*) 13745 # Lucid 13746 # FIXME: insert proper C++ library support 13747 ld_shlibs_CXX=no 13748 ;; 13749 *) 13750 # FIXME: insert proper C++ library support 13751 ld_shlibs_CXX=no 13752 ;; 13753 esac 13754 ;; 13755 13756 solaris*) 13757 case $cc_basename in 13758 CC* | sunCC*) 13759 # Sun C++ 4.2, 5.x and Centerline C++ 13760 archive_cmds_need_lc_CXX=yes 13761 no_undefined_flag_CXX=' -zdefs' 13762 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13763 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13764 $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' 13765 13766 hardcode_libdir_flag_spec_CXX='-R$libdir' 13767 hardcode_shlibpath_var_CXX=no 13768 case $host_os in 13769 solaris2.[0-5] | solaris2.[0-5].*) ;; 13770 *) 13771 # The compiler driver will combine and reorder linker options, 13772 # but understands `-z linker_flag'. 13773 # Supported since Solaris 2.6 (maybe 2.5.1?) 13774 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13775 ;; 13776 esac 13777 link_all_deplibs_CXX=yes 13778 13779 output_verbose_link_cmd='func_echo_all' 13780 13781 # Archives containing C++ object files must be created using 13782 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13783 # necessary to make sure instantiated templates are included 13784 # in the archive. 13785 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13786 ;; 13787 gcx*) 13788 # Green Hills C++ Compiler 13789 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13790 13791 # The C++ compiler must be used to create the archive. 13792 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13793 ;; 13794 *) 13795 # GNU C++ compiler with Solaris linker 13796 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13797 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13798 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13799 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13800 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13801 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13802 13803 # Commands to make compiler produce verbose output that lists 13804 # what "hidden" libraries, object files and flags are used when 13805 # linking a shared library. 13806 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13807 else 13808 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13809 # platform. 13810 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13811 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13812 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13813 13814 # Commands to make compiler produce verbose output that lists 13815 # what "hidden" libraries, object files and flags are used when 13816 # linking a shared library. 13817 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13818 fi 13819 13820 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13821 case $host_os in 13822 solaris2.[0-5] | solaris2.[0-5].*) ;; 13823 *) 13824 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13825 ;; 13826 esac 13827 fi 13828 ;; 13829 esac 13830 ;; 13831 13832 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13833 no_undefined_flag_CXX='${wl}-z,text' 13834 archive_cmds_need_lc_CXX=no 13835 hardcode_shlibpath_var_CXX=no 13836 runpath_var='LD_RUN_PATH' 13837 13838 case $cc_basename in 13839 CC*) 13840 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13841 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13842 ;; 13843 *) 13844 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13845 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13846 ;; 13847 esac 13848 ;; 13849 13850 sysv5* | sco3.2v5* | sco5v6*) 13851 # Note: We can NOT use -z defs as we might desire, because we do not 13852 # link with -lc, and that would cause any symbols used from libc to 13853 # always be unresolved, which means just about no library would 13854 # ever link correctly. If we're not using GNU ld we use -z text 13855 # though, which does catch some bad symbols but isn't as heavy-handed 13856 # as -z defs. 13857 no_undefined_flag_CXX='${wl}-z,text' 13858 allow_undefined_flag_CXX='${wl}-z,nodefs' 13859 archive_cmds_need_lc_CXX=no 13860 hardcode_shlibpath_var_CXX=no 13861 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13862 hardcode_libdir_separator_CXX=':' 13863 link_all_deplibs_CXX=yes 13864 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13865 runpath_var='LD_RUN_PATH' 13866 13867 case $cc_basename in 13868 CC*) 13869 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13870 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13871 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13872 '"$old_archive_cmds_CXX" 13873 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13874 '"$reload_cmds_CXX" 13875 ;; 13876 *) 13877 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13878 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13879 ;; 13880 esac 13881 ;; 13882 13883 tandem*) 13884 case $cc_basename in 13885 NCC*) 13886 # NonStop-UX NCC 3.20 13887 # FIXME: insert proper C++ library support 13888 ld_shlibs_CXX=no 13889 ;; 13890 *) 13891 # FIXME: insert proper C++ library support 13892 ld_shlibs_CXX=no 13893 ;; 13894 esac 13895 ;; 13896 13897 vxworks*) 13898 # FIXME: insert proper C++ library support 13899 ld_shlibs_CXX=no 13900 ;; 13901 13902 *) 13903 # FIXME: insert proper C++ library support 13904 ld_shlibs_CXX=no 13905 ;; 13906 esac 13907 13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13909$as_echo "$ld_shlibs_CXX" >&6; } 13910 test "$ld_shlibs_CXX" = no && can_build_shared=no 13911 13912 GCC_CXX="$GXX" 13913 LD_CXX="$LD" 13914 13915 ## CAVEAT EMPTOR: 13916 ## There is no encapsulation within the following macros, do not change 13917 ## the running order or otherwise move them around unless you know exactly 13918 ## what you are doing... 13919 # Dependencies to place before and after the object being linked: 13920predep_objects_CXX= 13921postdep_objects_CXX= 13922predeps_CXX= 13923postdeps_CXX= 13924compiler_lib_search_path_CXX= 13925 13926cat > conftest.$ac_ext <<_LT_EOF 13927class Foo 13928{ 13929public: 13930 Foo (void) { a = 0; } 13931private: 13932 int a; 13933}; 13934_LT_EOF 13935 13936 13937_lt_libdeps_save_CFLAGS=$CFLAGS 13938case "$CC $CFLAGS " in #( 13939*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 13940*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 13941*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 13942esac 13943 13944if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13945 (eval $ac_compile) 2>&5 13946 ac_status=$? 13947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13948 test $ac_status = 0; }; then 13949 # Parse the compiler output and extract the necessary 13950 # objects, libraries and library flags. 13951 13952 # Sentinel used to keep track of whether or not we are before 13953 # the conftest object file. 13954 pre_test_object_deps_done=no 13955 13956 for p in `eval "$output_verbose_link_cmd"`; do 13957 case ${prev}${p} in 13958 13959 -L* | -R* | -l*) 13960 # Some compilers place space between "-{L,R}" and the path. 13961 # Remove the space. 13962 if test $p = "-L" || 13963 test $p = "-R"; then 13964 prev=$p 13965 continue 13966 fi 13967 13968 # Expand the sysroot to ease extracting the directories later. 13969 if test -z "$prev"; then 13970 case $p in 13971 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 13972 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 13973 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 13974 esac 13975 fi 13976 case $p in 13977 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 13978 esac 13979 if test "$pre_test_object_deps_done" = no; then 13980 case ${prev} in 13981 -L | -R) 13982 # Internal compiler library paths should come after those 13983 # provided the user. The postdeps already come after the 13984 # user supplied libs so there is no need to process them. 13985 if test -z "$compiler_lib_search_path_CXX"; then 13986 compiler_lib_search_path_CXX="${prev}${p}" 13987 else 13988 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13989 fi 13990 ;; 13991 # The "-l" case would never come before the object being 13992 # linked, so don't bother handling this case. 13993 esac 13994 else 13995 if test -z "$postdeps_CXX"; then 13996 postdeps_CXX="${prev}${p}" 13997 else 13998 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13999 fi 14000 fi 14001 prev= 14002 ;; 14003 14004 *.lto.$objext) ;; # Ignore GCC LTO objects 14005 *.$objext) 14006 # This assumes that the test object file only shows up 14007 # once in the compiler output. 14008 if test "$p" = "conftest.$objext"; then 14009 pre_test_object_deps_done=yes 14010 continue 14011 fi 14012 14013 if test "$pre_test_object_deps_done" = no; then 14014 if test -z "$predep_objects_CXX"; then 14015 predep_objects_CXX="$p" 14016 else 14017 predep_objects_CXX="$predep_objects_CXX $p" 14018 fi 14019 else 14020 if test -z "$postdep_objects_CXX"; then 14021 postdep_objects_CXX="$p" 14022 else 14023 postdep_objects_CXX="$postdep_objects_CXX $p" 14024 fi 14025 fi 14026 ;; 14027 14028 *) ;; # Ignore the rest. 14029 14030 esac 14031 done 14032 14033 # Clean up. 14034 rm -f a.out a.exe 14035else 14036 echo "libtool.m4: error: problem compiling CXX test program" 14037fi 14038 14039$RM -f confest.$objext 14040CFLAGS=$_lt_libdeps_save_CFLAGS 14041 14042# PORTME: override above test on systems where it is broken 14043case $host_os in 14044interix[3-9]*) 14045 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14046 # hack all around it, let's just trust "g++" to DTRT. 14047 predep_objects_CXX= 14048 postdep_objects_CXX= 14049 postdeps_CXX= 14050 ;; 14051 14052linux*) 14053 case `$CC -V 2>&1 | sed 5q` in 14054 *Sun\ C*) 14055 # Sun C++ 5.9 14056 14057 # The more standards-conforming stlport4 library is 14058 # incompatible with the Cstd library. Avoid specifying 14059 # it if it's in CXXFLAGS. Ignore libCrun as 14060 # -library=stlport4 depends on it. 14061 case " $CXX $CXXFLAGS " in 14062 *" -library=stlport4 "*) 14063 solaris_use_stlport4=yes 14064 ;; 14065 esac 14066 14067 if test "$solaris_use_stlport4" != yes; then 14068 postdeps_CXX='-library=Cstd -library=Crun' 14069 fi 14070 ;; 14071 esac 14072 ;; 14073 14074solaris*) 14075 case $cc_basename in 14076 CC* | sunCC*) 14077 # The more standards-conforming stlport4 library is 14078 # incompatible with the Cstd library. Avoid specifying 14079 # it if it's in CXXFLAGS. Ignore libCrun as 14080 # -library=stlport4 depends on it. 14081 case " $CXX $CXXFLAGS " in 14082 *" -library=stlport4 "*) 14083 solaris_use_stlport4=yes 14084 ;; 14085 esac 14086 14087 # Adding this requires a known-good setup of shared libraries for 14088 # Sun compiler versions before 5.6, else PIC objects from an old 14089 # archive will be linked into the output, leading to subtle bugs. 14090 if test "$solaris_use_stlport4" != yes; then 14091 postdeps_CXX='-library=Cstd -library=Crun' 14092 fi 14093 ;; 14094 esac 14095 ;; 14096esac 14097 14098 14099case " $postdeps_CXX " in 14100*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14101esac 14102 compiler_lib_search_dirs_CXX= 14103if test -n "${compiler_lib_search_path_CXX}"; then 14104 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 14105fi 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 lt_prog_compiler_wl_CXX= 14138lt_prog_compiler_pic_CXX= 14139lt_prog_compiler_static_CXX= 14140 14141 14142 # C++ specific cases for pic, static, wl, etc. 14143 if test "$GXX" = yes; then 14144 lt_prog_compiler_wl_CXX='-Wl,' 14145 lt_prog_compiler_static_CXX='-static' 14146 14147 case $host_os in 14148 aix*) 14149 # All AIX code is PIC. 14150 if test "$host_cpu" = ia64; then 14151 # AIX 5 now supports IA64 processor 14152 lt_prog_compiler_static_CXX='-Bstatic' 14153 fi 14154 ;; 14155 14156 amigaos*) 14157 case $host_cpu in 14158 powerpc) 14159 # see comment about AmigaOS4 .so support 14160 lt_prog_compiler_pic_CXX='-fPIC' 14161 ;; 14162 m68k) 14163 # FIXME: we need at least 68020 code to build shared libraries, but 14164 # adding the `-m68020' flag to GCC prevents building anything better, 14165 # like `-m68040'. 14166 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14167 ;; 14168 esac 14169 ;; 14170 14171 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14172 # PIC is the default for these OSes. 14173 ;; 14174 mingw* | cygwin* | os2* | pw32* | cegcc*) 14175 # This hack is so that the source file can tell whether it is being 14176 # built for inclusion in a dll (and should export symbols for example). 14177 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14178 # (--disable-auto-import) libraries 14179 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14180 ;; 14181 darwin* | rhapsody*) 14182 # PIC is the default on this platform 14183 # Common symbols not allowed in MH_DYLIB files 14184 lt_prog_compiler_pic_CXX='-fno-common' 14185 ;; 14186 *djgpp*) 14187 # DJGPP does not support shared libraries at all 14188 lt_prog_compiler_pic_CXX= 14189 ;; 14190 haiku*) 14191 # PIC is the default for Haiku. 14192 # The "-static" flag exists, but is broken. 14193 lt_prog_compiler_static_CXX= 14194 ;; 14195 interix[3-9]*) 14196 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14197 # Instead, we relocate shared libraries at runtime. 14198 ;; 14199 sysv4*MP*) 14200 if test -d /usr/nec; then 14201 lt_prog_compiler_pic_CXX=-Kconform_pic 14202 fi 14203 ;; 14204 hpux*) 14205 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14206 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14207 # sets the default TLS model and affects inlining. 14208 case $host_cpu in 14209 hppa*64*) 14210 ;; 14211 *) 14212 lt_prog_compiler_pic_CXX='-fPIC' 14213 ;; 14214 esac 14215 ;; 14216 *qnx* | *nto*) 14217 # QNX uses GNU C++, but need to define -shared option too, otherwise 14218 # it will coredump. 14219 lt_prog_compiler_pic_CXX='-fPIC -shared' 14220 ;; 14221 *) 14222 lt_prog_compiler_pic_CXX='-fPIC' 14223 ;; 14224 esac 14225 else 14226 case $host_os in 14227 aix[4-9]*) 14228 # All AIX code is PIC. 14229 if test "$host_cpu" = ia64; then 14230 # AIX 5 now supports IA64 processor 14231 lt_prog_compiler_static_CXX='-Bstatic' 14232 else 14233 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14234 fi 14235 ;; 14236 chorus*) 14237 case $cc_basename in 14238 cxch68*) 14239 # Green Hills C++ Compiler 14240 # _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" 14241 ;; 14242 esac 14243 ;; 14244 mingw* | cygwin* | os2* | pw32* | cegcc*) 14245 # This hack is so that the source file can tell whether it is being 14246 # built for inclusion in a dll (and should export symbols for example). 14247 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14248 ;; 14249 dgux*) 14250 case $cc_basename in 14251 ec++*) 14252 lt_prog_compiler_pic_CXX='-KPIC' 14253 ;; 14254 ghcx*) 14255 # Green Hills C++ Compiler 14256 lt_prog_compiler_pic_CXX='-pic' 14257 ;; 14258 *) 14259 ;; 14260 esac 14261 ;; 14262 freebsd* | dragonfly*) 14263 # FreeBSD uses GNU C++ 14264 ;; 14265 hpux9* | hpux10* | hpux11*) 14266 case $cc_basename in 14267 CC*) 14268 lt_prog_compiler_wl_CXX='-Wl,' 14269 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14270 if test "$host_cpu" != ia64; then 14271 lt_prog_compiler_pic_CXX='+Z' 14272 fi 14273 ;; 14274 aCC*) 14275 lt_prog_compiler_wl_CXX='-Wl,' 14276 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14277 case $host_cpu in 14278 hppa*64*|ia64*) 14279 # +Z the default 14280 ;; 14281 *) 14282 lt_prog_compiler_pic_CXX='+Z' 14283 ;; 14284 esac 14285 ;; 14286 *) 14287 ;; 14288 esac 14289 ;; 14290 interix*) 14291 # This is c89, which is MS Visual C++ (no shared libs) 14292 # Anyone wants to do a port? 14293 ;; 14294 irix5* | irix6* | nonstopux*) 14295 case $cc_basename in 14296 CC*) 14297 lt_prog_compiler_wl_CXX='-Wl,' 14298 lt_prog_compiler_static_CXX='-non_shared' 14299 # CC pic flag -KPIC is the default. 14300 ;; 14301 *) 14302 ;; 14303 esac 14304 ;; 14305 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14306 case $cc_basename in 14307 KCC*) 14308 # KAI C++ Compiler 14309 lt_prog_compiler_wl_CXX='--backend -Wl,' 14310 lt_prog_compiler_pic_CXX='-fPIC' 14311 ;; 14312 ecpc* ) 14313 # old Intel C++ for x86_64 which still supported -KPIC. 14314 lt_prog_compiler_wl_CXX='-Wl,' 14315 lt_prog_compiler_pic_CXX='-KPIC' 14316 lt_prog_compiler_static_CXX='-static' 14317 ;; 14318 icpc* ) 14319 # Intel C++, used to be incompatible with GCC. 14320 # ICC 10 doesn't accept -KPIC any more. 14321 lt_prog_compiler_wl_CXX='-Wl,' 14322 lt_prog_compiler_pic_CXX='-fPIC' 14323 lt_prog_compiler_static_CXX='-static' 14324 ;; 14325 pgCC* | pgcpp*) 14326 # Portland Group C++ compiler 14327 lt_prog_compiler_wl_CXX='-Wl,' 14328 lt_prog_compiler_pic_CXX='-fpic' 14329 lt_prog_compiler_static_CXX='-Bstatic' 14330 ;; 14331 cxx*) 14332 # Compaq C++ 14333 # Make sure the PIC flag is empty. It appears that all Alpha 14334 # Linux and Compaq Tru64 Unix objects are PIC. 14335 lt_prog_compiler_pic_CXX= 14336 lt_prog_compiler_static_CXX='-non_shared' 14337 ;; 14338 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14339 # IBM XL 8.0, 9.0 on PPC and BlueGene 14340 lt_prog_compiler_wl_CXX='-Wl,' 14341 lt_prog_compiler_pic_CXX='-qpic' 14342 lt_prog_compiler_static_CXX='-qstaticlink' 14343 ;; 14344 *) 14345 case `$CC -V 2>&1 | sed 5q` in 14346 *Sun\ C*) 14347 # Sun C++ 5.9 14348 lt_prog_compiler_pic_CXX='-KPIC' 14349 lt_prog_compiler_static_CXX='-Bstatic' 14350 lt_prog_compiler_wl_CXX='-Qoption ld ' 14351 ;; 14352 esac 14353 ;; 14354 esac 14355 ;; 14356 lynxos*) 14357 ;; 14358 m88k*) 14359 ;; 14360 mvs*) 14361 case $cc_basename in 14362 cxx*) 14363 lt_prog_compiler_pic_CXX='-W c,exportall' 14364 ;; 14365 *) 14366 ;; 14367 esac 14368 ;; 14369 netbsd* | netbsdelf*-gnu) 14370 ;; 14371 *qnx* | *nto*) 14372 # QNX uses GNU C++, but need to define -shared option too, otherwise 14373 # it will coredump. 14374 lt_prog_compiler_pic_CXX='-fPIC -shared' 14375 ;; 14376 osf3* | osf4* | osf5*) 14377 case $cc_basename in 14378 KCC*) 14379 lt_prog_compiler_wl_CXX='--backend -Wl,' 14380 ;; 14381 RCC*) 14382 # Rational C++ 2.4.1 14383 lt_prog_compiler_pic_CXX='-pic' 14384 ;; 14385 cxx*) 14386 # Digital/Compaq C++ 14387 lt_prog_compiler_wl_CXX='-Wl,' 14388 # Make sure the PIC flag is empty. It appears that all Alpha 14389 # Linux and Compaq Tru64 Unix objects are PIC. 14390 lt_prog_compiler_pic_CXX= 14391 lt_prog_compiler_static_CXX='-non_shared' 14392 ;; 14393 *) 14394 ;; 14395 esac 14396 ;; 14397 psos*) 14398 ;; 14399 solaris*) 14400 case $cc_basename in 14401 CC* | sunCC*) 14402 # Sun C++ 4.2, 5.x and Centerline C++ 14403 lt_prog_compiler_pic_CXX='-KPIC' 14404 lt_prog_compiler_static_CXX='-Bstatic' 14405 lt_prog_compiler_wl_CXX='-Qoption ld ' 14406 ;; 14407 gcx*) 14408 # Green Hills C++ Compiler 14409 lt_prog_compiler_pic_CXX='-PIC' 14410 ;; 14411 *) 14412 ;; 14413 esac 14414 ;; 14415 sunos4*) 14416 case $cc_basename in 14417 CC*) 14418 # Sun C++ 4.x 14419 lt_prog_compiler_pic_CXX='-pic' 14420 lt_prog_compiler_static_CXX='-Bstatic' 14421 ;; 14422 lcc*) 14423 # Lucid 14424 lt_prog_compiler_pic_CXX='-pic' 14425 ;; 14426 *) 14427 ;; 14428 esac 14429 ;; 14430 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14431 case $cc_basename in 14432 CC*) 14433 lt_prog_compiler_wl_CXX='-Wl,' 14434 lt_prog_compiler_pic_CXX='-KPIC' 14435 lt_prog_compiler_static_CXX='-Bstatic' 14436 ;; 14437 esac 14438 ;; 14439 tandem*) 14440 case $cc_basename in 14441 NCC*) 14442 # NonStop-UX NCC 3.20 14443 lt_prog_compiler_pic_CXX='-KPIC' 14444 ;; 14445 *) 14446 ;; 14447 esac 14448 ;; 14449 vxworks*) 14450 ;; 14451 *) 14452 lt_prog_compiler_can_build_shared_CXX=no 14453 ;; 14454 esac 14455 fi 14456 14457case $host_os in 14458 # For platforms which do not support PIC, -DPIC is meaningless: 14459 *djgpp*) 14460 lt_prog_compiler_pic_CXX= 14461 ;; 14462 *) 14463 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14464 ;; 14465esac 14466 14467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14468$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14469if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14470 $as_echo_n "(cached) " >&6 14471else 14472 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14473fi 14474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14475$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14476lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14477 14478# 14479# Check to make sure the PIC flag actually works. 14480# 14481if test -n "$lt_prog_compiler_pic_CXX"; then 14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14483$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14484if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14485 $as_echo_n "(cached) " >&6 14486else 14487 lt_cv_prog_compiler_pic_works_CXX=no 14488 ac_outfile=conftest.$ac_objext 14489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14490 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14491 # Insert the option either (1) after the last *FLAGS variable, or 14492 # (2) before a word containing "conftest.", or (3) at the end. 14493 # Note that $ac_compile itself does not contain backslashes and begins 14494 # with a dollar sign (not a hyphen), so the echo should work correctly. 14495 # The option is referenced via a variable to avoid confusing sed. 14496 lt_compile=`echo "$ac_compile" | $SED \ 14497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14499 -e 's:$: $lt_compiler_flag:'` 14500 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14501 (eval "$lt_compile" 2>conftest.err) 14502 ac_status=$? 14503 cat conftest.err >&5 14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14505 if (exit $ac_status) && test -s "$ac_outfile"; then 14506 # The compiler can only warn and ignore the option if not recognized 14507 # So say no if there are warnings other than the usual output. 14508 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14510 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14511 lt_cv_prog_compiler_pic_works_CXX=yes 14512 fi 14513 fi 14514 $RM conftest* 14515 14516fi 14517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14518$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14519 14520if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14521 case $lt_prog_compiler_pic_CXX in 14522 "" | " "*) ;; 14523 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14524 esac 14525else 14526 lt_prog_compiler_pic_CXX= 14527 lt_prog_compiler_can_build_shared_CXX=no 14528fi 14529 14530fi 14531 14532 14533 14534 14535 14536# 14537# Check to make sure the static flag actually works. 14538# 14539wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14541$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14542if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14543 $as_echo_n "(cached) " >&6 14544else 14545 lt_cv_prog_compiler_static_works_CXX=no 14546 save_LDFLAGS="$LDFLAGS" 14547 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14548 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14549 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14550 # The linker can only warn and ignore the option if not recognized 14551 # So say no if there are warnings 14552 if test -s conftest.err; then 14553 # Append any errors to the config.log. 14554 cat conftest.err 1>&5 14555 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14557 if diff conftest.exp conftest.er2 >/dev/null; then 14558 lt_cv_prog_compiler_static_works_CXX=yes 14559 fi 14560 else 14561 lt_cv_prog_compiler_static_works_CXX=yes 14562 fi 14563 fi 14564 $RM -r conftest* 14565 LDFLAGS="$save_LDFLAGS" 14566 14567fi 14568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14569$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14570 14571if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14572 : 14573else 14574 lt_prog_compiler_static_CXX= 14575fi 14576 14577 14578 14579 14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14581$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14582if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14583 $as_echo_n "(cached) " >&6 14584else 14585 lt_cv_prog_compiler_c_o_CXX=no 14586 $RM -r conftest 2>/dev/null 14587 mkdir conftest 14588 cd conftest 14589 mkdir out 14590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14591 14592 lt_compiler_flag="-o out/conftest2.$ac_objext" 14593 # Insert the option either (1) after the last *FLAGS variable, or 14594 # (2) before a word containing "conftest.", or (3) at the end. 14595 # Note that $ac_compile itself does not contain backslashes and begins 14596 # with a dollar sign (not a hyphen), so the echo should work correctly. 14597 lt_compile=`echo "$ac_compile" | $SED \ 14598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14600 -e 's:$: $lt_compiler_flag:'` 14601 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14602 (eval "$lt_compile" 2>out/conftest.err) 14603 ac_status=$? 14604 cat out/conftest.err >&5 14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14606 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14607 then 14608 # The compiler can only warn and ignore the option if not recognized 14609 # So say no if there are warnings 14610 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14611 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14612 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14613 lt_cv_prog_compiler_c_o_CXX=yes 14614 fi 14615 fi 14616 chmod u+w . 2>&5 14617 $RM conftest* 14618 # SGI C++ compiler will create directory out/ii_files/ for 14619 # template instantiation 14620 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14621 $RM out/* && rmdir out 14622 cd .. 14623 $RM -r conftest 14624 $RM conftest* 14625 14626fi 14627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14628$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14629 14630 14631 14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14633$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14634if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14635 $as_echo_n "(cached) " >&6 14636else 14637 lt_cv_prog_compiler_c_o_CXX=no 14638 $RM -r conftest 2>/dev/null 14639 mkdir conftest 14640 cd conftest 14641 mkdir out 14642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14643 14644 lt_compiler_flag="-o out/conftest2.$ac_objext" 14645 # Insert the option either (1) after the last *FLAGS variable, or 14646 # (2) before a word containing "conftest.", or (3) at the end. 14647 # Note that $ac_compile itself does not contain backslashes and begins 14648 # with a dollar sign (not a hyphen), so the echo should work correctly. 14649 lt_compile=`echo "$ac_compile" | $SED \ 14650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14652 -e 's:$: $lt_compiler_flag:'` 14653 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14654 (eval "$lt_compile" 2>out/conftest.err) 14655 ac_status=$? 14656 cat out/conftest.err >&5 14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14658 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14659 then 14660 # The compiler can only warn and ignore the option if not recognized 14661 # So say no if there are warnings 14662 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14663 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14664 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14665 lt_cv_prog_compiler_c_o_CXX=yes 14666 fi 14667 fi 14668 chmod u+w . 2>&5 14669 $RM conftest* 14670 # SGI C++ compiler will create directory out/ii_files/ for 14671 # template instantiation 14672 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14673 $RM out/* && rmdir out 14674 cd .. 14675 $RM -r conftest 14676 $RM conftest* 14677 14678fi 14679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14680$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14681 14682 14683 14684 14685hard_links="nottested" 14686if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14687 # do not overwrite the value of need_locks provided by the user 14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14689$as_echo_n "checking if we can lock with hard links... " >&6; } 14690 hard_links=yes 14691 $RM conftest* 14692 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14693 touch conftest.a 14694 ln conftest.a conftest.b 2>&5 || hard_links=no 14695 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14697$as_echo "$hard_links" >&6; } 14698 if test "$hard_links" = no; then 14699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14700$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14701 need_locks=warn 14702 fi 14703else 14704 need_locks=no 14705fi 14706 14707 14708 14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14710$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14711 14712 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14713 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14714 case $host_os in 14715 aix[4-9]*) 14716 # If we're using GNU nm, then we don't want the "-C" option. 14717 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14718 # Also, AIX nm treats weak defined symbols like other global defined 14719 # symbols, whereas GNU nm marks them as "W". 14720 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14721 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14722 else 14723 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14724 fi 14725 ;; 14726 pw32*) 14727 export_symbols_cmds_CXX="$ltdll_cmds" 14728 ;; 14729 cygwin* | mingw* | cegcc*) 14730 case $cc_basename in 14731 cl*) 14732 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14733 ;; 14734 *) 14735 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' 14736 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14737 ;; 14738 esac 14739 ;; 14740 linux* | k*bsd*-gnu | gnu*) 14741 link_all_deplibs_CXX=no 14742 ;; 14743 *) 14744 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14745 ;; 14746 esac 14747 14748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14749$as_echo "$ld_shlibs_CXX" >&6; } 14750test "$ld_shlibs_CXX" = no && can_build_shared=no 14751 14752with_gnu_ld_CXX=$with_gnu_ld 14753 14754 14755 14756 14757 14758 14759# 14760# Do we need to explicitly link libc? 14761# 14762case "x$archive_cmds_need_lc_CXX" in 14763x|xyes) 14764 # Assume -lc should be added 14765 archive_cmds_need_lc_CXX=yes 14766 14767 if test "$enable_shared" = yes && test "$GCC" = yes; then 14768 case $archive_cmds_CXX in 14769 *'~'*) 14770 # FIXME: we may have to deal with multi-command sequences. 14771 ;; 14772 '$CC '*) 14773 # Test whether the compiler implicitly links with -lc since on some 14774 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14775 # to ld, don't add -lc before -lgcc. 14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14777$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14778if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14779 $as_echo_n "(cached) " >&6 14780else 14781 $RM conftest* 14782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14783 14784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14785 (eval $ac_compile) 2>&5 14786 ac_status=$? 14787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14788 test $ac_status = 0; } 2>conftest.err; then 14789 soname=conftest 14790 lib=conftest 14791 libobjs=conftest.$ac_objext 14792 deplibs= 14793 wl=$lt_prog_compiler_wl_CXX 14794 pic_flag=$lt_prog_compiler_pic_CXX 14795 compiler_flags=-v 14796 linker_flags=-v 14797 verstring= 14798 output_objdir=. 14799 libname=conftest 14800 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14801 allow_undefined_flag_CXX= 14802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14803 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14804 ac_status=$? 14805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14806 test $ac_status = 0; } 14807 then 14808 lt_cv_archive_cmds_need_lc_CXX=no 14809 else 14810 lt_cv_archive_cmds_need_lc_CXX=yes 14811 fi 14812 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14813 else 14814 cat conftest.err 1>&5 14815 fi 14816 $RM conftest* 14817 14818fi 14819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14820$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14821 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14822 ;; 14823 esac 14824 fi 14825 ;; 14826esac 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14890$as_echo_n "checking dynamic linker characteristics... " >&6; } 14891 14892library_names_spec= 14893libname_spec='lib$name' 14894soname_spec= 14895shrext_cmds=".so" 14896postinstall_cmds= 14897postuninstall_cmds= 14898finish_cmds= 14899finish_eval= 14900shlibpath_var= 14901shlibpath_overrides_runpath=unknown 14902version_type=none 14903dynamic_linker="$host_os ld.so" 14904sys_lib_dlsearch_path_spec="/lib /usr/lib" 14905need_lib_prefix=unknown 14906hardcode_into_libs=no 14907 14908# when you set need_version to no, make sure it does not cause -set_version 14909# flags to be left without arguments 14910need_version=unknown 14911 14912case $host_os in 14913aix3*) 14914 version_type=linux # correct to gnu/linux during the next big refactor 14915 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14916 shlibpath_var=LIBPATH 14917 14918 # AIX 3 has no versioning support, so we append a major version to the name. 14919 soname_spec='${libname}${release}${shared_ext}$major' 14920 ;; 14921 14922aix[4-9]*) 14923 version_type=linux # correct to gnu/linux during the next big refactor 14924 need_lib_prefix=no 14925 need_version=no 14926 hardcode_into_libs=yes 14927 if test "$host_cpu" = ia64; then 14928 # AIX 5 supports IA64 14929 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14930 shlibpath_var=LD_LIBRARY_PATH 14931 else 14932 # With GCC up to 2.95.x, collect2 would create an import file 14933 # for dependence libraries. The import file would start with 14934 # the line `#! .'. This would cause the generated library to 14935 # depend on `.', always an invalid library. This was fixed in 14936 # development snapshots of GCC prior to 3.0. 14937 case $host_os in 14938 aix4 | aix4.[01] | aix4.[01].*) 14939 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14940 echo ' yes ' 14941 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14942 : 14943 else 14944 can_build_shared=no 14945 fi 14946 ;; 14947 esac 14948 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14949 # soname into executable. Probably we can add versioning support to 14950 # collect2, so additional links can be useful in future. 14951 if test "$aix_use_runtimelinking" = yes; then 14952 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14953 # instead of lib<name>.a to let people know that these are not 14954 # typical AIX shared libraries. 14955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14956 else 14957 # We preserve .a as extension for shared libraries through AIX4.2 14958 # and later when we are not doing run time linking. 14959 library_names_spec='${libname}${release}.a $libname.a' 14960 soname_spec='${libname}${release}${shared_ext}$major' 14961 fi 14962 shlibpath_var=LIBPATH 14963 fi 14964 ;; 14965 14966amigaos*) 14967 case $host_cpu in 14968 powerpc) 14969 # Since July 2007 AmigaOS4 officially supports .so libraries. 14970 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14972 ;; 14973 m68k) 14974 library_names_spec='$libname.ixlibrary $libname.a' 14975 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14976 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 14977 ;; 14978 esac 14979 ;; 14980 14981beos*) 14982 library_names_spec='${libname}${shared_ext}' 14983 dynamic_linker="$host_os ld.so" 14984 shlibpath_var=LIBRARY_PATH 14985 ;; 14986 14987bsdi[45]*) 14988 version_type=linux # correct to gnu/linux during the next big refactor 14989 need_version=no 14990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14991 soname_spec='${libname}${release}${shared_ext}$major' 14992 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14993 shlibpath_var=LD_LIBRARY_PATH 14994 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14995 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14996 # the default ld.so.conf also contains /usr/contrib/lib and 14997 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14998 # libtool to hard-code these into programs 14999 ;; 15000 15001cygwin* | mingw* | pw32* | cegcc*) 15002 version_type=windows 15003 shrext_cmds=".dll" 15004 need_version=no 15005 need_lib_prefix=no 15006 15007 case $GCC,$cc_basename in 15008 yes,*) 15009 # gcc 15010 library_names_spec='$libname.dll.a' 15011 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15012 postinstall_cmds='base_file=`basename \${file}`~ 15013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15014 dldir=$destdir/`dirname \$dlpath`~ 15015 test -d \$dldir || mkdir -p \$dldir~ 15016 $install_prog $dir/$dlname \$dldir/$dlname~ 15017 chmod a+x \$dldir/$dlname~ 15018 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15019 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15020 fi' 15021 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15022 dlpath=$dir/\$dldll~ 15023 $RM \$dlpath' 15024 shlibpath_overrides_runpath=yes 15025 15026 case $host_os in 15027 cygwin*) 15028 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15029 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15030 15031 ;; 15032 mingw* | cegcc*) 15033 # MinGW DLLs use traditional 'lib' prefix 15034 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15035 ;; 15036 pw32*) 15037 # pw32 DLLs use 'pw' prefix rather than 'lib' 15038 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15039 ;; 15040 esac 15041 dynamic_linker='Win32 ld.exe' 15042 ;; 15043 15044 *,cl*) 15045 # Native MSVC 15046 libname_spec='$name' 15047 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15048 library_names_spec='${libname}.dll.lib' 15049 15050 case $build_os in 15051 mingw*) 15052 sys_lib_search_path_spec= 15053 lt_save_ifs=$IFS 15054 IFS=';' 15055 for lt_path in $LIB 15056 do 15057 IFS=$lt_save_ifs 15058 # Let DOS variable expansion print the short 8.3 style file name. 15059 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15060 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15061 done 15062 IFS=$lt_save_ifs 15063 # Convert to MSYS style. 15064 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15065 ;; 15066 cygwin*) 15067 # Convert to unix form, then to dos form, then back to unix form 15068 # but this time dos style (no spaces!) so that the unix form looks 15069 # like /cygdrive/c/PROGRA~1:/cygdr... 15070 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15071 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15072 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15073 ;; 15074 *) 15075 sys_lib_search_path_spec="$LIB" 15076 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15077 # It is most probably a Windows format PATH. 15078 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15079 else 15080 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15081 fi 15082 # FIXME: find the short name or the path components, as spaces are 15083 # common. (e.g. "Program Files" -> "PROGRA~1") 15084 ;; 15085 esac 15086 15087 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15088 postinstall_cmds='base_file=`basename \${file}`~ 15089 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15090 dldir=$destdir/`dirname \$dlpath`~ 15091 test -d \$dldir || mkdir -p \$dldir~ 15092 $install_prog $dir/$dlname \$dldir/$dlname' 15093 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15094 dlpath=$dir/\$dldll~ 15095 $RM \$dlpath' 15096 shlibpath_overrides_runpath=yes 15097 dynamic_linker='Win32 link.exe' 15098 ;; 15099 15100 *) 15101 # Assume MSVC wrapper 15102 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15103 dynamic_linker='Win32 ld.exe' 15104 ;; 15105 esac 15106 # FIXME: first we should search . and the directory the executable is in 15107 shlibpath_var=PATH 15108 ;; 15109 15110darwin* | rhapsody*) 15111 dynamic_linker="$host_os dyld" 15112 version_type=darwin 15113 need_lib_prefix=no 15114 need_version=no 15115 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15116 soname_spec='${libname}${release}${major}$shared_ext' 15117 shlibpath_overrides_runpath=yes 15118 shlibpath_var=DYLD_LIBRARY_PATH 15119 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15120 15121 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15122 ;; 15123 15124dgux*) 15125 version_type=linux # correct to gnu/linux during the next big refactor 15126 need_lib_prefix=no 15127 need_version=no 15128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15129 soname_spec='${libname}${release}${shared_ext}$major' 15130 shlibpath_var=LD_LIBRARY_PATH 15131 ;; 15132 15133freebsd* | dragonfly*) 15134 # DragonFly does not have aout. When/if they implement a new 15135 # versioning mechanism, adjust this. 15136 if test -x /usr/bin/objformat; then 15137 objformat=`/usr/bin/objformat` 15138 else 15139 case $host_os in 15140 freebsd[23].*) objformat=aout ;; 15141 *) objformat=elf ;; 15142 esac 15143 fi 15144 version_type=freebsd-$objformat 15145 case $version_type in 15146 freebsd-elf*) 15147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15148 need_version=no 15149 need_lib_prefix=no 15150 ;; 15151 freebsd-*) 15152 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15153 need_version=yes 15154 ;; 15155 esac 15156 shlibpath_var=LD_LIBRARY_PATH 15157 case $host_os in 15158 freebsd2.*) 15159 shlibpath_overrides_runpath=yes 15160 ;; 15161 freebsd3.[01]* | freebsdelf3.[01]*) 15162 shlibpath_overrides_runpath=yes 15163 hardcode_into_libs=yes 15164 ;; 15165 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15166 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15167 shlibpath_overrides_runpath=no 15168 hardcode_into_libs=yes 15169 ;; 15170 *) # from 4.6 on, and DragonFly 15171 shlibpath_overrides_runpath=yes 15172 hardcode_into_libs=yes 15173 ;; 15174 esac 15175 ;; 15176 15177haiku*) 15178 version_type=linux # correct to gnu/linux during the next big refactor 15179 need_lib_prefix=no 15180 need_version=no 15181 dynamic_linker="$host_os runtime_loader" 15182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15183 soname_spec='${libname}${release}${shared_ext}$major' 15184 shlibpath_var=LIBRARY_PATH 15185 shlibpath_overrides_runpath=yes 15186 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15187 hardcode_into_libs=yes 15188 ;; 15189 15190hpux9* | hpux10* | hpux11*) 15191 # Give a soname corresponding to the major version so that dld.sl refuses to 15192 # link against other versions. 15193 version_type=sunos 15194 need_lib_prefix=no 15195 need_version=no 15196 case $host_cpu in 15197 ia64*) 15198 shrext_cmds='.so' 15199 hardcode_into_libs=yes 15200 dynamic_linker="$host_os dld.so" 15201 shlibpath_var=LD_LIBRARY_PATH 15202 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15204 soname_spec='${libname}${release}${shared_ext}$major' 15205 if test "X$HPUX_IA64_MODE" = X32; then 15206 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15207 else 15208 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15209 fi 15210 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15211 ;; 15212 hppa*64*) 15213 shrext_cmds='.sl' 15214 hardcode_into_libs=yes 15215 dynamic_linker="$host_os dld.sl" 15216 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15219 soname_spec='${libname}${release}${shared_ext}$major' 15220 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15221 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15222 ;; 15223 *) 15224 shrext_cmds='.sl' 15225 dynamic_linker="$host_os dld.sl" 15226 shlibpath_var=SHLIB_PATH 15227 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15229 soname_spec='${libname}${release}${shared_ext}$major' 15230 ;; 15231 esac 15232 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15233 postinstall_cmds='chmod 555 $lib' 15234 # or fails outright, so override atomically: 15235 install_override_mode=555 15236 ;; 15237 15238interix[3-9]*) 15239 version_type=linux # correct to gnu/linux during the next big refactor 15240 need_lib_prefix=no 15241 need_version=no 15242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15243 soname_spec='${libname}${release}${shared_ext}$major' 15244 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15245 shlibpath_var=LD_LIBRARY_PATH 15246 shlibpath_overrides_runpath=no 15247 hardcode_into_libs=yes 15248 ;; 15249 15250irix5* | irix6* | nonstopux*) 15251 case $host_os in 15252 nonstopux*) version_type=nonstopux ;; 15253 *) 15254 if test "$lt_cv_prog_gnu_ld" = yes; then 15255 version_type=linux # correct to gnu/linux during the next big refactor 15256 else 15257 version_type=irix 15258 fi ;; 15259 esac 15260 need_lib_prefix=no 15261 need_version=no 15262 soname_spec='${libname}${release}${shared_ext}$major' 15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15264 case $host_os in 15265 irix5* | nonstopux*) 15266 libsuff= shlibsuff= 15267 ;; 15268 *) 15269 case $LD in # libtool.m4 will add one of these switches to LD 15270 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15271 libsuff= shlibsuff= libmagic=32-bit;; 15272 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15273 libsuff=32 shlibsuff=N32 libmagic=N32;; 15274 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15275 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15276 *) libsuff= shlibsuff= libmagic=never-match;; 15277 esac 15278 ;; 15279 esac 15280 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15281 shlibpath_overrides_runpath=no 15282 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15283 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15284 hardcode_into_libs=yes 15285 ;; 15286 15287# No shared lib support for Linux oldld, aout, or coff. 15288linux*oldld* | linux*aout* | linux*coff*) 15289 dynamic_linker=no 15290 ;; 15291 15292# This must be glibc/ELF. 15293linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15294 version_type=linux # correct to gnu/linux during the next big refactor 15295 need_lib_prefix=no 15296 need_version=no 15297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15298 soname_spec='${libname}${release}${shared_ext}$major' 15299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15300 shlibpath_var=LD_LIBRARY_PATH 15301 shlibpath_overrides_runpath=no 15302 15303 # Some binutils ld are patched to set DT_RUNPATH 15304 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15305 $as_echo_n "(cached) " >&6 15306else 15307 lt_cv_shlibpath_overrides_runpath=no 15308 save_LDFLAGS=$LDFLAGS 15309 save_libdir=$libdir 15310 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15311 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15313/* end confdefs.h. */ 15314 15315int 15316main () 15317{ 15318 15319 ; 15320 return 0; 15321} 15322_ACEOF 15323if ac_fn_cxx_try_link "$LINENO"; then : 15324 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15325 lt_cv_shlibpath_overrides_runpath=yes 15326fi 15327fi 15328rm -f core conftest.err conftest.$ac_objext \ 15329 conftest$ac_exeext conftest.$ac_ext 15330 LDFLAGS=$save_LDFLAGS 15331 libdir=$save_libdir 15332 15333fi 15334 15335 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15336 15337 # This implies no fast_install, which is unacceptable. 15338 # Some rework will be needed to allow for fast_install 15339 # before this can be enabled. 15340 hardcode_into_libs=yes 15341 15342 # Append ld.so.conf contents to the search path 15343 if test -f /etc/ld.so.conf; then 15344 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' ' '` 15345 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15346 fi 15347 15348 # We used to test for /lib/ld.so.1 and disable shared libraries on 15349 # powerpc, because MkLinux only supported shared libraries with the 15350 # GNU dynamic linker. Since this was broken with cross compilers, 15351 # most powerpc-linux boxes support dynamic linking these days and 15352 # people can always --disable-shared, the test was removed, and we 15353 # assume the GNU/Linux dynamic linker is in use. 15354 dynamic_linker='GNU/Linux ld.so' 15355 ;; 15356 15357netbsdelf*-gnu) 15358 version_type=linux 15359 need_lib_prefix=no 15360 need_version=no 15361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15362 soname_spec='${libname}${release}${shared_ext}$major' 15363 shlibpath_var=LD_LIBRARY_PATH 15364 shlibpath_overrides_runpath=no 15365 hardcode_into_libs=yes 15366 dynamic_linker='NetBSD ld.elf_so' 15367 ;; 15368 15369netbsd*) 15370 version_type=sunos 15371 need_lib_prefix=no 15372 need_version=no 15373 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15376 dynamic_linker='NetBSD (a.out) ld.so' 15377 else 15378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15379 soname_spec='${libname}${release}${shared_ext}$major' 15380 dynamic_linker='NetBSD ld.elf_so' 15381 fi 15382 shlibpath_var=LD_LIBRARY_PATH 15383 shlibpath_overrides_runpath=yes 15384 hardcode_into_libs=yes 15385 ;; 15386 15387newsos6) 15388 version_type=linux # correct to gnu/linux during the next big refactor 15389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15390 shlibpath_var=LD_LIBRARY_PATH 15391 shlibpath_overrides_runpath=yes 15392 ;; 15393 15394*nto* | *qnx*) 15395 version_type=qnx 15396 need_lib_prefix=no 15397 need_version=no 15398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15399 soname_spec='${libname}${release}${shared_ext}$major' 15400 shlibpath_var=LD_LIBRARY_PATH 15401 shlibpath_overrides_runpath=no 15402 hardcode_into_libs=yes 15403 dynamic_linker='ldqnx.so' 15404 ;; 15405 15406openbsd*) 15407 version_type=sunos 15408 sys_lib_dlsearch_path_spec="/usr/lib" 15409 need_lib_prefix=no 15410 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15411 case $host_os in 15412 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15413 *) need_version=no ;; 15414 esac 15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15417 shlibpath_var=LD_LIBRARY_PATH 15418 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15419 case $host_os in 15420 openbsd2.[89] | openbsd2.[89].*) 15421 shlibpath_overrides_runpath=no 15422 ;; 15423 *) 15424 shlibpath_overrides_runpath=yes 15425 ;; 15426 esac 15427 else 15428 shlibpath_overrides_runpath=yes 15429 fi 15430 ;; 15431 15432os2*) 15433 libname_spec='$name' 15434 shrext_cmds=".dll" 15435 need_lib_prefix=no 15436 library_names_spec='$libname${shared_ext} $libname.a' 15437 dynamic_linker='OS/2 ld.exe' 15438 shlibpath_var=LIBPATH 15439 ;; 15440 15441osf3* | osf4* | osf5*) 15442 version_type=osf 15443 need_lib_prefix=no 15444 need_version=no 15445 soname_spec='${libname}${release}${shared_ext}$major' 15446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15447 shlibpath_var=LD_LIBRARY_PATH 15448 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15449 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15450 ;; 15451 15452rdos*) 15453 dynamic_linker=no 15454 ;; 15455 15456solaris*) 15457 version_type=linux # correct to gnu/linux during the next big refactor 15458 need_lib_prefix=no 15459 need_version=no 15460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15461 soname_spec='${libname}${release}${shared_ext}$major' 15462 shlibpath_var=LD_LIBRARY_PATH 15463 shlibpath_overrides_runpath=yes 15464 hardcode_into_libs=yes 15465 # ldd complains unless libraries are executable 15466 postinstall_cmds='chmod +x $lib' 15467 ;; 15468 15469sunos4*) 15470 version_type=sunos 15471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15472 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15473 shlibpath_var=LD_LIBRARY_PATH 15474 shlibpath_overrides_runpath=yes 15475 if test "$with_gnu_ld" = yes; then 15476 need_lib_prefix=no 15477 fi 15478 need_version=yes 15479 ;; 15480 15481sysv4 | sysv4.3*) 15482 version_type=linux # correct to gnu/linux during the next big refactor 15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15484 soname_spec='${libname}${release}${shared_ext}$major' 15485 shlibpath_var=LD_LIBRARY_PATH 15486 case $host_vendor in 15487 sni) 15488 shlibpath_overrides_runpath=no 15489 need_lib_prefix=no 15490 runpath_var=LD_RUN_PATH 15491 ;; 15492 siemens) 15493 need_lib_prefix=no 15494 ;; 15495 motorola) 15496 need_lib_prefix=no 15497 need_version=no 15498 shlibpath_overrides_runpath=no 15499 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15500 ;; 15501 esac 15502 ;; 15503 15504sysv4*MP*) 15505 if test -d /usr/nec ;then 15506 version_type=linux # correct to gnu/linux during the next big refactor 15507 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15508 soname_spec='$libname${shared_ext}.$major' 15509 shlibpath_var=LD_LIBRARY_PATH 15510 fi 15511 ;; 15512 15513sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15514 version_type=freebsd-elf 15515 need_lib_prefix=no 15516 need_version=no 15517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15518 soname_spec='${libname}${release}${shared_ext}$major' 15519 shlibpath_var=LD_LIBRARY_PATH 15520 shlibpath_overrides_runpath=yes 15521 hardcode_into_libs=yes 15522 if test "$with_gnu_ld" = yes; then 15523 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15524 else 15525 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15526 case $host_os in 15527 sco3.2v5*) 15528 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15529 ;; 15530 esac 15531 fi 15532 sys_lib_dlsearch_path_spec='/usr/lib' 15533 ;; 15534 15535tpf*) 15536 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15537 version_type=linux # correct to gnu/linux during the next big refactor 15538 need_lib_prefix=no 15539 need_version=no 15540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15541 shlibpath_var=LD_LIBRARY_PATH 15542 shlibpath_overrides_runpath=no 15543 hardcode_into_libs=yes 15544 ;; 15545 15546uts4*) 15547 version_type=linux # correct to gnu/linux during the next big refactor 15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15549 soname_spec='${libname}${release}${shared_ext}$major' 15550 shlibpath_var=LD_LIBRARY_PATH 15551 ;; 15552 15553*) 15554 dynamic_linker=no 15555 ;; 15556esac 15557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15558$as_echo "$dynamic_linker" >&6; } 15559test "$dynamic_linker" = no && can_build_shared=no 15560 15561variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15562if test "$GCC" = yes; then 15563 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15564fi 15565 15566if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15567 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15568fi 15569if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15570 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15571fi 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15611$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15612hardcode_action_CXX= 15613if test -n "$hardcode_libdir_flag_spec_CXX" || 15614 test -n "$runpath_var_CXX" || 15615 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15616 15617 # We can hardcode non-existent directories. 15618 if test "$hardcode_direct_CXX" != no && 15619 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15620 # have to relink, otherwise we might link with an installed library 15621 # when we should be linking with a yet-to-be-installed one 15622 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15623 test "$hardcode_minus_L_CXX" != no; then 15624 # Linking always hardcodes the temporary library directory. 15625 hardcode_action_CXX=relink 15626 else 15627 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15628 hardcode_action_CXX=immediate 15629 fi 15630else 15631 # We cannot hardcode anything, or else we can only hardcode existing 15632 # directories. 15633 hardcode_action_CXX=unsupported 15634fi 15635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15636$as_echo "$hardcode_action_CXX" >&6; } 15637 15638if test "$hardcode_action_CXX" = relink || 15639 test "$inherit_rpath_CXX" = yes; then 15640 # Fast installation is not supported 15641 enable_fast_install=no 15642elif test "$shlibpath_overrides_runpath" = yes || 15643 test "$enable_shared" = no; then 15644 # Fast installation is not necessary 15645 enable_fast_install=needless 15646fi 15647 15648 15649 15650 15651 15652 15653 15654 fi # test -n "$compiler" 15655 15656 CC=$lt_save_CC 15657 CFLAGS=$lt_save_CFLAGS 15658 LDCXX=$LD 15659 LD=$lt_save_LD 15660 GCC=$lt_save_GCC 15661 with_gnu_ld=$lt_save_with_gnu_ld 15662 lt_cv_path_LDCXX=$lt_cv_path_LD 15663 lt_cv_path_LD=$lt_save_path_LD 15664 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15665 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15666fi # test "$_lt_caught_CXX_error" != yes 15667 15668ac_ext=c 15669ac_cpp='$CPP $CPPFLAGS' 15670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15672ac_compiler_gnu=$ac_cv_c_compiler_gnu 15673 15674 15675ac_ext=c 15676ac_cpp='$CPP $CPPFLAGS' 15677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15679ac_compiler_gnu=$ac_cv_c_compiler_gnu 15680if test -n "$ac_tool_prefix"; then 15681 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 15682set dummy ${ac_tool_prefix}gcc; ac_word=$2 15683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15684$as_echo_n "checking for $ac_word... " >&6; } 15685if ${ac_cv_prog_CC+:} false; then : 15686 $as_echo_n "(cached) " >&6 15687else 15688 if test -n "$CC"; then 15689 ac_cv_prog_CC="$CC" # Let the user override the test. 15690else 15691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15692for as_dir in $PATH 15693do 15694 IFS=$as_save_IFS 15695 test -z "$as_dir" && as_dir=. 15696 for ac_exec_ext in '' $ac_executable_extensions; do 15697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15698 ac_cv_prog_CC="${ac_tool_prefix}gcc" 15699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15700 break 2 15701 fi 15702done 15703 done 15704IFS=$as_save_IFS 15705 15706fi 15707fi 15708CC=$ac_cv_prog_CC 15709if test -n "$CC"; then 15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 15711$as_echo "$CC" >&6; } 15712else 15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15714$as_echo "no" >&6; } 15715fi 15716 15717 15718fi 15719if test -z "$ac_cv_prog_CC"; then 15720 ac_ct_CC=$CC 15721 # Extract the first word of "gcc", so it can be a program name with args. 15722set dummy gcc; ac_word=$2 15723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15724$as_echo_n "checking for $ac_word... " >&6; } 15725if ${ac_cv_prog_ac_ct_CC+:} false; then : 15726 $as_echo_n "(cached) " >&6 15727else 15728 if test -n "$ac_ct_CC"; then 15729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 15730else 15731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15732for as_dir in $PATH 15733do 15734 IFS=$as_save_IFS 15735 test -z "$as_dir" && as_dir=. 15736 for ac_exec_ext in '' $ac_executable_extensions; do 15737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15738 ac_cv_prog_ac_ct_CC="gcc" 15739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15740 break 2 15741 fi 15742done 15743 done 15744IFS=$as_save_IFS 15745 15746fi 15747fi 15748ac_ct_CC=$ac_cv_prog_ac_ct_CC 15749if test -n "$ac_ct_CC"; then 15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 15751$as_echo "$ac_ct_CC" >&6; } 15752else 15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15754$as_echo "no" >&6; } 15755fi 15756 15757 if test "x$ac_ct_CC" = x; then 15758 CC="" 15759 else 15760 case $cross_compiling:$ac_tool_warned in 15761yes:) 15762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15764ac_tool_warned=yes ;; 15765esac 15766 CC=$ac_ct_CC 15767 fi 15768else 15769 CC="$ac_cv_prog_CC" 15770fi 15771 15772if test -z "$CC"; then 15773 if test -n "$ac_tool_prefix"; then 15774 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 15775set dummy ${ac_tool_prefix}cc; ac_word=$2 15776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15777$as_echo_n "checking for $ac_word... " >&6; } 15778if ${ac_cv_prog_CC+:} false; then : 15779 $as_echo_n "(cached) " >&6 15780else 15781 if test -n "$CC"; then 15782 ac_cv_prog_CC="$CC" # Let the user override the test. 15783else 15784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15785for as_dir in $PATH 15786do 15787 IFS=$as_save_IFS 15788 test -z "$as_dir" && as_dir=. 15789 for ac_exec_ext in '' $ac_executable_extensions; do 15790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15791 ac_cv_prog_CC="${ac_tool_prefix}cc" 15792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15793 break 2 15794 fi 15795done 15796 done 15797IFS=$as_save_IFS 15798 15799fi 15800fi 15801CC=$ac_cv_prog_CC 15802if test -n "$CC"; then 15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 15804$as_echo "$CC" >&6; } 15805else 15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15807$as_echo "no" >&6; } 15808fi 15809 15810 15811 fi 15812fi 15813if test -z "$CC"; then 15814 # Extract the first word of "cc", so it can be a program name with args. 15815set dummy cc; ac_word=$2 15816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15817$as_echo_n "checking for $ac_word... " >&6; } 15818if ${ac_cv_prog_CC+:} false; then : 15819 $as_echo_n "(cached) " >&6 15820else 15821 if test -n "$CC"; then 15822 ac_cv_prog_CC="$CC" # Let the user override the test. 15823else 15824 ac_prog_rejected=no 15825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15826for as_dir in $PATH 15827do 15828 IFS=$as_save_IFS 15829 test -z "$as_dir" && as_dir=. 15830 for ac_exec_ext in '' $ac_executable_extensions; do 15831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15832 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 15833 ac_prog_rejected=yes 15834 continue 15835 fi 15836 ac_cv_prog_CC="cc" 15837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15838 break 2 15839 fi 15840done 15841 done 15842IFS=$as_save_IFS 15843 15844if test $ac_prog_rejected = yes; then 15845 # We found a bogon in the path, so make sure we never use it. 15846 set dummy $ac_cv_prog_CC 15847 shift 15848 if test $# != 0; then 15849 # We chose a different compiler from the bogus one. 15850 # However, it has the same basename, so the bogon will be chosen 15851 # first if we set CC to just the basename; use the full file name. 15852 shift 15853 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 15854 fi 15855fi 15856fi 15857fi 15858CC=$ac_cv_prog_CC 15859if test -n "$CC"; then 15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 15861$as_echo "$CC" >&6; } 15862else 15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15864$as_echo "no" >&6; } 15865fi 15866 15867 15868fi 15869if test -z "$CC"; then 15870 if test -n "$ac_tool_prefix"; then 15871 for ac_prog in cl.exe 15872 do 15873 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 15874set dummy $ac_tool_prefix$ac_prog; ac_word=$2 15875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15876$as_echo_n "checking for $ac_word... " >&6; } 15877if ${ac_cv_prog_CC+:} false; then : 15878 $as_echo_n "(cached) " >&6 15879else 15880 if test -n "$CC"; then 15881 ac_cv_prog_CC="$CC" # Let the user override the test. 15882else 15883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15884for as_dir in $PATH 15885do 15886 IFS=$as_save_IFS 15887 test -z "$as_dir" && as_dir=. 15888 for ac_exec_ext in '' $ac_executable_extensions; do 15889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15890 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 15891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15892 break 2 15893 fi 15894done 15895 done 15896IFS=$as_save_IFS 15897 15898fi 15899fi 15900CC=$ac_cv_prog_CC 15901if test -n "$CC"; then 15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 15903$as_echo "$CC" >&6; } 15904else 15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15906$as_echo "no" >&6; } 15907fi 15908 15909 15910 test -n "$CC" && break 15911 done 15912fi 15913if test -z "$CC"; then 15914 ac_ct_CC=$CC 15915 for ac_prog in cl.exe 15916do 15917 # Extract the first word of "$ac_prog", so it can be a program name with args. 15918set dummy $ac_prog; ac_word=$2 15919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15920$as_echo_n "checking for $ac_word... " >&6; } 15921if ${ac_cv_prog_ac_ct_CC+:} false; then : 15922 $as_echo_n "(cached) " >&6 15923else 15924 if test -n "$ac_ct_CC"; then 15925 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 15926else 15927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15928for as_dir in $PATH 15929do 15930 IFS=$as_save_IFS 15931 test -z "$as_dir" && as_dir=. 15932 for ac_exec_ext in '' $ac_executable_extensions; do 15933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15934 ac_cv_prog_ac_ct_CC="$ac_prog" 15935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15936 break 2 15937 fi 15938done 15939 done 15940IFS=$as_save_IFS 15941 15942fi 15943fi 15944ac_ct_CC=$ac_cv_prog_ac_ct_CC 15945if test -n "$ac_ct_CC"; then 15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 15947$as_echo "$ac_ct_CC" >&6; } 15948else 15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15950$as_echo "no" >&6; } 15951fi 15952 15953 15954 test -n "$ac_ct_CC" && break 15955done 15956 15957 if test "x$ac_ct_CC" = x; then 15958 CC="" 15959 else 15960 case $cross_compiling:$ac_tool_warned in 15961yes:) 15962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15964ac_tool_warned=yes ;; 15965esac 15966 CC=$ac_ct_CC 15967 fi 15968fi 15969 15970fi 15971 15972 15973test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15975as_fn_error $? "no acceptable C compiler found in \$PATH 15976See \`config.log' for more details" "$LINENO" 5; } 15977 15978# Provide some information about the compiler. 15979$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 15980set X $ac_compile 15981ac_compiler=$2 15982for ac_option in --version -v -V -qversion; do 15983 { { ac_try="$ac_compiler $ac_option >&5" 15984case "(($ac_try" in 15985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15986 *) ac_try_echo=$ac_try;; 15987esac 15988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15989$as_echo "$ac_try_echo"; } >&5 15990 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 15991 ac_status=$? 15992 if test -s conftest.err; then 15993 sed '10a\ 15994... rest of stderr output deleted ... 15995 10q' conftest.err >conftest.er1 15996 cat conftest.er1 >&5 15997 fi 15998 rm -f conftest.er1 conftest.err 15999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16000 test $ac_status = 0; } 16001done 16002 16003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 16004$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 16005if ${ac_cv_c_compiler_gnu+:} false; then : 16006 $as_echo_n "(cached) " >&6 16007else 16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16009/* end confdefs.h. */ 16010 16011int 16012main () 16013{ 16014#ifndef __GNUC__ 16015 choke me 16016#endif 16017 16018 ; 16019 return 0; 16020} 16021_ACEOF 16022if ac_fn_c_try_compile "$LINENO"; then : 16023 ac_compiler_gnu=yes 16024else 16025 ac_compiler_gnu=no 16026fi 16027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16028ac_cv_c_compiler_gnu=$ac_compiler_gnu 16029 16030fi 16031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 16032$as_echo "$ac_cv_c_compiler_gnu" >&6; } 16033if test $ac_compiler_gnu = yes; then 16034 GCC=yes 16035else 16036 GCC= 16037fi 16038ac_test_CFLAGS=${CFLAGS+set} 16039ac_save_CFLAGS=$CFLAGS 16040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 16041$as_echo_n "checking whether $CC accepts -g... " >&6; } 16042if ${ac_cv_prog_cc_g+:} false; then : 16043 $as_echo_n "(cached) " >&6 16044else 16045 ac_save_c_werror_flag=$ac_c_werror_flag 16046 ac_c_werror_flag=yes 16047 ac_cv_prog_cc_g=no 16048 CFLAGS="-g" 16049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16050/* end confdefs.h. */ 16051 16052int 16053main () 16054{ 16055 16056 ; 16057 return 0; 16058} 16059_ACEOF 16060if ac_fn_c_try_compile "$LINENO"; then : 16061 ac_cv_prog_cc_g=yes 16062else 16063 CFLAGS="" 16064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16065/* end confdefs.h. */ 16066 16067int 16068main () 16069{ 16070 16071 ; 16072 return 0; 16073} 16074_ACEOF 16075if ac_fn_c_try_compile "$LINENO"; then : 16076 16077else 16078 ac_c_werror_flag=$ac_save_c_werror_flag 16079 CFLAGS="-g" 16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16081/* end confdefs.h. */ 16082 16083int 16084main () 16085{ 16086 16087 ; 16088 return 0; 16089} 16090_ACEOF 16091if ac_fn_c_try_compile "$LINENO"; then : 16092 ac_cv_prog_cc_g=yes 16093fi 16094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16095fi 16096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16097fi 16098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16099 ac_c_werror_flag=$ac_save_c_werror_flag 16100fi 16101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 16102$as_echo "$ac_cv_prog_cc_g" >&6; } 16103if test "$ac_test_CFLAGS" = set; then 16104 CFLAGS=$ac_save_CFLAGS 16105elif test $ac_cv_prog_cc_g = yes; then 16106 if test "$GCC" = yes; then 16107 CFLAGS="-g -O2" 16108 else 16109 CFLAGS="-g" 16110 fi 16111else 16112 if test "$GCC" = yes; then 16113 CFLAGS="-O2" 16114 else 16115 CFLAGS= 16116 fi 16117fi 16118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 16119$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 16120if ${ac_cv_prog_cc_c89+:} false; then : 16121 $as_echo_n "(cached) " >&6 16122else 16123 ac_cv_prog_cc_c89=no 16124ac_save_CC=$CC 16125cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16126/* end confdefs.h. */ 16127#include <stdarg.h> 16128#include <stdio.h> 16129struct stat; 16130/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 16131struct buf { int x; }; 16132FILE * (*rcsopen) (struct buf *, struct stat *, int); 16133static char *e (p, i) 16134 char **p; 16135 int i; 16136{ 16137 return p[i]; 16138} 16139static char *f (char * (*g) (char **, int), char **p, ...) 16140{ 16141 char *s; 16142 va_list v; 16143 va_start (v,p); 16144 s = g (p, va_arg (v,int)); 16145 va_end (v); 16146 return s; 16147} 16148 16149/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 16150 function prototypes and stuff, but not '\xHH' hex character constants. 16151 These don't provoke an error unfortunately, instead are silently treated 16152 as 'x'. The following induces an error, until -std is added to get 16153 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 16154 array size at least. It's necessary to write '\x00'==0 to get something 16155 that's true only with -std. */ 16156int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 16157 16158/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 16159 inside strings and character constants. */ 16160#define FOO(x) 'x' 16161int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 16162 16163int test (int i, double x); 16164struct s1 {int (*f) (int a);}; 16165struct s2 {int (*f) (double a);}; 16166int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 16167int argc; 16168char **argv; 16169int 16170main () 16171{ 16172return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 16173 ; 16174 return 0; 16175} 16176_ACEOF 16177for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 16178 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 16179do 16180 CC="$ac_save_CC $ac_arg" 16181 if ac_fn_c_try_compile "$LINENO"; then : 16182 ac_cv_prog_cc_c89=$ac_arg 16183fi 16184rm -f core conftest.err conftest.$ac_objext 16185 test "x$ac_cv_prog_cc_c89" != "xno" && break 16186done 16187rm -f conftest.$ac_ext 16188CC=$ac_save_CC 16189 16190fi 16191# AC_CACHE_VAL 16192case "x$ac_cv_prog_cc_c89" in 16193 x) 16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 16195$as_echo "none needed" >&6; } ;; 16196 xno) 16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 16198$as_echo "unsupported" >&6; } ;; 16199 *) 16200 CC="$CC $ac_cv_prog_cc_c89" 16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 16202$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 16203esac 16204if test "x$ac_cv_prog_cc_c89" != xno; then : 16205 16206fi 16207 16208ac_ext=c 16209ac_cpp='$CPP $CPPFLAGS' 16210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16212ac_compiler_gnu=$ac_cv_c_compiler_gnu 16213 16214ac_ext=c 16215ac_cpp='$CPP $CPPFLAGS' 16216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16218ac_compiler_gnu=$ac_cv_c_compiler_gnu 16219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 16220$as_echo_n "checking how to run the C preprocessor... " >&6; } 16221# On Suns, sometimes $CPP names a directory. 16222if test -n "$CPP" && test -d "$CPP"; then 16223 CPP= 16224fi 16225if test -z "$CPP"; then 16226 if ${ac_cv_prog_CPP+:} false; then : 16227 $as_echo_n "(cached) " >&6 16228else 16229 # Double quotes because CPP needs to be expanded 16230 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 16231 do 16232 ac_preproc_ok=false 16233for ac_c_preproc_warn_flag in '' yes 16234do 16235 # Use a header file that comes with gcc, so configuring glibc 16236 # with a fresh cross-compiler works. 16237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16238 # <limits.h> exists even on freestanding compilers. 16239 # On the NeXT, cc -E runs the code through the compiler's parser, 16240 # not just through cpp. "Syntax error" is here to catch this case. 16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16242/* end confdefs.h. */ 16243#ifdef __STDC__ 16244# include <limits.h> 16245#else 16246# include <assert.h> 16247#endif 16248 Syntax error 16249_ACEOF 16250if ac_fn_c_try_cpp "$LINENO"; then : 16251 16252else 16253 # Broken: fails on valid input. 16254continue 16255fi 16256rm -f conftest.err conftest.i conftest.$ac_ext 16257 16258 # OK, works on sane cases. Now check whether nonexistent headers 16259 # can be detected and how. 16260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16261/* end confdefs.h. */ 16262#include <ac_nonexistent.h> 16263_ACEOF 16264if ac_fn_c_try_cpp "$LINENO"; then : 16265 # Broken: success on invalid input. 16266continue 16267else 16268 # Passes both tests. 16269ac_preproc_ok=: 16270break 16271fi 16272rm -f conftest.err conftest.i conftest.$ac_ext 16273 16274done 16275# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 16276rm -f conftest.i conftest.err conftest.$ac_ext 16277if $ac_preproc_ok; then : 16278 break 16279fi 16280 16281 done 16282 ac_cv_prog_CPP=$CPP 16283 16284fi 16285 CPP=$ac_cv_prog_CPP 16286else 16287 ac_cv_prog_CPP=$CPP 16288fi 16289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 16290$as_echo "$CPP" >&6; } 16291ac_preproc_ok=false 16292for ac_c_preproc_warn_flag in '' yes 16293do 16294 # Use a header file that comes with gcc, so configuring glibc 16295 # with a fresh cross-compiler works. 16296 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16297 # <limits.h> exists even on freestanding compilers. 16298 # On the NeXT, cc -E runs the code through the compiler's parser, 16299 # not just through cpp. "Syntax error" is here to catch this case. 16300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16301/* end confdefs.h. */ 16302#ifdef __STDC__ 16303# include <limits.h> 16304#else 16305# include <assert.h> 16306#endif 16307 Syntax error 16308_ACEOF 16309if ac_fn_c_try_cpp "$LINENO"; then : 16310 16311else 16312 # Broken: fails on valid input. 16313continue 16314fi 16315rm -f conftest.err conftest.i conftest.$ac_ext 16316 16317 # OK, works on sane cases. Now check whether nonexistent headers 16318 # can be detected and how. 16319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16320/* end confdefs.h. */ 16321#include <ac_nonexistent.h> 16322_ACEOF 16323if ac_fn_c_try_cpp "$LINENO"; then : 16324 # Broken: success on invalid input. 16325continue 16326else 16327 # Passes both tests. 16328ac_preproc_ok=: 16329break 16330fi 16331rm -f conftest.err conftest.i conftest.$ac_ext 16332 16333done 16334# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 16335rm -f conftest.i conftest.err conftest.$ac_ext 16336if $ac_preproc_ok; then : 16337 16338else 16339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16341as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 16342See \`config.log' for more details" "$LINENO" 5; } 16343fi 16344 16345ac_ext=c 16346ac_cpp='$CPP $CPPFLAGS' 16347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16349ac_compiler_gnu=$ac_cv_c_compiler_gnu 16350 16351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 16352$as_echo_n "checking whether ln -s works... " >&6; } 16353LN_S=$as_ln_s 16354if test "$LN_S" = "ln -s"; then 16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16356$as_echo "yes" >&6; } 16357else 16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 16359$as_echo "no, using $LN_S" >&6; } 16360fi 16361 16362 16363# Extract the first word of "a2x", so it can be a program name with args. 16364set dummy a2x; ac_word=$2 16365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16366$as_echo_n "checking for $ac_word... " >&6; } 16367if ${ac_cv_path_A2X+:} false; then : 16368 $as_echo_n "(cached) " >&6 16369else 16370 case $A2X in 16371 [\\/]* | ?:[\\/]*) 16372 ac_cv_path_A2X="$A2X" # Let the user override the test with a path. 16373 ;; 16374 *) 16375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16376for as_dir in $PATH 16377do 16378 IFS=$as_save_IFS 16379 test -z "$as_dir" && as_dir=. 16380 for ac_exec_ext in '' $ac_executable_extensions; do 16381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16382 ac_cv_path_A2X="$as_dir/$ac_word$ac_exec_ext" 16383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16384 break 2 16385 fi 16386done 16387 done 16388IFS=$as_save_IFS 16389 16390 test -z "$ac_cv_path_A2X" && ac_cv_path_A2X="no" 16391 ;; 16392esac 16393fi 16394A2X=$ac_cv_path_A2X 16395if test -n "$A2X"; then 16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $A2X" >&5 16397$as_echo "$A2X" >&6; } 16398else 16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16400$as_echo "no" >&6; } 16401fi 16402 16403 16404 if test x"$A2X" != "xno"; then 16405 HAVE_A2X_TRUE= 16406 HAVE_A2X_FALSE='#' 16407else 16408 HAVE_A2X_TRUE='#' 16409 HAVE_A2X_FALSE= 16410fi 16411 16412 16413 16414if test x"$A2X" = "xno" && test -d "$srcdir/.git"; then : 16415 as_fn_error $? "a2x is required to create man pages when building from git" "$LINENO" 5] 16416fi 16417 16418# Checks for libraries. 16419 16420 16421 16422 16423 16424 16425 16426 16427if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 16428 if test -n "$ac_tool_prefix"; then 16429 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 16430set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 16431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16432$as_echo_n "checking for $ac_word... " >&6; } 16433if ${ac_cv_path_PKG_CONFIG+:} false; then : 16434 $as_echo_n "(cached) " >&6 16435else 16436 case $PKG_CONFIG in 16437 [\\/]* | ?:[\\/]*) 16438 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 16439 ;; 16440 *) 16441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16442for as_dir in $PATH 16443do 16444 IFS=$as_save_IFS 16445 test -z "$as_dir" && as_dir=. 16446 for ac_exec_ext in '' $ac_executable_extensions; do 16447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16448 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 16449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16450 break 2 16451 fi 16452done 16453 done 16454IFS=$as_save_IFS 16455 16456 ;; 16457esac 16458fi 16459PKG_CONFIG=$ac_cv_path_PKG_CONFIG 16460if test -n "$PKG_CONFIG"; then 16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 16462$as_echo "$PKG_CONFIG" >&6; } 16463else 16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16465$as_echo "no" >&6; } 16466fi 16467 16468 16469fi 16470if test -z "$ac_cv_path_PKG_CONFIG"; then 16471 ac_pt_PKG_CONFIG=$PKG_CONFIG 16472 # Extract the first word of "pkg-config", so it can be a program name with args. 16473set dummy pkg-config; ac_word=$2 16474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16475$as_echo_n "checking for $ac_word... " >&6; } 16476if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 16477 $as_echo_n "(cached) " >&6 16478else 16479 case $ac_pt_PKG_CONFIG in 16480 [\\/]* | ?:[\\/]*) 16481 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 16482 ;; 16483 *) 16484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16485for as_dir in $PATH 16486do 16487 IFS=$as_save_IFS 16488 test -z "$as_dir" && as_dir=. 16489 for ac_exec_ext in '' $ac_executable_extensions; do 16490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16491 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 16492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16493 break 2 16494 fi 16495done 16496 done 16497IFS=$as_save_IFS 16498 16499 ;; 16500esac 16501fi 16502ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 16503if test -n "$ac_pt_PKG_CONFIG"; then 16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 16505$as_echo "$ac_pt_PKG_CONFIG" >&6; } 16506else 16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16508$as_echo "no" >&6; } 16509fi 16510 16511 if test "x$ac_pt_PKG_CONFIG" = x; then 16512 PKG_CONFIG="" 16513 else 16514 case $cross_compiling:$ac_tool_warned in 16515yes:) 16516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16518ac_tool_warned=yes ;; 16519esac 16520 PKG_CONFIG=$ac_pt_PKG_CONFIG 16521 fi 16522else 16523 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 16524fi 16525 16526fi 16527if test -n "$PKG_CONFIG"; then 16528 _pkg_min_version=0.9.0 16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 16530$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 16531 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16533$as_echo "yes" >&6; } 16534 else 16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16536$as_echo "no" >&6; } 16537 PKG_CONFIG="" 16538 fi 16539fi 16540 16541pkg_failed=no 16542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libquvi" >&5 16543$as_echo_n "checking for libquvi... " >&6; } 16544 16545if test -n "$libquvi_CFLAGS"; then 16546 pkg_cv_libquvi_CFLAGS="$libquvi_CFLAGS" 16547 elif test -n "$PKG_CONFIG"; then 16548 if test -n "$PKG_CONFIG" && \ 16549 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquvi >= 0.4.0\""; } >&5 16550 ($PKG_CONFIG --exists --print-errors "libquvi >= 0.4.0") 2>&5 16551 ac_status=$? 16552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16553 test $ac_status = 0; }; then 16554 pkg_cv_libquvi_CFLAGS=`$PKG_CONFIG --cflags "libquvi >= 0.4.0" 2>/dev/null` 16555 test "x$?" != "x0" && pkg_failed=yes 16556else 16557 pkg_failed=yes 16558fi 16559 else 16560 pkg_failed=untried 16561fi 16562if test -n "$libquvi_LIBS"; then 16563 pkg_cv_libquvi_LIBS="$libquvi_LIBS" 16564 elif test -n "$PKG_CONFIG"; then 16565 if test -n "$PKG_CONFIG" && \ 16566 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquvi >= 0.4.0\""; } >&5 16567 ($PKG_CONFIG --exists --print-errors "libquvi >= 0.4.0") 2>&5 16568 ac_status=$? 16569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16570 test $ac_status = 0; }; then 16571 pkg_cv_libquvi_LIBS=`$PKG_CONFIG --libs "libquvi >= 0.4.0" 2>/dev/null` 16572 test "x$?" != "x0" && pkg_failed=yes 16573else 16574 pkg_failed=yes 16575fi 16576 else 16577 pkg_failed=untried 16578fi 16579 16580 16581 16582if test $pkg_failed = yes; then 16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16584$as_echo "no" >&6; } 16585 16586if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16587 _pkg_short_errors_supported=yes 16588else 16589 _pkg_short_errors_supported=no 16590fi 16591 if test $_pkg_short_errors_supported = yes; then 16592 libquvi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libquvi >= 0.4.0" 2>&1` 16593 else 16594 libquvi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libquvi >= 0.4.0" 2>&1` 16595 fi 16596 # Put the nasty error message in config.log where it belongs 16597 echo "$libquvi_PKG_ERRORS" >&5 16598 16599 16600pkg_failed=no 16601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libquvi" >&5 16602$as_echo_n "checking for libquvi... " >&6; } 16603 16604if test -n "$libquvi_CFLAGS"; then 16605 pkg_cv_libquvi_CFLAGS="$libquvi_CFLAGS" 16606 elif test -n "$PKG_CONFIG"; then 16607 if test -n "$PKG_CONFIG" && \ 16608 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquvi >= 0.2.16.1\""; } >&5 16609 ($PKG_CONFIG --exists --print-errors "libquvi >= 0.2.16.1") 2>&5 16610 ac_status=$? 16611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16612 test $ac_status = 0; }; then 16613 pkg_cv_libquvi_CFLAGS=`$PKG_CONFIG --cflags "libquvi >= 0.2.16.1" 2>/dev/null` 16614 test "x$?" != "x0" && pkg_failed=yes 16615else 16616 pkg_failed=yes 16617fi 16618 else 16619 pkg_failed=untried 16620fi 16621if test -n "$libquvi_LIBS"; then 16622 pkg_cv_libquvi_LIBS="$libquvi_LIBS" 16623 elif test -n "$PKG_CONFIG"; then 16624 if test -n "$PKG_CONFIG" && \ 16625 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquvi >= 0.2.16.1\""; } >&5 16626 ($PKG_CONFIG --exists --print-errors "libquvi >= 0.2.16.1") 2>&5 16627 ac_status=$? 16628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16629 test $ac_status = 0; }; then 16630 pkg_cv_libquvi_LIBS=`$PKG_CONFIG --libs "libquvi >= 0.2.16.1" 2>/dev/null` 16631 test "x$?" != "x0" && pkg_failed=yes 16632else 16633 pkg_failed=yes 16634fi 16635 else 16636 pkg_failed=untried 16637fi 16638 16639 16640 16641if test $pkg_failed = yes; then 16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16643$as_echo "no" >&6; } 16644 16645if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16646 _pkg_short_errors_supported=yes 16647else 16648 _pkg_short_errors_supported=no 16649fi 16650 if test $_pkg_short_errors_supported = yes; then 16651 libquvi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libquvi >= 0.2.16.1" 2>&1` 16652 else 16653 libquvi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libquvi >= 0.2.16.1" 2>&1` 16654 fi 16655 # Put the nasty error message in config.log where it belongs 16656 echo "$libquvi_PKG_ERRORS" >&5 16657 16658 as_fn_error $? "Package requirements (libquvi >= 0.2.16.1) were not met: 16659 16660$libquvi_PKG_ERRORS 16661 16662Consider adjusting the PKG_CONFIG_PATH environment variable if you 16663installed software in a non-standard prefix. 16664 16665Alternatively, you may set the environment variables libquvi_CFLAGS 16666and libquvi_LIBS to avoid the need to call pkg-config. 16667See the pkg-config man page for more details." "$LINENO" 5 16668elif test $pkg_failed = untried; then 16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16670$as_echo "no" >&6; } 16671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16673as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16674is in your PATH or set the PKG_CONFIG environment variable to the full 16675path to pkg-config. 16676 16677Alternatively, you may set the environment variables libquvi_CFLAGS 16678and libquvi_LIBS to avoid the need to call pkg-config. 16679See the pkg-config man page for more details. 16680 16681To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16682See \`config.log' for more details" "$LINENO" 5; } 16683else 16684 libquvi_CFLAGS=$pkg_cv_libquvi_CFLAGS 16685 libquvi_LIBS=$pkg_cv_libquvi_LIBS 16686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16687$as_echo "yes" >&6; } 16688 16689fi 16690elif test $pkg_failed = untried; then 16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16692$as_echo "no" >&6; } 16693 16694pkg_failed=no 16695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libquvi" >&5 16696$as_echo_n "checking for libquvi... " >&6; } 16697 16698if test -n "$libquvi_CFLAGS"; then 16699 pkg_cv_libquvi_CFLAGS="$libquvi_CFLAGS" 16700 elif test -n "$PKG_CONFIG"; then 16701 if test -n "$PKG_CONFIG" && \ 16702 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquvi >= 0.2.16.1\""; } >&5 16703 ($PKG_CONFIG --exists --print-errors "libquvi >= 0.2.16.1") 2>&5 16704 ac_status=$? 16705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16706 test $ac_status = 0; }; then 16707 pkg_cv_libquvi_CFLAGS=`$PKG_CONFIG --cflags "libquvi >= 0.2.16.1" 2>/dev/null` 16708 test "x$?" != "x0" && pkg_failed=yes 16709else 16710 pkg_failed=yes 16711fi 16712 else 16713 pkg_failed=untried 16714fi 16715if test -n "$libquvi_LIBS"; then 16716 pkg_cv_libquvi_LIBS="$libquvi_LIBS" 16717 elif test -n "$PKG_CONFIG"; then 16718 if test -n "$PKG_CONFIG" && \ 16719 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquvi >= 0.2.16.1\""; } >&5 16720 ($PKG_CONFIG --exists --print-errors "libquvi >= 0.2.16.1") 2>&5 16721 ac_status=$? 16722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16723 test $ac_status = 0; }; then 16724 pkg_cv_libquvi_LIBS=`$PKG_CONFIG --libs "libquvi >= 0.2.16.1" 2>/dev/null` 16725 test "x$?" != "x0" && pkg_failed=yes 16726else 16727 pkg_failed=yes 16728fi 16729 else 16730 pkg_failed=untried 16731fi 16732 16733 16734 16735if test $pkg_failed = yes; then 16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16737$as_echo "no" >&6; } 16738 16739if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16740 _pkg_short_errors_supported=yes 16741else 16742 _pkg_short_errors_supported=no 16743fi 16744 if test $_pkg_short_errors_supported = yes; then 16745 libquvi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libquvi >= 0.2.16.1" 2>&1` 16746 else 16747 libquvi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libquvi >= 0.2.16.1" 2>&1` 16748 fi 16749 # Put the nasty error message in config.log where it belongs 16750 echo "$libquvi_PKG_ERRORS" >&5 16751 16752 as_fn_error $? "Package requirements (libquvi >= 0.2.16.1) were not met: 16753 16754$libquvi_PKG_ERRORS 16755 16756Consider adjusting the PKG_CONFIG_PATH environment variable if you 16757installed software in a non-standard prefix. 16758 16759Alternatively, you may set the environment variables libquvi_CFLAGS 16760and libquvi_LIBS to avoid the need to call pkg-config. 16761See the pkg-config man page for more details." "$LINENO" 5 16762elif test $pkg_failed = untried; then 16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16764$as_echo "no" >&6; } 16765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16767as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16768is in your PATH or set the PKG_CONFIG environment variable to the full 16769path to pkg-config. 16770 16771Alternatively, you may set the environment variables libquvi_CFLAGS 16772and libquvi_LIBS to avoid the need to call pkg-config. 16773See the pkg-config man page for more details. 16774 16775To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16776See \`config.log' for more details" "$LINENO" 5; } 16777else 16778 libquvi_CFLAGS=$pkg_cv_libquvi_CFLAGS 16779 libquvi_LIBS=$pkg_cv_libquvi_LIBS 16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16781$as_echo "yes" >&6; } 16782 16783fi 16784else 16785 libquvi_CFLAGS=$pkg_cv_libquvi_CFLAGS 16786 libquvi_LIBS=$pkg_cv_libquvi_LIBS 16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16788$as_echo "yes" >&6; } 16789 16790$as_echo "#define HAVE_LIBQUVI_0_4_0 1" >>confdefs.h 16791 16792fi 16793 16794pkg_failed=no 16795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5 16796$as_echo_n "checking for libcurl... " >&6; } 16797 16798if test -n "$libcurl_CFLAGS"; then 16799 pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS" 16800 elif test -n "$PKG_CONFIG"; then 16801 if test -n "$PKG_CONFIG" && \ 16802 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.18.0\""; } >&5 16803 ($PKG_CONFIG --exists --print-errors "libcurl >= 7.18.0") 2>&5 16804 ac_status=$? 16805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16806 test $ac_status = 0; }; then 16807 pkg_cv_libcurl_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.18.0" 2>/dev/null` 16808 test "x$?" != "x0" && pkg_failed=yes 16809else 16810 pkg_failed=yes 16811fi 16812 else 16813 pkg_failed=untried 16814fi 16815if test -n "$libcurl_LIBS"; then 16816 pkg_cv_libcurl_LIBS="$libcurl_LIBS" 16817 elif test -n "$PKG_CONFIG"; then 16818 if test -n "$PKG_CONFIG" && \ 16819 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.18.0\""; } >&5 16820 ($PKG_CONFIG --exists --print-errors "libcurl >= 7.18.0") 2>&5 16821 ac_status=$? 16822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16823 test $ac_status = 0; }; then 16824 pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.18.0" 2>/dev/null` 16825 test "x$?" != "x0" && pkg_failed=yes 16826else 16827 pkg_failed=yes 16828fi 16829 else 16830 pkg_failed=untried 16831fi 16832 16833 16834 16835if test $pkg_failed = yes; then 16836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16837$as_echo "no" >&6; } 16838 16839if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16840 _pkg_short_errors_supported=yes 16841else 16842 _pkg_short_errors_supported=no 16843fi 16844 if test $_pkg_short_errors_supported = yes; then 16845 libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.18.0" 2>&1` 16846 else 16847 libcurl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.18.0" 2>&1` 16848 fi 16849 # Put the nasty error message in config.log where it belongs 16850 echo "$libcurl_PKG_ERRORS" >&5 16851 16852 as_fn_error $? "Package requirements (libcurl >= 7.18.0) were not met: 16853 16854$libcurl_PKG_ERRORS 16855 16856Consider adjusting the PKG_CONFIG_PATH environment variable if you 16857installed software in a non-standard prefix. 16858 16859Alternatively, you may set the environment variables libcurl_CFLAGS 16860and libcurl_LIBS to avoid the need to call pkg-config. 16861See the pkg-config man page for more details." "$LINENO" 5 16862elif test $pkg_failed = untried; then 16863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16864$as_echo "no" >&6; } 16865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16867as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16868is in your PATH or set the PKG_CONFIG environment variable to the full 16869path to pkg-config. 16870 16871Alternatively, you may set the environment variables libcurl_CFLAGS 16872and libcurl_LIBS to avoid the need to call pkg-config. 16873See the pkg-config man page for more details. 16874 16875To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16876See \`config.log' for more details" "$LINENO" 5; } 16877else 16878 libcurl_CFLAGS=$pkg_cv_libcurl_CFLAGS 16879 libcurl_LIBS=$pkg_cv_libcurl_LIBS 16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16881$as_echo "yes" >&6; } 16882 16883fi 16884 16885pkg_failed=no 16886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcre" >&5 16887$as_echo_n "checking for libpcre... " >&6; } 16888 16889if test -n "$libpcre_CFLAGS"; then 16890 pkg_cv_libpcre_CFLAGS="$libpcre_CFLAGS" 16891 elif test -n "$PKG_CONFIG"; then 16892 if test -n "$PKG_CONFIG" && \ 16893 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre >= 8.02\""; } >&5 16894 ($PKG_CONFIG --exists --print-errors "libpcre >= 8.02") 2>&5 16895 ac_status=$? 16896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16897 test $ac_status = 0; }; then 16898 pkg_cv_libpcre_CFLAGS=`$PKG_CONFIG --cflags "libpcre >= 8.02" 2>/dev/null` 16899 test "x$?" != "x0" && pkg_failed=yes 16900else 16901 pkg_failed=yes 16902fi 16903 else 16904 pkg_failed=untried 16905fi 16906if test -n "$libpcre_LIBS"; then 16907 pkg_cv_libpcre_LIBS="$libpcre_LIBS" 16908 elif test -n "$PKG_CONFIG"; then 16909 if test -n "$PKG_CONFIG" && \ 16910 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre >= 8.02\""; } >&5 16911 ($PKG_CONFIG --exists --print-errors "libpcre >= 8.02") 2>&5 16912 ac_status=$? 16913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16914 test $ac_status = 0; }; then 16915 pkg_cv_libpcre_LIBS=`$PKG_CONFIG --libs "libpcre >= 8.02" 2>/dev/null` 16916 test "x$?" != "x0" && pkg_failed=yes 16917else 16918 pkg_failed=yes 16919fi 16920 else 16921 pkg_failed=untried 16922fi 16923 16924 16925 16926if test $pkg_failed = yes; then 16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16928$as_echo "no" >&6; } 16929 16930if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16931 _pkg_short_errors_supported=yes 16932else 16933 _pkg_short_errors_supported=no 16934fi 16935 if test $_pkg_short_errors_supported = yes; then 16936 libpcre_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcre >= 8.02" 2>&1` 16937 else 16938 libpcre_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcre >= 8.02" 2>&1` 16939 fi 16940 # Put the nasty error message in config.log where it belongs 16941 echo "$libpcre_PKG_ERRORS" >&5 16942 16943 as_fn_error $? "Package requirements (libpcre >= 8.02) were not met: 16944 16945$libpcre_PKG_ERRORS 16946 16947Consider adjusting the PKG_CONFIG_PATH environment variable if you 16948installed software in a non-standard prefix. 16949 16950Alternatively, you may set the environment variables libpcre_CFLAGS 16951and libpcre_LIBS to avoid the need to call pkg-config. 16952See the pkg-config man page for more details." "$LINENO" 5 16953elif test $pkg_failed = untried; then 16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16955$as_echo "no" >&6; } 16956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16958as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16959is in your PATH or set the PKG_CONFIG environment variable to the full 16960path to pkg-config. 16961 16962Alternatively, you may set the environment variables libpcre_CFLAGS 16963and libpcre_LIBS to avoid the need to call pkg-config. 16964See the pkg-config man page for more details. 16965 16966To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16967See \`config.log' for more details" "$LINENO" 5; } 16968else 16969 libpcre_CFLAGS=$pkg_cv_libpcre_CFLAGS 16970 libpcre_LIBS=$pkg_cv_libpcre_LIBS 16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16972$as_echo "yes" >&6; } 16973 16974fi 16975 16976pkg_failed=no 16977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcrecpp" >&5 16978$as_echo_n "checking for libpcrecpp... " >&6; } 16979 16980if test -n "$libpcrecpp_CFLAGS"; then 16981 pkg_cv_libpcrecpp_CFLAGS="$libpcrecpp_CFLAGS" 16982 elif test -n "$PKG_CONFIG"; then 16983 if test -n "$PKG_CONFIG" && \ 16984 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcrecpp >= 8.02\""; } >&5 16985 ($PKG_CONFIG --exists --print-errors "libpcrecpp >= 8.02") 2>&5 16986 ac_status=$? 16987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16988 test $ac_status = 0; }; then 16989 pkg_cv_libpcrecpp_CFLAGS=`$PKG_CONFIG --cflags "libpcrecpp >= 8.02" 2>/dev/null` 16990 test "x$?" != "x0" && pkg_failed=yes 16991else 16992 pkg_failed=yes 16993fi 16994 else 16995 pkg_failed=untried 16996fi 16997if test -n "$libpcrecpp_LIBS"; then 16998 pkg_cv_libpcrecpp_LIBS="$libpcrecpp_LIBS" 16999 elif test -n "$PKG_CONFIG"; then 17000 if test -n "$PKG_CONFIG" && \ 17001 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcrecpp >= 8.02\""; } >&5 17002 ($PKG_CONFIG --exists --print-errors "libpcrecpp >= 8.02") 2>&5 17003 ac_status=$? 17004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17005 test $ac_status = 0; }; then 17006 pkg_cv_libpcrecpp_LIBS=`$PKG_CONFIG --libs "libpcrecpp >= 8.02" 2>/dev/null` 17007 test "x$?" != "x0" && pkg_failed=yes 17008else 17009 pkg_failed=yes 17010fi 17011 else 17012 pkg_failed=untried 17013fi 17014 17015 17016 17017if test $pkg_failed = yes; then 17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17019$as_echo "no" >&6; } 17020 17021if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17022 _pkg_short_errors_supported=yes 17023else 17024 _pkg_short_errors_supported=no 17025fi 17026 if test $_pkg_short_errors_supported = yes; then 17027 libpcrecpp_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcrecpp >= 8.02" 2>&1` 17028 else 17029 libpcrecpp_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcrecpp >= 8.02" 2>&1` 17030 fi 17031 # Put the nasty error message in config.log where it belongs 17032 echo "$libpcrecpp_PKG_ERRORS" >&5 17033 17034 as_fn_error $? "Package requirements (libpcrecpp >= 8.02) were not met: 17035 17036$libpcrecpp_PKG_ERRORS 17037 17038Consider adjusting the PKG_CONFIG_PATH environment variable if you 17039installed software in a non-standard prefix. 17040 17041Alternatively, you may set the environment variables libpcrecpp_CFLAGS 17042and libpcrecpp_LIBS to avoid the need to call pkg-config. 17043See the pkg-config man page for more details." "$LINENO" 5 17044elif test $pkg_failed = untried; then 17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17046$as_echo "no" >&6; } 17047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17049as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17050is in your PATH or set the PKG_CONFIG environment variable to the full 17051path to pkg-config. 17052 17053Alternatively, you may set the environment variables libpcrecpp_CFLAGS 17054and libpcrecpp_LIBS to avoid the need to call pkg-config. 17055See the pkg-config man page for more details. 17056 17057To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17058See \`config.log' for more details" "$LINENO" 5; } 17059else 17060 libpcrecpp_CFLAGS=$pkg_cv_libpcrecpp_CFLAGS 17061 libpcrecpp_LIBS=$pkg_cv_libpcrecpp_LIBS 17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17063$as_echo "yes" >&6; } 17064 17065fi 17066 17067echo "$as_me: this is boost.m4 serial 18" >&5 17068boost_save_IFS=$IFS 17069boost_version_req=1.42.0 17070IFS=. 17071set x $boost_version_req 0 0 0 17072IFS=$boost_save_IFS 17073shift 17074boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"` 17075boost_version_req_string=$1.$2.$3 17076 17077# Check whether --with-boost was given. 17078if test "${with_boost+set}" = set; then : 17079 withval=$with_boost; 17080fi 17081# If BOOST_ROOT is set and the user has not provided a value to 17082# --with-boost, then treat BOOST_ROOT as if it the user supplied it. 17083if test x"$BOOST_ROOT" != x; then 17084 if test x"$with_boost" = x; then 17085 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5 17086$as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;} 17087 with_boost=$BOOST_ROOT 17088 else 17089 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5 17090$as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;} 17091 fi 17092fi 17093DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'" 17094boost_save_CPPFLAGS=$CPPFLAGS 17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5 17096$as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; } 17097if ${boost_cv_inc_path+:} false; then : 17098 $as_echo_n "(cached) " >&6 17099else 17100 boost_cv_inc_path=no 17101ac_ext=cpp 17102ac_cpp='$CXXCPP $CPPFLAGS' 17103ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17104ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17105ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17107/* end confdefs.h. */ 17108#include <boost/version.hpp> 17109#if !defined BOOST_VERSION 17110# error BOOST_VERSION is not defined 17111#elif BOOST_VERSION < $boost_version_req 17112# error Boost headers version < $boost_version_req 17113#endif 17114 17115int 17116main () 17117{ 17118 17119 ; 17120 return 0; 17121} 17122_ACEOF 17123 # If the user provided a value to --with-boost, use it and only it. 17124 case $with_boost in #( 17125 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \ 17126 /usr/include C:/Boost/include;; #( 17127 *) set x "$with_boost/include" "$with_boost";; 17128 esac 17129 shift 17130 for boost_dir 17131 do 17132 # Without --layout=system, Boost (or at least some versions) installs 17133 # itself in <prefix>/include/boost-<version>. This inner loop helps to 17134 # find headers in such directories. 17135 # 17136 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version 17137 # order followed by ${boost_dir}. The final '.' is a sentinel for 17138 # searching $boost_dir" itself. Entries are whitespace separated. 17139 # 17140 # I didn't indent this loop on purpose (to avoid over-indented code) 17141 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \ 17142 && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \ 17143 && echo .` 17144 for boost_inc in $boost_layout_system_search_list 17145 do 17146 if test x"$boost_inc" != x.; then 17147 boost_inc="$boost_dir/$boost_inc" 17148 else 17149 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list 17150 fi 17151 if test x"$boost_inc" != x; then 17152 # We are going to check whether the version of Boost installed 17153 # in $boost_inc is usable by running a compilation that 17154 # #includes it. But if we pass a -I/some/path in which Boost 17155 # is not installed, the compiler will just skip this -I and 17156 # use other locations (either from CPPFLAGS, or from its list 17157 # of system include directories). As a result we would use 17158 # header installed on the machine instead of the /some/path 17159 # specified by the user. So in that precise case (trying 17160 # $boost_inc), make sure the version.hpp exists. 17161 # 17162 # Use test -e as there can be symlinks. 17163 test -e "$boost_inc/boost/version.hpp" || continue 17164 CPPFLAGS="$CPPFLAGS -I$boost_inc" 17165 fi 17166 if ac_fn_cxx_try_compile "$LINENO"; then : 17167 boost_cv_inc_path=yes 17168else 17169 boost_cv_version=no 17170fi 17171rm -f core conftest.err conftest.$ac_objext 17172 if test x"$boost_cv_inc_path" = xyes; then 17173 if test x"$boost_inc" != x; then 17174 boost_cv_inc_path=$boost_inc 17175 fi 17176 break 2 17177 fi 17178 done 17179 done 17180ac_ext=c 17181ac_cpp='$CPP $CPPFLAGS' 17182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17184ac_compiler_gnu=$ac_cv_c_compiler_gnu 17185 17186fi 17187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5 17188$as_echo "$boost_cv_inc_path" >&6; } 17189 case $boost_cv_inc_path in #( 17190 no) 17191 boost_errmsg="cannot find Boost headers version >= $boost_version_req_string" 17192 as_fn_error $? "$boost_errmsg" "$LINENO" 5 17193 17194 ;;#( 17195 yes) 17196 BOOST_CPPFLAGS= 17197 ;;#( 17198 *) 17199 BOOST_CPPFLAGS="-I$boost_cv_inc_path" 17200 ;; 17201 esac 17202 if test x"$boost_cv_inc_path" != xno; then 17203 17204$as_echo "#define HAVE_BOOST 1" >>confdefs.h 17205 17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5 17207$as_echo_n "checking for Boost's header version... " >&6; } 17208if ${boost_cv_lib_version+:} false; then : 17209 $as_echo_n "(cached) " >&6 17210else 17211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17212/* end confdefs.h. */ 17213#include <boost/version.hpp> 17214boost-lib-version = BOOST_LIB_VERSION 17215_ACEOF 17216if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17217 tr -d '\r' | 17218 $SED -n -e "/^boost-lib-version = /{s///;s/\"//g;p;q;}" >conftest.i 2>&1; then : 17219 boost_cv_lib_version=`cat conftest.i` 17220fi 17221rm -rf conftest* 17222 17223fi 17224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5 17225$as_echo "$boost_cv_lib_version" >&6; } 17226 # e.g. "134" for 1_34_1 or "135" for 1_35 17227 boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'` 17228 case $boost_major_version in #( 17229 '' | *[!0-9]*) 17230 as_fn_error $? "invalid value: boost_major_version=$boost_major_version" "$LINENO" 5 17231 ;; 17232 esac 17233fi 17234CPPFLAGS=$boost_save_CPPFLAGS 17235 17236# Boost: Header-only libs 17237 17238if test x"$boost_cv_inc_path" = xno; then 17239 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/foreach.hpp" >&5 17240$as_echo "$as_me: Boost not available, not searching for boost/foreach.hpp" >&6;} 17241else 17242ac_ext=cpp 17243ac_cpp='$CXXCPP $CPPFLAGS' 17244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17247boost_save_CPPFLAGS=$CPPFLAGS 17248CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 17249ac_fn_cxx_check_header_mongrel "$LINENO" "boost/foreach.hpp" "ac_cv_header_boost_foreach_hpp" "$ac_includes_default" 17250if test "x$ac_cv_header_boost_foreach_hpp" = xyes; then : 17251 17252$as_echo "#define HAVE_BOOST_FOREACH_HPP 1" >>confdefs.h 17253 17254else 17255 as_fn_error $? "cannot find boost/foreach.hpp" "$LINENO" 5 17256fi 17257 17258 17259CPPFLAGS=$boost_save_CPPFLAGS 17260ac_ext=c 17261ac_cpp='$CPP $CPPFLAGS' 17262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17264ac_compiler_gnu=$ac_cv_c_compiler_gnu 17265fi 17266 17267 17268if test x"$boost_cv_inc_path" = xno; then 17269 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/format.hpp" >&5 17270$as_echo "$as_me: Boost not available, not searching for boost/format.hpp" >&6;} 17271else 17272ac_ext=cpp 17273ac_cpp='$CXXCPP $CPPFLAGS' 17274ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17275ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17276ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17277boost_save_CPPFLAGS=$CPPFLAGS 17278CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 17279ac_fn_cxx_check_header_mongrel "$LINENO" "boost/format.hpp" "ac_cv_header_boost_format_hpp" "$ac_includes_default" 17280if test "x$ac_cv_header_boost_format_hpp" = xyes; then : 17281 17282$as_echo "#define HAVE_BOOST_FORMAT_HPP 1" >>confdefs.h 17283 17284else 17285 as_fn_error $? "cannot find boost/format.hpp" "$LINENO" 5 17286fi 17287 17288 17289CPPFLAGS=$boost_save_CPPFLAGS 17290ac_ext=c 17291ac_cpp='$CPP $CPPFLAGS' 17292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17294ac_compiler_gnu=$ac_cv_c_compiler_gnu 17295fi 17296 17297 17298# Boost: Libs requiring linking 17299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5 17300$as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; } 17301if ${boost_cv_lib_tag+:} false; then : 17302 $as_echo_n "(cached) " >&6 17303else 17304 boost_cv_lib_tag=unknown 17305if test x$boost_cv_inc_path != xno; then 17306 ac_ext=cpp 17307ac_cpp='$CXXCPP $CPPFLAGS' 17308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17311 # The following tests are mostly inspired by boost/config/auto_link.hpp 17312 # The list is sorted to most recent/common to oldest compiler (in order 17313 # to increase the likelihood of finding the right compiler with the 17314 # least number of compilation attempt). 17315 # Beware that some tests are sensible to the order (for instance, we must 17316 # look for MinGW before looking for GCC3). 17317 # I used one compilation test per compiler with a #error to recognize 17318 # each compiler so that it works even when cross-compiling (let me know 17319 # if you know a better approach). 17320 # Known missing tags (known from Boost's tools/build/v2/tools/common.jam): 17321 # como, edg, kcc, bck, mp, sw, tru, xlc 17322 # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines 17323 # the same defines as GCC's). 17324 for i in \ 17325 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \ 17326 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \ 17327 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \ 17328 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \ 17329 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \ 17330 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \ 17331 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \ 17332 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \ 17333 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \ 17334 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \ 17335 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 17336 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \ 17337 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \ 17338 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \ 17339 "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \ 17340 "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \ 17341 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \ 17342 "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \ 17343 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \ 17344 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \ 17345 "defined __BORLANDC__ @ bcb" \ 17346 "defined __ICC && (defined __unix || defined ) @ il" \ 17347 "defined __ICL @ iw" \ 17348 "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \ 17349 "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \ 17350 "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \ 17351 "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \ 17352 "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \ 17353 "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8" 17354 do 17355 boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '` 17356 boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'` 17357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17358/* end confdefs.h. */ 17359 17360#if $boost_tag_test 17361/* OK */ 17362#else 17363# error $boost_tag_test 17364#endif 17365 17366int 17367main () 17368{ 17369 17370 ; 17371 return 0; 17372} 17373_ACEOF 17374if ac_fn_cxx_try_compile "$LINENO"; then : 17375 boost_cv_lib_tag=$boost_tag; break 17376fi 17377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17378 done 17379ac_ext=c 17380ac_cpp='$CPP $CPPFLAGS' 17381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17383ac_compiler_gnu=$ac_cv_c_compiler_gnu 17384 case $boost_cv_lib_tag in #( 17385 # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed 17386 # to "gcc41" for instance. 17387 *-gcc | *'-gcc ') :;; #( Don't re-add -gcc: it's already in there. 17388 gcc*) 17389 boost_tag_x= 17390 case $host_os in #( 17391 darwin*) 17392 if test $boost_major_version -ge 136; then 17393 # The `x' added in r46793 of Boost. 17394 boost_tag_x=x 17395 fi;; 17396 esac 17397 # We can specify multiple tags in this variable because it's used by 17398 # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ... 17399 boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc" 17400 ;; #( 17401 unknown) 17402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5 17403$as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;} 17404 boost_cv_lib_tag= 17405 ;; 17406 esac 17407fi 17408fi 17409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5 17410$as_echo "$boost_cv_lib_tag" >&6; } 17411# Check whether --enable-static-boost was given. 17412if test "${enable_static_boost+set}" = set; then : 17413 enableval=$enable_static_boost; enable_static_boost=yes 17414else 17415 enable_static_boost=no 17416fi 17417 17418# Check whether we do better use `mt' even though we weren't ask to. 17419cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17420/* end confdefs.h. */ 17421 17422#if defined _REENTRANT || defined _MT || defined __MT__ 17423/* use -mt */ 17424#else 17425# error MT not needed 17426#endif 17427 17428int 17429main () 17430{ 17431 17432 ; 17433 return 0; 17434} 17435_ACEOF 17436if ac_fn_c_try_compile "$LINENO"; then : 17437 boost_guess_use_mt=: 17438else 17439 boost_guess_use_mt=false 17440fi 17441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17442 17443if test x"$boost_cv_inc_path" = xno; then 17444 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost date_time library" >&5 17445$as_echo "$as_me: Boost not available, not searching for the Boost date_time library" >&6;} 17446else 17447ac_ext=cpp 17448ac_cpp='$CXXCPP $CPPFLAGS' 17449ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17450ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17451ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17452if test x"$boost_cv_inc_path" = xno; then 17453 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/date_time/posix_time/posix_time.hpp" >&5 17454$as_echo "$as_me: Boost not available, not searching for boost/date_time/posix_time/posix_time.hpp" >&6;} 17455else 17456ac_ext=cpp 17457ac_cpp='$CXXCPP $CPPFLAGS' 17458ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17459ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17460ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17461boost_save_CPPFLAGS=$CPPFLAGS 17462CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 17463ac_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" 17464if test "x$ac_cv_header_boost_date_time_posix_time_posix_time_hpp" = xyes; then : 17465 17466$as_echo "#define HAVE_BOOST_DATE_TIME_POSIX_TIME_POSIX_TIME_HPP 1" >>confdefs.h 17467 17468else 17469 as_fn_error $? "cannot find boost/date_time/posix_time/posix_time.hpp" "$LINENO" 5 17470fi 17471 17472 17473CPPFLAGS=$boost_save_CPPFLAGS 17474ac_ext=cpp 17475ac_cpp='$CXXCPP $CPPFLAGS' 17476ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17477ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17478ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17479fi 17480 17481boost_save_CPPFLAGS=$CPPFLAGS 17482CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 17483# Now let's try to find the library. The algorithm is as follows: first look 17484# for a given library name according to the user's PREFERRED-RT-OPT. For each 17485# library name, we prefer to use the ones that carry the tag (toolset name). 17486# Each library is searched through the various standard paths were Boost is 17487# usually installed. If we can't find the standard variants, we try to 17488# enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist 17489# but there's -obviously- libboost_threads-mt.dylib). 17490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost date_time library" >&5 17491$as_echo_n "checking for the Boost date_time library... " >&6; } 17492if ${boost_cv_lib_date_time+:} false; then : 17493 $as_echo_n "(cached) " >&6 17494else 17495 boost_cv_lib_date_time=no 17496 case "" in #( 17497 mt | mt-) boost_mt=-mt; boost_rtopt=;; #( 17498 mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #( 17499 *) boost_mt=; boost_rtopt=;; 17500 esac 17501 if test $enable_static_boost = yes; then 17502 boost_rtopt="s$boost_rtopt" 17503 fi 17504 # Find the proper debug variant depending on what we've been asked to find. 17505 case $boost_rtopt in #( 17506 *d*) boost_rt_d=$boost_rtopt;; #( 17507 *[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn') 17508 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #( 17509 *) boost_rt_d='-d';; 17510 esac 17511 # If the PREFERRED-RT-OPT are not empty, prepend a `-'. 17512 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt" 17513 $boost_guess_use_mt && boost_mt=-mt 17514 # Look for the abs path the static archive. 17515 # $libext is computed by Libtool but let's make sure it's non empty. 17516 test -z "$libext" && 17517 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5 17518 boost_save_ac_objext=$ac_objext 17519 # Generate the test file. 17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17521/* end confdefs.h. */ 17522#include <boost/date_time/posix_time/posix_time.hpp> 17523 17524int 17525main () 17526{ 17527boost::posix_time::ptime t; 17528 ; 17529 return 0; 17530} 17531_ACEOF 17532 if ac_fn_cxx_try_compile "$LINENO"; then : 17533 ac_objext=do_not_rm_me_plz 17534else 17535 as_fn_error $? "cannot compile a test that uses Boost date_time" "$LINENO" 5 17536fi 17537rm -f core conftest.err conftest.$ac_objext 17538 ac_objext=$boost_save_ac_objext 17539 boost_failed_libs= 17540# Don't bother to ident the 6 nested for loops, only the 2 innermost ones 17541# matter. 17542for boost_tag_ in -$boost_cv_lib_tag ''; do 17543for boost_ver_ in -$boost_cv_lib_version ''; do 17544for boost_mt_ in $boost_mt -mt ''; do 17545for boost_rtopt_ in $boost_rtopt '' -d; do 17546 for boost_lib in \ 17547 boost_date_time$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \ 17548 boost_date_time$boost_tag_$boost_rtopt_$boost_ver_ \ 17549 boost_date_time$boost_tag_$boost_mt_$boost_ver_ \ 17550 boost_date_time$boost_tag_$boost_ver_ 17551 do 17552 # Avoid testing twice the same lib 17553 case $boost_failed_libs in #( 17554 *@$boost_lib@*) continue;; 17555 esac 17556 # If with_boost is empty, we'll search in /lib first, which is not quite 17557 # right so instead we'll try to a location based on where the headers are. 17558 boost_tmp_lib=$with_boost 17559 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} 17560 for boost_ldpath in "$boost_tmp_lib/lib" '' \ 17561 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \ 17562 "$with_boost" C:/Boost/lib /lib* 17563 do 17564 test -e "$boost_ldpath" || continue 17565 boost_save_LDFLAGS=$LDFLAGS 17566 # Are we looking for a static library? 17567 case $boost_ldpath:$boost_rtopt_ in #( 17568 *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) 17569 boost_cv_lib_date_time_LIBS="$boost_ldpath/lib$boost_lib.$libext" 17570 test -e "$boost_cv_lib_date_time_LIBS" || continue;; #( 17571 *) # No: use -lboost_foo to find the shared library. 17572 boost_cv_lib_date_time_LIBS="-l$boost_lib";; 17573 esac 17574 boost_save_LIBS=$LIBS 17575 LIBS="$boost_cv_lib_date_time_LIBS $LIBS" 17576 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath" 17577 rm -f conftest$ac_exeext 17578boost_save_ac_ext=$ac_ext 17579boost_use_source=: 17580# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 17581# tries to link the existing object file instead of compiling from source. 17582test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 17583 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 17584if { { ac_try="$ac_link" 17585case "(($ac_try" in 17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17587 *) ac_try_echo=$ac_try;; 17588esac 17589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17590$as_echo "$ac_try_echo"; } >&5 17591 (eval "$ac_link") 2>conftest.err 17592 ac_status=$? 17593 if test -s conftest.err; then 17594 grep -v '^ *+' conftest.err >conftest.er1 17595 cat conftest.er1 >&5 17596 mv -f conftest.er1 conftest.err 17597 fi 17598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17599 test $ac_status = 0; } && { 17600 test -z "$ac_cxx_werror_flag" || 17601 test ! -s conftest.err 17602 } && test -s conftest$ac_exeext && { 17603 test "$cross_compiling" = yes || 17604 $as_executable_p conftest$ac_exeext 17605 }; then : 17606 boost_cv_lib_date_time=yes 17607else 17608 if $boost_use_source; then 17609 $as_echo "$as_me: failed program was:" >&5 17610sed 's/^/| /' conftest.$ac_ext >&5 17611 17612 fi 17613 boost_cv_lib_date_time=no 17614fi 17615ac_objext=$boost_save_ac_objext 17616ac_ext=$boost_save_ac_ext 17617rm -f core conftest.err conftest_ipa8_conftest.oo \ 17618 conftest$ac_exeext 17619 ac_objext=$boost_save_ac_objext 17620 LDFLAGS=$boost_save_LDFLAGS 17621 LIBS=$boost_save_LIBS 17622 if test x"$boost_cv_lib_date_time" = xyes; then 17623 # Check or used cached result of whether or not using -R or -rpath makes sense. 17624 # Some implementations of ld, such as for Mac OSX, require -rpath but 17625 # -R is the flag known to work on other systems. 17626 # https://github.com/tsuna/boost.m4/issues/19 17627 if ${boost_cv_rpath_link_ldflag+:} false; then : 17628 $as_echo_n "(cached) " >&6 17629else 17630 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do 17631 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 17632 LIBS="$boost_save_LIBS $boost_cv_lib_date_time_LIBS" 17633 rm -f conftest$ac_exeext 17634boost_save_ac_ext=$ac_ext 17635boost_use_source=: 17636# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 17637# tries to link the existing object file instead of compiling from source. 17638test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 17639 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 17640if { { ac_try="$ac_link" 17641case "(($ac_try" in 17642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17643 *) ac_try_echo=$ac_try;; 17644esac 17645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17646$as_echo "$ac_try_echo"; } >&5 17647 (eval "$ac_link") 2>conftest.err 17648 ac_status=$? 17649 if test -s conftest.err; then 17650 grep -v '^ *+' conftest.err >conftest.er1 17651 cat conftest.er1 >&5 17652 mv -f conftest.er1 conftest.err 17653 fi 17654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17655 test $ac_status = 0; } && { 17656 test -z "$ac_cxx_werror_flag" || 17657 test ! -s conftest.err 17658 } && test -s conftest$ac_exeext && { 17659 test "$cross_compiling" = yes || 17660 $as_executable_p conftest$ac_exeext 17661 }; then : 17662 boost_rpath_link_ldflag_found=yes 17663 break 17664else 17665 if $boost_use_source; then 17666 $as_echo "$as_me: failed program was:" >&5 17667sed 's/^/| /' conftest.$ac_ext >&5 17668 17669 fi 17670 boost_rpath_link_ldflag_found=no 17671fi 17672ac_objext=$boost_save_ac_objext 17673ac_ext=$boost_save_ac_ext 17674rm -f core conftest.err conftest_ipa8_conftest.oo \ 17675 conftest$ac_exeext 17676 done 17677 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then : 17678 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5 17679fi 17680 LDFLAGS=$boost_save_LDFLAGS 17681 LIBS=$boost_save_LIBS 17682 17683fi 17684 17685 boost_cv_lib_date_time_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 17686 boost_cv_lib_date_time_LDPATH="$boost_ldpath" 17687 break 6 17688 else 17689 boost_failed_libs="$boost_failed_libs@$boost_lib@" 17690 fi 17691 done 17692 done 17693done 17694done 17695done 17696done 17697rm -f conftest.$ac_objext 17698 17699fi 17700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_date_time" >&5 17701$as_echo "$boost_cv_lib_date_time" >&6; } 17702case $boost_cv_lib_date_time in #( 17703 no) $as_echo "$as_me: failed program was:" >&5 17704sed 's/^/| /' conftest.$ac_ext >&5 17705 17706 as_fn_error $? "cannot find the flags to link with Boost date_time" "$LINENO" 5 17707 ;; 17708esac 17709BOOST_DATE_TIME_LDFLAGS=$boost_cv_lib_date_time_LDFLAGS 17710BOOST_DATE_TIME_LDPATH=$boost_cv_lib_date_time_LDPATH 17711BOOST_LDPATH=$boost_cv_lib_date_time_LDPATH 17712BOOST_DATE_TIME_LIBS=$boost_cv_lib_date_time_LIBS 17713CPPFLAGS=$boost_save_CPPFLAGS 17714ac_ext=c 17715ac_cpp='$CPP $CPPFLAGS' 17716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17718ac_compiler_gnu=$ac_cv_c_compiler_gnu 17719fi 17720 17721 17722 17723if test x"$boost_cv_inc_path" = xno; then 17724 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost program_options library" >&5 17725$as_echo "$as_me: Boost not available, not searching for the Boost program_options library" >&6;} 17726else 17727ac_ext=cpp 17728ac_cpp='$CXXCPP $CPPFLAGS' 17729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17732if test x"$boost_cv_inc_path" = xno; then 17733 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/program_options.hpp" >&5 17734$as_echo "$as_me: Boost not available, not searching for boost/program_options.hpp" >&6;} 17735else 17736ac_ext=cpp 17737ac_cpp='$CXXCPP $CPPFLAGS' 17738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17741boost_save_CPPFLAGS=$CPPFLAGS 17742CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 17743ac_fn_cxx_check_header_mongrel "$LINENO" "boost/program_options.hpp" "ac_cv_header_boost_program_options_hpp" "$ac_includes_default" 17744if test "x$ac_cv_header_boost_program_options_hpp" = xyes; then : 17745 17746$as_echo "#define HAVE_BOOST_PROGRAM_OPTIONS_HPP 1" >>confdefs.h 17747 17748else 17749 as_fn_error $? "cannot find boost/program_options.hpp" "$LINENO" 5 17750fi 17751 17752 17753CPPFLAGS=$boost_save_CPPFLAGS 17754ac_ext=cpp 17755ac_cpp='$CXXCPP $CPPFLAGS' 17756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17759fi 17760 17761boost_save_CPPFLAGS=$CPPFLAGS 17762CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 17763# Now let's try to find the library. The algorithm is as follows: first look 17764# for a given library name according to the user's PREFERRED-RT-OPT. For each 17765# library name, we prefer to use the ones that carry the tag (toolset name). 17766# Each library is searched through the various standard paths were Boost is 17767# usually installed. If we can't find the standard variants, we try to 17768# enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist 17769# but there's -obviously- libboost_threads-mt.dylib). 17770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost program_options library" >&5 17771$as_echo_n "checking for the Boost program_options library... " >&6; } 17772if ${boost_cv_lib_program_options+:} false; then : 17773 $as_echo_n "(cached) " >&6 17774else 17775 boost_cv_lib_program_options=no 17776 case "" in #( 17777 mt | mt-) boost_mt=-mt; boost_rtopt=;; #( 17778 mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #( 17779 *) boost_mt=; boost_rtopt=;; 17780 esac 17781 if test $enable_static_boost = yes; then 17782 boost_rtopt="s$boost_rtopt" 17783 fi 17784 # Find the proper debug variant depending on what we've been asked to find. 17785 case $boost_rtopt in #( 17786 *d*) boost_rt_d=$boost_rtopt;; #( 17787 *[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn') 17788 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #( 17789 *) boost_rt_d='-d';; 17790 esac 17791 # If the PREFERRED-RT-OPT are not empty, prepend a `-'. 17792 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt" 17793 $boost_guess_use_mt && boost_mt=-mt 17794 # Look for the abs path the static archive. 17795 # $libext is computed by Libtool but let's make sure it's non empty. 17796 test -z "$libext" && 17797 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5 17798 boost_save_ac_objext=$ac_objext 17799 # Generate the test file. 17800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17801/* end confdefs.h. */ 17802#include <boost/program_options.hpp> 17803 17804int 17805main () 17806{ 17807boost::program_options::options_description d("test"); 17808 ; 17809 return 0; 17810} 17811_ACEOF 17812 if ac_fn_cxx_try_compile "$LINENO"; then : 17813 ac_objext=do_not_rm_me_plz 17814else 17815 as_fn_error $? "cannot compile a test that uses Boost program_options" "$LINENO" 5 17816fi 17817rm -f core conftest.err conftest.$ac_objext 17818 ac_objext=$boost_save_ac_objext 17819 boost_failed_libs= 17820# Don't bother to ident the 6 nested for loops, only the 2 innermost ones 17821# matter. 17822for boost_tag_ in -$boost_cv_lib_tag ''; do 17823for boost_ver_ in -$boost_cv_lib_version ''; do 17824for boost_mt_ in $boost_mt -mt ''; do 17825for boost_rtopt_ in $boost_rtopt '' -d; do 17826 for boost_lib in \ 17827 boost_program_options$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \ 17828 boost_program_options$boost_tag_$boost_rtopt_$boost_ver_ \ 17829 boost_program_options$boost_tag_$boost_mt_$boost_ver_ \ 17830 boost_program_options$boost_tag_$boost_ver_ 17831 do 17832 # Avoid testing twice the same lib 17833 case $boost_failed_libs in #( 17834 *@$boost_lib@*) continue;; 17835 esac 17836 # If with_boost is empty, we'll search in /lib first, which is not quite 17837 # right so instead we'll try to a location based on where the headers are. 17838 boost_tmp_lib=$with_boost 17839 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} 17840 for boost_ldpath in "$boost_tmp_lib/lib" '' \ 17841 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \ 17842 "$with_boost" C:/Boost/lib /lib* 17843 do 17844 test -e "$boost_ldpath" || continue 17845 boost_save_LDFLAGS=$LDFLAGS 17846 # Are we looking for a static library? 17847 case $boost_ldpath:$boost_rtopt_ in #( 17848 *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) 17849 boost_cv_lib_program_options_LIBS="$boost_ldpath/lib$boost_lib.$libext" 17850 test -e "$boost_cv_lib_program_options_LIBS" || continue;; #( 17851 *) # No: use -lboost_foo to find the shared library. 17852 boost_cv_lib_program_options_LIBS="-l$boost_lib";; 17853 esac 17854 boost_save_LIBS=$LIBS 17855 LIBS="$boost_cv_lib_program_options_LIBS $LIBS" 17856 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath" 17857 rm -f conftest$ac_exeext 17858boost_save_ac_ext=$ac_ext 17859boost_use_source=: 17860# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 17861# tries to link the existing object file instead of compiling from source. 17862test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 17863 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 17864if { { ac_try="$ac_link" 17865case "(($ac_try" in 17866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17867 *) ac_try_echo=$ac_try;; 17868esac 17869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17870$as_echo "$ac_try_echo"; } >&5 17871 (eval "$ac_link") 2>conftest.err 17872 ac_status=$? 17873 if test -s conftest.err; then 17874 grep -v '^ *+' conftest.err >conftest.er1 17875 cat conftest.er1 >&5 17876 mv -f conftest.er1 conftest.err 17877 fi 17878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17879 test $ac_status = 0; } && { 17880 test -z "$ac_cxx_werror_flag" || 17881 test ! -s conftest.err 17882 } && test -s conftest$ac_exeext && { 17883 test "$cross_compiling" = yes || 17884 $as_executable_p conftest$ac_exeext 17885 }; then : 17886 boost_cv_lib_program_options=yes 17887else 17888 if $boost_use_source; then 17889 $as_echo "$as_me: failed program was:" >&5 17890sed 's/^/| /' conftest.$ac_ext >&5 17891 17892 fi 17893 boost_cv_lib_program_options=no 17894fi 17895ac_objext=$boost_save_ac_objext 17896ac_ext=$boost_save_ac_ext 17897rm -f core conftest.err conftest_ipa8_conftest.oo \ 17898 conftest$ac_exeext 17899 ac_objext=$boost_save_ac_objext 17900 LDFLAGS=$boost_save_LDFLAGS 17901 LIBS=$boost_save_LIBS 17902 if test x"$boost_cv_lib_program_options" = xyes; then 17903 # Check or used cached result of whether or not using -R or -rpath makes sense. 17904 # Some implementations of ld, such as for Mac OSX, require -rpath but 17905 # -R is the flag known to work on other systems. 17906 # https://github.com/tsuna/boost.m4/issues/19 17907 if ${boost_cv_rpath_link_ldflag+:} false; then : 17908 $as_echo_n "(cached) " >&6 17909else 17910 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do 17911 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 17912 LIBS="$boost_save_LIBS $boost_cv_lib_program_options_LIBS" 17913 rm -f conftest$ac_exeext 17914boost_save_ac_ext=$ac_ext 17915boost_use_source=: 17916# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 17917# tries to link the existing object file instead of compiling from source. 17918test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 17919 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 17920if { { ac_try="$ac_link" 17921case "(($ac_try" in 17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17923 *) ac_try_echo=$ac_try;; 17924esac 17925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17926$as_echo "$ac_try_echo"; } >&5 17927 (eval "$ac_link") 2>conftest.err 17928 ac_status=$? 17929 if test -s conftest.err; then 17930 grep -v '^ *+' conftest.err >conftest.er1 17931 cat conftest.er1 >&5 17932 mv -f conftest.er1 conftest.err 17933 fi 17934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17935 test $ac_status = 0; } && { 17936 test -z "$ac_cxx_werror_flag" || 17937 test ! -s conftest.err 17938 } && test -s conftest$ac_exeext && { 17939 test "$cross_compiling" = yes || 17940 $as_executable_p conftest$ac_exeext 17941 }; then : 17942 boost_rpath_link_ldflag_found=yes 17943 break 17944else 17945 if $boost_use_source; then 17946 $as_echo "$as_me: failed program was:" >&5 17947sed 's/^/| /' conftest.$ac_ext >&5 17948 17949 fi 17950 boost_rpath_link_ldflag_found=no 17951fi 17952ac_objext=$boost_save_ac_objext 17953ac_ext=$boost_save_ac_ext 17954rm -f core conftest.err conftest_ipa8_conftest.oo \ 17955 conftest$ac_exeext 17956 done 17957 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then : 17958 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5 17959fi 17960 LDFLAGS=$boost_save_LDFLAGS 17961 LIBS=$boost_save_LIBS 17962 17963fi 17964 17965 boost_cv_lib_program_options_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 17966 boost_cv_lib_program_options_LDPATH="$boost_ldpath" 17967 break 6 17968 else 17969 boost_failed_libs="$boost_failed_libs@$boost_lib@" 17970 fi 17971 done 17972 done 17973done 17974done 17975done 17976done 17977rm -f conftest.$ac_objext 17978 17979fi 17980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_program_options" >&5 17981$as_echo "$boost_cv_lib_program_options" >&6; } 17982case $boost_cv_lib_program_options in #( 17983 no) $as_echo "$as_me: failed program was:" >&5 17984sed 's/^/| /' conftest.$ac_ext >&5 17985 17986 as_fn_error $? "cannot find the flags to link with Boost program_options" "$LINENO" 5 17987 ;; 17988esac 17989BOOST_PROGRAM_OPTIONS_LDFLAGS=$boost_cv_lib_program_options_LDFLAGS 17990BOOST_PROGRAM_OPTIONS_LDPATH=$boost_cv_lib_program_options_LDPATH 17991BOOST_LDPATH=$boost_cv_lib_program_options_LDPATH 17992BOOST_PROGRAM_OPTIONS_LIBS=$boost_cv_lib_program_options_LIBS 17993CPPFLAGS=$boost_save_CPPFLAGS 17994ac_ext=c 17995ac_cpp='$CPP $CPPFLAGS' 17996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17998ac_compiler_gnu=$ac_cv_c_compiler_gnu 17999fi 18000 18001 18002 18003if test x"$boost_cv_inc_path" = xno; then 18004 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost iostreams library" >&5 18005$as_echo "$as_me: Boost not available, not searching for the Boost iostreams library" >&6;} 18006else 18007ac_ext=cpp 18008ac_cpp='$CXXCPP $CPPFLAGS' 18009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18012if test x"$boost_cv_inc_path" = xno; then 18013 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/iostreams/device/file_descriptor.hpp" >&5 18014$as_echo "$as_me: Boost not available, not searching for boost/iostreams/device/file_descriptor.hpp" >&6;} 18015else 18016ac_ext=cpp 18017ac_cpp='$CXXCPP $CPPFLAGS' 18018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18021boost_save_CPPFLAGS=$CPPFLAGS 18022CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 18023ac_fn_cxx_check_header_mongrel "$LINENO" "boost/iostreams/device/file_descriptor.hpp" "ac_cv_header_boost_iostreams_device_file_descriptor_hpp" "$ac_includes_default" 18024if test "x$ac_cv_header_boost_iostreams_device_file_descriptor_hpp" = xyes; then : 18025 18026$as_echo "#define HAVE_BOOST_IOSTREAMS_DEVICE_FILE_DESCRIPTOR_HPP 1" >>confdefs.h 18027 18028else 18029 as_fn_error $? "cannot find boost/iostreams/device/file_descriptor.hpp" "$LINENO" 5 18030fi 18031 18032 18033CPPFLAGS=$boost_save_CPPFLAGS 18034ac_ext=cpp 18035ac_cpp='$CXXCPP $CPPFLAGS' 18036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18039fi 18040 18041boost_save_CPPFLAGS=$CPPFLAGS 18042CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 18043# Now let's try to find the library. The algorithm is as follows: first look 18044# for a given library name according to the user's PREFERRED-RT-OPT. For each 18045# library name, we prefer to use the ones that carry the tag (toolset name). 18046# Each library is searched through the various standard paths were Boost is 18047# usually installed. If we can't find the standard variants, we try to 18048# enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist 18049# but there's -obviously- libboost_threads-mt.dylib). 18050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost iostreams library" >&5 18051$as_echo_n "checking for the Boost iostreams library... " >&6; } 18052if ${boost_cv_lib_iostreams+:} false; then : 18053 $as_echo_n "(cached) " >&6 18054else 18055 boost_cv_lib_iostreams=no 18056 case "" in #( 18057 mt | mt-) boost_mt=-mt; boost_rtopt=;; #( 18058 mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #( 18059 *) boost_mt=; boost_rtopt=;; 18060 esac 18061 if test $enable_static_boost = yes; then 18062 boost_rtopt="s$boost_rtopt" 18063 fi 18064 # Find the proper debug variant depending on what we've been asked to find. 18065 case $boost_rtopt in #( 18066 *d*) boost_rt_d=$boost_rtopt;; #( 18067 *[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn') 18068 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #( 18069 *) boost_rt_d='-d';; 18070 esac 18071 # If the PREFERRED-RT-OPT are not empty, prepend a `-'. 18072 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt" 18073 $boost_guess_use_mt && boost_mt=-mt 18074 # Look for the abs path the static archive. 18075 # $libext is computed by Libtool but let's make sure it's non empty. 18076 test -z "$libext" && 18077 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5 18078 boost_save_ac_objext=$ac_objext 18079 # Generate the test file. 18080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18081/* end confdefs.h. */ 18082#include <boost/iostreams/device/file_descriptor.hpp> 18083 18084int 18085main () 18086{ 18087boost::iostreams::file_descriptor fd; fd.close(); 18088 ; 18089 return 0; 18090} 18091_ACEOF 18092 if ac_fn_cxx_try_compile "$LINENO"; then : 18093 ac_objext=do_not_rm_me_plz 18094else 18095 as_fn_error $? "cannot compile a test that uses Boost iostreams" "$LINENO" 5 18096fi 18097rm -f core conftest.err conftest.$ac_objext 18098 ac_objext=$boost_save_ac_objext 18099 boost_failed_libs= 18100# Don't bother to ident the 6 nested for loops, only the 2 innermost ones 18101# matter. 18102for boost_tag_ in -$boost_cv_lib_tag ''; do 18103for boost_ver_ in -$boost_cv_lib_version ''; do 18104for boost_mt_ in $boost_mt -mt ''; do 18105for boost_rtopt_ in $boost_rtopt '' -d; do 18106 for boost_lib in \ 18107 boost_iostreams$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \ 18108 boost_iostreams$boost_tag_$boost_rtopt_$boost_ver_ \ 18109 boost_iostreams$boost_tag_$boost_mt_$boost_ver_ \ 18110 boost_iostreams$boost_tag_$boost_ver_ 18111 do 18112 # Avoid testing twice the same lib 18113 case $boost_failed_libs in #( 18114 *@$boost_lib@*) continue;; 18115 esac 18116 # If with_boost is empty, we'll search in /lib first, which is not quite 18117 # right so instead we'll try to a location based on where the headers are. 18118 boost_tmp_lib=$with_boost 18119 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} 18120 for boost_ldpath in "$boost_tmp_lib/lib" '' \ 18121 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \ 18122 "$with_boost" C:/Boost/lib /lib* 18123 do 18124 test -e "$boost_ldpath" || continue 18125 boost_save_LDFLAGS=$LDFLAGS 18126 # Are we looking for a static library? 18127 case $boost_ldpath:$boost_rtopt_ in #( 18128 *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) 18129 boost_cv_lib_iostreams_LIBS="$boost_ldpath/lib$boost_lib.$libext" 18130 test -e "$boost_cv_lib_iostreams_LIBS" || continue;; #( 18131 *) # No: use -lboost_foo to find the shared library. 18132 boost_cv_lib_iostreams_LIBS="-l$boost_lib";; 18133 esac 18134 boost_save_LIBS=$LIBS 18135 LIBS="$boost_cv_lib_iostreams_LIBS $LIBS" 18136 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath" 18137 rm -f conftest$ac_exeext 18138boost_save_ac_ext=$ac_ext 18139boost_use_source=: 18140# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 18141# tries to link the existing object file instead of compiling from source. 18142test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 18143 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 18144if { { ac_try="$ac_link" 18145case "(($ac_try" in 18146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18147 *) ac_try_echo=$ac_try;; 18148esac 18149eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18150$as_echo "$ac_try_echo"; } >&5 18151 (eval "$ac_link") 2>conftest.err 18152 ac_status=$? 18153 if test -s conftest.err; then 18154 grep -v '^ *+' conftest.err >conftest.er1 18155 cat conftest.er1 >&5 18156 mv -f conftest.er1 conftest.err 18157 fi 18158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18159 test $ac_status = 0; } && { 18160 test -z "$ac_cxx_werror_flag" || 18161 test ! -s conftest.err 18162 } && test -s conftest$ac_exeext && { 18163 test "$cross_compiling" = yes || 18164 $as_executable_p conftest$ac_exeext 18165 }; then : 18166 boost_cv_lib_iostreams=yes 18167else 18168 if $boost_use_source; then 18169 $as_echo "$as_me: failed program was:" >&5 18170sed 's/^/| /' conftest.$ac_ext >&5 18171 18172 fi 18173 boost_cv_lib_iostreams=no 18174fi 18175ac_objext=$boost_save_ac_objext 18176ac_ext=$boost_save_ac_ext 18177rm -f core conftest.err conftest_ipa8_conftest.oo \ 18178 conftest$ac_exeext 18179 ac_objext=$boost_save_ac_objext 18180 LDFLAGS=$boost_save_LDFLAGS 18181 LIBS=$boost_save_LIBS 18182 if test x"$boost_cv_lib_iostreams" = xyes; then 18183 # Check or used cached result of whether or not using -R or -rpath makes sense. 18184 # Some implementations of ld, such as for Mac OSX, require -rpath but 18185 # -R is the flag known to work on other systems. 18186 # https://github.com/tsuna/boost.m4/issues/19 18187 if ${boost_cv_rpath_link_ldflag+:} false; then : 18188 $as_echo_n "(cached) " >&6 18189else 18190 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do 18191 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 18192 LIBS="$boost_save_LIBS $boost_cv_lib_iostreams_LIBS" 18193 rm -f conftest$ac_exeext 18194boost_save_ac_ext=$ac_ext 18195boost_use_source=: 18196# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 18197# tries to link the existing object file instead of compiling from source. 18198test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 18199 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 18200if { { ac_try="$ac_link" 18201case "(($ac_try" in 18202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18203 *) ac_try_echo=$ac_try;; 18204esac 18205eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18206$as_echo "$ac_try_echo"; } >&5 18207 (eval "$ac_link") 2>conftest.err 18208 ac_status=$? 18209 if test -s conftest.err; then 18210 grep -v '^ *+' conftest.err >conftest.er1 18211 cat conftest.er1 >&5 18212 mv -f conftest.er1 conftest.err 18213 fi 18214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18215 test $ac_status = 0; } && { 18216 test -z "$ac_cxx_werror_flag" || 18217 test ! -s conftest.err 18218 } && test -s conftest$ac_exeext && { 18219 test "$cross_compiling" = yes || 18220 $as_executable_p conftest$ac_exeext 18221 }; then : 18222 boost_rpath_link_ldflag_found=yes 18223 break 18224else 18225 if $boost_use_source; then 18226 $as_echo "$as_me: failed program was:" >&5 18227sed 's/^/| /' conftest.$ac_ext >&5 18228 18229 fi 18230 boost_rpath_link_ldflag_found=no 18231fi 18232ac_objext=$boost_save_ac_objext 18233ac_ext=$boost_save_ac_ext 18234rm -f core conftest.err conftest_ipa8_conftest.oo \ 18235 conftest$ac_exeext 18236 done 18237 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then : 18238 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5 18239fi 18240 LDFLAGS=$boost_save_LDFLAGS 18241 LIBS=$boost_save_LIBS 18242 18243fi 18244 18245 boost_cv_lib_iostreams_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 18246 boost_cv_lib_iostreams_LDPATH="$boost_ldpath" 18247 break 6 18248 else 18249 boost_failed_libs="$boost_failed_libs@$boost_lib@" 18250 fi 18251 done 18252 done 18253done 18254done 18255done 18256done 18257rm -f conftest.$ac_objext 18258 18259fi 18260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_iostreams" >&5 18261$as_echo "$boost_cv_lib_iostreams" >&6; } 18262case $boost_cv_lib_iostreams in #( 18263 no) $as_echo "$as_me: failed program was:" >&5 18264sed 's/^/| /' conftest.$ac_ext >&5 18265 18266 as_fn_error $? "cannot find the flags to link with Boost iostreams" "$LINENO" 5 18267 ;; 18268esac 18269BOOST_IOSTREAMS_LDFLAGS=$boost_cv_lib_iostreams_LDFLAGS 18270BOOST_IOSTREAMS_LDPATH=$boost_cv_lib_iostreams_LDPATH 18271BOOST_LDPATH=$boost_cv_lib_iostreams_LDPATH 18272BOOST_IOSTREAMS_LIBS=$boost_cv_lib_iostreams_LIBS 18273CPPFLAGS=$boost_save_CPPFLAGS 18274ac_ext=c 18275ac_cpp='$CPP $CPPFLAGS' 18276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18278ac_compiler_gnu=$ac_cv_c_compiler_gnu 18279fi 18280 18281 18282 18283# Do we have to check for Boost.System? This link-time dependency was 18284# added as of 1.35.0. If we have a version <1.35, we must not attempt to 18285# find Boost.System as it didn't exist by then. 18286if test $boost_major_version -ge 135; then 18287if test x"$boost_cv_inc_path" = xno; then 18288 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5 18289$as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;} 18290else 18291ac_ext=cpp 18292ac_cpp='$CXXCPP $CPPFLAGS' 18293ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18294ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18295ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18296if test x"$boost_cv_inc_path" = xno; then 18297 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5 18298$as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;} 18299else 18300ac_ext=cpp 18301ac_cpp='$CXXCPP $CPPFLAGS' 18302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18305boost_save_CPPFLAGS=$CPPFLAGS 18306CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 18307ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default" 18308if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes; then : 18309 18310$as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h 18311 18312else 18313 as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5 18314fi 18315 18316 18317CPPFLAGS=$boost_save_CPPFLAGS 18318ac_ext=cpp 18319ac_cpp='$CXXCPP $CPPFLAGS' 18320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18323fi 18324 18325boost_save_CPPFLAGS=$CPPFLAGS 18326CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 18327# Now let's try to find the library. The algorithm is as follows: first look 18328# for a given library name according to the user's PREFERRED-RT-OPT. For each 18329# library name, we prefer to use the ones that carry the tag (toolset name). 18330# Each library is searched through the various standard paths were Boost is 18331# usually installed. If we can't find the standard variants, we try to 18332# enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist 18333# but there's -obviously- libboost_threads-mt.dylib). 18334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5 18335$as_echo_n "checking for the Boost system library... " >&6; } 18336if ${boost_cv_lib_system+:} false; then : 18337 $as_echo_n "(cached) " >&6 18338else 18339 boost_cv_lib_system=no 18340 case "" in #( 18341 mt | mt-) boost_mt=-mt; boost_rtopt=;; #( 18342 mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #( 18343 *) boost_mt=; boost_rtopt=;; 18344 esac 18345 if test $enable_static_boost = yes; then 18346 boost_rtopt="s$boost_rtopt" 18347 fi 18348 # Find the proper debug variant depending on what we've been asked to find. 18349 case $boost_rtopt in #( 18350 *d*) boost_rt_d=$boost_rtopt;; #( 18351 *[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn') 18352 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #( 18353 *) boost_rt_d='-d';; 18354 esac 18355 # If the PREFERRED-RT-OPT are not empty, prepend a `-'. 18356 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt" 18357 $boost_guess_use_mt && boost_mt=-mt 18358 # Look for the abs path the static archive. 18359 # $libext is computed by Libtool but let's make sure it's non empty. 18360 test -z "$libext" && 18361 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5 18362 boost_save_ac_objext=$ac_objext 18363 # Generate the test file. 18364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18365/* end confdefs.h. */ 18366#include <boost/system/error_code.hpp> 18367 18368int 18369main () 18370{ 18371boost::system::error_code e; e.clear(); 18372 ; 18373 return 0; 18374} 18375_ACEOF 18376 if ac_fn_cxx_try_compile "$LINENO"; then : 18377 ac_objext=do_not_rm_me_plz 18378else 18379 as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5 18380fi 18381rm -f core conftest.err conftest.$ac_objext 18382 ac_objext=$boost_save_ac_objext 18383 boost_failed_libs= 18384# Don't bother to ident the 6 nested for loops, only the 2 innermost ones 18385# matter. 18386for boost_tag_ in -$boost_cv_lib_tag ''; do 18387for boost_ver_ in -$boost_cv_lib_version ''; do 18388for boost_mt_ in $boost_mt -mt ''; do 18389for boost_rtopt_ in $boost_rtopt '' -d; do 18390 for boost_lib in \ 18391 boost_system$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \ 18392 boost_system$boost_tag_$boost_rtopt_$boost_ver_ \ 18393 boost_system$boost_tag_$boost_mt_$boost_ver_ \ 18394 boost_system$boost_tag_$boost_ver_ 18395 do 18396 # Avoid testing twice the same lib 18397 case $boost_failed_libs in #( 18398 *@$boost_lib@*) continue;; 18399 esac 18400 # If with_boost is empty, we'll search in /lib first, which is not quite 18401 # right so instead we'll try to a location based on where the headers are. 18402 boost_tmp_lib=$with_boost 18403 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} 18404 for boost_ldpath in "$boost_tmp_lib/lib" '' \ 18405 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \ 18406 "$with_boost" C:/Boost/lib /lib* 18407 do 18408 test -e "$boost_ldpath" || continue 18409 boost_save_LDFLAGS=$LDFLAGS 18410 # Are we looking for a static library? 18411 case $boost_ldpath:$boost_rtopt_ in #( 18412 *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) 18413 boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext" 18414 test -e "$boost_cv_lib_system_LIBS" || continue;; #( 18415 *) # No: use -lboost_foo to find the shared library. 18416 boost_cv_lib_system_LIBS="-l$boost_lib";; 18417 esac 18418 boost_save_LIBS=$LIBS 18419 LIBS="$boost_cv_lib_system_LIBS $LIBS" 18420 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath" 18421 rm -f conftest$ac_exeext 18422boost_save_ac_ext=$ac_ext 18423boost_use_source=: 18424# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 18425# tries to link the existing object file instead of compiling from source. 18426test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 18427 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 18428if { { ac_try="$ac_link" 18429case "(($ac_try" in 18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18431 *) ac_try_echo=$ac_try;; 18432esac 18433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18434$as_echo "$ac_try_echo"; } >&5 18435 (eval "$ac_link") 2>conftest.err 18436 ac_status=$? 18437 if test -s conftest.err; then 18438 grep -v '^ *+' conftest.err >conftest.er1 18439 cat conftest.er1 >&5 18440 mv -f conftest.er1 conftest.err 18441 fi 18442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18443 test $ac_status = 0; } && { 18444 test -z "$ac_cxx_werror_flag" || 18445 test ! -s conftest.err 18446 } && test -s conftest$ac_exeext && { 18447 test "$cross_compiling" = yes || 18448 $as_executable_p conftest$ac_exeext 18449 }; then : 18450 boost_cv_lib_system=yes 18451else 18452 if $boost_use_source; then 18453 $as_echo "$as_me: failed program was:" >&5 18454sed 's/^/| /' conftest.$ac_ext >&5 18455 18456 fi 18457 boost_cv_lib_system=no 18458fi 18459ac_objext=$boost_save_ac_objext 18460ac_ext=$boost_save_ac_ext 18461rm -f core conftest.err conftest_ipa8_conftest.oo \ 18462 conftest$ac_exeext 18463 ac_objext=$boost_save_ac_objext 18464 LDFLAGS=$boost_save_LDFLAGS 18465 LIBS=$boost_save_LIBS 18466 if test x"$boost_cv_lib_system" = xyes; then 18467 # Check or used cached result of whether or not using -R or -rpath makes sense. 18468 # Some implementations of ld, such as for Mac OSX, require -rpath but 18469 # -R is the flag known to work on other systems. 18470 # https://github.com/tsuna/boost.m4/issues/19 18471 if ${boost_cv_rpath_link_ldflag+:} false; then : 18472 $as_echo_n "(cached) " >&6 18473else 18474 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do 18475 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 18476 LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS" 18477 rm -f conftest$ac_exeext 18478boost_save_ac_ext=$ac_ext 18479boost_use_source=: 18480# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 18481# tries to link the existing object file instead of compiling from source. 18482test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 18483 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 18484if { { ac_try="$ac_link" 18485case "(($ac_try" in 18486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18487 *) ac_try_echo=$ac_try;; 18488esac 18489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18490$as_echo "$ac_try_echo"; } >&5 18491 (eval "$ac_link") 2>conftest.err 18492 ac_status=$? 18493 if test -s conftest.err; then 18494 grep -v '^ *+' conftest.err >conftest.er1 18495 cat conftest.er1 >&5 18496 mv -f conftest.er1 conftest.err 18497 fi 18498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18499 test $ac_status = 0; } && { 18500 test -z "$ac_cxx_werror_flag" || 18501 test ! -s conftest.err 18502 } && test -s conftest$ac_exeext && { 18503 test "$cross_compiling" = yes || 18504 $as_executable_p conftest$ac_exeext 18505 }; then : 18506 boost_rpath_link_ldflag_found=yes 18507 break 18508else 18509 if $boost_use_source; then 18510 $as_echo "$as_me: failed program was:" >&5 18511sed 's/^/| /' conftest.$ac_ext >&5 18512 18513 fi 18514 boost_rpath_link_ldflag_found=no 18515fi 18516ac_objext=$boost_save_ac_objext 18517ac_ext=$boost_save_ac_ext 18518rm -f core conftest.err conftest_ipa8_conftest.oo \ 18519 conftest$ac_exeext 18520 done 18521 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then : 18522 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5 18523fi 18524 LDFLAGS=$boost_save_LDFLAGS 18525 LIBS=$boost_save_LIBS 18526 18527fi 18528 18529 boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 18530 boost_cv_lib_system_LDPATH="$boost_ldpath" 18531 break 6 18532 else 18533 boost_failed_libs="$boost_failed_libs@$boost_lib@" 18534 fi 18535 done 18536 done 18537done 18538done 18539done 18540done 18541rm -f conftest.$ac_objext 18542 18543fi 18544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5 18545$as_echo "$boost_cv_lib_system" >&6; } 18546case $boost_cv_lib_system in #( 18547 no) $as_echo "$as_me: failed program was:" >&5 18548sed 's/^/| /' conftest.$ac_ext >&5 18549 18550 as_fn_error $? "cannot find the flags to link with Boost system" "$LINENO" 5 18551 ;; 18552esac 18553BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS 18554BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH 18555BOOST_LDPATH=$boost_cv_lib_system_LDPATH 18556BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS 18557CPPFLAGS=$boost_save_CPPFLAGS 18558ac_ext=c 18559ac_cpp='$CPP $CPPFLAGS' 18560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18562ac_compiler_gnu=$ac_cv_c_compiler_gnu 18563fi 18564 18565 18566 18567fi # end of the Boost.System check. 18568boost_filesystem_save_LIBS=$LIBS 18569boost_filesystem_save_LDFLAGS=$LDFLAGS 18570LIBS="$LIBS $BOOST_SYSTEM_LIBS" 18571LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS" 18572if test x"$boost_cv_inc_path" = xno; then 18573 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost filesystem library" >&5 18574$as_echo "$as_me: Boost not available, not searching for the Boost filesystem library" >&6;} 18575else 18576ac_ext=cpp 18577ac_cpp='$CXXCPP $CPPFLAGS' 18578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18581if test x"$boost_cv_inc_path" = xno; then 18582 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/filesystem/path.hpp" >&5 18583$as_echo "$as_me: Boost not available, not searching for boost/filesystem/path.hpp" >&6;} 18584else 18585ac_ext=cpp 18586ac_cpp='$CXXCPP $CPPFLAGS' 18587ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18588ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18589ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18590boost_save_CPPFLAGS=$CPPFLAGS 18591CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 18592ac_fn_cxx_check_header_mongrel "$LINENO" "boost/filesystem/path.hpp" "ac_cv_header_boost_filesystem_path_hpp" "$ac_includes_default" 18593if test "x$ac_cv_header_boost_filesystem_path_hpp" = xyes; then : 18594 18595$as_echo "#define HAVE_BOOST_FILESYSTEM_PATH_HPP 1" >>confdefs.h 18596 18597else 18598 as_fn_error $? "cannot find boost/filesystem/path.hpp" "$LINENO" 5 18599fi 18600 18601 18602CPPFLAGS=$boost_save_CPPFLAGS 18603ac_ext=cpp 18604ac_cpp='$CXXCPP $CPPFLAGS' 18605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18608fi 18609 18610boost_save_CPPFLAGS=$CPPFLAGS 18611CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 18612# Now let's try to find the library. The algorithm is as follows: first look 18613# for a given library name according to the user's PREFERRED-RT-OPT. For each 18614# library name, we prefer to use the ones that carry the tag (toolset name). 18615# Each library is searched through the various standard paths were Boost is 18616# usually installed. If we can't find the standard variants, we try to 18617# enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist 18618# but there's -obviously- libboost_threads-mt.dylib). 18619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost filesystem library" >&5 18620$as_echo_n "checking for the Boost filesystem library... " >&6; } 18621if ${boost_cv_lib_filesystem+:} false; then : 18622 $as_echo_n "(cached) " >&6 18623else 18624 boost_cv_lib_filesystem=no 18625 case "" in #( 18626 mt | mt-) boost_mt=-mt; boost_rtopt=;; #( 18627 mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #( 18628 *) boost_mt=; boost_rtopt=;; 18629 esac 18630 if test $enable_static_boost = yes; then 18631 boost_rtopt="s$boost_rtopt" 18632 fi 18633 # Find the proper debug variant depending on what we've been asked to find. 18634 case $boost_rtopt in #( 18635 *d*) boost_rt_d=$boost_rtopt;; #( 18636 *[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn') 18637 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #( 18638 *) boost_rt_d='-d';; 18639 esac 18640 # If the PREFERRED-RT-OPT are not empty, prepend a `-'. 18641 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt" 18642 $boost_guess_use_mt && boost_mt=-mt 18643 # Look for the abs path the static archive. 18644 # $libext is computed by Libtool but let's make sure it's non empty. 18645 test -z "$libext" && 18646 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5 18647 boost_save_ac_objext=$ac_objext 18648 # Generate the test file. 18649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18650/* end confdefs.h. */ 18651#include <boost/filesystem/path.hpp> 18652 18653int 18654main () 18655{ 18656boost::filesystem::path p; 18657 ; 18658 return 0; 18659} 18660_ACEOF 18661 if ac_fn_cxx_try_compile "$LINENO"; then : 18662 ac_objext=do_not_rm_me_plz 18663else 18664 as_fn_error $? "cannot compile a test that uses Boost filesystem" "$LINENO" 5 18665fi 18666rm -f core conftest.err conftest.$ac_objext 18667 ac_objext=$boost_save_ac_objext 18668 boost_failed_libs= 18669# Don't bother to ident the 6 nested for loops, only the 2 innermost ones 18670# matter. 18671for boost_tag_ in -$boost_cv_lib_tag ''; do 18672for boost_ver_ in -$boost_cv_lib_version ''; do 18673for boost_mt_ in $boost_mt -mt ''; do 18674for boost_rtopt_ in $boost_rtopt '' -d; do 18675 for boost_lib in \ 18676 boost_filesystem$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \ 18677 boost_filesystem$boost_tag_$boost_rtopt_$boost_ver_ \ 18678 boost_filesystem$boost_tag_$boost_mt_$boost_ver_ \ 18679 boost_filesystem$boost_tag_$boost_ver_ 18680 do 18681 # Avoid testing twice the same lib 18682 case $boost_failed_libs in #( 18683 *@$boost_lib@*) continue;; 18684 esac 18685 # If with_boost is empty, we'll search in /lib first, which is not quite 18686 # right so instead we'll try to a location based on where the headers are. 18687 boost_tmp_lib=$with_boost 18688 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} 18689 for boost_ldpath in "$boost_tmp_lib/lib" '' \ 18690 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \ 18691 "$with_boost" C:/Boost/lib /lib* 18692 do 18693 test -e "$boost_ldpath" || continue 18694 boost_save_LDFLAGS=$LDFLAGS 18695 # Are we looking for a static library? 18696 case $boost_ldpath:$boost_rtopt_ in #( 18697 *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) 18698 boost_cv_lib_filesystem_LIBS="$boost_ldpath/lib$boost_lib.$libext" 18699 test -e "$boost_cv_lib_filesystem_LIBS" || continue;; #( 18700 *) # No: use -lboost_foo to find the shared library. 18701 boost_cv_lib_filesystem_LIBS="-l$boost_lib";; 18702 esac 18703 boost_save_LIBS=$LIBS 18704 LIBS="$boost_cv_lib_filesystem_LIBS $LIBS" 18705 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath" 18706 rm -f conftest$ac_exeext 18707boost_save_ac_ext=$ac_ext 18708boost_use_source=: 18709# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 18710# tries to link the existing object file instead of compiling from source. 18711test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 18712 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 18713if { { ac_try="$ac_link" 18714case "(($ac_try" in 18715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18716 *) ac_try_echo=$ac_try;; 18717esac 18718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18719$as_echo "$ac_try_echo"; } >&5 18720 (eval "$ac_link") 2>conftest.err 18721 ac_status=$? 18722 if test -s conftest.err; then 18723 grep -v '^ *+' conftest.err >conftest.er1 18724 cat conftest.er1 >&5 18725 mv -f conftest.er1 conftest.err 18726 fi 18727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18728 test $ac_status = 0; } && { 18729 test -z "$ac_cxx_werror_flag" || 18730 test ! -s conftest.err 18731 } && test -s conftest$ac_exeext && { 18732 test "$cross_compiling" = yes || 18733 $as_executable_p conftest$ac_exeext 18734 }; then : 18735 boost_cv_lib_filesystem=yes 18736else 18737 if $boost_use_source; then 18738 $as_echo "$as_me: failed program was:" >&5 18739sed 's/^/| /' conftest.$ac_ext >&5 18740 18741 fi 18742 boost_cv_lib_filesystem=no 18743fi 18744ac_objext=$boost_save_ac_objext 18745ac_ext=$boost_save_ac_ext 18746rm -f core conftest.err conftest_ipa8_conftest.oo \ 18747 conftest$ac_exeext 18748 ac_objext=$boost_save_ac_objext 18749 LDFLAGS=$boost_save_LDFLAGS 18750 LIBS=$boost_save_LIBS 18751 if test x"$boost_cv_lib_filesystem" = xyes; then 18752 # Check or used cached result of whether or not using -R or -rpath makes sense. 18753 # Some implementations of ld, such as for Mac OSX, require -rpath but 18754 # -R is the flag known to work on other systems. 18755 # https://github.com/tsuna/boost.m4/issues/19 18756 if ${boost_cv_rpath_link_ldflag+:} false; then : 18757 $as_echo_n "(cached) " >&6 18758else 18759 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do 18760 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 18761 LIBS="$boost_save_LIBS $boost_cv_lib_filesystem_LIBS" 18762 rm -f conftest$ac_exeext 18763boost_save_ac_ext=$ac_ext 18764boost_use_source=: 18765# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 18766# tries to link the existing object file instead of compiling from source. 18767test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 18768 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 18769if { { ac_try="$ac_link" 18770case "(($ac_try" in 18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18772 *) ac_try_echo=$ac_try;; 18773esac 18774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18775$as_echo "$ac_try_echo"; } >&5 18776 (eval "$ac_link") 2>conftest.err 18777 ac_status=$? 18778 if test -s conftest.err; then 18779 grep -v '^ *+' conftest.err >conftest.er1 18780 cat conftest.er1 >&5 18781 mv -f conftest.er1 conftest.err 18782 fi 18783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18784 test $ac_status = 0; } && { 18785 test -z "$ac_cxx_werror_flag" || 18786 test ! -s conftest.err 18787 } && test -s conftest$ac_exeext && { 18788 test "$cross_compiling" = yes || 18789 $as_executable_p conftest$ac_exeext 18790 }; then : 18791 boost_rpath_link_ldflag_found=yes 18792 break 18793else 18794 if $boost_use_source; then 18795 $as_echo "$as_me: failed program was:" >&5 18796sed 's/^/| /' conftest.$ac_ext >&5 18797 18798 fi 18799 boost_rpath_link_ldflag_found=no 18800fi 18801ac_objext=$boost_save_ac_objext 18802ac_ext=$boost_save_ac_ext 18803rm -f core conftest.err conftest_ipa8_conftest.oo \ 18804 conftest$ac_exeext 18805 done 18806 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then : 18807 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5 18808fi 18809 LDFLAGS=$boost_save_LDFLAGS 18810 LIBS=$boost_save_LIBS 18811 18812fi 18813 18814 boost_cv_lib_filesystem_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 18815 boost_cv_lib_filesystem_LDPATH="$boost_ldpath" 18816 break 6 18817 else 18818 boost_failed_libs="$boost_failed_libs@$boost_lib@" 18819 fi 18820 done 18821 done 18822done 18823done 18824done 18825done 18826rm -f conftest.$ac_objext 18827 18828fi 18829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_filesystem" >&5 18830$as_echo "$boost_cv_lib_filesystem" >&6; } 18831case $boost_cv_lib_filesystem in #( 18832 no) $as_echo "$as_me: failed program was:" >&5 18833sed 's/^/| /' conftest.$ac_ext >&5 18834 18835 as_fn_error $? "cannot find the flags to link with Boost filesystem" "$LINENO" 5 18836 ;; 18837esac 18838BOOST_FILESYSTEM_LDFLAGS=$boost_cv_lib_filesystem_LDFLAGS 18839BOOST_FILESYSTEM_LDPATH=$boost_cv_lib_filesystem_LDPATH 18840BOOST_LDPATH=$boost_cv_lib_filesystem_LDPATH 18841BOOST_FILESYSTEM_LIBS=$boost_cv_lib_filesystem_LIBS 18842CPPFLAGS=$boost_save_CPPFLAGS 18843ac_ext=c 18844ac_cpp='$CPP $CPPFLAGS' 18845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18847ac_compiler_gnu=$ac_cv_c_compiler_gnu 18848fi 18849 18850if test $enable_static_boost = yes && test $boost_major_version -ge 135; then 18851 BOOST_FILESYSTEM_LIBS="$BOOST_FILESYSTEM_LIBS $BOOST_SYSTEM_LIBS" 18852 18853fi 18854LIBS=$boost_filesystem_save_LIBS 18855LDFLAGS=$boost_filesystem_save_LDFLAGS 18856 18857 18858if test x"$boost_cv_inc_path" = xno; then 18859 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5 18860$as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;} 18861else 18862ac_ext=cpp 18863ac_cpp='$CXXCPP $CPPFLAGS' 18864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18867if test x"$boost_cv_inc_path" = xno; then 18868 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5 18869$as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;} 18870else 18871ac_ext=cpp 18872ac_cpp='$CXXCPP $CPPFLAGS' 18873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18876boost_save_CPPFLAGS=$CPPFLAGS 18877CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 18878ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default" 18879if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes; then : 18880 18881$as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h 18882 18883else 18884 as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5 18885fi 18886 18887 18888CPPFLAGS=$boost_save_CPPFLAGS 18889ac_ext=cpp 18890ac_cpp='$CXXCPP $CPPFLAGS' 18891ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18892ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18893ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18894fi 18895 18896boost_save_CPPFLAGS=$CPPFLAGS 18897CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 18898# Now let's try to find the library. The algorithm is as follows: first look 18899# for a given library name according to the user's PREFERRED-RT-OPT. For each 18900# library name, we prefer to use the ones that carry the tag (toolset name). 18901# Each library is searched through the various standard paths were Boost is 18902# usually installed. If we can't find the standard variants, we try to 18903# enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist 18904# but there's -obviously- libboost_threads-mt.dylib). 18905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5 18906$as_echo_n "checking for the Boost system library... " >&6; } 18907if ${boost_cv_lib_system+:} false; then : 18908 $as_echo_n "(cached) " >&6 18909else 18910 boost_cv_lib_system=no 18911 case "" in #( 18912 mt | mt-) boost_mt=-mt; boost_rtopt=;; #( 18913 mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #( 18914 *) boost_mt=; boost_rtopt=;; 18915 esac 18916 if test $enable_static_boost = yes; then 18917 boost_rtopt="s$boost_rtopt" 18918 fi 18919 # Find the proper debug variant depending on what we've been asked to find. 18920 case $boost_rtopt in #( 18921 *d*) boost_rt_d=$boost_rtopt;; #( 18922 *[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn') 18923 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #( 18924 *) boost_rt_d='-d';; 18925 esac 18926 # If the PREFERRED-RT-OPT are not empty, prepend a `-'. 18927 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt" 18928 $boost_guess_use_mt && boost_mt=-mt 18929 # Look for the abs path the static archive. 18930 # $libext is computed by Libtool but let's make sure it's non empty. 18931 test -z "$libext" && 18932 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5 18933 boost_save_ac_objext=$ac_objext 18934 # Generate the test file. 18935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18936/* end confdefs.h. */ 18937#include <boost/system/error_code.hpp> 18938 18939int 18940main () 18941{ 18942boost::system::error_code e; e.clear(); 18943 ; 18944 return 0; 18945} 18946_ACEOF 18947 if ac_fn_cxx_try_compile "$LINENO"; then : 18948 ac_objext=do_not_rm_me_plz 18949else 18950 as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5 18951fi 18952rm -f core conftest.err conftest.$ac_objext 18953 ac_objext=$boost_save_ac_objext 18954 boost_failed_libs= 18955# Don't bother to ident the 6 nested for loops, only the 2 innermost ones 18956# matter. 18957for boost_tag_ in -$boost_cv_lib_tag ''; do 18958for boost_ver_ in -$boost_cv_lib_version ''; do 18959for boost_mt_ in $boost_mt -mt ''; do 18960for boost_rtopt_ in $boost_rtopt '' -d; do 18961 for boost_lib in \ 18962 boost_system$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \ 18963 boost_system$boost_tag_$boost_rtopt_$boost_ver_ \ 18964 boost_system$boost_tag_$boost_mt_$boost_ver_ \ 18965 boost_system$boost_tag_$boost_ver_ 18966 do 18967 # Avoid testing twice the same lib 18968 case $boost_failed_libs in #( 18969 *@$boost_lib@*) continue;; 18970 esac 18971 # If with_boost is empty, we'll search in /lib first, which is not quite 18972 # right so instead we'll try to a location based on where the headers are. 18973 boost_tmp_lib=$with_boost 18974 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} 18975 for boost_ldpath in "$boost_tmp_lib/lib" '' \ 18976 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \ 18977 "$with_boost" C:/Boost/lib /lib* 18978 do 18979 test -e "$boost_ldpath" || continue 18980 boost_save_LDFLAGS=$LDFLAGS 18981 # Are we looking for a static library? 18982 case $boost_ldpath:$boost_rtopt_ in #( 18983 *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) 18984 boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext" 18985 test -e "$boost_cv_lib_system_LIBS" || continue;; #( 18986 *) # No: use -lboost_foo to find the shared library. 18987 boost_cv_lib_system_LIBS="-l$boost_lib";; 18988 esac 18989 boost_save_LIBS=$LIBS 18990 LIBS="$boost_cv_lib_system_LIBS $LIBS" 18991 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath" 18992 rm -f conftest$ac_exeext 18993boost_save_ac_ext=$ac_ext 18994boost_use_source=: 18995# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 18996# tries to link the existing object file instead of compiling from source. 18997test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 18998 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 18999if { { ac_try="$ac_link" 19000case "(($ac_try" in 19001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19002 *) ac_try_echo=$ac_try;; 19003esac 19004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 19005$as_echo "$ac_try_echo"; } >&5 19006 (eval "$ac_link") 2>conftest.err 19007 ac_status=$? 19008 if test -s conftest.err; then 19009 grep -v '^ *+' conftest.err >conftest.er1 19010 cat conftest.er1 >&5 19011 mv -f conftest.er1 conftest.err 19012 fi 19013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19014 test $ac_status = 0; } && { 19015 test -z "$ac_cxx_werror_flag" || 19016 test ! -s conftest.err 19017 } && test -s conftest$ac_exeext && { 19018 test "$cross_compiling" = yes || 19019 $as_executable_p conftest$ac_exeext 19020 }; then : 19021 boost_cv_lib_system=yes 19022else 19023 if $boost_use_source; then 19024 $as_echo "$as_me: failed program was:" >&5 19025sed 's/^/| /' conftest.$ac_ext >&5 19026 19027 fi 19028 boost_cv_lib_system=no 19029fi 19030ac_objext=$boost_save_ac_objext 19031ac_ext=$boost_save_ac_ext 19032rm -f core conftest.err conftest_ipa8_conftest.oo \ 19033 conftest$ac_exeext 19034 ac_objext=$boost_save_ac_objext 19035 LDFLAGS=$boost_save_LDFLAGS 19036 LIBS=$boost_save_LIBS 19037 if test x"$boost_cv_lib_system" = xyes; then 19038 # Check or used cached result of whether or not using -R or -rpath makes sense. 19039 # Some implementations of ld, such as for Mac OSX, require -rpath but 19040 # -R is the flag known to work on other systems. 19041 # https://github.com/tsuna/boost.m4/issues/19 19042 if ${boost_cv_rpath_link_ldflag+:} false; then : 19043 $as_echo_n "(cached) " >&6 19044else 19045 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do 19046 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 19047 LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS" 19048 rm -f conftest$ac_exeext 19049boost_save_ac_ext=$ac_ext 19050boost_use_source=: 19051# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 19052# tries to link the existing object file instead of compiling from source. 19053test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 19054 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 19055if { { ac_try="$ac_link" 19056case "(($ac_try" in 19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19058 *) ac_try_echo=$ac_try;; 19059esac 19060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 19061$as_echo "$ac_try_echo"; } >&5 19062 (eval "$ac_link") 2>conftest.err 19063 ac_status=$? 19064 if test -s conftest.err; then 19065 grep -v '^ *+' conftest.err >conftest.er1 19066 cat conftest.er1 >&5 19067 mv -f conftest.er1 conftest.err 19068 fi 19069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19070 test $ac_status = 0; } && { 19071 test -z "$ac_cxx_werror_flag" || 19072 test ! -s conftest.err 19073 } && test -s conftest$ac_exeext && { 19074 test "$cross_compiling" = yes || 19075 $as_executable_p conftest$ac_exeext 19076 }; then : 19077 boost_rpath_link_ldflag_found=yes 19078 break 19079else 19080 if $boost_use_source; then 19081 $as_echo "$as_me: failed program was:" >&5 19082sed 's/^/| /' conftest.$ac_ext >&5 19083 19084 fi 19085 boost_rpath_link_ldflag_found=no 19086fi 19087ac_objext=$boost_save_ac_objext 19088ac_ext=$boost_save_ac_ext 19089rm -f core conftest.err conftest_ipa8_conftest.oo \ 19090 conftest$ac_exeext 19091 done 19092 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then : 19093 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5 19094fi 19095 LDFLAGS=$boost_save_LDFLAGS 19096 LIBS=$boost_save_LIBS 19097 19098fi 19099 19100 boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 19101 boost_cv_lib_system_LDPATH="$boost_ldpath" 19102 break 6 19103 else 19104 boost_failed_libs="$boost_failed_libs@$boost_lib@" 19105 fi 19106 done 19107 done 19108done 19109done 19110done 19111done 19112rm -f conftest.$ac_objext 19113 19114fi 19115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5 19116$as_echo "$boost_cv_lib_system" >&6; } 19117case $boost_cv_lib_system in #( 19118 no) $as_echo "$as_me: failed program was:" >&5 19119sed 's/^/| /' conftest.$ac_ext >&5 19120 19121 as_fn_error $? "cannot find the flags to link with Boost system" "$LINENO" 5 19122 ;; 19123esac 19124BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS 19125BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH 19126BOOST_LDPATH=$boost_cv_lib_system_LDPATH 19127BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS 19128CPPFLAGS=$boost_save_CPPFLAGS 19129ac_ext=c 19130ac_cpp='$CPP $CPPFLAGS' 19131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19133ac_compiler_gnu=$ac_cv_c_compiler_gnu 19134fi 19135 19136 19137 19138 19139# Checks for header files. 19140for ac_header in sys/ioctl.h unistd.h sys/types.h sys/stat.h signal.h 19141do : 19142 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19143ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19144if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19145 cat >>confdefs.h <<_ACEOF 19146#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19147_ACEOF 19148 19149fi 19150 19151done 19152 19153 19154# Checks for typedefs, structures, and compiler characteristics. 19155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 19156$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 19157if ${ac_cv_header_stdbool_h+:} false; then : 19158 $as_echo_n "(cached) " >&6 19159else 19160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19161/* end confdefs.h. */ 19162 19163 #include <stdbool.h> 19164 #ifndef bool 19165 "error: bool is not defined" 19166 #endif 19167 #ifndef false 19168 "error: false is not defined" 19169 #endif 19170 #if false 19171 "error: false is not 0" 19172 #endif 19173 #ifndef true 19174 "error: true is not defined" 19175 #endif 19176 #if true != 1 19177 "error: true is not 1" 19178 #endif 19179 #ifndef __bool_true_false_are_defined 19180 "error: __bool_true_false_are_defined is not defined" 19181 #endif 19182 19183 struct s { _Bool s: 1; _Bool t; } s; 19184 19185 char a[true == 1 ? 1 : -1]; 19186 char b[false == 0 ? 1 : -1]; 19187 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 19188 char d[(bool) 0.5 == true ? 1 : -1]; 19189 /* See body of main program for 'e'. */ 19190 char f[(_Bool) 0.0 == false ? 1 : -1]; 19191 char g[true]; 19192 char h[sizeof (_Bool)]; 19193 char i[sizeof s.t]; 19194 enum { j = false, k = true, l = false * true, m = true * 256 }; 19195 /* The following fails for 19196 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 19197 _Bool n[m]; 19198 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 19199 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 19200 /* Catch a bug in an HP-UX C compiler. See 19201 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 19202 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 19203 */ 19204 _Bool q = true; 19205 _Bool *pq = &q; 19206 19207int 19208main () 19209{ 19210 19211 bool e = &s; 19212 *pq |= q; 19213 *pq |= ! q; 19214 /* Refer to every declared value, to avoid compiler optimizations. */ 19215 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 19216 + !m + !n + !o + !p + !q + !pq); 19217 19218 ; 19219 return 0; 19220} 19221_ACEOF 19222if ac_fn_c_try_compile "$LINENO"; then : 19223 ac_cv_header_stdbool_h=yes 19224else 19225 ac_cv_header_stdbool_h=no 19226fi 19227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19228fi 19229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 19230$as_echo "$ac_cv_header_stdbool_h" >&6; } 19231 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 19232if test "x$ac_cv_type__Bool" = xyes; then : 19233 19234cat >>confdefs.h <<_ACEOF 19235#define HAVE__BOOL 1 19236_ACEOF 19237 19238 19239fi 19240 19241 19242if test $ac_cv_header_stdbool_h = yes; then 19243 19244$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 19245 19246fi 19247 19248ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 19249if test "x$ac_cv_type_size_t" = xyes; then : 19250 19251else 19252 19253cat >>confdefs.h <<_ACEOF 19254#define size_t unsigned int 19255_ACEOF 19256 19257fi 19258 19259ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 19260if test "x$ac_cv_type_pid_t" = xyes; then : 19261 19262else 19263 19264cat >>confdefs.h <<_ACEOF 19265#define pid_t int 19266_ACEOF 19267 19268fi 19269 19270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 19271$as_echo_n "checking for inline... " >&6; } 19272if ${ac_cv_c_inline+:} false; then : 19273 $as_echo_n "(cached) " >&6 19274else 19275 ac_cv_c_inline=no 19276for ac_kw in inline __inline__ __inline; do 19277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19278/* end confdefs.h. */ 19279#ifndef __cplusplus 19280typedef int foo_t; 19281static $ac_kw foo_t static_foo () {return 0; } 19282$ac_kw foo_t foo () {return 0; } 19283#endif 19284 19285_ACEOF 19286if ac_fn_c_try_compile "$LINENO"; then : 19287 ac_cv_c_inline=$ac_kw 19288fi 19289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19290 test "$ac_cv_c_inline" != no && break 19291done 19292 19293fi 19294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 19295$as_echo "$ac_cv_c_inline" >&6; } 19296 19297case $ac_cv_c_inline in 19298 inline | yes) ;; 19299 *) 19300 case $ac_cv_c_inline in 19301 no) ac_val=;; 19302 *) ac_val=$ac_cv_c_inline;; 19303 esac 19304 cat >>confdefs.h <<_ACEOF 19305#ifndef __cplusplus 19306#define inline $ac_val 19307#endif 19308_ACEOF 19309 ;; 19310esac 19311 19312 19313# Checks for library functions. 19314for ac_func in strerror strstr getpid signal memset setlocale 19315do : 19316 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19317ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19318if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19319 cat >>confdefs.h <<_ACEOF 19320#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19321_ACEOF 19322 19323fi 19324done 19325 19326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 19327$as_echo_n "checking for error_at_line... " >&6; } 19328if ${ac_cv_lib_error_at_line+:} false; then : 19329 $as_echo_n "(cached) " >&6 19330else 19331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19332/* end confdefs.h. */ 19333#include <error.h> 19334int 19335main () 19336{ 19337error_at_line (0, 0, "", 0, "an error occurred"); 19338 ; 19339 return 0; 19340} 19341_ACEOF 19342if ac_fn_c_try_link "$LINENO"; then : 19343 ac_cv_lib_error_at_line=yes 19344else 19345 ac_cv_lib_error_at_line=no 19346fi 19347rm -f core conftest.err conftest.$ac_objext \ 19348 conftest$ac_exeext conftest.$ac_ext 19349fi 19350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 19351$as_echo "$ac_cv_lib_error_at_line" >&6; } 19352if test $ac_cv_lib_error_at_line = no; then 19353 case " $LIBOBJS " in 19354 *" error.$ac_objext "* ) ;; 19355 *) LIBOBJS="$LIBOBJS error.$ac_objext" 19356 ;; 19357esac 19358 19359fi 19360 19361ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 19362if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 19363 ac_have_decl=1 19364else 19365 ac_have_decl=0 19366fi 19367 19368cat >>confdefs.h <<_ACEOF 19369#define HAVE_DECL_STRERROR_R $ac_have_decl 19370_ACEOF 19371 19372for ac_func in strerror_r 19373do : 19374 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 19375if test "x$ac_cv_func_strerror_r" = xyes; then : 19376 cat >>confdefs.h <<_ACEOF 19377#define HAVE_STRERROR_R 1 19378_ACEOF 19379 19380fi 19381done 19382 19383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 19384$as_echo_n "checking whether strerror_r returns char *... " >&6; } 19385if ${ac_cv_func_strerror_r_char_p+:} false; then : 19386 $as_echo_n "(cached) " >&6 19387else 19388 19389 ac_cv_func_strerror_r_char_p=no 19390 if test $ac_cv_have_decl_strerror_r = yes; then 19391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19392/* end confdefs.h. */ 19393$ac_includes_default 19394int 19395main () 19396{ 19397 19398 char buf[100]; 19399 char x = *strerror_r (0, buf, sizeof buf); 19400 char *p = strerror_r (0, buf, sizeof buf); 19401 return !p || x; 19402 19403 ; 19404 return 0; 19405} 19406_ACEOF 19407if ac_fn_c_try_compile "$LINENO"; then : 19408 ac_cv_func_strerror_r_char_p=yes 19409fi 19410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19411 else 19412 # strerror_r is not declared. Choose between 19413 # systems that have relatively inaccessible declarations for the 19414 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 19415 # former has a strerror_r that returns char*, while the latter 19416 # has a strerror_r that returns `int'. 19417 # This test should segfault on the DEC system. 19418 if test "$cross_compiling" = yes; then : 19419 : 19420else 19421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19422/* end confdefs.h. */ 19423$ac_includes_default 19424 extern char *strerror_r (); 19425int 19426main () 19427{ 19428char buf[100]; 19429 char x = *strerror_r (0, buf, sizeof buf); 19430 return ! isalpha (x); 19431 ; 19432 return 0; 19433} 19434_ACEOF 19435if ac_fn_c_try_run "$LINENO"; then : 19436 ac_cv_func_strerror_r_char_p=yes 19437fi 19438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19439 conftest.$ac_objext conftest.beam conftest.$ac_ext 19440fi 19441 19442 fi 19443 19444fi 19445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 19446$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 19447if test $ac_cv_func_strerror_r_char_p = yes; then 19448 19449$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 19450 19451fi 19452 19453for ac_header in vfork.h 19454do : 19455 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 19456if test "x$ac_cv_header_vfork_h" = xyes; then : 19457 cat >>confdefs.h <<_ACEOF 19458#define HAVE_VFORK_H 1 19459_ACEOF 19460 19461fi 19462 19463done 19464 19465for ac_func in fork vfork 19466do : 19467 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19468ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19469if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19470 cat >>confdefs.h <<_ACEOF 19471#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19472_ACEOF 19473 19474fi 19475done 19476 19477if test "x$ac_cv_func_fork" = xyes; then 19478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 19479$as_echo_n "checking for working fork... " >&6; } 19480if ${ac_cv_func_fork_works+:} false; then : 19481 $as_echo_n "(cached) " >&6 19482else 19483 if test "$cross_compiling" = yes; then : 19484 ac_cv_func_fork_works=cross 19485else 19486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19487/* end confdefs.h. */ 19488$ac_includes_default 19489int 19490main () 19491{ 19492 19493 /* By Ruediger Kuhlmann. */ 19494 return fork () < 0; 19495 19496 ; 19497 return 0; 19498} 19499_ACEOF 19500if ac_fn_c_try_run "$LINENO"; then : 19501 ac_cv_func_fork_works=yes 19502else 19503 ac_cv_func_fork_works=no 19504fi 19505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19506 conftest.$ac_objext conftest.beam conftest.$ac_ext 19507fi 19508 19509fi 19510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 19511$as_echo "$ac_cv_func_fork_works" >&6; } 19512 19513else 19514 ac_cv_func_fork_works=$ac_cv_func_fork 19515fi 19516if test "x$ac_cv_func_fork_works" = xcross; then 19517 case $host in 19518 *-*-amigaos* | *-*-msdosdjgpp*) 19519 # Override, as these systems have only a dummy fork() stub 19520 ac_cv_func_fork_works=no 19521 ;; 19522 *) 19523 ac_cv_func_fork_works=yes 19524 ;; 19525 esac 19526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 19527$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 19528fi 19529ac_cv_func_vfork_works=$ac_cv_func_vfork 19530if test "x$ac_cv_func_vfork" = xyes; then 19531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 19532$as_echo_n "checking for working vfork... " >&6; } 19533if ${ac_cv_func_vfork_works+:} false; then : 19534 $as_echo_n "(cached) " >&6 19535else 19536 if test "$cross_compiling" = yes; then : 19537 ac_cv_func_vfork_works=cross 19538else 19539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19540/* end confdefs.h. */ 19541/* Thanks to Paul Eggert for this test. */ 19542$ac_includes_default 19543#include <sys/wait.h> 19544#ifdef HAVE_VFORK_H 19545# include <vfork.h> 19546#endif 19547/* On some sparc systems, changes by the child to local and incoming 19548 argument registers are propagated back to the parent. The compiler 19549 is told about this with #include <vfork.h>, but some compilers 19550 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 19551 static variable whose address is put into a register that is 19552 clobbered by the vfork. */ 19553static void 19554#ifdef __cplusplus 19555sparc_address_test (int arg) 19556# else 19557sparc_address_test (arg) int arg; 19558#endif 19559{ 19560 static pid_t child; 19561 if (!child) { 19562 child = vfork (); 19563 if (child < 0) { 19564 perror ("vfork"); 19565 _exit(2); 19566 } 19567 if (!child) { 19568 arg = getpid(); 19569 write(-1, "", 0); 19570 _exit (arg); 19571 } 19572 } 19573} 19574 19575int 19576main () 19577{ 19578 pid_t parent = getpid (); 19579 pid_t child; 19580 19581 sparc_address_test (0); 19582 19583 child = vfork (); 19584 19585 if (child == 0) { 19586 /* Here is another test for sparc vfork register problems. This 19587 test uses lots of local variables, at least as many local 19588 variables as main has allocated so far including compiler 19589 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 19590 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 19591 reuse the register of parent for one of the local variables, 19592 since it will think that parent can't possibly be used any more 19593 in this routine. Assigning to the local variable will thus 19594 munge parent in the parent process. */ 19595 pid_t 19596 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 19597 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 19598 /* Convince the compiler that p..p7 are live; otherwise, it might 19599 use the same hardware register for all 8 local variables. */ 19600 if (p != p1 || p != p2 || p != p3 || p != p4 19601 || p != p5 || p != p6 || p != p7) 19602 _exit(1); 19603 19604 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 19605 from child file descriptors. If the child closes a descriptor 19606 before it execs or exits, this munges the parent's descriptor 19607 as well. Test for this by closing stdout in the child. */ 19608 _exit(close(fileno(stdout)) != 0); 19609 } else { 19610 int status; 19611 struct stat st; 19612 19613 while (wait(&status) != child) 19614 ; 19615 return ( 19616 /* Was there some problem with vforking? */ 19617 child < 0 19618 19619 /* Did the child fail? (This shouldn't happen.) */ 19620 || status 19621 19622 /* Did the vfork/compiler bug occur? */ 19623 || parent != getpid() 19624 19625 /* Did the file descriptor bug occur? */ 19626 || fstat(fileno(stdout), &st) != 0 19627 ); 19628 } 19629} 19630_ACEOF 19631if ac_fn_c_try_run "$LINENO"; then : 19632 ac_cv_func_vfork_works=yes 19633else 19634 ac_cv_func_vfork_works=no 19635fi 19636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19637 conftest.$ac_objext conftest.beam conftest.$ac_ext 19638fi 19639 19640fi 19641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 19642$as_echo "$ac_cv_func_vfork_works" >&6; } 19643 19644fi; 19645if test "x$ac_cv_func_fork_works" = xcross; then 19646 ac_cv_func_vfork_works=$ac_cv_func_vfork 19647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 19648$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 19649fi 19650 19651if test "x$ac_cv_func_vfork_works" = xyes; then 19652 19653$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 19654 19655else 19656 19657$as_echo "#define vfork fork" >>confdefs.h 19658 19659fi 19660if test "x$ac_cv_func_fork_works" = xyes; then 19661 19662$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 19663 19664fi 19665 19666 19667# Version. 19668VN=`$srcdir/gen-ver.sh` 19669 19670cat >>confdefs.h <<_ACEOF 19671#define VN "$VN" 19672_ACEOF 19673 19674 19675# --with-manual 19676 19677# Check whether --with-manual was given. 19678if test "${with_manual+set}" = set; then : 19679 withval=$with_manual; 19680else 19681 with_manual=yes 19682fi 19683 19684 if test x"$with_manual" != "xno"; then 19685 WITH_MANUAL_TRUE= 19686 WITH_MANUAL_FALSE='#' 19687else 19688 WITH_MANUAL_TRUE='#' 19689 WITH_MANUAL_FALSE= 19690fi 19691 19692 19693# --enable-ccl 19694# Check whether --enable-ccl was given. 19695if test "${enable_ccl+set}" = set; then : 19696 enableval=$enable_ccl; 19697else 19698 enable_ccl=yes 19699fi 19700 19701 if test x"$enable_ccl" = "xyes"; then 19702 ENABLE_CCL_TRUE= 19703 ENABLE_CCL_FALSE='#' 19704else 19705 ENABLE_CCL_TRUE='#' 19706 ENABLE_CCL_FALSE= 19707fi 19708 19709 19710ac_config_files="$ac_config_files Makefile doc/Makefile doc/man1/Makefile src/Makefile" 19711 19712 19713cat >confcache <<\_ACEOF 19714# This file is a shell script that caches the results of configure 19715# tests run on this system so they can be shared between configure 19716# scripts and configure runs, see configure's option --config-cache. 19717# It is not useful on other systems. If it contains results you don't 19718# want to keep, you may remove or edit it. 19719# 19720# config.status only pays attention to the cache file if you give it 19721# the --recheck option to rerun configure. 19722# 19723# `ac_cv_env_foo' variables (set or unset) will be overridden when 19724# loading this file, other *unset* `ac_cv_foo' will be assigned the 19725# following values. 19726 19727_ACEOF 19728 19729# The following way of writing the cache mishandles newlines in values, 19730# but we know of no workaround that is simple, portable, and efficient. 19731# So, we kill variables containing newlines. 19732# Ultrix sh set writes to stderr and can't be redirected directly, 19733# and sets the high bit in the cache file unless we assign to the vars. 19734( 19735 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19736 eval ac_val=\$$ac_var 19737 case $ac_val in #( 19738 *${as_nl}*) 19739 case $ac_var in #( 19740 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19741$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19742 esac 19743 case $ac_var in #( 19744 _ | IFS | as_nl) ;; #( 19745 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19746 *) { eval $ac_var=; unset $ac_var;} ;; 19747 esac ;; 19748 esac 19749 done 19750 19751 (set) 2>&1 | 19752 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19753 *${as_nl}ac_space=\ *) 19754 # `set' does not quote correctly, so add quotes: double-quote 19755 # substitution turns \\\\ into \\, and sed turns \\ into \. 19756 sed -n \ 19757 "s/'/'\\\\''/g; 19758 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19759 ;; #( 19760 *) 19761 # `set' quotes correctly as required by POSIX, so do not add quotes. 19762 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19763 ;; 19764 esac | 19765 sort 19766) | 19767 sed ' 19768 /^ac_cv_env_/b end 19769 t clear 19770 :clear 19771 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19772 t end 19773 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19774 :end' >>confcache 19775if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19776 if test -w "$cache_file"; then 19777 if test "x$cache_file" != "x/dev/null"; then 19778 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19779$as_echo "$as_me: updating cache $cache_file" >&6;} 19780 if test ! -f "$cache_file" || test -h "$cache_file"; then 19781 cat confcache >"$cache_file" 19782 else 19783 case $cache_file in #( 19784 */* | ?:*) 19785 mv -f confcache "$cache_file"$$ && 19786 mv -f "$cache_file"$$ "$cache_file" ;; #( 19787 *) 19788 mv -f confcache "$cache_file" ;; 19789 esac 19790 fi 19791 fi 19792 else 19793 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19794$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19795 fi 19796fi 19797rm -f confcache 19798 19799test "x$prefix" = xNONE && prefix=$ac_default_prefix 19800# Let make expand exec_prefix. 19801test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19802 19803DEFS=-DHAVE_CONFIG_H 19804 19805ac_libobjs= 19806ac_ltlibobjs= 19807U= 19808for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19809 # 1. Remove the extension, and $U if already installed. 19810 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19811 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19812 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19813 # will be set to the directory where LIBOBJS objects are built. 19814 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19815 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19816done 19817LIBOBJS=$ac_libobjs 19818 19819LTLIBOBJS=$ac_ltlibobjs 19820 19821 19822if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19823 as_fn_error $? "conditional \"AMDEP\" was never defined. 19824Usually this means the macro was only invoked conditionally." "$LINENO" 5 19825fi 19826if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19827 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19828Usually this means the macro was only invoked conditionally." "$LINENO" 5 19829fi 19830 if test -n "$EXEEXT"; then 19831 am__EXEEXT_TRUE= 19832 am__EXEEXT_FALSE='#' 19833else 19834 am__EXEEXT_TRUE='#' 19835 am__EXEEXT_FALSE= 19836fi 19837 19838if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19839 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 19840Usually this means the macro was only invoked conditionally." "$LINENO" 5 19841fi 19842if test -z "${HAVE_A2X_TRUE}" && test -z "${HAVE_A2X_FALSE}"; then 19843 as_fn_error $? "conditional \"HAVE_A2X\" was never defined. 19844Usually this means the macro was only invoked conditionally." "$LINENO" 5 19845fi 19846if test -z "${WITH_MANUAL_TRUE}" && test -z "${WITH_MANUAL_FALSE}"; then 19847 as_fn_error $? "conditional \"WITH_MANUAL\" was never defined. 19848Usually this means the macro was only invoked conditionally." "$LINENO" 5 19849fi 19850if test -z "${ENABLE_CCL_TRUE}" && test -z "${ENABLE_CCL_FALSE}"; then 19851 as_fn_error $? "conditional \"ENABLE_CCL\" was never defined. 19852Usually this means the macro was only invoked conditionally." "$LINENO" 5 19853fi 19854 19855: "${CONFIG_STATUS=./config.status}" 19856ac_write_fail=0 19857ac_clean_files_save=$ac_clean_files 19858ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19859{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19860$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19861as_write_fail=0 19862cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19863#! $SHELL 19864# Generated by $as_me. 19865# Run this file to recreate the current configuration. 19866# Compiler output produced by configure, useful for debugging 19867# configure, is in config.log if it exists. 19868 19869debug=false 19870ac_cs_recheck=false 19871ac_cs_silent=false 19872 19873SHELL=\${CONFIG_SHELL-$SHELL} 19874export SHELL 19875_ASEOF 19876cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19877## -------------------- ## 19878## M4sh Initialization. ## 19879## -------------------- ## 19880 19881# Be more Bourne compatible 19882DUALCASE=1; export DUALCASE # for MKS sh 19883if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19884 emulate sh 19885 NULLCMD=: 19886 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19887 # is contrary to our usage. Disable this feature. 19888 alias -g '${1+"$@"}'='"$@"' 19889 setopt NO_GLOB_SUBST 19890else 19891 case `(set -o) 2>/dev/null` in #( 19892 *posix*) : 19893 set -o posix ;; #( 19894 *) : 19895 ;; 19896esac 19897fi 19898 19899 19900as_nl=' 19901' 19902export as_nl 19903# Printing a long string crashes Solaris 7 /usr/bin/printf. 19904as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19905as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19906as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19907# Prefer a ksh shell builtin over an external printf program on Solaris, 19908# but without wasting forks for bash or zsh. 19909if test -z "$BASH_VERSION$ZSH_VERSION" \ 19910 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19911 as_echo='print -r --' 19912 as_echo_n='print -rn --' 19913elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19914 as_echo='printf %s\n' 19915 as_echo_n='printf %s' 19916else 19917 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19918 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19919 as_echo_n='/usr/ucb/echo -n' 19920 else 19921 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19922 as_echo_n_body='eval 19923 arg=$1; 19924 case $arg in #( 19925 *"$as_nl"*) 19926 expr "X$arg" : "X\\(.*\\)$as_nl"; 19927 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19928 esac; 19929 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19930 ' 19931 export as_echo_n_body 19932 as_echo_n='sh -c $as_echo_n_body as_echo' 19933 fi 19934 export as_echo_body 19935 as_echo='sh -c $as_echo_body as_echo' 19936fi 19937 19938# The user is always right. 19939if test "${PATH_SEPARATOR+set}" != set; then 19940 PATH_SEPARATOR=: 19941 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19942 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19943 PATH_SEPARATOR=';' 19944 } 19945fi 19946 19947 19948# IFS 19949# We need space, tab and new line, in precisely that order. Quoting is 19950# there to prevent editors from complaining about space-tab. 19951# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19952# splitting by setting IFS to empty value.) 19953IFS=" "" $as_nl" 19954 19955# Find who we are. Look in the path if we contain no directory separator. 19956as_myself= 19957case $0 in #(( 19958 *[\\/]* ) as_myself=$0 ;; 19959 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19960for as_dir in $PATH 19961do 19962 IFS=$as_save_IFS 19963 test -z "$as_dir" && as_dir=. 19964 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19965 done 19966IFS=$as_save_IFS 19967 19968 ;; 19969esac 19970# We did not find ourselves, most probably we were run as `sh COMMAND' 19971# in which case we are not to be found in the path. 19972if test "x$as_myself" = x; then 19973 as_myself=$0 19974fi 19975if test ! -f "$as_myself"; then 19976 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19977 exit 1 19978fi 19979 19980# Unset variables that we do not need and which cause bugs (e.g. in 19981# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19982# suppresses any "Segmentation fault" message there. '((' could 19983# trigger a bug in pdksh 5.2.14. 19984for as_var in BASH_ENV ENV MAIL MAILPATH 19985do eval test x\${$as_var+set} = xset \ 19986 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19987done 19988PS1='$ ' 19989PS2='> ' 19990PS4='+ ' 19991 19992# NLS nuisances. 19993LC_ALL=C 19994export LC_ALL 19995LANGUAGE=C 19996export LANGUAGE 19997 19998# CDPATH. 19999(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20000 20001 20002# as_fn_error STATUS ERROR [LINENO LOG_FD] 20003# ---------------------------------------- 20004# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20005# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20006# script with STATUS, using 1 if that was 0. 20007as_fn_error () 20008{ 20009 as_status=$1; test $as_status -eq 0 && as_status=1 20010 if test "$4"; then 20011 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20012 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20013 fi 20014 $as_echo "$as_me: error: $2" >&2 20015 as_fn_exit $as_status 20016} # as_fn_error 20017 20018 20019# as_fn_set_status STATUS 20020# ----------------------- 20021# Set $? to STATUS, without forking. 20022as_fn_set_status () 20023{ 20024 return $1 20025} # as_fn_set_status 20026 20027# as_fn_exit STATUS 20028# ----------------- 20029# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20030as_fn_exit () 20031{ 20032 set +e 20033 as_fn_set_status $1 20034 exit $1 20035} # as_fn_exit 20036 20037# as_fn_unset VAR 20038# --------------- 20039# Portably unset VAR. 20040as_fn_unset () 20041{ 20042 { eval $1=; unset $1;} 20043} 20044as_unset=as_fn_unset 20045# as_fn_append VAR VALUE 20046# ---------------------- 20047# Append the text in VALUE to the end of the definition contained in VAR. Take 20048# advantage of any shell optimizations that allow amortized linear growth over 20049# repeated appends, instead of the typical quadratic growth present in naive 20050# implementations. 20051if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20052 eval 'as_fn_append () 20053 { 20054 eval $1+=\$2 20055 }' 20056else 20057 as_fn_append () 20058 { 20059 eval $1=\$$1\$2 20060 } 20061fi # as_fn_append 20062 20063# as_fn_arith ARG... 20064# ------------------ 20065# Perform arithmetic evaluation on the ARGs, and store the result in the 20066# global $as_val. Take advantage of shells that can avoid forks. The arguments 20067# must be portable across $(()) and expr. 20068if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20069 eval 'as_fn_arith () 20070 { 20071 as_val=$(( $* )) 20072 }' 20073else 20074 as_fn_arith () 20075 { 20076 as_val=`expr "$@" || test $? -eq 1` 20077 } 20078fi # as_fn_arith 20079 20080 20081if expr a : '\(a\)' >/dev/null 2>&1 && 20082 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20083 as_expr=expr 20084else 20085 as_expr=false 20086fi 20087 20088if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20089 as_basename=basename 20090else 20091 as_basename=false 20092fi 20093 20094if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20095 as_dirname=dirname 20096else 20097 as_dirname=false 20098fi 20099 20100as_me=`$as_basename -- "$0" || 20101$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20102 X"$0" : 'X\(//\)$' \| \ 20103 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20104$as_echo X/"$0" | 20105 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20106 s//\1/ 20107 q 20108 } 20109 /^X\/\(\/\/\)$/{ 20110 s//\1/ 20111 q 20112 } 20113 /^X\/\(\/\).*/{ 20114 s//\1/ 20115 q 20116 } 20117 s/.*/./; q'` 20118 20119# Avoid depending upon Character Ranges. 20120as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20121as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20122as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20123as_cr_digits='0123456789' 20124as_cr_alnum=$as_cr_Letters$as_cr_digits 20125 20126ECHO_C= ECHO_N= ECHO_T= 20127case `echo -n x` in #((((( 20128-n*) 20129 case `echo 'xy\c'` in 20130 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20131 xy) ECHO_C='\c';; 20132 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20133 ECHO_T=' ';; 20134 esac;; 20135*) 20136 ECHO_N='-n';; 20137esac 20138 20139rm -f conf$$ conf$$.exe conf$$.file 20140if test -d conf$$.dir; then 20141 rm -f conf$$.dir/conf$$.file 20142else 20143 rm -f conf$$.dir 20144 mkdir conf$$.dir 2>/dev/null 20145fi 20146if (echo >conf$$.file) 2>/dev/null; then 20147 if ln -s conf$$.file conf$$ 2>/dev/null; then 20148 as_ln_s='ln -s' 20149 # ... but there are two gotchas: 20150 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20151 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20152 # In both cases, we have to default to `cp -pR'. 20153 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20154 as_ln_s='cp -pR' 20155 elif ln conf$$.file conf$$ 2>/dev/null; then 20156 as_ln_s=ln 20157 else 20158 as_ln_s='cp -pR' 20159 fi 20160else 20161 as_ln_s='cp -pR' 20162fi 20163rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20164rmdir conf$$.dir 2>/dev/null 20165 20166 20167# as_fn_mkdir_p 20168# ------------- 20169# Create "$as_dir" as a directory, including parents if necessary. 20170as_fn_mkdir_p () 20171{ 20172 20173 case $as_dir in #( 20174 -*) as_dir=./$as_dir;; 20175 esac 20176 test -d "$as_dir" || eval $as_mkdir_p || { 20177 as_dirs= 20178 while :; do 20179 case $as_dir in #( 20180 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20181 *) as_qdir=$as_dir;; 20182 esac 20183 as_dirs="'$as_qdir' $as_dirs" 20184 as_dir=`$as_dirname -- "$as_dir" || 20185$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20186 X"$as_dir" : 'X\(//\)[^/]' \| \ 20187 X"$as_dir" : 'X\(//\)$' \| \ 20188 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20189$as_echo X"$as_dir" | 20190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20191 s//\1/ 20192 q 20193 } 20194 /^X\(\/\/\)[^/].*/{ 20195 s//\1/ 20196 q 20197 } 20198 /^X\(\/\/\)$/{ 20199 s//\1/ 20200 q 20201 } 20202 /^X\(\/\).*/{ 20203 s//\1/ 20204 q 20205 } 20206 s/.*/./; q'` 20207 test -d "$as_dir" && break 20208 done 20209 test -z "$as_dirs" || eval "mkdir $as_dirs" 20210 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20211 20212 20213} # as_fn_mkdir_p 20214if mkdir -p . 2>/dev/null; then 20215 as_mkdir_p='mkdir -p "$as_dir"' 20216else 20217 test -d ./-p && rmdir ./-p 20218 as_mkdir_p=false 20219fi 20220 20221 20222# as_fn_executable_p FILE 20223# ----------------------- 20224# Test if FILE is an executable regular file. 20225as_fn_executable_p () 20226{ 20227 test -f "$1" && test -x "$1" 20228} # as_fn_executable_p 20229as_test_x='test -x' 20230as_executable_p=as_fn_executable_p 20231 20232# Sed expression to map a string onto a valid CPP name. 20233as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20234 20235# Sed expression to map a string onto a valid variable name. 20236as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20237 20238 20239exec 6>&1 20240## ----------------------------------- ## 20241## Main body of $CONFIG_STATUS script. ## 20242## ----------------------------------- ## 20243_ASEOF 20244test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20245 20246cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20247# Save the log message, to keep $0 and so on meaningful, and to 20248# report actual input values of CONFIG_FILES etc. instead of their 20249# values after options handling. 20250ac_log=" 20251This file was extended by cclive $as_me 0.7.16, which was 20252generated by GNU Autoconf 2.69. Invocation command line was 20253 20254 CONFIG_FILES = $CONFIG_FILES 20255 CONFIG_HEADERS = $CONFIG_HEADERS 20256 CONFIG_LINKS = $CONFIG_LINKS 20257 CONFIG_COMMANDS = $CONFIG_COMMANDS 20258 $ $0 $@ 20259 20260on `(hostname || uname -n) 2>/dev/null | sed 1q` 20261" 20262 20263_ACEOF 20264 20265case $ac_config_files in *" 20266"*) set x $ac_config_files; shift; ac_config_files=$*;; 20267esac 20268 20269case $ac_config_headers in *" 20270"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20271esac 20272 20273 20274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20275# Files that config.status was made for. 20276config_files="$ac_config_files" 20277config_headers="$ac_config_headers" 20278config_commands="$ac_config_commands" 20279 20280_ACEOF 20281 20282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20283ac_cs_usage="\ 20284\`$as_me' instantiates files and other configuration actions 20285from templates according to the current configuration. Unless the files 20286and actions are specified as TAGs, all are instantiated by default. 20287 20288Usage: $0 [OPTION]... [TAG]... 20289 20290 -h, --help print this help, then exit 20291 -V, --version print version number and configuration settings, then exit 20292 --config print configuration, then exit 20293 -q, --quiet, --silent 20294 do not print progress messages 20295 -d, --debug don't remove temporary files 20296 --recheck update $as_me by reconfiguring in the same conditions 20297 --file=FILE[:TEMPLATE] 20298 instantiate the configuration file FILE 20299 --header=FILE[:TEMPLATE] 20300 instantiate the configuration header FILE 20301 20302Configuration files: 20303$config_files 20304 20305Configuration headers: 20306$config_headers 20307 20308Configuration commands: 20309$config_commands 20310 20311Report bugs to <http://cclive.sf.net/bugs/>. 20312cclive home page: <http://cclive.sf.net/>." 20313 20314_ACEOF 20315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20316ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20317ac_cs_version="\\ 20318cclive config.status 0.7.16 20319configured by $0, generated by GNU Autoconf 2.69, 20320 with options \\"\$ac_cs_config\\" 20321 20322Copyright (C) 2012 Free Software Foundation, Inc. 20323This config.status script is free software; the Free Software Foundation 20324gives unlimited permission to copy, distribute and modify it." 20325 20326ac_pwd='$ac_pwd' 20327srcdir='$srcdir' 20328INSTALL='$INSTALL' 20329MKDIR_P='$MKDIR_P' 20330AWK='$AWK' 20331test -n "\$AWK" || AWK=awk 20332_ACEOF 20333 20334cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20335# The default lists apply if the user does not specify any file. 20336ac_need_defaults=: 20337while test $# != 0 20338do 20339 case $1 in 20340 --*=?*) 20341 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20342 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20343 ac_shift=: 20344 ;; 20345 --*=) 20346 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20347 ac_optarg= 20348 ac_shift=: 20349 ;; 20350 *) 20351 ac_option=$1 20352 ac_optarg=$2 20353 ac_shift=shift 20354 ;; 20355 esac 20356 20357 case $ac_option in 20358 # Handling of the options. 20359 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20360 ac_cs_recheck=: ;; 20361 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20362 $as_echo "$ac_cs_version"; exit ;; 20363 --config | --confi | --conf | --con | --co | --c ) 20364 $as_echo "$ac_cs_config"; exit ;; 20365 --debug | --debu | --deb | --de | --d | -d ) 20366 debug=: ;; 20367 --file | --fil | --fi | --f ) 20368 $ac_shift 20369 case $ac_optarg in 20370 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20371 '') as_fn_error $? "missing file argument" ;; 20372 esac 20373 as_fn_append CONFIG_FILES " '$ac_optarg'" 20374 ac_need_defaults=false;; 20375 --header | --heade | --head | --hea ) 20376 $ac_shift 20377 case $ac_optarg in 20378 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20379 esac 20380 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20381 ac_need_defaults=false;; 20382 --he | --h) 20383 # Conflict between --help and --header 20384 as_fn_error $? "ambiguous option: \`$1' 20385Try \`$0 --help' for more information.";; 20386 --help | --hel | -h ) 20387 $as_echo "$ac_cs_usage"; exit ;; 20388 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20389 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20390 ac_cs_silent=: ;; 20391 20392 # This is an error. 20393 -*) as_fn_error $? "unrecognized option: \`$1' 20394Try \`$0 --help' for more information." ;; 20395 20396 *) as_fn_append ac_config_targets " $1" 20397 ac_need_defaults=false ;; 20398 20399 esac 20400 shift 20401done 20402 20403ac_configure_extra_args= 20404 20405if $ac_cs_silent; then 20406 exec 6>/dev/null 20407 ac_configure_extra_args="$ac_configure_extra_args --silent" 20408fi 20409 20410_ACEOF 20411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20412if \$ac_cs_recheck; then 20413 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20414 shift 20415 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20416 CONFIG_SHELL='$SHELL' 20417 export CONFIG_SHELL 20418 exec "\$@" 20419fi 20420 20421_ACEOF 20422cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20423exec 5>>config.log 20424{ 20425 echo 20426 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20427## Running $as_me. ## 20428_ASBOX 20429 $as_echo "$ac_log" 20430} >&5 20431 20432_ACEOF 20433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20434# 20435# INIT-COMMANDS 20436# 20437AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20438 20439 20440# The HP-UX ksh and POSIX shell print the target directory to stdout 20441# if CDPATH is set. 20442(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20443 20444sed_quote_subst='$sed_quote_subst' 20445double_quote_subst='$double_quote_subst' 20446delay_variable_subst='$delay_variable_subst' 20447macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20448macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20449enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20450enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20451pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20452enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20453SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20454ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20455PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20456host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20457host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20458host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20459build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20460build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20461build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20462SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20463Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20464GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20465EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20466FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20467LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20468NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20469LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20470max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20471ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20472exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20473lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20474lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20475lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20476lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20477lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20478reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20479reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20480OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20481deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20482file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20483file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20484want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20485DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20486sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20487AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20488AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20489archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20490STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20491RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20492old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20493old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20494old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20495lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20496CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20497CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20498compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20499GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20500lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20501lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20502lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20503lt_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"`' 20504nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20505lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20506objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20507MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20508lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20509lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20510lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20511lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20512lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20513need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20514MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20515DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20516NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20517LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20518OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20519OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20520libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20521shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20522extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20523archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20524enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20525export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20526whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20527compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20528old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20529old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20530archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20531archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20532module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20533module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20534with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20535allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20536no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20537hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20538hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20539hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20540hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20541hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20542hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20543hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20544inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20545link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20546always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20547export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20548exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20549include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20550prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20551postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20552file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20553variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20554need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20555need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20556version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20557runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20558shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20559shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20560libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20561library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20562soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20563install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20564postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20565postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20566finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20567finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20568hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20569sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20570sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 20571hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20572enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20573enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20574enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20575old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20576striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20577compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 20578predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 20579postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 20580predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 20581postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 20582compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 20583LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 20584reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 20585reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20586old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20587compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 20588GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 20589lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 20590lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 20591lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 20592lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 20593lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 20594archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 20595enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 20596export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20597whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20598compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 20599old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20600old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20601archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20602archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20603module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20604module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20605with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 20606allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 20607no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 20608hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20609hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 20610hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 20611hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 20612hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 20613hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 20614hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 20615inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 20616link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 20617always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 20618export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20619exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 20620include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 20621prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20622postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20623file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 20624hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 20625compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 20626predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 20627postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 20628predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 20629postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 20630compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 20631 20632LTCC='$LTCC' 20633LTCFLAGS='$LTCFLAGS' 20634compiler='$compiler_DEFAULT' 20635 20636# A function that is used when there is no print builtin or printf. 20637func_fallback_echo () 20638{ 20639 eval 'cat <<_LTECHO_EOF 20640\$1 20641_LTECHO_EOF' 20642} 20643 20644# Quote evaled strings. 20645for var in SHELL \ 20646ECHO \ 20647PATH_SEPARATOR \ 20648SED \ 20649GREP \ 20650EGREP \ 20651FGREP \ 20652LD \ 20653NM \ 20654LN_S \ 20655lt_SP2NL \ 20656lt_NL2SP \ 20657reload_flag \ 20658OBJDUMP \ 20659deplibs_check_method \ 20660file_magic_cmd \ 20661file_magic_glob \ 20662want_nocaseglob \ 20663DLLTOOL \ 20664sharedlib_from_linklib_cmd \ 20665AR \ 20666AR_FLAGS \ 20667archiver_list_spec \ 20668STRIP \ 20669RANLIB \ 20670CC \ 20671CFLAGS \ 20672compiler \ 20673lt_cv_sys_global_symbol_pipe \ 20674lt_cv_sys_global_symbol_to_cdecl \ 20675lt_cv_sys_global_symbol_to_c_name_address \ 20676lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20677nm_file_list_spec \ 20678lt_prog_compiler_no_builtin_flag \ 20679lt_prog_compiler_pic \ 20680lt_prog_compiler_wl \ 20681lt_prog_compiler_static \ 20682lt_cv_prog_compiler_c_o \ 20683need_locks \ 20684MANIFEST_TOOL \ 20685DSYMUTIL \ 20686NMEDIT \ 20687LIPO \ 20688OTOOL \ 20689OTOOL64 \ 20690shrext_cmds \ 20691export_dynamic_flag_spec \ 20692whole_archive_flag_spec \ 20693compiler_needs_object \ 20694with_gnu_ld \ 20695allow_undefined_flag \ 20696no_undefined_flag \ 20697hardcode_libdir_flag_spec \ 20698hardcode_libdir_separator \ 20699exclude_expsyms \ 20700include_expsyms \ 20701file_list_spec \ 20702variables_saved_for_relink \ 20703libname_spec \ 20704library_names_spec \ 20705soname_spec \ 20706install_override_mode \ 20707finish_eval \ 20708old_striplib \ 20709striplib \ 20710compiler_lib_search_dirs \ 20711predep_objects \ 20712postdep_objects \ 20713predeps \ 20714postdeps \ 20715compiler_lib_search_path \ 20716LD_CXX \ 20717reload_flag_CXX \ 20718compiler_CXX \ 20719lt_prog_compiler_no_builtin_flag_CXX \ 20720lt_prog_compiler_pic_CXX \ 20721lt_prog_compiler_wl_CXX \ 20722lt_prog_compiler_static_CXX \ 20723lt_cv_prog_compiler_c_o_CXX \ 20724export_dynamic_flag_spec_CXX \ 20725whole_archive_flag_spec_CXX \ 20726compiler_needs_object_CXX \ 20727with_gnu_ld_CXX \ 20728allow_undefined_flag_CXX \ 20729no_undefined_flag_CXX \ 20730hardcode_libdir_flag_spec_CXX \ 20731hardcode_libdir_separator_CXX \ 20732exclude_expsyms_CXX \ 20733include_expsyms_CXX \ 20734file_list_spec_CXX \ 20735compiler_lib_search_dirs_CXX \ 20736predep_objects_CXX \ 20737postdep_objects_CXX \ 20738predeps_CXX \ 20739postdeps_CXX \ 20740compiler_lib_search_path_CXX; do 20741 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20742 *[\\\\\\\`\\"\\\$]*) 20743 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 20744 ;; 20745 *) 20746 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20747 ;; 20748 esac 20749done 20750 20751# Double-quote double-evaled strings. 20752for var in reload_cmds \ 20753old_postinstall_cmds \ 20754old_postuninstall_cmds \ 20755old_archive_cmds \ 20756extract_expsyms_cmds \ 20757old_archive_from_new_cmds \ 20758old_archive_from_expsyms_cmds \ 20759archive_cmds \ 20760archive_expsym_cmds \ 20761module_cmds \ 20762module_expsym_cmds \ 20763export_symbols_cmds \ 20764prelink_cmds \ 20765postlink_cmds \ 20766postinstall_cmds \ 20767postuninstall_cmds \ 20768finish_cmds \ 20769sys_lib_search_path_spec \ 20770sys_lib_dlsearch_path_spec \ 20771reload_cmds_CXX \ 20772old_archive_cmds_CXX \ 20773old_archive_from_new_cmds_CXX \ 20774old_archive_from_expsyms_cmds_CXX \ 20775archive_cmds_CXX \ 20776archive_expsym_cmds_CXX \ 20777module_cmds_CXX \ 20778module_expsym_cmds_CXX \ 20779export_symbols_cmds_CXX \ 20780prelink_cmds_CXX \ 20781postlink_cmds_CXX; do 20782 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20783 *[\\\\\\\`\\"\\\$]*) 20784 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 20785 ;; 20786 *) 20787 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20788 ;; 20789 esac 20790done 20791 20792ac_aux_dir='$ac_aux_dir' 20793xsi_shell='$xsi_shell' 20794lt_shell_append='$lt_shell_append' 20795 20796# See if we are running on zsh, and set the options which allow our 20797# commands through without removal of \ escapes INIT. 20798if test -n "\${ZSH_VERSION+set}" ; then 20799 setopt NO_GLOB_SUBST 20800fi 20801 20802 20803 PACKAGE='$PACKAGE' 20804 VERSION='$VERSION' 20805 TIMESTAMP='$TIMESTAMP' 20806 RM='$RM' 20807 ofile='$ofile' 20808 20809 20810 20811 20812 20813 20814_ACEOF 20815 20816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20817 20818# Handling of arguments. 20819for ac_config_target in $ac_config_targets 20820do 20821 case $ac_config_target in 20822 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20823 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20824 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20825 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20826 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 20827 "doc/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man1/Makefile" ;; 20828 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20829 20830 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20831 esac 20832done 20833 20834 20835# If the user did not use the arguments to specify the items to instantiate, 20836# then the envvar interface is used. Set only those that are not. 20837# We use the long form for the default assignment because of an extremely 20838# bizarre bug on SunOS 4.1.3. 20839if $ac_need_defaults; then 20840 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20841 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20842 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20843fi 20844 20845# Have a temporary directory for convenience. Make it in the build tree 20846# simply because there is no reason against having it here, and in addition, 20847# creating and moving files from /tmp can sometimes cause problems. 20848# Hook for its removal unless debugging. 20849# Note that there is a small window in which the directory will not be cleaned: 20850# after its creation but before its name has been assigned to `$tmp'. 20851$debug || 20852{ 20853 tmp= ac_tmp= 20854 trap 'exit_status=$? 20855 : "${ac_tmp:=$tmp}" 20856 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20857' 0 20858 trap 'as_fn_exit 1' 1 2 13 15 20859} 20860# Create a (secure) tmp directory for tmp files. 20861 20862{ 20863 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20864 test -d "$tmp" 20865} || 20866{ 20867 tmp=./conf$$-$RANDOM 20868 (umask 077 && mkdir "$tmp") 20869} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20870ac_tmp=$tmp 20871 20872# Set up the scripts for CONFIG_FILES section. 20873# No need to generate them if there are no CONFIG_FILES. 20874# This happens for instance with `./config.status config.h'. 20875if test -n "$CONFIG_FILES"; then 20876 20877 20878ac_cr=`echo X | tr X '\015'` 20879# On cygwin, bash can eat \r inside `` if the user requested igncr. 20880# But we know of no other shell where ac_cr would be empty at this 20881# point, so we can use a bashism as a fallback. 20882if test "x$ac_cr" = x; then 20883 eval ac_cr=\$\'\\r\' 20884fi 20885ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20886if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20887 ac_cs_awk_cr='\\r' 20888else 20889 ac_cs_awk_cr=$ac_cr 20890fi 20891 20892echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20893_ACEOF 20894 20895 20896{ 20897 echo "cat >conf$$subs.awk <<_ACEOF" && 20898 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20899 echo "_ACEOF" 20900} >conf$$subs.sh || 20901 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20902ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20903ac_delim='%!_!# ' 20904for ac_last_try in false false false false false :; do 20905 . ./conf$$subs.sh || 20906 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20907 20908 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20909 if test $ac_delim_n = $ac_delim_num; then 20910 break 20911 elif $ac_last_try; then 20912 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20913 else 20914 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20915 fi 20916done 20917rm -f conf$$subs.sh 20918 20919cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20920cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20921_ACEOF 20922sed -n ' 20923h 20924s/^/S["/; s/!.*/"]=/ 20925p 20926g 20927s/^[^!]*!// 20928:repl 20929t repl 20930s/'"$ac_delim"'$// 20931t delim 20932:nl 20933h 20934s/\(.\{148\}\)..*/\1/ 20935t more1 20936s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20937p 20938n 20939b repl 20940:more1 20941s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20942p 20943g 20944s/.\{148\}// 20945t nl 20946:delim 20947h 20948s/\(.\{148\}\)..*/\1/ 20949t more2 20950s/["\\]/\\&/g; s/^/"/; s/$/"/ 20951p 20952b 20953:more2 20954s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20955p 20956g 20957s/.\{148\}// 20958t delim 20959' <conf$$subs.awk | sed ' 20960/^[^""]/{ 20961 N 20962 s/\n// 20963} 20964' >>$CONFIG_STATUS || ac_write_fail=1 20965rm -f conf$$subs.awk 20966cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20967_ACAWK 20968cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20969 for (key in S) S_is_set[key] = 1 20970 FS = "" 20971 20972} 20973{ 20974 line = $ 0 20975 nfields = split(line, field, "@") 20976 substed = 0 20977 len = length(field[1]) 20978 for (i = 2; i < nfields; i++) { 20979 key = field[i] 20980 keylen = length(key) 20981 if (S_is_set[key]) { 20982 value = S[key] 20983 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20984 len += length(value) + length(field[++i]) 20985 substed = 1 20986 } else 20987 len += 1 + keylen 20988 } 20989 20990 print line 20991} 20992 20993_ACAWK 20994_ACEOF 20995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20996if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20997 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20998else 20999 cat 21000fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21001 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21002_ACEOF 21003 21004# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21005# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21006# trailing colons and then remove the whole line if VPATH becomes empty 21007# (actually we leave an empty line to preserve line numbers). 21008if test "x$srcdir" = x.; then 21009 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21010h 21011s/// 21012s/^/:/ 21013s/[ ]*$/:/ 21014s/:\$(srcdir):/:/g 21015s/:\${srcdir}:/:/g 21016s/:@srcdir@:/:/g 21017s/^:*// 21018s/:*$// 21019x 21020s/\(=[ ]*\).*/\1/ 21021G 21022s/\n// 21023s/^[^=]*=[ ]*$// 21024}' 21025fi 21026 21027cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21028fi # test -n "$CONFIG_FILES" 21029 21030# Set up the scripts for CONFIG_HEADERS section. 21031# No need to generate them if there are no CONFIG_HEADERS. 21032# This happens for instance with `./config.status Makefile'. 21033if test -n "$CONFIG_HEADERS"; then 21034cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21035BEGIN { 21036_ACEOF 21037 21038# Transform confdefs.h into an awk script `defines.awk', embedded as 21039# here-document in config.status, that substitutes the proper values into 21040# config.h.in to produce config.h. 21041 21042# Create a delimiter string that does not exist in confdefs.h, to ease 21043# handling of long lines. 21044ac_delim='%!_!# ' 21045for ac_last_try in false false :; do 21046 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21047 if test -z "$ac_tt"; then 21048 break 21049 elif $ac_last_try; then 21050 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21051 else 21052 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21053 fi 21054done 21055 21056# For the awk script, D is an array of macro values keyed by name, 21057# likewise P contains macro parameters if any. Preserve backslash 21058# newline sequences. 21059 21060ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21061sed -n ' 21062s/.\{148\}/&'"$ac_delim"'/g 21063t rset 21064:rset 21065s/^[ ]*#[ ]*define[ ][ ]*/ / 21066t def 21067d 21068:def 21069s/\\$// 21070t bsnl 21071s/["\\]/\\&/g 21072s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21073D["\1"]=" \3"/p 21074s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21075d 21076:bsnl 21077s/["\\]/\\&/g 21078s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21079D["\1"]=" \3\\\\\\n"\\/p 21080t cont 21081s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21082t cont 21083d 21084:cont 21085n 21086s/.\{148\}/&'"$ac_delim"'/g 21087t clear 21088:clear 21089s/\\$// 21090t bsnlc 21091s/["\\]/\\&/g; s/^/"/; s/$/"/p 21092d 21093:bsnlc 21094s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21095b cont 21096' <confdefs.h | sed ' 21097s/'"$ac_delim"'/"\\\ 21098"/g' >>$CONFIG_STATUS || ac_write_fail=1 21099 21100cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21101 for (key in D) D_is_set[key] = 1 21102 FS = "" 21103} 21104/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21105 line = \$ 0 21106 split(line, arg, " ") 21107 if (arg[1] == "#") { 21108 defundef = arg[2] 21109 mac1 = arg[3] 21110 } else { 21111 defundef = substr(arg[1], 2) 21112 mac1 = arg[2] 21113 } 21114 split(mac1, mac2, "(") #) 21115 macro = mac2[1] 21116 prefix = substr(line, 1, index(line, defundef) - 1) 21117 if (D_is_set[macro]) { 21118 # Preserve the white space surrounding the "#". 21119 print prefix "define", macro P[macro] D[macro] 21120 next 21121 } else { 21122 # Replace #undef with comments. This is necessary, for example, 21123 # in the case of _POSIX_SOURCE, which is predefined and required 21124 # on some systems where configure will not decide to define it. 21125 if (defundef == "undef") { 21126 print "/*", prefix defundef, macro, "*/" 21127 next 21128 } 21129 } 21130} 21131{ print } 21132_ACAWK 21133_ACEOF 21134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21135 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21136fi # test -n "$CONFIG_HEADERS" 21137 21138 21139eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21140shift 21141for ac_tag 21142do 21143 case $ac_tag in 21144 :[FHLC]) ac_mode=$ac_tag; continue;; 21145 esac 21146 case $ac_mode$ac_tag in 21147 :[FHL]*:*);; 21148 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21149 :[FH]-) ac_tag=-:-;; 21150 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21151 esac 21152 ac_save_IFS=$IFS 21153 IFS=: 21154 set x $ac_tag 21155 IFS=$ac_save_IFS 21156 shift 21157 ac_file=$1 21158 shift 21159 21160 case $ac_mode in 21161 :L) ac_source=$1;; 21162 :[FH]) 21163 ac_file_inputs= 21164 for ac_f 21165 do 21166 case $ac_f in 21167 -) ac_f="$ac_tmp/stdin";; 21168 *) # Look for the file first in the build tree, then in the source tree 21169 # (if the path is not absolute). The absolute path cannot be DOS-style, 21170 # because $ac_f cannot contain `:'. 21171 test -f "$ac_f" || 21172 case $ac_f in 21173 [\\/$]*) false;; 21174 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21175 esac || 21176 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21177 esac 21178 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21179 as_fn_append ac_file_inputs " '$ac_f'" 21180 done 21181 21182 # Let's still pretend it is `configure' which instantiates (i.e., don't 21183 # use $as_me), people would be surprised to read: 21184 # /* config.h. Generated by config.status. */ 21185 configure_input='Generated from '` 21186 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21187 `' by configure.' 21188 if test x"$ac_file" != x-; then 21189 configure_input="$ac_file. $configure_input" 21190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21191$as_echo "$as_me: creating $ac_file" >&6;} 21192 fi 21193 # Neutralize special characters interpreted by sed in replacement strings. 21194 case $configure_input in #( 21195 *\&* | *\|* | *\\* ) 21196 ac_sed_conf_input=`$as_echo "$configure_input" | 21197 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21198 *) ac_sed_conf_input=$configure_input;; 21199 esac 21200 21201 case $ac_tag in 21202 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21203 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21204 esac 21205 ;; 21206 esac 21207 21208 ac_dir=`$as_dirname -- "$ac_file" || 21209$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21210 X"$ac_file" : 'X\(//\)[^/]' \| \ 21211 X"$ac_file" : 'X\(//\)$' \| \ 21212 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21213$as_echo X"$ac_file" | 21214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21215 s//\1/ 21216 q 21217 } 21218 /^X\(\/\/\)[^/].*/{ 21219 s//\1/ 21220 q 21221 } 21222 /^X\(\/\/\)$/{ 21223 s//\1/ 21224 q 21225 } 21226 /^X\(\/\).*/{ 21227 s//\1/ 21228 q 21229 } 21230 s/.*/./; q'` 21231 as_dir="$ac_dir"; as_fn_mkdir_p 21232 ac_builddir=. 21233 21234case "$ac_dir" in 21235.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21236*) 21237 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21238 # A ".." for each directory in $ac_dir_suffix. 21239 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21240 case $ac_top_builddir_sub in 21241 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21242 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21243 esac ;; 21244esac 21245ac_abs_top_builddir=$ac_pwd 21246ac_abs_builddir=$ac_pwd$ac_dir_suffix 21247# for backward compatibility: 21248ac_top_builddir=$ac_top_build_prefix 21249 21250case $srcdir in 21251 .) # We are building in place. 21252 ac_srcdir=. 21253 ac_top_srcdir=$ac_top_builddir_sub 21254 ac_abs_top_srcdir=$ac_pwd ;; 21255 [\\/]* | ?:[\\/]* ) # Absolute name. 21256 ac_srcdir=$srcdir$ac_dir_suffix; 21257 ac_top_srcdir=$srcdir 21258 ac_abs_top_srcdir=$srcdir ;; 21259 *) # Relative name. 21260 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21261 ac_top_srcdir=$ac_top_build_prefix$srcdir 21262 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21263esac 21264ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21265 21266 21267 case $ac_mode in 21268 :F) 21269 # 21270 # CONFIG_FILE 21271 # 21272 21273 case $INSTALL in 21274 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21275 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21276 esac 21277 ac_MKDIR_P=$MKDIR_P 21278 case $MKDIR_P in 21279 [\\/$]* | ?:[\\/]* ) ;; 21280 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21281 esac 21282_ACEOF 21283 21284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21285# If the template does not know about datarootdir, expand it. 21286# FIXME: This hack should be removed a few years after 2.60. 21287ac_datarootdir_hack=; ac_datarootdir_seen= 21288ac_sed_dataroot=' 21289/datarootdir/ { 21290 p 21291 q 21292} 21293/@datadir@/p 21294/@docdir@/p 21295/@infodir@/p 21296/@localedir@/p 21297/@mandir@/p' 21298case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21299*datarootdir*) ac_datarootdir_seen=yes;; 21300*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21302$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21303_ACEOF 21304cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21305 ac_datarootdir_hack=' 21306 s&@datadir@&$datadir&g 21307 s&@docdir@&$docdir&g 21308 s&@infodir@&$infodir&g 21309 s&@localedir@&$localedir&g 21310 s&@mandir@&$mandir&g 21311 s&\\\${datarootdir}&$datarootdir&g' ;; 21312esac 21313_ACEOF 21314 21315# Neutralize VPATH when `$srcdir' = `.'. 21316# Shell code in configure.ac might set extrasub. 21317# FIXME: do we really want to maintain this feature? 21318cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21319ac_sed_extra="$ac_vpsub 21320$extrasub 21321_ACEOF 21322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21323:t 21324/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21325s|@configure_input@|$ac_sed_conf_input|;t t 21326s&@top_builddir@&$ac_top_builddir_sub&;t t 21327s&@top_build_prefix@&$ac_top_build_prefix&;t t 21328s&@srcdir@&$ac_srcdir&;t t 21329s&@abs_srcdir@&$ac_abs_srcdir&;t t 21330s&@top_srcdir@&$ac_top_srcdir&;t t 21331s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21332s&@builddir@&$ac_builddir&;t t 21333s&@abs_builddir@&$ac_abs_builddir&;t t 21334s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21335s&@INSTALL@&$ac_INSTALL&;t t 21336s&@MKDIR_P@&$ac_MKDIR_P&;t t 21337$ac_datarootdir_hack 21338" 21339eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21340 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21341 21342test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21343 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21344 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21345 "$ac_tmp/out"`; test -z "$ac_out"; } && 21346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21347which seems to be undefined. Please make sure it is defined" >&5 21348$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21349which seems to be undefined. Please make sure it is defined" >&2;} 21350 21351 rm -f "$ac_tmp/stdin" 21352 case $ac_file in 21353 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21354 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21355 esac \ 21356 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21357 ;; 21358 :H) 21359 # 21360 # CONFIG_HEADER 21361 # 21362 if test x"$ac_file" != x-; then 21363 { 21364 $as_echo "/* $configure_input */" \ 21365 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21366 } >"$ac_tmp/config.h" \ 21367 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21368 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21369 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21370$as_echo "$as_me: $ac_file is unchanged" >&6;} 21371 else 21372 rm -f "$ac_file" 21373 mv "$ac_tmp/config.h" "$ac_file" \ 21374 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21375 fi 21376 else 21377 $as_echo "/* $configure_input */" \ 21378 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21379 || as_fn_error $? "could not create -" "$LINENO" 5 21380 fi 21381# Compute "$ac_file"'s index in $config_headers. 21382_am_arg="$ac_file" 21383_am_stamp_count=1 21384for _am_header in $config_headers :; do 21385 case $_am_header in 21386 $_am_arg | $_am_arg:* ) 21387 break ;; 21388 * ) 21389 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21390 esac 21391done 21392echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21393$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21394 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21395 X"$_am_arg" : 'X\(//\)$' \| \ 21396 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21397$as_echo X"$_am_arg" | 21398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21399 s//\1/ 21400 q 21401 } 21402 /^X\(\/\/\)[^/].*/{ 21403 s//\1/ 21404 q 21405 } 21406 /^X\(\/\/\)$/{ 21407 s//\1/ 21408 q 21409 } 21410 /^X\(\/\).*/{ 21411 s//\1/ 21412 q 21413 } 21414 s/.*/./; q'`/stamp-h$_am_stamp_count 21415 ;; 21416 21417 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21418$as_echo "$as_me: executing $ac_file commands" >&6;} 21419 ;; 21420 esac 21421 21422 21423 case $ac_file$ac_mode in 21424 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21425 # Autoconf 2.62 quotes --file arguments for eval, but not when files 21426 # are listed without --file. Let's play safe and only enable the eval 21427 # if we detect the quoting. 21428 case $CONFIG_FILES in 21429 *\'*) eval set x "$CONFIG_FILES" ;; 21430 *) set x $CONFIG_FILES ;; 21431 esac 21432 shift 21433 for mf 21434 do 21435 # Strip MF so we end up with the name of the file. 21436 mf=`echo "$mf" | sed -e 's/:.*$//'` 21437 # Check whether this is an Automake generated Makefile or not. 21438 # We used to match only the files named `Makefile.in', but 21439 # some people rename them; so instead we look at the file content. 21440 # Grep'ing the first line is not enough: some people post-process 21441 # each Makefile.in and add a new line on top of each file to say so. 21442 # Grep'ing the whole file is not good either: AIX grep has a line 21443 # limit of 2048, but all sed's we know have understand at least 4000. 21444 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 21445 dirpart=`$as_dirname -- "$mf" || 21446$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21447 X"$mf" : 'X\(//\)[^/]' \| \ 21448 X"$mf" : 'X\(//\)$' \| \ 21449 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21450$as_echo X"$mf" | 21451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21452 s//\1/ 21453 q 21454 } 21455 /^X\(\/\/\)[^/].*/{ 21456 s//\1/ 21457 q 21458 } 21459 /^X\(\/\/\)$/{ 21460 s//\1/ 21461 q 21462 } 21463 /^X\(\/\).*/{ 21464 s//\1/ 21465 q 21466 } 21467 s/.*/./; q'` 21468 else 21469 continue 21470 fi 21471 # Extract the definition of DEPDIR, am__include, and am__quote 21472 # from the Makefile without running `make'. 21473 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21474 test -z "$DEPDIR" && continue 21475 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21476 test -z "am__include" && continue 21477 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21478 # When using ansi2knr, U may be empty or an underscore; expand it 21479 U=`sed -n 's/^U = //p' < "$mf"` 21480 # Find all dependency output files, they are included files with 21481 # $(DEPDIR) in their names. We invoke sed twice because it is the 21482 # simplest approach to changing $(DEPDIR) to its actual value in the 21483 # expansion. 21484 for file in `sed -n " 21485 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21486 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21487 # Make sure the directory exists. 21488 test -f "$dirpart/$file" && continue 21489 fdir=`$as_dirname -- "$file" || 21490$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21491 X"$file" : 'X\(//\)[^/]' \| \ 21492 X"$file" : 'X\(//\)$' \| \ 21493 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21494$as_echo X"$file" | 21495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21496 s//\1/ 21497 q 21498 } 21499 /^X\(\/\/\)[^/].*/{ 21500 s//\1/ 21501 q 21502 } 21503 /^X\(\/\/\)$/{ 21504 s//\1/ 21505 q 21506 } 21507 /^X\(\/\).*/{ 21508 s//\1/ 21509 q 21510 } 21511 s/.*/./; q'` 21512 as_dir=$dirpart/$fdir; as_fn_mkdir_p 21513 # echo "creating $dirpart/$file" 21514 echo '# dummy' > "$dirpart/$file" 21515 done 21516 done 21517} 21518 ;; 21519 "libtool":C) 21520 21521 # See if we are running on zsh, and set the options which allow our 21522 # commands through without removal of \ escapes. 21523 if test -n "${ZSH_VERSION+set}" ; then 21524 setopt NO_GLOB_SUBST 21525 fi 21526 21527 cfgfile="${ofile}T" 21528 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21529 $RM "$cfgfile" 21530 21531 cat <<_LT_EOF >> "$cfgfile" 21532#! $SHELL 21533 21534# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 21535# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 21536# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21537# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21538# 21539# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 21540# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 21541# Foundation, Inc. 21542# Written by Gordon Matzigkeit, 1996 21543# 21544# This file is part of GNU Libtool. 21545# 21546# GNU Libtool is free software; you can redistribute it and/or 21547# modify it under the terms of the GNU General Public License as 21548# published by the Free Software Foundation; either version 2 of 21549# the License, or (at your option) any later version. 21550# 21551# As a special exception to the GNU General Public License, 21552# if you distribute this file as part of a program or library that 21553# is built using GNU Libtool, you may include this file under the 21554# same distribution terms that you use for the rest of that program. 21555# 21556# GNU Libtool is distributed in the hope that it will be useful, 21557# but WITHOUT ANY WARRANTY; without even the implied warranty of 21558# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21559# GNU General Public License for more details. 21560# 21561# You should have received a copy of the GNU General Public License 21562# along with GNU Libtool; see the file COPYING. If not, a copy 21563# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 21564# obtained by writing to the Free Software Foundation, Inc., 21565# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21566 21567 21568# The names of the tagged configurations supported by this script. 21569available_tags="CXX " 21570 21571# ### BEGIN LIBTOOL CONFIG 21572 21573# Which release of libtool.m4 was used? 21574macro_version=$macro_version 21575macro_revision=$macro_revision 21576 21577# Whether or not to build static libraries. 21578build_old_libs=$enable_static 21579 21580# Whether or not to build shared libraries. 21581build_libtool_libs=$enable_shared 21582 21583# What type of objects to build. 21584pic_mode=$pic_mode 21585 21586# Whether or not to optimize for fast installation. 21587fast_install=$enable_fast_install 21588 21589# Shell to use when invoking shell scripts. 21590SHELL=$lt_SHELL 21591 21592# An echo program that protects backslashes. 21593ECHO=$lt_ECHO 21594 21595# The PATH separator for the build system. 21596PATH_SEPARATOR=$lt_PATH_SEPARATOR 21597 21598# The host system. 21599host_alias=$host_alias 21600host=$host 21601host_os=$host_os 21602 21603# The build system. 21604build_alias=$build_alias 21605build=$build 21606build_os=$build_os 21607 21608# A sed program that does not truncate output. 21609SED=$lt_SED 21610 21611# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21612Xsed="\$SED -e 1s/^X//" 21613 21614# A grep program that handles long lines. 21615GREP=$lt_GREP 21616 21617# An ERE matcher. 21618EGREP=$lt_EGREP 21619 21620# A literal string matcher. 21621FGREP=$lt_FGREP 21622 21623# A BSD- or MS-compatible name lister. 21624NM=$lt_NM 21625 21626# Whether we need soft or hard links. 21627LN_S=$lt_LN_S 21628 21629# What is the maximum length of a command? 21630max_cmd_len=$max_cmd_len 21631 21632# Object file suffix (normally "o"). 21633objext=$ac_objext 21634 21635# Executable file suffix (normally ""). 21636exeext=$exeext 21637 21638# whether the shell understands "unset". 21639lt_unset=$lt_unset 21640 21641# turn spaces into newlines. 21642SP2NL=$lt_lt_SP2NL 21643 21644# turn newlines into spaces. 21645NL2SP=$lt_lt_NL2SP 21646 21647# convert \$build file names to \$host format. 21648to_host_file_cmd=$lt_cv_to_host_file_cmd 21649 21650# convert \$build files to toolchain format. 21651to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21652 21653# An object symbol dumper. 21654OBJDUMP=$lt_OBJDUMP 21655 21656# Method to check whether dependent libraries are shared objects. 21657deplibs_check_method=$lt_deplibs_check_method 21658 21659# Command to use when deplibs_check_method = "file_magic". 21660file_magic_cmd=$lt_file_magic_cmd 21661 21662# How to find potential files when deplibs_check_method = "file_magic". 21663file_magic_glob=$lt_file_magic_glob 21664 21665# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21666want_nocaseglob=$lt_want_nocaseglob 21667 21668# DLL creation program. 21669DLLTOOL=$lt_DLLTOOL 21670 21671# Command to associate shared and link libraries. 21672sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21673 21674# The archiver. 21675AR=$lt_AR 21676 21677# Flags to create an archive. 21678AR_FLAGS=$lt_AR_FLAGS 21679 21680# How to feed a file listing to the archiver. 21681archiver_list_spec=$lt_archiver_list_spec 21682 21683# A symbol stripping program. 21684STRIP=$lt_STRIP 21685 21686# Commands used to install an old-style archive. 21687RANLIB=$lt_RANLIB 21688old_postinstall_cmds=$lt_old_postinstall_cmds 21689old_postuninstall_cmds=$lt_old_postuninstall_cmds 21690 21691# Whether to use a lock for old archive extraction. 21692lock_old_archive_extraction=$lock_old_archive_extraction 21693 21694# A C compiler. 21695LTCC=$lt_CC 21696 21697# LTCC compiler flags. 21698LTCFLAGS=$lt_CFLAGS 21699 21700# Take the output of nm and produce a listing of raw symbols and C names. 21701global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21702 21703# Transform the output of nm in a proper C declaration. 21704global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21705 21706# Transform the output of nm in a C name address pair. 21707global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21708 21709# Transform the output of nm in a C name address pair when lib prefix is needed. 21710global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21711 21712# Specify filename containing input files for \$NM. 21713nm_file_list_spec=$lt_nm_file_list_spec 21714 21715# The root where to search for dependent libraries,and in which our libraries should be installed. 21716lt_sysroot=$lt_sysroot 21717 21718# The name of the directory that contains temporary libtool files. 21719objdir=$objdir 21720 21721# Used to examine libraries when file_magic_cmd begins with "file". 21722MAGIC_CMD=$MAGIC_CMD 21723 21724# Must we lock files when doing compilation? 21725need_locks=$lt_need_locks 21726 21727# Manifest tool. 21728MANIFEST_TOOL=$lt_MANIFEST_TOOL 21729 21730# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21731DSYMUTIL=$lt_DSYMUTIL 21732 21733# Tool to change global to local symbols on Mac OS X. 21734NMEDIT=$lt_NMEDIT 21735 21736# Tool to manipulate fat objects and archives on Mac OS X. 21737LIPO=$lt_LIPO 21738 21739# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21740OTOOL=$lt_OTOOL 21741 21742# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21743OTOOL64=$lt_OTOOL64 21744 21745# Old archive suffix (normally "a"). 21746libext=$libext 21747 21748# Shared library suffix (normally ".so"). 21749shrext_cmds=$lt_shrext_cmds 21750 21751# The commands to extract the exported symbol list from a shared archive. 21752extract_expsyms_cmds=$lt_extract_expsyms_cmds 21753 21754# Variables whose values should be saved in libtool wrapper scripts and 21755# restored at link time. 21756variables_saved_for_relink=$lt_variables_saved_for_relink 21757 21758# Do we need the "lib" prefix for modules? 21759need_lib_prefix=$need_lib_prefix 21760 21761# Do we need a version for libraries? 21762need_version=$need_version 21763 21764# Library versioning type. 21765version_type=$version_type 21766 21767# Shared library runtime path variable. 21768runpath_var=$runpath_var 21769 21770# Shared library path variable. 21771shlibpath_var=$shlibpath_var 21772 21773# Is shlibpath searched before the hard-coded library search path? 21774shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21775 21776# Format of library name prefix. 21777libname_spec=$lt_libname_spec 21778 21779# List of archive names. First name is the real one, the rest are links. 21780# The last name is the one that the linker finds with -lNAME 21781library_names_spec=$lt_library_names_spec 21782 21783# The coded name of the library, if different from the real name. 21784soname_spec=$lt_soname_spec 21785 21786# Permission mode override for installation of shared libraries. 21787install_override_mode=$lt_install_override_mode 21788 21789# Command to use after installation of a shared archive. 21790postinstall_cmds=$lt_postinstall_cmds 21791 21792# Command to use after uninstallation of a shared archive. 21793postuninstall_cmds=$lt_postuninstall_cmds 21794 21795# Commands used to finish a libtool library installation in a directory. 21796finish_cmds=$lt_finish_cmds 21797 21798# As "finish_cmds", except a single script fragment to be evaled but 21799# not shown. 21800finish_eval=$lt_finish_eval 21801 21802# Whether we should hardcode library paths into libraries. 21803hardcode_into_libs=$hardcode_into_libs 21804 21805# Compile-time system search path for libraries. 21806sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21807 21808# Run-time system search path for libraries. 21809sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21810 21811# Whether dlopen is supported. 21812dlopen_support=$enable_dlopen 21813 21814# Whether dlopen of programs is supported. 21815dlopen_self=$enable_dlopen_self 21816 21817# Whether dlopen of statically linked programs is supported. 21818dlopen_self_static=$enable_dlopen_self_static 21819 21820# Commands to strip libraries. 21821old_striplib=$lt_old_striplib 21822striplib=$lt_striplib 21823 21824 21825# The linker used to build libraries. 21826LD=$lt_LD 21827 21828# How to create reloadable object files. 21829reload_flag=$lt_reload_flag 21830reload_cmds=$lt_reload_cmds 21831 21832# Commands used to build an old-style archive. 21833old_archive_cmds=$lt_old_archive_cmds 21834 21835# A language specific compiler. 21836CC=$lt_compiler 21837 21838# Is the compiler the GNU compiler? 21839with_gcc=$GCC 21840 21841# Compiler flag to turn off builtin functions. 21842no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21843 21844# Additional compiler flags for building library objects. 21845pic_flag=$lt_lt_prog_compiler_pic 21846 21847# How to pass a linker flag through the compiler. 21848wl=$lt_lt_prog_compiler_wl 21849 21850# Compiler flag to prevent dynamic linking. 21851link_static_flag=$lt_lt_prog_compiler_static 21852 21853# Does compiler simultaneously support -c and -o options? 21854compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21855 21856# Whether or not to add -lc for building shared libraries. 21857build_libtool_need_lc=$archive_cmds_need_lc 21858 21859# Whether or not to disallow shared libs when runtime libs are static. 21860allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21861 21862# Compiler flag to allow reflexive dlopens. 21863export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21864 21865# Compiler flag to generate shared objects directly from archives. 21866whole_archive_flag_spec=$lt_whole_archive_flag_spec 21867 21868# Whether the compiler copes with passing no objects directly. 21869compiler_needs_object=$lt_compiler_needs_object 21870 21871# Create an old-style archive from a shared archive. 21872old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21873 21874# Create a temporary old-style archive to link instead of a shared archive. 21875old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21876 21877# Commands used to build a shared archive. 21878archive_cmds=$lt_archive_cmds 21879archive_expsym_cmds=$lt_archive_expsym_cmds 21880 21881# Commands used to build a loadable module if different from building 21882# a shared archive. 21883module_cmds=$lt_module_cmds 21884module_expsym_cmds=$lt_module_expsym_cmds 21885 21886# Whether we are building with GNU ld or not. 21887with_gnu_ld=$lt_with_gnu_ld 21888 21889# Flag that allows shared libraries with undefined symbols to be built. 21890allow_undefined_flag=$lt_allow_undefined_flag 21891 21892# Flag that enforces no undefined symbols. 21893no_undefined_flag=$lt_no_undefined_flag 21894 21895# Flag to hardcode \$libdir into a binary during linking. 21896# This must work even if \$libdir does not exist 21897hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21898 21899# Whether we need a single "-rpath" flag with a separated argument. 21900hardcode_libdir_separator=$lt_hardcode_libdir_separator 21901 21902# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21903# DIR into the resulting binary. 21904hardcode_direct=$hardcode_direct 21905 21906# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21907# DIR into the resulting binary and the resulting library dependency is 21908# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21909# library is relocated. 21910hardcode_direct_absolute=$hardcode_direct_absolute 21911 21912# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21913# into the resulting binary. 21914hardcode_minus_L=$hardcode_minus_L 21915 21916# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21917# into the resulting binary. 21918hardcode_shlibpath_var=$hardcode_shlibpath_var 21919 21920# Set to "yes" if building a shared library automatically hardcodes DIR 21921# into the library and all subsequent libraries and executables linked 21922# against it. 21923hardcode_automatic=$hardcode_automatic 21924 21925# Set to yes if linker adds runtime paths of dependent libraries 21926# to runtime path list. 21927inherit_rpath=$inherit_rpath 21928 21929# Whether libtool must link a program against all its dependency libraries. 21930link_all_deplibs=$link_all_deplibs 21931 21932# Set to "yes" if exported symbols are required. 21933always_export_symbols=$always_export_symbols 21934 21935# The commands to list exported symbols. 21936export_symbols_cmds=$lt_export_symbols_cmds 21937 21938# Symbols that should not be listed in the preloaded symbols. 21939exclude_expsyms=$lt_exclude_expsyms 21940 21941# Symbols that must always be exported. 21942include_expsyms=$lt_include_expsyms 21943 21944# Commands necessary for linking programs (against libraries) with templates. 21945prelink_cmds=$lt_prelink_cmds 21946 21947# Commands necessary for finishing linking programs. 21948postlink_cmds=$lt_postlink_cmds 21949 21950# Specify filename containing input files. 21951file_list_spec=$lt_file_list_spec 21952 21953# How to hardcode a shared library path into an executable. 21954hardcode_action=$hardcode_action 21955 21956# The directories searched by this compiler when creating a shared library. 21957compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 21958 21959# Dependencies to place before and after the objects being linked to 21960# create a shared library. 21961predep_objects=$lt_predep_objects 21962postdep_objects=$lt_postdep_objects 21963predeps=$lt_predeps 21964postdeps=$lt_postdeps 21965 21966# The library search path used internally by the compiler when linking 21967# a shared library. 21968compiler_lib_search_path=$lt_compiler_lib_search_path 21969 21970# ### END LIBTOOL CONFIG 21971 21972_LT_EOF 21973 21974 case $host_os in 21975 aix3*) 21976 cat <<\_LT_EOF >> "$cfgfile" 21977# AIX sometimes has problems with the GCC collect2 program. For some 21978# reason, if we set the COLLECT_NAMES environment variable, the problems 21979# vanish in a puff of smoke. 21980if test "X${COLLECT_NAMES+set}" != Xset; then 21981 COLLECT_NAMES= 21982 export COLLECT_NAMES 21983fi 21984_LT_EOF 21985 ;; 21986 esac 21987 21988 21989ltmain="$ac_aux_dir/ltmain.sh" 21990 21991 21992 # We use sed instead of cat because bash on DJGPP gets confused if 21993 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21994 # text mode, it properly converts lines to CR/LF. This bash problem 21995 # is reportedly fixed, but why not run on old versions too? 21996 sed '$q' "$ltmain" >> "$cfgfile" \ 21997 || (rm -f "$cfgfile"; exit 1) 21998 21999 if test x"$xsi_shell" = xyes; then 22000 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 22001func_dirname ()\ 22002{\ 22003\ case ${1} in\ 22004\ */*) func_dirname_result="${1%/*}${2}" ;;\ 22005\ * ) func_dirname_result="${3}" ;;\ 22006\ esac\ 22007} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 22008 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22009 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22010test 0 -eq $? || _lt_function_replace_fail=: 22011 22012 22013 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 22014func_basename ()\ 22015{\ 22016\ func_basename_result="${1##*/}"\ 22017} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 22018 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22019 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22020test 0 -eq $? || _lt_function_replace_fail=: 22021 22022 22023 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 22024func_dirname_and_basename ()\ 22025{\ 22026\ case ${1} in\ 22027\ */*) func_dirname_result="${1%/*}${2}" ;;\ 22028\ * ) func_dirname_result="${3}" ;;\ 22029\ esac\ 22030\ func_basename_result="${1##*/}"\ 22031} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 22032 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22033 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22034test 0 -eq $? || _lt_function_replace_fail=: 22035 22036 22037 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 22038func_stripname ()\ 22039{\ 22040\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 22041\ # positional parameters, so assign one to ordinary parameter first.\ 22042\ func_stripname_result=${3}\ 22043\ func_stripname_result=${func_stripname_result#"${1}"}\ 22044\ func_stripname_result=${func_stripname_result%"${2}"}\ 22045} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 22046 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22047 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22048test 0 -eq $? || _lt_function_replace_fail=: 22049 22050 22051 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 22052func_split_long_opt ()\ 22053{\ 22054\ func_split_long_opt_name=${1%%=*}\ 22055\ func_split_long_opt_arg=${1#*=}\ 22056} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 22057 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22058 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22059test 0 -eq $? || _lt_function_replace_fail=: 22060 22061 22062 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 22063func_split_short_opt ()\ 22064{\ 22065\ func_split_short_opt_arg=${1#??}\ 22066\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 22067} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 22068 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22069 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22070test 0 -eq $? || _lt_function_replace_fail=: 22071 22072 22073 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 22074func_lo2o ()\ 22075{\ 22076\ case ${1} in\ 22077\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 22078\ *) func_lo2o_result=${1} ;;\ 22079\ esac\ 22080} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 22081 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22082 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22083test 0 -eq $? || _lt_function_replace_fail=: 22084 22085 22086 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 22087func_xform ()\ 22088{\ 22089 func_xform_result=${1%.*}.lo\ 22090} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 22091 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22092 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22093test 0 -eq $? || _lt_function_replace_fail=: 22094 22095 22096 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 22097func_arith ()\ 22098{\ 22099 func_arith_result=$(( $* ))\ 22100} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 22101 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22102 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22103test 0 -eq $? || _lt_function_replace_fail=: 22104 22105 22106 sed -e '/^func_len ()$/,/^} # func_len /c\ 22107func_len ()\ 22108{\ 22109 func_len_result=${#1}\ 22110} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 22111 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22112 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22113test 0 -eq $? || _lt_function_replace_fail=: 22114 22115fi 22116 22117if test x"$lt_shell_append" = xyes; then 22118 sed -e '/^func_append ()$/,/^} # func_append /c\ 22119func_append ()\ 22120{\ 22121 eval "${1}+=\\${2}"\ 22122} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 22123 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22124 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22125test 0 -eq $? || _lt_function_replace_fail=: 22126 22127 22128 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 22129func_append_quoted ()\ 22130{\ 22131\ func_quote_for_eval "${2}"\ 22132\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 22133} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 22134 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22135 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22136test 0 -eq $? || _lt_function_replace_fail=: 22137 22138 22139 # Save a `func_append' function call where possible by direct use of '+=' 22140 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 22141 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22142 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22143 test 0 -eq $? || _lt_function_replace_fail=: 22144else 22145 # Save a `func_append' function call even when '+=' is not available 22146 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 22147 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22148 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22149 test 0 -eq $? || _lt_function_replace_fail=: 22150fi 22151 22152if test x"$_lt_function_replace_fail" = x":"; then 22153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 22154$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 22155fi 22156 22157 22158 mv -f "$cfgfile" "$ofile" || 22159 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22160 chmod +x "$ofile" 22161 22162 22163 cat <<_LT_EOF >> "$ofile" 22164 22165# ### BEGIN LIBTOOL TAG CONFIG: CXX 22166 22167# The linker used to build libraries. 22168LD=$lt_LD_CXX 22169 22170# How to create reloadable object files. 22171reload_flag=$lt_reload_flag_CXX 22172reload_cmds=$lt_reload_cmds_CXX 22173 22174# Commands used to build an old-style archive. 22175old_archive_cmds=$lt_old_archive_cmds_CXX 22176 22177# A language specific compiler. 22178CC=$lt_compiler_CXX 22179 22180# Is the compiler the GNU compiler? 22181with_gcc=$GCC_CXX 22182 22183# Compiler flag to turn off builtin functions. 22184no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 22185 22186# Additional compiler flags for building library objects. 22187pic_flag=$lt_lt_prog_compiler_pic_CXX 22188 22189# How to pass a linker flag through the compiler. 22190wl=$lt_lt_prog_compiler_wl_CXX 22191 22192# Compiler flag to prevent dynamic linking. 22193link_static_flag=$lt_lt_prog_compiler_static_CXX 22194 22195# Does compiler simultaneously support -c and -o options? 22196compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 22197 22198# Whether or not to add -lc for building shared libraries. 22199build_libtool_need_lc=$archive_cmds_need_lc_CXX 22200 22201# Whether or not to disallow shared libs when runtime libs are static. 22202allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 22203 22204# Compiler flag to allow reflexive dlopens. 22205export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 22206 22207# Compiler flag to generate shared objects directly from archives. 22208whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 22209 22210# Whether the compiler copes with passing no objects directly. 22211compiler_needs_object=$lt_compiler_needs_object_CXX 22212 22213# Create an old-style archive from a shared archive. 22214old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 22215 22216# Create a temporary old-style archive to link instead of a shared archive. 22217old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 22218 22219# Commands used to build a shared archive. 22220archive_cmds=$lt_archive_cmds_CXX 22221archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 22222 22223# Commands used to build a loadable module if different from building 22224# a shared archive. 22225module_cmds=$lt_module_cmds_CXX 22226module_expsym_cmds=$lt_module_expsym_cmds_CXX 22227 22228# Whether we are building with GNU ld or not. 22229with_gnu_ld=$lt_with_gnu_ld_CXX 22230 22231# Flag that allows shared libraries with undefined symbols to be built. 22232allow_undefined_flag=$lt_allow_undefined_flag_CXX 22233 22234# Flag that enforces no undefined symbols. 22235no_undefined_flag=$lt_no_undefined_flag_CXX 22236 22237# Flag to hardcode \$libdir into a binary during linking. 22238# This must work even if \$libdir does not exist 22239hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 22240 22241# Whether we need a single "-rpath" flag with a separated argument. 22242hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 22243 22244# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22245# DIR into the resulting binary. 22246hardcode_direct=$hardcode_direct_CXX 22247 22248# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22249# DIR into the resulting binary and the resulting library dependency is 22250# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 22251# library is relocated. 22252hardcode_direct_absolute=$hardcode_direct_absolute_CXX 22253 22254# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22255# into the resulting binary. 22256hardcode_minus_L=$hardcode_minus_L_CXX 22257 22258# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22259# into the resulting binary. 22260hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 22261 22262# Set to "yes" if building a shared library automatically hardcodes DIR 22263# into the library and all subsequent libraries and executables linked 22264# against it. 22265hardcode_automatic=$hardcode_automatic_CXX 22266 22267# Set to yes if linker adds runtime paths of dependent libraries 22268# to runtime path list. 22269inherit_rpath=$inherit_rpath_CXX 22270 22271# Whether libtool must link a program against all its dependency libraries. 22272link_all_deplibs=$link_all_deplibs_CXX 22273 22274# Set to "yes" if exported symbols are required. 22275always_export_symbols=$always_export_symbols_CXX 22276 22277# The commands to list exported symbols. 22278export_symbols_cmds=$lt_export_symbols_cmds_CXX 22279 22280# Symbols that should not be listed in the preloaded symbols. 22281exclude_expsyms=$lt_exclude_expsyms_CXX 22282 22283# Symbols that must always be exported. 22284include_expsyms=$lt_include_expsyms_CXX 22285 22286# Commands necessary for linking programs (against libraries) with templates. 22287prelink_cmds=$lt_prelink_cmds_CXX 22288 22289# Commands necessary for finishing linking programs. 22290postlink_cmds=$lt_postlink_cmds_CXX 22291 22292# Specify filename containing input files. 22293file_list_spec=$lt_file_list_spec_CXX 22294 22295# How to hardcode a shared library path into an executable. 22296hardcode_action=$hardcode_action_CXX 22297 22298# The directories searched by this compiler when creating a shared library. 22299compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 22300 22301# Dependencies to place before and after the objects being linked to 22302# create a shared library. 22303predep_objects=$lt_predep_objects_CXX 22304postdep_objects=$lt_postdep_objects_CXX 22305predeps=$lt_predeps_CXX 22306postdeps=$lt_postdeps_CXX 22307 22308# The library search path used internally by the compiler when linking 22309# a shared library. 22310compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 22311 22312# ### END LIBTOOL TAG CONFIG: CXX 22313_LT_EOF 22314 22315 ;; 22316 22317 esac 22318done # for ac_tag 22319 22320 22321as_fn_exit 0 22322_ACEOF 22323ac_clean_files=$ac_clean_files_save 22324 22325test $ac_write_fail = 0 || 22326 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22327 22328 22329# configure is writing to config.log, and then calls config.status. 22330# config.status does its own redirection, appending to config.log. 22331# Unfortunately, on DOS this fails, as config.log is still kept open 22332# by configure, so config.status won't be able to write to it; its 22333# output is simply discarded. So we exec the FD to /dev/null, 22334# effectively closing config.log, so it can be properly (re)opened and 22335# appended to by config.status. When coming back to configure, we 22336# need to make the FD available again. 22337if test "$no_create" != yes; then 22338 ac_cs_success=: 22339 ac_config_status_args= 22340 test "$silent" = yes && 22341 ac_config_status_args="$ac_config_status_args --quiet" 22342 exec 5>/dev/null 22343 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22344 exec 5>>config.log 22345 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22346 # would make configure fail if this is the last instruction. 22347 $ac_cs_success || as_fn_exit 1 22348fi 22349if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22351$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22352fi 22353 22354 22355{ $as_echo "$as_me:${as_lineno-$LINENO}: 22356 version: ${VERSION} 22357 prefix: ${prefix} 22358 compiler: ${CXX} 22359 flags: ${CXXFLAGS} 22360System types: 22361 target ${target} 22362 build ${build} 22363 host ${host} 22364Options: 22365 add ccl symlink: ${enable_ccl} 22366 install manual : ${with_manual}" >&5 22367$as_echo "$as_me: 22368 version: ${VERSION} 22369 prefix: ${prefix} 22370 compiler: ${CXX} 22371 flags: ${CXXFLAGS} 22372System types: 22373 target ${target} 22374 build ${build} 22375 host ${host} 22376Options: 22377 add ccl symlink: ${enable_ccl} 22378 install manual : ${with_manual}" >&6;} 22379 22380# vim: set ts=2 sw=2 tw=72 expandtab: 22381