1@%:@! /bin/sh 2@%:@ Guess values for system-dependent variables and create Makefiles. 3@%:@ Generated by GNU Autoconf 2.69 for linuxsampler 2.2.0. 4@%:@ 5@%:@ 6@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7@%:@ 8@%:@ 9@%:@ This configure script is free software; the Free Software Foundation 10@%:@ gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in @%:@( 26 *posix*) : 27 set -o posix ;; @%:@( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in @%:@( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in @%:@(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in @%:@ (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in @%:@( 170 *posix*) : 171 set -o posix ;; @%:@( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in @%:@( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in @%:@ (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293@%:@ as_fn_unset VAR 294@%:@ --------------- 295@%:@ Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302@%:@ as_fn_set_status STATUS 303@%:@ ----------------------- 304@%:@ Set @S|@? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} @%:@ as_fn_set_status 309 310@%:@ as_fn_exit STATUS 311@%:@ ----------------- 312@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} @%:@ as_fn_exit 319 320@%:@ as_fn_mkdir_p 321@%:@ ------------- 322@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} @%:@ as_fn_mkdir_p 367 368@%:@ as_fn_executable_p FILE 369@%:@ ----------------------- 370@%:@ Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} @%:@ as_fn_executable_p 375@%:@ as_fn_append VAR VALUE 376@%:@ ---------------------- 377@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take 378@%:@ advantage of any shell optimizations that allow amortized linear growth over 379@%:@ repeated appends, instead of the typical quadratic growth present in naive 380@%:@ implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393@%:@ as_fn_arith ARG... 394@%:@ ------------------ 395@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the 396@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments 397@%:@ must be portable across @S|@(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] 412@%:@ ---------------------------------------- 413@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415@%:@ script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} @%:@ as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in @%:@((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIB@&t@OBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='linuxsampler' 589PACKAGE_TARNAME='linuxsampler' 590PACKAGE_VERSION='2.2.0' 591PACKAGE_STRING='linuxsampler 2.2.0' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="configure.ac" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='am__EXEEXT_FALSE 633am__EXEEXT_TRUE 634LTLIBOBJS 635LIB@&t@OBJS 636config_default_instruments_db_file 637config_plugin_dir 638HAVE_SQLITE3_FALSE 639HAVE_SQLITE3_TRUE 640SQLITE3_LIBS 641SQLITE3_CFLAGS 642SNDFILE_LIBS 643SNDFILE_CFLAGS 644HAVE_SF2_FALSE 645HAVE_SF2_TRUE 646GIG_LIBS 647GIG_CFLAGS 648MAC_PLUGIN_INSTALL_DIR 649DEVELOPER_EXTRAS_DIR 650HAVE_AUFLAGS_FALSE 651HAVE_AUFLAGS_TRUE 652HAVE_AU_FALSE 653HAVE_AU_TRUE 654HAVE_VST_FALSE 655HAVE_VST_TRUE 656VSTSDK_DIR 657HAVE_LV2_FALSE 658HAVE_LV2_TRUE 659LV2_LIBS 660LV2_CFLAGS 661HAVE_DSSI_FALSE 662HAVE_DSSI_TRUE 663HAVE_MME_MIDI_FALSE 664HAVE_MME_MIDI_TRUE 665HAVE_COREAUDIO_FALSE 666HAVE_COREAUDIO_TRUE 667HAVE_COREMIDI_FALSE 668HAVE_COREMIDI_TRUE 669HAVE_MIDISHARE_FALSE 670HAVE_MIDISHARE_TRUE 671HAVE_ASIO_FALSE 672HAVE_ASIO_TRUE 673ASIOSDK_BASEDIR 674config_asiosdk_dir 675HAVE_ARTS_FALSE 676HAVE_ARTS_TRUE 677ARTS_LIBS 678ARTS_CFLAGS 679ARTS_CONFIG 680HAVE_JACK_MIDI_FALSE 681HAVE_JACK_MIDI_TRUE 682HAVE_JACK_FALSE 683HAVE_JACK_TRUE 684JACK_LIBS 685JACK_CFLAGS 686HAVE_ALSA_FALSE 687HAVE_ALSA_TRUE 688PTHREAD_CFLAGS 689PTHREAD_LIBS 690PTHREAD_CC 691acx_pthread_config 692HAVE_WINDOWS_FALSE 693HAVE_WINDOWS_TRUE 694MAC_FALSE 695MAC_TRUE 696LINUX_FALSE 697LINUX_TRUE 698CXX_CPU_SWITCH 699HAVE_CXX14 700CROSS_COMPILING_FALSE 701CROSS_COMPILING_TRUE 702PKG_CONFIG_LIBDIR 703PKG_CONFIG_PATH 704PKG_CONFIG 705LIB_EXT 706SHARED_VERSION_INFO 707SHLIB_VERSION_ARG 708YFLAGS 709YACC 710LEXLIB 711LEX_OUTPUT_ROOT 712LEX 713CXXCPP 714CPP 715LT_SYS_LIBRARY_PATH 716OTOOL64 717OTOOL 718LIPO 719NMEDIT 720DSYMUTIL 721MANIFEST_TOOL 722RANLIB 723ac_ct_AR 724AR 725LN_S 726NM 727ac_ct_DUMPBIN 728DUMPBIN 729LD 730FGREP 731EGREP 732GREP 733SED 734LIBTOOL 735OBJDUMP 736DLLTOOL 737AS 738host_os 739host_vendor 740host_cpu 741host 742build_os 743build_vendor 744build_cpu 745build 746am__fastdepCXX_FALSE 747am__fastdepCXX_TRUE 748CXXDEPMODE 749ac_ct_CXX 750CXXFLAGS 751CXX 752am__fastdepCC_FALSE 753am__fastdepCC_TRUE 754CCDEPMODE 755am__nodep 756AMDEPBACKSLASH 757AMDEP_FALSE 758AMDEP_TRUE 759am__include 760DEPDIR 761OBJEXT 762EXEEXT 763ac_ct_CC 764CPPFLAGS 765LDFLAGS 766CFLAGS 767CC 768AM_BACKSLASH 769AM_DEFAULT_VERBOSITY 770AM_DEFAULT_V 771AM_V 772am__untar 773am__tar 774AMTAR 775am__leading_dot 776SET_MAKE 777AWK 778mkdir_p 779MKDIR_P 780INSTALL_STRIP_PROGRAM 781STRIP 782install_sh 783MAKEINFO 784AUTOHEADER 785AUTOMAKE 786AUTOCONF 787ACLOCAL 788VERSION 789PACKAGE 790CYGPATH_W 791am__isrc 792INSTALL_DATA 793INSTALL_SCRIPT 794INSTALL_PROGRAM 795target_alias 796host_alias 797build_alias 798LIBS 799ECHO_T 800ECHO_N 801ECHO_C 802DEFS 803mandir 804localedir 805libdir 806psdir 807pdfdir 808dvidir 809htmldir 810infodir 811docdir 812oldincludedir 813includedir 814runstatedir 815localstatedir 816sharedstatedir 817sysconfdir 818datadir 819datarootdir 820libexecdir 821sbindir 822bindir 823program_transform_name 824prefix 825exec_prefix 826PACKAGE_URL 827PACKAGE_BUGREPORT 828PACKAGE_STRING 829PACKAGE_VERSION 830PACKAGE_TARNAME 831PACKAGE_NAME 832PATH_SEPARATOR 833SHELL 834am__quote' 835ac_subst_files='' 836ac_user_opts=' 837enable_option_checking 838enable_silent_rules 839enable_dependency_tracking 840enable_shared 841enable_static 842with_pic 843enable_fast_install 844with_aix_soname 845with_gnu_ld 846with_sysroot 847enable_libtool_lock 848enable_nptl_bug_check 849enable_alsa_driver 850enable_jack_driver 851enable_arts_driver 852with_arts_prefix 853enable_artstest 854enable_asiosdk_dir 855enable_asio_driver 856enable_midishare_driver 857enable_coremidi_driver 858enable_coreaudio_driver 859enable_mmemidi_driver 860enable_vstsdk_dir 861enable_sf2_engine 862enable_instruments_db 863enable_asm 864enable_dev_mode 865enable_debug_level 866enable_rt_exceptions 867enable_preload_samples 868enable_max_pitch 869enable_max_events 870enable_eg_bottom 871enable_eg_min_release_time 872enable_refill_streams 873enable_stream_min_refill 874enable_stream_max_refill 875enable_stream_size 876enable_max_streams 877enable_max_voices 878enable_subfragment_size 879enable_global_attenuation_default 880enable_voice_steal_algo 881enable_sysex_buffer_size 882enable_force_filter 883enable_filter_cutoff_min 884enable_filter_cutoff_max 885enable_override_cutoff_ctrl 886enable_override_resonance_ctrl 887enable_override_filter_type 888enable_gs_checksum 889enable_portamento_time_min 890enable_portamento_time_max 891enable_portamento_time_default 892enable_signed_triang_algo 893enable_unsigned_triang_algo 894enable_process_muted_channels 895enable_process_all_notes_off 896enable_interpolate_volume 897enable_master_volume_sysex_by_port 898enable_plugin_dir 899enable_default_instruments_db_location 900' 901 ac_precious_vars='build_alias 902host_alias 903target_alias 904CC 905CFLAGS 906LDFLAGS 907LIBS 908CPPFLAGS 909CXX 910CXXFLAGS 911CCC 912LT_SYS_LIBRARY_PATH 913CPP 914CXXCPP 915YACC 916YFLAGS 917PKG_CONFIG 918PKG_CONFIG_PATH 919PKG_CONFIG_LIBDIR 920JACK_CFLAGS 921JACK_LIBS 922LV2_CFLAGS 923LV2_LIBS 924GIG_CFLAGS 925GIG_LIBS 926SNDFILE_CFLAGS 927SNDFILE_LIBS 928SQLITE3_CFLAGS 929SQLITE3_LIBS' 930 931 932# Initialize some variables set by options. 933ac_init_help= 934ac_init_version=false 935ac_unrecognized_opts= 936ac_unrecognized_sep= 937# The variables have the same names as the options, with 938# dashes changed to underlines. 939cache_file=/dev/null 940exec_prefix=NONE 941no_create= 942no_recursion= 943prefix=NONE 944program_prefix=NONE 945program_suffix=NONE 946program_transform_name=s,x,x, 947silent= 948site= 949srcdir= 950verbose= 951x_includes=NONE 952x_libraries=NONE 953 954# Installation directory options. 955# These are left unexpanded so users can "make install exec_prefix=/foo" 956# and all the variables that are supposed to be based on exec_prefix 957# by default will actually change. 958# Use braces instead of parens because sh, perl, etc. also accept them. 959# (The list follows the same order as the GNU Coding Standards.) 960bindir='${exec_prefix}/bin' 961sbindir='${exec_prefix}/sbin' 962libexecdir='${exec_prefix}/libexec' 963datarootdir='${prefix}/share' 964datadir='${datarootdir}' 965sysconfdir='${prefix}/etc' 966sharedstatedir='${prefix}/com' 967localstatedir='${prefix}/var' 968runstatedir='${localstatedir}/run' 969includedir='${prefix}/include' 970oldincludedir='/usr/include' 971docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 972infodir='${datarootdir}/info' 973htmldir='${docdir}' 974dvidir='${docdir}' 975pdfdir='${docdir}' 976psdir='${docdir}' 977libdir='${exec_prefix}/lib' 978localedir='${datarootdir}/locale' 979mandir='${datarootdir}/man' 980 981ac_prev= 982ac_dashdash= 983for ac_option 984do 985 # If the previous option needs an argument, assign it. 986 if test -n "$ac_prev"; then 987 eval $ac_prev=\$ac_option 988 ac_prev= 989 continue 990 fi 991 992 case $ac_option in 993 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 994 *=) ac_optarg= ;; 995 *) ac_optarg=yes ;; 996 esac 997 998 # Accept the important Cygnus configure options, so we can diagnose typos. 999 1000 case $ac_dashdash$ac_option in 1001 --) 1002 ac_dashdash=yes ;; 1003 1004 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1005 ac_prev=bindir ;; 1006 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1007 bindir=$ac_optarg ;; 1008 1009 -build | --build | --buil | --bui | --bu) 1010 ac_prev=build_alias ;; 1011 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1012 build_alias=$ac_optarg ;; 1013 1014 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1015 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1016 ac_prev=cache_file ;; 1017 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1018 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1019 cache_file=$ac_optarg ;; 1020 1021 --config-cache | -C) 1022 cache_file=config.cache ;; 1023 1024 -datadir | --datadir | --datadi | --datad) 1025 ac_prev=datadir ;; 1026 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1027 datadir=$ac_optarg ;; 1028 1029 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1030 | --dataroo | --dataro | --datar) 1031 ac_prev=datarootdir ;; 1032 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1033 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1034 datarootdir=$ac_optarg ;; 1035 1036 -disable-* | --disable-*) 1037 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1038 # Reject names that are not valid shell variable names. 1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1040 as_fn_error $? "invalid feature name: $ac_useropt" 1041 ac_useropt_orig=$ac_useropt 1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1043 case $ac_user_opts in 1044 *" 1045"enable_$ac_useropt" 1046"*) ;; 1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1048 ac_unrecognized_sep=', ';; 1049 esac 1050 eval enable_$ac_useropt=no ;; 1051 1052 -docdir | --docdir | --docdi | --doc | --do) 1053 ac_prev=docdir ;; 1054 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1055 docdir=$ac_optarg ;; 1056 1057 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1058 ac_prev=dvidir ;; 1059 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1060 dvidir=$ac_optarg ;; 1061 1062 -enable-* | --enable-*) 1063 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1064 # Reject names that are not valid shell variable names. 1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1066 as_fn_error $? "invalid feature name: $ac_useropt" 1067 ac_useropt_orig=$ac_useropt 1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1069 case $ac_user_opts in 1070 *" 1071"enable_$ac_useropt" 1072"*) ;; 1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1074 ac_unrecognized_sep=', ';; 1075 esac 1076 eval enable_$ac_useropt=\$ac_optarg ;; 1077 1078 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1079 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1080 | --exec | --exe | --ex) 1081 ac_prev=exec_prefix ;; 1082 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1083 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1084 | --exec=* | --exe=* | --ex=*) 1085 exec_prefix=$ac_optarg ;; 1086 1087 -gas | --gas | --ga | --g) 1088 # Obsolete; use --with-gas. 1089 with_gas=yes ;; 1090 1091 -help | --help | --hel | --he | -h) 1092 ac_init_help=long ;; 1093 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1094 ac_init_help=recursive ;; 1095 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1096 ac_init_help=short ;; 1097 1098 -host | --host | --hos | --ho) 1099 ac_prev=host_alias ;; 1100 -host=* | --host=* | --hos=* | --ho=*) 1101 host_alias=$ac_optarg ;; 1102 1103 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1104 ac_prev=htmldir ;; 1105 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1106 | --ht=*) 1107 htmldir=$ac_optarg ;; 1108 1109 -includedir | --includedir | --includedi | --included | --include \ 1110 | --includ | --inclu | --incl | --inc) 1111 ac_prev=includedir ;; 1112 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1113 | --includ=* | --inclu=* | --incl=* | --inc=*) 1114 includedir=$ac_optarg ;; 1115 1116 -infodir | --infodir | --infodi | --infod | --info | --inf) 1117 ac_prev=infodir ;; 1118 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1119 infodir=$ac_optarg ;; 1120 1121 -libdir | --libdir | --libdi | --libd) 1122 ac_prev=libdir ;; 1123 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1124 libdir=$ac_optarg ;; 1125 1126 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1127 | --libexe | --libex | --libe) 1128 ac_prev=libexecdir ;; 1129 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1130 | --libexe=* | --libex=* | --libe=*) 1131 libexecdir=$ac_optarg ;; 1132 1133 -localedir | --localedir | --localedi | --localed | --locale) 1134 ac_prev=localedir ;; 1135 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1136 localedir=$ac_optarg ;; 1137 1138 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1139 | --localstate | --localstat | --localsta | --localst | --locals) 1140 ac_prev=localstatedir ;; 1141 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1142 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1143 localstatedir=$ac_optarg ;; 1144 1145 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1146 ac_prev=mandir ;; 1147 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1148 mandir=$ac_optarg ;; 1149 1150 -nfp | --nfp | --nf) 1151 # Obsolete; use --without-fp. 1152 with_fp=no ;; 1153 1154 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1155 | --no-cr | --no-c | -n) 1156 no_create=yes ;; 1157 1158 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1159 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1160 no_recursion=yes ;; 1161 1162 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1163 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1164 | --oldin | --oldi | --old | --ol | --o) 1165 ac_prev=oldincludedir ;; 1166 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1167 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1168 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1169 oldincludedir=$ac_optarg ;; 1170 1171 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1172 ac_prev=prefix ;; 1173 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1174 prefix=$ac_optarg ;; 1175 1176 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1177 | --program-pre | --program-pr | --program-p) 1178 ac_prev=program_prefix ;; 1179 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1180 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1181 program_prefix=$ac_optarg ;; 1182 1183 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1184 | --program-suf | --program-su | --program-s) 1185 ac_prev=program_suffix ;; 1186 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1187 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1188 program_suffix=$ac_optarg ;; 1189 1190 -program-transform-name | --program-transform-name \ 1191 | --program-transform-nam | --program-transform-na \ 1192 | --program-transform-n | --program-transform- \ 1193 | --program-transform | --program-transfor \ 1194 | --program-transfo | --program-transf \ 1195 | --program-trans | --program-tran \ 1196 | --progr-tra | --program-tr | --program-t) 1197 ac_prev=program_transform_name ;; 1198 -program-transform-name=* | --program-transform-name=* \ 1199 | --program-transform-nam=* | --program-transform-na=* \ 1200 | --program-transform-n=* | --program-transform-=* \ 1201 | --program-transform=* | --program-transfor=* \ 1202 | --program-transfo=* | --program-transf=* \ 1203 | --program-trans=* | --program-tran=* \ 1204 | --progr-tra=* | --program-tr=* | --program-t=*) 1205 program_transform_name=$ac_optarg ;; 1206 1207 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1208 ac_prev=pdfdir ;; 1209 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1210 pdfdir=$ac_optarg ;; 1211 1212 -psdir | --psdir | --psdi | --psd | --ps) 1213 ac_prev=psdir ;; 1214 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1215 psdir=$ac_optarg ;; 1216 1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1218 | -silent | --silent | --silen | --sile | --sil) 1219 silent=yes ;; 1220 1221 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1222 | --runstate | --runstat | --runsta | --runst | --runs \ 1223 | --run | --ru | --r) 1224 ac_prev=runstatedir ;; 1225 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1226 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1227 | --run=* | --ru=* | --r=*) 1228 runstatedir=$ac_optarg ;; 1229 1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1231 ac_prev=sbindir ;; 1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1233 | --sbi=* | --sb=*) 1234 sbindir=$ac_optarg ;; 1235 1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1238 | --sharedst | --shareds | --shared | --share | --shar \ 1239 | --sha | --sh) 1240 ac_prev=sharedstatedir ;; 1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1244 | --sha=* | --sh=*) 1245 sharedstatedir=$ac_optarg ;; 1246 1247 -site | --site | --sit) 1248 ac_prev=site ;; 1249 -site=* | --site=* | --sit=*) 1250 site=$ac_optarg ;; 1251 1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1253 ac_prev=srcdir ;; 1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1255 srcdir=$ac_optarg ;; 1256 1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1258 | --syscon | --sysco | --sysc | --sys | --sy) 1259 ac_prev=sysconfdir ;; 1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1262 sysconfdir=$ac_optarg ;; 1263 1264 -target | --target | --targe | --targ | --tar | --ta | --t) 1265 ac_prev=target_alias ;; 1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1267 target_alias=$ac_optarg ;; 1268 1269 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1270 verbose=yes ;; 1271 1272 -version | --version | --versio | --versi | --vers | -V) 1273 ac_init_version=: ;; 1274 1275 -with-* | --with-*) 1276 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1277 # Reject names that are not valid shell variable names. 1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1279 as_fn_error $? "invalid package name: $ac_useropt" 1280 ac_useropt_orig=$ac_useropt 1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1282 case $ac_user_opts in 1283 *" 1284"with_$ac_useropt" 1285"*) ;; 1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1287 ac_unrecognized_sep=', ';; 1288 esac 1289 eval with_$ac_useropt=\$ac_optarg ;; 1290 1291 -without-* | --without-*) 1292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1293 # Reject names that are not valid shell variable names. 1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1295 as_fn_error $? "invalid package name: $ac_useropt" 1296 ac_useropt_orig=$ac_useropt 1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1298 case $ac_user_opts in 1299 *" 1300"with_$ac_useropt" 1301"*) ;; 1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1303 ac_unrecognized_sep=', ';; 1304 esac 1305 eval with_$ac_useropt=no ;; 1306 1307 --x) 1308 # Obsolete; use --with-x. 1309 with_x=yes ;; 1310 1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1312 | --x-incl | --x-inc | --x-in | --x-i) 1313 ac_prev=x_includes ;; 1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1316 x_includes=$ac_optarg ;; 1317 1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1320 ac_prev=x_libraries ;; 1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1323 x_libraries=$ac_optarg ;; 1324 1325 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1326Try \`$0 --help' for more information" 1327 ;; 1328 1329 *=*) 1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1331 # Reject names that are not valid shell variable names. 1332 case $ac_envvar in #( 1333 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1334 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1335 esac 1336 eval $ac_envvar=\$ac_optarg 1337 export $ac_envvar ;; 1338 1339 *) 1340 # FIXME: should be removed in autoconf 3.0. 1341 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1343 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1344 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1345 ;; 1346 1347 esac 1348done 1349 1350if test -n "$ac_prev"; then 1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1352 as_fn_error $? "missing argument to $ac_option" 1353fi 1354 1355if test -n "$ac_unrecognized_opts"; then 1356 case $enable_option_checking in 1357 no) ;; 1358 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1359 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1360 esac 1361fi 1362 1363# Check all directory arguments for consistency. 1364for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1365 datadir sysconfdir sharedstatedir localstatedir includedir \ 1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1367 libdir localedir mandir runstatedir 1368do 1369 eval ac_val=\$$ac_var 1370 # Remove trailing slashes. 1371 case $ac_val in 1372 */ ) 1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1374 eval $ac_var=\$ac_val;; 1375 esac 1376 # Be sure to have absolute directory names. 1377 case $ac_val in 1378 [\\/$]* | ?:[\\/]* ) continue;; 1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1380 esac 1381 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1382done 1383 1384# There might be people who depend on the old broken behavior: `$host' 1385# used to hold the argument of --host etc. 1386# FIXME: To remove some day. 1387build=$build_alias 1388host=$host_alias 1389target=$target_alias 1390 1391# FIXME: To remove some day. 1392if test "x$host_alias" != x; then 1393 if test "x$build_alias" = x; then 1394 cross_compiling=maybe 1395 elif test "x$build_alias" != "x$host_alias"; then 1396 cross_compiling=yes 1397 fi 1398fi 1399 1400ac_tool_prefix= 1401test -n "$host_alias" && ac_tool_prefix=$host_alias- 1402 1403test "$silent" = yes && exec 6>/dev/null 1404 1405 1406ac_pwd=`pwd` && test -n "$ac_pwd" && 1407ac_ls_di=`ls -di .` && 1408ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1409 as_fn_error $? "working directory cannot be determined" 1410test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1411 as_fn_error $? "pwd does not report name of working directory" 1412 1413 1414# Find the source files, if location was not specified. 1415if test -z "$srcdir"; then 1416 ac_srcdir_defaulted=yes 1417 # Try the directory containing this script, then the parent directory. 1418 ac_confdir=`$as_dirname -- "$as_myself" || 1419$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1420 X"$as_myself" : 'X\(//\)[^/]' \| \ 1421 X"$as_myself" : 'X\(//\)$' \| \ 1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1423$as_echo X"$as_myself" | 1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1425 s//\1/ 1426 q 1427 } 1428 /^X\(\/\/\)[^/].*/{ 1429 s//\1/ 1430 q 1431 } 1432 /^X\(\/\/\)$/{ 1433 s//\1/ 1434 q 1435 } 1436 /^X\(\/\).*/{ 1437 s//\1/ 1438 q 1439 } 1440 s/.*/./; q'` 1441 srcdir=$ac_confdir 1442 if test ! -r "$srcdir/$ac_unique_file"; then 1443 srcdir=.. 1444 fi 1445else 1446 ac_srcdir_defaulted=no 1447fi 1448if test ! -r "$srcdir/$ac_unique_file"; then 1449 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1450 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1451fi 1452ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1453ac_abs_confdir=`( 1454 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1455 pwd)` 1456# When building in place, set srcdir=. 1457if test "$ac_abs_confdir" = "$ac_pwd"; then 1458 srcdir=. 1459fi 1460# Remove unnecessary trailing slashes from srcdir. 1461# Double slashes in file names in object file debugging info 1462# mess up M-x gdb in Emacs. 1463case $srcdir in 1464*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1465esac 1466for ac_var in $ac_precious_vars; do 1467 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1468 eval ac_env_${ac_var}_value=\$${ac_var} 1469 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1470 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1471done 1472 1473# 1474# Report the --help message. 1475# 1476if test "$ac_init_help" = "long"; then 1477 # Omit some internal or obsolete options to make the list less imposing. 1478 # This message is too long to be a string in the A/UX 3.1 sh. 1479 cat <<_ACEOF 1480\`configure' configures linuxsampler 2.2.0 to adapt to many kinds of systems. 1481 1482Usage: $0 [OPTION]... [VAR=VALUE]... 1483 1484To assign environment variables (e.g., CC, CFLAGS...), specify them as 1485VAR=VALUE. See below for descriptions of some of the useful variables. 1486 1487Defaults for the options are specified in brackets. 1488 1489Configuration: 1490 -h, --help display this help and exit 1491 --help=short display options specific to this package 1492 --help=recursive display the short help of all the included packages 1493 -V, --version display version information and exit 1494 -q, --quiet, --silent do not print \`checking ...' messages 1495 --cache-file=FILE cache test results in FILE [disabled] 1496 -C, --config-cache alias for \`--cache-file=config.cache' 1497 -n, --no-create do not create output files 1498 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1499 1500Installation directories: 1501 --prefix=PREFIX install architecture-independent files in PREFIX 1502 @<:@@S|@ac_default_prefix@:>@ 1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1504 @<:@PREFIX@:>@ 1505 1506By default, \`make install' will install all the files in 1507\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1508an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1509for instance \`--prefix=\$HOME'. 1510 1511For better control, use the options below. 1512 1513Fine tuning of the installation directories: 1514 --bindir=DIR user executables [EPREFIX/bin] 1515 --sbindir=DIR system admin executables [EPREFIX/sbin] 1516 --libexecdir=DIR program executables [EPREFIX/libexec] 1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1520 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1521 --libdir=DIR object code libraries [EPREFIX/lib] 1522 --includedir=DIR C header files [PREFIX/include] 1523 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1526 --infodir=DIR info documentation [DATAROOTDIR/info] 1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1528 --mandir=DIR man documentation [DATAROOTDIR/man] 1529 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/linuxsampler@:>@ 1530 --htmldir=DIR html documentation [DOCDIR] 1531 --dvidir=DIR dvi documentation [DOCDIR] 1532 --pdfdir=DIR pdf documentation [DOCDIR] 1533 --psdir=DIR ps documentation [DOCDIR] 1534_ACEOF 1535 1536 cat <<\_ACEOF 1537 1538Program names: 1539 --program-prefix=PREFIX prepend PREFIX to installed program names 1540 --program-suffix=SUFFIX append SUFFIX to installed program names 1541 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1542 1543System types: 1544 --build=BUILD configure for building on BUILD [guessed] 1545 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1546_ACEOF 1547fi 1548 1549if test -n "$ac_init_help"; then 1550 case $ac_init_help in 1551 short | recursive ) echo "Configuration of linuxsampler 2.2.0:";; 1552 esac 1553 cat <<\_ACEOF 1554 1555Optional Features: 1556 --disable-option-checking ignore unrecognized --enable/--with options 1557 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1558 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1559 --enable-silent-rules less verbose build output (undo: "make V=1") 1560 --disable-silent-rules verbose build output (undo: "make V=0") 1561 --enable-dependency-tracking 1562 do not reject slow dependency extractors 1563 --disable-dependency-tracking 1564 speeds up one-time build 1565 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ 1566 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@ 1567 --enable-fast-install@<:@=PKGS@:>@ 1568 optimize for fast installation @<:@default=yes@:>@ 1569 --disable-libtool-lock avoid locking (might break parallel builds) 1570 --disable-nptl-bug-check 1571 Disable check for a bug in certain NPTL-enabled 1572 glibc versions that caused crashs. 1573 --disable-alsa-driver 1574 Disable support for the Advanced Linux Sound 1575 Architecture (ALSA). 1576 --disable-jack-driver 1577 Disable support for the Jack Audio Connection Kit 1578 (JACK). 1579 --disable-arts-driver 1580 Disable support for the Analogue Realtime System 1581 (aRts). 1582 --disable-artstest do not try to compile and run a test ARTS program 1583 --enable-asiosdk-dir 1584 Directory where the ASIO SDK is located, this automatically 1585 enables the compilation of the ASIO audio output driver. 1586 --disable-asio-driver 1587 Disable support for the Windows ASIO driver. 1588 --disable-midishare-driver 1589 Disable support for the MidiShare system. 1590 --disable-coremidi-driver 1591 Disable support for the Apple CoreMIDI system. 1592 --disable-coreaudio-driver 1593 Disable support for the Apple CoreAudio system. 1594 --disable-mmemidi-driver 1595 Disable support for the Windows MME MIDI system. 1596 --enable-vstsdk-dir 1597 Directory where the VST SDK is located. 1598 This automatically enables the compilation 1599 of the VST plugin. 1600 --disable-sf2-engine 1601 Disable compilation of the SF2 engine. 1602 You need to have libgig installed. 1603 --disable-instruments-db 1604 Disable compilation of the sampler's instruments 1605 database feature. You need to have SQLite 3.3 1606 or younger installed for this feature. 1607 --disable-asm 1608 Enable hand-crafted assembly optimizations 1609 (default=on). LinuxSampler provides CPU specific 1610 assembly optimizations. This is currently limited 1611 to just enter a fast (denormal) FPU mode on x86 1612 platforms. There are currently no synthesis core 1613 assembly optimizations anymore since LS 0.4.0 1614 --enable-dev-mode 1615 Enable development mode (default=off). In that mode 1616 we do some extra sanity checks here and there. 1617 This helps to spot possible problems, but reduces 1618 efficiency a bit 1619 --enable-debug-level 1620 Specify verbosity of console messages (default=1). 1621 The higher the value, the higher will be verbosity. 1622 A value of 0 means no console output at all. 1623 There's not really an upper limit but the usual 1624 level of all messages is currently somewhere less 1625 than 10. 1626 --enable-rt-exceptions 1627 Enable exceptions in the realtime thread 1628 (default=no). If this is enabled, exceptions will 1629 be thrown on critical errors in the realtime 1630 context as well. Otherwise if disabled 1631 segmentation faults will be forced by the 1632 application on critical errors. 1633 --enable-preload-samples 1634 Due to seeking and latency issues with hard drives 1635 we have to cache a small part of samples' head in 1636 RAM (default=32768). The higher this value the 1637 more memory will be occupied for each sample, but 1638 the safer this will be in regards of possible 1639 droputs. A 'good' value depends on the running 1640 system and usage dependant factors. 1641 --enable-max-pitch 1642 Specify the maximum allowed pitch value in octaves 1643 (default=4). To lower memory usage you might want 1644 set a smaller value. 1645 --enable-max-events 1646 Specify the maximum allowed amount of events to be 1647 processed per fragment (default=1024). 1648 --enable-eg-bottom 1649 Bottom limit of envelope generators 1650 (default=0.001). Certain kinds of curve types like 1651 exponential curves converge against 0 but never 1652 reach 0. So we have to define a certain low value 1653 after which we should consider all smaller values 1654 to be 'almost zero'. The smaller this value, the 1655 longer will voices survive in EG's release stage 1656 and thus waste voices. If this value is too high 1657 will cause click sounds though. 1658 --enable-eg-min-release-time 1659 Specify the lowest allowed release time in seconds 1660 (default=0.0025). This value will also be used to 1661 ramp down voices on voice stealing. This value 1662 should always be less than the period time of the 1663 used audio driver, as in case of voice stealing 1664 the killed voice needs to be completely ramped 1665 down in the same fragment. 1666 --enable-refill-streams 1667 Number of streams that should be refilled in each 1668 disk thread cycle (default=4). 1669 --enable-stream-min-refill 1670 Minimum refill size for disk streams (default=1024). 1671 The disk thread will go to sleep for a while if no 1672 stream had to be refilled more than this value in 1673 a disk thread cycle. 1674 --enable-stream-max-refill 1675 Maximum refill size for disk streams 1676 (default=65536). The disk thread will refill 1677 each stream only by a size of this value per 1678 disk thread cycle. 1679 --enable-stream-size 1680 Size of each stream's ring buffer in sample points 1681 (default=262144). 1682 --enable-max-streams 1683 Initial maximum amount of disk streams 1684 (default=90). This value can be changed at 1685 runtime. It should always be higher than the 1686 maximum amount of voices. 1687 --enable-max-voices 1688 Initial maximum amount of voices (default=64). 1689 This value can be changed at runtime. It should 1690 always be lower than the maximum amount of disk 1691 streams. 1692 --enable-subfragment-size 1693 Every audio fragment will be splitted into 1694 subfragments. Where each subfragment renders 1695 audio with constant synthesis parameters. This is 1696 done for efficiency reasons. This parameter 1697 defines the default size of a subfragment in 1698 sample points. A large value means less CPU time 1699 whereas a low value means better audio quality 1700 (default=32). 1701 --enable-global-attenuation-default 1702 To prevent clipping all samples will be lowered 1703 in amplitude by this given default factor (can 1704 be overridden at runtime). 1705 (default=0.35) 1706 --enable-voice-steal-algo 1707 Voice stealing algorithm to be used. Currently 1708 available options: 1709 none: 1710 Disable voice stealing completely. 1711 oldestvoiceonkey (default): 1712 Try to kill a voice on the same key first, 1713 if no success, proceed with the oldest key. 1714 oldestkey: 1715 Try to kill a voice from the oldest active 1716 key. 1717 --enable-sysex-buffer-size 1718 System Exclusive Message buffer size in kB 1719 (default=2048). 1720 --enable-force-filter 1721 If enabled will force filter to be used even if 1722 no usage was define in instrument patch files. 1723 (default=no). 1724 --enable-filter-cutoff-min 1725 Minimum filter cutoff frequency in Hz 1726 (default=100.0). 1727 --enable-filter-cutoff-max 1728 Maximum filter cutoff frequency in Hz 1729 (default=10000.0). 1730 --enable-override-cutoff-ctrl 1731 Override filter cutoff MIDI controller (default=no). 1732 Note: you have to define the MIDI controller number 1733 here, it's not a boolean parameter type! If this 1734 option is used, controller number given by 1735 instrument patch will be ignored and instead this 1736 supplied value will be used. 1737 --enable-override-resonance-ctrl 1738 Override filter resonance MIDI controller 1739 (default=no). Note: you have to define the MIDI 1740 controller number here, it's not a boolean 1741 parameter type! If this option is used, controller 1742 number given by instrument patch will be ignored 1743 and instead this supplied value will be used. 1744 --enable-override-filter-type 1745 Override filter type (default=no). Options: 1746 hp: for highpass 1747 bp: for bandpass 1748 br: for bandreject 1749 lp: for lowpass 1750 lpt: for lowpass turbo 1751 --enable-gs-checksum 1752 Enable Roland General Synth SysEx checksum check 1753 (default=no). If this is enabled, all GS SysEx 1754 messages which do not provide a correct checksum 1755 will be ignored. This is disabled by default as 1756 not all devices honor GS checksums. 1757 --enable-portamento-time-min 1758 Minimum Portamento time in seconds 1759 (default=0.1). 1760 --enable-portamento-time-max 1761 Maximum Portamento time in seconds 1762 (default=32). 1763 --enable-portamento-time-default 1764 Default Portamento time in seconds 1765 (default=1). 1766 --enable-signed-triang-algo 1767 Signed triangular wave algorithm to be used (e.g. for LFOs). 1768 Currently available options: 1769 intmath: 1770 Uses integer math without any branch will then be 1771 converted to floating point value for each sample point. 1772 This int->float conversion might hurt on some systems. 1773 intmathabs: 1774 Similar to intmath but uses abs() function. 1775 Depending on compiler and platrofm this could 1776 perform better than integer math as it avoids 1777 an extra integer multiply instruction. 1778 diharmonic: 1779 The triangular wave will be approximated by adding two 1780 sinusoidials. This solution might especially hurt on 1781 systems with weak floating point unit. 1782 benchmark (default): 1783 This is not an algorithm. Use this option if the 1784 appropriate algorithm should be automatically 1785 chosen by the configure script by performing a 1786 benchmark between the algorithms mentioned above. 1787 This will NOT work for cross compilation! 1788 --enable-unsigned-triang-algo 1789 Unsigned triangular wave algorithm to be used (e.g. for LFOs). 1790 Currently available options: 1791 intmath: 1792 Uses integer math without any branch will then be 1793 converted to floating point value for each sample point. 1794 This int->float conversion might hurt on some systems. 1795 intmathabs: 1796 Similar to intmath but uses abs() function. 1797 Depending on compiler and platrofm this could 1798 perform better than integer math as it avoids 1799 an extra integer multiply instruction. 1800 diharmonic: 1801 The triangular wave will be approximated by adding two 1802 sinusoidials. This solution might especially hurt on 1803 systems with weak floating point unit. 1804 benchmark (default): 1805 This is not an algorithm. Use this option if the 1806 appropriate algorithm should be automatically 1807 chosen by the configure script by performing a 1808 benchmark between the algorithms mentioned above. 1809 This will NOT work for cross compilation! 1810 --enable-process-muted-channels 1811 Enable processing of muted channels (default=no). 1812 In that mode all MIDI events in the muted channels 1813 will be processed. This will provide information 1814 about the active voices in the muted channels and 1815 will not discard notes, triggered in mute mode, 1816 when the channel is unmuted. But also will reduce 1817 the efficiency. 1818 --disable-process-all-notes-off 1819 Disable interpretation of All-Notes-Off MIDI 1820 messages (default=on). By default LS will release 1821 all voices whenever it receives an All-Notes-Off 1822 MIDI message. You can disable this behavior, so 1823 that LS simply ignores such messages. 1824 --disable-interpolate-volume 1825 Disable interpolation of volume modulation 1826 (default=on). With this enabled, the volume changes 1827 generated by for example the envelope generator 1828 will be smoother, minimizing the risk for audio 1829 clicks. Disable it to reduce CPU usage. 1830 --enable-master-volume-sysex-by-port 1831 Whether global volume sysex message should be 1832 applied globally to the whole sampler or only to 1833 the sampler channels connected to the same MIDI 1834 input port on which the sysex message arrived on. 1835 By default global volume sysex messages apply 1836 globally to the whole sampler, since many MIDI 1837 devices behave that way. 1838 --enable-plugin-dir 1839 Directory where the sampler shall look for potential plugins, 1840 that is 3rd party shared libraries that should be loaded by 1841 the sampler on startup. By default the sampler will search 1842 for plugins in the subdirectory "plugins" below its own 1843 library directory. 1844 (i.e. /usr/local/lib/linuxsampler/plugins) 1845 --enable-default-instruments-db-location 1846 Only when instruments DB feature is enabled: file name 1847 which shall be taken as default location of the 1848 instruments DB file. This location can still be 1849 overridden at runtime with a command line switch. 1850 (default: /var/lib/linuxsampler/instruments.db) 1851 1852Optional Packages: 1853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1855 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use 1856 both@:>@ 1857 --with-aix-soname=aix|svr4|both 1858 shared library versioning (aka "SONAME") variant to 1859 provide on AIX, @<:@default=aix@:>@. 1860 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ 1861 --with-sysroot@<:@=DIR@:>@ Search for dependent libraries within DIR (or the 1862 compiler's sysroot if not specified). 1863 --with-arts-prefix=DIR prefix where ARTS is installed (optional) 1864 1865Some influential environment variables: 1866 CC C compiler command 1867 CFLAGS C compiler flags 1868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1869 nonstandard directory <lib dir> 1870 LIBS libraries to pass to the linker, e.g. -l<library> 1871 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1872 you have headers in a nonstandard directory <include dir> 1873 CXX C++ compiler command 1874 CXXFLAGS C++ compiler flags 1875 LT_SYS_LIBRARY_PATH 1876 User-defined run-time library search path. 1877 CPP C preprocessor 1878 CXXCPP C++ preprocessor 1879 YACC The `Yet Another Compiler Compiler' implementation to use. 1880 Defaults to the first program found out of: `bison -y', `byacc', 1881 `yacc'. 1882 YFLAGS The list of arguments that will be passed by default to @S|@YACC. 1883 This script will default YFLAGS to the empty string to avoid a 1884 default value of `-d' given by some make applications. 1885 PKG_CONFIG path to pkg-config utility 1886 PKG_CONFIG_PATH 1887 directories to add to pkg-config's search path 1888 PKG_CONFIG_LIBDIR 1889 path overriding pkg-config's built-in search path 1890 JACK_CFLAGS C compiler flags for JACK, overriding pkg-config 1891 JACK_LIBS linker flags for JACK, overriding pkg-config 1892 LV2_CFLAGS C compiler flags for LV2, overriding pkg-config 1893 LV2_LIBS linker flags for LV2, overriding pkg-config 1894 GIG_CFLAGS C compiler flags for GIG, overriding pkg-config 1895 GIG_LIBS linker flags for GIG, overriding pkg-config 1896 SNDFILE_CFLAGS 1897 C compiler flags for SNDFILE, overriding pkg-config 1898 SNDFILE_LIBS 1899 linker flags for SNDFILE, overriding pkg-config 1900 SQLITE3_CFLAGS 1901 C compiler flags for SQLITE3, overriding pkg-config 1902 SQLITE3_LIBS 1903 linker flags for SQLITE3, overriding pkg-config 1904 1905Use these variables to override the choices made by `configure' or to help 1906it to find libraries and programs with nonstandard names/locations. 1907 1908Report bugs to the package provider. 1909_ACEOF 1910ac_status=$? 1911fi 1912 1913if test "$ac_init_help" = "recursive"; then 1914 # If there are subdirs, report their specific --help. 1915 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1916 test -d "$ac_dir" || 1917 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1918 continue 1919 ac_builddir=. 1920 1921case "$ac_dir" in 1922.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1923*) 1924 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1925 # A ".." for each directory in $ac_dir_suffix. 1926 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1927 case $ac_top_builddir_sub in 1928 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1929 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1930 esac ;; 1931esac 1932ac_abs_top_builddir=$ac_pwd 1933ac_abs_builddir=$ac_pwd$ac_dir_suffix 1934# for backward compatibility: 1935ac_top_builddir=$ac_top_build_prefix 1936 1937case $srcdir in 1938 .) # We are building in place. 1939 ac_srcdir=. 1940 ac_top_srcdir=$ac_top_builddir_sub 1941 ac_abs_top_srcdir=$ac_pwd ;; 1942 [\\/]* | ?:[\\/]* ) # Absolute name. 1943 ac_srcdir=$srcdir$ac_dir_suffix; 1944 ac_top_srcdir=$srcdir 1945 ac_abs_top_srcdir=$srcdir ;; 1946 *) # Relative name. 1947 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1948 ac_top_srcdir=$ac_top_build_prefix$srcdir 1949 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1950esac 1951ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1952 1953 cd "$ac_dir" || { ac_status=$?; continue; } 1954 # Check for guested configure. 1955 if test -f "$ac_srcdir/configure.gnu"; then 1956 echo && 1957 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1958 elif test -f "$ac_srcdir/configure"; then 1959 echo && 1960 $SHELL "$ac_srcdir/configure" --help=recursive 1961 else 1962 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1963 fi || ac_status=$? 1964 cd "$ac_pwd" || { ac_status=$?; break; } 1965 done 1966fi 1967 1968test -n "$ac_init_help" && exit $ac_status 1969if $ac_init_version; then 1970 cat <<\_ACEOF 1971linuxsampler configure 2.2.0 1972generated by GNU Autoconf 2.69 1973 1974Copyright (C) 2012 Free Software Foundation, Inc. 1975This configure script is free software; the Free Software Foundation 1976gives unlimited permission to copy, distribute and modify it. 1977_ACEOF 1978 exit 1979fi 1980 1981## ------------------------ ## 1982## Autoconf initialization. ## 1983## ------------------------ ## 1984 1985@%:@ ac_fn_c_try_compile LINENO 1986@%:@ -------------------------- 1987@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. 1988ac_fn_c_try_compile () 1989{ 1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1991 rm -f conftest.$ac_objext 1992 if { { ac_try="$ac_compile" 1993case "(($ac_try" in 1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1995 *) ac_try_echo=$ac_try;; 1996esac 1997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1998$as_echo "$ac_try_echo"; } >&5 1999 (eval "$ac_compile") 2>conftest.err 2000 ac_status=$? 2001 if test -s conftest.err; then 2002 grep -v '^ *+' conftest.err >conftest.er1 2003 cat conftest.er1 >&5 2004 mv -f conftest.er1 conftest.err 2005 fi 2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2007 test $ac_status = 0; } && { 2008 test -z "$ac_c_werror_flag" || 2009 test ! -s conftest.err 2010 } && test -s conftest.$ac_objext; then : 2011 ac_retval=0 2012else 2013 $as_echo "$as_me: failed program was:" >&5 2014sed 's/^/| /' conftest.$ac_ext >&5 2015 2016 ac_retval=1 2017fi 2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2019 as_fn_set_status $ac_retval 2020 2021} @%:@ ac_fn_c_try_compile 2022 2023@%:@ ac_fn_cxx_try_compile LINENO 2024@%:@ ---------------------------- 2025@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. 2026ac_fn_cxx_try_compile () 2027{ 2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2029 rm -f conftest.$ac_objext 2030 if { { ac_try="$ac_compile" 2031case "(($ac_try" in 2032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2033 *) ac_try_echo=$ac_try;; 2034esac 2035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2036$as_echo "$ac_try_echo"; } >&5 2037 (eval "$ac_compile") 2>conftest.err 2038 ac_status=$? 2039 if test -s conftest.err; then 2040 grep -v '^ *+' conftest.err >conftest.er1 2041 cat conftest.er1 >&5 2042 mv -f conftest.er1 conftest.err 2043 fi 2044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2045 test $ac_status = 0; } && { 2046 test -z "$ac_cxx_werror_flag" || 2047 test ! -s conftest.err 2048 } && test -s conftest.$ac_objext; then : 2049 ac_retval=0 2050else 2051 $as_echo "$as_me: failed program was:" >&5 2052sed 's/^/| /' conftest.$ac_ext >&5 2053 2054 ac_retval=1 2055fi 2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2057 as_fn_set_status $ac_retval 2058 2059} @%:@ ac_fn_cxx_try_compile 2060 2061@%:@ ac_fn_c_try_link LINENO 2062@%:@ ----------------------- 2063@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. 2064ac_fn_c_try_link () 2065{ 2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2067 rm -f conftest.$ac_objext conftest$ac_exeext 2068 if { { ac_try="$ac_link" 2069case "(($ac_try" in 2070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2071 *) ac_try_echo=$ac_try;; 2072esac 2073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2074$as_echo "$ac_try_echo"; } >&5 2075 (eval "$ac_link") 2>conftest.err 2076 ac_status=$? 2077 if test -s conftest.err; then 2078 grep -v '^ *+' conftest.err >conftest.er1 2079 cat conftest.er1 >&5 2080 mv -f conftest.er1 conftest.err 2081 fi 2082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2083 test $ac_status = 0; } && { 2084 test -z "$ac_c_werror_flag" || 2085 test ! -s conftest.err 2086 } && test -s conftest$ac_exeext && { 2087 test "$cross_compiling" = yes || 2088 test -x conftest$ac_exeext 2089 }; then : 2090 ac_retval=0 2091else 2092 $as_echo "$as_me: failed program was:" >&5 2093sed 's/^/| /' conftest.$ac_ext >&5 2094 2095 ac_retval=1 2096fi 2097 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2098 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2099 # interfere with the next link command; also delete a directory that is 2100 # left behind by Apple's compiler. We do this before executing the actions. 2101 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2103 as_fn_set_status $ac_retval 2104 2105} @%:@ ac_fn_c_try_link 2106 2107@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2108@%:@ ------------------------------------------------------- 2109@%:@ Tests whether HEADER exists and can be compiled using the include files in 2110@%:@ INCLUDES, setting the cache variable VAR accordingly. 2111ac_fn_c_check_header_compile () 2112{ 2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2115$as_echo_n "checking for $2... " >&6; } 2116if eval \${$3+:} false; then : 2117 $as_echo_n "(cached) " >&6 2118else 2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2120/* end confdefs.h. */ 2121$4 2122@%:@include <$2> 2123_ACEOF 2124if ac_fn_c_try_compile "$LINENO"; then : 2125 eval "$3=yes" 2126else 2127 eval "$3=no" 2128fi 2129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2130fi 2131eval ac_res=\$$3 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2133$as_echo "$ac_res" >&6; } 2134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2135 2136} @%:@ ac_fn_c_check_header_compile 2137 2138@%:@ ac_fn_c_try_cpp LINENO 2139@%:@ ---------------------- 2140@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. 2141ac_fn_c_try_cpp () 2142{ 2143 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2144 if { { ac_try="$ac_cpp conftest.$ac_ext" 2145case "(($ac_try" in 2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2147 *) ac_try_echo=$ac_try;; 2148esac 2149eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2150$as_echo "$ac_try_echo"; } >&5 2151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2152 ac_status=$? 2153 if test -s conftest.err; then 2154 grep -v '^ *+' conftest.err >conftest.er1 2155 cat conftest.er1 >&5 2156 mv -f conftest.er1 conftest.err 2157 fi 2158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2159 test $ac_status = 0; } > conftest.i && { 2160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2161 test ! -s conftest.err 2162 }; then : 2163 ac_retval=0 2164else 2165 $as_echo "$as_me: failed program was:" >&5 2166sed 's/^/| /' conftest.$ac_ext >&5 2167 2168 ac_retval=1 2169fi 2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2171 as_fn_set_status $ac_retval 2172 2173} @%:@ ac_fn_c_try_cpp 2174 2175@%:@ ac_fn_c_try_run LINENO 2176@%:@ ---------------------- 2177@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes 2178@%:@ that executables *can* be run. 2179ac_fn_c_try_run () 2180{ 2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2182 if { { ac_try="$ac_link" 2183case "(($ac_try" in 2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2185 *) ac_try_echo=$ac_try;; 2186esac 2187eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2188$as_echo "$ac_try_echo"; } >&5 2189 (eval "$ac_link") 2>&5 2190 ac_status=$? 2191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2192 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2193 { { case "(($ac_try" in 2194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2195 *) ac_try_echo=$ac_try;; 2196esac 2197eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2198$as_echo "$ac_try_echo"; } >&5 2199 (eval "$ac_try") 2>&5 2200 ac_status=$? 2201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2202 test $ac_status = 0; }; }; then : 2203 ac_retval=0 2204else 2205 $as_echo "$as_me: program exited with status $ac_status" >&5 2206 $as_echo "$as_me: failed program was:" >&5 2207sed 's/^/| /' conftest.$ac_ext >&5 2208 2209 ac_retval=$ac_status 2210fi 2211 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2213 as_fn_set_status $ac_retval 2214 2215} @%:@ ac_fn_c_try_run 2216 2217@%:@ ac_fn_c_check_func LINENO FUNC VAR 2218@%:@ ---------------------------------- 2219@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly 2220ac_fn_c_check_func () 2221{ 2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2224$as_echo_n "checking for $2... " >&6; } 2225if eval \${$3+:} false; then : 2226 $as_echo_n "(cached) " >&6 2227else 2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2229/* end confdefs.h. */ 2230/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2231 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2232#define $2 innocuous_$2 2233 2234/* System header to define __stub macros and hopefully few prototypes, 2235 which can conflict with char $2 (); below. 2236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2237 <limits.h> exists even on freestanding compilers. */ 2238 2239#ifdef __STDC__ 2240# include <limits.h> 2241#else 2242# include <assert.h> 2243#endif 2244 2245#undef $2 2246 2247/* Override any GCC internal prototype to avoid an error. 2248 Use char because int might match the return type of a GCC 2249 builtin and then its argument prototype would still apply. */ 2250#ifdef __cplusplus 2251extern "C" 2252#endif 2253char $2 (); 2254/* The GNU C library defines this for functions which it implements 2255 to always fail with ENOSYS. Some functions are actually named 2256 something starting with __ and the normal name is an alias. */ 2257#if defined __stub_$2 || defined __stub___$2 2258choke me 2259#endif 2260 2261int 2262main () 2263{ 2264return $2 (); 2265 ; 2266 return 0; 2267} 2268_ACEOF 2269if ac_fn_c_try_link "$LINENO"; then : 2270 eval "$3=yes" 2271else 2272 eval "$3=no" 2273fi 2274rm -f core conftest.err conftest.$ac_objext \ 2275 conftest$ac_exeext conftest.$ac_ext 2276fi 2277eval ac_res=\$$3 2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2279$as_echo "$ac_res" >&6; } 2280 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2281 2282} @%:@ ac_fn_c_check_func 2283 2284@%:@ ac_fn_cxx_try_cpp LINENO 2285@%:@ ------------------------ 2286@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. 2287ac_fn_cxx_try_cpp () 2288{ 2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2290 if { { ac_try="$ac_cpp conftest.$ac_ext" 2291case "(($ac_try" in 2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2293 *) ac_try_echo=$ac_try;; 2294esac 2295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2296$as_echo "$ac_try_echo"; } >&5 2297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2298 ac_status=$? 2299 if test -s conftest.err; then 2300 grep -v '^ *+' conftest.err >conftest.er1 2301 cat conftest.er1 >&5 2302 mv -f conftest.er1 conftest.err 2303 fi 2304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2305 test $ac_status = 0; } > conftest.i && { 2306 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2307 test ! -s conftest.err 2308 }; then : 2309 ac_retval=0 2310else 2311 $as_echo "$as_me: failed program was:" >&5 2312sed 's/^/| /' conftest.$ac_ext >&5 2313 2314 ac_retval=1 2315fi 2316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2317 as_fn_set_status $ac_retval 2318 2319} @%:@ ac_fn_cxx_try_cpp 2320 2321@%:@ ac_fn_cxx_try_link LINENO 2322@%:@ ------------------------- 2323@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. 2324ac_fn_cxx_try_link () 2325{ 2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2327 rm -f conftest.$ac_objext conftest$ac_exeext 2328 if { { ac_try="$ac_link" 2329case "(($ac_try" in 2330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2331 *) ac_try_echo=$ac_try;; 2332esac 2333eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2334$as_echo "$ac_try_echo"; } >&5 2335 (eval "$ac_link") 2>conftest.err 2336 ac_status=$? 2337 if test -s conftest.err; then 2338 grep -v '^ *+' conftest.err >conftest.er1 2339 cat conftest.er1 >&5 2340 mv -f conftest.er1 conftest.err 2341 fi 2342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2343 test $ac_status = 0; } && { 2344 test -z "$ac_cxx_werror_flag" || 2345 test ! -s conftest.err 2346 } && test -s conftest$ac_exeext && { 2347 test "$cross_compiling" = yes || 2348 test -x conftest$ac_exeext 2349 }; then : 2350 ac_retval=0 2351else 2352 $as_echo "$as_me: failed program was:" >&5 2353sed 's/^/| /' conftest.$ac_ext >&5 2354 2355 ac_retval=1 2356fi 2357 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2358 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2359 # interfere with the next link command; also delete a directory that is 2360 # left behind by Apple's compiler. We do this before executing the actions. 2361 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2362 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2363 as_fn_set_status $ac_retval 2364 2365} @%:@ ac_fn_cxx_try_link 2366 2367@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2368@%:@ ------------------------------------------------------- 2369@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using 2370@%:@ the include files in INCLUDES and setting the cache variable VAR 2371@%:@ accordingly. 2372ac_fn_c_check_header_mongrel () 2373{ 2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2375 if eval \${$3+:} false; then : 2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2377$as_echo_n "checking for $2... " >&6; } 2378if eval \${$3+:} false; then : 2379 $as_echo_n "(cached) " >&6 2380fi 2381eval ac_res=\$$3 2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2383$as_echo "$ac_res" >&6; } 2384else 2385 # Is the header compilable? 2386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2387$as_echo_n "checking $2 usability... " >&6; } 2388cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2389/* end confdefs.h. */ 2390$4 2391@%:@include <$2> 2392_ACEOF 2393if ac_fn_c_try_compile "$LINENO"; then : 2394 ac_header_compiler=yes 2395else 2396 ac_header_compiler=no 2397fi 2398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2400$as_echo "$ac_header_compiler" >&6; } 2401 2402# Is the header present? 2403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2404$as_echo_n "checking $2 presence... " >&6; } 2405cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2406/* end confdefs.h. */ 2407@%:@include <$2> 2408_ACEOF 2409if ac_fn_c_try_cpp "$LINENO"; then : 2410 ac_header_preproc=yes 2411else 2412 ac_header_preproc=no 2413fi 2414rm -f conftest.err conftest.i conftest.$ac_ext 2415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2416$as_echo "$ac_header_preproc" >&6; } 2417 2418# So? What about this header? 2419case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2420 yes:no: ) 2421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2422$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2424$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2425 ;; 2426 no:yes:* ) 2427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2428$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2430$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2432$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2434$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2436$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2437 ;; 2438esac 2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2440$as_echo_n "checking for $2... " >&6; } 2441if eval \${$3+:} false; then : 2442 $as_echo_n "(cached) " >&6 2443else 2444 eval "$3=\$ac_header_compiler" 2445fi 2446eval ac_res=\$$3 2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2448$as_echo "$ac_res" >&6; } 2449fi 2450 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2451 2452} @%:@ ac_fn_c_check_header_mongrel 2453 2454@%:@ ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2455@%:@ --------------------------------------------- 2456@%:@ Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2457@%:@ accordingly. 2458ac_fn_c_check_decl () 2459{ 2460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2461 as_decl_name=`echo $2|sed 's/ *(.*//'` 2462 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2464$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2465if eval \${$3+:} false; then : 2466 $as_echo_n "(cached) " >&6 2467else 2468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2469/* end confdefs.h. */ 2470$4 2471int 2472main () 2473{ 2474@%:@ifndef $as_decl_name 2475@%:@ifdef __cplusplus 2476 (void) $as_decl_use; 2477@%:@else 2478 (void) $as_decl_name; 2479@%:@endif 2480@%:@endif 2481 2482 ; 2483 return 0; 2484} 2485_ACEOF 2486if ac_fn_c_try_compile "$LINENO"; then : 2487 eval "$3=yes" 2488else 2489 eval "$3=no" 2490fi 2491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2492fi 2493eval ac_res=\$$3 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2495$as_echo "$ac_res" >&6; } 2496 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2497 2498} @%:@ ac_fn_c_check_decl 2499 2500@%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2501@%:@ ---------------------------------------------------- 2502@%:@ Tries to find if the field MEMBER exists in type AGGR, after including 2503@%:@ INCLUDES, setting cache variable VAR accordingly. 2504ac_fn_c_check_member () 2505{ 2506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2508$as_echo_n "checking for $2.$3... " >&6; } 2509if eval \${$4+:} false; then : 2510 $as_echo_n "(cached) " >&6 2511else 2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2513/* end confdefs.h. */ 2514$5 2515int 2516main () 2517{ 2518static $2 ac_aggr; 2519if (ac_aggr.$3) 2520return 0; 2521 ; 2522 return 0; 2523} 2524_ACEOF 2525if ac_fn_c_try_compile "$LINENO"; then : 2526 eval "$4=yes" 2527else 2528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2529/* end confdefs.h. */ 2530$5 2531int 2532main () 2533{ 2534static $2 ac_aggr; 2535if (sizeof ac_aggr.$3) 2536return 0; 2537 ; 2538 return 0; 2539} 2540_ACEOF 2541if ac_fn_c_try_compile "$LINENO"; then : 2542 eval "$4=yes" 2543else 2544 eval "$4=no" 2545fi 2546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2547fi 2548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2549fi 2550eval ac_res=\$$4 2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2552$as_echo "$ac_res" >&6; } 2553 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2554 2555} @%:@ ac_fn_c_check_member 2556 2557@%:@ ac_fn_cxx_try_run LINENO 2558@%:@ ------------------------ 2559@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes 2560@%:@ that executables *can* be run. 2561ac_fn_cxx_try_run () 2562{ 2563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2564 if { { ac_try="$ac_link" 2565case "(($ac_try" in 2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2567 *) ac_try_echo=$ac_try;; 2568esac 2569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2570$as_echo "$ac_try_echo"; } >&5 2571 (eval "$ac_link") 2>&5 2572 ac_status=$? 2573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2574 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2575 { { case "(($ac_try" in 2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2577 *) ac_try_echo=$ac_try;; 2578esac 2579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2580$as_echo "$ac_try_echo"; } >&5 2581 (eval "$ac_try") 2>&5 2582 ac_status=$? 2583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2584 test $ac_status = 0; }; }; then : 2585 ac_retval=0 2586else 2587 $as_echo "$as_me: program exited with status $ac_status" >&5 2588 $as_echo "$as_me: failed program was:" >&5 2589sed 's/^/| /' conftest.$ac_ext >&5 2590 2591 ac_retval=$ac_status 2592fi 2593 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2595 as_fn_set_status $ac_retval 2596 2597} @%:@ ac_fn_cxx_try_run 2598 2599@%:@ ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2600@%:@ --------------------------------------------------------- 2601@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using 2602@%:@ the include files in INCLUDES and setting the cache variable VAR 2603@%:@ accordingly. 2604ac_fn_cxx_check_header_mongrel () 2605{ 2606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2607 if eval \${$3+:} false; then : 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2609$as_echo_n "checking for $2... " >&6; } 2610if eval \${$3+:} false; then : 2611 $as_echo_n "(cached) " >&6 2612fi 2613eval ac_res=\$$3 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2615$as_echo "$ac_res" >&6; } 2616else 2617 # Is the header compilable? 2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2619$as_echo_n "checking $2 usability... " >&6; } 2620cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2621/* end confdefs.h. */ 2622$4 2623@%:@include <$2> 2624_ACEOF 2625if ac_fn_cxx_try_compile "$LINENO"; then : 2626 ac_header_compiler=yes 2627else 2628 ac_header_compiler=no 2629fi 2630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2632$as_echo "$ac_header_compiler" >&6; } 2633 2634# Is the header present? 2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2636$as_echo_n "checking $2 presence... " >&6; } 2637cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2638/* end confdefs.h. */ 2639@%:@include <$2> 2640_ACEOF 2641if ac_fn_cxx_try_cpp "$LINENO"; then : 2642 ac_header_preproc=yes 2643else 2644 ac_header_preproc=no 2645fi 2646rm -f conftest.err conftest.i conftest.$ac_ext 2647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2648$as_echo "$ac_header_preproc" >&6; } 2649 2650# So? What about this header? 2651case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2652 yes:no: ) 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2654$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2656$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2657 ;; 2658 no:yes:* ) 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2660$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2662$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2664$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2666$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2668$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2669 ;; 2670esac 2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2672$as_echo_n "checking for $2... " >&6; } 2673if eval \${$3+:} false; then : 2674 $as_echo_n "(cached) " >&6 2675else 2676 eval "$3=\$ac_header_compiler" 2677fi 2678eval ac_res=\$$3 2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2680$as_echo "$ac_res" >&6; } 2681fi 2682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2683 2684} @%:@ ac_fn_cxx_check_header_mongrel 2685cat >config.log <<_ACEOF 2686This file contains any messages produced by compilers while 2687running configure, to aid debugging if configure makes a mistake. 2688 2689It was created by linuxsampler $as_me 2.2.0, which was 2690generated by GNU Autoconf 2.69. Invocation command line was 2691 2692 $ $0 $@ 2693 2694_ACEOF 2695exec 5>>config.log 2696{ 2697cat <<_ASUNAME 2698## --------- ## 2699## Platform. ## 2700## --------- ## 2701 2702hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2703uname -m = `(uname -m) 2>/dev/null || echo unknown` 2704uname -r = `(uname -r) 2>/dev/null || echo unknown` 2705uname -s = `(uname -s) 2>/dev/null || echo unknown` 2706uname -v = `(uname -v) 2>/dev/null || echo unknown` 2707 2708/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2709/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2710 2711/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2712/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2713/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2714/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2715/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2716/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2717/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2718 2719_ASUNAME 2720 2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2722for as_dir in $PATH 2723do 2724 IFS=$as_save_IFS 2725 test -z "$as_dir" && as_dir=. 2726 $as_echo "PATH: $as_dir" 2727 done 2728IFS=$as_save_IFS 2729 2730} >&5 2731 2732cat >&5 <<_ACEOF 2733 2734 2735## ----------- ## 2736## Core tests. ## 2737## ----------- ## 2738 2739_ACEOF 2740 2741 2742# Keep a trace of the command line. 2743# Strip out --no-create and --no-recursion so they do not pile up. 2744# Strip out --silent because we don't want to record it for future runs. 2745# Also quote any args containing shell meta-characters. 2746# Make two passes to allow for proper duplicate-argument suppression. 2747ac_configure_args= 2748ac_configure_args0= 2749ac_configure_args1= 2750ac_must_keep_next=false 2751for ac_pass in 1 2 2752do 2753 for ac_arg 2754 do 2755 case $ac_arg in 2756 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2757 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2758 | -silent | --silent | --silen | --sile | --sil) 2759 continue ;; 2760 *\'*) 2761 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2762 esac 2763 case $ac_pass in 2764 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2765 2) 2766 as_fn_append ac_configure_args1 " '$ac_arg'" 2767 if test $ac_must_keep_next = true; then 2768 ac_must_keep_next=false # Got value, back to normal. 2769 else 2770 case $ac_arg in 2771 *=* | --config-cache | -C | -disable-* | --disable-* \ 2772 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2773 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2774 | -with-* | --with-* | -without-* | --without-* | --x) 2775 case "$ac_configure_args0 " in 2776 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2777 esac 2778 ;; 2779 -* ) ac_must_keep_next=true ;; 2780 esac 2781 fi 2782 as_fn_append ac_configure_args " '$ac_arg'" 2783 ;; 2784 esac 2785 done 2786done 2787{ ac_configure_args0=; unset ac_configure_args0;} 2788{ ac_configure_args1=; unset ac_configure_args1;} 2789 2790# When interrupted or exit'd, cleanup temporary files, and complete 2791# config.log. We remove comments because anyway the quotes in there 2792# would cause problems or look ugly. 2793# WARNING: Use '\'' to represent an apostrophe within the trap. 2794# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2795trap 'exit_status=$? 2796 # Save into config.log some information that might help in debugging. 2797 { 2798 echo 2799 2800 $as_echo "## ---------------- ## 2801## Cache variables. ## 2802## ---------------- ##" 2803 echo 2804 # The following way of writing the cache mishandles newlines in values, 2805( 2806 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2807 eval ac_val=\$$ac_var 2808 case $ac_val in #( 2809 *${as_nl}*) 2810 case $ac_var in #( 2811 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2812$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2813 esac 2814 case $ac_var in #( 2815 _ | IFS | as_nl) ;; #( 2816 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2817 *) { eval $ac_var=; unset $ac_var;} ;; 2818 esac ;; 2819 esac 2820 done 2821 (set) 2>&1 | 2822 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2823 *${as_nl}ac_space=\ *) 2824 sed -n \ 2825 "s/'\''/'\''\\\\'\'''\''/g; 2826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2827 ;; #( 2828 *) 2829 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2830 ;; 2831 esac | 2832 sort 2833) 2834 echo 2835 2836 $as_echo "## ----------------- ## 2837## Output variables. ## 2838## ----------------- ##" 2839 echo 2840 for ac_var in $ac_subst_vars 2841 do 2842 eval ac_val=\$$ac_var 2843 case $ac_val in 2844 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2845 esac 2846 $as_echo "$ac_var='\''$ac_val'\''" 2847 done | sort 2848 echo 2849 2850 if test -n "$ac_subst_files"; then 2851 $as_echo "## ------------------- ## 2852## File substitutions. ## 2853## ------------------- ##" 2854 echo 2855 for ac_var in $ac_subst_files 2856 do 2857 eval ac_val=\$$ac_var 2858 case $ac_val in 2859 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2860 esac 2861 $as_echo "$ac_var='\''$ac_val'\''" 2862 done | sort 2863 echo 2864 fi 2865 2866 if test -s confdefs.h; then 2867 $as_echo "## ----------- ## 2868## confdefs.h. ## 2869## ----------- ##" 2870 echo 2871 cat confdefs.h 2872 echo 2873 fi 2874 test "$ac_signal" != 0 && 2875 $as_echo "$as_me: caught signal $ac_signal" 2876 $as_echo "$as_me: exit $exit_status" 2877 } >&5 2878 rm -f core *.core core.conftest.* && 2879 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2880 exit $exit_status 2881' 0 2882for ac_signal in 1 2 13 15; do 2883 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2884done 2885ac_signal=0 2886 2887# confdefs.h avoids OS command line length limits that DEFS can exceed. 2888rm -f -r conftest* confdefs.h 2889 2890$as_echo "/* confdefs.h */" > confdefs.h 2891 2892# Predefined preprocessor variables. 2893 2894cat >>confdefs.h <<_ACEOF 2895@%:@define PACKAGE_NAME "$PACKAGE_NAME" 2896_ACEOF 2897 2898cat >>confdefs.h <<_ACEOF 2899@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2900_ACEOF 2901 2902cat >>confdefs.h <<_ACEOF 2903@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" 2904_ACEOF 2905 2906cat >>confdefs.h <<_ACEOF 2907@%:@define PACKAGE_STRING "$PACKAGE_STRING" 2908_ACEOF 2909 2910cat >>confdefs.h <<_ACEOF 2911@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2912_ACEOF 2913 2914cat >>confdefs.h <<_ACEOF 2915@%:@define PACKAGE_URL "$PACKAGE_URL" 2916_ACEOF 2917 2918 2919# Let the site file select an alternate cache file if it wants to. 2920# Prefer an explicitly selected file to automatically selected ones. 2921ac_site_file1=NONE 2922ac_site_file2=NONE 2923if test -n "$CONFIG_SITE"; then 2924 # We do not want a PATH search for config.site. 2925 case $CONFIG_SITE in @%:@(( 2926 -*) ac_site_file1=./$CONFIG_SITE;; 2927 */*) ac_site_file1=$CONFIG_SITE;; 2928 *) ac_site_file1=./$CONFIG_SITE;; 2929 esac 2930elif test "x$prefix" != xNONE; then 2931 ac_site_file1=$prefix/share/config.site 2932 ac_site_file2=$prefix/etc/config.site 2933else 2934 ac_site_file1=$ac_default_prefix/share/config.site 2935 ac_site_file2=$ac_default_prefix/etc/config.site 2936fi 2937for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2938do 2939 test "x$ac_site_file" = xNONE && continue 2940 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2941 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2942$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2943 sed 's/^/| /' "$ac_site_file" >&5 2944 . "$ac_site_file" \ 2945 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2947as_fn_error $? "failed to load site script $ac_site_file 2948See \`config.log' for more details" "$LINENO" 5; } 2949 fi 2950done 2951 2952if test -r "$cache_file"; then 2953 # Some versions of bash will fail to source /dev/null (special files 2954 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2955 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2956 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2957$as_echo "$as_me: loading cache $cache_file" >&6;} 2958 case $cache_file in 2959 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2960 *) . "./$cache_file";; 2961 esac 2962 fi 2963else 2964 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2965$as_echo "$as_me: creating cache $cache_file" >&6;} 2966 >$cache_file 2967fi 2968 2969# Check that the precious variables saved in the cache have kept the same 2970# value. 2971ac_cache_corrupted=false 2972for ac_var in $ac_precious_vars; do 2973 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2974 eval ac_new_set=\$ac_env_${ac_var}_set 2975 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2976 eval ac_new_val=\$ac_env_${ac_var}_value 2977 case $ac_old_set,$ac_new_set in 2978 set,) 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2980$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2981 ac_cache_corrupted=: ;; 2982 ,set) 2983 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2984$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2985 ac_cache_corrupted=: ;; 2986 ,);; 2987 *) 2988 if test "x$ac_old_val" != "x$ac_new_val"; then 2989 # differences in whitespace do not lead to failure. 2990 ac_old_val_w=`echo x $ac_old_val` 2991 ac_new_val_w=`echo x $ac_new_val` 2992 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2993 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2994$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2995 ac_cache_corrupted=: 2996 else 2997 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2998$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2999 eval $ac_var=\$ac_old_val 3000 fi 3001 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3002$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3003 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3004$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3005 fi;; 3006 esac 3007 # Pass precious variables to config.status. 3008 if test "$ac_new_set" = set; then 3009 case $ac_new_val in 3010 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3011 *) ac_arg=$ac_var=$ac_new_val ;; 3012 esac 3013 case " $ac_configure_args " in 3014 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3015 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3016 esac 3017 fi 3018done 3019if $ac_cache_corrupted; then 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3022 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3023$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3024 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3025fi 3026## -------------------- ## 3027## Main body of script. ## 3028## -------------------- ## 3029 3030ac_ext=c 3031ac_cpp='$CPP $CPPFLAGS' 3032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3034ac_compiler_gnu=$ac_cv_c_compiler_gnu 3035 3036 3037 3038 3039#------------------------------------------------------------------------------------ 3040# The following is the libtool / shared library version. This doesn't have to 3041# do anything with the release version. It MUST conform to the following rules: 3042# 3043# 1. Start with version information of `0:0:0' for each libtool library. 3044# 2. Update the version information only immediately before a public release of 3045# your software. More frequent updates are unnecessary, and only guarantee 3046# that the current interface number gets larger faster. 3047# 3. If the library source code has changed at all since the last update, then 3048# increment revision (`c:r:a' becomes `c:r+1:a'). 3049# 4. If any interfaces have been added, removed, or changed since the last update, 3050# increment current, and set revision to 0. 3051# 5. If any interfaces have been added since the last public release, then increment 3052# age. 3053# 6. If any interfaces have been removed since the last public release, then set age 3054# to 0. 3055 3056LIBLINUXSAMPLER_LT_CURRENT=6 3057LIBLINUXSAMPLER_LT_REVISION=0 3058LIBLINUXSAMPLER_LT_AGE=0 3059SHARED_VERSION_INFO="$LIBLINUXSAMPLER_LT_CURRENT:$LIBLINUXSAMPLER_LT_REVISION:$LIBLINUXSAMPLER_LT_AGE" 3060 3061#------------------------------------------------------------------------------------ 3062# the LSCP specification version this LinuSampler release complies with: 3063 3064LSCP_RELEASE_MAJOR=1 3065LSCP_RELEASE_MINOR=7 3066 3067 3068cat >>confdefs.h <<_ACEOF 3069@%:@define LSCP_RELEASE_MAJOR ${LSCP_RELEASE_MAJOR} 3070_ACEOF 3071 3072 3073cat >>confdefs.h <<_ACEOF 3074@%:@define LSCP_RELEASE_MINOR ${LSCP_RELEASE_MINOR} 3075_ACEOF 3076 3077 3078am__api_version='1.16' 3079 3080ac_aux_dir= 3081for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3082 if test -f "$ac_dir/install-sh"; then 3083 ac_aux_dir=$ac_dir 3084 ac_install_sh="$ac_aux_dir/install-sh -c" 3085 break 3086 elif test -f "$ac_dir/install.sh"; then 3087 ac_aux_dir=$ac_dir 3088 ac_install_sh="$ac_aux_dir/install.sh -c" 3089 break 3090 elif test -f "$ac_dir/shtool"; then 3091 ac_aux_dir=$ac_dir 3092 ac_install_sh="$ac_aux_dir/shtool install -c" 3093 break 3094 fi 3095done 3096if test -z "$ac_aux_dir"; then 3097 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3098fi 3099 3100# These three variables are undocumented and unsupported, 3101# and are intended to be withdrawn in a future Autoconf release. 3102# They can cause serious problems if a builder's source tree is in a directory 3103# whose full name contains unusual characters. 3104ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3105ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3106ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3107 3108 3109# Find a good install program. We prefer a C program (faster), 3110# so one script is as good as another. But avoid the broken or 3111# incompatible versions: 3112# SysV /etc/install, /usr/sbin/install 3113# SunOS /usr/etc/install 3114# IRIX /sbin/install 3115# AIX /bin/install 3116# AmigaOS /C/install, which installs bootblocks on floppy discs 3117# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3118# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3119# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3120# OS/2's system install, which has a completely different semantic 3121# ./install, which can be erroneously created by make from ./install.sh. 3122# Reject install programs that cannot install multiple files. 3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3124$as_echo_n "checking for a BSD-compatible install... " >&6; } 3125if test -z "$INSTALL"; then 3126if ${ac_cv_path_install+:} false; then : 3127 $as_echo_n "(cached) " >&6 3128else 3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3130for as_dir in $PATH 3131do 3132 IFS=$as_save_IFS 3133 test -z "$as_dir" && as_dir=. 3134 # Account for people who put trailing slashes in PATH elements. 3135case $as_dir/ in @%:@(( 3136 ./ | .// | /[cC]/* | \ 3137 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3138 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3139 /usr/ucb/* ) ;; 3140 *) 3141 # OSF1 and SCO ODT 3.0 have their own names for install. 3142 # Don't use installbsd from OSF since it installs stuff as root 3143 # by default. 3144 for ac_prog in ginstall scoinst install; do 3145 for ac_exec_ext in '' $ac_executable_extensions; do 3146 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3147 if test $ac_prog = install && 3148 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3149 # AIX install. It has an incompatible calling convention. 3150 : 3151 elif test $ac_prog = install && 3152 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3153 # program-specific install script used by HP pwplus--don't use. 3154 : 3155 else 3156 rm -rf conftest.one conftest.two conftest.dir 3157 echo one > conftest.one 3158 echo two > conftest.two 3159 mkdir conftest.dir 3160 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3161 test -s conftest.one && test -s conftest.two && 3162 test -s conftest.dir/conftest.one && 3163 test -s conftest.dir/conftest.two 3164 then 3165 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3166 break 3 3167 fi 3168 fi 3169 fi 3170 done 3171 done 3172 ;; 3173esac 3174 3175 done 3176IFS=$as_save_IFS 3177 3178rm -rf conftest.one conftest.two conftest.dir 3179 3180fi 3181 if test "${ac_cv_path_install+set}" = set; then 3182 INSTALL=$ac_cv_path_install 3183 else 3184 # As a last resort, use the slow shell script. Don't cache a 3185 # value for INSTALL within a source directory, because that will 3186 # break other packages using the cache if that directory is 3187 # removed, or if the value is a relative name. 3188 INSTALL=$ac_install_sh 3189 fi 3190fi 3191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3192$as_echo "$INSTALL" >&6; } 3193 3194# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3195# It thinks the first close brace ends the variable substitution. 3196test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3197 3198test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3199 3200test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3201 3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3203$as_echo_n "checking whether build environment is sane... " >&6; } 3204# Reject unsafe characters in $srcdir or the absolute working directory 3205# name. Accept space and tab only in the latter. 3206am_lf=' 3207' 3208case `pwd` in 3209 *[\\\"\#\$\&\'\`$am_lf]*) 3210 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3211esac 3212case $srcdir in 3213 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3214 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3215esac 3216 3217# Do 'set' in a subshell so we don't clobber the current shell's 3218# arguments. Must try -L first in case configure is actually a 3219# symlink; some systems play weird games with the mod time of symlinks 3220# (eg FreeBSD returns the mod time of the symlink's containing 3221# directory). 3222if ( 3223 am_has_slept=no 3224 for am_try in 1 2; do 3225 echo "timestamp, slept: $am_has_slept" > conftest.file 3226 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3227 if test "$*" = "X"; then 3228 # -L didn't work. 3229 set X `ls -t "$srcdir/configure" conftest.file` 3230 fi 3231 if test "$*" != "X $srcdir/configure conftest.file" \ 3232 && test "$*" != "X conftest.file $srcdir/configure"; then 3233 3234 # If neither matched, then we have a broken ls. This can happen 3235 # if, for instance, CONFIG_SHELL is bash and it inherits a 3236 # broken ls alias from the environment. This has actually 3237 # happened. Such a system could not be considered "sane". 3238 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3239 alias in your environment" "$LINENO" 5 3240 fi 3241 if test "$2" = conftest.file || test $am_try -eq 2; then 3242 break 3243 fi 3244 # Just in case. 3245 sleep 1 3246 am_has_slept=yes 3247 done 3248 test "$2" = conftest.file 3249 ) 3250then 3251 # Ok. 3252 : 3253else 3254 as_fn_error $? "newly created file is older than distributed files! 3255Check your system clock" "$LINENO" 5 3256fi 3257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3258$as_echo "yes" >&6; } 3259# If we didn't sleep, we still need to ensure time stamps of config.status and 3260# generated files are strictly newer. 3261am_sleep_pid= 3262if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3263 ( sleep 1 ) & 3264 am_sleep_pid=$! 3265fi 3266 3267rm -f conftest.file 3268 3269test "$program_prefix" != NONE && 3270 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3271# Use a double $ so make ignores it. 3272test "$program_suffix" != NONE && 3273 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3274# Double any \ or $. 3275# By default was `s,x,x', remove it if useless. 3276ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3277program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3278 3279# Expand $ac_aux_dir to an absolute path. 3280am_aux_dir=`cd "$ac_aux_dir" && pwd` 3281 3282if test x"${MISSING+set}" != xset; then 3283 case $am_aux_dir in 3284 *\ * | *\ *) 3285 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3286 *) 3287 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3288 esac 3289fi 3290# Use eval to expand $SHELL 3291if eval "$MISSING --is-lightweight"; then 3292 am_missing_run="$MISSING " 3293else 3294 am_missing_run= 3295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3296$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3297fi 3298 3299if test x"${install_sh+set}" != xset; then 3300 case $am_aux_dir in 3301 *\ * | *\ *) 3302 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3303 *) 3304 install_sh="\${SHELL} $am_aux_dir/install-sh" 3305 esac 3306fi 3307 3308# Installed binaries are usually stripped using 'strip' when the user 3309# run "make install-strip". However 'strip' might not be the right 3310# tool to use in cross-compilation environments, therefore Automake 3311# will honor the 'STRIP' environment variable to overrule this program. 3312if test "$cross_compiling" != no; then 3313 if test -n "$ac_tool_prefix"; then 3314 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3315set dummy ${ac_tool_prefix}strip; ac_word=$2 3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3317$as_echo_n "checking for $ac_word... " >&6; } 3318if ${ac_cv_prog_STRIP+:} false; then : 3319 $as_echo_n "(cached) " >&6 3320else 3321 if test -n "$STRIP"; then 3322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3323else 3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3325for as_dir in $PATH 3326do 3327 IFS=$as_save_IFS 3328 test -z "$as_dir" && as_dir=. 3329 for ac_exec_ext in '' $ac_executable_extensions; do 3330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3331 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3333 break 2 3334 fi 3335done 3336 done 3337IFS=$as_save_IFS 3338 3339fi 3340fi 3341STRIP=$ac_cv_prog_STRIP 3342if test -n "$STRIP"; then 3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3344$as_echo "$STRIP" >&6; } 3345else 3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3347$as_echo "no" >&6; } 3348fi 3349 3350 3351fi 3352if test -z "$ac_cv_prog_STRIP"; then 3353 ac_ct_STRIP=$STRIP 3354 # Extract the first word of "strip", so it can be a program name with args. 3355set dummy strip; ac_word=$2 3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3357$as_echo_n "checking for $ac_word... " >&6; } 3358if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3359 $as_echo_n "(cached) " >&6 3360else 3361 if test -n "$ac_ct_STRIP"; then 3362 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3363else 3364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3365for as_dir in $PATH 3366do 3367 IFS=$as_save_IFS 3368 test -z "$as_dir" && as_dir=. 3369 for ac_exec_ext in '' $ac_executable_extensions; do 3370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3371 ac_cv_prog_ac_ct_STRIP="strip" 3372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3373 break 2 3374 fi 3375done 3376 done 3377IFS=$as_save_IFS 3378 3379fi 3380fi 3381ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3382if test -n "$ac_ct_STRIP"; then 3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3384$as_echo "$ac_ct_STRIP" >&6; } 3385else 3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3387$as_echo "no" >&6; } 3388fi 3389 3390 if test "x$ac_ct_STRIP" = x; then 3391 STRIP=":" 3392 else 3393 case $cross_compiling:$ac_tool_warned in 3394yes:) 3395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3397ac_tool_warned=yes ;; 3398esac 3399 STRIP=$ac_ct_STRIP 3400 fi 3401else 3402 STRIP="$ac_cv_prog_STRIP" 3403fi 3404 3405fi 3406INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3407 3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3409$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3410if test -z "$MKDIR_P"; then 3411 if ${ac_cv_path_mkdir+:} false; then : 3412 $as_echo_n "(cached) " >&6 3413else 3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3415for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3416do 3417 IFS=$as_save_IFS 3418 test -z "$as_dir" && as_dir=. 3419 for ac_prog in mkdir gmkdir; do 3420 for ac_exec_ext in '' $ac_executable_extensions; do 3421 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3422 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3423 'mkdir (GNU coreutils) '* | \ 3424 'mkdir (coreutils) '* | \ 3425 'mkdir (fileutils) '4.1*) 3426 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3427 break 3;; 3428 esac 3429 done 3430 done 3431 done 3432IFS=$as_save_IFS 3433 3434fi 3435 3436 test -d ./--version && rmdir ./--version 3437 if test "${ac_cv_path_mkdir+set}" = set; then 3438 MKDIR_P="$ac_cv_path_mkdir -p" 3439 else 3440 # As a last resort, use the slow shell script. Don't cache a 3441 # value for MKDIR_P within a source directory, because that will 3442 # break other packages using the cache if that directory is 3443 # removed, or if the value is a relative name. 3444 MKDIR_P="$ac_install_sh -d" 3445 fi 3446fi 3447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3448$as_echo "$MKDIR_P" >&6; } 3449 3450for ac_prog in gawk mawk nawk awk 3451do 3452 # Extract the first word of "$ac_prog", so it can be a program name with args. 3453set dummy $ac_prog; ac_word=$2 3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3455$as_echo_n "checking for $ac_word... " >&6; } 3456if ${ac_cv_prog_AWK+:} false; then : 3457 $as_echo_n "(cached) " >&6 3458else 3459 if test -n "$AWK"; then 3460 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3461else 3462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3463for as_dir in $PATH 3464do 3465 IFS=$as_save_IFS 3466 test -z "$as_dir" && as_dir=. 3467 for ac_exec_ext in '' $ac_executable_extensions; do 3468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3469 ac_cv_prog_AWK="$ac_prog" 3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3471 break 2 3472 fi 3473done 3474 done 3475IFS=$as_save_IFS 3476 3477fi 3478fi 3479AWK=$ac_cv_prog_AWK 3480if test -n "$AWK"; then 3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3482$as_echo "$AWK" >&6; } 3483else 3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3485$as_echo "no" >&6; } 3486fi 3487 3488 3489 test -n "$AWK" && break 3490done 3491 3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3493$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3494set x ${MAKE-make} 3495ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3496if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3497 $as_echo_n "(cached) " >&6 3498else 3499 cat >conftest.make <<\_ACEOF 3500SHELL = /bin/sh 3501all: 3502 @echo '@@@%%%=$(MAKE)=@@@%%%' 3503_ACEOF 3504# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3505case `${MAKE-make} -f conftest.make 2>/dev/null` in 3506 *@@@%%%=?*=@@@%%%*) 3507 eval ac_cv_prog_make_${ac_make}_set=yes;; 3508 *) 3509 eval ac_cv_prog_make_${ac_make}_set=no;; 3510esac 3511rm -f conftest.make 3512fi 3513if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3515$as_echo "yes" >&6; } 3516 SET_MAKE= 3517else 3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3519$as_echo "no" >&6; } 3520 SET_MAKE="MAKE=${MAKE-make}" 3521fi 3522 3523rm -rf .tst 2>/dev/null 3524mkdir .tst 2>/dev/null 3525if test -d .tst; then 3526 am__leading_dot=. 3527else 3528 am__leading_dot=_ 3529fi 3530rmdir .tst 2>/dev/null 3531 3532@%:@ Check whether --enable-silent-rules was given. 3533if test "${enable_silent_rules+set}" = set; then : 3534 enableval=$enable_silent_rules; 3535fi 3536 3537case $enable_silent_rules in @%:@ ((( 3538 yes) AM_DEFAULT_VERBOSITY=0;; 3539 no) AM_DEFAULT_VERBOSITY=1;; 3540 *) AM_DEFAULT_VERBOSITY=1;; 3541esac 3542am_make=${MAKE-make} 3543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3544$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3545if ${am_cv_make_support_nested_variables+:} false; then : 3546 $as_echo_n "(cached) " >&6 3547else 3548 if $as_echo 'TRUE=$(BAR$(V)) 3549BAR0=false 3550BAR1=true 3551V=1 3552am__doit: 3553 @$(TRUE) 3554.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3555 am_cv_make_support_nested_variables=yes 3556else 3557 am_cv_make_support_nested_variables=no 3558fi 3559fi 3560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3561$as_echo "$am_cv_make_support_nested_variables" >&6; } 3562if test $am_cv_make_support_nested_variables = yes; then 3563 AM_V='$(V)' 3564 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3565else 3566 AM_V=$AM_DEFAULT_VERBOSITY 3567 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3568fi 3569AM_BACKSLASH='\' 3570 3571if test "`cd $srcdir && pwd`" != "`pwd`"; then 3572 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3573 # is not polluted with repeated "-I." 3574 am__isrc=' -I$(srcdir)' 3575 # test to see if srcdir already configured 3576 if test -f $srcdir/config.status; then 3577 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3578 fi 3579fi 3580 3581# test whether we have cygpath 3582if test -z "$CYGPATH_W"; then 3583 if (cygpath --version) >/dev/null 2>/dev/null; then 3584 CYGPATH_W='cygpath -w' 3585 else 3586 CYGPATH_W=echo 3587 fi 3588fi 3589 3590 3591# Define the identity of the package. 3592 PACKAGE='linuxsampler' 3593 VERSION='2.2.0' 3594 3595 3596cat >>confdefs.h <<_ACEOF 3597@%:@define PACKAGE "$PACKAGE" 3598_ACEOF 3599 3600 3601cat >>confdefs.h <<_ACEOF 3602@%:@define VERSION "$VERSION" 3603_ACEOF 3604 3605# Some tools Automake needs. 3606 3607ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3608 3609 3610AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3611 3612 3613AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3614 3615 3616AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3617 3618 3619MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3620 3621# For better backward compatibility. To be removed once Automake 1.9.x 3622# dies out for good. For more background, see: 3623# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3624# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3625mkdir_p='$(MKDIR_P)' 3626 3627# We need awk for the "check" target (and possibly the TAP driver). The 3628# system "awk" is bad on some platforms. 3629# Always define AMTAR for backward compatibility. Yes, it's still used 3630# in the wild :-( We should find a proper way to deprecate it ... 3631AMTAR='$${TAR-tar}' 3632 3633 3634# We'll loop over all known methods to create a tar archive until one works. 3635_am_tools='gnutar pax cpio none' 3636 3637am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3638 3639 3640 3641 3642 3643 3644# POSIX will say in a future version that running "rm -f" with no argument 3645# is OK; and we want to be able to make that assumption in our Makefile 3646# recipes. So use an aggressive probe to check that the usage we want is 3647# actually supported "in the wild" to an acceptable degree. 3648# See automake bug#10828. 3649# To make any issue more visible, cause the running configure to be aborted 3650# by default if the 'rm' program in use doesn't match our expectations; the 3651# user can still override this though. 3652if rm -f && rm -fr && rm -rf; then : OK; else 3653 cat >&2 <<'END' 3654Oops! 3655 3656Your 'rm' program seems unable to run without file operands specified 3657on the command line, even when the '-f' option is present. This is contrary 3658to the behaviour of most rm programs out there, and not conforming with 3659the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3660 3661Please tell bug-automake@gnu.org about your system, including the value 3662of your $PATH and any error possibly output before this message. This 3663can help us improve future automake versions. 3664 3665END 3666 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3667 echo 'Configuration will proceed anyway, since you have set the' >&2 3668 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3669 echo >&2 3670 else 3671 cat >&2 <<'END' 3672Aborting the configuration process, to ensure you take notice of the issue. 3673 3674You can download and install GNU coreutils to get an 'rm' implementation 3675that behaves properly: <https://www.gnu.org/software/coreutils/>. 3676 3677If you want to complete the configuration process using your problematic 3678'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3679to "yes", and re-run configure. 3680 3681END 3682 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3683 fi 3684fi 3685 3686ac_ext=c 3687ac_cpp='$CPP $CPPFLAGS' 3688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3690ac_compiler_gnu=$ac_cv_c_compiler_gnu 3691if test -n "$ac_tool_prefix"; then 3692 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3693set dummy ${ac_tool_prefix}gcc; ac_word=$2 3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3695$as_echo_n "checking for $ac_word... " >&6; } 3696if ${ac_cv_prog_CC+:} false; then : 3697 $as_echo_n "(cached) " >&6 3698else 3699 if test -n "$CC"; then 3700 ac_cv_prog_CC="$CC" # Let the user override the test. 3701else 3702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3703for as_dir in $PATH 3704do 3705 IFS=$as_save_IFS 3706 test -z "$as_dir" && as_dir=. 3707 for ac_exec_ext in '' $ac_executable_extensions; do 3708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3709 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3711 break 2 3712 fi 3713done 3714 done 3715IFS=$as_save_IFS 3716 3717fi 3718fi 3719CC=$ac_cv_prog_CC 3720if test -n "$CC"; then 3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3722$as_echo "$CC" >&6; } 3723else 3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3725$as_echo "no" >&6; } 3726fi 3727 3728 3729fi 3730if test -z "$ac_cv_prog_CC"; then 3731 ac_ct_CC=$CC 3732 # Extract the first word of "gcc", so it can be a program name with args. 3733set dummy gcc; ac_word=$2 3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3735$as_echo_n "checking for $ac_word... " >&6; } 3736if ${ac_cv_prog_ac_ct_CC+:} false; then : 3737 $as_echo_n "(cached) " >&6 3738else 3739 if test -n "$ac_ct_CC"; then 3740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3741else 3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3743for as_dir in $PATH 3744do 3745 IFS=$as_save_IFS 3746 test -z "$as_dir" && as_dir=. 3747 for ac_exec_ext in '' $ac_executable_extensions; do 3748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3749 ac_cv_prog_ac_ct_CC="gcc" 3750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3751 break 2 3752 fi 3753done 3754 done 3755IFS=$as_save_IFS 3756 3757fi 3758fi 3759ac_ct_CC=$ac_cv_prog_ac_ct_CC 3760if test -n "$ac_ct_CC"; then 3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3762$as_echo "$ac_ct_CC" >&6; } 3763else 3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3765$as_echo "no" >&6; } 3766fi 3767 3768 if test "x$ac_ct_CC" = x; then 3769 CC="" 3770 else 3771 case $cross_compiling:$ac_tool_warned in 3772yes:) 3773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3775ac_tool_warned=yes ;; 3776esac 3777 CC=$ac_ct_CC 3778 fi 3779else 3780 CC="$ac_cv_prog_CC" 3781fi 3782 3783if test -z "$CC"; then 3784 if test -n "$ac_tool_prefix"; then 3785 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3786set dummy ${ac_tool_prefix}cc; ac_word=$2 3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3788$as_echo_n "checking for $ac_word... " >&6; } 3789if ${ac_cv_prog_CC+:} false; then : 3790 $as_echo_n "(cached) " >&6 3791else 3792 if test -n "$CC"; then 3793 ac_cv_prog_CC="$CC" # Let the user override the test. 3794else 3795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3796for as_dir in $PATH 3797do 3798 IFS=$as_save_IFS 3799 test -z "$as_dir" && as_dir=. 3800 for ac_exec_ext in '' $ac_executable_extensions; do 3801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3802 ac_cv_prog_CC="${ac_tool_prefix}cc" 3803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3804 break 2 3805 fi 3806done 3807 done 3808IFS=$as_save_IFS 3809 3810fi 3811fi 3812CC=$ac_cv_prog_CC 3813if test -n "$CC"; then 3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3815$as_echo "$CC" >&6; } 3816else 3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3818$as_echo "no" >&6; } 3819fi 3820 3821 3822 fi 3823fi 3824if test -z "$CC"; then 3825 # Extract the first word of "cc", so it can be a program name with args. 3826set dummy cc; ac_word=$2 3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3828$as_echo_n "checking for $ac_word... " >&6; } 3829if ${ac_cv_prog_CC+:} false; then : 3830 $as_echo_n "(cached) " >&6 3831else 3832 if test -n "$CC"; then 3833 ac_cv_prog_CC="$CC" # Let the user override the test. 3834else 3835 ac_prog_rejected=no 3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3837for as_dir in $PATH 3838do 3839 IFS=$as_save_IFS 3840 test -z "$as_dir" && as_dir=. 3841 for ac_exec_ext in '' $ac_executable_extensions; do 3842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3843 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3844 ac_prog_rejected=yes 3845 continue 3846 fi 3847 ac_cv_prog_CC="cc" 3848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3849 break 2 3850 fi 3851done 3852 done 3853IFS=$as_save_IFS 3854 3855if test $ac_prog_rejected = yes; then 3856 # We found a bogon in the path, so make sure we never use it. 3857 set dummy $ac_cv_prog_CC 3858 shift 3859 if test $@%:@ != 0; then 3860 # We chose a different compiler from the bogus one. 3861 # However, it has the same basename, so the bogon will be chosen 3862 # first if we set CC to just the basename; use the full file name. 3863 shift 3864 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3865 fi 3866fi 3867fi 3868fi 3869CC=$ac_cv_prog_CC 3870if test -n "$CC"; then 3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3872$as_echo "$CC" >&6; } 3873else 3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3875$as_echo "no" >&6; } 3876fi 3877 3878 3879fi 3880if test -z "$CC"; then 3881 if test -n "$ac_tool_prefix"; then 3882 for ac_prog in cl.exe 3883 do 3884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3885set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3887$as_echo_n "checking for $ac_word... " >&6; } 3888if ${ac_cv_prog_CC+:} false; then : 3889 $as_echo_n "(cached) " >&6 3890else 3891 if test -n "$CC"; then 3892 ac_cv_prog_CC="$CC" # Let the user override the test. 3893else 3894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3895for as_dir in $PATH 3896do 3897 IFS=$as_save_IFS 3898 test -z "$as_dir" && as_dir=. 3899 for ac_exec_ext in '' $ac_executable_extensions; do 3900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3901 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3903 break 2 3904 fi 3905done 3906 done 3907IFS=$as_save_IFS 3908 3909fi 3910fi 3911CC=$ac_cv_prog_CC 3912if test -n "$CC"; then 3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3914$as_echo "$CC" >&6; } 3915else 3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3917$as_echo "no" >&6; } 3918fi 3919 3920 3921 test -n "$CC" && break 3922 done 3923fi 3924if test -z "$CC"; then 3925 ac_ct_CC=$CC 3926 for ac_prog in cl.exe 3927do 3928 # Extract the first word of "$ac_prog", so it can be a program name with args. 3929set dummy $ac_prog; ac_word=$2 3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3931$as_echo_n "checking for $ac_word... " >&6; } 3932if ${ac_cv_prog_ac_ct_CC+:} false; then : 3933 $as_echo_n "(cached) " >&6 3934else 3935 if test -n "$ac_ct_CC"; then 3936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3937else 3938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3939for as_dir in $PATH 3940do 3941 IFS=$as_save_IFS 3942 test -z "$as_dir" && as_dir=. 3943 for ac_exec_ext in '' $ac_executable_extensions; do 3944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3945 ac_cv_prog_ac_ct_CC="$ac_prog" 3946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3947 break 2 3948 fi 3949done 3950 done 3951IFS=$as_save_IFS 3952 3953fi 3954fi 3955ac_ct_CC=$ac_cv_prog_ac_ct_CC 3956if test -n "$ac_ct_CC"; then 3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3958$as_echo "$ac_ct_CC" >&6; } 3959else 3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3961$as_echo "no" >&6; } 3962fi 3963 3964 3965 test -n "$ac_ct_CC" && break 3966done 3967 3968 if test "x$ac_ct_CC" = x; then 3969 CC="" 3970 else 3971 case $cross_compiling:$ac_tool_warned in 3972yes:) 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3975ac_tool_warned=yes ;; 3976esac 3977 CC=$ac_ct_CC 3978 fi 3979fi 3980 3981fi 3982 3983 3984test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3986as_fn_error $? "no acceptable C compiler found in \$PATH 3987See \`config.log' for more details" "$LINENO" 5; } 3988 3989# Provide some information about the compiler. 3990$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3991set X $ac_compile 3992ac_compiler=$2 3993for ac_option in --version -v -V -qversion; do 3994 { { ac_try="$ac_compiler $ac_option >&5" 3995case "(($ac_try" in 3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3997 *) ac_try_echo=$ac_try;; 3998esac 3999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4000$as_echo "$ac_try_echo"; } >&5 4001 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4002 ac_status=$? 4003 if test -s conftest.err; then 4004 sed '10a\ 4005... rest of stderr output deleted ... 4006 10q' conftest.err >conftest.er1 4007 cat conftest.er1 >&5 4008 fi 4009 rm -f conftest.er1 conftest.err 4010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4011 test $ac_status = 0; } 4012done 4013 4014cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4015/* end confdefs.h. */ 4016 4017int 4018main () 4019{ 4020 4021 ; 4022 return 0; 4023} 4024_ACEOF 4025ac_clean_files_save=$ac_clean_files 4026ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4027# Try to create an executable without -o first, disregard a.out. 4028# It will help us diagnose broken compilers, and finding out an intuition 4029# of exeext. 4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4031$as_echo_n "checking whether the C compiler works... " >&6; } 4032ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4033 4034# The possible output files: 4035ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4036 4037ac_rmfiles= 4038for ac_file in $ac_files 4039do 4040 case $ac_file in 4041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4042 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4043 esac 4044done 4045rm -f $ac_rmfiles 4046 4047if { { ac_try="$ac_link_default" 4048case "(($ac_try" in 4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4050 *) ac_try_echo=$ac_try;; 4051esac 4052eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4053$as_echo "$ac_try_echo"; } >&5 4054 (eval "$ac_link_default") 2>&5 4055 ac_status=$? 4056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4057 test $ac_status = 0; }; then : 4058 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4059# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4060# in a Makefile. We should not override ac_cv_exeext if it was cached, 4061# so that the user can short-circuit this test for compilers unknown to 4062# Autoconf. 4063for ac_file in $ac_files '' 4064do 4065 test -f "$ac_file" || continue 4066 case $ac_file in 4067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4068 ;; 4069 [ab].out ) 4070 # We found the default executable, but exeext='' is most 4071 # certainly right. 4072 break;; 4073 *.* ) 4074 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4075 then :; else 4076 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4077 fi 4078 # We set ac_cv_exeext here because the later test for it is not 4079 # safe: cross compilers may not add the suffix if given an `-o' 4080 # argument, so we may need to know it at that point already. 4081 # Even if this section looks crufty: it has the advantage of 4082 # actually working. 4083 break;; 4084 * ) 4085 break;; 4086 esac 4087done 4088test "$ac_cv_exeext" = no && ac_cv_exeext= 4089 4090else 4091 ac_file='' 4092fi 4093if test -z "$ac_file"; then : 4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4095$as_echo "no" >&6; } 4096$as_echo "$as_me: failed program was:" >&5 4097sed 's/^/| /' conftest.$ac_ext >&5 4098 4099{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4101as_fn_error 77 "C compiler cannot create executables 4102See \`config.log' for more details" "$LINENO" 5; } 4103else 4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4105$as_echo "yes" >&6; } 4106fi 4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4108$as_echo_n "checking for C compiler default output file name... " >&6; } 4109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4110$as_echo "$ac_file" >&6; } 4111ac_exeext=$ac_cv_exeext 4112 4113rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4114ac_clean_files=$ac_clean_files_save 4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4116$as_echo_n "checking for suffix of executables... " >&6; } 4117if { { ac_try="$ac_link" 4118case "(($ac_try" in 4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4120 *) ac_try_echo=$ac_try;; 4121esac 4122eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4123$as_echo "$ac_try_echo"; } >&5 4124 (eval "$ac_link") 2>&5 4125 ac_status=$? 4126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4127 test $ac_status = 0; }; then : 4128 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4129# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4130# work properly (i.e., refer to `conftest.exe'), while it won't with 4131# `rm'. 4132for ac_file in conftest.exe conftest conftest.*; do 4133 test -f "$ac_file" || continue 4134 case $ac_file in 4135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4136 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4137 break;; 4138 * ) break;; 4139 esac 4140done 4141else 4142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4144as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4145See \`config.log' for more details" "$LINENO" 5; } 4146fi 4147rm -f conftest conftest$ac_cv_exeext 4148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4149$as_echo "$ac_cv_exeext" >&6; } 4150 4151rm -f conftest.$ac_ext 4152EXEEXT=$ac_cv_exeext 4153ac_exeext=$EXEEXT 4154cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4155/* end confdefs.h. */ 4156@%:@include <stdio.h> 4157int 4158main () 4159{ 4160FILE *f = fopen ("conftest.out", "w"); 4161 return ferror (f) || fclose (f) != 0; 4162 4163 ; 4164 return 0; 4165} 4166_ACEOF 4167ac_clean_files="$ac_clean_files conftest.out" 4168# Check that the compiler produces executables we can run. If not, either 4169# the compiler is broken, or we cross compile. 4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4171$as_echo_n "checking whether we are cross compiling... " >&6; } 4172if test "$cross_compiling" != yes; then 4173 { { ac_try="$ac_link" 4174case "(($ac_try" in 4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4176 *) ac_try_echo=$ac_try;; 4177esac 4178eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4179$as_echo "$ac_try_echo"; } >&5 4180 (eval "$ac_link") 2>&5 4181 ac_status=$? 4182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4183 test $ac_status = 0; } 4184 if { ac_try='./conftest$ac_cv_exeext' 4185 { { case "(($ac_try" in 4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4187 *) ac_try_echo=$ac_try;; 4188esac 4189eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4190$as_echo "$ac_try_echo"; } >&5 4191 (eval "$ac_try") 2>&5 4192 ac_status=$? 4193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4194 test $ac_status = 0; }; }; then 4195 cross_compiling=no 4196 else 4197 if test "$cross_compiling" = maybe; then 4198 cross_compiling=yes 4199 else 4200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4202as_fn_error $? "cannot run C compiled programs. 4203If you meant to cross compile, use \`--host'. 4204See \`config.log' for more details" "$LINENO" 5; } 4205 fi 4206 fi 4207fi 4208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4209$as_echo "$cross_compiling" >&6; } 4210 4211rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4212ac_clean_files=$ac_clean_files_save 4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4214$as_echo_n "checking for suffix of object files... " >&6; } 4215if ${ac_cv_objext+:} false; then : 4216 $as_echo_n "(cached) " >&6 4217else 4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4219/* end confdefs.h. */ 4220 4221int 4222main () 4223{ 4224 4225 ; 4226 return 0; 4227} 4228_ACEOF 4229rm -f conftest.o conftest.obj 4230if { { ac_try="$ac_compile" 4231case "(($ac_try" in 4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4233 *) ac_try_echo=$ac_try;; 4234esac 4235eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4236$as_echo "$ac_try_echo"; } >&5 4237 (eval "$ac_compile") 2>&5 4238 ac_status=$? 4239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4240 test $ac_status = 0; }; then : 4241 for ac_file in conftest.o conftest.obj conftest.*; do 4242 test -f "$ac_file" || continue; 4243 case $ac_file in 4244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4245 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4246 break;; 4247 esac 4248done 4249else 4250 $as_echo "$as_me: failed program was:" >&5 4251sed 's/^/| /' conftest.$ac_ext >&5 4252 4253{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4255as_fn_error $? "cannot compute suffix of object files: cannot compile 4256See \`config.log' for more details" "$LINENO" 5; } 4257fi 4258rm -f conftest.$ac_cv_objext conftest.$ac_ext 4259fi 4260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4261$as_echo "$ac_cv_objext" >&6; } 4262OBJEXT=$ac_cv_objext 4263ac_objext=$OBJEXT 4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4265$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4266if ${ac_cv_c_compiler_gnu+:} false; then : 4267 $as_echo_n "(cached) " >&6 4268else 4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4270/* end confdefs.h. */ 4271 4272int 4273main () 4274{ 4275#ifndef __GNUC__ 4276 choke me 4277#endif 4278 4279 ; 4280 return 0; 4281} 4282_ACEOF 4283if ac_fn_c_try_compile "$LINENO"; then : 4284 ac_compiler_gnu=yes 4285else 4286 ac_compiler_gnu=no 4287fi 4288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4289ac_cv_c_compiler_gnu=$ac_compiler_gnu 4290 4291fi 4292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4293$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4294if test $ac_compiler_gnu = yes; then 4295 GCC=yes 4296else 4297 GCC= 4298fi 4299ac_test_CFLAGS=${CFLAGS+set} 4300ac_save_CFLAGS=$CFLAGS 4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4302$as_echo_n "checking whether $CC accepts -g... " >&6; } 4303if ${ac_cv_prog_cc_g+:} false; then : 4304 $as_echo_n "(cached) " >&6 4305else 4306 ac_save_c_werror_flag=$ac_c_werror_flag 4307 ac_c_werror_flag=yes 4308 ac_cv_prog_cc_g=no 4309 CFLAGS="-g" 4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4311/* end confdefs.h. */ 4312 4313int 4314main () 4315{ 4316 4317 ; 4318 return 0; 4319} 4320_ACEOF 4321if ac_fn_c_try_compile "$LINENO"; then : 4322 ac_cv_prog_cc_g=yes 4323else 4324 CFLAGS="" 4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4326/* end confdefs.h. */ 4327 4328int 4329main () 4330{ 4331 4332 ; 4333 return 0; 4334} 4335_ACEOF 4336if ac_fn_c_try_compile "$LINENO"; then : 4337 4338else 4339 ac_c_werror_flag=$ac_save_c_werror_flag 4340 CFLAGS="-g" 4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4342/* end confdefs.h. */ 4343 4344int 4345main () 4346{ 4347 4348 ; 4349 return 0; 4350} 4351_ACEOF 4352if ac_fn_c_try_compile "$LINENO"; then : 4353 ac_cv_prog_cc_g=yes 4354fi 4355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4356fi 4357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4358fi 4359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4360 ac_c_werror_flag=$ac_save_c_werror_flag 4361fi 4362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4363$as_echo "$ac_cv_prog_cc_g" >&6; } 4364if test "$ac_test_CFLAGS" = set; then 4365 CFLAGS=$ac_save_CFLAGS 4366elif test $ac_cv_prog_cc_g = yes; then 4367 if test "$GCC" = yes; then 4368 CFLAGS="-g -O2" 4369 else 4370 CFLAGS="-g" 4371 fi 4372else 4373 if test "$GCC" = yes; then 4374 CFLAGS="-O2" 4375 else 4376 CFLAGS= 4377 fi 4378fi 4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4380$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4381if ${ac_cv_prog_cc_c89+:} false; then : 4382 $as_echo_n "(cached) " >&6 4383else 4384 ac_cv_prog_cc_c89=no 4385ac_save_CC=$CC 4386cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4387/* end confdefs.h. */ 4388#include <stdarg.h> 4389#include <stdio.h> 4390struct stat; 4391/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4392struct buf { int x; }; 4393FILE * (*rcsopen) (struct buf *, struct stat *, int); 4394static char *e (p, i) 4395 char **p; 4396 int i; 4397{ 4398 return p[i]; 4399} 4400static char *f (char * (*g) (char **, int), char **p, ...) 4401{ 4402 char *s; 4403 va_list v; 4404 va_start (v,p); 4405 s = g (p, va_arg (v,int)); 4406 va_end (v); 4407 return s; 4408} 4409 4410/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4411 function prototypes and stuff, but not '\xHH' hex character constants. 4412 These don't provoke an error unfortunately, instead are silently treated 4413 as 'x'. The following induces an error, until -std is added to get 4414 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4415 array size at least. It's necessary to write '\x00'==0 to get something 4416 that's true only with -std. */ 4417int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4418 4419/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4420 inside strings and character constants. */ 4421#define FOO(x) 'x' 4422int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4423 4424int test (int i, double x); 4425struct s1 {int (*f) (int a);}; 4426struct s2 {int (*f) (double a);}; 4427int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4428int argc; 4429char **argv; 4430int 4431main () 4432{ 4433return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4434 ; 4435 return 0; 4436} 4437_ACEOF 4438for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4439 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4440do 4441 CC="$ac_save_CC $ac_arg" 4442 if ac_fn_c_try_compile "$LINENO"; then : 4443 ac_cv_prog_cc_c89=$ac_arg 4444fi 4445rm -f core conftest.err conftest.$ac_objext 4446 test "x$ac_cv_prog_cc_c89" != "xno" && break 4447done 4448rm -f conftest.$ac_ext 4449CC=$ac_save_CC 4450 4451fi 4452# AC_CACHE_VAL 4453case "x$ac_cv_prog_cc_c89" in 4454 x) 4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4456$as_echo "none needed" >&6; } ;; 4457 xno) 4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4459$as_echo "unsupported" >&6; } ;; 4460 *) 4461 CC="$CC $ac_cv_prog_cc_c89" 4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4463$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4464esac 4465if test "x$ac_cv_prog_cc_c89" != xno; then : 4466 4467fi 4468 4469ac_ext=c 4470ac_cpp='$CPP $CPPFLAGS' 4471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4473ac_compiler_gnu=$ac_cv_c_compiler_gnu 4474 4475ac_ext=c 4476ac_cpp='$CPP $CPPFLAGS' 4477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4479ac_compiler_gnu=$ac_cv_c_compiler_gnu 4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4481$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4482if ${am_cv_prog_cc_c_o+:} false; then : 4483 $as_echo_n "(cached) " >&6 4484else 4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4486/* end confdefs.h. */ 4487 4488int 4489main () 4490{ 4491 4492 ; 4493 return 0; 4494} 4495_ACEOF 4496 # Make sure it works both with $CC and with simple cc. 4497 # Following AC_PROG_CC_C_O, we do the test twice because some 4498 # compilers refuse to overwrite an existing .o file with -o, 4499 # though they will create one. 4500 am_cv_prog_cc_c_o=yes 4501 for am_i in 1 2; do 4502 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4503 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4504 ac_status=$? 4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4506 (exit $ac_status); } \ 4507 && test -f conftest2.$ac_objext; then 4508 : OK 4509 else 4510 am_cv_prog_cc_c_o=no 4511 break 4512 fi 4513 done 4514 rm -f core conftest* 4515 unset am_i 4516fi 4517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4518$as_echo "$am_cv_prog_cc_c_o" >&6; } 4519if test "$am_cv_prog_cc_c_o" != yes; then 4520 # Losing compiler, so override with the script. 4521 # FIXME: It is wrong to rewrite CC. 4522 # But if we don't then we get into trouble of one sort or another. 4523 # A longer-term fix would be to have automake use am__CC in this case, 4524 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4525 CC="$am_aux_dir/compile $CC" 4526fi 4527ac_ext=c 4528ac_cpp='$CPP $CPPFLAGS' 4529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4531ac_compiler_gnu=$ac_cv_c_compiler_gnu 4532 4533DEPDIR="${am__leading_dot}deps" 4534 4535ac_config_commands="$ac_config_commands depfiles" 4536 4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4538$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 4539cat > confinc.mk << 'END' 4540am__doit: 4541 @echo this is the am__doit target >confinc.out 4542.PHONY: am__doit 4543END 4544am__include="#" 4545am__quote= 4546# BSD make does it like this. 4547echo '.include "confinc.mk" # ignored' > confmf.BSD 4548# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4549echo 'include confinc.mk # ignored' > confmf.GNU 4550_am_result=no 4551for s in GNU BSD; do 4552 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4553 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4554 ac_status=$? 4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4556 (exit $ac_status); } 4557 case $?:`cat confinc.out 2>/dev/null` in @%:@( 4558 '0:this is the am__doit target') : 4559 case $s in @%:@( 4560 BSD) : 4561 am__include='.include' am__quote='"' ;; @%:@( 4562 *) : 4563 am__include='include' am__quote='' ;; 4564esac ;; @%:@( 4565 *) : 4566 ;; 4567esac 4568 if test "$am__include" != "#"; then 4569 _am_result="yes ($s style)" 4570 break 4571 fi 4572done 4573rm -f confinc.* confmf.* 4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4575$as_echo "${_am_result}" >&6; } 4576 4577@%:@ Check whether --enable-dependency-tracking was given. 4578if test "${enable_dependency_tracking+set}" = set; then : 4579 enableval=$enable_dependency_tracking; 4580fi 4581 4582if test "x$enable_dependency_tracking" != xno; then 4583 am_depcomp="$ac_aux_dir/depcomp" 4584 AMDEPBACKSLASH='\' 4585 am__nodep='_no' 4586fi 4587 if test "x$enable_dependency_tracking" != xno; then 4588 AMDEP_TRUE= 4589 AMDEP_FALSE='#' 4590else 4591 AMDEP_TRUE='#' 4592 AMDEP_FALSE= 4593fi 4594 4595 4596 4597depcc="$CC" am_compiler_list= 4598 4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4600$as_echo_n "checking dependency style of $depcc... " >&6; } 4601if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4602 $as_echo_n "(cached) " >&6 4603else 4604 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4605 # We make a subdir and do the tests there. Otherwise we can end up 4606 # making bogus files that we don't know about and never remove. For 4607 # instance it was reported that on HP-UX the gcc test will end up 4608 # making a dummy file named 'D' -- because '-MD' means "put the output 4609 # in D". 4610 rm -rf conftest.dir 4611 mkdir conftest.dir 4612 # Copy depcomp to subdir because otherwise we won't find it if we're 4613 # using a relative directory. 4614 cp "$am_depcomp" conftest.dir 4615 cd conftest.dir 4616 # We will build objects and dependencies in a subdirectory because 4617 # it helps to detect inapplicable dependency modes. For instance 4618 # both Tru64's cc and ICC support -MD to output dependencies as a 4619 # side effect of compilation, but ICC will put the dependencies in 4620 # the current directory while Tru64 will put them in the object 4621 # directory. 4622 mkdir sub 4623 4624 am_cv_CC_dependencies_compiler_type=none 4625 if test "$am_compiler_list" = ""; then 4626 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4627 fi 4628 am__universal=false 4629 case " $depcc " in #( 4630 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4631 esac 4632 4633 for depmode in $am_compiler_list; do 4634 # Setup a source with many dependencies, because some compilers 4635 # like to wrap large dependency lists on column 80 (with \), and 4636 # we should not choose a depcomp mode which is confused by this. 4637 # 4638 # We need to recreate these files for each test, as the compiler may 4639 # overwrite some of them when testing with obscure command lines. 4640 # This happens at least with the AIX C compiler. 4641 : > sub/conftest.c 4642 for i in 1 2 3 4 5 6; do 4643 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4644 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4645 # Solaris 10 /bin/sh. 4646 echo '/* dummy */' > sub/conftst$i.h 4647 done 4648 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4649 4650 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4651 # mode. It turns out that the SunPro C++ compiler does not properly 4652 # handle '-M -o', and we need to detect this. Also, some Intel 4653 # versions had trouble with output in subdirs. 4654 am__obj=sub/conftest.${OBJEXT-o} 4655 am__minus_obj="-o $am__obj" 4656 case $depmode in 4657 gcc) 4658 # This depmode causes a compiler race in universal mode. 4659 test "$am__universal" = false || continue 4660 ;; 4661 nosideeffect) 4662 # After this tag, mechanisms are not by side-effect, so they'll 4663 # only be used when explicitly requested. 4664 if test "x$enable_dependency_tracking" = xyes; then 4665 continue 4666 else 4667 break 4668 fi 4669 ;; 4670 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4671 # This compiler won't grok '-c -o', but also, the minuso test has 4672 # not run yet. These depmodes are late enough in the game, and 4673 # so weak that their functioning should not be impacted. 4674 am__obj=conftest.${OBJEXT-o} 4675 am__minus_obj= 4676 ;; 4677 none) break ;; 4678 esac 4679 if depmode=$depmode \ 4680 source=sub/conftest.c object=$am__obj \ 4681 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4682 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4683 >/dev/null 2>conftest.err && 4684 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4685 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4686 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4687 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4688 # icc doesn't choke on unknown options, it will just issue warnings 4689 # or remarks (even with -Werror). So we grep stderr for any message 4690 # that says an option was ignored or not supported. 4691 # When given -MP, icc 7.0 and 7.1 complain thusly: 4692 # icc: Command line warning: ignoring option '-M'; no argument required 4693 # The diagnosis changed in icc 8.0: 4694 # icc: Command line remark: option '-MP' not supported 4695 if (grep 'ignoring option' conftest.err || 4696 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4697 am_cv_CC_dependencies_compiler_type=$depmode 4698 break 4699 fi 4700 fi 4701 done 4702 4703 cd .. 4704 rm -rf conftest.dir 4705else 4706 am_cv_CC_dependencies_compiler_type=none 4707fi 4708 4709fi 4710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4711$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4712CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4713 4714 if 4715 test "x$enable_dependency_tracking" != xno \ 4716 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4717 am__fastdepCC_TRUE= 4718 am__fastdepCC_FALSE='#' 4719else 4720 am__fastdepCC_TRUE='#' 4721 am__fastdepCC_FALSE= 4722fi 4723 4724 4725ac_ext=cpp 4726ac_cpp='$CXXCPP $CPPFLAGS' 4727ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4728ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4729ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4730if test -z "$CXX"; then 4731 if test -n "$CCC"; then 4732 CXX=$CCC 4733 else 4734 if test -n "$ac_tool_prefix"; then 4735 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4736 do 4737 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4738set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4740$as_echo_n "checking for $ac_word... " >&6; } 4741if ${ac_cv_prog_CXX+:} false; then : 4742 $as_echo_n "(cached) " >&6 4743else 4744 if test -n "$CXX"; then 4745 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4746else 4747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4748for as_dir in $PATH 4749do 4750 IFS=$as_save_IFS 4751 test -z "$as_dir" && as_dir=. 4752 for ac_exec_ext in '' $ac_executable_extensions; do 4753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4754 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4756 break 2 4757 fi 4758done 4759 done 4760IFS=$as_save_IFS 4761 4762fi 4763fi 4764CXX=$ac_cv_prog_CXX 4765if test -n "$CXX"; then 4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4767$as_echo "$CXX" >&6; } 4768else 4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4770$as_echo "no" >&6; } 4771fi 4772 4773 4774 test -n "$CXX" && break 4775 done 4776fi 4777if test -z "$CXX"; then 4778 ac_ct_CXX=$CXX 4779 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4780do 4781 # Extract the first word of "$ac_prog", so it can be a program name with args. 4782set dummy $ac_prog; ac_word=$2 4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4784$as_echo_n "checking for $ac_word... " >&6; } 4785if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4786 $as_echo_n "(cached) " >&6 4787else 4788 if test -n "$ac_ct_CXX"; then 4789 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4790else 4791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4792for as_dir in $PATH 4793do 4794 IFS=$as_save_IFS 4795 test -z "$as_dir" && as_dir=. 4796 for ac_exec_ext in '' $ac_executable_extensions; do 4797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4798 ac_cv_prog_ac_ct_CXX="$ac_prog" 4799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4800 break 2 4801 fi 4802done 4803 done 4804IFS=$as_save_IFS 4805 4806fi 4807fi 4808ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4809if test -n "$ac_ct_CXX"; then 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4811$as_echo "$ac_ct_CXX" >&6; } 4812else 4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4814$as_echo "no" >&6; } 4815fi 4816 4817 4818 test -n "$ac_ct_CXX" && break 4819done 4820 4821 if test "x$ac_ct_CXX" = x; then 4822 CXX="g++" 4823 else 4824 case $cross_compiling:$ac_tool_warned in 4825yes:) 4826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4828ac_tool_warned=yes ;; 4829esac 4830 CXX=$ac_ct_CXX 4831 fi 4832fi 4833 4834 fi 4835fi 4836# Provide some information about the compiler. 4837$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4838set X $ac_compile 4839ac_compiler=$2 4840for ac_option in --version -v -V -qversion; do 4841 { { ac_try="$ac_compiler $ac_option >&5" 4842case "(($ac_try" in 4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4844 *) ac_try_echo=$ac_try;; 4845esac 4846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4847$as_echo "$ac_try_echo"; } >&5 4848 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4849 ac_status=$? 4850 if test -s conftest.err; then 4851 sed '10a\ 4852... rest of stderr output deleted ... 4853 10q' conftest.err >conftest.er1 4854 cat conftest.er1 >&5 4855 fi 4856 rm -f conftest.er1 conftest.err 4857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4858 test $ac_status = 0; } 4859done 4860 4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4862$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4863if ${ac_cv_cxx_compiler_gnu+:} false; then : 4864 $as_echo_n "(cached) " >&6 4865else 4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4867/* end confdefs.h. */ 4868 4869int 4870main () 4871{ 4872#ifndef __GNUC__ 4873 choke me 4874#endif 4875 4876 ; 4877 return 0; 4878} 4879_ACEOF 4880if ac_fn_cxx_try_compile "$LINENO"; then : 4881 ac_compiler_gnu=yes 4882else 4883 ac_compiler_gnu=no 4884fi 4885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4886ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4887 4888fi 4889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4890$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4891if test $ac_compiler_gnu = yes; then 4892 GXX=yes 4893else 4894 GXX= 4895fi 4896ac_test_CXXFLAGS=${CXXFLAGS+set} 4897ac_save_CXXFLAGS=$CXXFLAGS 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4899$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4900if ${ac_cv_prog_cxx_g+:} false; then : 4901 $as_echo_n "(cached) " >&6 4902else 4903 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4904 ac_cxx_werror_flag=yes 4905 ac_cv_prog_cxx_g=no 4906 CXXFLAGS="-g" 4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4908/* end confdefs.h. */ 4909 4910int 4911main () 4912{ 4913 4914 ; 4915 return 0; 4916} 4917_ACEOF 4918if ac_fn_cxx_try_compile "$LINENO"; then : 4919 ac_cv_prog_cxx_g=yes 4920else 4921 CXXFLAGS="" 4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4923/* end confdefs.h. */ 4924 4925int 4926main () 4927{ 4928 4929 ; 4930 return 0; 4931} 4932_ACEOF 4933if ac_fn_cxx_try_compile "$LINENO"; then : 4934 4935else 4936 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4937 CXXFLAGS="-g" 4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4939/* end confdefs.h. */ 4940 4941int 4942main () 4943{ 4944 4945 ; 4946 return 0; 4947} 4948_ACEOF 4949if ac_fn_cxx_try_compile "$LINENO"; then : 4950 ac_cv_prog_cxx_g=yes 4951fi 4952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4953fi 4954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4955fi 4956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4957 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4958fi 4959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4960$as_echo "$ac_cv_prog_cxx_g" >&6; } 4961if test "$ac_test_CXXFLAGS" = set; then 4962 CXXFLAGS=$ac_save_CXXFLAGS 4963elif test $ac_cv_prog_cxx_g = yes; then 4964 if test "$GXX" = yes; then 4965 CXXFLAGS="-g -O2" 4966 else 4967 CXXFLAGS="-g" 4968 fi 4969else 4970 if test "$GXX" = yes; then 4971 CXXFLAGS="-O2" 4972 else 4973 CXXFLAGS= 4974 fi 4975fi 4976ac_ext=c 4977ac_cpp='$CPP $CPPFLAGS' 4978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4980ac_compiler_gnu=$ac_cv_c_compiler_gnu 4981 4982depcc="$CXX" am_compiler_list= 4983 4984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4985$as_echo_n "checking dependency style of $depcc... " >&6; } 4986if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4987 $as_echo_n "(cached) " >&6 4988else 4989 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4990 # We make a subdir and do the tests there. Otherwise we can end up 4991 # making bogus files that we don't know about and never remove. For 4992 # instance it was reported that on HP-UX the gcc test will end up 4993 # making a dummy file named 'D' -- because '-MD' means "put the output 4994 # in D". 4995 rm -rf conftest.dir 4996 mkdir conftest.dir 4997 # Copy depcomp to subdir because otherwise we won't find it if we're 4998 # using a relative directory. 4999 cp "$am_depcomp" conftest.dir 5000 cd conftest.dir 5001 # We will build objects and dependencies in a subdirectory because 5002 # it helps to detect inapplicable dependency modes. For instance 5003 # both Tru64's cc and ICC support -MD to output dependencies as a 5004 # side effect of compilation, but ICC will put the dependencies in 5005 # the current directory while Tru64 will put them in the object 5006 # directory. 5007 mkdir sub 5008 5009 am_cv_CXX_dependencies_compiler_type=none 5010 if test "$am_compiler_list" = ""; then 5011 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5012 fi 5013 am__universal=false 5014 case " $depcc " in #( 5015 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5016 esac 5017 5018 for depmode in $am_compiler_list; do 5019 # Setup a source with many dependencies, because some compilers 5020 # like to wrap large dependency lists on column 80 (with \), and 5021 # we should not choose a depcomp mode which is confused by this. 5022 # 5023 # We need to recreate these files for each test, as the compiler may 5024 # overwrite some of them when testing with obscure command lines. 5025 # This happens at least with the AIX C compiler. 5026 : > sub/conftest.c 5027 for i in 1 2 3 4 5 6; do 5028 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5029 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5030 # Solaris 10 /bin/sh. 5031 echo '/* dummy */' > sub/conftst$i.h 5032 done 5033 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5034 5035 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5036 # mode. It turns out that the SunPro C++ compiler does not properly 5037 # handle '-M -o', and we need to detect this. Also, some Intel 5038 # versions had trouble with output in subdirs. 5039 am__obj=sub/conftest.${OBJEXT-o} 5040 am__minus_obj="-o $am__obj" 5041 case $depmode in 5042 gcc) 5043 # This depmode causes a compiler race in universal mode. 5044 test "$am__universal" = false || continue 5045 ;; 5046 nosideeffect) 5047 # After this tag, mechanisms are not by side-effect, so they'll 5048 # only be used when explicitly requested. 5049 if test "x$enable_dependency_tracking" = xyes; then 5050 continue 5051 else 5052 break 5053 fi 5054 ;; 5055 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5056 # This compiler won't grok '-c -o', but also, the minuso test has 5057 # not run yet. These depmodes are late enough in the game, and 5058 # so weak that their functioning should not be impacted. 5059 am__obj=conftest.${OBJEXT-o} 5060 am__minus_obj= 5061 ;; 5062 none) break ;; 5063 esac 5064 if depmode=$depmode \ 5065 source=sub/conftest.c object=$am__obj \ 5066 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5067 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5068 >/dev/null 2>conftest.err && 5069 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5070 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5071 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5072 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5073 # icc doesn't choke on unknown options, it will just issue warnings 5074 # or remarks (even with -Werror). So we grep stderr for any message 5075 # that says an option was ignored or not supported. 5076 # When given -MP, icc 7.0 and 7.1 complain thusly: 5077 # icc: Command line warning: ignoring option '-M'; no argument required 5078 # The diagnosis changed in icc 8.0: 5079 # icc: Command line remark: option '-MP' not supported 5080 if (grep 'ignoring option' conftest.err || 5081 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5082 am_cv_CXX_dependencies_compiler_type=$depmode 5083 break 5084 fi 5085 fi 5086 done 5087 5088 cd .. 5089 rm -rf conftest.dir 5090else 5091 am_cv_CXX_dependencies_compiler_type=none 5092fi 5093 5094fi 5095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5096$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5097CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5098 5099 if 5100 test "x$enable_dependency_tracking" != xno \ 5101 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5102 am__fastdepCXX_TRUE= 5103 am__fastdepCXX_FALSE='#' 5104else 5105 am__fastdepCXX_TRUE='#' 5106 am__fastdepCXX_FALSE= 5107fi 5108 5109 5110# Make sure we can run config.sub. 5111$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5112 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5113 5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5115$as_echo_n "checking build system type... " >&6; } 5116if ${ac_cv_build+:} false; then : 5117 $as_echo_n "(cached) " >&6 5118else 5119 ac_build_alias=$build_alias 5120test "x$ac_build_alias" = x && 5121 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5122test "x$ac_build_alias" = x && 5123 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5124ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5125 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5126 5127fi 5128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5129$as_echo "$ac_cv_build" >&6; } 5130case $ac_cv_build in 5131*-*-*) ;; 5132*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5133esac 5134build=$ac_cv_build 5135ac_save_IFS=$IFS; IFS='-' 5136set x $ac_cv_build 5137shift 5138build_cpu=$1 5139build_vendor=$2 5140shift; shift 5141# Remember, the first character of IFS is used to create $*, 5142# except with old shells: 5143build_os=$* 5144IFS=$ac_save_IFS 5145case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5146 5147 5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5149$as_echo_n "checking host system type... " >&6; } 5150if ${ac_cv_host+:} false; then : 5151 $as_echo_n "(cached) " >&6 5152else 5153 if test "x$host_alias" = x; then 5154 ac_cv_host=$ac_cv_build 5155else 5156 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5157 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5158fi 5159 5160fi 5161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5162$as_echo "$ac_cv_host" >&6; } 5163case $ac_cv_host in 5164*-*-*) ;; 5165*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5166esac 5167host=$ac_cv_host 5168ac_save_IFS=$IFS; IFS='-' 5169set x $ac_cv_host 5170shift 5171host_cpu=$1 5172host_vendor=$2 5173shift; shift 5174# Remember, the first character of IFS is used to create $*, 5175# except with old shells: 5176host_os=$* 5177IFS=$ac_save_IFS 5178case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5179 5180 5181enable_win32_dll=yes 5182 5183case $host in 5184*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 5185 if test -n "$ac_tool_prefix"; then 5186 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 5187set dummy ${ac_tool_prefix}as; ac_word=$2 5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5189$as_echo_n "checking for $ac_word... " >&6; } 5190if ${ac_cv_prog_AS+:} false; then : 5191 $as_echo_n "(cached) " >&6 5192else 5193 if test -n "$AS"; then 5194 ac_cv_prog_AS="$AS" # Let the user override the test. 5195else 5196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5197for as_dir in $PATH 5198do 5199 IFS=$as_save_IFS 5200 test -z "$as_dir" && as_dir=. 5201 for ac_exec_ext in '' $ac_executable_extensions; do 5202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5203 ac_cv_prog_AS="${ac_tool_prefix}as" 5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5205 break 2 5206 fi 5207done 5208 done 5209IFS=$as_save_IFS 5210 5211fi 5212fi 5213AS=$ac_cv_prog_AS 5214if test -n "$AS"; then 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 5216$as_echo "$AS" >&6; } 5217else 5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5219$as_echo "no" >&6; } 5220fi 5221 5222 5223fi 5224if test -z "$ac_cv_prog_AS"; then 5225 ac_ct_AS=$AS 5226 # Extract the first word of "as", so it can be a program name with args. 5227set dummy as; ac_word=$2 5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5229$as_echo_n "checking for $ac_word... " >&6; } 5230if ${ac_cv_prog_ac_ct_AS+:} false; then : 5231 $as_echo_n "(cached) " >&6 5232else 5233 if test -n "$ac_ct_AS"; then 5234 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 5235else 5236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5237for as_dir in $PATH 5238do 5239 IFS=$as_save_IFS 5240 test -z "$as_dir" && as_dir=. 5241 for ac_exec_ext in '' $ac_executable_extensions; do 5242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5243 ac_cv_prog_ac_ct_AS="as" 5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5245 break 2 5246 fi 5247done 5248 done 5249IFS=$as_save_IFS 5250 5251fi 5252fi 5253ac_ct_AS=$ac_cv_prog_ac_ct_AS 5254if test -n "$ac_ct_AS"; then 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 5256$as_echo "$ac_ct_AS" >&6; } 5257else 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5259$as_echo "no" >&6; } 5260fi 5261 5262 if test "x$ac_ct_AS" = x; then 5263 AS="false" 5264 else 5265 case $cross_compiling:$ac_tool_warned in 5266yes:) 5267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5269ac_tool_warned=yes ;; 5270esac 5271 AS=$ac_ct_AS 5272 fi 5273else 5274 AS="$ac_cv_prog_AS" 5275fi 5276 5277 if test -n "$ac_tool_prefix"; then 5278 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5279set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5281$as_echo_n "checking for $ac_word... " >&6; } 5282if ${ac_cv_prog_DLLTOOL+:} false; then : 5283 $as_echo_n "(cached) " >&6 5284else 5285 if test -n "$DLLTOOL"; then 5286 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5287else 5288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5289for as_dir in $PATH 5290do 5291 IFS=$as_save_IFS 5292 test -z "$as_dir" && as_dir=. 5293 for ac_exec_ext in '' $ac_executable_extensions; do 5294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5295 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5297 break 2 5298 fi 5299done 5300 done 5301IFS=$as_save_IFS 5302 5303fi 5304fi 5305DLLTOOL=$ac_cv_prog_DLLTOOL 5306if test -n "$DLLTOOL"; then 5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5308$as_echo "$DLLTOOL" >&6; } 5309else 5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5311$as_echo "no" >&6; } 5312fi 5313 5314 5315fi 5316if test -z "$ac_cv_prog_DLLTOOL"; then 5317 ac_ct_DLLTOOL=$DLLTOOL 5318 # Extract the first word of "dlltool", so it can be a program name with args. 5319set dummy dlltool; ac_word=$2 5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5321$as_echo_n "checking for $ac_word... " >&6; } 5322if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5323 $as_echo_n "(cached) " >&6 5324else 5325 if test -n "$ac_ct_DLLTOOL"; then 5326 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5327else 5328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5329for as_dir in $PATH 5330do 5331 IFS=$as_save_IFS 5332 test -z "$as_dir" && as_dir=. 5333 for ac_exec_ext in '' $ac_executable_extensions; do 5334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5335 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5337 break 2 5338 fi 5339done 5340 done 5341IFS=$as_save_IFS 5342 5343fi 5344fi 5345ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5346if test -n "$ac_ct_DLLTOOL"; then 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5348$as_echo "$ac_ct_DLLTOOL" >&6; } 5349else 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5351$as_echo "no" >&6; } 5352fi 5353 5354 if test "x$ac_ct_DLLTOOL" = x; then 5355 DLLTOOL="false" 5356 else 5357 case $cross_compiling:$ac_tool_warned in 5358yes:) 5359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5361ac_tool_warned=yes ;; 5362esac 5363 DLLTOOL=$ac_ct_DLLTOOL 5364 fi 5365else 5366 DLLTOOL="$ac_cv_prog_DLLTOOL" 5367fi 5368 5369 if test -n "$ac_tool_prefix"; then 5370 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5371set dummy ${ac_tool_prefix}objdump; ac_word=$2 5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5373$as_echo_n "checking for $ac_word... " >&6; } 5374if ${ac_cv_prog_OBJDUMP+:} false; then : 5375 $as_echo_n "(cached) " >&6 5376else 5377 if test -n "$OBJDUMP"; then 5378 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5379else 5380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5381for as_dir in $PATH 5382do 5383 IFS=$as_save_IFS 5384 test -z "$as_dir" && as_dir=. 5385 for ac_exec_ext in '' $ac_executable_extensions; do 5386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5387 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5389 break 2 5390 fi 5391done 5392 done 5393IFS=$as_save_IFS 5394 5395fi 5396fi 5397OBJDUMP=$ac_cv_prog_OBJDUMP 5398if test -n "$OBJDUMP"; then 5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5400$as_echo "$OBJDUMP" >&6; } 5401else 5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5403$as_echo "no" >&6; } 5404fi 5405 5406 5407fi 5408if test -z "$ac_cv_prog_OBJDUMP"; then 5409 ac_ct_OBJDUMP=$OBJDUMP 5410 # Extract the first word of "objdump", so it can be a program name with args. 5411set dummy objdump; ac_word=$2 5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5413$as_echo_n "checking for $ac_word... " >&6; } 5414if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5415 $as_echo_n "(cached) " >&6 5416else 5417 if test -n "$ac_ct_OBJDUMP"; then 5418 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5419else 5420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5421for as_dir in $PATH 5422do 5423 IFS=$as_save_IFS 5424 test -z "$as_dir" && as_dir=. 5425 for ac_exec_ext in '' $ac_executable_extensions; do 5426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5427 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5429 break 2 5430 fi 5431done 5432 done 5433IFS=$as_save_IFS 5434 5435fi 5436fi 5437ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5438if test -n "$ac_ct_OBJDUMP"; then 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5440$as_echo "$ac_ct_OBJDUMP" >&6; } 5441else 5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5443$as_echo "no" >&6; } 5444fi 5445 5446 if test "x$ac_ct_OBJDUMP" = x; then 5447 OBJDUMP="false" 5448 else 5449 case $cross_compiling:$ac_tool_warned in 5450yes:) 5451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5453ac_tool_warned=yes ;; 5454esac 5455 OBJDUMP=$ac_ct_OBJDUMP 5456 fi 5457else 5458 OBJDUMP="$ac_cv_prog_OBJDUMP" 5459fi 5460 5461 ;; 5462esac 5463 5464test -z "$AS" && AS=as 5465 5466 5467 5468 5469 5470test -z "$DLLTOOL" && DLLTOOL=dlltool 5471 5472 5473 5474 5475 5476test -z "$OBJDUMP" && OBJDUMP=objdump 5477 5478 5479 5480 5481 5482 5483 5484case `pwd` in 5485 *\ * | *\ *) 5486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5487$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5488esac 5489 5490 5491 5492macro_version='2.4.6' 5493macro_revision='2.4.6' 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507ltmain=$ac_aux_dir/ltmain.sh 5508 5509# Backslashify metacharacters that are still active within 5510# double-quoted strings. 5511sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5512 5513# Same as above, but do not quote variable references. 5514double_quote_subst='s/\(["`\\]\)/\\\1/g' 5515 5516# Sed substitution to delay expansion of an escaped shell variable in a 5517# double_quote_subst'ed string. 5518delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5519 5520# Sed substitution to delay expansion of an escaped single quote. 5521delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5522 5523# Sed substitution to avoid accidental globbing in evaled expressions 5524no_glob_subst='s/\*/\\\*/g' 5525 5526ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5527ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5528ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5529 5530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5531$as_echo_n "checking how to print strings... " >&6; } 5532# Test print first, because it will be a builtin if present. 5533if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5534 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5535 ECHO='print -r --' 5536elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5537 ECHO='printf %s\n' 5538else 5539 # Use this function as a fallback that always works. 5540 func_fallback_echo () 5541 { 5542 eval 'cat <<_LTECHO_EOF 5543$1 5544_LTECHO_EOF' 5545 } 5546 ECHO='func_fallback_echo' 5547fi 5548 5549# func_echo_all arg... 5550# Invoke $ECHO with all args, space-separated. 5551func_echo_all () 5552{ 5553 $ECHO "" 5554} 5555 5556case $ECHO in 5557 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5558$as_echo "printf" >&6; } ;; 5559 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5560$as_echo "print -r" >&6; } ;; 5561 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5562$as_echo "cat" >&6; } ;; 5563esac 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5579$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5580if ${ac_cv_path_SED+:} false; then : 5581 $as_echo_n "(cached) " >&6 5582else 5583 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5584 for ac_i in 1 2 3 4 5 6 7; do 5585 ac_script="$ac_script$as_nl$ac_script" 5586 done 5587 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5588 { ac_script=; unset ac_script;} 5589 if test -z "$SED"; then 5590 ac_path_SED_found=false 5591 # Loop through the user's path and test for each of PROGNAME-LIST 5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5593for as_dir in $PATH 5594do 5595 IFS=$as_save_IFS 5596 test -z "$as_dir" && as_dir=. 5597 for ac_prog in sed gsed; do 5598 for ac_exec_ext in '' $ac_executable_extensions; do 5599 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5600 as_fn_executable_p "$ac_path_SED" || continue 5601# Check for GNU ac_path_SED and select it if it is found. 5602 # Check for GNU $ac_path_SED 5603case `"$ac_path_SED" --version 2>&1` in 5604*GNU*) 5605 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5606*) 5607 ac_count=0 5608 $as_echo_n 0123456789 >"conftest.in" 5609 while : 5610 do 5611 cat "conftest.in" "conftest.in" >"conftest.tmp" 5612 mv "conftest.tmp" "conftest.in" 5613 cp "conftest.in" "conftest.nl" 5614 $as_echo '' >> "conftest.nl" 5615 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5617 as_fn_arith $ac_count + 1 && ac_count=$as_val 5618 if test $ac_count -gt ${ac_path_SED_max-0}; then 5619 # Best one so far, save it but keep looking for a better one 5620 ac_cv_path_SED="$ac_path_SED" 5621 ac_path_SED_max=$ac_count 5622 fi 5623 # 10*(2^10) chars as input seems more than enough 5624 test $ac_count -gt 10 && break 5625 done 5626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5627esac 5628 5629 $ac_path_SED_found && break 3 5630 done 5631 done 5632 done 5633IFS=$as_save_IFS 5634 if test -z "$ac_cv_path_SED"; then 5635 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5636 fi 5637else 5638 ac_cv_path_SED=$SED 5639fi 5640 5641fi 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5643$as_echo "$ac_cv_path_SED" >&6; } 5644 SED="$ac_cv_path_SED" 5645 rm -f conftest.sed 5646 5647test -z "$SED" && SED=sed 5648Xsed="$SED -e 1s/^X//" 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5661$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5662if ${ac_cv_path_GREP+:} false; then : 5663 $as_echo_n "(cached) " >&6 5664else 5665 if test -z "$GREP"; then 5666 ac_path_GREP_found=false 5667 # Loop through the user's path and test for each of PROGNAME-LIST 5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5669for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5670do 5671 IFS=$as_save_IFS 5672 test -z "$as_dir" && as_dir=. 5673 for ac_prog in grep ggrep; do 5674 for ac_exec_ext in '' $ac_executable_extensions; do 5675 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5676 as_fn_executable_p "$ac_path_GREP" || continue 5677# Check for GNU ac_path_GREP and select it if it is found. 5678 # Check for GNU $ac_path_GREP 5679case `"$ac_path_GREP" --version 2>&1` in 5680*GNU*) 5681 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5682*) 5683 ac_count=0 5684 $as_echo_n 0123456789 >"conftest.in" 5685 while : 5686 do 5687 cat "conftest.in" "conftest.in" >"conftest.tmp" 5688 mv "conftest.tmp" "conftest.in" 5689 cp "conftest.in" "conftest.nl" 5690 $as_echo 'GREP' >> "conftest.nl" 5691 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5692 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5693 as_fn_arith $ac_count + 1 && ac_count=$as_val 5694 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5695 # Best one so far, save it but keep looking for a better one 5696 ac_cv_path_GREP="$ac_path_GREP" 5697 ac_path_GREP_max=$ac_count 5698 fi 5699 # 10*(2^10) chars as input seems more than enough 5700 test $ac_count -gt 10 && break 5701 done 5702 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5703esac 5704 5705 $ac_path_GREP_found && break 3 5706 done 5707 done 5708 done 5709IFS=$as_save_IFS 5710 if test -z "$ac_cv_path_GREP"; then 5711 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5712 fi 5713else 5714 ac_cv_path_GREP=$GREP 5715fi 5716 5717fi 5718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5719$as_echo "$ac_cv_path_GREP" >&6; } 5720 GREP="$ac_cv_path_GREP" 5721 5722 5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5724$as_echo_n "checking for egrep... " >&6; } 5725if ${ac_cv_path_EGREP+:} false; then : 5726 $as_echo_n "(cached) " >&6 5727else 5728 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5729 then ac_cv_path_EGREP="$GREP -E" 5730 else 5731 if test -z "$EGREP"; then 5732 ac_path_EGREP_found=false 5733 # Loop through the user's path and test for each of PROGNAME-LIST 5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5735for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5736do 5737 IFS=$as_save_IFS 5738 test -z "$as_dir" && as_dir=. 5739 for ac_prog in egrep; do 5740 for ac_exec_ext in '' $ac_executable_extensions; do 5741 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5742 as_fn_executable_p "$ac_path_EGREP" || continue 5743# Check for GNU ac_path_EGREP and select it if it is found. 5744 # Check for GNU $ac_path_EGREP 5745case `"$ac_path_EGREP" --version 2>&1` in 5746*GNU*) 5747 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5748*) 5749 ac_count=0 5750 $as_echo_n 0123456789 >"conftest.in" 5751 while : 5752 do 5753 cat "conftest.in" "conftest.in" >"conftest.tmp" 5754 mv "conftest.tmp" "conftest.in" 5755 cp "conftest.in" "conftest.nl" 5756 $as_echo 'EGREP' >> "conftest.nl" 5757 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5759 as_fn_arith $ac_count + 1 && ac_count=$as_val 5760 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5761 # Best one so far, save it but keep looking for a better one 5762 ac_cv_path_EGREP="$ac_path_EGREP" 5763 ac_path_EGREP_max=$ac_count 5764 fi 5765 # 10*(2^10) chars as input seems more than enough 5766 test $ac_count -gt 10 && break 5767 done 5768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5769esac 5770 5771 $ac_path_EGREP_found && break 3 5772 done 5773 done 5774 done 5775IFS=$as_save_IFS 5776 if test -z "$ac_cv_path_EGREP"; then 5777 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5778 fi 5779else 5780 ac_cv_path_EGREP=$EGREP 5781fi 5782 5783 fi 5784fi 5785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5786$as_echo "$ac_cv_path_EGREP" >&6; } 5787 EGREP="$ac_cv_path_EGREP" 5788 5789 5790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5791$as_echo_n "checking for fgrep... " >&6; } 5792if ${ac_cv_path_FGREP+:} false; then : 5793 $as_echo_n "(cached) " >&6 5794else 5795 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5796 then ac_cv_path_FGREP="$GREP -F" 5797 else 5798 if test -z "$FGREP"; then 5799 ac_path_FGREP_found=false 5800 # Loop through the user's path and test for each of PROGNAME-LIST 5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5802for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5803do 5804 IFS=$as_save_IFS 5805 test -z "$as_dir" && as_dir=. 5806 for ac_prog in fgrep; do 5807 for ac_exec_ext in '' $ac_executable_extensions; do 5808 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5809 as_fn_executable_p "$ac_path_FGREP" || continue 5810# Check for GNU ac_path_FGREP and select it if it is found. 5811 # Check for GNU $ac_path_FGREP 5812case `"$ac_path_FGREP" --version 2>&1` in 5813*GNU*) 5814 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5815*) 5816 ac_count=0 5817 $as_echo_n 0123456789 >"conftest.in" 5818 while : 5819 do 5820 cat "conftest.in" "conftest.in" >"conftest.tmp" 5821 mv "conftest.tmp" "conftest.in" 5822 cp "conftest.in" "conftest.nl" 5823 $as_echo 'FGREP' >> "conftest.nl" 5824 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5825 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5826 as_fn_arith $ac_count + 1 && ac_count=$as_val 5827 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5828 # Best one so far, save it but keep looking for a better one 5829 ac_cv_path_FGREP="$ac_path_FGREP" 5830 ac_path_FGREP_max=$ac_count 5831 fi 5832 # 10*(2^10) chars as input seems more than enough 5833 test $ac_count -gt 10 && break 5834 done 5835 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5836esac 5837 5838 $ac_path_FGREP_found && break 3 5839 done 5840 done 5841 done 5842IFS=$as_save_IFS 5843 if test -z "$ac_cv_path_FGREP"; then 5844 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5845 fi 5846else 5847 ac_cv_path_FGREP=$FGREP 5848fi 5849 5850 fi 5851fi 5852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5853$as_echo "$ac_cv_path_FGREP" >&6; } 5854 FGREP="$ac_cv_path_FGREP" 5855 5856 5857test -z "$GREP" && GREP=grep 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877@%:@ Check whether --with-gnu-ld was given. 5878if test "${with_gnu_ld+set}" = set; then : 5879 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5880else 5881 with_gnu_ld=no 5882fi 5883 5884ac_prog=ld 5885if test yes = "$GCC"; then 5886 # Check if gcc -print-prog-name=ld gives a path. 5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5888$as_echo_n "checking for ld used by $CC... " >&6; } 5889 case $host in 5890 *-*-mingw*) 5891 # gcc leaves a trailing carriage return, which upsets mingw 5892 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5893 *) 5894 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5895 esac 5896 case $ac_prog in 5897 # Accept absolute paths. 5898 [\\/]* | ?:[\\/]*) 5899 re_direlt='/[^/][^/]*/\.\./' 5900 # Canonicalize the pathname of ld 5901 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5902 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5903 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5904 done 5905 test -z "$LD" && LD=$ac_prog 5906 ;; 5907 "") 5908 # If it fails, then pretend we aren't using GCC. 5909 ac_prog=ld 5910 ;; 5911 *) 5912 # If it is relative, then search for the first ld in PATH. 5913 with_gnu_ld=unknown 5914 ;; 5915 esac 5916elif test yes = "$with_gnu_ld"; then 5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5918$as_echo_n "checking for GNU ld... " >&6; } 5919else 5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5921$as_echo_n "checking for non-GNU ld... " >&6; } 5922fi 5923if ${lt_cv_path_LD+:} false; then : 5924 $as_echo_n "(cached) " >&6 5925else 5926 if test -z "$LD"; then 5927 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5928 for ac_dir in $PATH; do 5929 IFS=$lt_save_ifs 5930 test -z "$ac_dir" && ac_dir=. 5931 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5932 lt_cv_path_LD=$ac_dir/$ac_prog 5933 # Check to see if the program is GNU ld. I'd rather use --version, 5934 # but apparently some variants of GNU ld only accept -v. 5935 # Break only if it was the GNU/non-GNU ld that we prefer. 5936 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5937 *GNU* | *'with BFD'*) 5938 test no != "$with_gnu_ld" && break 5939 ;; 5940 *) 5941 test yes != "$with_gnu_ld" && break 5942 ;; 5943 esac 5944 fi 5945 done 5946 IFS=$lt_save_ifs 5947else 5948 lt_cv_path_LD=$LD # Let the user override the test with a path. 5949fi 5950fi 5951 5952LD=$lt_cv_path_LD 5953if test -n "$LD"; then 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5955$as_echo "$LD" >&6; } 5956else 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5958$as_echo "no" >&6; } 5959fi 5960test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5962$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5963if ${lt_cv_prog_gnu_ld+:} false; then : 5964 $as_echo_n "(cached) " >&6 5965else 5966 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5967case `$LD -v 2>&1 </dev/null` in 5968*GNU* | *'with BFD'*) 5969 lt_cv_prog_gnu_ld=yes 5970 ;; 5971*) 5972 lt_cv_prog_gnu_ld=no 5973 ;; 5974esac 5975fi 5976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5977$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5978with_gnu_ld=$lt_cv_prog_gnu_ld 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5989$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5990if ${lt_cv_path_NM+:} false; then : 5991 $as_echo_n "(cached) " >&6 5992else 5993 if test -n "$NM"; then 5994 # Let the user override the test. 5995 lt_cv_path_NM=$NM 5996else 5997 lt_nm_to_check=${ac_tool_prefix}nm 5998 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5999 lt_nm_to_check="$lt_nm_to_check nm" 6000 fi 6001 for lt_tmp_nm in $lt_nm_to_check; do 6002 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6003 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6004 IFS=$lt_save_ifs 6005 test -z "$ac_dir" && ac_dir=. 6006 tmp_nm=$ac_dir/$lt_tmp_nm 6007 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6008 # Check to see if the nm accepts a BSD-compat flag. 6009 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6010 # nm: unknown option "B" ignored 6011 # Tru64's nm complains that /dev/null is an invalid object file 6012 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6013 case $build_os in 6014 mingw*) lt_bad_file=conftest.nm/nofile ;; 6015 *) lt_bad_file=/dev/null ;; 6016 esac 6017 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 6018 *$lt_bad_file* | *'Invalid file or object type'*) 6019 lt_cv_path_NM="$tmp_nm -B" 6020 break 2 6021 ;; 6022 *) 6023 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6024 */dev/null*) 6025 lt_cv_path_NM="$tmp_nm -p" 6026 break 2 6027 ;; 6028 *) 6029 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6030 continue # so that we can try to find one that supports BSD flags 6031 ;; 6032 esac 6033 ;; 6034 esac 6035 fi 6036 done 6037 IFS=$lt_save_ifs 6038 done 6039 : ${lt_cv_path_NM=no} 6040fi 6041fi 6042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6043$as_echo "$lt_cv_path_NM" >&6; } 6044if test no != "$lt_cv_path_NM"; then 6045 NM=$lt_cv_path_NM 6046else 6047 # Didn't find any BSD compatible name lister, look for dumpbin. 6048 if test -n "$DUMPBIN"; then : 6049 # Let the user override the test. 6050 else 6051 if test -n "$ac_tool_prefix"; then 6052 for ac_prog in dumpbin "link -dump" 6053 do 6054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6055set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6057$as_echo_n "checking for $ac_word... " >&6; } 6058if ${ac_cv_prog_DUMPBIN+:} false; then : 6059 $as_echo_n "(cached) " >&6 6060else 6061 if test -n "$DUMPBIN"; then 6062 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6063else 6064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6065for as_dir in $PATH 6066do 6067 IFS=$as_save_IFS 6068 test -z "$as_dir" && as_dir=. 6069 for ac_exec_ext in '' $ac_executable_extensions; do 6070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6071 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6073 break 2 6074 fi 6075done 6076 done 6077IFS=$as_save_IFS 6078 6079fi 6080fi 6081DUMPBIN=$ac_cv_prog_DUMPBIN 6082if test -n "$DUMPBIN"; then 6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6084$as_echo "$DUMPBIN" >&6; } 6085else 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6087$as_echo "no" >&6; } 6088fi 6089 6090 6091 test -n "$DUMPBIN" && break 6092 done 6093fi 6094if test -z "$DUMPBIN"; then 6095 ac_ct_DUMPBIN=$DUMPBIN 6096 for ac_prog in dumpbin "link -dump" 6097do 6098 # Extract the first word of "$ac_prog", so it can be a program name with args. 6099set dummy $ac_prog; ac_word=$2 6100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6101$as_echo_n "checking for $ac_word... " >&6; } 6102if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6103 $as_echo_n "(cached) " >&6 6104else 6105 if test -n "$ac_ct_DUMPBIN"; then 6106 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6107else 6108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6109for as_dir in $PATH 6110do 6111 IFS=$as_save_IFS 6112 test -z "$as_dir" && as_dir=. 6113 for ac_exec_ext in '' $ac_executable_extensions; do 6114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6115 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6117 break 2 6118 fi 6119done 6120 done 6121IFS=$as_save_IFS 6122 6123fi 6124fi 6125ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6126if test -n "$ac_ct_DUMPBIN"; then 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6128$as_echo "$ac_ct_DUMPBIN" >&6; } 6129else 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6131$as_echo "no" >&6; } 6132fi 6133 6134 6135 test -n "$ac_ct_DUMPBIN" && break 6136done 6137 6138 if test "x$ac_ct_DUMPBIN" = x; then 6139 DUMPBIN=":" 6140 else 6141 case $cross_compiling:$ac_tool_warned in 6142yes:) 6143{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6144$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6145ac_tool_warned=yes ;; 6146esac 6147 DUMPBIN=$ac_ct_DUMPBIN 6148 fi 6149fi 6150 6151 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6152 *COFF*) 6153 DUMPBIN="$DUMPBIN -symbols -headers" 6154 ;; 6155 *) 6156 DUMPBIN=: 6157 ;; 6158 esac 6159 fi 6160 6161 if test : != "$DUMPBIN"; then 6162 NM=$DUMPBIN 6163 fi 6164fi 6165test -z "$NM" && NM=nm 6166 6167 6168 6169 6170 6171 6172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6173$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6174if ${lt_cv_nm_interface+:} false; then : 6175 $as_echo_n "(cached) " >&6 6176else 6177 lt_cv_nm_interface="BSD nm" 6178 echo "int some_variable = 0;" > conftest.$ac_ext 6179 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6180 (eval "$ac_compile" 2>conftest.err) 6181 cat conftest.err >&5 6182 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6183 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6184 cat conftest.err >&5 6185 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6186 cat conftest.out >&5 6187 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6188 lt_cv_nm_interface="MS dumpbin" 6189 fi 6190 rm -f conftest* 6191fi 6192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6193$as_echo "$lt_cv_nm_interface" >&6; } 6194 6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6196$as_echo_n "checking whether ln -s works... " >&6; } 6197LN_S=$as_ln_s 6198if test "$LN_S" = "ln -s"; then 6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6200$as_echo "yes" >&6; } 6201else 6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6203$as_echo "no, using $LN_S" >&6; } 6204fi 6205 6206# find the maximum length of command line arguments 6207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6208$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6209if ${lt_cv_sys_max_cmd_len+:} false; then : 6210 $as_echo_n "(cached) " >&6 6211else 6212 i=0 6213 teststring=ABCD 6214 6215 case $build_os in 6216 msdosdjgpp*) 6217 # On DJGPP, this test can blow up pretty badly due to problems in libc 6218 # (any single argument exceeding 2000 bytes causes a buffer overrun 6219 # during glob expansion). Even if it were fixed, the result of this 6220 # check would be larger than it should be. 6221 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6222 ;; 6223 6224 gnu*) 6225 # Under GNU Hurd, this test is not required because there is 6226 # no limit to the length of command line arguments. 6227 # Libtool will interpret -1 as no limit whatsoever 6228 lt_cv_sys_max_cmd_len=-1; 6229 ;; 6230 6231 cygwin* | mingw* | cegcc*) 6232 # On Win9x/ME, this test blows up -- it succeeds, but takes 6233 # about 5 minutes as the teststring grows exponentially. 6234 # Worse, since 9x/ME are not pre-emptively multitasking, 6235 # you end up with a "frozen" computer, even though with patience 6236 # the test eventually succeeds (with a max line length of 256k). 6237 # Instead, let's just punt: use the minimum linelength reported by 6238 # all of the supported platforms: 8192 (on NT/2K/XP). 6239 lt_cv_sys_max_cmd_len=8192; 6240 ;; 6241 6242 mint*) 6243 # On MiNT this can take a long time and run out of memory. 6244 lt_cv_sys_max_cmd_len=8192; 6245 ;; 6246 6247 amigaos*) 6248 # On AmigaOS with pdksh, this test takes hours, literally. 6249 # So we just punt and use a minimum line length of 8192. 6250 lt_cv_sys_max_cmd_len=8192; 6251 ;; 6252 6253 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6254 # This has been around since 386BSD, at least. Likely further. 6255 if test -x /sbin/sysctl; then 6256 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6257 elif test -x /usr/sbin/sysctl; then 6258 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6259 else 6260 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6261 fi 6262 # And add a safety zone 6263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6265 ;; 6266 6267 interix*) 6268 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6269 lt_cv_sys_max_cmd_len=196608 6270 ;; 6271 6272 os2*) 6273 # The test takes a long time on OS/2. 6274 lt_cv_sys_max_cmd_len=8192 6275 ;; 6276 6277 osf*) 6278 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6279 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6280 # nice to cause kernel panics so lets avoid the loop below. 6281 # First set a reasonable default. 6282 lt_cv_sys_max_cmd_len=16384 6283 # 6284 if test -x /sbin/sysconfig; then 6285 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6286 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6287 esac 6288 fi 6289 ;; 6290 sco3.2v5*) 6291 lt_cv_sys_max_cmd_len=102400 6292 ;; 6293 sysv5* | sco5v6* | sysv4.2uw2*) 6294 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6295 if test -n "$kargmax"; then 6296 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6297 else 6298 lt_cv_sys_max_cmd_len=32768 6299 fi 6300 ;; 6301 *) 6302 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6303 if test -n "$lt_cv_sys_max_cmd_len" && \ 6304 test undefined != "$lt_cv_sys_max_cmd_len"; then 6305 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6306 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6307 else 6308 # Make teststring a little bigger before we do anything with it. 6309 # a 1K string should be a reasonable start. 6310 for i in 1 2 3 4 5 6 7 8; do 6311 teststring=$teststring$teststring 6312 done 6313 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6314 # If test is not a shell built-in, we'll probably end up computing a 6315 # maximum length that is only half of the actual maximum length, but 6316 # we can't tell. 6317 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6318 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6319 test 17 != "$i" # 1/2 MB should be enough 6320 do 6321 i=`expr $i + 1` 6322 teststring=$teststring$teststring 6323 done 6324 # Only check the string length outside the loop. 6325 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6326 teststring= 6327 # Add a significant safety factor because C++ compilers can tack on 6328 # massive amounts of additional arguments before passing them to the 6329 # linker. It appears as though 1/2 is a usable value. 6330 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6331 fi 6332 ;; 6333 esac 6334 6335fi 6336 6337if test -n "$lt_cv_sys_max_cmd_len"; then 6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6339$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6340else 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6342$as_echo "none" >&6; } 6343fi 6344max_cmd_len=$lt_cv_sys_max_cmd_len 6345 6346 6347 6348 6349 6350 6351: ${CP="cp -f"} 6352: ${MV="mv -f"} 6353: ${RM="rm -f"} 6354 6355if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6356 lt_unset=unset 6357else 6358 lt_unset=false 6359fi 6360 6361 6362 6363 6364 6365# test EBCDIC or ASCII 6366case `echo X|tr X '\101'` in 6367 A) # ASCII based system 6368 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6369 lt_SP2NL='tr \040 \012' 6370 lt_NL2SP='tr \015\012 \040\040' 6371 ;; 6372 *) # EBCDIC based system 6373 lt_SP2NL='tr \100 \n' 6374 lt_NL2SP='tr \r\n \100\100' 6375 ;; 6376esac 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6387$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6388if ${lt_cv_to_host_file_cmd+:} false; then : 6389 $as_echo_n "(cached) " >&6 6390else 6391 case $host in 6392 *-*-mingw* ) 6393 case $build in 6394 *-*-mingw* ) # actually msys 6395 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6396 ;; 6397 *-*-cygwin* ) 6398 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6399 ;; 6400 * ) # otherwise, assume *nix 6401 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6402 ;; 6403 esac 6404 ;; 6405 *-*-cygwin* ) 6406 case $build in 6407 *-*-mingw* ) # actually msys 6408 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6409 ;; 6410 *-*-cygwin* ) 6411 lt_cv_to_host_file_cmd=func_convert_file_noop 6412 ;; 6413 * ) # otherwise, assume *nix 6414 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6415 ;; 6416 esac 6417 ;; 6418 * ) # unhandled hosts (and "normal" native builds) 6419 lt_cv_to_host_file_cmd=func_convert_file_noop 6420 ;; 6421esac 6422 6423fi 6424 6425to_host_file_cmd=$lt_cv_to_host_file_cmd 6426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6427$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6428 6429 6430 6431 6432 6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6434$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6435if ${lt_cv_to_tool_file_cmd+:} false; then : 6436 $as_echo_n "(cached) " >&6 6437else 6438 #assume ordinary cross tools, or native build. 6439lt_cv_to_tool_file_cmd=func_convert_file_noop 6440case $host in 6441 *-*-mingw* ) 6442 case $build in 6443 *-*-mingw* ) # actually msys 6444 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6445 ;; 6446 esac 6447 ;; 6448esac 6449 6450fi 6451 6452to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6454$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6455 6456 6457 6458 6459 6460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6461$as_echo_n "checking for $LD option to reload object files... " >&6; } 6462if ${lt_cv_ld_reload_flag+:} false; then : 6463 $as_echo_n "(cached) " >&6 6464else 6465 lt_cv_ld_reload_flag='-r' 6466fi 6467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6468$as_echo "$lt_cv_ld_reload_flag" >&6; } 6469reload_flag=$lt_cv_ld_reload_flag 6470case $reload_flag in 6471"" | " "*) ;; 6472*) reload_flag=" $reload_flag" ;; 6473esac 6474reload_cmds='$LD$reload_flag -o $output$reload_objs' 6475case $host_os in 6476 cygwin* | mingw* | pw32* | cegcc*) 6477 if test yes != "$GCC"; then 6478 reload_cmds=false 6479 fi 6480 ;; 6481 darwin*) 6482 if test yes = "$GCC"; then 6483 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6484 else 6485 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6486 fi 6487 ;; 6488esac 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498if test -n "$ac_tool_prefix"; then 6499 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6500set dummy ${ac_tool_prefix}objdump; ac_word=$2 6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6502$as_echo_n "checking for $ac_word... " >&6; } 6503if ${ac_cv_prog_OBJDUMP+:} false; then : 6504 $as_echo_n "(cached) " >&6 6505else 6506 if test -n "$OBJDUMP"; then 6507 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6508else 6509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6510for as_dir in $PATH 6511do 6512 IFS=$as_save_IFS 6513 test -z "$as_dir" && as_dir=. 6514 for ac_exec_ext in '' $ac_executable_extensions; do 6515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6516 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6518 break 2 6519 fi 6520done 6521 done 6522IFS=$as_save_IFS 6523 6524fi 6525fi 6526OBJDUMP=$ac_cv_prog_OBJDUMP 6527if test -n "$OBJDUMP"; then 6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6529$as_echo "$OBJDUMP" >&6; } 6530else 6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6532$as_echo "no" >&6; } 6533fi 6534 6535 6536fi 6537if test -z "$ac_cv_prog_OBJDUMP"; then 6538 ac_ct_OBJDUMP=$OBJDUMP 6539 # Extract the first word of "objdump", so it can be a program name with args. 6540set dummy objdump; ac_word=$2 6541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6542$as_echo_n "checking for $ac_word... " >&6; } 6543if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6544 $as_echo_n "(cached) " >&6 6545else 6546 if test -n "$ac_ct_OBJDUMP"; then 6547 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6548else 6549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6550for as_dir in $PATH 6551do 6552 IFS=$as_save_IFS 6553 test -z "$as_dir" && as_dir=. 6554 for ac_exec_ext in '' $ac_executable_extensions; do 6555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6556 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6558 break 2 6559 fi 6560done 6561 done 6562IFS=$as_save_IFS 6563 6564fi 6565fi 6566ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6567if test -n "$ac_ct_OBJDUMP"; then 6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6569$as_echo "$ac_ct_OBJDUMP" >&6; } 6570else 6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6572$as_echo "no" >&6; } 6573fi 6574 6575 if test "x$ac_ct_OBJDUMP" = x; then 6576 OBJDUMP="false" 6577 else 6578 case $cross_compiling:$ac_tool_warned in 6579yes:) 6580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6582ac_tool_warned=yes ;; 6583esac 6584 OBJDUMP=$ac_ct_OBJDUMP 6585 fi 6586else 6587 OBJDUMP="$ac_cv_prog_OBJDUMP" 6588fi 6589 6590test -z "$OBJDUMP" && OBJDUMP=objdump 6591 6592 6593 6594 6595 6596 6597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6598$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6599if ${lt_cv_deplibs_check_method+:} false; then : 6600 $as_echo_n "(cached) " >&6 6601else 6602 lt_cv_file_magic_cmd='$MAGIC_CMD' 6603lt_cv_file_magic_test_file= 6604lt_cv_deplibs_check_method='unknown' 6605# Need to set the preceding variable on all platforms that support 6606# interlibrary dependencies. 6607# 'none' -- dependencies not supported. 6608# 'unknown' -- same as none, but documents that we really don't know. 6609# 'pass_all' -- all dependencies passed with no checks. 6610# 'test_compile' -- check by making test program. 6611# 'file_magic [[regex]]' -- check by looking for files in library path 6612# that responds to the $file_magic_cmd with a given extended regex. 6613# If you have 'file' or equivalent on your system and you're not sure 6614# whether 'pass_all' will *always* work, you probably want this one. 6615 6616case $host_os in 6617aix[4-9]*) 6618 lt_cv_deplibs_check_method=pass_all 6619 ;; 6620 6621beos*) 6622 lt_cv_deplibs_check_method=pass_all 6623 ;; 6624 6625bsdi[45]*) 6626 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6627 lt_cv_file_magic_cmd='/usr/bin/file -L' 6628 lt_cv_file_magic_test_file=/shlib/libc.so 6629 ;; 6630 6631cygwin*) 6632 # func_win32_libid is a shell function defined in ltmain.sh 6633 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6634 lt_cv_file_magic_cmd='func_win32_libid' 6635 ;; 6636 6637mingw* | pw32*) 6638 # Base MSYS/MinGW do not provide the 'file' command needed by 6639 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6640 # unless we find 'file', for example because we are cross-compiling. 6641 if ( file / ) >/dev/null 2>&1; then 6642 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6643 lt_cv_file_magic_cmd='func_win32_libid' 6644 else 6645 # Keep this pattern in sync with the one in func_win32_libid. 6646 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6647 lt_cv_file_magic_cmd='$OBJDUMP -f' 6648 fi 6649 ;; 6650 6651cegcc*) 6652 # use the weaker test based on 'objdump'. See mingw*. 6653 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6654 lt_cv_file_magic_cmd='$OBJDUMP -f' 6655 ;; 6656 6657darwin* | rhapsody*) 6658 lt_cv_deplibs_check_method=pass_all 6659 ;; 6660 6661freebsd* | dragonfly*) 6662 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6663 case $host_cpu in 6664 i*86 ) 6665 # Not sure whether the presence of OpenBSD here was a mistake. 6666 # Let's accept both of them until this is cleared up. 6667 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6668 lt_cv_file_magic_cmd=/usr/bin/file 6669 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6670 ;; 6671 esac 6672 else 6673 lt_cv_deplibs_check_method=pass_all 6674 fi 6675 ;; 6676 6677haiku*) 6678 lt_cv_deplibs_check_method=pass_all 6679 ;; 6680 6681hpux10.20* | hpux11*) 6682 lt_cv_file_magic_cmd=/usr/bin/file 6683 case $host_cpu in 6684 ia64*) 6685 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6686 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6687 ;; 6688 hppa*64*) 6689 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]' 6690 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6691 ;; 6692 *) 6693 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6694 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6695 ;; 6696 esac 6697 ;; 6698 6699interix[3-9]*) 6700 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6702 ;; 6703 6704irix5* | irix6* | nonstopux*) 6705 case $LD in 6706 *-32|*"-32 ") libmagic=32-bit;; 6707 *-n32|*"-n32 ") libmagic=N32;; 6708 *-64|*"-64 ") libmagic=64-bit;; 6709 *) libmagic=never-match;; 6710 esac 6711 lt_cv_deplibs_check_method=pass_all 6712 ;; 6713 6714# This must be glibc/ELF. 6715linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6716 lt_cv_deplibs_check_method=pass_all 6717 ;; 6718 6719netbsd* | netbsdelf*-gnu) 6720 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6722 else 6723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6724 fi 6725 ;; 6726 6727newos6*) 6728 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6729 lt_cv_file_magic_cmd=/usr/bin/file 6730 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6731 ;; 6732 6733*nto* | *qnx*) 6734 lt_cv_deplibs_check_method=pass_all 6735 ;; 6736 6737openbsd* | bitrig*) 6738 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6739 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6740 else 6741 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6742 fi 6743 ;; 6744 6745osf3* | osf4* | osf5*) 6746 lt_cv_deplibs_check_method=pass_all 6747 ;; 6748 6749rdos*) 6750 lt_cv_deplibs_check_method=pass_all 6751 ;; 6752 6753solaris*) 6754 lt_cv_deplibs_check_method=pass_all 6755 ;; 6756 6757sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6758 lt_cv_deplibs_check_method=pass_all 6759 ;; 6760 6761sysv4 | sysv4.3*) 6762 case $host_vendor in 6763 motorola) 6764 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]' 6765 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6766 ;; 6767 ncr) 6768 lt_cv_deplibs_check_method=pass_all 6769 ;; 6770 sequent) 6771 lt_cv_file_magic_cmd='/bin/file' 6772 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6773 ;; 6774 sni) 6775 lt_cv_file_magic_cmd='/bin/file' 6776 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6777 lt_cv_file_magic_test_file=/lib/libc.so 6778 ;; 6779 siemens) 6780 lt_cv_deplibs_check_method=pass_all 6781 ;; 6782 pc) 6783 lt_cv_deplibs_check_method=pass_all 6784 ;; 6785 esac 6786 ;; 6787 6788tpf*) 6789 lt_cv_deplibs_check_method=pass_all 6790 ;; 6791os2*) 6792 lt_cv_deplibs_check_method=pass_all 6793 ;; 6794esac 6795 6796fi 6797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6798$as_echo "$lt_cv_deplibs_check_method" >&6; } 6799 6800file_magic_glob= 6801want_nocaseglob=no 6802if test "$build" = "$host"; then 6803 case $host_os in 6804 mingw* | pw32*) 6805 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6806 want_nocaseglob=yes 6807 else 6808 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6809 fi 6810 ;; 6811 esac 6812fi 6813 6814file_magic_cmd=$lt_cv_file_magic_cmd 6815deplibs_check_method=$lt_cv_deplibs_check_method 6816test -z "$deplibs_check_method" && deplibs_check_method=unknown 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839if test -n "$ac_tool_prefix"; then 6840 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6841set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6843$as_echo_n "checking for $ac_word... " >&6; } 6844if ${ac_cv_prog_DLLTOOL+:} false; then : 6845 $as_echo_n "(cached) " >&6 6846else 6847 if test -n "$DLLTOOL"; then 6848 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6849else 6850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6851for as_dir in $PATH 6852do 6853 IFS=$as_save_IFS 6854 test -z "$as_dir" && as_dir=. 6855 for ac_exec_ext in '' $ac_executable_extensions; do 6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6857 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6859 break 2 6860 fi 6861done 6862 done 6863IFS=$as_save_IFS 6864 6865fi 6866fi 6867DLLTOOL=$ac_cv_prog_DLLTOOL 6868if test -n "$DLLTOOL"; then 6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6870$as_echo "$DLLTOOL" >&6; } 6871else 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6873$as_echo "no" >&6; } 6874fi 6875 6876 6877fi 6878if test -z "$ac_cv_prog_DLLTOOL"; then 6879 ac_ct_DLLTOOL=$DLLTOOL 6880 # Extract the first word of "dlltool", so it can be a program name with args. 6881set dummy dlltool; ac_word=$2 6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6883$as_echo_n "checking for $ac_word... " >&6; } 6884if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6885 $as_echo_n "(cached) " >&6 6886else 6887 if test -n "$ac_ct_DLLTOOL"; then 6888 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6889else 6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6891for as_dir in $PATH 6892do 6893 IFS=$as_save_IFS 6894 test -z "$as_dir" && as_dir=. 6895 for ac_exec_ext in '' $ac_executable_extensions; do 6896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6897 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6899 break 2 6900 fi 6901done 6902 done 6903IFS=$as_save_IFS 6904 6905fi 6906fi 6907ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6908if test -n "$ac_ct_DLLTOOL"; then 6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6910$as_echo "$ac_ct_DLLTOOL" >&6; } 6911else 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6913$as_echo "no" >&6; } 6914fi 6915 6916 if test "x$ac_ct_DLLTOOL" = x; then 6917 DLLTOOL="false" 6918 else 6919 case $cross_compiling:$ac_tool_warned in 6920yes:) 6921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6923ac_tool_warned=yes ;; 6924esac 6925 DLLTOOL=$ac_ct_DLLTOOL 6926 fi 6927else 6928 DLLTOOL="$ac_cv_prog_DLLTOOL" 6929fi 6930 6931test -z "$DLLTOOL" && DLLTOOL=dlltool 6932 6933 6934 6935 6936 6937 6938 6939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6940$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6941if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6942 $as_echo_n "(cached) " >&6 6943else 6944 lt_cv_sharedlib_from_linklib_cmd='unknown' 6945 6946case $host_os in 6947cygwin* | mingw* | pw32* | cegcc*) 6948 # two different shell functions defined in ltmain.sh; 6949 # decide which one to use based on capabilities of $DLLTOOL 6950 case `$DLLTOOL --help 2>&1` in 6951 *--identify-strict*) 6952 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6953 ;; 6954 *) 6955 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6956 ;; 6957 esac 6958 ;; 6959*) 6960 # fallback: assume linklib IS sharedlib 6961 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6962 ;; 6963esac 6964 6965fi 6966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6967$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6968sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6969test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6970 6971 6972 6973 6974 6975 6976 6977 6978if test -n "$ac_tool_prefix"; then 6979 for ac_prog in ar 6980 do 6981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6982set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6984$as_echo_n "checking for $ac_word... " >&6; } 6985if ${ac_cv_prog_AR+:} false; then : 6986 $as_echo_n "(cached) " >&6 6987else 6988 if test -n "$AR"; then 6989 ac_cv_prog_AR="$AR" # Let the user override the test. 6990else 6991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6992for as_dir in $PATH 6993do 6994 IFS=$as_save_IFS 6995 test -z "$as_dir" && as_dir=. 6996 for ac_exec_ext in '' $ac_executable_extensions; do 6997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6998 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7000 break 2 7001 fi 7002done 7003 done 7004IFS=$as_save_IFS 7005 7006fi 7007fi 7008AR=$ac_cv_prog_AR 7009if test -n "$AR"; then 7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7011$as_echo "$AR" >&6; } 7012else 7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7014$as_echo "no" >&6; } 7015fi 7016 7017 7018 test -n "$AR" && break 7019 done 7020fi 7021if test -z "$AR"; then 7022 ac_ct_AR=$AR 7023 for ac_prog in ar 7024do 7025 # Extract the first word of "$ac_prog", so it can be a program name with args. 7026set dummy $ac_prog; ac_word=$2 7027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7028$as_echo_n "checking for $ac_word... " >&6; } 7029if ${ac_cv_prog_ac_ct_AR+:} false; then : 7030 $as_echo_n "(cached) " >&6 7031else 7032 if test -n "$ac_ct_AR"; then 7033 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7034else 7035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7036for as_dir in $PATH 7037do 7038 IFS=$as_save_IFS 7039 test -z "$as_dir" && as_dir=. 7040 for ac_exec_ext in '' $ac_executable_extensions; do 7041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7042 ac_cv_prog_ac_ct_AR="$ac_prog" 7043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7044 break 2 7045 fi 7046done 7047 done 7048IFS=$as_save_IFS 7049 7050fi 7051fi 7052ac_ct_AR=$ac_cv_prog_ac_ct_AR 7053if test -n "$ac_ct_AR"; then 7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7055$as_echo "$ac_ct_AR" >&6; } 7056else 7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7058$as_echo "no" >&6; } 7059fi 7060 7061 7062 test -n "$ac_ct_AR" && break 7063done 7064 7065 if test "x$ac_ct_AR" = x; then 7066 AR="false" 7067 else 7068 case $cross_compiling:$ac_tool_warned in 7069yes:) 7070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7072ac_tool_warned=yes ;; 7073esac 7074 AR=$ac_ct_AR 7075 fi 7076fi 7077 7078: ${AR=ar} 7079: ${AR_FLAGS=cru} 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7092$as_echo_n "checking for archiver @FILE support... " >&6; } 7093if ${lt_cv_ar_at_file+:} false; then : 7094 $as_echo_n "(cached) " >&6 7095else 7096 lt_cv_ar_at_file=no 7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7098/* end confdefs.h. */ 7099 7100int 7101main () 7102{ 7103 7104 ; 7105 return 0; 7106} 7107_ACEOF 7108if ac_fn_c_try_compile "$LINENO"; then : 7109 echo conftest.$ac_objext > conftest.lst 7110 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7112 (eval $lt_ar_try) 2>&5 7113 ac_status=$? 7114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7115 test $ac_status = 0; } 7116 if test 0 -eq "$ac_status"; then 7117 # Ensure the archiver fails upon bogus file names. 7118 rm -f conftest.$ac_objext libconftest.a 7119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7120 (eval $lt_ar_try) 2>&5 7121 ac_status=$? 7122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7123 test $ac_status = 0; } 7124 if test 0 -ne "$ac_status"; then 7125 lt_cv_ar_at_file=@ 7126 fi 7127 fi 7128 rm -f conftest.* libconftest.a 7129 7130fi 7131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7132 7133fi 7134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7135$as_echo "$lt_cv_ar_at_file" >&6; } 7136 7137if test no = "$lt_cv_ar_at_file"; then 7138 archiver_list_spec= 7139else 7140 archiver_list_spec=$lt_cv_ar_at_file 7141fi 7142 7143 7144 7145 7146 7147 7148 7149if test -n "$ac_tool_prefix"; then 7150 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7151set dummy ${ac_tool_prefix}strip; ac_word=$2 7152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7153$as_echo_n "checking for $ac_word... " >&6; } 7154if ${ac_cv_prog_STRIP+:} false; then : 7155 $as_echo_n "(cached) " >&6 7156else 7157 if test -n "$STRIP"; then 7158 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7159else 7160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7161for as_dir in $PATH 7162do 7163 IFS=$as_save_IFS 7164 test -z "$as_dir" && as_dir=. 7165 for ac_exec_ext in '' $ac_executable_extensions; do 7166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7167 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7169 break 2 7170 fi 7171done 7172 done 7173IFS=$as_save_IFS 7174 7175fi 7176fi 7177STRIP=$ac_cv_prog_STRIP 7178if test -n "$STRIP"; then 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7180$as_echo "$STRIP" >&6; } 7181else 7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7183$as_echo "no" >&6; } 7184fi 7185 7186 7187fi 7188if test -z "$ac_cv_prog_STRIP"; then 7189 ac_ct_STRIP=$STRIP 7190 # Extract the first word of "strip", so it can be a program name with args. 7191set dummy strip; ac_word=$2 7192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7193$as_echo_n "checking for $ac_word... " >&6; } 7194if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7195 $as_echo_n "(cached) " >&6 7196else 7197 if test -n "$ac_ct_STRIP"; then 7198 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7199else 7200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7201for as_dir in $PATH 7202do 7203 IFS=$as_save_IFS 7204 test -z "$as_dir" && as_dir=. 7205 for ac_exec_ext in '' $ac_executable_extensions; do 7206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7207 ac_cv_prog_ac_ct_STRIP="strip" 7208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7209 break 2 7210 fi 7211done 7212 done 7213IFS=$as_save_IFS 7214 7215fi 7216fi 7217ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7218if test -n "$ac_ct_STRIP"; then 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7220$as_echo "$ac_ct_STRIP" >&6; } 7221else 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7223$as_echo "no" >&6; } 7224fi 7225 7226 if test "x$ac_ct_STRIP" = x; then 7227 STRIP=":" 7228 else 7229 case $cross_compiling:$ac_tool_warned in 7230yes:) 7231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7233ac_tool_warned=yes ;; 7234esac 7235 STRIP=$ac_ct_STRIP 7236 fi 7237else 7238 STRIP="$ac_cv_prog_STRIP" 7239fi 7240 7241test -z "$STRIP" && STRIP=: 7242 7243 7244 7245 7246 7247 7248if test -n "$ac_tool_prefix"; then 7249 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7250set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7252$as_echo_n "checking for $ac_word... " >&6; } 7253if ${ac_cv_prog_RANLIB+:} false; then : 7254 $as_echo_n "(cached) " >&6 7255else 7256 if test -n "$RANLIB"; then 7257 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7258else 7259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7260for as_dir in $PATH 7261do 7262 IFS=$as_save_IFS 7263 test -z "$as_dir" && as_dir=. 7264 for ac_exec_ext in '' $ac_executable_extensions; do 7265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7266 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7268 break 2 7269 fi 7270done 7271 done 7272IFS=$as_save_IFS 7273 7274fi 7275fi 7276RANLIB=$ac_cv_prog_RANLIB 7277if test -n "$RANLIB"; then 7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7279$as_echo "$RANLIB" >&6; } 7280else 7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7282$as_echo "no" >&6; } 7283fi 7284 7285 7286fi 7287if test -z "$ac_cv_prog_RANLIB"; then 7288 ac_ct_RANLIB=$RANLIB 7289 # Extract the first word of "ranlib", so it can be a program name with args. 7290set dummy ranlib; ac_word=$2 7291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7292$as_echo_n "checking for $ac_word... " >&6; } 7293if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7294 $as_echo_n "(cached) " >&6 7295else 7296 if test -n "$ac_ct_RANLIB"; then 7297 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7298else 7299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7300for as_dir in $PATH 7301do 7302 IFS=$as_save_IFS 7303 test -z "$as_dir" && as_dir=. 7304 for ac_exec_ext in '' $ac_executable_extensions; do 7305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7306 ac_cv_prog_ac_ct_RANLIB="ranlib" 7307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7308 break 2 7309 fi 7310done 7311 done 7312IFS=$as_save_IFS 7313 7314fi 7315fi 7316ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7317if test -n "$ac_ct_RANLIB"; then 7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7319$as_echo "$ac_ct_RANLIB" >&6; } 7320else 7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7322$as_echo "no" >&6; } 7323fi 7324 7325 if test "x$ac_ct_RANLIB" = x; then 7326 RANLIB=":" 7327 else 7328 case $cross_compiling:$ac_tool_warned in 7329yes:) 7330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7332ac_tool_warned=yes ;; 7333esac 7334 RANLIB=$ac_ct_RANLIB 7335 fi 7336else 7337 RANLIB="$ac_cv_prog_RANLIB" 7338fi 7339 7340test -z "$RANLIB" && RANLIB=: 7341 7342 7343 7344 7345 7346 7347# Determine commands to create old-style static archives. 7348old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7349old_postinstall_cmds='chmod 644 $oldlib' 7350old_postuninstall_cmds= 7351 7352if test -n "$RANLIB"; then 7353 case $host_os in 7354 bitrig* | openbsd*) 7355 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7356 ;; 7357 *) 7358 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7359 ;; 7360 esac 7361 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7362fi 7363 7364case $host_os in 7365 darwin*) 7366 lock_old_archive_extraction=yes ;; 7367 *) 7368 lock_old_archive_extraction=no ;; 7369esac 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409# If no C compiler was specified, use CC. 7410LTCC=${LTCC-"$CC"} 7411 7412# If no C compiler flags were specified, use CFLAGS. 7413LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7414 7415# Allow CC to be a program name with arguments. 7416compiler=$CC 7417 7418 7419# Check for command to grab the raw symbol name followed by C symbol from nm. 7420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7421$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7422if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7423 $as_echo_n "(cached) " >&6 7424else 7425 7426# These are sane defaults that work on at least a few old systems. 7427# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7428 7429# Character class describing NM global symbol codes. 7430symcode='[BCDEGRST]' 7431 7432# Regexp to match symbols that can be accessed directly from C. 7433sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7434 7435# Define system-specific variables. 7436case $host_os in 7437aix*) 7438 symcode='[BCDT]' 7439 ;; 7440cygwin* | mingw* | pw32* | cegcc*) 7441 symcode='[ABCDGISTW]' 7442 ;; 7443hpux*) 7444 if test ia64 = "$host_cpu"; then 7445 symcode='[ABCDEGRST]' 7446 fi 7447 ;; 7448irix* | nonstopux*) 7449 symcode='[BCDEGRST]' 7450 ;; 7451osf*) 7452 symcode='[BCDEGQRST]' 7453 ;; 7454solaris*) 7455 symcode='[BDRT]' 7456 ;; 7457sco3.2v5*) 7458 symcode='[DT]' 7459 ;; 7460sysv4.2uw2*) 7461 symcode='[DT]' 7462 ;; 7463sysv5* | sco5v6* | unixware* | OpenUNIX*) 7464 symcode='[ABDT]' 7465 ;; 7466sysv4) 7467 symcode='[DFNSTU]' 7468 ;; 7469esac 7470 7471# If we're using GNU nm, then use its standard symbol codes. 7472case `$NM -V 2>&1` in 7473*GNU* | *'with BFD'*) 7474 symcode='[ABCDGIRSTW]' ;; 7475esac 7476 7477if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7478 # Gets list of data symbols to import. 7479 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7480 # Adjust the below global symbol transforms to fixup imported variables. 7481 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7482 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7483 lt_c_name_lib_hook="\ 7484 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7485 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7486else 7487 # Disable hooks by default. 7488 lt_cv_sys_global_symbol_to_import= 7489 lt_cdecl_hook= 7490 lt_c_name_hook= 7491 lt_c_name_lib_hook= 7492fi 7493 7494# Transform an extracted symbol line into a proper C declaration. 7495# Some systems (esp. on ia64) link data and code symbols differently, 7496# so use this general approach. 7497lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7498$lt_cdecl_hook\ 7499" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7500" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7501 7502# Transform an extracted symbol line into symbol name and symbol address 7503lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7504$lt_c_name_hook\ 7505" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7506" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7507 7508# Transform an extracted symbol line into symbol name with lib prefix and 7509# symbol address. 7510lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7511$lt_c_name_lib_hook\ 7512" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7513" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7514" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7515 7516# Handle CRLF in mingw tool chain 7517opt_cr= 7518case $build_os in 7519mingw*) 7520 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7521 ;; 7522esac 7523 7524# Try without a prefix underscore, then with it. 7525for ac_symprfx in "" "_"; do 7526 7527 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7528 symxfrm="\\1 $ac_symprfx\\2 \\2" 7529 7530 # Write the raw and C identifiers. 7531 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7532 # Fake it for dumpbin and say T for any non-static function, 7533 # D for any global variable and I for any imported variable. 7534 # Also find C++ and __fastcall symbols from MSVC++, 7535 # which start with @ or ?. 7536 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7537" {last_section=section; section=\$ 3};"\ 7538" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7539" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7540" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7541" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7542" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7543" \$ 0!~/External *\|/{next};"\ 7544" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7545" {if(hide[section]) next};"\ 7546" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7547" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7548" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7549" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7550" ' prfx=^$ac_symprfx" 7551 else 7552 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7553 fi 7554 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7555 7556 # Check to see that the pipe works correctly. 7557 pipe_works=no 7558 7559 rm -f conftest* 7560 cat > conftest.$ac_ext <<_LT_EOF 7561#ifdef __cplusplus 7562extern "C" { 7563#endif 7564char nm_test_var; 7565void nm_test_func(void); 7566void nm_test_func(void){} 7567#ifdef __cplusplus 7568} 7569#endif 7570int main(){nm_test_var='a';nm_test_func();return(0);} 7571_LT_EOF 7572 7573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7574 (eval $ac_compile) 2>&5 7575 ac_status=$? 7576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7577 test $ac_status = 0; }; then 7578 # Now try to grab the symbols. 7579 nlist=conftest.nm 7580 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 7581 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 7582 # Try sorting and uniquifying the output. 7583 if sort "$nlist" | uniq > "$nlist"T; then 7584 mv -f "$nlist"T "$nlist" 7585 else 7586 rm -f "$nlist"T 7587 fi 7588 7589 # Make sure that we snagged all the symbols we need. 7590 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7591 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7592 cat <<_LT_EOF > conftest.$ac_ext 7593/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7594#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7595/* DATA imports from DLLs on WIN32 can't be const, because runtime 7596 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7597# define LT@&t@_DLSYM_CONST 7598#elif defined __osf__ 7599/* This system does not cope well with relocations in const data. */ 7600# define LT@&t@_DLSYM_CONST 7601#else 7602# define LT@&t@_DLSYM_CONST const 7603#endif 7604 7605#ifdef __cplusplus 7606extern "C" { 7607#endif 7608 7609_LT_EOF 7610 # Now generate the symbol file. 7611 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7612 7613 cat <<_LT_EOF >> conftest.$ac_ext 7614 7615/* The mapping between symbol names and symbols. */ 7616LT@&t@_DLSYM_CONST struct { 7617 const char *name; 7618 void *address; 7619} 7620lt__PROGRAM__LTX_preloaded_symbols[] = 7621{ 7622 { "@PROGRAM@", (void *) 0 }, 7623_LT_EOF 7624 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7625 cat <<\_LT_EOF >> conftest.$ac_ext 7626 {0, (void *) 0} 7627}; 7628 7629/* This works around a problem in FreeBSD linker */ 7630#ifdef FREEBSD_WORKAROUND 7631static const void *lt_preloaded_setup() { 7632 return lt__PROGRAM__LTX_preloaded_symbols; 7633} 7634#endif 7635 7636#ifdef __cplusplus 7637} 7638#endif 7639_LT_EOF 7640 # Now try linking the two files. 7641 mv conftest.$ac_objext conftstm.$ac_objext 7642 lt_globsym_save_LIBS=$LIBS 7643 lt_globsym_save_CFLAGS=$CFLAGS 7644 LIBS=conftstm.$ac_objext 7645 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7647 (eval $ac_link) 2>&5 7648 ac_status=$? 7649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7650 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7651 pipe_works=yes 7652 fi 7653 LIBS=$lt_globsym_save_LIBS 7654 CFLAGS=$lt_globsym_save_CFLAGS 7655 else 7656 echo "cannot find nm_test_func in $nlist" >&5 7657 fi 7658 else 7659 echo "cannot find nm_test_var in $nlist" >&5 7660 fi 7661 else 7662 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7663 fi 7664 else 7665 echo "$progname: failed program was:" >&5 7666 cat conftest.$ac_ext >&5 7667 fi 7668 rm -rf conftest* conftst* 7669 7670 # Do not use the global_symbol_pipe unless it works. 7671 if test yes = "$pipe_works"; then 7672 break 7673 else 7674 lt_cv_sys_global_symbol_pipe= 7675 fi 7676done 7677 7678fi 7679 7680if test -z "$lt_cv_sys_global_symbol_pipe"; then 7681 lt_cv_sys_global_symbol_to_cdecl= 7682fi 7683if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7685$as_echo "failed" >&6; } 7686else 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7688$as_echo "ok" >&6; } 7689fi 7690 7691# Response file support. 7692if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7693 nm_file_list_spec='@' 7694elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7695 nm_file_list_spec='@' 7696fi 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7735$as_echo_n "checking for sysroot... " >&6; } 7736 7737@%:@ Check whether --with-sysroot was given. 7738if test "${with_sysroot+set}" = set; then : 7739 withval=$with_sysroot; 7740else 7741 with_sysroot=no 7742fi 7743 7744 7745lt_sysroot= 7746case $with_sysroot in #( 7747 yes) 7748 if test yes = "$GCC"; then 7749 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7750 fi 7751 ;; #( 7752 /*) 7753 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7754 ;; #( 7755 no|'') 7756 ;; #( 7757 *) 7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7759$as_echo "$with_sysroot" >&6; } 7760 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7761 ;; 7762esac 7763 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7765$as_echo "${lt_sysroot:-no}" >&6; } 7766 7767 7768 7769 7770 7771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7772$as_echo_n "checking for a working dd... " >&6; } 7773if ${ac_cv_path_lt_DD+:} false; then : 7774 $as_echo_n "(cached) " >&6 7775else 7776 printf 0123456789abcdef0123456789abcdef >conftest.i 7777cat conftest.i conftest.i >conftest2.i 7778: ${lt_DD:=$DD} 7779if test -z "$lt_DD"; then 7780 ac_path_lt_DD_found=false 7781 # Loop through the user's path and test for each of PROGNAME-LIST 7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7783for as_dir in $PATH 7784do 7785 IFS=$as_save_IFS 7786 test -z "$as_dir" && as_dir=. 7787 for ac_prog in dd; do 7788 for ac_exec_ext in '' $ac_executable_extensions; do 7789 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7790 as_fn_executable_p "$ac_path_lt_DD" || continue 7791if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7792 cmp -s conftest.i conftest.out \ 7793 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7794fi 7795 $ac_path_lt_DD_found && break 3 7796 done 7797 done 7798 done 7799IFS=$as_save_IFS 7800 if test -z "$ac_cv_path_lt_DD"; then 7801 : 7802 fi 7803else 7804 ac_cv_path_lt_DD=$lt_DD 7805fi 7806 7807rm -f conftest.i conftest2.i conftest.out 7808fi 7809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7810$as_echo "$ac_cv_path_lt_DD" >&6; } 7811 7812 7813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7814$as_echo_n "checking how to truncate binary pipes... " >&6; } 7815if ${lt_cv_truncate_bin+:} false; then : 7816 $as_echo_n "(cached) " >&6 7817else 7818 printf 0123456789abcdef0123456789abcdef >conftest.i 7819cat conftest.i conftest.i >conftest2.i 7820lt_cv_truncate_bin= 7821if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7822 cmp -s conftest.i conftest.out \ 7823 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7824fi 7825rm -f conftest.i conftest2.i conftest.out 7826test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7827fi 7828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7829$as_echo "$lt_cv_truncate_bin" >&6; } 7830 7831 7832 7833 7834 7835 7836 7837# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7838func_cc_basename () 7839{ 7840 for cc_temp in @S|@*""; do 7841 case $cc_temp in 7842 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7843 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7844 \-*) ;; 7845 *) break;; 7846 esac 7847 done 7848 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7849} 7850 7851@%:@ Check whether --enable-libtool-lock was given. 7852if test "${enable_libtool_lock+set}" = set; then : 7853 enableval=$enable_libtool_lock; 7854fi 7855 7856test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7857 7858# Some flags need to be propagated to the compiler or linker for good 7859# libtool support. 7860case $host in 7861ia64-*-hpux*) 7862 # Find out what ABI is being produced by ac_compile, and set mode 7863 # options accordingly. 7864 echo 'int i;' > conftest.$ac_ext 7865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7866 (eval $ac_compile) 2>&5 7867 ac_status=$? 7868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7869 test $ac_status = 0; }; then 7870 case `/usr/bin/file conftest.$ac_objext` in 7871 *ELF-32*) 7872 HPUX_IA64_MODE=32 7873 ;; 7874 *ELF-64*) 7875 HPUX_IA64_MODE=64 7876 ;; 7877 esac 7878 fi 7879 rm -rf conftest* 7880 ;; 7881*-*-irix6*) 7882 # Find out what ABI is being produced by ac_compile, and set linker 7883 # options accordingly. 7884 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7886 (eval $ac_compile) 2>&5 7887 ac_status=$? 7888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7889 test $ac_status = 0; }; then 7890 if test yes = "$lt_cv_prog_gnu_ld"; then 7891 case `/usr/bin/file conftest.$ac_objext` in 7892 *32-bit*) 7893 LD="${LD-ld} -melf32bsmip" 7894 ;; 7895 *N32*) 7896 LD="${LD-ld} -melf32bmipn32" 7897 ;; 7898 *64-bit*) 7899 LD="${LD-ld} -melf64bmip" 7900 ;; 7901 esac 7902 else 7903 case `/usr/bin/file conftest.$ac_objext` in 7904 *32-bit*) 7905 LD="${LD-ld} -32" 7906 ;; 7907 *N32*) 7908 LD="${LD-ld} -n32" 7909 ;; 7910 *64-bit*) 7911 LD="${LD-ld} -64" 7912 ;; 7913 esac 7914 fi 7915 fi 7916 rm -rf conftest* 7917 ;; 7918 7919mips64*-*linux*) 7920 # Find out what ABI is being produced by ac_compile, and set linker 7921 # options accordingly. 7922 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7924 (eval $ac_compile) 2>&5 7925 ac_status=$? 7926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7927 test $ac_status = 0; }; then 7928 emul=elf 7929 case `/usr/bin/file conftest.$ac_objext` in 7930 *32-bit*) 7931 emul="${emul}32" 7932 ;; 7933 *64-bit*) 7934 emul="${emul}64" 7935 ;; 7936 esac 7937 case `/usr/bin/file conftest.$ac_objext` in 7938 *MSB*) 7939 emul="${emul}btsmip" 7940 ;; 7941 *LSB*) 7942 emul="${emul}ltsmip" 7943 ;; 7944 esac 7945 case `/usr/bin/file conftest.$ac_objext` in 7946 *N32*) 7947 emul="${emul}n32" 7948 ;; 7949 esac 7950 LD="${LD-ld} -m $emul" 7951 fi 7952 rm -rf conftest* 7953 ;; 7954 7955x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7956s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7957 # Find out what ABI is being produced by ac_compile, and set linker 7958 # options accordingly. Note that the listed cases only cover the 7959 # situations where additional linker options are needed (such as when 7960 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7961 # vice versa); the common cases where no linker options are needed do 7962 # not appear in the list. 7963 echo 'int i;' > conftest.$ac_ext 7964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7965 (eval $ac_compile) 2>&5 7966 ac_status=$? 7967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7968 test $ac_status = 0; }; then 7969 case `/usr/bin/file conftest.o` in 7970 *32-bit*) 7971 case $host in 7972 x86_64-*kfreebsd*-gnu) 7973 LD="${LD-ld} -m elf_i386_fbsd" 7974 ;; 7975 x86_64-*linux*) 7976 case `/usr/bin/file conftest.o` in 7977 *x86-64*) 7978 LD="${LD-ld} -m elf32_x86_64" 7979 ;; 7980 *) 7981 LD="${LD-ld} -m elf_i386" 7982 ;; 7983 esac 7984 ;; 7985 powerpc64le-*linux*) 7986 LD="${LD-ld} -m elf32lppclinux" 7987 ;; 7988 powerpc64-*linux*) 7989 LD="${LD-ld} -m elf32ppclinux" 7990 ;; 7991 s390x-*linux*) 7992 LD="${LD-ld} -m elf_s390" 7993 ;; 7994 sparc64-*linux*) 7995 LD="${LD-ld} -m elf32_sparc" 7996 ;; 7997 esac 7998 ;; 7999 *64-bit*) 8000 case $host in 8001 x86_64-*kfreebsd*-gnu) 8002 LD="${LD-ld} -m elf_x86_64_fbsd" 8003 ;; 8004 x86_64-*linux*) 8005 LD="${LD-ld} -m elf_x86_64" 8006 ;; 8007 powerpcle-*linux*) 8008 LD="${LD-ld} -m elf64lppc" 8009 ;; 8010 powerpc-*linux*) 8011 LD="${LD-ld} -m elf64ppc" 8012 ;; 8013 s390*-*linux*|s390*-*tpf*) 8014 LD="${LD-ld} -m elf64_s390" 8015 ;; 8016 sparc*-*linux*) 8017 LD="${LD-ld} -m elf64_sparc" 8018 ;; 8019 esac 8020 ;; 8021 esac 8022 fi 8023 rm -rf conftest* 8024 ;; 8025 8026*-*-sco3.2v5*) 8027 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8028 SAVE_CFLAGS=$CFLAGS 8029 CFLAGS="$CFLAGS -belf" 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8031$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8032if ${lt_cv_cc_needs_belf+:} false; then : 8033 $as_echo_n "(cached) " >&6 8034else 8035 ac_ext=c 8036ac_cpp='$CPP $CPPFLAGS' 8037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8039ac_compiler_gnu=$ac_cv_c_compiler_gnu 8040 8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8042/* end confdefs.h. */ 8043 8044int 8045main () 8046{ 8047 8048 ; 8049 return 0; 8050} 8051_ACEOF 8052if ac_fn_c_try_link "$LINENO"; then : 8053 lt_cv_cc_needs_belf=yes 8054else 8055 lt_cv_cc_needs_belf=no 8056fi 8057rm -f core conftest.err conftest.$ac_objext \ 8058 conftest$ac_exeext conftest.$ac_ext 8059 ac_ext=c 8060ac_cpp='$CPP $CPPFLAGS' 8061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8063ac_compiler_gnu=$ac_cv_c_compiler_gnu 8064 8065fi 8066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8067$as_echo "$lt_cv_cc_needs_belf" >&6; } 8068 if test yes != "$lt_cv_cc_needs_belf"; then 8069 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8070 CFLAGS=$SAVE_CFLAGS 8071 fi 8072 ;; 8073*-*solaris*) 8074 # Find out what ABI is being produced by ac_compile, and set linker 8075 # options accordingly. 8076 echo 'int i;' > conftest.$ac_ext 8077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8078 (eval $ac_compile) 2>&5 8079 ac_status=$? 8080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8081 test $ac_status = 0; }; then 8082 case `/usr/bin/file conftest.o` in 8083 *64-bit*) 8084 case $lt_cv_prog_gnu_ld in 8085 yes*) 8086 case $host in 8087 i?86-*-solaris*|x86_64-*-solaris*) 8088 LD="${LD-ld} -m elf_x86_64" 8089 ;; 8090 sparc*-*-solaris*) 8091 LD="${LD-ld} -m elf64_sparc" 8092 ;; 8093 esac 8094 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8095 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8096 LD=${LD-ld}_sol2 8097 fi 8098 ;; 8099 *) 8100 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8101 LD="${LD-ld} -64" 8102 fi 8103 ;; 8104 esac 8105 ;; 8106 esac 8107 fi 8108 rm -rf conftest* 8109 ;; 8110esac 8111 8112need_locks=$enable_libtool_lock 8113 8114if test -n "$ac_tool_prefix"; then 8115 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8116set dummy ${ac_tool_prefix}mt; ac_word=$2 8117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8118$as_echo_n "checking for $ac_word... " >&6; } 8119if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8120 $as_echo_n "(cached) " >&6 8121else 8122 if test -n "$MANIFEST_TOOL"; then 8123 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8124else 8125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8126for as_dir in $PATH 8127do 8128 IFS=$as_save_IFS 8129 test -z "$as_dir" && as_dir=. 8130 for ac_exec_ext in '' $ac_executable_extensions; do 8131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8132 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8134 break 2 8135 fi 8136done 8137 done 8138IFS=$as_save_IFS 8139 8140fi 8141fi 8142MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8143if test -n "$MANIFEST_TOOL"; then 8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8145$as_echo "$MANIFEST_TOOL" >&6; } 8146else 8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8148$as_echo "no" >&6; } 8149fi 8150 8151 8152fi 8153if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8154 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8155 # Extract the first word of "mt", so it can be a program name with args. 8156set dummy mt; ac_word=$2 8157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8158$as_echo_n "checking for $ac_word... " >&6; } 8159if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8160 $as_echo_n "(cached) " >&6 8161else 8162 if test -n "$ac_ct_MANIFEST_TOOL"; then 8163 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8164else 8165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8166for as_dir in $PATH 8167do 8168 IFS=$as_save_IFS 8169 test -z "$as_dir" && as_dir=. 8170 for ac_exec_ext in '' $ac_executable_extensions; do 8171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8172 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8174 break 2 8175 fi 8176done 8177 done 8178IFS=$as_save_IFS 8179 8180fi 8181fi 8182ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8183if test -n "$ac_ct_MANIFEST_TOOL"; then 8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8185$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8186else 8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8188$as_echo "no" >&6; } 8189fi 8190 8191 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8192 MANIFEST_TOOL=":" 8193 else 8194 case $cross_compiling:$ac_tool_warned in 8195yes:) 8196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8198ac_tool_warned=yes ;; 8199esac 8200 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8201 fi 8202else 8203 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8204fi 8205 8206test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8208$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8209if ${lt_cv_path_mainfest_tool+:} false; then : 8210 $as_echo_n "(cached) " >&6 8211else 8212 lt_cv_path_mainfest_tool=no 8213 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8214 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8215 cat conftest.err >&5 8216 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8217 lt_cv_path_mainfest_tool=yes 8218 fi 8219 rm -f conftest* 8220fi 8221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8222$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8223if test yes != "$lt_cv_path_mainfest_tool"; then 8224 MANIFEST_TOOL=: 8225fi 8226 8227 8228 8229 8230 8231 8232 case $host_os in 8233 rhapsody* | darwin*) 8234 if test -n "$ac_tool_prefix"; then 8235 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8236set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8238$as_echo_n "checking for $ac_word... " >&6; } 8239if ${ac_cv_prog_DSYMUTIL+:} false; then : 8240 $as_echo_n "(cached) " >&6 8241else 8242 if test -n "$DSYMUTIL"; then 8243 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8244else 8245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8246for as_dir in $PATH 8247do 8248 IFS=$as_save_IFS 8249 test -z "$as_dir" && as_dir=. 8250 for ac_exec_ext in '' $ac_executable_extensions; do 8251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8252 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8254 break 2 8255 fi 8256done 8257 done 8258IFS=$as_save_IFS 8259 8260fi 8261fi 8262DSYMUTIL=$ac_cv_prog_DSYMUTIL 8263if test -n "$DSYMUTIL"; then 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8265$as_echo "$DSYMUTIL" >&6; } 8266else 8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8268$as_echo "no" >&6; } 8269fi 8270 8271 8272fi 8273if test -z "$ac_cv_prog_DSYMUTIL"; then 8274 ac_ct_DSYMUTIL=$DSYMUTIL 8275 # Extract the first word of "dsymutil", so it can be a program name with args. 8276set dummy dsymutil; ac_word=$2 8277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8278$as_echo_n "checking for $ac_word... " >&6; } 8279if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8280 $as_echo_n "(cached) " >&6 8281else 8282 if test -n "$ac_ct_DSYMUTIL"; then 8283 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8284else 8285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8286for as_dir in $PATH 8287do 8288 IFS=$as_save_IFS 8289 test -z "$as_dir" && as_dir=. 8290 for ac_exec_ext in '' $ac_executable_extensions; do 8291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8292 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8294 break 2 8295 fi 8296done 8297 done 8298IFS=$as_save_IFS 8299 8300fi 8301fi 8302ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8303if test -n "$ac_ct_DSYMUTIL"; then 8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8305$as_echo "$ac_ct_DSYMUTIL" >&6; } 8306else 8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8308$as_echo "no" >&6; } 8309fi 8310 8311 if test "x$ac_ct_DSYMUTIL" = x; then 8312 DSYMUTIL=":" 8313 else 8314 case $cross_compiling:$ac_tool_warned in 8315yes:) 8316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8318ac_tool_warned=yes ;; 8319esac 8320 DSYMUTIL=$ac_ct_DSYMUTIL 8321 fi 8322else 8323 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8324fi 8325 8326 if test -n "$ac_tool_prefix"; then 8327 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8328set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8330$as_echo_n "checking for $ac_word... " >&6; } 8331if ${ac_cv_prog_NMEDIT+:} false; then : 8332 $as_echo_n "(cached) " >&6 8333else 8334 if test -n "$NMEDIT"; then 8335 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8336else 8337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8338for as_dir in $PATH 8339do 8340 IFS=$as_save_IFS 8341 test -z "$as_dir" && as_dir=. 8342 for ac_exec_ext in '' $ac_executable_extensions; do 8343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8344 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8346 break 2 8347 fi 8348done 8349 done 8350IFS=$as_save_IFS 8351 8352fi 8353fi 8354NMEDIT=$ac_cv_prog_NMEDIT 8355if test -n "$NMEDIT"; then 8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8357$as_echo "$NMEDIT" >&6; } 8358else 8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8360$as_echo "no" >&6; } 8361fi 8362 8363 8364fi 8365if test -z "$ac_cv_prog_NMEDIT"; then 8366 ac_ct_NMEDIT=$NMEDIT 8367 # Extract the first word of "nmedit", so it can be a program name with args. 8368set dummy nmedit; ac_word=$2 8369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8370$as_echo_n "checking for $ac_word... " >&6; } 8371if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8372 $as_echo_n "(cached) " >&6 8373else 8374 if test -n "$ac_ct_NMEDIT"; then 8375 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8376else 8377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8378for as_dir in $PATH 8379do 8380 IFS=$as_save_IFS 8381 test -z "$as_dir" && as_dir=. 8382 for ac_exec_ext in '' $ac_executable_extensions; do 8383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8384 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8386 break 2 8387 fi 8388done 8389 done 8390IFS=$as_save_IFS 8391 8392fi 8393fi 8394ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8395if test -n "$ac_ct_NMEDIT"; then 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8397$as_echo "$ac_ct_NMEDIT" >&6; } 8398else 8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8400$as_echo "no" >&6; } 8401fi 8402 8403 if test "x$ac_ct_NMEDIT" = x; then 8404 NMEDIT=":" 8405 else 8406 case $cross_compiling:$ac_tool_warned in 8407yes:) 8408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8410ac_tool_warned=yes ;; 8411esac 8412 NMEDIT=$ac_ct_NMEDIT 8413 fi 8414else 8415 NMEDIT="$ac_cv_prog_NMEDIT" 8416fi 8417 8418 if test -n "$ac_tool_prefix"; then 8419 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8420set dummy ${ac_tool_prefix}lipo; ac_word=$2 8421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8422$as_echo_n "checking for $ac_word... " >&6; } 8423if ${ac_cv_prog_LIPO+:} false; then : 8424 $as_echo_n "(cached) " >&6 8425else 8426 if test -n "$LIPO"; then 8427 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8428else 8429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8430for as_dir in $PATH 8431do 8432 IFS=$as_save_IFS 8433 test -z "$as_dir" && as_dir=. 8434 for ac_exec_ext in '' $ac_executable_extensions; do 8435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8436 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8438 break 2 8439 fi 8440done 8441 done 8442IFS=$as_save_IFS 8443 8444fi 8445fi 8446LIPO=$ac_cv_prog_LIPO 8447if test -n "$LIPO"; then 8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8449$as_echo "$LIPO" >&6; } 8450else 8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8452$as_echo "no" >&6; } 8453fi 8454 8455 8456fi 8457if test -z "$ac_cv_prog_LIPO"; then 8458 ac_ct_LIPO=$LIPO 8459 # Extract the first word of "lipo", so it can be a program name with args. 8460set dummy lipo; ac_word=$2 8461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8462$as_echo_n "checking for $ac_word... " >&6; } 8463if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8464 $as_echo_n "(cached) " >&6 8465else 8466 if test -n "$ac_ct_LIPO"; then 8467 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8468else 8469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8470for as_dir in $PATH 8471do 8472 IFS=$as_save_IFS 8473 test -z "$as_dir" && as_dir=. 8474 for ac_exec_ext in '' $ac_executable_extensions; do 8475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8476 ac_cv_prog_ac_ct_LIPO="lipo" 8477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8478 break 2 8479 fi 8480done 8481 done 8482IFS=$as_save_IFS 8483 8484fi 8485fi 8486ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8487if test -n "$ac_ct_LIPO"; then 8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8489$as_echo "$ac_ct_LIPO" >&6; } 8490else 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8492$as_echo "no" >&6; } 8493fi 8494 8495 if test "x$ac_ct_LIPO" = x; then 8496 LIPO=":" 8497 else 8498 case $cross_compiling:$ac_tool_warned in 8499yes:) 8500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8502ac_tool_warned=yes ;; 8503esac 8504 LIPO=$ac_ct_LIPO 8505 fi 8506else 8507 LIPO="$ac_cv_prog_LIPO" 8508fi 8509 8510 if test -n "$ac_tool_prefix"; then 8511 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8512set dummy ${ac_tool_prefix}otool; ac_word=$2 8513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8514$as_echo_n "checking for $ac_word... " >&6; } 8515if ${ac_cv_prog_OTOOL+:} false; then : 8516 $as_echo_n "(cached) " >&6 8517else 8518 if test -n "$OTOOL"; then 8519 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8520else 8521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8522for as_dir in $PATH 8523do 8524 IFS=$as_save_IFS 8525 test -z "$as_dir" && as_dir=. 8526 for ac_exec_ext in '' $ac_executable_extensions; do 8527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8528 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8530 break 2 8531 fi 8532done 8533 done 8534IFS=$as_save_IFS 8535 8536fi 8537fi 8538OTOOL=$ac_cv_prog_OTOOL 8539if test -n "$OTOOL"; then 8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8541$as_echo "$OTOOL" >&6; } 8542else 8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8544$as_echo "no" >&6; } 8545fi 8546 8547 8548fi 8549if test -z "$ac_cv_prog_OTOOL"; then 8550 ac_ct_OTOOL=$OTOOL 8551 # Extract the first word of "otool", so it can be a program name with args. 8552set dummy otool; ac_word=$2 8553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8554$as_echo_n "checking for $ac_word... " >&6; } 8555if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8556 $as_echo_n "(cached) " >&6 8557else 8558 if test -n "$ac_ct_OTOOL"; then 8559 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8560else 8561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8562for as_dir in $PATH 8563do 8564 IFS=$as_save_IFS 8565 test -z "$as_dir" && as_dir=. 8566 for ac_exec_ext in '' $ac_executable_extensions; do 8567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8568 ac_cv_prog_ac_ct_OTOOL="otool" 8569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8570 break 2 8571 fi 8572done 8573 done 8574IFS=$as_save_IFS 8575 8576fi 8577fi 8578ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8579if test -n "$ac_ct_OTOOL"; then 8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8581$as_echo "$ac_ct_OTOOL" >&6; } 8582else 8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8584$as_echo "no" >&6; } 8585fi 8586 8587 if test "x$ac_ct_OTOOL" = x; then 8588 OTOOL=":" 8589 else 8590 case $cross_compiling:$ac_tool_warned in 8591yes:) 8592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8594ac_tool_warned=yes ;; 8595esac 8596 OTOOL=$ac_ct_OTOOL 8597 fi 8598else 8599 OTOOL="$ac_cv_prog_OTOOL" 8600fi 8601 8602 if test -n "$ac_tool_prefix"; then 8603 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8604set dummy ${ac_tool_prefix}otool64; ac_word=$2 8605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8606$as_echo_n "checking for $ac_word... " >&6; } 8607if ${ac_cv_prog_OTOOL64+:} false; then : 8608 $as_echo_n "(cached) " >&6 8609else 8610 if test -n "$OTOOL64"; then 8611 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8612else 8613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8614for as_dir in $PATH 8615do 8616 IFS=$as_save_IFS 8617 test -z "$as_dir" && as_dir=. 8618 for ac_exec_ext in '' $ac_executable_extensions; do 8619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8620 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8622 break 2 8623 fi 8624done 8625 done 8626IFS=$as_save_IFS 8627 8628fi 8629fi 8630OTOOL64=$ac_cv_prog_OTOOL64 8631if test -n "$OTOOL64"; then 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8633$as_echo "$OTOOL64" >&6; } 8634else 8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8636$as_echo "no" >&6; } 8637fi 8638 8639 8640fi 8641if test -z "$ac_cv_prog_OTOOL64"; then 8642 ac_ct_OTOOL64=$OTOOL64 8643 # Extract the first word of "otool64", so it can be a program name with args. 8644set dummy otool64; ac_word=$2 8645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8646$as_echo_n "checking for $ac_word... " >&6; } 8647if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8648 $as_echo_n "(cached) " >&6 8649else 8650 if test -n "$ac_ct_OTOOL64"; then 8651 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8652else 8653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8654for as_dir in $PATH 8655do 8656 IFS=$as_save_IFS 8657 test -z "$as_dir" && as_dir=. 8658 for ac_exec_ext in '' $ac_executable_extensions; do 8659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8660 ac_cv_prog_ac_ct_OTOOL64="otool64" 8661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8662 break 2 8663 fi 8664done 8665 done 8666IFS=$as_save_IFS 8667 8668fi 8669fi 8670ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8671if test -n "$ac_ct_OTOOL64"; then 8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8673$as_echo "$ac_ct_OTOOL64" >&6; } 8674else 8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8676$as_echo "no" >&6; } 8677fi 8678 8679 if test "x$ac_ct_OTOOL64" = x; then 8680 OTOOL64=":" 8681 else 8682 case $cross_compiling:$ac_tool_warned in 8683yes:) 8684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8686ac_tool_warned=yes ;; 8687esac 8688 OTOOL64=$ac_ct_OTOOL64 8689 fi 8690else 8691 OTOOL64="$ac_cv_prog_OTOOL64" 8692fi 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8721$as_echo_n "checking for -single_module linker flag... " >&6; } 8722if ${lt_cv_apple_cc_single_mod+:} false; then : 8723 $as_echo_n "(cached) " >&6 8724else 8725 lt_cv_apple_cc_single_mod=no 8726 if test -z "$LT_MULTI_MODULE"; then 8727 # By default we will add the -single_module flag. You can override 8728 # by either setting the environment variable LT_MULTI_MODULE 8729 # non-empty at configure time, or by adding -multi_module to the 8730 # link flags. 8731 rm -rf libconftest.dylib* 8732 echo "int foo(void){return 1;}" > conftest.c 8733 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8734-dynamiclib -Wl,-single_module conftest.c" >&5 8735 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8736 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8737 _lt_result=$? 8738 # If there is a non-empty error log, and "single_module" 8739 # appears in it, assume the flag caused a linker warning 8740 if test -s conftest.err && $GREP single_module conftest.err; then 8741 cat conftest.err >&5 8742 # Otherwise, if the output was created with a 0 exit code from 8743 # the compiler, it worked. 8744 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8745 lt_cv_apple_cc_single_mod=yes 8746 else 8747 cat conftest.err >&5 8748 fi 8749 rm -rf libconftest.dylib* 8750 rm -f conftest.* 8751 fi 8752fi 8753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8754$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8755 8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8757$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8758if ${lt_cv_ld_exported_symbols_list+:} false; then : 8759 $as_echo_n "(cached) " >&6 8760else 8761 lt_cv_ld_exported_symbols_list=no 8762 save_LDFLAGS=$LDFLAGS 8763 echo "_main" > conftest.sym 8764 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8766/* end confdefs.h. */ 8767 8768int 8769main () 8770{ 8771 8772 ; 8773 return 0; 8774} 8775_ACEOF 8776if ac_fn_c_try_link "$LINENO"; then : 8777 lt_cv_ld_exported_symbols_list=yes 8778else 8779 lt_cv_ld_exported_symbols_list=no 8780fi 8781rm -f core conftest.err conftest.$ac_objext \ 8782 conftest$ac_exeext conftest.$ac_ext 8783 LDFLAGS=$save_LDFLAGS 8784 8785fi 8786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8787$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8788 8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8790$as_echo_n "checking for -force_load linker flag... " >&6; } 8791if ${lt_cv_ld_force_load+:} false; then : 8792 $as_echo_n "(cached) " >&6 8793else 8794 lt_cv_ld_force_load=no 8795 cat > conftest.c << _LT_EOF 8796int forced_loaded() { return 2;} 8797_LT_EOF 8798 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8799 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8800 echo "$AR cru libconftest.a conftest.o" >&5 8801 $AR cru libconftest.a conftest.o 2>&5 8802 echo "$RANLIB libconftest.a" >&5 8803 $RANLIB libconftest.a 2>&5 8804 cat > conftest.c << _LT_EOF 8805int main() { return 0;} 8806_LT_EOF 8807 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8808 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8809 _lt_result=$? 8810 if test -s conftest.err && $GREP force_load conftest.err; then 8811 cat conftest.err >&5 8812 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8813 lt_cv_ld_force_load=yes 8814 else 8815 cat conftest.err >&5 8816 fi 8817 rm -f conftest.err libconftest.a conftest conftest.c 8818 rm -rf conftest.dSYM 8819 8820fi 8821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8822$as_echo "$lt_cv_ld_force_load" >&6; } 8823 case $host_os in 8824 rhapsody* | darwin1.[012]) 8825 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8826 darwin1.*) 8827 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8828 darwin*) # darwin 5.x on 8829 # if running on 10.5 or later, the deployment target defaults 8830 # to the OS version, if on x86, and 10.4, the deployment 8831 # target defaults to 10.4. Don't you love it? 8832 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8833 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8834 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8835 10.[012][,.]*) 8836 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8837 10.*) 8838 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8839 esac 8840 ;; 8841 esac 8842 if test yes = "$lt_cv_apple_cc_single_mod"; then 8843 _lt_dar_single_mod='$single_module' 8844 fi 8845 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8846 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8847 else 8848 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8849 fi 8850 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8851 _lt_dsymutil='~$DSYMUTIL $lib || :' 8852 else 8853 _lt_dsymutil= 8854 fi 8855 ;; 8856 esac 8857 8858# func_munge_path_list VARIABLE PATH 8859# ----------------------------------- 8860# VARIABLE is name of variable containing _space_ separated list of 8861# directories to be munged by the contents of PATH, which is string 8862# having a format: 8863# "DIR[:DIR]:" 8864# string "DIR[ DIR]" will be prepended to VARIABLE 8865# ":DIR[:DIR]" 8866# string "DIR[ DIR]" will be appended to VARIABLE 8867# "DIRP[:DIRP]::[DIRA:]DIRA" 8868# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8869# "DIRA[ DIRA]" will be appended to VARIABLE 8870# "DIR[:DIR]" 8871# VARIABLE will be replaced by "DIR[ DIR]" 8872func_munge_path_list () 8873{ 8874 case x@S|@2 in 8875 x) 8876 ;; 8877 *:) 8878 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 8879 ;; 8880 x:*) 8881 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 8882 ;; 8883 *::*) 8884 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8885 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 8886 ;; 8887 *) 8888 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 8889 ;; 8890 esac 8891} 8892 8893ac_ext=c 8894ac_cpp='$CPP $CPPFLAGS' 8895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8897ac_compiler_gnu=$ac_cv_c_compiler_gnu 8898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8899$as_echo_n "checking how to run the C preprocessor... " >&6; } 8900# On Suns, sometimes $CPP names a directory. 8901if test -n "$CPP" && test -d "$CPP"; then 8902 CPP= 8903fi 8904if test -z "$CPP"; then 8905 if ${ac_cv_prog_CPP+:} false; then : 8906 $as_echo_n "(cached) " >&6 8907else 8908 # Double quotes because CPP needs to be expanded 8909 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8910 do 8911 ac_preproc_ok=false 8912for ac_c_preproc_warn_flag in '' yes 8913do 8914 # Use a header file that comes with gcc, so configuring glibc 8915 # with a fresh cross-compiler works. 8916 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8917 # <limits.h> exists even on freestanding compilers. 8918 # On the NeXT, cc -E runs the code through the compiler's parser, 8919 # not just through cpp. "Syntax error" is here to catch this case. 8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8921/* end confdefs.h. */ 8922@%:@ifdef __STDC__ 8923@%:@ include <limits.h> 8924@%:@else 8925@%:@ include <assert.h> 8926@%:@endif 8927 Syntax error 8928_ACEOF 8929if ac_fn_c_try_cpp "$LINENO"; then : 8930 8931else 8932 # Broken: fails on valid input. 8933continue 8934fi 8935rm -f conftest.err conftest.i conftest.$ac_ext 8936 8937 # OK, works on sane cases. Now check whether nonexistent headers 8938 # can be detected and how. 8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8940/* end confdefs.h. */ 8941@%:@include <ac_nonexistent.h> 8942_ACEOF 8943if ac_fn_c_try_cpp "$LINENO"; then : 8944 # Broken: success on invalid input. 8945continue 8946else 8947 # Passes both tests. 8948ac_preproc_ok=: 8949break 8950fi 8951rm -f conftest.err conftest.i conftest.$ac_ext 8952 8953done 8954# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8955rm -f conftest.i conftest.err conftest.$ac_ext 8956if $ac_preproc_ok; then : 8957 break 8958fi 8959 8960 done 8961 ac_cv_prog_CPP=$CPP 8962 8963fi 8964 CPP=$ac_cv_prog_CPP 8965else 8966 ac_cv_prog_CPP=$CPP 8967fi 8968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8969$as_echo "$CPP" >&6; } 8970ac_preproc_ok=false 8971for ac_c_preproc_warn_flag in '' yes 8972do 8973 # Use a header file that comes with gcc, so configuring glibc 8974 # with a fresh cross-compiler works. 8975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8976 # <limits.h> exists even on freestanding compilers. 8977 # On the NeXT, cc -E runs the code through the compiler's parser, 8978 # not just through cpp. "Syntax error" is here to catch this case. 8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8980/* end confdefs.h. */ 8981@%:@ifdef __STDC__ 8982@%:@ include <limits.h> 8983@%:@else 8984@%:@ include <assert.h> 8985@%:@endif 8986 Syntax error 8987_ACEOF 8988if ac_fn_c_try_cpp "$LINENO"; then : 8989 8990else 8991 # Broken: fails on valid input. 8992continue 8993fi 8994rm -f conftest.err conftest.i conftest.$ac_ext 8995 8996 # OK, works on sane cases. Now check whether nonexistent headers 8997 # can be detected and how. 8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8999/* end confdefs.h. */ 9000@%:@include <ac_nonexistent.h> 9001_ACEOF 9002if ac_fn_c_try_cpp "$LINENO"; then : 9003 # Broken: success on invalid input. 9004continue 9005else 9006 # Passes both tests. 9007ac_preproc_ok=: 9008break 9009fi 9010rm -f conftest.err conftest.i conftest.$ac_ext 9011 9012done 9013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9014rm -f conftest.i conftest.err conftest.$ac_ext 9015if $ac_preproc_ok; then : 9016 9017else 9018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9020as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 9021See \`config.log' for more details" "$LINENO" 5; } 9022fi 9023 9024ac_ext=c 9025ac_cpp='$CPP $CPPFLAGS' 9026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9028ac_compiler_gnu=$ac_cv_c_compiler_gnu 9029 9030 9031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 9032$as_echo_n "checking for ANSI C header files... " >&6; } 9033if ${ac_cv_header_stdc+:} false; then : 9034 $as_echo_n "(cached) " >&6 9035else 9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9037/* end confdefs.h. */ 9038#include <stdlib.h> 9039#include <stdarg.h> 9040#include <string.h> 9041#include <float.h> 9042 9043int 9044main () 9045{ 9046 9047 ; 9048 return 0; 9049} 9050_ACEOF 9051if ac_fn_c_try_compile "$LINENO"; then : 9052 ac_cv_header_stdc=yes 9053else 9054 ac_cv_header_stdc=no 9055fi 9056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9057 9058if test $ac_cv_header_stdc = yes; then 9059 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9061/* end confdefs.h. */ 9062#include <string.h> 9063 9064_ACEOF 9065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9066 $EGREP "memchr" >/dev/null 2>&1; then : 9067 9068else 9069 ac_cv_header_stdc=no 9070fi 9071rm -f conftest* 9072 9073fi 9074 9075if test $ac_cv_header_stdc = yes; then 9076 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9078/* end confdefs.h. */ 9079#include <stdlib.h> 9080 9081_ACEOF 9082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9083 $EGREP "free" >/dev/null 2>&1; then : 9084 9085else 9086 ac_cv_header_stdc=no 9087fi 9088rm -f conftest* 9089 9090fi 9091 9092if test $ac_cv_header_stdc = yes; then 9093 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 9094 if test "$cross_compiling" = yes; then : 9095 : 9096else 9097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9098/* end confdefs.h. */ 9099#include <ctype.h> 9100#include <stdlib.h> 9101#if ((' ' & 0x0FF) == 0x020) 9102# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 9103# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 9104#else 9105# define ISLOWER(c) \ 9106 (('a' <= (c) && (c) <= 'i') \ 9107 || ('j' <= (c) && (c) <= 'r') \ 9108 || ('s' <= (c) && (c) <= 'z')) 9109# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 9110#endif 9111 9112#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 9113int 9114main () 9115{ 9116 int i; 9117 for (i = 0; i < 256; i++) 9118 if (XOR (islower (i), ISLOWER (i)) 9119 || toupper (i) != TOUPPER (i)) 9120 return 2; 9121 return 0; 9122} 9123_ACEOF 9124if ac_fn_c_try_run "$LINENO"; then : 9125 9126else 9127 ac_cv_header_stdc=no 9128fi 9129rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9130 conftest.$ac_objext conftest.beam conftest.$ac_ext 9131fi 9132 9133fi 9134fi 9135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 9136$as_echo "$ac_cv_header_stdc" >&6; } 9137if test $ac_cv_header_stdc = yes; then 9138 9139$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h 9140 9141fi 9142 9143# On IRIX 5.3, sys/types and inttypes.h are conflicting. 9144for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 9145 inttypes.h stdint.h unistd.h 9146do : 9147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9148ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 9149" 9150if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9151 cat >>confdefs.h <<_ACEOF 9152@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9153_ACEOF 9154 9155fi 9156 9157done 9158 9159 9160for ac_header in dlfcn.h 9161do : 9162 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9163" 9164if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9165 cat >>confdefs.h <<_ACEOF 9166@%:@define HAVE_DLFCN_H 1 9167_ACEOF 9168 9169fi 9170 9171done 9172 9173 9174 9175 9176func_stripname_cnf () 9177{ 9178 case @S|@2 in 9179 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; 9180 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; 9181 esac 9182} # func_stripname_cnf 9183 9184 9185 9186 9187 9188# Set options 9189 9190 9191 9192 enable_dlopen=no 9193 9194 9195 9196 @%:@ Check whether --enable-shared was given. 9197if test "${enable_shared+set}" = set; then : 9198 enableval=$enable_shared; p=${PACKAGE-default} 9199 case $enableval in 9200 yes) enable_shared=yes ;; 9201 no) enable_shared=no ;; 9202 *) 9203 enable_shared=no 9204 # Look at the argument we got. We use all the common list separators. 9205 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9206 for pkg in $enableval; do 9207 IFS=$lt_save_ifs 9208 if test "X$pkg" = "X$p"; then 9209 enable_shared=yes 9210 fi 9211 done 9212 IFS=$lt_save_ifs 9213 ;; 9214 esac 9215else 9216 enable_shared=yes 9217fi 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 @%:@ Check whether --enable-static was given. 9228if test "${enable_static+set}" = set; then : 9229 enableval=$enable_static; p=${PACKAGE-default} 9230 case $enableval in 9231 yes) enable_static=yes ;; 9232 no) enable_static=no ;; 9233 *) 9234 enable_static=no 9235 # Look at the argument we got. We use all the common list separators. 9236 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9237 for pkg in $enableval; do 9238 IFS=$lt_save_ifs 9239 if test "X$pkg" = "X$p"; then 9240 enable_static=yes 9241 fi 9242 done 9243 IFS=$lt_save_ifs 9244 ;; 9245 esac 9246else 9247 enable_static=yes 9248fi 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259@%:@ Check whether --with-pic was given. 9260if test "${with_pic+set}" = set; then : 9261 withval=$with_pic; lt_p=${PACKAGE-default} 9262 case $withval in 9263 yes|no) pic_mode=$withval ;; 9264 *) 9265 pic_mode=default 9266 # Look at the argument we got. We use all the common list separators. 9267 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9268 for lt_pkg in $withval; do 9269 IFS=$lt_save_ifs 9270 if test "X$lt_pkg" = "X$lt_p"; then 9271 pic_mode=yes 9272 fi 9273 done 9274 IFS=$lt_save_ifs 9275 ;; 9276 esac 9277else 9278 pic_mode=default 9279fi 9280 9281 9282 9283 9284 9285 9286 9287 9288 @%:@ Check whether --enable-fast-install was given. 9289if test "${enable_fast_install+set}" = set; then : 9290 enableval=$enable_fast_install; p=${PACKAGE-default} 9291 case $enableval in 9292 yes) enable_fast_install=yes ;; 9293 no) enable_fast_install=no ;; 9294 *) 9295 enable_fast_install=no 9296 # Look at the argument we got. We use all the common list separators. 9297 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9298 for pkg in $enableval; do 9299 IFS=$lt_save_ifs 9300 if test "X$pkg" = "X$p"; then 9301 enable_fast_install=yes 9302 fi 9303 done 9304 IFS=$lt_save_ifs 9305 ;; 9306 esac 9307else 9308 enable_fast_install=yes 9309fi 9310 9311 9312 9313 9314 9315 9316 9317 9318 shared_archive_member_spec= 9319case $host,$enable_shared in 9320power*-*-aix[5-9]*,yes) 9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9322$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9323 9324@%:@ Check whether --with-aix-soname was given. 9325if test "${with_aix_soname+set}" = set; then : 9326 withval=$with_aix_soname; case $withval in 9327 aix|svr4|both) 9328 ;; 9329 *) 9330 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9331 ;; 9332 esac 9333 lt_cv_with_aix_soname=$with_aix_soname 9334else 9335 if ${lt_cv_with_aix_soname+:} false; then : 9336 $as_echo_n "(cached) " >&6 9337else 9338 lt_cv_with_aix_soname=aix 9339fi 9340 9341 with_aix_soname=$lt_cv_with_aix_soname 9342fi 9343 9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9345$as_echo "$with_aix_soname" >&6; } 9346 if test aix != "$with_aix_soname"; then 9347 # For the AIX way of multilib, we name the shared archive member 9348 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9349 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9350 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9351 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9352 if test 64 = "${OBJECT_MODE-32}"; then 9353 shared_archive_member_spec=shr_64 9354 else 9355 shared_archive_member_spec=shr 9356 fi 9357 fi 9358 ;; 9359*) 9360 with_aix_soname=aix 9361 ;; 9362esac 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373# This can be used to rebuild libtool when needed 9374LIBTOOL_DEPS=$ltmain 9375 9376# Always use our own libtool. 9377LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408test -z "$LN_S" && LN_S="ln -s" 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423if test -n "${ZSH_VERSION+set}"; then 9424 setopt NO_GLOB_SUBST 9425fi 9426 9427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9428$as_echo_n "checking for objdir... " >&6; } 9429if ${lt_cv_objdir+:} false; then : 9430 $as_echo_n "(cached) " >&6 9431else 9432 rm -f .libs 2>/dev/null 9433mkdir .libs 2>/dev/null 9434if test -d .libs; then 9435 lt_cv_objdir=.libs 9436else 9437 # MS-DOS does not allow filenames that begin with a dot. 9438 lt_cv_objdir=_libs 9439fi 9440rmdir .libs 2>/dev/null 9441fi 9442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9443$as_echo "$lt_cv_objdir" >&6; } 9444objdir=$lt_cv_objdir 9445 9446 9447 9448 9449 9450cat >>confdefs.h <<_ACEOF 9451@%:@define LT_OBJDIR "$lt_cv_objdir/" 9452_ACEOF 9453 9454 9455 9456 9457case $host_os in 9458aix3*) 9459 # AIX sometimes has problems with the GCC collect2 program. For some 9460 # reason, if we set the COLLECT_NAMES environment variable, the problems 9461 # vanish in a puff of smoke. 9462 if test set != "${COLLECT_NAMES+set}"; then 9463 COLLECT_NAMES= 9464 export COLLECT_NAMES 9465 fi 9466 ;; 9467esac 9468 9469# Global variables: 9470ofile=libtool 9471can_build_shared=yes 9472 9473# All known linkers require a '.a' archive for static linking (except MSVC, 9474# which needs '.lib'). 9475libext=a 9476 9477with_gnu_ld=$lt_cv_prog_gnu_ld 9478 9479old_CC=$CC 9480old_CFLAGS=$CFLAGS 9481 9482# Set sane defaults for various variables 9483test -z "$CC" && CC=cc 9484test -z "$LTCC" && LTCC=$CC 9485test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9486test -z "$LD" && LD=ld 9487test -z "$ac_objext" && ac_objext=o 9488 9489func_cc_basename $compiler 9490cc_basename=$func_cc_basename_result 9491 9492 9493# Only perform the check for file, if the check method requires it 9494test -z "$MAGIC_CMD" && MAGIC_CMD=file 9495case $deplibs_check_method in 9496file_magic*) 9497 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9499$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9500if ${lt_cv_path_MAGIC_CMD+:} false; then : 9501 $as_echo_n "(cached) " >&6 9502else 9503 case $MAGIC_CMD in 9504[\\/*] | ?:[\\/]*) 9505 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9506 ;; 9507*) 9508 lt_save_MAGIC_CMD=$MAGIC_CMD 9509 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9510 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9511 for ac_dir in $ac_dummy; do 9512 IFS=$lt_save_ifs 9513 test -z "$ac_dir" && ac_dir=. 9514 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9515 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9516 if test -n "$file_magic_test_file"; then 9517 case $deplibs_check_method in 9518 "file_magic "*) 9519 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9520 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9521 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9522 $EGREP "$file_magic_regex" > /dev/null; then 9523 : 9524 else 9525 cat <<_LT_EOF 1>&2 9526 9527*** Warning: the command libtool uses to detect shared libraries, 9528*** $file_magic_cmd, produces output that libtool cannot recognize. 9529*** The result is that libtool may fail to recognize shared libraries 9530*** as such. This will affect the creation of libtool libraries that 9531*** depend on shared libraries, but programs linked with such libtool 9532*** libraries will work regardless of this problem. Nevertheless, you 9533*** may want to report the problem to your system manager and/or to 9534*** bug-libtool@gnu.org 9535 9536_LT_EOF 9537 fi ;; 9538 esac 9539 fi 9540 break 9541 fi 9542 done 9543 IFS=$lt_save_ifs 9544 MAGIC_CMD=$lt_save_MAGIC_CMD 9545 ;; 9546esac 9547fi 9548 9549MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9550if test -n "$MAGIC_CMD"; then 9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9552$as_echo "$MAGIC_CMD" >&6; } 9553else 9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9555$as_echo "no" >&6; } 9556fi 9557 9558 9559 9560 9561 9562if test -z "$lt_cv_path_MAGIC_CMD"; then 9563 if test -n "$ac_tool_prefix"; then 9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9565$as_echo_n "checking for file... " >&6; } 9566if ${lt_cv_path_MAGIC_CMD+:} false; then : 9567 $as_echo_n "(cached) " >&6 9568else 9569 case $MAGIC_CMD in 9570[\\/*] | ?:[\\/]*) 9571 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9572 ;; 9573*) 9574 lt_save_MAGIC_CMD=$MAGIC_CMD 9575 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9576 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9577 for ac_dir in $ac_dummy; do 9578 IFS=$lt_save_ifs 9579 test -z "$ac_dir" && ac_dir=. 9580 if test -f "$ac_dir/file"; then 9581 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9582 if test -n "$file_magic_test_file"; then 9583 case $deplibs_check_method in 9584 "file_magic "*) 9585 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9586 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9587 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9588 $EGREP "$file_magic_regex" > /dev/null; then 9589 : 9590 else 9591 cat <<_LT_EOF 1>&2 9592 9593*** Warning: the command libtool uses to detect shared libraries, 9594*** $file_magic_cmd, produces output that libtool cannot recognize. 9595*** The result is that libtool may fail to recognize shared libraries 9596*** as such. This will affect the creation of libtool libraries that 9597*** depend on shared libraries, but programs linked with such libtool 9598*** libraries will work regardless of this problem. Nevertheless, you 9599*** may want to report the problem to your system manager and/or to 9600*** bug-libtool@gnu.org 9601 9602_LT_EOF 9603 fi ;; 9604 esac 9605 fi 9606 break 9607 fi 9608 done 9609 IFS=$lt_save_ifs 9610 MAGIC_CMD=$lt_save_MAGIC_CMD 9611 ;; 9612esac 9613fi 9614 9615MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9616if test -n "$MAGIC_CMD"; then 9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9618$as_echo "$MAGIC_CMD" >&6; } 9619else 9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9621$as_echo "no" >&6; } 9622fi 9623 9624 9625 else 9626 MAGIC_CMD=: 9627 fi 9628fi 9629 9630 fi 9631 ;; 9632esac 9633 9634# Use C for the default configuration in the libtool script 9635 9636lt_save_CC=$CC 9637ac_ext=c 9638ac_cpp='$CPP $CPPFLAGS' 9639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9641ac_compiler_gnu=$ac_cv_c_compiler_gnu 9642 9643 9644# Source file extension for C test sources. 9645ac_ext=c 9646 9647# Object file extension for compiled C test sources. 9648objext=o 9649objext=$objext 9650 9651# Code to be used in simple compile tests 9652lt_simple_compile_test_code="int some_variable = 0;" 9653 9654# Code to be used in simple link tests 9655lt_simple_link_test_code='int main(){return(0);}' 9656 9657 9658 9659 9660 9661 9662 9663# If no C compiler was specified, use CC. 9664LTCC=${LTCC-"$CC"} 9665 9666# If no C compiler flags were specified, use CFLAGS. 9667LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9668 9669# Allow CC to be a program name with arguments. 9670compiler=$CC 9671 9672# Save the default compiler, since it gets overwritten when the other 9673# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9674compiler_DEFAULT=$CC 9675 9676# save warnings/boilerplate of simple test code 9677ac_outfile=conftest.$ac_objext 9678echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9679eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9680_lt_compiler_boilerplate=`cat conftest.err` 9681$RM conftest* 9682 9683ac_outfile=conftest.$ac_objext 9684echo "$lt_simple_link_test_code" >conftest.$ac_ext 9685eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9686_lt_linker_boilerplate=`cat conftest.err` 9687$RM -r conftest* 9688 9689 9690## CAVEAT EMPTOR: 9691## There is no encapsulation within the following macros, do not change 9692## the running order or otherwise move them around unless you know exactly 9693## what you are doing... 9694if test -n "$compiler"; then 9695 9696lt_prog_compiler_no_builtin_flag= 9697 9698if test yes = "$GCC"; then 9699 case $cc_basename in 9700 nvcc*) 9701 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9702 *) 9703 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9704 esac 9705 9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9707$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9708if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9709 $as_echo_n "(cached) " >&6 9710else 9711 lt_cv_prog_compiler_rtti_exceptions=no 9712 ac_outfile=conftest.$ac_objext 9713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9714 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9715 # Insert the option either (1) after the last *FLAGS variable, or 9716 # (2) before a word containing "conftest.", or (3) at the end. 9717 # Note that $ac_compile itself does not contain backslashes and begins 9718 # with a dollar sign (not a hyphen), so the echo should work correctly. 9719 # The option is referenced via a variable to avoid confusing sed. 9720 lt_compile=`echo "$ac_compile" | $SED \ 9721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9723 -e 's:$: $lt_compiler_flag:'` 9724 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9725 (eval "$lt_compile" 2>conftest.err) 9726 ac_status=$? 9727 cat conftest.err >&5 9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9729 if (exit $ac_status) && test -s "$ac_outfile"; then 9730 # The compiler can only warn and ignore the option if not recognized 9731 # So say no if there are warnings other than the usual output. 9732 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9733 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9734 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9735 lt_cv_prog_compiler_rtti_exceptions=yes 9736 fi 9737 fi 9738 $RM conftest* 9739 9740fi 9741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9742$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9743 9744if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9745 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9746else 9747 : 9748fi 9749 9750fi 9751 9752 9753 9754 9755 9756 9757 lt_prog_compiler_wl= 9758lt_prog_compiler_pic= 9759lt_prog_compiler_static= 9760 9761 9762 if test yes = "$GCC"; then 9763 lt_prog_compiler_wl='-Wl,' 9764 lt_prog_compiler_static='-static' 9765 9766 case $host_os in 9767 aix*) 9768 # All AIX code is PIC. 9769 if test ia64 = "$host_cpu"; then 9770 # AIX 5 now supports IA64 processor 9771 lt_prog_compiler_static='-Bstatic' 9772 fi 9773 lt_prog_compiler_pic='-fPIC' 9774 ;; 9775 9776 amigaos*) 9777 case $host_cpu in 9778 powerpc) 9779 # see comment about AmigaOS4 .so support 9780 lt_prog_compiler_pic='-fPIC' 9781 ;; 9782 m68k) 9783 # FIXME: we need at least 68020 code to build shared libraries, but 9784 # adding the '-m68020' flag to GCC prevents building anything better, 9785 # like '-m68040'. 9786 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9787 ;; 9788 esac 9789 ;; 9790 9791 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9792 # PIC is the default for these OSes. 9793 ;; 9794 9795 mingw* | cygwin* | pw32* | os2* | cegcc*) 9796 # This hack is so that the source file can tell whether it is being 9797 # built for inclusion in a dll (and should export symbols for example). 9798 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9799 # (--disable-auto-import) libraries 9800 lt_prog_compiler_pic='-DDLL_EXPORT' 9801 case $host_os in 9802 os2*) 9803 lt_prog_compiler_static='$wl-static' 9804 ;; 9805 esac 9806 ;; 9807 9808 darwin* | rhapsody*) 9809 # PIC is the default on this platform 9810 # Common symbols not allowed in MH_DYLIB files 9811 lt_prog_compiler_pic='-fno-common' 9812 ;; 9813 9814 haiku*) 9815 # PIC is the default for Haiku. 9816 # The "-static" flag exists, but is broken. 9817 lt_prog_compiler_static= 9818 ;; 9819 9820 hpux*) 9821 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9822 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9823 # sets the default TLS model and affects inlining. 9824 case $host_cpu in 9825 hppa*64*) 9826 # +Z the default 9827 ;; 9828 *) 9829 lt_prog_compiler_pic='-fPIC' 9830 ;; 9831 esac 9832 ;; 9833 9834 interix[3-9]*) 9835 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9836 # Instead, we relocate shared libraries at runtime. 9837 ;; 9838 9839 msdosdjgpp*) 9840 # Just because we use GCC doesn't mean we suddenly get shared libraries 9841 # on systems that don't support them. 9842 lt_prog_compiler_can_build_shared=no 9843 enable_shared=no 9844 ;; 9845 9846 *nto* | *qnx*) 9847 # QNX uses GNU C++, but need to define -shared option too, otherwise 9848 # it will coredump. 9849 lt_prog_compiler_pic='-fPIC -shared' 9850 ;; 9851 9852 sysv4*MP*) 9853 if test -d /usr/nec; then 9854 lt_prog_compiler_pic=-Kconform_pic 9855 fi 9856 ;; 9857 9858 *) 9859 lt_prog_compiler_pic='-fPIC' 9860 ;; 9861 esac 9862 9863 case $cc_basename in 9864 nvcc*) # Cuda Compiler Driver 2.2 9865 lt_prog_compiler_wl='-Xlinker ' 9866 if test -n "$lt_prog_compiler_pic"; then 9867 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9868 fi 9869 ;; 9870 esac 9871 else 9872 # PORTME Check for flag to pass linker flags through the system compiler. 9873 case $host_os in 9874 aix*) 9875 lt_prog_compiler_wl='-Wl,' 9876 if test ia64 = "$host_cpu"; then 9877 # AIX 5 now supports IA64 processor 9878 lt_prog_compiler_static='-Bstatic' 9879 else 9880 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9881 fi 9882 ;; 9883 9884 darwin* | rhapsody*) 9885 # PIC is the default on this platform 9886 # Common symbols not allowed in MH_DYLIB files 9887 lt_prog_compiler_pic='-fno-common' 9888 case $cc_basename in 9889 nagfor*) 9890 # NAG Fortran compiler 9891 lt_prog_compiler_wl='-Wl,-Wl,,' 9892 lt_prog_compiler_pic='-PIC' 9893 lt_prog_compiler_static='-Bstatic' 9894 ;; 9895 esac 9896 ;; 9897 9898 mingw* | cygwin* | pw32* | os2* | cegcc*) 9899 # This hack is so that the source file can tell whether it is being 9900 # built for inclusion in a dll (and should export symbols for example). 9901 lt_prog_compiler_pic='-DDLL_EXPORT' 9902 case $host_os in 9903 os2*) 9904 lt_prog_compiler_static='$wl-static' 9905 ;; 9906 esac 9907 ;; 9908 9909 hpux9* | hpux10* | hpux11*) 9910 lt_prog_compiler_wl='-Wl,' 9911 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9912 # not for PA HP-UX. 9913 case $host_cpu in 9914 hppa*64*|ia64*) 9915 # +Z the default 9916 ;; 9917 *) 9918 lt_prog_compiler_pic='+Z' 9919 ;; 9920 esac 9921 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9922 lt_prog_compiler_static='$wl-a ${wl}archive' 9923 ;; 9924 9925 irix5* | irix6* | nonstopux*) 9926 lt_prog_compiler_wl='-Wl,' 9927 # PIC (with -KPIC) is the default. 9928 lt_prog_compiler_static='-non_shared' 9929 ;; 9930 9931 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9932 case $cc_basename in 9933 # old Intel for x86_64, which still supported -KPIC. 9934 ecc*) 9935 lt_prog_compiler_wl='-Wl,' 9936 lt_prog_compiler_pic='-KPIC' 9937 lt_prog_compiler_static='-static' 9938 ;; 9939 # icc used to be incompatible with GCC. 9940 # ICC 10 doesn't accept -KPIC any more. 9941 icc* | ifort*) 9942 lt_prog_compiler_wl='-Wl,' 9943 lt_prog_compiler_pic='-fPIC' 9944 lt_prog_compiler_static='-static' 9945 ;; 9946 # Lahey Fortran 8.1. 9947 lf95*) 9948 lt_prog_compiler_wl='-Wl,' 9949 lt_prog_compiler_pic='--shared' 9950 lt_prog_compiler_static='--static' 9951 ;; 9952 nagfor*) 9953 # NAG Fortran compiler 9954 lt_prog_compiler_wl='-Wl,-Wl,,' 9955 lt_prog_compiler_pic='-PIC' 9956 lt_prog_compiler_static='-Bstatic' 9957 ;; 9958 tcc*) 9959 # Fabrice Bellard et al's Tiny C Compiler 9960 lt_prog_compiler_wl='-Wl,' 9961 lt_prog_compiler_pic='-fPIC' 9962 lt_prog_compiler_static='-static' 9963 ;; 9964 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9965 # Portland Group compilers (*not* the Pentium gcc compiler, 9966 # which looks to be a dead project) 9967 lt_prog_compiler_wl='-Wl,' 9968 lt_prog_compiler_pic='-fpic' 9969 lt_prog_compiler_static='-Bstatic' 9970 ;; 9971 ccc*) 9972 lt_prog_compiler_wl='-Wl,' 9973 # All Alpha code is PIC. 9974 lt_prog_compiler_static='-non_shared' 9975 ;; 9976 xl* | bgxl* | bgf* | mpixl*) 9977 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9978 lt_prog_compiler_wl='-Wl,' 9979 lt_prog_compiler_pic='-qpic' 9980 lt_prog_compiler_static='-qstaticlink' 9981 ;; 9982 *) 9983 case `$CC -V 2>&1 | sed 5q` in 9984 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9985 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9986 lt_prog_compiler_pic='-KPIC' 9987 lt_prog_compiler_static='-Bstatic' 9988 lt_prog_compiler_wl='' 9989 ;; 9990 *Sun\ F* | *Sun*Fortran*) 9991 lt_prog_compiler_pic='-KPIC' 9992 lt_prog_compiler_static='-Bstatic' 9993 lt_prog_compiler_wl='-Qoption ld ' 9994 ;; 9995 *Sun\ C*) 9996 # Sun C 5.9 9997 lt_prog_compiler_pic='-KPIC' 9998 lt_prog_compiler_static='-Bstatic' 9999 lt_prog_compiler_wl='-Wl,' 10000 ;; 10001 *Intel*\ [CF]*Compiler*) 10002 lt_prog_compiler_wl='-Wl,' 10003 lt_prog_compiler_pic='-fPIC' 10004 lt_prog_compiler_static='-static' 10005 ;; 10006 *Portland\ Group*) 10007 lt_prog_compiler_wl='-Wl,' 10008 lt_prog_compiler_pic='-fpic' 10009 lt_prog_compiler_static='-Bstatic' 10010 ;; 10011 esac 10012 ;; 10013 esac 10014 ;; 10015 10016 newsos6) 10017 lt_prog_compiler_pic='-KPIC' 10018 lt_prog_compiler_static='-Bstatic' 10019 ;; 10020 10021 *nto* | *qnx*) 10022 # QNX uses GNU C++, but need to define -shared option too, otherwise 10023 # it will coredump. 10024 lt_prog_compiler_pic='-fPIC -shared' 10025 ;; 10026 10027 osf3* | osf4* | osf5*) 10028 lt_prog_compiler_wl='-Wl,' 10029 # All OSF/1 code is PIC. 10030 lt_prog_compiler_static='-non_shared' 10031 ;; 10032 10033 rdos*) 10034 lt_prog_compiler_static='-non_shared' 10035 ;; 10036 10037 solaris*) 10038 lt_prog_compiler_pic='-KPIC' 10039 lt_prog_compiler_static='-Bstatic' 10040 case $cc_basename in 10041 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10042 lt_prog_compiler_wl='-Qoption ld ';; 10043 *) 10044 lt_prog_compiler_wl='-Wl,';; 10045 esac 10046 ;; 10047 10048 sunos4*) 10049 lt_prog_compiler_wl='-Qoption ld ' 10050 lt_prog_compiler_pic='-PIC' 10051 lt_prog_compiler_static='-Bstatic' 10052 ;; 10053 10054 sysv4 | sysv4.2uw2* | sysv4.3*) 10055 lt_prog_compiler_wl='-Wl,' 10056 lt_prog_compiler_pic='-KPIC' 10057 lt_prog_compiler_static='-Bstatic' 10058 ;; 10059 10060 sysv4*MP*) 10061 if test -d /usr/nec; then 10062 lt_prog_compiler_pic='-Kconform_pic' 10063 lt_prog_compiler_static='-Bstatic' 10064 fi 10065 ;; 10066 10067 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10068 lt_prog_compiler_wl='-Wl,' 10069 lt_prog_compiler_pic='-KPIC' 10070 lt_prog_compiler_static='-Bstatic' 10071 ;; 10072 10073 unicos*) 10074 lt_prog_compiler_wl='-Wl,' 10075 lt_prog_compiler_can_build_shared=no 10076 ;; 10077 10078 uts4*) 10079 lt_prog_compiler_pic='-pic' 10080 lt_prog_compiler_static='-Bstatic' 10081 ;; 10082 10083 *) 10084 lt_prog_compiler_can_build_shared=no 10085 ;; 10086 esac 10087 fi 10088 10089case $host_os in 10090 # For platforms that do not support PIC, -DPIC is meaningless: 10091 *djgpp*) 10092 lt_prog_compiler_pic= 10093 ;; 10094 *) 10095 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC" 10096 ;; 10097esac 10098 10099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10100$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10101if ${lt_cv_prog_compiler_pic+:} false; then : 10102 $as_echo_n "(cached) " >&6 10103else 10104 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10105fi 10106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10107$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10108lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10109 10110# 10111# Check to make sure the PIC flag actually works. 10112# 10113if test -n "$lt_prog_compiler_pic"; then 10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10115$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10116if ${lt_cv_prog_compiler_pic_works+:} false; then : 10117 $as_echo_n "(cached) " >&6 10118else 10119 lt_cv_prog_compiler_pic_works=no 10120 ac_outfile=conftest.$ac_objext 10121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10122 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment 10123 # Insert the option either (1) after the last *FLAGS variable, or 10124 # (2) before a word containing "conftest.", or (3) at the end. 10125 # Note that $ac_compile itself does not contain backslashes and begins 10126 # with a dollar sign (not a hyphen), so the echo should work correctly. 10127 # The option is referenced via a variable to avoid confusing sed. 10128 lt_compile=`echo "$ac_compile" | $SED \ 10129 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10130 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10131 -e 's:$: $lt_compiler_flag:'` 10132 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10133 (eval "$lt_compile" 2>conftest.err) 10134 ac_status=$? 10135 cat conftest.err >&5 10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10137 if (exit $ac_status) && test -s "$ac_outfile"; then 10138 # The compiler can only warn and ignore the option if not recognized 10139 # So say no if there are warnings other than the usual output. 10140 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10141 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10142 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10143 lt_cv_prog_compiler_pic_works=yes 10144 fi 10145 fi 10146 $RM conftest* 10147 10148fi 10149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10150$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10151 10152if test yes = "$lt_cv_prog_compiler_pic_works"; then 10153 case $lt_prog_compiler_pic in 10154 "" | " "*) ;; 10155 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10156 esac 10157else 10158 lt_prog_compiler_pic= 10159 lt_prog_compiler_can_build_shared=no 10160fi 10161 10162fi 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174# 10175# Check to make sure the static flag actually works. 10176# 10177wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10179$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10180if ${lt_cv_prog_compiler_static_works+:} false; then : 10181 $as_echo_n "(cached) " >&6 10182else 10183 lt_cv_prog_compiler_static_works=no 10184 save_LDFLAGS=$LDFLAGS 10185 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10186 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10187 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10188 # The linker can only warn and ignore the option if not recognized 10189 # So say no if there are warnings 10190 if test -s conftest.err; then 10191 # Append any errors to the config.log. 10192 cat conftest.err 1>&5 10193 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10195 if diff conftest.exp conftest.er2 >/dev/null; then 10196 lt_cv_prog_compiler_static_works=yes 10197 fi 10198 else 10199 lt_cv_prog_compiler_static_works=yes 10200 fi 10201 fi 10202 $RM -r conftest* 10203 LDFLAGS=$save_LDFLAGS 10204 10205fi 10206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10207$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10208 10209if test yes = "$lt_cv_prog_compiler_static_works"; then 10210 : 10211else 10212 lt_prog_compiler_static= 10213fi 10214 10215 10216 10217 10218 10219 10220 10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10222$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10223if ${lt_cv_prog_compiler_c_o+:} false; then : 10224 $as_echo_n "(cached) " >&6 10225else 10226 lt_cv_prog_compiler_c_o=no 10227 $RM -r conftest 2>/dev/null 10228 mkdir conftest 10229 cd conftest 10230 mkdir out 10231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10232 10233 lt_compiler_flag="-o out/conftest2.$ac_objext" 10234 # Insert the option either (1) after the last *FLAGS variable, or 10235 # (2) before a word containing "conftest.", or (3) at the end. 10236 # Note that $ac_compile itself does not contain backslashes and begins 10237 # with a dollar sign (not a hyphen), so the echo should work correctly. 10238 lt_compile=`echo "$ac_compile" | $SED \ 10239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10241 -e 's:$: $lt_compiler_flag:'` 10242 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10243 (eval "$lt_compile" 2>out/conftest.err) 10244 ac_status=$? 10245 cat out/conftest.err >&5 10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10247 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10248 then 10249 # The compiler can only warn and ignore the option if not recognized 10250 # So say no if there are warnings 10251 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10252 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10253 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10254 lt_cv_prog_compiler_c_o=yes 10255 fi 10256 fi 10257 chmod u+w . 2>&5 10258 $RM conftest* 10259 # SGI C++ compiler will create directory out/ii_files/ for 10260 # template instantiation 10261 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10262 $RM out/* && rmdir out 10263 cd .. 10264 $RM -r conftest 10265 $RM conftest* 10266 10267fi 10268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10269$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10270 10271 10272 10273 10274 10275 10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10277$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10278if ${lt_cv_prog_compiler_c_o+:} false; then : 10279 $as_echo_n "(cached) " >&6 10280else 10281 lt_cv_prog_compiler_c_o=no 10282 $RM -r conftest 2>/dev/null 10283 mkdir conftest 10284 cd conftest 10285 mkdir out 10286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10287 10288 lt_compiler_flag="-o out/conftest2.$ac_objext" 10289 # Insert the option either (1) after the last *FLAGS variable, or 10290 # (2) before a word containing "conftest.", or (3) at the end. 10291 # Note that $ac_compile itself does not contain backslashes and begins 10292 # with a dollar sign (not a hyphen), so the echo should work correctly. 10293 lt_compile=`echo "$ac_compile" | $SED \ 10294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10296 -e 's:$: $lt_compiler_flag:'` 10297 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10298 (eval "$lt_compile" 2>out/conftest.err) 10299 ac_status=$? 10300 cat out/conftest.err >&5 10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10302 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10303 then 10304 # The compiler can only warn and ignore the option if not recognized 10305 # So say no if there are warnings 10306 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10307 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10308 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10309 lt_cv_prog_compiler_c_o=yes 10310 fi 10311 fi 10312 chmod u+w . 2>&5 10313 $RM conftest* 10314 # SGI C++ compiler will create directory out/ii_files/ for 10315 # template instantiation 10316 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10317 $RM out/* && rmdir out 10318 cd .. 10319 $RM -r conftest 10320 $RM conftest* 10321 10322fi 10323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10324$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10325 10326 10327 10328 10329hard_links=nottested 10330if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10331 # do not overwrite the value of need_locks provided by the user 10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10333$as_echo_n "checking if we can lock with hard links... " >&6; } 10334 hard_links=yes 10335 $RM conftest* 10336 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10337 touch conftest.a 10338 ln conftest.a conftest.b 2>&5 || hard_links=no 10339 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10341$as_echo "$hard_links" >&6; } 10342 if test no = "$hard_links"; then 10343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10344$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10345 need_locks=warn 10346 fi 10347else 10348 need_locks=no 10349fi 10350 10351 10352 10353 10354 10355 10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10357$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10358 10359 runpath_var= 10360 allow_undefined_flag= 10361 always_export_symbols=no 10362 archive_cmds= 10363 archive_expsym_cmds= 10364 compiler_needs_object=no 10365 enable_shared_with_static_runtimes=no 10366 export_dynamic_flag_spec= 10367 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10368 hardcode_automatic=no 10369 hardcode_direct=no 10370 hardcode_direct_absolute=no 10371 hardcode_libdir_flag_spec= 10372 hardcode_libdir_separator= 10373 hardcode_minus_L=no 10374 hardcode_shlibpath_var=unsupported 10375 inherit_rpath=no 10376 link_all_deplibs=unknown 10377 module_cmds= 10378 module_expsym_cmds= 10379 old_archive_from_new_cmds= 10380 old_archive_from_expsyms_cmds= 10381 thread_safe_flag_spec= 10382 whole_archive_flag_spec= 10383 # include_expsyms should be a list of space-separated symbols to be *always* 10384 # included in the symbol list 10385 include_expsyms= 10386 # exclude_expsyms can be an extended regexp of symbols to exclude 10387 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10388 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10389 # as well as any symbol that contains 'd'. 10390 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10391 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10392 # platforms (ab)use it in PIC code, but their linkers get confused if 10393 # the symbol is explicitly referenced. Since portable code cannot 10394 # rely on this symbol name, it's probably fine to never include it in 10395 # preloaded symbol tables. 10396 # Exclude shared library initialization/finalization symbols. 10397 extract_expsyms_cmds= 10398 10399 case $host_os in 10400 cygwin* | mingw* | pw32* | cegcc*) 10401 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10402 # When not using gcc, we currently assume that we are using 10403 # Microsoft Visual C++. 10404 if test yes != "$GCC"; then 10405 with_gnu_ld=no 10406 fi 10407 ;; 10408 interix*) 10409 # we just hope/assume this is gcc and not c89 (= MSVC++) 10410 with_gnu_ld=yes 10411 ;; 10412 openbsd* | bitrig*) 10413 with_gnu_ld=no 10414 ;; 10415 linux* | k*bsd*-gnu | gnu*) 10416 link_all_deplibs=no 10417 ;; 10418 esac 10419 10420 ld_shlibs=yes 10421 10422 # On some targets, GNU ld is compatible enough with the native linker 10423 # that we're better off using the native interface for both. 10424 lt_use_gnu_ld_interface=no 10425 if test yes = "$with_gnu_ld"; then 10426 case $host_os in 10427 aix*) 10428 # The AIX port of GNU ld has always aspired to compatibility 10429 # with the native linker. However, as the warning in the GNU ld 10430 # block says, versions before 2.19.5* couldn't really create working 10431 # shared libraries, regardless of the interface used. 10432 case `$LD -v 2>&1` in 10433 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10434 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10435 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10436 *) 10437 lt_use_gnu_ld_interface=yes 10438 ;; 10439 esac 10440 ;; 10441 *) 10442 lt_use_gnu_ld_interface=yes 10443 ;; 10444 esac 10445 fi 10446 10447 if test yes = "$lt_use_gnu_ld_interface"; then 10448 # If archive_cmds runs LD, not CC, wlarc should be empty 10449 wlarc='$wl' 10450 10451 # Set some defaults for GNU ld with shared library support. These 10452 # are reset later if shared libraries are not supported. Putting them 10453 # here allows them to be overridden if necessary. 10454 runpath_var=LD_RUN_PATH 10455 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10456 export_dynamic_flag_spec='$wl--export-dynamic' 10457 # ancient GNU ld didn't support --whole-archive et. al. 10458 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10459 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10460 else 10461 whole_archive_flag_spec= 10462 fi 10463 supports_anon_versioning=no 10464 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10465 *GNU\ gold*) supports_anon_versioning=yes ;; 10466 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10467 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10468 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10469 *\ 2.11.*) ;; # other 2.11 versions 10470 *) supports_anon_versioning=yes ;; 10471 esac 10472 10473 # See if GNU ld supports shared libraries. 10474 case $host_os in 10475 aix[3-9]*) 10476 # On AIX/PPC, the GNU linker is very broken 10477 if test ia64 != "$host_cpu"; then 10478 ld_shlibs=no 10479 cat <<_LT_EOF 1>&2 10480 10481*** Warning: the GNU linker, at least up to release 2.19, is reported 10482*** to be unable to reliably create shared libraries on AIX. 10483*** Therefore, libtool is disabling shared libraries support. If you 10484*** really care for shared libraries, you may want to install binutils 10485*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10486*** You will then need to restart the configuration process. 10487 10488_LT_EOF 10489 fi 10490 ;; 10491 10492 amigaos*) 10493 case $host_cpu in 10494 powerpc) 10495 # see comment about AmigaOS4 .so support 10496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10497 archive_expsym_cmds='' 10498 ;; 10499 m68k) 10500 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)' 10501 hardcode_libdir_flag_spec='-L$libdir' 10502 hardcode_minus_L=yes 10503 ;; 10504 esac 10505 ;; 10506 10507 beos*) 10508 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10509 allow_undefined_flag=unsupported 10510 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10511 # support --undefined. This deserves some investigation. FIXME 10512 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10513 else 10514 ld_shlibs=no 10515 fi 10516 ;; 10517 10518 cygwin* | mingw* | pw32* | cegcc*) 10519 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10520 # as there is no search path for DLLs. 10521 hardcode_libdir_flag_spec='-L$libdir' 10522 export_dynamic_flag_spec='$wl--export-all-symbols' 10523 allow_undefined_flag=unsupported 10524 always_export_symbols=no 10525 enable_shared_with_static_runtimes=yes 10526 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' 10527 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10528 10529 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10531 # If the export-symbols file already is a .def file, use it as 10532 # is; otherwise, prepend EXPORTS... 10533 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10534 cp $export_symbols $output_objdir/$soname.def; 10535 else 10536 echo EXPORTS > $output_objdir/$soname.def; 10537 cat $export_symbols >> $output_objdir/$soname.def; 10538 fi~ 10539 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10540 else 10541 ld_shlibs=no 10542 fi 10543 ;; 10544 10545 haiku*) 10546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10547 link_all_deplibs=yes 10548 ;; 10549 10550 os2*) 10551 hardcode_libdir_flag_spec='-L$libdir' 10552 hardcode_minus_L=yes 10553 allow_undefined_flag=unsupported 10554 shrext_cmds=.dll 10555 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10556 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10557 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10558 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10559 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10560 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10561 emximp -o $lib $output_objdir/$libname.def' 10562 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10563 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10564 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10565 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10566 prefix_cmds="$SED"~ 10567 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10568 prefix_cmds="$prefix_cmds -e 1d"; 10569 fi~ 10570 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10571 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10572 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10573 emximp -o $lib $output_objdir/$libname.def' 10574 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10575 enable_shared_with_static_runtimes=yes 10576 ;; 10577 10578 interix[3-9]*) 10579 hardcode_direct=no 10580 hardcode_shlibpath_var=no 10581 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10582 export_dynamic_flag_spec='$wl-E' 10583 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10584 # Instead, shared libraries are loaded at an image base (0x10000000 by 10585 # default) and relocated if they conflict, which is a slow very memory 10586 # consuming and fragmenting process. To avoid this, we pick a random, 10587 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10588 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10589 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10590 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' 10591 ;; 10592 10593 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10594 tmp_diet=no 10595 if test linux-dietlibc = "$host_os"; then 10596 case $cc_basename in 10597 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10598 esac 10599 fi 10600 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10601 && test no = "$tmp_diet" 10602 then 10603 tmp_addflag=' $pic_flag' 10604 tmp_sharedflag='-shared' 10605 case $cc_basename,$host_cpu in 10606 pgcc*) # Portland Group C compiler 10607 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' 10608 tmp_addflag=' $pic_flag' 10609 ;; 10610 pgf77* | pgf90* | pgf95* | pgfortran*) 10611 # Portland Group f77 and f90 compilers 10612 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' 10613 tmp_addflag=' $pic_flag -Mnomain' ;; 10614 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10615 tmp_addflag=' -i_dynamic' ;; 10616 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10617 tmp_addflag=' -i_dynamic -nofor_main' ;; 10618 ifc* | ifort*) # Intel Fortran compiler 10619 tmp_addflag=' -nofor_main' ;; 10620 lf95*) # Lahey Fortran 8.1 10621 whole_archive_flag_spec= 10622 tmp_sharedflag='--shared' ;; 10623 nagfor*) # NAGFOR 5.3 10624 tmp_sharedflag='-Wl,-shared' ;; 10625 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10626 tmp_sharedflag='-qmkshrobj' 10627 tmp_addflag= ;; 10628 nvcc*) # Cuda Compiler Driver 2.2 10629 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' 10630 compiler_needs_object=yes 10631 ;; 10632 esac 10633 case `$CC -V 2>&1 | sed 5q` in 10634 *Sun\ C*) # Sun C 5.9 10635 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' 10636 compiler_needs_object=yes 10637 tmp_sharedflag='-G' ;; 10638 *Sun\ F*) # Sun Fortran 8.3 10639 tmp_sharedflag='-G' ;; 10640 esac 10641 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10642 10643 if test yes = "$supports_anon_versioning"; then 10644 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10645 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10646 echo "local: *; };" >> $output_objdir/$libname.ver~ 10647 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10648 fi 10649 10650 case $cc_basename in 10651 tcc*) 10652 export_dynamic_flag_spec='-rdynamic' 10653 ;; 10654 xlf* | bgf* | bgxlf* | mpixlf*) 10655 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10656 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10657 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10658 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10659 if test yes = "$supports_anon_versioning"; then 10660 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10661 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10662 echo "local: *; };" >> $output_objdir/$libname.ver~ 10663 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10664 fi 10665 ;; 10666 esac 10667 else 10668 ld_shlibs=no 10669 fi 10670 ;; 10671 10672 netbsd* | netbsdelf*-gnu) 10673 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10674 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10675 wlarc= 10676 else 10677 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10678 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10679 fi 10680 ;; 10681 10682 solaris*) 10683 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10684 ld_shlibs=no 10685 cat <<_LT_EOF 1>&2 10686 10687*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10688*** create shared libraries on Solaris systems. Therefore, libtool 10689*** is disabling shared libraries support. We urge you to upgrade GNU 10690*** binutils to release 2.9.1 or newer. Another option is to modify 10691*** your PATH or compiler configuration so that the native linker is 10692*** used, and then restart. 10693 10694_LT_EOF 10695 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10696 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10697 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10698 else 10699 ld_shlibs=no 10700 fi 10701 ;; 10702 10703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10704 case `$LD -v 2>&1` in 10705 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10706 ld_shlibs=no 10707 cat <<_LT_EOF 1>&2 10708 10709*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10710*** reliably create shared libraries on SCO systems. Therefore, libtool 10711*** is disabling shared libraries support. We urge you to upgrade GNU 10712*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10713*** your PATH or compiler configuration so that the native linker is 10714*** used, and then restart. 10715 10716_LT_EOF 10717 ;; 10718 *) 10719 # For security reasons, it is highly recommended that you always 10720 # use absolute paths for naming shared libraries, and exclude the 10721 # DT_RUNPATH tag from executables and libraries. But doing so 10722 # requires that you compile everything twice, which is a pain. 10723 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10724 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10726 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10727 else 10728 ld_shlibs=no 10729 fi 10730 ;; 10731 esac 10732 ;; 10733 10734 sunos4*) 10735 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10736 wlarc= 10737 hardcode_direct=yes 10738 hardcode_shlibpath_var=no 10739 ;; 10740 10741 *) 10742 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10743 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10744 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10745 else 10746 ld_shlibs=no 10747 fi 10748 ;; 10749 esac 10750 10751 if test no = "$ld_shlibs"; then 10752 runpath_var= 10753 hardcode_libdir_flag_spec= 10754 export_dynamic_flag_spec= 10755 whole_archive_flag_spec= 10756 fi 10757 else 10758 # PORTME fill in a description of your system's linker (not GNU ld) 10759 case $host_os in 10760 aix3*) 10761 allow_undefined_flag=unsupported 10762 always_export_symbols=yes 10763 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' 10764 # Note: this linker hardcodes the directories in LIBPATH if there 10765 # are no directories specified by -L. 10766 hardcode_minus_L=yes 10767 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10768 # Neither direct hardcoding nor static linking is supported with a 10769 # broken collect2. 10770 hardcode_direct=unsupported 10771 fi 10772 ;; 10773 10774 aix[4-9]*) 10775 if test ia64 = "$host_cpu"; then 10776 # On IA64, the linker does run time linking by default, so we don't 10777 # have to do anything special. 10778 aix_use_runtimelinking=no 10779 exp_sym_flag='-Bexport' 10780 no_entry_flag= 10781 else 10782 # If we're using GNU nm, then we don't want the "-C" option. 10783 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10784 # Without the "-l" option, or with the "-B" option, AIX nm treats 10785 # weak defined symbols like other global defined symbols, whereas 10786 # GNU nm marks them as "W". 10787 # While the 'weak' keyword is ignored in the Export File, we need 10788 # it in the Import File for the 'aix-soname' feature, so we have 10789 # to replace the "-B" option with "-P" for AIX nm. 10790 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10791 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10792 else 10793 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10794 fi 10795 aix_use_runtimelinking=no 10796 10797 # Test if we are trying to use run time linking or normal 10798 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10799 # have runtime linking enabled, and use it for executables. 10800 # For shared libraries, we enable/disable runtime linking 10801 # depending on the kind of the shared library created - 10802 # when "with_aix_soname,aix_use_runtimelinking" is: 10803 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10804 # "aix,yes" lib.so shared, rtl:yes, for executables 10805 # lib.a static archive 10806 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10807 # lib.a(lib.so.V) shared, rtl:no, for executables 10808 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10809 # lib.a(lib.so.V) shared, rtl:no 10810 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10811 # lib.a static archive 10812 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10813 for ld_flag in $LDFLAGS; do 10814 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10815 aix_use_runtimelinking=yes 10816 break 10817 fi 10818 done 10819 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10820 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10821 # so we don't have lib.a shared libs to link our executables. 10822 # We have to force runtime linking in this case. 10823 aix_use_runtimelinking=yes 10824 LDFLAGS="$LDFLAGS -Wl,-brtl" 10825 fi 10826 ;; 10827 esac 10828 10829 exp_sym_flag='-bexport' 10830 no_entry_flag='-bnoentry' 10831 fi 10832 10833 # When large executables or shared objects are built, AIX ld can 10834 # have problems creating the table of contents. If linking a library 10835 # or program results in "error TOC overflow" add -mminimal-toc to 10836 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10837 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10838 10839 archive_cmds='' 10840 hardcode_direct=yes 10841 hardcode_direct_absolute=yes 10842 hardcode_libdir_separator=':' 10843 link_all_deplibs=yes 10844 file_list_spec='$wl-f,' 10845 case $with_aix_soname,$aix_use_runtimelinking in 10846 aix,*) ;; # traditional, no import file 10847 svr4,* | *,yes) # use import file 10848 # The Import File defines what to hardcode. 10849 hardcode_direct=no 10850 hardcode_direct_absolute=no 10851 ;; 10852 esac 10853 10854 if test yes = "$GCC"; then 10855 case $host_os in aix4.[012]|aix4.[012].*) 10856 # We only want to do this on AIX 4.2 and lower, the check 10857 # below for broken collect2 doesn't work under 4.3+ 10858 collect2name=`$CC -print-prog-name=collect2` 10859 if test -f "$collect2name" && 10860 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10861 then 10862 # We have reworked collect2 10863 : 10864 else 10865 # We have old collect2 10866 hardcode_direct=unsupported 10867 # It fails to find uninstalled libraries when the uninstalled 10868 # path is not listed in the libpath. Setting hardcode_minus_L 10869 # to unsupported forces relinking 10870 hardcode_minus_L=yes 10871 hardcode_libdir_flag_spec='-L$libdir' 10872 hardcode_libdir_separator= 10873 fi 10874 ;; 10875 esac 10876 shared_flag='-shared' 10877 if test yes = "$aix_use_runtimelinking"; then 10878 shared_flag="$shared_flag "'$wl-G' 10879 fi 10880 # Need to ensure runtime linking is disabled for the traditional 10881 # shared library, or the linker may eventually find shared libraries 10882 # /with/ Import File - we do not want to mix them. 10883 shared_flag_aix='-shared' 10884 shared_flag_svr4='-shared $wl-G' 10885 else 10886 # not using gcc 10887 if test ia64 = "$host_cpu"; then 10888 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10889 # chokes on -Wl,-G. The following line is correct: 10890 shared_flag='-G' 10891 else 10892 if test yes = "$aix_use_runtimelinking"; then 10893 shared_flag='$wl-G' 10894 else 10895 shared_flag='$wl-bM:SRE' 10896 fi 10897 shared_flag_aix='$wl-bM:SRE' 10898 shared_flag_svr4='$wl-G' 10899 fi 10900 fi 10901 10902 export_dynamic_flag_spec='$wl-bexpall' 10903 # It seems that -bexpall does not export symbols beginning with 10904 # underscore (_), so it is better to generate a list of symbols to export. 10905 always_export_symbols=yes 10906 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10907 # Warning - without using the other runtime loading flags (-brtl), 10908 # -berok will link without error, but may produce a broken library. 10909 allow_undefined_flag='-berok' 10910 # Determine the default libpath from the value encoded in an 10911 # empty executable. 10912 if test set = "${lt_cv_aix_libpath+set}"; then 10913 aix_libpath=$lt_cv_aix_libpath 10914else 10915 if ${lt_cv_aix_libpath_+:} false; then : 10916 $as_echo_n "(cached) " >&6 10917else 10918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10919/* end confdefs.h. */ 10920 10921int 10922main () 10923{ 10924 10925 ; 10926 return 0; 10927} 10928_ACEOF 10929if ac_fn_c_try_link "$LINENO"; then : 10930 10931 lt_aix_libpath_sed=' 10932 /Import File Strings/,/^$/ { 10933 /^0/ { 10934 s/^0 *\([^ ]*\) *$/\1/ 10935 p 10936 } 10937 }' 10938 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10939 # Check for a 64-bit object if we didn't find anything. 10940 if test -z "$lt_cv_aix_libpath_"; then 10941 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10942 fi 10943fi 10944rm -f core conftest.err conftest.$ac_objext \ 10945 conftest$ac_exeext conftest.$ac_ext 10946 if test -z "$lt_cv_aix_libpath_"; then 10947 lt_cv_aix_libpath_=/usr/lib:/lib 10948 fi 10949 10950fi 10951 10952 aix_libpath=$lt_cv_aix_libpath_ 10953fi 10954 10955 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10956 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10957 else 10958 if test ia64 = "$host_cpu"; then 10959 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10960 allow_undefined_flag="-z nodefs" 10961 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" 10962 else 10963 # Determine the default libpath from the value encoded in an 10964 # empty executable. 10965 if test set = "${lt_cv_aix_libpath+set}"; then 10966 aix_libpath=$lt_cv_aix_libpath 10967else 10968 if ${lt_cv_aix_libpath_+:} false; then : 10969 $as_echo_n "(cached) " >&6 10970else 10971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10972/* end confdefs.h. */ 10973 10974int 10975main () 10976{ 10977 10978 ; 10979 return 0; 10980} 10981_ACEOF 10982if ac_fn_c_try_link "$LINENO"; then : 10983 10984 lt_aix_libpath_sed=' 10985 /Import File Strings/,/^$/ { 10986 /^0/ { 10987 s/^0 *\([^ ]*\) *$/\1/ 10988 p 10989 } 10990 }' 10991 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10992 # Check for a 64-bit object if we didn't find anything. 10993 if test -z "$lt_cv_aix_libpath_"; then 10994 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10995 fi 10996fi 10997rm -f core conftest.err conftest.$ac_objext \ 10998 conftest$ac_exeext conftest.$ac_ext 10999 if test -z "$lt_cv_aix_libpath_"; then 11000 lt_cv_aix_libpath_=/usr/lib:/lib 11001 fi 11002 11003fi 11004 11005 aix_libpath=$lt_cv_aix_libpath_ 11006fi 11007 11008 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11009 # Warning - without using the other run time loading flags, 11010 # -berok will link without error, but may produce a broken library. 11011 no_undefined_flag=' $wl-bernotok' 11012 allow_undefined_flag=' $wl-berok' 11013 if test yes = "$with_gnu_ld"; then 11014 # We only use this code for GNU lds that support --whole-archive. 11015 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11016 else 11017 # Exported symbols can be pulled into shared objects from archives 11018 whole_archive_flag_spec='$convenience' 11019 fi 11020 archive_cmds_need_lc=yes 11021 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11022 # -brtl affects multiple linker settings, -berok does not and is overridden later 11023 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11024 if test svr4 != "$with_aix_soname"; then 11025 # This is similar to how AIX traditionally builds its shared libraries. 11026 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 11027 fi 11028 if test aix != "$with_aix_soname"; then 11029 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 11030 else 11031 # used by -dlpreopen to get the symbols 11032 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11033 fi 11034 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11035 fi 11036 fi 11037 ;; 11038 11039 amigaos*) 11040 case $host_cpu in 11041 powerpc) 11042 # see comment about AmigaOS4 .so support 11043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11044 archive_expsym_cmds='' 11045 ;; 11046 m68k) 11047 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)' 11048 hardcode_libdir_flag_spec='-L$libdir' 11049 hardcode_minus_L=yes 11050 ;; 11051 esac 11052 ;; 11053 11054 bsdi[45]*) 11055 export_dynamic_flag_spec=-rdynamic 11056 ;; 11057 11058 cygwin* | mingw* | pw32* | cegcc*) 11059 # When not using gcc, we currently assume that we are using 11060 # Microsoft Visual C++. 11061 # hardcode_libdir_flag_spec is actually meaningless, as there is 11062 # no search path for DLLs. 11063 case $cc_basename in 11064 cl*) 11065 # Native MSVC 11066 hardcode_libdir_flag_spec=' ' 11067 allow_undefined_flag=unsupported 11068 always_export_symbols=yes 11069 file_list_spec='@' 11070 # Tell ltmain to make .lib files, not .a files. 11071 libext=lib 11072 # Tell ltmain to make .dll files, not .so files. 11073 shrext_cmds=.dll 11074 # FIXME: Setting linknames here is a bad hack. 11075 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11076 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11077 cp "$export_symbols" "$output_objdir/$soname.def"; 11078 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11079 else 11080 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11081 fi~ 11082 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11083 linknames=' 11084 # The linker will not automatically build a static lib if we build a DLL. 11085 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11086 enable_shared_with_static_runtimes=yes 11087 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11088 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11089 # Don't use ranlib 11090 old_postinstall_cmds='chmod 644 $oldlib' 11091 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11092 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11093 case $lt_outputfile in 11094 *.exe|*.EXE) ;; 11095 *) 11096 lt_outputfile=$lt_outputfile.exe 11097 lt_tool_outputfile=$lt_tool_outputfile.exe 11098 ;; 11099 esac~ 11100 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11101 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11102 $RM "$lt_outputfile.manifest"; 11103 fi' 11104 ;; 11105 *) 11106 # Assume MSVC wrapper 11107 hardcode_libdir_flag_spec=' ' 11108 allow_undefined_flag=unsupported 11109 # Tell ltmain to make .lib files, not .a files. 11110 libext=lib 11111 # Tell ltmain to make .dll files, not .so files. 11112 shrext_cmds=.dll 11113 # FIXME: Setting linknames here is a bad hack. 11114 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11115 # The linker will automatically build a .lib file if we build a DLL. 11116 old_archive_from_new_cmds='true' 11117 # FIXME: Should let the user specify the lib program. 11118 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11119 enable_shared_with_static_runtimes=yes 11120 ;; 11121 esac 11122 ;; 11123 11124 darwin* | rhapsody*) 11125 11126 11127 archive_cmds_need_lc=no 11128 hardcode_direct=no 11129 hardcode_automatic=yes 11130 hardcode_shlibpath_var=unsupported 11131 if test yes = "$lt_cv_ld_force_load"; then 11132 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\"`' 11133 11134 else 11135 whole_archive_flag_spec='' 11136 fi 11137 link_all_deplibs=yes 11138 allow_undefined_flag=$_lt_dar_allow_undefined 11139 case $cc_basename in 11140 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11141 *) _lt_dar_can_shared=$GCC ;; 11142 esac 11143 if test yes = "$_lt_dar_can_shared"; then 11144 output_verbose_link_cmd=func_echo_all 11145 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11146 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11147 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" 11148 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" 11149 11150 else 11151 ld_shlibs=no 11152 fi 11153 11154 ;; 11155 11156 dgux*) 11157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11158 hardcode_libdir_flag_spec='-L$libdir' 11159 hardcode_shlibpath_var=no 11160 ;; 11161 11162 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11163 # support. Future versions do this automatically, but an explicit c++rt0.o 11164 # does not break anything, and helps significantly (at the cost of a little 11165 # extra space). 11166 freebsd2.2*) 11167 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11168 hardcode_libdir_flag_spec='-R$libdir' 11169 hardcode_direct=yes 11170 hardcode_shlibpath_var=no 11171 ;; 11172 11173 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11174 freebsd2.*) 11175 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11176 hardcode_direct=yes 11177 hardcode_minus_L=yes 11178 hardcode_shlibpath_var=no 11179 ;; 11180 11181 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11182 freebsd* | dragonfly*) 11183 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11184 hardcode_libdir_flag_spec='-R$libdir' 11185 hardcode_direct=yes 11186 hardcode_shlibpath_var=no 11187 ;; 11188 11189 hpux9*) 11190 if test yes = "$GCC"; then 11191 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11192 else 11193 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11194 fi 11195 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11196 hardcode_libdir_separator=: 11197 hardcode_direct=yes 11198 11199 # hardcode_minus_L: Not really in the search PATH, 11200 # but as the default location of the library. 11201 hardcode_minus_L=yes 11202 export_dynamic_flag_spec='$wl-E' 11203 ;; 11204 11205 hpux10*) 11206 if test yes,no = "$GCC,$with_gnu_ld"; then 11207 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11208 else 11209 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11210 fi 11211 if test no = "$with_gnu_ld"; then 11212 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11213 hardcode_libdir_separator=: 11214 hardcode_direct=yes 11215 hardcode_direct_absolute=yes 11216 export_dynamic_flag_spec='$wl-E' 11217 # hardcode_minus_L: Not really in the search PATH, 11218 # but as the default location of the library. 11219 hardcode_minus_L=yes 11220 fi 11221 ;; 11222 11223 hpux11*) 11224 if test yes,no = "$GCC,$with_gnu_ld"; then 11225 case $host_cpu in 11226 hppa*64*) 11227 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11228 ;; 11229 ia64*) 11230 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11231 ;; 11232 *) 11233 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11234 ;; 11235 esac 11236 else 11237 case $host_cpu in 11238 hppa*64*) 11239 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11240 ;; 11241 ia64*) 11242 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11243 ;; 11244 *) 11245 11246 # Older versions of the 11.00 compiler do not understand -b yet 11247 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11249$as_echo_n "checking if $CC understands -b... " >&6; } 11250if ${lt_cv_prog_compiler__b+:} false; then : 11251 $as_echo_n "(cached) " >&6 11252else 11253 lt_cv_prog_compiler__b=no 11254 save_LDFLAGS=$LDFLAGS 11255 LDFLAGS="$LDFLAGS -b" 11256 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11257 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11258 # The linker can only warn and ignore the option if not recognized 11259 # So say no if there are warnings 11260 if test -s conftest.err; then 11261 # Append any errors to the config.log. 11262 cat conftest.err 1>&5 11263 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11265 if diff conftest.exp conftest.er2 >/dev/null; then 11266 lt_cv_prog_compiler__b=yes 11267 fi 11268 else 11269 lt_cv_prog_compiler__b=yes 11270 fi 11271 fi 11272 $RM -r conftest* 11273 LDFLAGS=$save_LDFLAGS 11274 11275fi 11276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11277$as_echo "$lt_cv_prog_compiler__b" >&6; } 11278 11279if test yes = "$lt_cv_prog_compiler__b"; then 11280 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11281else 11282 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11283fi 11284 11285 ;; 11286 esac 11287 fi 11288 if test no = "$with_gnu_ld"; then 11289 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11290 hardcode_libdir_separator=: 11291 11292 case $host_cpu in 11293 hppa*64*|ia64*) 11294 hardcode_direct=no 11295 hardcode_shlibpath_var=no 11296 ;; 11297 *) 11298 hardcode_direct=yes 11299 hardcode_direct_absolute=yes 11300 export_dynamic_flag_spec='$wl-E' 11301 11302 # hardcode_minus_L: Not really in the search PATH, 11303 # but as the default location of the library. 11304 hardcode_minus_L=yes 11305 ;; 11306 esac 11307 fi 11308 ;; 11309 11310 irix5* | irix6* | nonstopux*) 11311 if test yes = "$GCC"; then 11312 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' 11313 # Try to use the -exported_symbol ld option, if it does not 11314 # work, assume that -exports_file does not work either and 11315 # implicitly export all symbols. 11316 # This should be the same for all languages, so no per-tag cache variable. 11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11318$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11319if ${lt_cv_irix_exported_symbol+:} false; then : 11320 $as_echo_n "(cached) " >&6 11321else 11322 save_LDFLAGS=$LDFLAGS 11323 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11325/* end confdefs.h. */ 11326int foo (void) { return 0; } 11327_ACEOF 11328if ac_fn_c_try_link "$LINENO"; then : 11329 lt_cv_irix_exported_symbol=yes 11330else 11331 lt_cv_irix_exported_symbol=no 11332fi 11333rm -f core conftest.err conftest.$ac_objext \ 11334 conftest$ac_exeext conftest.$ac_ext 11335 LDFLAGS=$save_LDFLAGS 11336fi 11337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11338$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11339 if test yes = "$lt_cv_irix_exported_symbol"; then 11340 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' 11341 fi 11342 link_all_deplibs=no 11343 else 11344 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' 11345 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' 11346 fi 11347 archive_cmds_need_lc='no' 11348 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11349 hardcode_libdir_separator=: 11350 inherit_rpath=yes 11351 link_all_deplibs=yes 11352 ;; 11353 11354 linux*) 11355 case $cc_basename in 11356 tcc*) 11357 # Fabrice Bellard et al's Tiny C Compiler 11358 ld_shlibs=yes 11359 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11360 ;; 11361 esac 11362 ;; 11363 11364 netbsd* | netbsdelf*-gnu) 11365 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11366 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11367 else 11368 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11369 fi 11370 hardcode_libdir_flag_spec='-R$libdir' 11371 hardcode_direct=yes 11372 hardcode_shlibpath_var=no 11373 ;; 11374 11375 newsos6) 11376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11377 hardcode_direct=yes 11378 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11379 hardcode_libdir_separator=: 11380 hardcode_shlibpath_var=no 11381 ;; 11382 11383 *nto* | *qnx*) 11384 ;; 11385 11386 openbsd* | bitrig*) 11387 if test -f /usr/libexec/ld.so; then 11388 hardcode_direct=yes 11389 hardcode_shlibpath_var=no 11390 hardcode_direct_absolute=yes 11391 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11392 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11393 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11394 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11395 export_dynamic_flag_spec='$wl-E' 11396 else 11397 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11398 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11399 fi 11400 else 11401 ld_shlibs=no 11402 fi 11403 ;; 11404 11405 os2*) 11406 hardcode_libdir_flag_spec='-L$libdir' 11407 hardcode_minus_L=yes 11408 allow_undefined_flag=unsupported 11409 shrext_cmds=.dll 11410 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11411 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11412 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11413 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11414 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11415 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11416 emximp -o $lib $output_objdir/$libname.def' 11417 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11418 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11419 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11420 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11421 prefix_cmds="$SED"~ 11422 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11423 prefix_cmds="$prefix_cmds -e 1d"; 11424 fi~ 11425 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11426 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11427 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11428 emximp -o $lib $output_objdir/$libname.def' 11429 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11430 enable_shared_with_static_runtimes=yes 11431 ;; 11432 11433 osf3*) 11434 if test yes = "$GCC"; then 11435 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11436 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' 11437 else 11438 allow_undefined_flag=' -expect_unresolved \*' 11439 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' 11440 fi 11441 archive_cmds_need_lc='no' 11442 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11443 hardcode_libdir_separator=: 11444 ;; 11445 11446 osf4* | osf5*) # as osf3* with the addition of -msym flag 11447 if test yes = "$GCC"; then 11448 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11449 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' 11450 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11451 else 11452 allow_undefined_flag=' -expect_unresolved \*' 11453 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' 11454 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~ 11455 $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' 11456 11457 # Both c and cxx compiler support -rpath directly 11458 hardcode_libdir_flag_spec='-rpath $libdir' 11459 fi 11460 archive_cmds_need_lc='no' 11461 hardcode_libdir_separator=: 11462 ;; 11463 11464 solaris*) 11465 no_undefined_flag=' -z defs' 11466 if test yes = "$GCC"; then 11467 wlarc='$wl' 11468 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11469 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11470 $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' 11471 else 11472 case `$CC -V 2>&1` in 11473 *"Compilers 5.0"*) 11474 wlarc='' 11475 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11476 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11477 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11478 ;; 11479 *) 11480 wlarc='$wl' 11481 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11482 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11483 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11484 ;; 11485 esac 11486 fi 11487 hardcode_libdir_flag_spec='-R$libdir' 11488 hardcode_shlibpath_var=no 11489 case $host_os in 11490 solaris2.[0-5] | solaris2.[0-5].*) ;; 11491 *) 11492 # The compiler driver will combine and reorder linker options, 11493 # but understands '-z linker_flag'. GCC discards it without '$wl', 11494 # but is careful enough not to reorder. 11495 # Supported since Solaris 2.6 (maybe 2.5.1?) 11496 if test yes = "$GCC"; then 11497 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11498 else 11499 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11500 fi 11501 ;; 11502 esac 11503 link_all_deplibs=yes 11504 ;; 11505 11506 sunos4*) 11507 if test sequent = "$host_vendor"; then 11508 # Use $CC to link under sequent, because it throws in some extra .o 11509 # files that make .init and .fini sections work. 11510 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11511 else 11512 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11513 fi 11514 hardcode_libdir_flag_spec='-L$libdir' 11515 hardcode_direct=yes 11516 hardcode_minus_L=yes 11517 hardcode_shlibpath_var=no 11518 ;; 11519 11520 sysv4) 11521 case $host_vendor in 11522 sni) 11523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11524 hardcode_direct=yes # is this really true??? 11525 ;; 11526 siemens) 11527 ## LD is ld it makes a PLAMLIB 11528 ## CC just makes a GrossModule. 11529 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11530 reload_cmds='$CC -r -o $output$reload_objs' 11531 hardcode_direct=no 11532 ;; 11533 motorola) 11534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11535 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11536 ;; 11537 esac 11538 runpath_var='LD_RUN_PATH' 11539 hardcode_shlibpath_var=no 11540 ;; 11541 11542 sysv4.3*) 11543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11544 hardcode_shlibpath_var=no 11545 export_dynamic_flag_spec='-Bexport' 11546 ;; 11547 11548 sysv4*MP*) 11549 if test -d /usr/nec; then 11550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11551 hardcode_shlibpath_var=no 11552 runpath_var=LD_RUN_PATH 11553 hardcode_runpath_var=yes 11554 ld_shlibs=yes 11555 fi 11556 ;; 11557 11558 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11559 no_undefined_flag='$wl-z,text' 11560 archive_cmds_need_lc=no 11561 hardcode_shlibpath_var=no 11562 runpath_var='LD_RUN_PATH' 11563 11564 if test yes = "$GCC"; then 11565 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11566 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11567 else 11568 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11569 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11570 fi 11571 ;; 11572 11573 sysv5* | sco3.2v5* | sco5v6*) 11574 # Note: We CANNOT use -z defs as we might desire, because we do not 11575 # link with -lc, and that would cause any symbols used from libc to 11576 # always be unresolved, which means just about no library would 11577 # ever link correctly. If we're not using GNU ld we use -z text 11578 # though, which does catch some bad symbols but isn't as heavy-handed 11579 # as -z defs. 11580 no_undefined_flag='$wl-z,text' 11581 allow_undefined_flag='$wl-z,nodefs' 11582 archive_cmds_need_lc=no 11583 hardcode_shlibpath_var=no 11584 hardcode_libdir_flag_spec='$wl-R,$libdir' 11585 hardcode_libdir_separator=':' 11586 link_all_deplibs=yes 11587 export_dynamic_flag_spec='$wl-Bexport' 11588 runpath_var='LD_RUN_PATH' 11589 11590 if test yes = "$GCC"; then 11591 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11592 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11593 else 11594 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11595 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11596 fi 11597 ;; 11598 11599 uts4*) 11600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11601 hardcode_libdir_flag_spec='-L$libdir' 11602 hardcode_shlibpath_var=no 11603 ;; 11604 11605 *) 11606 ld_shlibs=no 11607 ;; 11608 esac 11609 11610 if test sni = "$host_vendor"; then 11611 case $host in 11612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11613 export_dynamic_flag_spec='$wl-Blargedynsym' 11614 ;; 11615 esac 11616 fi 11617 fi 11618 11619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11620$as_echo "$ld_shlibs" >&6; } 11621test no = "$ld_shlibs" && can_build_shared=no 11622 11623with_gnu_ld=$with_gnu_ld 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639# 11640# Do we need to explicitly link libc? 11641# 11642case "x$archive_cmds_need_lc" in 11643x|xyes) 11644 # Assume -lc should be added 11645 archive_cmds_need_lc=yes 11646 11647 if test yes,yes = "$GCC,$enable_shared"; then 11648 case $archive_cmds in 11649 *'~'*) 11650 # FIXME: we may have to deal with multi-command sequences. 11651 ;; 11652 '$CC '*) 11653 # Test whether the compiler implicitly links with -lc since on some 11654 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11655 # to ld, don't add -lc before -lgcc. 11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11657$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11658if ${lt_cv_archive_cmds_need_lc+:} false; then : 11659 $as_echo_n "(cached) " >&6 11660else 11661 $RM conftest* 11662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11663 11664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11665 (eval $ac_compile) 2>&5 11666 ac_status=$? 11667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11668 test $ac_status = 0; } 2>conftest.err; then 11669 soname=conftest 11670 lib=conftest 11671 libobjs=conftest.$ac_objext 11672 deplibs= 11673 wl=$lt_prog_compiler_wl 11674 pic_flag=$lt_prog_compiler_pic 11675 compiler_flags=-v 11676 linker_flags=-v 11677 verstring= 11678 output_objdir=. 11679 libname=conftest 11680 lt_save_allow_undefined_flag=$allow_undefined_flag 11681 allow_undefined_flag= 11682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11683 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11684 ac_status=$? 11685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11686 test $ac_status = 0; } 11687 then 11688 lt_cv_archive_cmds_need_lc=no 11689 else 11690 lt_cv_archive_cmds_need_lc=yes 11691 fi 11692 allow_undefined_flag=$lt_save_allow_undefined_flag 11693 else 11694 cat conftest.err 1>&5 11695 fi 11696 $RM conftest* 11697 11698fi 11699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11700$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11701 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11702 ;; 11703 esac 11704 fi 11705 ;; 11706esac 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11860$as_echo_n "checking dynamic linker characteristics... " >&6; } 11861 11862if test yes = "$GCC"; then 11863 case $host_os in 11864 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11865 *) lt_awk_arg='/^libraries:/' ;; 11866 esac 11867 case $host_os in 11868 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11869 *) lt_sed_strip_eq='s|=/|/|g' ;; 11870 esac 11871 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11872 case $lt_search_path_spec in 11873 *\;*) 11874 # if the path contains ";" then we assume it to be the separator 11875 # otherwise default to the standard path separator (i.e. ":") - it is 11876 # assumed that no part of a normal pathname contains ";" but that should 11877 # okay in the real world where ";" in dirpaths is itself problematic. 11878 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11879 ;; 11880 *) 11881 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11882 ;; 11883 esac 11884 # Ok, now we have the path, separated by spaces, we can step through it 11885 # and add multilib dir if necessary... 11886 lt_tmp_lt_search_path_spec= 11887 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11888 # ...but if some path component already ends with the multilib dir we assume 11889 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11890 case "$lt_multi_os_dir; $lt_search_path_spec " in 11891 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11892 lt_multi_os_dir= 11893 ;; 11894 esac 11895 for lt_sys_path in $lt_search_path_spec; do 11896 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11897 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11898 elif test -n "$lt_multi_os_dir"; then 11899 test -d "$lt_sys_path" && \ 11900 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11901 fi 11902 done 11903 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11904BEGIN {RS = " "; FS = "/|\n";} { 11905 lt_foo = ""; 11906 lt_count = 0; 11907 for (lt_i = NF; lt_i > 0; lt_i--) { 11908 if ($lt_i != "" && $lt_i != ".") { 11909 if ($lt_i == "..") { 11910 lt_count++; 11911 } else { 11912 if (lt_count == 0) { 11913 lt_foo = "/" $lt_i lt_foo; 11914 } else { 11915 lt_count--; 11916 } 11917 } 11918 } 11919 } 11920 if (lt_foo != "") { lt_freq[lt_foo]++; } 11921 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11922}'` 11923 # AWK program above erroneously prepends '/' to C:/dos/paths 11924 # for these hosts. 11925 case $host_os in 11926 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11927 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11928 esac 11929 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11930else 11931 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11932fi 11933library_names_spec= 11934libname_spec='lib$name' 11935soname_spec= 11936shrext_cmds=.so 11937postinstall_cmds= 11938postuninstall_cmds= 11939finish_cmds= 11940finish_eval= 11941shlibpath_var= 11942shlibpath_overrides_runpath=unknown 11943version_type=none 11944dynamic_linker="$host_os ld.so" 11945sys_lib_dlsearch_path_spec="/lib /usr/lib" 11946need_lib_prefix=unknown 11947hardcode_into_libs=no 11948 11949# when you set need_version to no, make sure it does not cause -set_version 11950# flags to be left without arguments 11951need_version=unknown 11952 11953 11954 11955case $host_os in 11956aix3*) 11957 version_type=linux # correct to gnu/linux during the next big refactor 11958 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11959 shlibpath_var=LIBPATH 11960 11961 # AIX 3 has no versioning support, so we append a major version to the name. 11962 soname_spec='$libname$release$shared_ext$major' 11963 ;; 11964 11965aix[4-9]*) 11966 version_type=linux # correct to gnu/linux during the next big refactor 11967 need_lib_prefix=no 11968 need_version=no 11969 hardcode_into_libs=yes 11970 if test ia64 = "$host_cpu"; then 11971 # AIX 5 supports IA64 11972 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11973 shlibpath_var=LD_LIBRARY_PATH 11974 else 11975 # With GCC up to 2.95.x, collect2 would create an import file 11976 # for dependence libraries. The import file would start with 11977 # the line '#! .'. This would cause the generated library to 11978 # depend on '.', always an invalid library. This was fixed in 11979 # development snapshots of GCC prior to 3.0. 11980 case $host_os in 11981 aix4 | aix4.[01] | aix4.[01].*) 11982 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11983 echo ' yes ' 11984 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11985 : 11986 else 11987 can_build_shared=no 11988 fi 11989 ;; 11990 esac 11991 # Using Import Files as archive members, it is possible to support 11992 # filename-based versioning of shared library archives on AIX. While 11993 # this would work for both with and without runtime linking, it will 11994 # prevent static linking of such archives. So we do filename-based 11995 # shared library versioning with .so extension only, which is used 11996 # when both runtime linking and shared linking is enabled. 11997 # Unfortunately, runtime linking may impact performance, so we do 11998 # not want this to be the default eventually. Also, we use the 11999 # versioned .so libs for executables only if there is the -brtl 12000 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12001 # To allow for filename-based versioning support, we need to create 12002 # libNAME.so.V as an archive file, containing: 12003 # *) an Import File, referring to the versioned filename of the 12004 # archive as well as the shared archive member, telling the 12005 # bitwidth (32 or 64) of that shared object, and providing the 12006 # list of exported symbols of that shared object, eventually 12007 # decorated with the 'weak' keyword 12008 # *) the shared object with the F_LOADONLY flag set, to really avoid 12009 # it being seen by the linker. 12010 # At run time we better use the real file rather than another symlink, 12011 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12012 12013 case $with_aix_soname,$aix_use_runtimelinking in 12014 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12015 # soname into executable. Probably we can add versioning support to 12016 # collect2, so additional links can be useful in future. 12017 aix,yes) # traditional libtool 12018 dynamic_linker='AIX unversionable lib.so' 12019 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12020 # instead of lib<name>.a to let people know that these are not 12021 # typical AIX shared libraries. 12022 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12023 ;; 12024 aix,no) # traditional AIX only 12025 dynamic_linker='AIX lib.a(lib.so.V)' 12026 # We preserve .a as extension for shared libraries through AIX4.2 12027 # and later when we are not doing run time linking. 12028 library_names_spec='$libname$release.a $libname.a' 12029 soname_spec='$libname$release$shared_ext$major' 12030 ;; 12031 svr4,*) # full svr4 only 12032 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12033 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12034 # We do not specify a path in Import Files, so LIBPATH fires. 12035 shlibpath_overrides_runpath=yes 12036 ;; 12037 *,yes) # both, prefer svr4 12038 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12039 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12040 # unpreferred sharedlib libNAME.a needs extra handling 12041 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 12042 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 12043 # We do not specify a path in Import Files, so LIBPATH fires. 12044 shlibpath_overrides_runpath=yes 12045 ;; 12046 *,no) # both, prefer aix 12047 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12048 library_names_spec='$libname$release.a $libname.a' 12049 soname_spec='$libname$release$shared_ext$major' 12050 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12051 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 12052 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 12053 ;; 12054 esac 12055 shlibpath_var=LIBPATH 12056 fi 12057 ;; 12058 12059amigaos*) 12060 case $host_cpu in 12061 powerpc) 12062 # Since July 2007 AmigaOS4 officially supports .so libraries. 12063 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12064 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12065 ;; 12066 m68k) 12067 library_names_spec='$libname.ixlibrary $libname.a' 12068 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12069 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 12070 ;; 12071 esac 12072 ;; 12073 12074beos*) 12075 library_names_spec='$libname$shared_ext' 12076 dynamic_linker="$host_os ld.so" 12077 shlibpath_var=LIBRARY_PATH 12078 ;; 12079 12080bsdi[45]*) 12081 version_type=linux # correct to gnu/linux during the next big refactor 12082 need_version=no 12083 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12084 soname_spec='$libname$release$shared_ext$major' 12085 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12086 shlibpath_var=LD_LIBRARY_PATH 12087 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12088 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12089 # the default ld.so.conf also contains /usr/contrib/lib and 12090 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12091 # libtool to hard-code these into programs 12092 ;; 12093 12094cygwin* | mingw* | pw32* | cegcc*) 12095 version_type=windows 12096 shrext_cmds=.dll 12097 need_version=no 12098 need_lib_prefix=no 12099 12100 case $GCC,$cc_basename in 12101 yes,*) 12102 # gcc 12103 library_names_spec='$libname.dll.a' 12104 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12105 postinstall_cmds='base_file=`basename \$file`~ 12106 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12107 dldir=$destdir/`dirname \$dlpath`~ 12108 test -d \$dldir || mkdir -p \$dldir~ 12109 $install_prog $dir/$dlname \$dldir/$dlname~ 12110 chmod a+x \$dldir/$dlname~ 12111 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12112 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12113 fi' 12114 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12115 dlpath=$dir/\$dldll~ 12116 $RM \$dlpath' 12117 shlibpath_overrides_runpath=yes 12118 12119 case $host_os in 12120 cygwin*) 12121 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12122 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12123 12124 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12125 ;; 12126 mingw* | cegcc*) 12127 # MinGW DLLs use traditional 'lib' prefix 12128 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12129 ;; 12130 pw32*) 12131 # pw32 DLLs use 'pw' prefix rather than 'lib' 12132 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12133 ;; 12134 esac 12135 dynamic_linker='Win32 ld.exe' 12136 ;; 12137 12138 *,cl*) 12139 # Native MSVC 12140 libname_spec='$name' 12141 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12142 library_names_spec='$libname.dll.lib' 12143 12144 case $build_os in 12145 mingw*) 12146 sys_lib_search_path_spec= 12147 lt_save_ifs=$IFS 12148 IFS=';' 12149 for lt_path in $LIB 12150 do 12151 IFS=$lt_save_ifs 12152 # Let DOS variable expansion print the short 8.3 style file name. 12153 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12154 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12155 done 12156 IFS=$lt_save_ifs 12157 # Convert to MSYS style. 12158 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12159 ;; 12160 cygwin*) 12161 # Convert to unix form, then to dos form, then back to unix form 12162 # but this time dos style (no spaces!) so that the unix form looks 12163 # like /cygdrive/c/PROGRA~1:/cygdr... 12164 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12165 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12166 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12167 ;; 12168 *) 12169 sys_lib_search_path_spec=$LIB 12170 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12171 # It is most probably a Windows format PATH. 12172 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12173 else 12174 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12175 fi 12176 # FIXME: find the short name or the path components, as spaces are 12177 # common. (e.g. "Program Files" -> "PROGRA~1") 12178 ;; 12179 esac 12180 12181 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12182 postinstall_cmds='base_file=`basename \$file`~ 12183 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12184 dldir=$destdir/`dirname \$dlpath`~ 12185 test -d \$dldir || mkdir -p \$dldir~ 12186 $install_prog $dir/$dlname \$dldir/$dlname' 12187 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12188 dlpath=$dir/\$dldll~ 12189 $RM \$dlpath' 12190 shlibpath_overrides_runpath=yes 12191 dynamic_linker='Win32 link.exe' 12192 ;; 12193 12194 *) 12195 # Assume MSVC wrapper 12196 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12197 dynamic_linker='Win32 ld.exe' 12198 ;; 12199 esac 12200 # FIXME: first we should search . and the directory the executable is in 12201 shlibpath_var=PATH 12202 ;; 12203 12204darwin* | rhapsody*) 12205 dynamic_linker="$host_os dyld" 12206 version_type=darwin 12207 need_lib_prefix=no 12208 need_version=no 12209 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12210 soname_spec='$libname$release$major$shared_ext' 12211 shlibpath_overrides_runpath=yes 12212 shlibpath_var=DYLD_LIBRARY_PATH 12213 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12214 12215 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12216 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12217 ;; 12218 12219dgux*) 12220 version_type=linux # correct to gnu/linux during the next big refactor 12221 need_lib_prefix=no 12222 need_version=no 12223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12224 soname_spec='$libname$release$shared_ext$major' 12225 shlibpath_var=LD_LIBRARY_PATH 12226 ;; 12227 12228freebsd* | dragonfly*) 12229 # DragonFly does not have aout. When/if they implement a new 12230 # versioning mechanism, adjust this. 12231 if test -x /usr/bin/objformat; then 12232 objformat=`/usr/bin/objformat` 12233 else 12234 case $host_os in 12235 freebsd[23].*) objformat=aout ;; 12236 *) objformat=elf ;; 12237 esac 12238 fi 12239 version_type=freebsd-$objformat 12240 case $version_type in 12241 freebsd-elf*) 12242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12243 soname_spec='$libname$release$shared_ext$major' 12244 need_version=no 12245 need_lib_prefix=no 12246 ;; 12247 freebsd-*) 12248 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12249 need_version=yes 12250 ;; 12251 esac 12252 shlibpath_var=LD_LIBRARY_PATH 12253 case $host_os in 12254 freebsd2.*) 12255 shlibpath_overrides_runpath=yes 12256 ;; 12257 freebsd3.[01]* | freebsdelf3.[01]*) 12258 shlibpath_overrides_runpath=yes 12259 hardcode_into_libs=yes 12260 ;; 12261 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12262 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12263 shlibpath_overrides_runpath=no 12264 hardcode_into_libs=yes 12265 ;; 12266 *) # from 4.6 on, and DragonFly 12267 shlibpath_overrides_runpath=yes 12268 hardcode_into_libs=yes 12269 ;; 12270 esac 12271 ;; 12272 12273haiku*) 12274 version_type=linux # correct to gnu/linux during the next big refactor 12275 need_lib_prefix=no 12276 need_version=no 12277 dynamic_linker="$host_os runtime_loader" 12278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12279 soname_spec='$libname$release$shared_ext$major' 12280 shlibpath_var=LIBRARY_PATH 12281 shlibpath_overrides_runpath=no 12282 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12283 hardcode_into_libs=yes 12284 ;; 12285 12286hpux9* | hpux10* | hpux11*) 12287 # Give a soname corresponding to the major version so that dld.sl refuses to 12288 # link against other versions. 12289 version_type=sunos 12290 need_lib_prefix=no 12291 need_version=no 12292 case $host_cpu in 12293 ia64*) 12294 shrext_cmds='.so' 12295 hardcode_into_libs=yes 12296 dynamic_linker="$host_os dld.so" 12297 shlibpath_var=LD_LIBRARY_PATH 12298 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12300 soname_spec='$libname$release$shared_ext$major' 12301 if test 32 = "$HPUX_IA64_MODE"; then 12302 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12303 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12304 else 12305 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12306 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12307 fi 12308 ;; 12309 hppa*64*) 12310 shrext_cmds='.sl' 12311 hardcode_into_libs=yes 12312 dynamic_linker="$host_os dld.sl" 12313 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12314 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12315 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12316 soname_spec='$libname$release$shared_ext$major' 12317 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12318 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12319 ;; 12320 *) 12321 shrext_cmds='.sl' 12322 dynamic_linker="$host_os dld.sl" 12323 shlibpath_var=SHLIB_PATH 12324 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12326 soname_spec='$libname$release$shared_ext$major' 12327 ;; 12328 esac 12329 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12330 postinstall_cmds='chmod 555 $lib' 12331 # or fails outright, so override atomically: 12332 install_override_mode=555 12333 ;; 12334 12335interix[3-9]*) 12336 version_type=linux # correct to gnu/linux during the next big refactor 12337 need_lib_prefix=no 12338 need_version=no 12339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12340 soname_spec='$libname$release$shared_ext$major' 12341 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12342 shlibpath_var=LD_LIBRARY_PATH 12343 shlibpath_overrides_runpath=no 12344 hardcode_into_libs=yes 12345 ;; 12346 12347irix5* | irix6* | nonstopux*) 12348 case $host_os in 12349 nonstopux*) version_type=nonstopux ;; 12350 *) 12351 if test yes = "$lt_cv_prog_gnu_ld"; then 12352 version_type=linux # correct to gnu/linux during the next big refactor 12353 else 12354 version_type=irix 12355 fi ;; 12356 esac 12357 need_lib_prefix=no 12358 need_version=no 12359 soname_spec='$libname$release$shared_ext$major' 12360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12361 case $host_os in 12362 irix5* | nonstopux*) 12363 libsuff= shlibsuff= 12364 ;; 12365 *) 12366 case $LD in # libtool.m4 will add one of these switches to LD 12367 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12368 libsuff= shlibsuff= libmagic=32-bit;; 12369 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12370 libsuff=32 shlibsuff=N32 libmagic=N32;; 12371 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12372 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12373 *) libsuff= shlibsuff= libmagic=never-match;; 12374 esac 12375 ;; 12376 esac 12377 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12378 shlibpath_overrides_runpath=no 12379 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12380 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12381 hardcode_into_libs=yes 12382 ;; 12383 12384# No shared lib support for Linux oldld, aout, or coff. 12385linux*oldld* | linux*aout* | linux*coff*) 12386 dynamic_linker=no 12387 ;; 12388 12389linux*android*) 12390 version_type=none # Android doesn't support versioned libraries. 12391 need_lib_prefix=no 12392 need_version=no 12393 library_names_spec='$libname$release$shared_ext' 12394 soname_spec='$libname$release$shared_ext' 12395 finish_cmds= 12396 shlibpath_var=LD_LIBRARY_PATH 12397 shlibpath_overrides_runpath=yes 12398 12399 # This implies no fast_install, which is unacceptable. 12400 # Some rework will be needed to allow for fast_install 12401 # before this can be enabled. 12402 hardcode_into_libs=yes 12403 12404 dynamic_linker='Android linker' 12405 # Don't embed -rpath directories since the linker doesn't support them. 12406 hardcode_libdir_flag_spec='-L$libdir' 12407 ;; 12408 12409# This must be glibc/ELF. 12410linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12411 version_type=linux # correct to gnu/linux during the next big refactor 12412 need_lib_prefix=no 12413 need_version=no 12414 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12415 soname_spec='$libname$release$shared_ext$major' 12416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12417 shlibpath_var=LD_LIBRARY_PATH 12418 shlibpath_overrides_runpath=no 12419 12420 # Some binutils ld are patched to set DT_RUNPATH 12421 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12422 $as_echo_n "(cached) " >&6 12423else 12424 lt_cv_shlibpath_overrides_runpath=no 12425 save_LDFLAGS=$LDFLAGS 12426 save_libdir=$libdir 12427 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12428 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12430/* end confdefs.h. */ 12431 12432int 12433main () 12434{ 12435 12436 ; 12437 return 0; 12438} 12439_ACEOF 12440if ac_fn_c_try_link "$LINENO"; then : 12441 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12442 lt_cv_shlibpath_overrides_runpath=yes 12443fi 12444fi 12445rm -f core conftest.err conftest.$ac_objext \ 12446 conftest$ac_exeext conftest.$ac_ext 12447 LDFLAGS=$save_LDFLAGS 12448 libdir=$save_libdir 12449 12450fi 12451 12452 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12453 12454 # This implies no fast_install, which is unacceptable. 12455 # Some rework will be needed to allow for fast_install 12456 # before this can be enabled. 12457 hardcode_into_libs=yes 12458 12459 # Ideally, we could use ldconfig to report *all* directores which are 12460 # searched for libraries, however this is still not possible. Aside from not 12461 # being certain /sbin/ldconfig is available, command 12462 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12463 # even though it is searched at run-time. Try to do the best guess by 12464 # appending ld.so.conf contents (and includes) to the search path. 12465 if test -f /etc/ld.so.conf; then 12466 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' ' '` 12467 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12468 fi 12469 12470 # We used to test for /lib/ld.so.1 and disable shared libraries on 12471 # powerpc, because MkLinux only supported shared libraries with the 12472 # GNU dynamic linker. Since this was broken with cross compilers, 12473 # most powerpc-linux boxes support dynamic linking these days and 12474 # people can always --disable-shared, the test was removed, and we 12475 # assume the GNU/Linux dynamic linker is in use. 12476 dynamic_linker='GNU/Linux ld.so' 12477 ;; 12478 12479netbsdelf*-gnu) 12480 version_type=linux 12481 need_lib_prefix=no 12482 need_version=no 12483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12484 soname_spec='${libname}${release}${shared_ext}$major' 12485 shlibpath_var=LD_LIBRARY_PATH 12486 shlibpath_overrides_runpath=no 12487 hardcode_into_libs=yes 12488 dynamic_linker='NetBSD ld.elf_so' 12489 ;; 12490 12491netbsd*) 12492 version_type=sunos 12493 need_lib_prefix=no 12494 need_version=no 12495 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12496 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12498 dynamic_linker='NetBSD (a.out) ld.so' 12499 else 12500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12501 soname_spec='$libname$release$shared_ext$major' 12502 dynamic_linker='NetBSD ld.elf_so' 12503 fi 12504 shlibpath_var=LD_LIBRARY_PATH 12505 shlibpath_overrides_runpath=yes 12506 hardcode_into_libs=yes 12507 ;; 12508 12509newsos6) 12510 version_type=linux # correct to gnu/linux during the next big refactor 12511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12512 shlibpath_var=LD_LIBRARY_PATH 12513 shlibpath_overrides_runpath=yes 12514 ;; 12515 12516*nto* | *qnx*) 12517 version_type=qnx 12518 need_lib_prefix=no 12519 need_version=no 12520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12521 soname_spec='$libname$release$shared_ext$major' 12522 shlibpath_var=LD_LIBRARY_PATH 12523 shlibpath_overrides_runpath=no 12524 hardcode_into_libs=yes 12525 dynamic_linker='ldqnx.so' 12526 ;; 12527 12528openbsd* | bitrig*) 12529 version_type=sunos 12530 sys_lib_dlsearch_path_spec=/usr/lib 12531 need_lib_prefix=no 12532 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12533 need_version=no 12534 else 12535 need_version=yes 12536 fi 12537 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12539 shlibpath_var=LD_LIBRARY_PATH 12540 shlibpath_overrides_runpath=yes 12541 ;; 12542 12543os2*) 12544 libname_spec='$name' 12545 version_type=windows 12546 shrext_cmds=.dll 12547 need_version=no 12548 need_lib_prefix=no 12549 # OS/2 can only load a DLL with a base name of 8 characters or less. 12550 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12551 v=$($ECHO $release$versuffix | tr -d .-); 12552 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12553 $ECHO $n$v`$shared_ext' 12554 library_names_spec='${libname}_dll.$libext' 12555 dynamic_linker='OS/2 ld.exe' 12556 shlibpath_var=BEGINLIBPATH 12557 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12558 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12559 postinstall_cmds='base_file=`basename \$file`~ 12560 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12561 dldir=$destdir/`dirname \$dlpath`~ 12562 test -d \$dldir || mkdir -p \$dldir~ 12563 $install_prog $dir/$dlname \$dldir/$dlname~ 12564 chmod a+x \$dldir/$dlname~ 12565 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12566 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12567 fi' 12568 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12569 dlpath=$dir/\$dldll~ 12570 $RM \$dlpath' 12571 ;; 12572 12573osf3* | osf4* | osf5*) 12574 version_type=osf 12575 need_lib_prefix=no 12576 need_version=no 12577 soname_spec='$libname$release$shared_ext$major' 12578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12579 shlibpath_var=LD_LIBRARY_PATH 12580 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12582 ;; 12583 12584rdos*) 12585 dynamic_linker=no 12586 ;; 12587 12588solaris*) 12589 version_type=linux # correct to gnu/linux during the next big refactor 12590 need_lib_prefix=no 12591 need_version=no 12592 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12593 soname_spec='$libname$release$shared_ext$major' 12594 shlibpath_var=LD_LIBRARY_PATH 12595 shlibpath_overrides_runpath=yes 12596 hardcode_into_libs=yes 12597 # ldd complains unless libraries are executable 12598 postinstall_cmds='chmod +x $lib' 12599 ;; 12600 12601sunos4*) 12602 version_type=sunos 12603 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12604 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12605 shlibpath_var=LD_LIBRARY_PATH 12606 shlibpath_overrides_runpath=yes 12607 if test yes = "$with_gnu_ld"; then 12608 need_lib_prefix=no 12609 fi 12610 need_version=yes 12611 ;; 12612 12613sysv4 | sysv4.3*) 12614 version_type=linux # correct to gnu/linux during the next big refactor 12615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12616 soname_spec='$libname$release$shared_ext$major' 12617 shlibpath_var=LD_LIBRARY_PATH 12618 case $host_vendor in 12619 sni) 12620 shlibpath_overrides_runpath=no 12621 need_lib_prefix=no 12622 runpath_var=LD_RUN_PATH 12623 ;; 12624 siemens) 12625 need_lib_prefix=no 12626 ;; 12627 motorola) 12628 need_lib_prefix=no 12629 need_version=no 12630 shlibpath_overrides_runpath=no 12631 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12632 ;; 12633 esac 12634 ;; 12635 12636sysv4*MP*) 12637 if test -d /usr/nec; then 12638 version_type=linux # correct to gnu/linux during the next big refactor 12639 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12640 soname_spec='$libname$shared_ext.$major' 12641 shlibpath_var=LD_LIBRARY_PATH 12642 fi 12643 ;; 12644 12645sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12646 version_type=sco 12647 need_lib_prefix=no 12648 need_version=no 12649 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12650 soname_spec='$libname$release$shared_ext$major' 12651 shlibpath_var=LD_LIBRARY_PATH 12652 shlibpath_overrides_runpath=yes 12653 hardcode_into_libs=yes 12654 if test yes = "$with_gnu_ld"; then 12655 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12656 else 12657 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12658 case $host_os in 12659 sco3.2v5*) 12660 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12661 ;; 12662 esac 12663 fi 12664 sys_lib_dlsearch_path_spec='/usr/lib' 12665 ;; 12666 12667tpf*) 12668 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12669 version_type=linux # correct to gnu/linux during the next big refactor 12670 need_lib_prefix=no 12671 need_version=no 12672 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12673 shlibpath_var=LD_LIBRARY_PATH 12674 shlibpath_overrides_runpath=no 12675 hardcode_into_libs=yes 12676 ;; 12677 12678uts4*) 12679 version_type=linux # correct to gnu/linux during the next big refactor 12680 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12681 soname_spec='$libname$release$shared_ext$major' 12682 shlibpath_var=LD_LIBRARY_PATH 12683 ;; 12684 12685*) 12686 dynamic_linker=no 12687 ;; 12688esac 12689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12690$as_echo "$dynamic_linker" >&6; } 12691test no = "$dynamic_linker" && can_build_shared=no 12692 12693variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12694if test yes = "$GCC"; then 12695 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12696fi 12697 12698if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12699 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12700fi 12701 12702if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12703 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12704fi 12705 12706# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12707configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12708 12709# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12710func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12711 12712# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12713configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12812$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12813hardcode_action= 12814if test -n "$hardcode_libdir_flag_spec" || 12815 test -n "$runpath_var" || 12816 test yes = "$hardcode_automatic"; then 12817 12818 # We can hardcode non-existent directories. 12819 if test no != "$hardcode_direct" && 12820 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12821 # have to relink, otherwise we might link with an installed library 12822 # when we should be linking with a yet-to-be-installed one 12823 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12824 test no != "$hardcode_minus_L"; then 12825 # Linking always hardcodes the temporary library directory. 12826 hardcode_action=relink 12827 else 12828 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12829 hardcode_action=immediate 12830 fi 12831else 12832 # We cannot hardcode anything, or else we can only hardcode existing 12833 # directories. 12834 hardcode_action=unsupported 12835fi 12836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12837$as_echo "$hardcode_action" >&6; } 12838 12839if test relink = "$hardcode_action" || 12840 test yes = "$inherit_rpath"; then 12841 # Fast installation is not supported 12842 enable_fast_install=no 12843elif test yes = "$shlibpath_overrides_runpath" || 12844 test no = "$enable_shared"; then 12845 # Fast installation is not necessary 12846 enable_fast_install=needless 12847fi 12848 12849 12850 12851 12852 12853 12854 if test yes != "$enable_dlopen"; then 12855 enable_dlopen=unknown 12856 enable_dlopen_self=unknown 12857 enable_dlopen_self_static=unknown 12858else 12859 lt_cv_dlopen=no 12860 lt_cv_dlopen_libs= 12861 12862 case $host_os in 12863 beos*) 12864 lt_cv_dlopen=load_add_on 12865 lt_cv_dlopen_libs= 12866 lt_cv_dlopen_self=yes 12867 ;; 12868 12869 mingw* | pw32* | cegcc*) 12870 lt_cv_dlopen=LoadLibrary 12871 lt_cv_dlopen_libs= 12872 ;; 12873 12874 cygwin*) 12875 lt_cv_dlopen=dlopen 12876 lt_cv_dlopen_libs= 12877 ;; 12878 12879 darwin*) 12880 # if libdl is installed we need to link against it 12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12882$as_echo_n "checking for dlopen in -ldl... " >&6; } 12883if ${ac_cv_lib_dl_dlopen+:} false; then : 12884 $as_echo_n "(cached) " >&6 12885else 12886 ac_check_lib_save_LIBS=$LIBS 12887LIBS="-ldl $LIBS" 12888cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12889/* end confdefs.h. */ 12890 12891/* Override any GCC internal prototype to avoid an error. 12892 Use char because int might match the return type of a GCC 12893 builtin and then its argument prototype would still apply. */ 12894#ifdef __cplusplus 12895extern "C" 12896#endif 12897char dlopen (); 12898int 12899main () 12900{ 12901return dlopen (); 12902 ; 12903 return 0; 12904} 12905_ACEOF 12906if ac_fn_c_try_link "$LINENO"; then : 12907 ac_cv_lib_dl_dlopen=yes 12908else 12909 ac_cv_lib_dl_dlopen=no 12910fi 12911rm -f core conftest.err conftest.$ac_objext \ 12912 conftest$ac_exeext conftest.$ac_ext 12913LIBS=$ac_check_lib_save_LIBS 12914fi 12915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12916$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12917if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12918 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12919else 12920 12921 lt_cv_dlopen=dyld 12922 lt_cv_dlopen_libs= 12923 lt_cv_dlopen_self=yes 12924 12925fi 12926 12927 ;; 12928 12929 tpf*) 12930 # Don't try to run any link tests for TPF. We know it's impossible 12931 # because TPF is a cross-compiler, and we know how we open DSOs. 12932 lt_cv_dlopen=dlopen 12933 lt_cv_dlopen_libs= 12934 lt_cv_dlopen_self=no 12935 ;; 12936 12937 *) 12938 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12939if test "x$ac_cv_func_shl_load" = xyes; then : 12940 lt_cv_dlopen=shl_load 12941else 12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12943$as_echo_n "checking for shl_load in -ldld... " >&6; } 12944if ${ac_cv_lib_dld_shl_load+:} false; then : 12945 $as_echo_n "(cached) " >&6 12946else 12947 ac_check_lib_save_LIBS=$LIBS 12948LIBS="-ldld $LIBS" 12949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12950/* end confdefs.h. */ 12951 12952/* Override any GCC internal prototype to avoid an error. 12953 Use char because int might match the return type of a GCC 12954 builtin and then its argument prototype would still apply. */ 12955#ifdef __cplusplus 12956extern "C" 12957#endif 12958char shl_load (); 12959int 12960main () 12961{ 12962return shl_load (); 12963 ; 12964 return 0; 12965} 12966_ACEOF 12967if ac_fn_c_try_link "$LINENO"; then : 12968 ac_cv_lib_dld_shl_load=yes 12969else 12970 ac_cv_lib_dld_shl_load=no 12971fi 12972rm -f core conftest.err conftest.$ac_objext \ 12973 conftest$ac_exeext conftest.$ac_ext 12974LIBS=$ac_check_lib_save_LIBS 12975fi 12976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12977$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12978if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12979 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12980else 12981 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12982if test "x$ac_cv_func_dlopen" = xyes; then : 12983 lt_cv_dlopen=dlopen 12984else 12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12986$as_echo_n "checking for dlopen in -ldl... " >&6; } 12987if ${ac_cv_lib_dl_dlopen+:} false; then : 12988 $as_echo_n "(cached) " >&6 12989else 12990 ac_check_lib_save_LIBS=$LIBS 12991LIBS="-ldl $LIBS" 12992cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12993/* end confdefs.h. */ 12994 12995/* Override any GCC internal prototype to avoid an error. 12996 Use char because int might match the return type of a GCC 12997 builtin and then its argument prototype would still apply. */ 12998#ifdef __cplusplus 12999extern "C" 13000#endif 13001char dlopen (); 13002int 13003main () 13004{ 13005return dlopen (); 13006 ; 13007 return 0; 13008} 13009_ACEOF 13010if ac_fn_c_try_link "$LINENO"; then : 13011 ac_cv_lib_dl_dlopen=yes 13012else 13013 ac_cv_lib_dl_dlopen=no 13014fi 13015rm -f core conftest.err conftest.$ac_objext \ 13016 conftest$ac_exeext conftest.$ac_ext 13017LIBS=$ac_check_lib_save_LIBS 13018fi 13019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13020$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13021if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13022 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13023else 13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13025$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13026if ${ac_cv_lib_svld_dlopen+:} false; then : 13027 $as_echo_n "(cached) " >&6 13028else 13029 ac_check_lib_save_LIBS=$LIBS 13030LIBS="-lsvld $LIBS" 13031cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13032/* end confdefs.h. */ 13033 13034/* Override any GCC internal prototype to avoid an error. 13035 Use char because int might match the return type of a GCC 13036 builtin and then its argument prototype would still apply. */ 13037#ifdef __cplusplus 13038extern "C" 13039#endif 13040char dlopen (); 13041int 13042main () 13043{ 13044return dlopen (); 13045 ; 13046 return 0; 13047} 13048_ACEOF 13049if ac_fn_c_try_link "$LINENO"; then : 13050 ac_cv_lib_svld_dlopen=yes 13051else 13052 ac_cv_lib_svld_dlopen=no 13053fi 13054rm -f core conftest.err conftest.$ac_objext \ 13055 conftest$ac_exeext conftest.$ac_ext 13056LIBS=$ac_check_lib_save_LIBS 13057fi 13058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13059$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13060if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13061 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13062else 13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13064$as_echo_n "checking for dld_link in -ldld... " >&6; } 13065if ${ac_cv_lib_dld_dld_link+:} false; then : 13066 $as_echo_n "(cached) " >&6 13067else 13068 ac_check_lib_save_LIBS=$LIBS 13069LIBS="-ldld $LIBS" 13070cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13071/* end confdefs.h. */ 13072 13073/* Override any GCC internal prototype to avoid an error. 13074 Use char because int might match the return type of a GCC 13075 builtin and then its argument prototype would still apply. */ 13076#ifdef __cplusplus 13077extern "C" 13078#endif 13079char dld_link (); 13080int 13081main () 13082{ 13083return dld_link (); 13084 ; 13085 return 0; 13086} 13087_ACEOF 13088if ac_fn_c_try_link "$LINENO"; then : 13089 ac_cv_lib_dld_dld_link=yes 13090else 13091 ac_cv_lib_dld_dld_link=no 13092fi 13093rm -f core conftest.err conftest.$ac_objext \ 13094 conftest$ac_exeext conftest.$ac_ext 13095LIBS=$ac_check_lib_save_LIBS 13096fi 13097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13098$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13099if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13100 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13101fi 13102 13103 13104fi 13105 13106 13107fi 13108 13109 13110fi 13111 13112 13113fi 13114 13115 13116fi 13117 13118 ;; 13119 esac 13120 13121 if test no = "$lt_cv_dlopen"; then 13122 enable_dlopen=no 13123 else 13124 enable_dlopen=yes 13125 fi 13126 13127 case $lt_cv_dlopen in 13128 dlopen) 13129 save_CPPFLAGS=$CPPFLAGS 13130 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13131 13132 save_LDFLAGS=$LDFLAGS 13133 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13134 13135 save_LIBS=$LIBS 13136 LIBS="$lt_cv_dlopen_libs $LIBS" 13137 13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13139$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13140if ${lt_cv_dlopen_self+:} false; then : 13141 $as_echo_n "(cached) " >&6 13142else 13143 if test yes = "$cross_compiling"; then : 13144 lt_cv_dlopen_self=cross 13145else 13146 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13147 lt_status=$lt_dlunknown 13148 cat > conftest.$ac_ext <<_LT_EOF 13149#line $LINENO "configure" 13150#include "confdefs.h" 13151 13152#if HAVE_DLFCN_H 13153#include <dlfcn.h> 13154#endif 13155 13156#include <stdio.h> 13157 13158#ifdef RTLD_GLOBAL 13159# define LT_DLGLOBAL RTLD_GLOBAL 13160#else 13161# ifdef DL_GLOBAL 13162# define LT_DLGLOBAL DL_GLOBAL 13163# else 13164# define LT_DLGLOBAL 0 13165# endif 13166#endif 13167 13168/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13169 find out it does not work in some platform. */ 13170#ifndef LT_DLLAZY_OR_NOW 13171# ifdef RTLD_LAZY 13172# define LT_DLLAZY_OR_NOW RTLD_LAZY 13173# else 13174# ifdef DL_LAZY 13175# define LT_DLLAZY_OR_NOW DL_LAZY 13176# else 13177# ifdef RTLD_NOW 13178# define LT_DLLAZY_OR_NOW RTLD_NOW 13179# else 13180# ifdef DL_NOW 13181# define LT_DLLAZY_OR_NOW DL_NOW 13182# else 13183# define LT_DLLAZY_OR_NOW 0 13184# endif 13185# endif 13186# endif 13187# endif 13188#endif 13189 13190/* When -fvisibility=hidden is used, assume the code has been annotated 13191 correspondingly for the symbols needed. */ 13192#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13193int fnord () __attribute__((visibility("default"))); 13194#endif 13195 13196int fnord () { return 42; } 13197int main () 13198{ 13199 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13200 int status = $lt_dlunknown; 13201 13202 if (self) 13203 { 13204 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13205 else 13206 { 13207 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13208 else puts (dlerror ()); 13209 } 13210 /* dlclose (self); */ 13211 } 13212 else 13213 puts (dlerror ()); 13214 13215 return status; 13216} 13217_LT_EOF 13218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13219 (eval $ac_link) 2>&5 13220 ac_status=$? 13221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13222 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13223 (./conftest; exit; ) >&5 2>/dev/null 13224 lt_status=$? 13225 case x$lt_status in 13226 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13227 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13228 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13229 esac 13230 else : 13231 # compilation failed 13232 lt_cv_dlopen_self=no 13233 fi 13234fi 13235rm -fr conftest* 13236 13237 13238fi 13239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13240$as_echo "$lt_cv_dlopen_self" >&6; } 13241 13242 if test yes = "$lt_cv_dlopen_self"; then 13243 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13245$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13246if ${lt_cv_dlopen_self_static+:} false; then : 13247 $as_echo_n "(cached) " >&6 13248else 13249 if test yes = "$cross_compiling"; then : 13250 lt_cv_dlopen_self_static=cross 13251else 13252 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13253 lt_status=$lt_dlunknown 13254 cat > conftest.$ac_ext <<_LT_EOF 13255#line $LINENO "configure" 13256#include "confdefs.h" 13257 13258#if HAVE_DLFCN_H 13259#include <dlfcn.h> 13260#endif 13261 13262#include <stdio.h> 13263 13264#ifdef RTLD_GLOBAL 13265# define LT_DLGLOBAL RTLD_GLOBAL 13266#else 13267# ifdef DL_GLOBAL 13268# define LT_DLGLOBAL DL_GLOBAL 13269# else 13270# define LT_DLGLOBAL 0 13271# endif 13272#endif 13273 13274/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13275 find out it does not work in some platform. */ 13276#ifndef LT_DLLAZY_OR_NOW 13277# ifdef RTLD_LAZY 13278# define LT_DLLAZY_OR_NOW RTLD_LAZY 13279# else 13280# ifdef DL_LAZY 13281# define LT_DLLAZY_OR_NOW DL_LAZY 13282# else 13283# ifdef RTLD_NOW 13284# define LT_DLLAZY_OR_NOW RTLD_NOW 13285# else 13286# ifdef DL_NOW 13287# define LT_DLLAZY_OR_NOW DL_NOW 13288# else 13289# define LT_DLLAZY_OR_NOW 0 13290# endif 13291# endif 13292# endif 13293# endif 13294#endif 13295 13296/* When -fvisibility=hidden is used, assume the code has been annotated 13297 correspondingly for the symbols needed. */ 13298#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13299int fnord () __attribute__((visibility("default"))); 13300#endif 13301 13302int fnord () { return 42; } 13303int main () 13304{ 13305 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13306 int status = $lt_dlunknown; 13307 13308 if (self) 13309 { 13310 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13311 else 13312 { 13313 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13314 else puts (dlerror ()); 13315 } 13316 /* dlclose (self); */ 13317 } 13318 else 13319 puts (dlerror ()); 13320 13321 return status; 13322} 13323_LT_EOF 13324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13325 (eval $ac_link) 2>&5 13326 ac_status=$? 13327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13328 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13329 (./conftest; exit; ) >&5 2>/dev/null 13330 lt_status=$? 13331 case x$lt_status in 13332 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13333 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13334 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13335 esac 13336 else : 13337 # compilation failed 13338 lt_cv_dlopen_self_static=no 13339 fi 13340fi 13341rm -fr conftest* 13342 13343 13344fi 13345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13346$as_echo "$lt_cv_dlopen_self_static" >&6; } 13347 fi 13348 13349 CPPFLAGS=$save_CPPFLAGS 13350 LDFLAGS=$save_LDFLAGS 13351 LIBS=$save_LIBS 13352 ;; 13353 esac 13354 13355 case $lt_cv_dlopen_self in 13356 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13357 *) enable_dlopen_self=unknown ;; 13358 esac 13359 13360 case $lt_cv_dlopen_self_static in 13361 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13362 *) enable_dlopen_self_static=unknown ;; 13363 esac 13364fi 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382striplib= 13383old_striplib= 13384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13385$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13386if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13387 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13388 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13390$as_echo "yes" >&6; } 13391else 13392# FIXME - insert some real tests, host_os isn't really good enough 13393 case $host_os in 13394 darwin*) 13395 if test -n "$STRIP"; then 13396 striplib="$STRIP -x" 13397 old_striplib="$STRIP -S" 13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13399$as_echo "yes" >&6; } 13400 else 13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13402$as_echo "no" >&6; } 13403 fi 13404 ;; 13405 *) 13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13407$as_echo "no" >&6; } 13408 ;; 13409 esac 13410fi 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 # Report what library types will actually be built 13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13425$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13427$as_echo "$can_build_shared" >&6; } 13428 13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13430$as_echo_n "checking whether to build shared libraries... " >&6; } 13431 test no = "$can_build_shared" && enable_shared=no 13432 13433 # On AIX, shared libraries and static libraries use the same namespace, and 13434 # are all built from PIC. 13435 case $host_os in 13436 aix3*) 13437 test yes = "$enable_shared" && enable_static=no 13438 if test -n "$RANLIB"; then 13439 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13440 postinstall_cmds='$RANLIB $lib' 13441 fi 13442 ;; 13443 13444 aix[4-9]*) 13445 if test ia64 != "$host_cpu"; then 13446 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13447 yes,aix,yes) ;; # shared object as lib.so file only 13448 yes,svr4,*) ;; # shared object as lib.so archive member only 13449 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13450 esac 13451 fi 13452 ;; 13453 esac 13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13455$as_echo "$enable_shared" >&6; } 13456 13457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13458$as_echo_n "checking whether to build static libraries... " >&6; } 13459 # Make sure either enable_shared or enable_static is yes. 13460 test yes = "$enable_shared" || enable_static=yes 13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13462$as_echo "$enable_static" >&6; } 13463 13464 13465 13466 13467fi 13468ac_ext=c 13469ac_cpp='$CPP $CPPFLAGS' 13470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13472ac_compiler_gnu=$ac_cv_c_compiler_gnu 13473 13474CC=$lt_save_CC 13475 13476 if test -n "$CXX" && ( test no != "$CXX" && 13477 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13478 (test g++ != "$CXX"))); then 13479 ac_ext=cpp 13480ac_cpp='$CXXCPP $CPPFLAGS' 13481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13485$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13486if test -z "$CXXCPP"; then 13487 if ${ac_cv_prog_CXXCPP+:} false; then : 13488 $as_echo_n "(cached) " >&6 13489else 13490 # Double quotes because CXXCPP needs to be expanded 13491 for CXXCPP in "$CXX -E" "/lib/cpp" 13492 do 13493 ac_preproc_ok=false 13494for ac_cxx_preproc_warn_flag in '' yes 13495do 13496 # Use a header file that comes with gcc, so configuring glibc 13497 # with a fresh cross-compiler works. 13498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13499 # <limits.h> exists even on freestanding compilers. 13500 # On the NeXT, cc -E runs the code through the compiler's parser, 13501 # not just through cpp. "Syntax error" is here to catch this case. 13502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13503/* end confdefs.h. */ 13504@%:@ifdef __STDC__ 13505@%:@ include <limits.h> 13506@%:@else 13507@%:@ include <assert.h> 13508@%:@endif 13509 Syntax error 13510_ACEOF 13511if ac_fn_cxx_try_cpp "$LINENO"; then : 13512 13513else 13514 # Broken: fails on valid input. 13515continue 13516fi 13517rm -f conftest.err conftest.i conftest.$ac_ext 13518 13519 # OK, works on sane cases. Now check whether nonexistent headers 13520 # can be detected and how. 13521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13522/* end confdefs.h. */ 13523@%:@include <ac_nonexistent.h> 13524_ACEOF 13525if ac_fn_cxx_try_cpp "$LINENO"; then : 13526 # Broken: success on invalid input. 13527continue 13528else 13529 # Passes both tests. 13530ac_preproc_ok=: 13531break 13532fi 13533rm -f conftest.err conftest.i conftest.$ac_ext 13534 13535done 13536# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13537rm -f conftest.i conftest.err conftest.$ac_ext 13538if $ac_preproc_ok; then : 13539 break 13540fi 13541 13542 done 13543 ac_cv_prog_CXXCPP=$CXXCPP 13544 13545fi 13546 CXXCPP=$ac_cv_prog_CXXCPP 13547else 13548 ac_cv_prog_CXXCPP=$CXXCPP 13549fi 13550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13551$as_echo "$CXXCPP" >&6; } 13552ac_preproc_ok=false 13553for ac_cxx_preproc_warn_flag in '' yes 13554do 13555 # Use a header file that comes with gcc, so configuring glibc 13556 # with a fresh cross-compiler works. 13557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13558 # <limits.h> exists even on freestanding compilers. 13559 # On the NeXT, cc -E runs the code through the compiler's parser, 13560 # not just through cpp. "Syntax error" is here to catch this case. 13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13562/* end confdefs.h. */ 13563@%:@ifdef __STDC__ 13564@%:@ include <limits.h> 13565@%:@else 13566@%:@ include <assert.h> 13567@%:@endif 13568 Syntax error 13569_ACEOF 13570if ac_fn_cxx_try_cpp "$LINENO"; then : 13571 13572else 13573 # Broken: fails on valid input. 13574continue 13575fi 13576rm -f conftest.err conftest.i conftest.$ac_ext 13577 13578 # OK, works on sane cases. Now check whether nonexistent headers 13579 # can be detected and how. 13580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13581/* end confdefs.h. */ 13582@%:@include <ac_nonexistent.h> 13583_ACEOF 13584if ac_fn_cxx_try_cpp "$LINENO"; then : 13585 # Broken: success on invalid input. 13586continue 13587else 13588 # Passes both tests. 13589ac_preproc_ok=: 13590break 13591fi 13592rm -f conftest.err conftest.i conftest.$ac_ext 13593 13594done 13595# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13596rm -f conftest.i conftest.err conftest.$ac_ext 13597if $ac_preproc_ok; then : 13598 13599else 13600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13602as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13603See \`config.log' for more details" "$LINENO" 5; } 13604fi 13605 13606ac_ext=c 13607ac_cpp='$CPP $CPPFLAGS' 13608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13610ac_compiler_gnu=$ac_cv_c_compiler_gnu 13611 13612else 13613 _lt_caught_CXX_error=yes 13614fi 13615 13616ac_ext=cpp 13617ac_cpp='$CXXCPP $CPPFLAGS' 13618ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13619ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13620ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13621 13622archive_cmds_need_lc_CXX=no 13623allow_undefined_flag_CXX= 13624always_export_symbols_CXX=no 13625archive_expsym_cmds_CXX= 13626compiler_needs_object_CXX=no 13627export_dynamic_flag_spec_CXX= 13628hardcode_direct_CXX=no 13629hardcode_direct_absolute_CXX=no 13630hardcode_libdir_flag_spec_CXX= 13631hardcode_libdir_separator_CXX= 13632hardcode_minus_L_CXX=no 13633hardcode_shlibpath_var_CXX=unsupported 13634hardcode_automatic_CXX=no 13635inherit_rpath_CXX=no 13636module_cmds_CXX= 13637module_expsym_cmds_CXX= 13638link_all_deplibs_CXX=unknown 13639old_archive_cmds_CXX=$old_archive_cmds 13640reload_flag_CXX=$reload_flag 13641reload_cmds_CXX=$reload_cmds 13642no_undefined_flag_CXX= 13643whole_archive_flag_spec_CXX= 13644enable_shared_with_static_runtimes_CXX=no 13645 13646# Source file extension for C++ test sources. 13647ac_ext=cpp 13648 13649# Object file extension for compiled C++ test sources. 13650objext=o 13651objext_CXX=$objext 13652 13653# No sense in running all these tests if we already determined that 13654# the CXX compiler isn't working. Some variables (like enable_shared) 13655# are currently assumed to apply to all compilers on this platform, 13656# and will be corrupted by setting them based on a non-working compiler. 13657if test yes != "$_lt_caught_CXX_error"; then 13658 # Code to be used in simple compile tests 13659 lt_simple_compile_test_code="int some_variable = 0;" 13660 13661 # Code to be used in simple link tests 13662 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13663 13664 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13665 13666 13667 13668 13669 13670 13671# If no C compiler was specified, use CC. 13672LTCC=${LTCC-"$CC"} 13673 13674# If no C compiler flags were specified, use CFLAGS. 13675LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13676 13677# Allow CC to be a program name with arguments. 13678compiler=$CC 13679 13680 13681 # save warnings/boilerplate of simple test code 13682 ac_outfile=conftest.$ac_objext 13683echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13684eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13685_lt_compiler_boilerplate=`cat conftest.err` 13686$RM conftest* 13687 13688 ac_outfile=conftest.$ac_objext 13689echo "$lt_simple_link_test_code" >conftest.$ac_ext 13690eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13691_lt_linker_boilerplate=`cat conftest.err` 13692$RM -r conftest* 13693 13694 13695 # Allow CC to be a program name with arguments. 13696 lt_save_CC=$CC 13697 lt_save_CFLAGS=$CFLAGS 13698 lt_save_LD=$LD 13699 lt_save_GCC=$GCC 13700 GCC=$GXX 13701 lt_save_with_gnu_ld=$with_gnu_ld 13702 lt_save_path_LD=$lt_cv_path_LD 13703 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13704 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13705 else 13706 $as_unset lt_cv_prog_gnu_ld 13707 fi 13708 if test -n "${lt_cv_path_LDCXX+set}"; then 13709 lt_cv_path_LD=$lt_cv_path_LDCXX 13710 else 13711 $as_unset lt_cv_path_LD 13712 fi 13713 test -z "${LDCXX+set}" || LD=$LDCXX 13714 CC=${CXX-"c++"} 13715 CFLAGS=$CXXFLAGS 13716 compiler=$CC 13717 compiler_CXX=$CC 13718 func_cc_basename $compiler 13719cc_basename=$func_cc_basename_result 13720 13721 13722 if test -n "$compiler"; then 13723 # We don't want -fno-exception when compiling C++ code, so set the 13724 # no_builtin_flag separately 13725 if test yes = "$GXX"; then 13726 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13727 else 13728 lt_prog_compiler_no_builtin_flag_CXX= 13729 fi 13730 13731 if test yes = "$GXX"; then 13732 # Set up default GNU C++ configuration 13733 13734 13735 13736@%:@ Check whether --with-gnu-ld was given. 13737if test "${with_gnu_ld+set}" = set; then : 13738 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13739else 13740 with_gnu_ld=no 13741fi 13742 13743ac_prog=ld 13744if test yes = "$GCC"; then 13745 # Check if gcc -print-prog-name=ld gives a path. 13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13747$as_echo_n "checking for ld used by $CC... " >&6; } 13748 case $host in 13749 *-*-mingw*) 13750 # gcc leaves a trailing carriage return, which upsets mingw 13751 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13752 *) 13753 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13754 esac 13755 case $ac_prog in 13756 # Accept absolute paths. 13757 [\\/]* | ?:[\\/]*) 13758 re_direlt='/[^/][^/]*/\.\./' 13759 # Canonicalize the pathname of ld 13760 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13761 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13762 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13763 done 13764 test -z "$LD" && LD=$ac_prog 13765 ;; 13766 "") 13767 # If it fails, then pretend we aren't using GCC. 13768 ac_prog=ld 13769 ;; 13770 *) 13771 # If it is relative, then search for the first ld in PATH. 13772 with_gnu_ld=unknown 13773 ;; 13774 esac 13775elif test yes = "$with_gnu_ld"; then 13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13777$as_echo_n "checking for GNU ld... " >&6; } 13778else 13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13780$as_echo_n "checking for non-GNU ld... " >&6; } 13781fi 13782if ${lt_cv_path_LD+:} false; then : 13783 $as_echo_n "(cached) " >&6 13784else 13785 if test -z "$LD"; then 13786 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13787 for ac_dir in $PATH; do 13788 IFS=$lt_save_ifs 13789 test -z "$ac_dir" && ac_dir=. 13790 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13791 lt_cv_path_LD=$ac_dir/$ac_prog 13792 # Check to see if the program is GNU ld. I'd rather use --version, 13793 # but apparently some variants of GNU ld only accept -v. 13794 # Break only if it was the GNU/non-GNU ld that we prefer. 13795 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13796 *GNU* | *'with BFD'*) 13797 test no != "$with_gnu_ld" && break 13798 ;; 13799 *) 13800 test yes != "$with_gnu_ld" && break 13801 ;; 13802 esac 13803 fi 13804 done 13805 IFS=$lt_save_ifs 13806else 13807 lt_cv_path_LD=$LD # Let the user override the test with a path. 13808fi 13809fi 13810 13811LD=$lt_cv_path_LD 13812if test -n "$LD"; then 13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13814$as_echo "$LD" >&6; } 13815else 13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13817$as_echo "no" >&6; } 13818fi 13819test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13821$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13822if ${lt_cv_prog_gnu_ld+:} false; then : 13823 $as_echo_n "(cached) " >&6 13824else 13825 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13826case `$LD -v 2>&1 </dev/null` in 13827*GNU* | *'with BFD'*) 13828 lt_cv_prog_gnu_ld=yes 13829 ;; 13830*) 13831 lt_cv_prog_gnu_ld=no 13832 ;; 13833esac 13834fi 13835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13836$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13837with_gnu_ld=$lt_cv_prog_gnu_ld 13838 13839 13840 13841 13842 13843 13844 13845 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13846 # archiving commands below assume that GNU ld is being used. 13847 if test yes = "$with_gnu_ld"; then 13848 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13849 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' 13850 13851 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13852 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13853 13854 # If archive_cmds runs LD, not CC, wlarc should be empty 13855 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13856 # investigate it a little bit more. (MM) 13857 wlarc='$wl' 13858 13859 # ancient GNU ld didn't support --whole-archive et. al. 13860 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13861 $GREP 'no-whole-archive' > /dev/null; then 13862 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13863 else 13864 whole_archive_flag_spec_CXX= 13865 fi 13866 else 13867 with_gnu_ld=no 13868 wlarc= 13869 13870 # A generic and very simple default shared library creation 13871 # command for GNU C++ for the case where it uses the native 13872 # linker, instead of GNU ld. If possible, this setting should 13873 # overridden to take advantage of the native linker features on 13874 # the platform it is being used on. 13875 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13876 fi 13877 13878 # Commands to make compiler produce verbose output that lists 13879 # what "hidden" libraries, object files and flags are used when 13880 # linking a shared library. 13881 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 13882 13883 else 13884 GXX=no 13885 with_gnu_ld=no 13886 wlarc= 13887 fi 13888 13889 # PORTME: fill in a description of your system's C++ link characteristics 13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13891$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13892 ld_shlibs_CXX=yes 13893 case $host_os in 13894 aix3*) 13895 # FIXME: insert proper C++ library support 13896 ld_shlibs_CXX=no 13897 ;; 13898 aix[4-9]*) 13899 if test ia64 = "$host_cpu"; then 13900 # On IA64, the linker does run time linking by default, so we don't 13901 # have to do anything special. 13902 aix_use_runtimelinking=no 13903 exp_sym_flag='-Bexport' 13904 no_entry_flag= 13905 else 13906 aix_use_runtimelinking=no 13907 13908 # Test if we are trying to use run time linking or normal 13909 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13910 # have runtime linking enabled, and use it for executables. 13911 # For shared libraries, we enable/disable runtime linking 13912 # depending on the kind of the shared library created - 13913 # when "with_aix_soname,aix_use_runtimelinking" is: 13914 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13915 # "aix,yes" lib.so shared, rtl:yes, for executables 13916 # lib.a static archive 13917 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13918 # lib.a(lib.so.V) shared, rtl:no, for executables 13919 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13920 # lib.a(lib.so.V) shared, rtl:no 13921 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13922 # lib.a static archive 13923 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13924 for ld_flag in $LDFLAGS; do 13925 case $ld_flag in 13926 *-brtl*) 13927 aix_use_runtimelinking=yes 13928 break 13929 ;; 13930 esac 13931 done 13932 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13933 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13934 # so we don't have lib.a shared libs to link our executables. 13935 # We have to force runtime linking in this case. 13936 aix_use_runtimelinking=yes 13937 LDFLAGS="$LDFLAGS -Wl,-brtl" 13938 fi 13939 ;; 13940 esac 13941 13942 exp_sym_flag='-bexport' 13943 no_entry_flag='-bnoentry' 13944 fi 13945 13946 # When large executables or shared objects are built, AIX ld can 13947 # have problems creating the table of contents. If linking a library 13948 # or program results in "error TOC overflow" add -mminimal-toc to 13949 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13950 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13951 13952 archive_cmds_CXX='' 13953 hardcode_direct_CXX=yes 13954 hardcode_direct_absolute_CXX=yes 13955 hardcode_libdir_separator_CXX=':' 13956 link_all_deplibs_CXX=yes 13957 file_list_spec_CXX='$wl-f,' 13958 case $with_aix_soname,$aix_use_runtimelinking in 13959 aix,*) ;; # no import file 13960 svr4,* | *,yes) # use import file 13961 # The Import File defines what to hardcode. 13962 hardcode_direct_CXX=no 13963 hardcode_direct_absolute_CXX=no 13964 ;; 13965 esac 13966 13967 if test yes = "$GXX"; then 13968 case $host_os in aix4.[012]|aix4.[012].*) 13969 # We only want to do this on AIX 4.2 and lower, the check 13970 # below for broken collect2 doesn't work under 4.3+ 13971 collect2name=`$CC -print-prog-name=collect2` 13972 if test -f "$collect2name" && 13973 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13974 then 13975 # We have reworked collect2 13976 : 13977 else 13978 # We have old collect2 13979 hardcode_direct_CXX=unsupported 13980 # It fails to find uninstalled libraries when the uninstalled 13981 # path is not listed in the libpath. Setting hardcode_minus_L 13982 # to unsupported forces relinking 13983 hardcode_minus_L_CXX=yes 13984 hardcode_libdir_flag_spec_CXX='-L$libdir' 13985 hardcode_libdir_separator_CXX= 13986 fi 13987 esac 13988 shared_flag='-shared' 13989 if test yes = "$aix_use_runtimelinking"; then 13990 shared_flag=$shared_flag' $wl-G' 13991 fi 13992 # Need to ensure runtime linking is disabled for the traditional 13993 # shared library, or the linker may eventually find shared libraries 13994 # /with/ Import File - we do not want to mix them. 13995 shared_flag_aix='-shared' 13996 shared_flag_svr4='-shared $wl-G' 13997 else 13998 # not using gcc 13999 if test ia64 = "$host_cpu"; then 14000 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14001 # chokes on -Wl,-G. The following line is correct: 14002 shared_flag='-G' 14003 else 14004 if test yes = "$aix_use_runtimelinking"; then 14005 shared_flag='$wl-G' 14006 else 14007 shared_flag='$wl-bM:SRE' 14008 fi 14009 shared_flag_aix='$wl-bM:SRE' 14010 shared_flag_svr4='$wl-G' 14011 fi 14012 fi 14013 14014 export_dynamic_flag_spec_CXX='$wl-bexpall' 14015 # It seems that -bexpall does not export symbols beginning with 14016 # underscore (_), so it is better to generate a list of symbols to 14017 # export. 14018 always_export_symbols_CXX=yes 14019 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14020 # Warning - without using the other runtime loading flags (-brtl), 14021 # -berok will link without error, but may produce a broken library. 14022 # The "-G" linker flag allows undefined symbols. 14023 no_undefined_flag_CXX='-bernotok' 14024 # Determine the default libpath from the value encoded in an empty 14025 # executable. 14026 if test set = "${lt_cv_aix_libpath+set}"; then 14027 aix_libpath=$lt_cv_aix_libpath 14028else 14029 if ${lt_cv_aix_libpath__CXX+:} false; then : 14030 $as_echo_n "(cached) " >&6 14031else 14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14033/* end confdefs.h. */ 14034 14035int 14036main () 14037{ 14038 14039 ; 14040 return 0; 14041} 14042_ACEOF 14043if ac_fn_cxx_try_link "$LINENO"; then : 14044 14045 lt_aix_libpath_sed=' 14046 /Import File Strings/,/^$/ { 14047 /^0/ { 14048 s/^0 *\([^ ]*\) *$/\1/ 14049 p 14050 } 14051 }' 14052 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14053 # Check for a 64-bit object if we didn't find anything. 14054 if test -z "$lt_cv_aix_libpath__CXX"; then 14055 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14056 fi 14057fi 14058rm -f core conftest.err conftest.$ac_objext \ 14059 conftest$ac_exeext conftest.$ac_ext 14060 if test -z "$lt_cv_aix_libpath__CXX"; then 14061 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14062 fi 14063 14064fi 14065 14066 aix_libpath=$lt_cv_aix_libpath__CXX 14067fi 14068 14069 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14070 14071 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 14072 else 14073 if test ia64 = "$host_cpu"; then 14074 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14075 allow_undefined_flag_CXX="-z nodefs" 14076 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" 14077 else 14078 # Determine the default libpath from the value encoded in an 14079 # empty executable. 14080 if test set = "${lt_cv_aix_libpath+set}"; then 14081 aix_libpath=$lt_cv_aix_libpath 14082else 14083 if ${lt_cv_aix_libpath__CXX+:} false; then : 14084 $as_echo_n "(cached) " >&6 14085else 14086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14087/* end confdefs.h. */ 14088 14089int 14090main () 14091{ 14092 14093 ; 14094 return 0; 14095} 14096_ACEOF 14097if ac_fn_cxx_try_link "$LINENO"; then : 14098 14099 lt_aix_libpath_sed=' 14100 /Import File Strings/,/^$/ { 14101 /^0/ { 14102 s/^0 *\([^ ]*\) *$/\1/ 14103 p 14104 } 14105 }' 14106 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14107 # Check for a 64-bit object if we didn't find anything. 14108 if test -z "$lt_cv_aix_libpath__CXX"; then 14109 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14110 fi 14111fi 14112rm -f core conftest.err conftest.$ac_objext \ 14113 conftest$ac_exeext conftest.$ac_ext 14114 if test -z "$lt_cv_aix_libpath__CXX"; then 14115 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14116 fi 14117 14118fi 14119 14120 aix_libpath=$lt_cv_aix_libpath__CXX 14121fi 14122 14123 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14124 # Warning - without using the other run time loading flags, 14125 # -berok will link without error, but may produce a broken library. 14126 no_undefined_flag_CXX=' $wl-bernotok' 14127 allow_undefined_flag_CXX=' $wl-berok' 14128 if test yes = "$with_gnu_ld"; then 14129 # We only use this code for GNU lds that support --whole-archive. 14130 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14131 else 14132 # Exported symbols can be pulled into shared objects from archives 14133 whole_archive_flag_spec_CXX='$convenience' 14134 fi 14135 archive_cmds_need_lc_CXX=yes 14136 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14137 # -brtl affects multiple linker settings, -berok does not and is overridden later 14138 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14139 if test svr4 != "$with_aix_soname"; then 14140 # This is similar to how AIX traditionally builds its shared 14141 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14142 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 14143 fi 14144 if test aix != "$with_aix_soname"; then 14145 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 14146 else 14147 # used by -dlpreopen to get the symbols 14148 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14149 fi 14150 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14151 fi 14152 fi 14153 ;; 14154 14155 beos*) 14156 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14157 allow_undefined_flag_CXX=unsupported 14158 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14159 # support --undefined. This deserves some investigation. FIXME 14160 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14161 else 14162 ld_shlibs_CXX=no 14163 fi 14164 ;; 14165 14166 chorus*) 14167 case $cc_basename in 14168 *) 14169 # FIXME: insert proper C++ library support 14170 ld_shlibs_CXX=no 14171 ;; 14172 esac 14173 ;; 14174 14175 cygwin* | mingw* | pw32* | cegcc*) 14176 case $GXX,$cc_basename in 14177 ,cl* | no,cl*) 14178 # Native MSVC 14179 # hardcode_libdir_flag_spec is actually meaningless, as there is 14180 # no search path for DLLs. 14181 hardcode_libdir_flag_spec_CXX=' ' 14182 allow_undefined_flag_CXX=unsupported 14183 always_export_symbols_CXX=yes 14184 file_list_spec_CXX='@' 14185 # Tell ltmain to make .lib files, not .a files. 14186 libext=lib 14187 # Tell ltmain to make .dll files, not .so files. 14188 shrext_cmds=.dll 14189 # FIXME: Setting linknames here is a bad hack. 14190 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14191 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14192 cp "$export_symbols" "$output_objdir/$soname.def"; 14193 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14194 else 14195 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14196 fi~ 14197 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14198 linknames=' 14199 # The linker will not automatically build a static lib if we build a DLL. 14200 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14201 enable_shared_with_static_runtimes_CXX=yes 14202 # Don't use ranlib 14203 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14204 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14205 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14206 case $lt_outputfile in 14207 *.exe|*.EXE) ;; 14208 *) 14209 lt_outputfile=$lt_outputfile.exe 14210 lt_tool_outputfile=$lt_tool_outputfile.exe 14211 ;; 14212 esac~ 14213 func_to_tool_file "$lt_outputfile"~ 14214 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14215 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14216 $RM "$lt_outputfile.manifest"; 14217 fi' 14218 ;; 14219 *) 14220 # g++ 14221 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14222 # as there is no search path for DLLs. 14223 hardcode_libdir_flag_spec_CXX='-L$libdir' 14224 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14225 allow_undefined_flag_CXX=unsupported 14226 always_export_symbols_CXX=no 14227 enable_shared_with_static_runtimes_CXX=yes 14228 14229 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14230 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' 14231 # If the export-symbols file already is a .def file, use it as 14232 # is; otherwise, prepend EXPORTS... 14233 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14234 cp $export_symbols $output_objdir/$soname.def; 14235 else 14236 echo EXPORTS > $output_objdir/$soname.def; 14237 cat $export_symbols >> $output_objdir/$soname.def; 14238 fi~ 14239 $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' 14240 else 14241 ld_shlibs_CXX=no 14242 fi 14243 ;; 14244 esac 14245 ;; 14246 darwin* | rhapsody*) 14247 14248 14249 archive_cmds_need_lc_CXX=no 14250 hardcode_direct_CXX=no 14251 hardcode_automatic_CXX=yes 14252 hardcode_shlibpath_var_CXX=unsupported 14253 if test yes = "$lt_cv_ld_force_load"; then 14254 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\"`' 14255 14256 else 14257 whole_archive_flag_spec_CXX='' 14258 fi 14259 link_all_deplibs_CXX=yes 14260 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14261 case $cc_basename in 14262 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14263 *) _lt_dar_can_shared=$GCC ;; 14264 esac 14265 if test yes = "$_lt_dar_can_shared"; then 14266 output_verbose_link_cmd=func_echo_all 14267 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" 14268 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14269 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" 14270 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" 14271 if test yes != "$lt_cv_apple_cc_single_mod"; then 14272 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" 14273 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" 14274 fi 14275 14276 else 14277 ld_shlibs_CXX=no 14278 fi 14279 14280 ;; 14281 14282 os2*) 14283 hardcode_libdir_flag_spec_CXX='-L$libdir' 14284 hardcode_minus_L_CXX=yes 14285 allow_undefined_flag_CXX=unsupported 14286 shrext_cmds=.dll 14287 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14288 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14289 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14290 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14291 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14292 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14293 emximp -o $lib $output_objdir/$libname.def' 14294 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14295 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14296 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14297 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14298 prefix_cmds="$SED"~ 14299 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14300 prefix_cmds="$prefix_cmds -e 1d"; 14301 fi~ 14302 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14303 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14304 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14305 emximp -o $lib $output_objdir/$libname.def' 14306 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14307 enable_shared_with_static_runtimes_CXX=yes 14308 ;; 14309 14310 dgux*) 14311 case $cc_basename in 14312 ec++*) 14313 # FIXME: insert proper C++ library support 14314 ld_shlibs_CXX=no 14315 ;; 14316 ghcx*) 14317 # Green Hills C++ Compiler 14318 # FIXME: insert proper C++ library support 14319 ld_shlibs_CXX=no 14320 ;; 14321 *) 14322 # FIXME: insert proper C++ library support 14323 ld_shlibs_CXX=no 14324 ;; 14325 esac 14326 ;; 14327 14328 freebsd2.*) 14329 # C++ shared libraries reported to be fairly broken before 14330 # switch to ELF 14331 ld_shlibs_CXX=no 14332 ;; 14333 14334 freebsd-elf*) 14335 archive_cmds_need_lc_CXX=no 14336 ;; 14337 14338 freebsd* | dragonfly*) 14339 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14340 # conventions 14341 ld_shlibs_CXX=yes 14342 ;; 14343 14344 haiku*) 14345 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14346 link_all_deplibs_CXX=yes 14347 ;; 14348 14349 hpux9*) 14350 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14351 hardcode_libdir_separator_CXX=: 14352 export_dynamic_flag_spec_CXX='$wl-E' 14353 hardcode_direct_CXX=yes 14354 hardcode_minus_L_CXX=yes # Not in the search PATH, 14355 # but as the default 14356 # location of the library. 14357 14358 case $cc_basename in 14359 CC*) 14360 # FIXME: insert proper C++ library support 14361 ld_shlibs_CXX=no 14362 ;; 14363 aCC*) 14364 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14365 # Commands to make compiler produce verbose output that lists 14366 # what "hidden" libraries, object files and flags are used when 14367 # linking a shared library. 14368 # 14369 # There doesn't appear to be a way to prevent this compiler from 14370 # explicitly linking system object files so we need to strip them 14371 # from the output so that they don't get included in the library 14372 # dependencies. 14373 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"' 14374 ;; 14375 *) 14376 if test yes = "$GXX"; then 14377 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14378 else 14379 # FIXME: insert proper C++ library support 14380 ld_shlibs_CXX=no 14381 fi 14382 ;; 14383 esac 14384 ;; 14385 14386 hpux10*|hpux11*) 14387 if test no = "$with_gnu_ld"; then 14388 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14389 hardcode_libdir_separator_CXX=: 14390 14391 case $host_cpu in 14392 hppa*64*|ia64*) 14393 ;; 14394 *) 14395 export_dynamic_flag_spec_CXX='$wl-E' 14396 ;; 14397 esac 14398 fi 14399 case $host_cpu in 14400 hppa*64*|ia64*) 14401 hardcode_direct_CXX=no 14402 hardcode_shlibpath_var_CXX=no 14403 ;; 14404 *) 14405 hardcode_direct_CXX=yes 14406 hardcode_direct_absolute_CXX=yes 14407 hardcode_minus_L_CXX=yes # Not in the search PATH, 14408 # but as the default 14409 # location of the library. 14410 ;; 14411 esac 14412 14413 case $cc_basename in 14414 CC*) 14415 # FIXME: insert proper C++ library support 14416 ld_shlibs_CXX=no 14417 ;; 14418 aCC*) 14419 case $host_cpu in 14420 hppa*64*) 14421 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14422 ;; 14423 ia64*) 14424 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14425 ;; 14426 *) 14427 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14428 ;; 14429 esac 14430 # Commands to make compiler produce verbose output that lists 14431 # what "hidden" libraries, object files and flags are used when 14432 # linking a shared library. 14433 # 14434 # There doesn't appear to be a way to prevent this compiler from 14435 # explicitly linking system object files so we need to strip them 14436 # from the output so that they don't get included in the library 14437 # dependencies. 14438 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"' 14439 ;; 14440 *) 14441 if test yes = "$GXX"; then 14442 if test no = "$with_gnu_ld"; then 14443 case $host_cpu in 14444 hppa*64*) 14445 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14446 ;; 14447 ia64*) 14448 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14449 ;; 14450 *) 14451 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' 14452 ;; 14453 esac 14454 fi 14455 else 14456 # FIXME: insert proper C++ library support 14457 ld_shlibs_CXX=no 14458 fi 14459 ;; 14460 esac 14461 ;; 14462 14463 interix[3-9]*) 14464 hardcode_direct_CXX=no 14465 hardcode_shlibpath_var_CXX=no 14466 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14467 export_dynamic_flag_spec_CXX='$wl-E' 14468 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14469 # Instead, shared libraries are loaded at an image base (0x10000000 by 14470 # default) and relocated if they conflict, which is a slow very memory 14471 # consuming and fragmenting process. To avoid this, we pick a random, 14472 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14473 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14474 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' 14475 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' 14476 ;; 14477 irix5* | irix6*) 14478 case $cc_basename in 14479 CC*) 14480 # SGI C++ 14481 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' 14482 14483 # Archives containing C++ object files must be created using 14484 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14485 # necessary to make sure instantiated templates are included 14486 # in the archive. 14487 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14488 ;; 14489 *) 14490 if test yes = "$GXX"; then 14491 if test no = "$with_gnu_ld"; then 14492 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' 14493 else 14494 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' 14495 fi 14496 fi 14497 link_all_deplibs_CXX=yes 14498 ;; 14499 esac 14500 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14501 hardcode_libdir_separator_CXX=: 14502 inherit_rpath_CXX=yes 14503 ;; 14504 14505 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14506 case $cc_basename in 14507 KCC*) 14508 # Kuck and Associates, Inc. (KAI) C++ Compiler 14509 14510 # KCC will only create a shared library if the output file 14511 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14512 # to its proper name (with version) after linking. 14513 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' 14514 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' 14515 # Commands to make compiler produce verbose output that lists 14516 # what "hidden" libraries, object files and flags are used when 14517 # linking a shared library. 14518 # 14519 # There doesn't appear to be a way to prevent this compiler from 14520 # explicitly linking system object files so we need to strip them 14521 # from the output so that they don't get included in the library 14522 # dependencies. 14523 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"' 14524 14525 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14526 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14527 14528 # Archives containing C++ object files must be created using 14529 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14530 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14531 ;; 14532 icpc* | ecpc* ) 14533 # Intel C++ 14534 with_gnu_ld=yes 14535 # version 8.0 and above of icpc choke on multiply defined symbols 14536 # if we add $predep_objects and $postdep_objects, however 7.1 and 14537 # earlier do not add the objects themselves. 14538 case `$CC -V 2>&1` in 14539 *"Version 7."*) 14540 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14541 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' 14542 ;; 14543 *) # Version 8.0 or newer 14544 tmp_idyn= 14545 case $host_cpu in 14546 ia64*) tmp_idyn=' -i_dynamic';; 14547 esac 14548 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14549 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' 14550 ;; 14551 esac 14552 archive_cmds_need_lc_CXX=no 14553 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14554 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14555 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14556 ;; 14557 pgCC* | pgcpp*) 14558 # Portland Group C++ compiler 14559 case `$CC -V` in 14560 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14561 prelink_cmds_CXX='tpldir=Template.dir~ 14562 rm -rf $tpldir~ 14563 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14564 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14565 old_archive_cmds_CXX='tpldir=Template.dir~ 14566 rm -rf $tpldir~ 14567 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14568 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14569 $RANLIB $oldlib' 14570 archive_cmds_CXX='tpldir=Template.dir~ 14571 rm -rf $tpldir~ 14572 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14573 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14574 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14575 rm -rf $tpldir~ 14576 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14577 $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' 14578 ;; 14579 *) # Version 6 and above use weak symbols 14580 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14581 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' 14582 ;; 14583 esac 14584 14585 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14586 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14587 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' 14588 ;; 14589 cxx*) 14590 # Compaq C++ 14591 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14592 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' 14593 14594 runpath_var=LD_RUN_PATH 14595 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14596 hardcode_libdir_separator_CXX=: 14597 14598 # Commands to make compiler produce verbose output that lists 14599 # what "hidden" libraries, object files and flags are used when 14600 # linking a shared library. 14601 # 14602 # There doesn't appear to be a way to prevent this compiler from 14603 # explicitly linking system object files so we need to strip them 14604 # from the output so that they don't get included in the library 14605 # dependencies. 14606 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' 14607 ;; 14608 xl* | mpixl* | bgxl*) 14609 # IBM XL 8.0 on PPC, with GNU ld 14610 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14611 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14612 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14613 if test yes = "$supports_anon_versioning"; then 14614 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14615 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14616 echo "local: *; };" >> $output_objdir/$libname.ver~ 14617 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14618 fi 14619 ;; 14620 *) 14621 case `$CC -V 2>&1 | sed 5q` in 14622 *Sun\ C*) 14623 # Sun C++ 5.9 14624 no_undefined_flag_CXX=' -zdefs' 14625 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14626 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' 14627 hardcode_libdir_flag_spec_CXX='-R$libdir' 14628 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' 14629 compiler_needs_object_CXX=yes 14630 14631 # Not sure whether something based on 14632 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14633 # would be better. 14634 output_verbose_link_cmd='func_echo_all' 14635 14636 # Archives containing C++ object files must be created using 14637 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14638 # necessary to make sure instantiated templates are included 14639 # in the archive. 14640 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14641 ;; 14642 esac 14643 ;; 14644 esac 14645 ;; 14646 14647 lynxos*) 14648 # FIXME: insert proper C++ library support 14649 ld_shlibs_CXX=no 14650 ;; 14651 14652 m88k*) 14653 # FIXME: insert proper C++ library support 14654 ld_shlibs_CXX=no 14655 ;; 14656 14657 mvs*) 14658 case $cc_basename in 14659 cxx*) 14660 # FIXME: insert proper C++ library support 14661 ld_shlibs_CXX=no 14662 ;; 14663 *) 14664 # FIXME: insert proper C++ library support 14665 ld_shlibs_CXX=no 14666 ;; 14667 esac 14668 ;; 14669 14670 netbsd*) 14671 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14672 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14673 wlarc= 14674 hardcode_libdir_flag_spec_CXX='-R$libdir' 14675 hardcode_direct_CXX=yes 14676 hardcode_shlibpath_var_CXX=no 14677 fi 14678 # Workaround some broken pre-1.5 toolchains 14679 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14680 ;; 14681 14682 *nto* | *qnx*) 14683 ld_shlibs_CXX=yes 14684 ;; 14685 14686 openbsd* | bitrig*) 14687 if test -f /usr/libexec/ld.so; then 14688 hardcode_direct_CXX=yes 14689 hardcode_shlibpath_var_CXX=no 14690 hardcode_direct_absolute_CXX=yes 14691 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14692 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14693 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14694 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14695 export_dynamic_flag_spec_CXX='$wl-E' 14696 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14697 fi 14698 output_verbose_link_cmd=func_echo_all 14699 else 14700 ld_shlibs_CXX=no 14701 fi 14702 ;; 14703 14704 osf3* | osf4* | osf5*) 14705 case $cc_basename in 14706 KCC*) 14707 # Kuck and Associates, Inc. (KAI) C++ Compiler 14708 14709 # KCC will only create a shared library if the output file 14710 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14711 # to its proper name (with version) after linking. 14712 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' 14713 14714 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14715 hardcode_libdir_separator_CXX=: 14716 14717 # Archives containing C++ object files must be created using 14718 # the KAI C++ compiler. 14719 case $host in 14720 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14721 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14722 esac 14723 ;; 14724 RCC*) 14725 # Rational C++ 2.4.1 14726 # FIXME: insert proper C++ library support 14727 ld_shlibs_CXX=no 14728 ;; 14729 cxx*) 14730 case $host in 14731 osf3*) 14732 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14733 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' 14734 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14735 ;; 14736 *) 14737 allow_undefined_flag_CXX=' -expect_unresolved \*' 14738 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' 14739 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14740 echo "-hidden">> $lib.exp~ 14741 $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~ 14742 $RM $lib.exp' 14743 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14744 ;; 14745 esac 14746 14747 hardcode_libdir_separator_CXX=: 14748 14749 # Commands to make compiler produce verbose output that lists 14750 # what "hidden" libraries, object files and flags are used when 14751 # linking a shared library. 14752 # 14753 # There doesn't appear to be a way to prevent this compiler from 14754 # explicitly linking system object files so we need to strip them 14755 # from the output so that they don't get included in the library 14756 # dependencies. 14757 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"' 14758 ;; 14759 *) 14760 if test yes,no = "$GXX,$with_gnu_ld"; then 14761 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14762 case $host in 14763 osf3*) 14764 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' 14765 ;; 14766 *) 14767 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' 14768 ;; 14769 esac 14770 14771 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14772 hardcode_libdir_separator_CXX=: 14773 14774 # Commands to make compiler produce verbose output that lists 14775 # what "hidden" libraries, object files and flags are used when 14776 # linking a shared library. 14777 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 14778 14779 else 14780 # FIXME: insert proper C++ library support 14781 ld_shlibs_CXX=no 14782 fi 14783 ;; 14784 esac 14785 ;; 14786 14787 psos*) 14788 # FIXME: insert proper C++ library support 14789 ld_shlibs_CXX=no 14790 ;; 14791 14792 sunos4*) 14793 case $cc_basename in 14794 CC*) 14795 # Sun C++ 4.x 14796 # FIXME: insert proper C++ library support 14797 ld_shlibs_CXX=no 14798 ;; 14799 lcc*) 14800 # Lucid 14801 # FIXME: insert proper C++ library support 14802 ld_shlibs_CXX=no 14803 ;; 14804 *) 14805 # FIXME: insert proper C++ library support 14806 ld_shlibs_CXX=no 14807 ;; 14808 esac 14809 ;; 14810 14811 solaris*) 14812 case $cc_basename in 14813 CC* | sunCC*) 14814 # Sun C++ 4.2, 5.x and Centerline C++ 14815 archive_cmds_need_lc_CXX=yes 14816 no_undefined_flag_CXX=' -zdefs' 14817 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14818 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14819 $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' 14820 14821 hardcode_libdir_flag_spec_CXX='-R$libdir' 14822 hardcode_shlibpath_var_CXX=no 14823 case $host_os in 14824 solaris2.[0-5] | solaris2.[0-5].*) ;; 14825 *) 14826 # The compiler driver will combine and reorder linker options, 14827 # but understands '-z linker_flag'. 14828 # Supported since Solaris 2.6 (maybe 2.5.1?) 14829 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14830 ;; 14831 esac 14832 link_all_deplibs_CXX=yes 14833 14834 output_verbose_link_cmd='func_echo_all' 14835 14836 # Archives containing C++ object files must be created using 14837 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14838 # necessary to make sure instantiated templates are included 14839 # in the archive. 14840 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14841 ;; 14842 gcx*) 14843 # Green Hills C++ Compiler 14844 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14845 14846 # The C++ compiler must be used to create the archive. 14847 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14848 ;; 14849 *) 14850 # GNU C++ compiler with Solaris linker 14851 if test yes,no = "$GXX,$with_gnu_ld"; then 14852 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14853 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14854 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14855 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14856 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14857 14858 # Commands to make compiler produce verbose output that lists 14859 # what "hidden" libraries, object files and flags are used when 14860 # linking a shared library. 14861 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 14862 else 14863 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14864 # platform. 14865 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14866 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14867 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14868 14869 # Commands to make compiler produce verbose output that lists 14870 # what "hidden" libraries, object files and flags are used when 14871 # linking a shared library. 14872 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 14873 fi 14874 14875 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14876 case $host_os in 14877 solaris2.[0-5] | solaris2.[0-5].*) ;; 14878 *) 14879 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14880 ;; 14881 esac 14882 fi 14883 ;; 14884 esac 14885 ;; 14886 14887 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14888 no_undefined_flag_CXX='$wl-z,text' 14889 archive_cmds_need_lc_CXX=no 14890 hardcode_shlibpath_var_CXX=no 14891 runpath_var='LD_RUN_PATH' 14892 14893 case $cc_basename in 14894 CC*) 14895 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14896 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14897 ;; 14898 *) 14899 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14900 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14901 ;; 14902 esac 14903 ;; 14904 14905 sysv5* | sco3.2v5* | sco5v6*) 14906 # Note: We CANNOT use -z defs as we might desire, because we do not 14907 # link with -lc, and that would cause any symbols used from libc to 14908 # always be unresolved, which means just about no library would 14909 # ever link correctly. If we're not using GNU ld we use -z text 14910 # though, which does catch some bad symbols but isn't as heavy-handed 14911 # as -z defs. 14912 no_undefined_flag_CXX='$wl-z,text' 14913 allow_undefined_flag_CXX='$wl-z,nodefs' 14914 archive_cmds_need_lc_CXX=no 14915 hardcode_shlibpath_var_CXX=no 14916 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14917 hardcode_libdir_separator_CXX=':' 14918 link_all_deplibs_CXX=yes 14919 export_dynamic_flag_spec_CXX='$wl-Bexport' 14920 runpath_var='LD_RUN_PATH' 14921 14922 case $cc_basename in 14923 CC*) 14924 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14925 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14926 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14927 '"$old_archive_cmds_CXX" 14928 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14929 '"$reload_cmds_CXX" 14930 ;; 14931 *) 14932 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14933 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14934 ;; 14935 esac 14936 ;; 14937 14938 tandem*) 14939 case $cc_basename in 14940 NCC*) 14941 # NonStop-UX NCC 3.20 14942 # FIXME: insert proper C++ library support 14943 ld_shlibs_CXX=no 14944 ;; 14945 *) 14946 # FIXME: insert proper C++ library support 14947 ld_shlibs_CXX=no 14948 ;; 14949 esac 14950 ;; 14951 14952 vxworks*) 14953 # FIXME: insert proper C++ library support 14954 ld_shlibs_CXX=no 14955 ;; 14956 14957 *) 14958 # FIXME: insert proper C++ library support 14959 ld_shlibs_CXX=no 14960 ;; 14961 esac 14962 14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14964$as_echo "$ld_shlibs_CXX" >&6; } 14965 test no = "$ld_shlibs_CXX" && can_build_shared=no 14966 14967 GCC_CXX=$GXX 14968 LD_CXX=$LD 14969 14970 ## CAVEAT EMPTOR: 14971 ## There is no encapsulation within the following macros, do not change 14972 ## the running order or otherwise move them around unless you know exactly 14973 ## what you are doing... 14974 # Dependencies to place before and after the object being linked: 14975predep_objects_CXX= 14976postdep_objects_CXX= 14977predeps_CXX= 14978postdeps_CXX= 14979compiler_lib_search_path_CXX= 14980 14981cat > conftest.$ac_ext <<_LT_EOF 14982class Foo 14983{ 14984public: 14985 Foo (void) { a = 0; } 14986private: 14987 int a; 14988}; 14989_LT_EOF 14990 14991 14992_lt_libdeps_save_CFLAGS=$CFLAGS 14993case "$CC $CFLAGS " in #( 14994*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14995*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14996*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14997esac 14998 14999if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15000 (eval $ac_compile) 2>&5 15001 ac_status=$? 15002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15003 test $ac_status = 0; }; then 15004 # Parse the compiler output and extract the necessary 15005 # objects, libraries and library flags. 15006 15007 # Sentinel used to keep track of whether or not we are before 15008 # the conftest object file. 15009 pre_test_object_deps_done=no 15010 15011 for p in `eval "$output_verbose_link_cmd"`; do 15012 case $prev$p in 15013 15014 -L* | -R* | -l*) 15015 # Some compilers place space between "-{L,R}" and the path. 15016 # Remove the space. 15017 if test x-L = "$p" || 15018 test x-R = "$p"; then 15019 prev=$p 15020 continue 15021 fi 15022 15023 # Expand the sysroot to ease extracting the directories later. 15024 if test -z "$prev"; then 15025 case $p in 15026 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15027 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15028 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15029 esac 15030 fi 15031 case $p in 15032 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15033 esac 15034 if test no = "$pre_test_object_deps_done"; then 15035 case $prev in 15036 -L | -R) 15037 # Internal compiler library paths should come after those 15038 # provided the user. The postdeps already come after the 15039 # user supplied libs so there is no need to process them. 15040 if test -z "$compiler_lib_search_path_CXX"; then 15041 compiler_lib_search_path_CXX=$prev$p 15042 else 15043 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15044 fi 15045 ;; 15046 # The "-l" case would never come before the object being 15047 # linked, so don't bother handling this case. 15048 esac 15049 else 15050 if test -z "$postdeps_CXX"; then 15051 postdeps_CXX=$prev$p 15052 else 15053 postdeps_CXX="${postdeps_CXX} $prev$p" 15054 fi 15055 fi 15056 prev= 15057 ;; 15058 15059 *.lto.$objext) ;; # Ignore GCC LTO objects 15060 *.$objext) 15061 # This assumes that the test object file only shows up 15062 # once in the compiler output. 15063 if test "$p" = "conftest.$objext"; then 15064 pre_test_object_deps_done=yes 15065 continue 15066 fi 15067 15068 if test no = "$pre_test_object_deps_done"; then 15069 if test -z "$predep_objects_CXX"; then 15070 predep_objects_CXX=$p 15071 else 15072 predep_objects_CXX="$predep_objects_CXX $p" 15073 fi 15074 else 15075 if test -z "$postdep_objects_CXX"; then 15076 postdep_objects_CXX=$p 15077 else 15078 postdep_objects_CXX="$postdep_objects_CXX $p" 15079 fi 15080 fi 15081 ;; 15082 15083 *) ;; # Ignore the rest. 15084 15085 esac 15086 done 15087 15088 # Clean up. 15089 rm -f a.out a.exe 15090else 15091 echo "libtool.m4: error: problem compiling CXX test program" 15092fi 15093 15094$RM -f confest.$objext 15095CFLAGS=$_lt_libdeps_save_CFLAGS 15096 15097# PORTME: override above test on systems where it is broken 15098case $host_os in 15099interix[3-9]*) 15100 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15101 # hack all around it, let's just trust "g++" to DTRT. 15102 predep_objects_CXX= 15103 postdep_objects_CXX= 15104 postdeps_CXX= 15105 ;; 15106esac 15107 15108 15109case " $postdeps_CXX " in 15110*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15111esac 15112 compiler_lib_search_dirs_CXX= 15113if test -n "${compiler_lib_search_path_CXX}"; then 15114 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15115fi 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 lt_prog_compiler_wl_CXX= 15148lt_prog_compiler_pic_CXX= 15149lt_prog_compiler_static_CXX= 15150 15151 15152 # C++ specific cases for pic, static, wl, etc. 15153 if test yes = "$GXX"; then 15154 lt_prog_compiler_wl_CXX='-Wl,' 15155 lt_prog_compiler_static_CXX='-static' 15156 15157 case $host_os in 15158 aix*) 15159 # All AIX code is PIC. 15160 if test ia64 = "$host_cpu"; then 15161 # AIX 5 now supports IA64 processor 15162 lt_prog_compiler_static_CXX='-Bstatic' 15163 fi 15164 lt_prog_compiler_pic_CXX='-fPIC' 15165 ;; 15166 15167 amigaos*) 15168 case $host_cpu in 15169 powerpc) 15170 # see comment about AmigaOS4 .so support 15171 lt_prog_compiler_pic_CXX='-fPIC' 15172 ;; 15173 m68k) 15174 # FIXME: we need at least 68020 code to build shared libraries, but 15175 # adding the '-m68020' flag to GCC prevents building anything better, 15176 # like '-m68040'. 15177 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15178 ;; 15179 esac 15180 ;; 15181 15182 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15183 # PIC is the default for these OSes. 15184 ;; 15185 mingw* | cygwin* | os2* | pw32* | cegcc*) 15186 # This hack is so that the source file can tell whether it is being 15187 # built for inclusion in a dll (and should export symbols for example). 15188 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15189 # (--disable-auto-import) libraries 15190 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15191 case $host_os in 15192 os2*) 15193 lt_prog_compiler_static_CXX='$wl-static' 15194 ;; 15195 esac 15196 ;; 15197 darwin* | rhapsody*) 15198 # PIC is the default on this platform 15199 # Common symbols not allowed in MH_DYLIB files 15200 lt_prog_compiler_pic_CXX='-fno-common' 15201 ;; 15202 *djgpp*) 15203 # DJGPP does not support shared libraries at all 15204 lt_prog_compiler_pic_CXX= 15205 ;; 15206 haiku*) 15207 # PIC is the default for Haiku. 15208 # The "-static" flag exists, but is broken. 15209 lt_prog_compiler_static_CXX= 15210 ;; 15211 interix[3-9]*) 15212 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15213 # Instead, we relocate shared libraries at runtime. 15214 ;; 15215 sysv4*MP*) 15216 if test -d /usr/nec; then 15217 lt_prog_compiler_pic_CXX=-Kconform_pic 15218 fi 15219 ;; 15220 hpux*) 15221 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15222 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15223 # sets the default TLS model and affects inlining. 15224 case $host_cpu in 15225 hppa*64*) 15226 ;; 15227 *) 15228 lt_prog_compiler_pic_CXX='-fPIC' 15229 ;; 15230 esac 15231 ;; 15232 *qnx* | *nto*) 15233 # QNX uses GNU C++, but need to define -shared option too, otherwise 15234 # it will coredump. 15235 lt_prog_compiler_pic_CXX='-fPIC -shared' 15236 ;; 15237 *) 15238 lt_prog_compiler_pic_CXX='-fPIC' 15239 ;; 15240 esac 15241 else 15242 case $host_os in 15243 aix[4-9]*) 15244 # All AIX code is PIC. 15245 if test ia64 = "$host_cpu"; then 15246 # AIX 5 now supports IA64 processor 15247 lt_prog_compiler_static_CXX='-Bstatic' 15248 else 15249 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15250 fi 15251 ;; 15252 chorus*) 15253 case $cc_basename in 15254 cxch68*) 15255 # Green Hills C++ Compiler 15256 # _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" 15257 ;; 15258 esac 15259 ;; 15260 mingw* | cygwin* | os2* | pw32* | cegcc*) 15261 # This hack is so that the source file can tell whether it is being 15262 # built for inclusion in a dll (and should export symbols for example). 15263 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15264 ;; 15265 dgux*) 15266 case $cc_basename in 15267 ec++*) 15268 lt_prog_compiler_pic_CXX='-KPIC' 15269 ;; 15270 ghcx*) 15271 # Green Hills C++ Compiler 15272 lt_prog_compiler_pic_CXX='-pic' 15273 ;; 15274 *) 15275 ;; 15276 esac 15277 ;; 15278 freebsd* | dragonfly*) 15279 # FreeBSD uses GNU C++ 15280 ;; 15281 hpux9* | hpux10* | hpux11*) 15282 case $cc_basename in 15283 CC*) 15284 lt_prog_compiler_wl_CXX='-Wl,' 15285 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15286 if test ia64 != "$host_cpu"; then 15287 lt_prog_compiler_pic_CXX='+Z' 15288 fi 15289 ;; 15290 aCC*) 15291 lt_prog_compiler_wl_CXX='-Wl,' 15292 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15293 case $host_cpu in 15294 hppa*64*|ia64*) 15295 # +Z the default 15296 ;; 15297 *) 15298 lt_prog_compiler_pic_CXX='+Z' 15299 ;; 15300 esac 15301 ;; 15302 *) 15303 ;; 15304 esac 15305 ;; 15306 interix*) 15307 # This is c89, which is MS Visual C++ (no shared libs) 15308 # Anyone wants to do a port? 15309 ;; 15310 irix5* | irix6* | nonstopux*) 15311 case $cc_basename in 15312 CC*) 15313 lt_prog_compiler_wl_CXX='-Wl,' 15314 lt_prog_compiler_static_CXX='-non_shared' 15315 # CC pic flag -KPIC is the default. 15316 ;; 15317 *) 15318 ;; 15319 esac 15320 ;; 15321 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15322 case $cc_basename in 15323 KCC*) 15324 # KAI C++ Compiler 15325 lt_prog_compiler_wl_CXX='--backend -Wl,' 15326 lt_prog_compiler_pic_CXX='-fPIC' 15327 ;; 15328 ecpc* ) 15329 # old Intel C++ for x86_64, which still supported -KPIC. 15330 lt_prog_compiler_wl_CXX='-Wl,' 15331 lt_prog_compiler_pic_CXX='-KPIC' 15332 lt_prog_compiler_static_CXX='-static' 15333 ;; 15334 icpc* ) 15335 # Intel C++, used to be incompatible with GCC. 15336 # ICC 10 doesn't accept -KPIC any more. 15337 lt_prog_compiler_wl_CXX='-Wl,' 15338 lt_prog_compiler_pic_CXX='-fPIC' 15339 lt_prog_compiler_static_CXX='-static' 15340 ;; 15341 pgCC* | pgcpp*) 15342 # Portland Group C++ compiler 15343 lt_prog_compiler_wl_CXX='-Wl,' 15344 lt_prog_compiler_pic_CXX='-fpic' 15345 lt_prog_compiler_static_CXX='-Bstatic' 15346 ;; 15347 cxx*) 15348 # Compaq C++ 15349 # Make sure the PIC flag is empty. It appears that all Alpha 15350 # Linux and Compaq Tru64 Unix objects are PIC. 15351 lt_prog_compiler_pic_CXX= 15352 lt_prog_compiler_static_CXX='-non_shared' 15353 ;; 15354 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15355 # IBM XL 8.0, 9.0 on PPC and BlueGene 15356 lt_prog_compiler_wl_CXX='-Wl,' 15357 lt_prog_compiler_pic_CXX='-qpic' 15358 lt_prog_compiler_static_CXX='-qstaticlink' 15359 ;; 15360 *) 15361 case `$CC -V 2>&1 | sed 5q` in 15362 *Sun\ C*) 15363 # Sun C++ 5.9 15364 lt_prog_compiler_pic_CXX='-KPIC' 15365 lt_prog_compiler_static_CXX='-Bstatic' 15366 lt_prog_compiler_wl_CXX='-Qoption ld ' 15367 ;; 15368 esac 15369 ;; 15370 esac 15371 ;; 15372 lynxos*) 15373 ;; 15374 m88k*) 15375 ;; 15376 mvs*) 15377 case $cc_basename in 15378 cxx*) 15379 lt_prog_compiler_pic_CXX='-W c,exportall' 15380 ;; 15381 *) 15382 ;; 15383 esac 15384 ;; 15385 netbsd* | netbsdelf*-gnu) 15386 ;; 15387 *qnx* | *nto*) 15388 # QNX uses GNU C++, but need to define -shared option too, otherwise 15389 # it will coredump. 15390 lt_prog_compiler_pic_CXX='-fPIC -shared' 15391 ;; 15392 osf3* | osf4* | osf5*) 15393 case $cc_basename in 15394 KCC*) 15395 lt_prog_compiler_wl_CXX='--backend -Wl,' 15396 ;; 15397 RCC*) 15398 # Rational C++ 2.4.1 15399 lt_prog_compiler_pic_CXX='-pic' 15400 ;; 15401 cxx*) 15402 # Digital/Compaq C++ 15403 lt_prog_compiler_wl_CXX='-Wl,' 15404 # Make sure the PIC flag is empty. It appears that all Alpha 15405 # Linux and Compaq Tru64 Unix objects are PIC. 15406 lt_prog_compiler_pic_CXX= 15407 lt_prog_compiler_static_CXX='-non_shared' 15408 ;; 15409 *) 15410 ;; 15411 esac 15412 ;; 15413 psos*) 15414 ;; 15415 solaris*) 15416 case $cc_basename in 15417 CC* | sunCC*) 15418 # Sun C++ 4.2, 5.x and Centerline C++ 15419 lt_prog_compiler_pic_CXX='-KPIC' 15420 lt_prog_compiler_static_CXX='-Bstatic' 15421 lt_prog_compiler_wl_CXX='-Qoption ld ' 15422 ;; 15423 gcx*) 15424 # Green Hills C++ Compiler 15425 lt_prog_compiler_pic_CXX='-PIC' 15426 ;; 15427 *) 15428 ;; 15429 esac 15430 ;; 15431 sunos4*) 15432 case $cc_basename in 15433 CC*) 15434 # Sun C++ 4.x 15435 lt_prog_compiler_pic_CXX='-pic' 15436 lt_prog_compiler_static_CXX='-Bstatic' 15437 ;; 15438 lcc*) 15439 # Lucid 15440 lt_prog_compiler_pic_CXX='-pic' 15441 ;; 15442 *) 15443 ;; 15444 esac 15445 ;; 15446 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15447 case $cc_basename in 15448 CC*) 15449 lt_prog_compiler_wl_CXX='-Wl,' 15450 lt_prog_compiler_pic_CXX='-KPIC' 15451 lt_prog_compiler_static_CXX='-Bstatic' 15452 ;; 15453 esac 15454 ;; 15455 tandem*) 15456 case $cc_basename in 15457 NCC*) 15458 # NonStop-UX NCC 3.20 15459 lt_prog_compiler_pic_CXX='-KPIC' 15460 ;; 15461 *) 15462 ;; 15463 esac 15464 ;; 15465 vxworks*) 15466 ;; 15467 *) 15468 lt_prog_compiler_can_build_shared_CXX=no 15469 ;; 15470 esac 15471 fi 15472 15473case $host_os in 15474 # For platforms that do not support PIC, -DPIC is meaningless: 15475 *djgpp*) 15476 lt_prog_compiler_pic_CXX= 15477 ;; 15478 *) 15479 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC" 15480 ;; 15481esac 15482 15483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15484$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15485if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15486 $as_echo_n "(cached) " >&6 15487else 15488 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15489fi 15490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15491$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15492lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15493 15494# 15495# Check to make sure the PIC flag actually works. 15496# 15497if test -n "$lt_prog_compiler_pic_CXX"; then 15498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15499$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15500if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15501 $as_echo_n "(cached) " >&6 15502else 15503 lt_cv_prog_compiler_pic_works_CXX=no 15504 ac_outfile=conftest.$ac_objext 15505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15506 lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment 15507 # Insert the option either (1) after the last *FLAGS variable, or 15508 # (2) before a word containing "conftest.", or (3) at the end. 15509 # Note that $ac_compile itself does not contain backslashes and begins 15510 # with a dollar sign (not a hyphen), so the echo should work correctly. 15511 # The option is referenced via a variable to avoid confusing sed. 15512 lt_compile=`echo "$ac_compile" | $SED \ 15513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15515 -e 's:$: $lt_compiler_flag:'` 15516 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15517 (eval "$lt_compile" 2>conftest.err) 15518 ac_status=$? 15519 cat conftest.err >&5 15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15521 if (exit $ac_status) && test -s "$ac_outfile"; then 15522 # The compiler can only warn and ignore the option if not recognized 15523 # So say no if there are warnings other than the usual output. 15524 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15526 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15527 lt_cv_prog_compiler_pic_works_CXX=yes 15528 fi 15529 fi 15530 $RM conftest* 15531 15532fi 15533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15534$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15535 15536if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15537 case $lt_prog_compiler_pic_CXX in 15538 "" | " "*) ;; 15539 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15540 esac 15541else 15542 lt_prog_compiler_pic_CXX= 15543 lt_prog_compiler_can_build_shared_CXX=no 15544fi 15545 15546fi 15547 15548 15549 15550 15551 15552# 15553# Check to make sure the static flag actually works. 15554# 15555wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15557$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15558if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15559 $as_echo_n "(cached) " >&6 15560else 15561 lt_cv_prog_compiler_static_works_CXX=no 15562 save_LDFLAGS=$LDFLAGS 15563 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15564 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15565 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15566 # The linker can only warn and ignore the option if not recognized 15567 # So say no if there are warnings 15568 if test -s conftest.err; then 15569 # Append any errors to the config.log. 15570 cat conftest.err 1>&5 15571 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15572 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15573 if diff conftest.exp conftest.er2 >/dev/null; then 15574 lt_cv_prog_compiler_static_works_CXX=yes 15575 fi 15576 else 15577 lt_cv_prog_compiler_static_works_CXX=yes 15578 fi 15579 fi 15580 $RM -r conftest* 15581 LDFLAGS=$save_LDFLAGS 15582 15583fi 15584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15585$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15586 15587if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15588 : 15589else 15590 lt_prog_compiler_static_CXX= 15591fi 15592 15593 15594 15595 15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15597$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15598if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15599 $as_echo_n "(cached) " >&6 15600else 15601 lt_cv_prog_compiler_c_o_CXX=no 15602 $RM -r conftest 2>/dev/null 15603 mkdir conftest 15604 cd conftest 15605 mkdir out 15606 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15607 15608 lt_compiler_flag="-o out/conftest2.$ac_objext" 15609 # Insert the option either (1) after the last *FLAGS variable, or 15610 # (2) before a word containing "conftest.", or (3) at the end. 15611 # Note that $ac_compile itself does not contain backslashes and begins 15612 # with a dollar sign (not a hyphen), so the echo should work correctly. 15613 lt_compile=`echo "$ac_compile" | $SED \ 15614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15616 -e 's:$: $lt_compiler_flag:'` 15617 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15618 (eval "$lt_compile" 2>out/conftest.err) 15619 ac_status=$? 15620 cat out/conftest.err >&5 15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15622 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15623 then 15624 # The compiler can only warn and ignore the option if not recognized 15625 # So say no if there are warnings 15626 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15627 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15628 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15629 lt_cv_prog_compiler_c_o_CXX=yes 15630 fi 15631 fi 15632 chmod u+w . 2>&5 15633 $RM conftest* 15634 # SGI C++ compiler will create directory out/ii_files/ for 15635 # template instantiation 15636 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15637 $RM out/* && rmdir out 15638 cd .. 15639 $RM -r conftest 15640 $RM conftest* 15641 15642fi 15643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15644$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15645 15646 15647 15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15649$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15650if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15651 $as_echo_n "(cached) " >&6 15652else 15653 lt_cv_prog_compiler_c_o_CXX=no 15654 $RM -r conftest 2>/dev/null 15655 mkdir conftest 15656 cd conftest 15657 mkdir out 15658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15659 15660 lt_compiler_flag="-o out/conftest2.$ac_objext" 15661 # Insert the option either (1) after the last *FLAGS variable, or 15662 # (2) before a word containing "conftest.", or (3) at the end. 15663 # Note that $ac_compile itself does not contain backslashes and begins 15664 # with a dollar sign (not a hyphen), so the echo should work correctly. 15665 lt_compile=`echo "$ac_compile" | $SED \ 15666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15668 -e 's:$: $lt_compiler_flag:'` 15669 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15670 (eval "$lt_compile" 2>out/conftest.err) 15671 ac_status=$? 15672 cat out/conftest.err >&5 15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15674 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15675 then 15676 # The compiler can only warn and ignore the option if not recognized 15677 # So say no if there are warnings 15678 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15679 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15680 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15681 lt_cv_prog_compiler_c_o_CXX=yes 15682 fi 15683 fi 15684 chmod u+w . 2>&5 15685 $RM conftest* 15686 # SGI C++ compiler will create directory out/ii_files/ for 15687 # template instantiation 15688 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15689 $RM out/* && rmdir out 15690 cd .. 15691 $RM -r conftest 15692 $RM conftest* 15693 15694fi 15695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15696$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15697 15698 15699 15700 15701hard_links=nottested 15702if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15703 # do not overwrite the value of need_locks provided by the user 15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15705$as_echo_n "checking if we can lock with hard links... " >&6; } 15706 hard_links=yes 15707 $RM conftest* 15708 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15709 touch conftest.a 15710 ln conftest.a conftest.b 2>&5 || hard_links=no 15711 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15713$as_echo "$hard_links" >&6; } 15714 if test no = "$hard_links"; then 15715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15716$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15717 need_locks=warn 15718 fi 15719else 15720 need_locks=no 15721fi 15722 15723 15724 15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15726$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15727 15728 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15729 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15730 case $host_os in 15731 aix[4-9]*) 15732 # If we're using GNU nm, then we don't want the "-C" option. 15733 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15734 # Without the "-l" option, or with the "-B" option, AIX nm treats 15735 # weak defined symbols like other global defined symbols, whereas 15736 # GNU nm marks them as "W". 15737 # While the 'weak' keyword is ignored in the Export File, we need 15738 # it in the Import File for the 'aix-soname' feature, so we have 15739 # to replace the "-B" option with "-P" for AIX nm. 15740 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15741 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 15742 else 15743 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 15744 fi 15745 ;; 15746 pw32*) 15747 export_symbols_cmds_CXX=$ltdll_cmds 15748 ;; 15749 cygwin* | mingw* | cegcc*) 15750 case $cc_basename in 15751 cl*) 15752 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15753 ;; 15754 *) 15755 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' 15756 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15757 ;; 15758 esac 15759 ;; 15760 linux* | k*bsd*-gnu | gnu*) 15761 link_all_deplibs_CXX=no 15762 ;; 15763 *) 15764 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15765 ;; 15766 esac 15767 15768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15769$as_echo "$ld_shlibs_CXX" >&6; } 15770test no = "$ld_shlibs_CXX" && can_build_shared=no 15771 15772with_gnu_ld_CXX=$with_gnu_ld 15773 15774 15775 15776 15777 15778 15779# 15780# Do we need to explicitly link libc? 15781# 15782case "x$archive_cmds_need_lc_CXX" in 15783x|xyes) 15784 # Assume -lc should be added 15785 archive_cmds_need_lc_CXX=yes 15786 15787 if test yes,yes = "$GCC,$enable_shared"; then 15788 case $archive_cmds_CXX in 15789 *'~'*) 15790 # FIXME: we may have to deal with multi-command sequences. 15791 ;; 15792 '$CC '*) 15793 # Test whether the compiler implicitly links with -lc since on some 15794 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15795 # to ld, don't add -lc before -lgcc. 15796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15797$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15798if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15799 $as_echo_n "(cached) " >&6 15800else 15801 $RM conftest* 15802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15803 15804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15805 (eval $ac_compile) 2>&5 15806 ac_status=$? 15807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15808 test $ac_status = 0; } 2>conftest.err; then 15809 soname=conftest 15810 lib=conftest 15811 libobjs=conftest.$ac_objext 15812 deplibs= 15813 wl=$lt_prog_compiler_wl_CXX 15814 pic_flag=$lt_prog_compiler_pic_CXX 15815 compiler_flags=-v 15816 linker_flags=-v 15817 verstring= 15818 output_objdir=. 15819 libname=conftest 15820 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15821 allow_undefined_flag_CXX= 15822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15823 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15824 ac_status=$? 15825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15826 test $ac_status = 0; } 15827 then 15828 lt_cv_archive_cmds_need_lc_CXX=no 15829 else 15830 lt_cv_archive_cmds_need_lc_CXX=yes 15831 fi 15832 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15833 else 15834 cat conftest.err 1>&5 15835 fi 15836 $RM conftest* 15837 15838fi 15839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15840$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15841 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15842 ;; 15843 esac 15844 fi 15845 ;; 15846esac 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15910$as_echo_n "checking dynamic linker characteristics... " >&6; } 15911 15912library_names_spec= 15913libname_spec='lib$name' 15914soname_spec= 15915shrext_cmds=.so 15916postinstall_cmds= 15917postuninstall_cmds= 15918finish_cmds= 15919finish_eval= 15920shlibpath_var= 15921shlibpath_overrides_runpath=unknown 15922version_type=none 15923dynamic_linker="$host_os ld.so" 15924sys_lib_dlsearch_path_spec="/lib /usr/lib" 15925need_lib_prefix=unknown 15926hardcode_into_libs=no 15927 15928# when you set need_version to no, make sure it does not cause -set_version 15929# flags to be left without arguments 15930need_version=unknown 15931 15932 15933 15934case $host_os in 15935aix3*) 15936 version_type=linux # correct to gnu/linux during the next big refactor 15937 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15938 shlibpath_var=LIBPATH 15939 15940 # AIX 3 has no versioning support, so we append a major version to the name. 15941 soname_spec='$libname$release$shared_ext$major' 15942 ;; 15943 15944aix[4-9]*) 15945 version_type=linux # correct to gnu/linux during the next big refactor 15946 need_lib_prefix=no 15947 need_version=no 15948 hardcode_into_libs=yes 15949 if test ia64 = "$host_cpu"; then 15950 # AIX 5 supports IA64 15951 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15952 shlibpath_var=LD_LIBRARY_PATH 15953 else 15954 # With GCC up to 2.95.x, collect2 would create an import file 15955 # for dependence libraries. The import file would start with 15956 # the line '#! .'. This would cause the generated library to 15957 # depend on '.', always an invalid library. This was fixed in 15958 # development snapshots of GCC prior to 3.0. 15959 case $host_os in 15960 aix4 | aix4.[01] | aix4.[01].*) 15961 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15962 echo ' yes ' 15963 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15964 : 15965 else 15966 can_build_shared=no 15967 fi 15968 ;; 15969 esac 15970 # Using Import Files as archive members, it is possible to support 15971 # filename-based versioning of shared library archives on AIX. While 15972 # this would work for both with and without runtime linking, it will 15973 # prevent static linking of such archives. So we do filename-based 15974 # shared library versioning with .so extension only, which is used 15975 # when both runtime linking and shared linking is enabled. 15976 # Unfortunately, runtime linking may impact performance, so we do 15977 # not want this to be the default eventually. Also, we use the 15978 # versioned .so libs for executables only if there is the -brtl 15979 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15980 # To allow for filename-based versioning support, we need to create 15981 # libNAME.so.V as an archive file, containing: 15982 # *) an Import File, referring to the versioned filename of the 15983 # archive as well as the shared archive member, telling the 15984 # bitwidth (32 or 64) of that shared object, and providing the 15985 # list of exported symbols of that shared object, eventually 15986 # decorated with the 'weak' keyword 15987 # *) the shared object with the F_LOADONLY flag set, to really avoid 15988 # it being seen by the linker. 15989 # At run time we better use the real file rather than another symlink, 15990 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15991 15992 case $with_aix_soname,$aix_use_runtimelinking in 15993 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15994 # soname into executable. Probably we can add versioning support to 15995 # collect2, so additional links can be useful in future. 15996 aix,yes) # traditional libtool 15997 dynamic_linker='AIX unversionable lib.so' 15998 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15999 # instead of lib<name>.a to let people know that these are not 16000 # typical AIX shared libraries. 16001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16002 ;; 16003 aix,no) # traditional AIX only 16004 dynamic_linker='AIX lib.a(lib.so.V)' 16005 # We preserve .a as extension for shared libraries through AIX4.2 16006 # and later when we are not doing run time linking. 16007 library_names_spec='$libname$release.a $libname.a' 16008 soname_spec='$libname$release$shared_ext$major' 16009 ;; 16010 svr4,*) # full svr4 only 16011 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16012 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16013 # We do not specify a path in Import Files, so LIBPATH fires. 16014 shlibpath_overrides_runpath=yes 16015 ;; 16016 *,yes) # both, prefer svr4 16017 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16018 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16019 # unpreferred sharedlib libNAME.a needs extra handling 16020 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 16021 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 16022 # We do not specify a path in Import Files, so LIBPATH fires. 16023 shlibpath_overrides_runpath=yes 16024 ;; 16025 *,no) # both, prefer aix 16026 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16027 library_names_spec='$libname$release.a $libname.a' 16028 soname_spec='$libname$release$shared_ext$major' 16029 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16030 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 16031 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 16032 ;; 16033 esac 16034 shlibpath_var=LIBPATH 16035 fi 16036 ;; 16037 16038amigaos*) 16039 case $host_cpu in 16040 powerpc) 16041 # Since July 2007 AmigaOS4 officially supports .so libraries. 16042 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16043 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16044 ;; 16045 m68k) 16046 library_names_spec='$libname.ixlibrary $libname.a' 16047 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16048 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16049 ;; 16050 esac 16051 ;; 16052 16053beos*) 16054 library_names_spec='$libname$shared_ext' 16055 dynamic_linker="$host_os ld.so" 16056 shlibpath_var=LIBRARY_PATH 16057 ;; 16058 16059bsdi[45]*) 16060 version_type=linux # correct to gnu/linux during the next big refactor 16061 need_version=no 16062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16063 soname_spec='$libname$release$shared_ext$major' 16064 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16065 shlibpath_var=LD_LIBRARY_PATH 16066 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16067 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16068 # the default ld.so.conf also contains /usr/contrib/lib and 16069 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16070 # libtool to hard-code these into programs 16071 ;; 16072 16073cygwin* | mingw* | pw32* | cegcc*) 16074 version_type=windows 16075 shrext_cmds=.dll 16076 need_version=no 16077 need_lib_prefix=no 16078 16079 case $GCC,$cc_basename in 16080 yes,*) 16081 # gcc 16082 library_names_spec='$libname.dll.a' 16083 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16084 postinstall_cmds='base_file=`basename \$file`~ 16085 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16086 dldir=$destdir/`dirname \$dlpath`~ 16087 test -d \$dldir || mkdir -p \$dldir~ 16088 $install_prog $dir/$dlname \$dldir/$dlname~ 16089 chmod a+x \$dldir/$dlname~ 16090 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16091 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16092 fi' 16093 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16094 dlpath=$dir/\$dldll~ 16095 $RM \$dlpath' 16096 shlibpath_overrides_runpath=yes 16097 16098 case $host_os in 16099 cygwin*) 16100 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16101 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16102 16103 ;; 16104 mingw* | cegcc*) 16105 # MinGW DLLs use traditional 'lib' prefix 16106 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16107 ;; 16108 pw32*) 16109 # pw32 DLLs use 'pw' prefix rather than 'lib' 16110 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16111 ;; 16112 esac 16113 dynamic_linker='Win32 ld.exe' 16114 ;; 16115 16116 *,cl*) 16117 # Native MSVC 16118 libname_spec='$name' 16119 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16120 library_names_spec='$libname.dll.lib' 16121 16122 case $build_os in 16123 mingw*) 16124 sys_lib_search_path_spec= 16125 lt_save_ifs=$IFS 16126 IFS=';' 16127 for lt_path in $LIB 16128 do 16129 IFS=$lt_save_ifs 16130 # Let DOS variable expansion print the short 8.3 style file name. 16131 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16132 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16133 done 16134 IFS=$lt_save_ifs 16135 # Convert to MSYS style. 16136 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16137 ;; 16138 cygwin*) 16139 # Convert to unix form, then to dos form, then back to unix form 16140 # but this time dos style (no spaces!) so that the unix form looks 16141 # like /cygdrive/c/PROGRA~1:/cygdr... 16142 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16143 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16144 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16145 ;; 16146 *) 16147 sys_lib_search_path_spec=$LIB 16148 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16149 # It is most probably a Windows format PATH. 16150 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16151 else 16152 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16153 fi 16154 # FIXME: find the short name or the path components, as spaces are 16155 # common. (e.g. "Program Files" -> "PROGRA~1") 16156 ;; 16157 esac 16158 16159 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16160 postinstall_cmds='base_file=`basename \$file`~ 16161 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16162 dldir=$destdir/`dirname \$dlpath`~ 16163 test -d \$dldir || mkdir -p \$dldir~ 16164 $install_prog $dir/$dlname \$dldir/$dlname' 16165 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16166 dlpath=$dir/\$dldll~ 16167 $RM \$dlpath' 16168 shlibpath_overrides_runpath=yes 16169 dynamic_linker='Win32 link.exe' 16170 ;; 16171 16172 *) 16173 # Assume MSVC wrapper 16174 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16175 dynamic_linker='Win32 ld.exe' 16176 ;; 16177 esac 16178 # FIXME: first we should search . and the directory the executable is in 16179 shlibpath_var=PATH 16180 ;; 16181 16182darwin* | rhapsody*) 16183 dynamic_linker="$host_os dyld" 16184 version_type=darwin 16185 need_lib_prefix=no 16186 need_version=no 16187 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16188 soname_spec='$libname$release$major$shared_ext' 16189 shlibpath_overrides_runpath=yes 16190 shlibpath_var=DYLD_LIBRARY_PATH 16191 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16192 16193 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16194 ;; 16195 16196dgux*) 16197 version_type=linux # correct to gnu/linux during the next big refactor 16198 need_lib_prefix=no 16199 need_version=no 16200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16201 soname_spec='$libname$release$shared_ext$major' 16202 shlibpath_var=LD_LIBRARY_PATH 16203 ;; 16204 16205freebsd* | dragonfly*) 16206 # DragonFly does not have aout. When/if they implement a new 16207 # versioning mechanism, adjust this. 16208 if test -x /usr/bin/objformat; then 16209 objformat=`/usr/bin/objformat` 16210 else 16211 case $host_os in 16212 freebsd[23].*) objformat=aout ;; 16213 *) objformat=elf ;; 16214 esac 16215 fi 16216 version_type=freebsd-$objformat 16217 case $version_type in 16218 freebsd-elf*) 16219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16220 soname_spec='$libname$release$shared_ext$major' 16221 need_version=no 16222 need_lib_prefix=no 16223 ;; 16224 freebsd-*) 16225 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16226 need_version=yes 16227 ;; 16228 esac 16229 shlibpath_var=LD_LIBRARY_PATH 16230 case $host_os in 16231 freebsd2.*) 16232 shlibpath_overrides_runpath=yes 16233 ;; 16234 freebsd3.[01]* | freebsdelf3.[01]*) 16235 shlibpath_overrides_runpath=yes 16236 hardcode_into_libs=yes 16237 ;; 16238 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16239 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16240 shlibpath_overrides_runpath=no 16241 hardcode_into_libs=yes 16242 ;; 16243 *) # from 4.6 on, and DragonFly 16244 shlibpath_overrides_runpath=yes 16245 hardcode_into_libs=yes 16246 ;; 16247 esac 16248 ;; 16249 16250haiku*) 16251 version_type=linux # correct to gnu/linux during the next big refactor 16252 need_lib_prefix=no 16253 need_version=no 16254 dynamic_linker="$host_os runtime_loader" 16255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16256 soname_spec='$libname$release$shared_ext$major' 16257 shlibpath_var=LIBRARY_PATH 16258 shlibpath_overrides_runpath=no 16259 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16260 hardcode_into_libs=yes 16261 ;; 16262 16263hpux9* | hpux10* | hpux11*) 16264 # Give a soname corresponding to the major version so that dld.sl refuses to 16265 # link against other versions. 16266 version_type=sunos 16267 need_lib_prefix=no 16268 need_version=no 16269 case $host_cpu in 16270 ia64*) 16271 shrext_cmds='.so' 16272 hardcode_into_libs=yes 16273 dynamic_linker="$host_os dld.so" 16274 shlibpath_var=LD_LIBRARY_PATH 16275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16277 soname_spec='$libname$release$shared_ext$major' 16278 if test 32 = "$HPUX_IA64_MODE"; then 16279 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16280 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16281 else 16282 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16283 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16284 fi 16285 ;; 16286 hppa*64*) 16287 shrext_cmds='.sl' 16288 hardcode_into_libs=yes 16289 dynamic_linker="$host_os dld.sl" 16290 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16291 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16293 soname_spec='$libname$release$shared_ext$major' 16294 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16296 ;; 16297 *) 16298 shrext_cmds='.sl' 16299 dynamic_linker="$host_os dld.sl" 16300 shlibpath_var=SHLIB_PATH 16301 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16303 soname_spec='$libname$release$shared_ext$major' 16304 ;; 16305 esac 16306 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16307 postinstall_cmds='chmod 555 $lib' 16308 # or fails outright, so override atomically: 16309 install_override_mode=555 16310 ;; 16311 16312interix[3-9]*) 16313 version_type=linux # correct to gnu/linux during the next big refactor 16314 need_lib_prefix=no 16315 need_version=no 16316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16317 soname_spec='$libname$release$shared_ext$major' 16318 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16319 shlibpath_var=LD_LIBRARY_PATH 16320 shlibpath_overrides_runpath=no 16321 hardcode_into_libs=yes 16322 ;; 16323 16324irix5* | irix6* | nonstopux*) 16325 case $host_os in 16326 nonstopux*) version_type=nonstopux ;; 16327 *) 16328 if test yes = "$lt_cv_prog_gnu_ld"; then 16329 version_type=linux # correct to gnu/linux during the next big refactor 16330 else 16331 version_type=irix 16332 fi ;; 16333 esac 16334 need_lib_prefix=no 16335 need_version=no 16336 soname_spec='$libname$release$shared_ext$major' 16337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16338 case $host_os in 16339 irix5* | nonstopux*) 16340 libsuff= shlibsuff= 16341 ;; 16342 *) 16343 case $LD in # libtool.m4 will add one of these switches to LD 16344 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16345 libsuff= shlibsuff= libmagic=32-bit;; 16346 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16347 libsuff=32 shlibsuff=N32 libmagic=N32;; 16348 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16349 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16350 *) libsuff= shlibsuff= libmagic=never-match;; 16351 esac 16352 ;; 16353 esac 16354 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16355 shlibpath_overrides_runpath=no 16356 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16357 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16358 hardcode_into_libs=yes 16359 ;; 16360 16361# No shared lib support for Linux oldld, aout, or coff. 16362linux*oldld* | linux*aout* | linux*coff*) 16363 dynamic_linker=no 16364 ;; 16365 16366linux*android*) 16367 version_type=none # Android doesn't support versioned libraries. 16368 need_lib_prefix=no 16369 need_version=no 16370 library_names_spec='$libname$release$shared_ext' 16371 soname_spec='$libname$release$shared_ext' 16372 finish_cmds= 16373 shlibpath_var=LD_LIBRARY_PATH 16374 shlibpath_overrides_runpath=yes 16375 16376 # This implies no fast_install, which is unacceptable. 16377 # Some rework will be needed to allow for fast_install 16378 # before this can be enabled. 16379 hardcode_into_libs=yes 16380 16381 dynamic_linker='Android linker' 16382 # Don't embed -rpath directories since the linker doesn't support them. 16383 hardcode_libdir_flag_spec_CXX='-L$libdir' 16384 ;; 16385 16386# This must be glibc/ELF. 16387linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16388 version_type=linux # correct to gnu/linux during the next big refactor 16389 need_lib_prefix=no 16390 need_version=no 16391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16392 soname_spec='$libname$release$shared_ext$major' 16393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16394 shlibpath_var=LD_LIBRARY_PATH 16395 shlibpath_overrides_runpath=no 16396 16397 # Some binutils ld are patched to set DT_RUNPATH 16398 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16399 $as_echo_n "(cached) " >&6 16400else 16401 lt_cv_shlibpath_overrides_runpath=no 16402 save_LDFLAGS=$LDFLAGS 16403 save_libdir=$libdir 16404 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16405 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16407/* end confdefs.h. */ 16408 16409int 16410main () 16411{ 16412 16413 ; 16414 return 0; 16415} 16416_ACEOF 16417if ac_fn_cxx_try_link "$LINENO"; then : 16418 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16419 lt_cv_shlibpath_overrides_runpath=yes 16420fi 16421fi 16422rm -f core conftest.err conftest.$ac_objext \ 16423 conftest$ac_exeext conftest.$ac_ext 16424 LDFLAGS=$save_LDFLAGS 16425 libdir=$save_libdir 16426 16427fi 16428 16429 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16430 16431 # This implies no fast_install, which is unacceptable. 16432 # Some rework will be needed to allow for fast_install 16433 # before this can be enabled. 16434 hardcode_into_libs=yes 16435 16436 # Ideally, we could use ldconfig to report *all* directores which are 16437 # searched for libraries, however this is still not possible. Aside from not 16438 # being certain /sbin/ldconfig is available, command 16439 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16440 # even though it is searched at run-time. Try to do the best guess by 16441 # appending ld.so.conf contents (and includes) to the search path. 16442 if test -f /etc/ld.so.conf; then 16443 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' ' '` 16444 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16445 fi 16446 16447 # We used to test for /lib/ld.so.1 and disable shared libraries on 16448 # powerpc, because MkLinux only supported shared libraries with the 16449 # GNU dynamic linker. Since this was broken with cross compilers, 16450 # most powerpc-linux boxes support dynamic linking these days and 16451 # people can always --disable-shared, the test was removed, and we 16452 # assume the GNU/Linux dynamic linker is in use. 16453 dynamic_linker='GNU/Linux ld.so' 16454 ;; 16455 16456netbsdelf*-gnu) 16457 version_type=linux 16458 need_lib_prefix=no 16459 need_version=no 16460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16461 soname_spec='${libname}${release}${shared_ext}$major' 16462 shlibpath_var=LD_LIBRARY_PATH 16463 shlibpath_overrides_runpath=no 16464 hardcode_into_libs=yes 16465 dynamic_linker='NetBSD ld.elf_so' 16466 ;; 16467 16468netbsd*) 16469 version_type=sunos 16470 need_lib_prefix=no 16471 need_version=no 16472 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16473 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16475 dynamic_linker='NetBSD (a.out) ld.so' 16476 else 16477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16478 soname_spec='$libname$release$shared_ext$major' 16479 dynamic_linker='NetBSD ld.elf_so' 16480 fi 16481 shlibpath_var=LD_LIBRARY_PATH 16482 shlibpath_overrides_runpath=yes 16483 hardcode_into_libs=yes 16484 ;; 16485 16486newsos6) 16487 version_type=linux # correct to gnu/linux during the next big refactor 16488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16489 shlibpath_var=LD_LIBRARY_PATH 16490 shlibpath_overrides_runpath=yes 16491 ;; 16492 16493*nto* | *qnx*) 16494 version_type=qnx 16495 need_lib_prefix=no 16496 need_version=no 16497 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16498 soname_spec='$libname$release$shared_ext$major' 16499 shlibpath_var=LD_LIBRARY_PATH 16500 shlibpath_overrides_runpath=no 16501 hardcode_into_libs=yes 16502 dynamic_linker='ldqnx.so' 16503 ;; 16504 16505openbsd* | bitrig*) 16506 version_type=sunos 16507 sys_lib_dlsearch_path_spec=/usr/lib 16508 need_lib_prefix=no 16509 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16510 need_version=no 16511 else 16512 need_version=yes 16513 fi 16514 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16516 shlibpath_var=LD_LIBRARY_PATH 16517 shlibpath_overrides_runpath=yes 16518 ;; 16519 16520os2*) 16521 libname_spec='$name' 16522 version_type=windows 16523 shrext_cmds=.dll 16524 need_version=no 16525 need_lib_prefix=no 16526 # OS/2 can only load a DLL with a base name of 8 characters or less. 16527 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16528 v=$($ECHO $release$versuffix | tr -d .-); 16529 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16530 $ECHO $n$v`$shared_ext' 16531 library_names_spec='${libname}_dll.$libext' 16532 dynamic_linker='OS/2 ld.exe' 16533 shlibpath_var=BEGINLIBPATH 16534 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16535 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16536 postinstall_cmds='base_file=`basename \$file`~ 16537 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16538 dldir=$destdir/`dirname \$dlpath`~ 16539 test -d \$dldir || mkdir -p \$dldir~ 16540 $install_prog $dir/$dlname \$dldir/$dlname~ 16541 chmod a+x \$dldir/$dlname~ 16542 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16543 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16544 fi' 16545 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16546 dlpath=$dir/\$dldll~ 16547 $RM \$dlpath' 16548 ;; 16549 16550osf3* | osf4* | osf5*) 16551 version_type=osf 16552 need_lib_prefix=no 16553 need_version=no 16554 soname_spec='$libname$release$shared_ext$major' 16555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16556 shlibpath_var=LD_LIBRARY_PATH 16557 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16558 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16559 ;; 16560 16561rdos*) 16562 dynamic_linker=no 16563 ;; 16564 16565solaris*) 16566 version_type=linux # correct to gnu/linux during the next big refactor 16567 need_lib_prefix=no 16568 need_version=no 16569 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16570 soname_spec='$libname$release$shared_ext$major' 16571 shlibpath_var=LD_LIBRARY_PATH 16572 shlibpath_overrides_runpath=yes 16573 hardcode_into_libs=yes 16574 # ldd complains unless libraries are executable 16575 postinstall_cmds='chmod +x $lib' 16576 ;; 16577 16578sunos4*) 16579 version_type=sunos 16580 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16581 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16582 shlibpath_var=LD_LIBRARY_PATH 16583 shlibpath_overrides_runpath=yes 16584 if test yes = "$with_gnu_ld"; then 16585 need_lib_prefix=no 16586 fi 16587 need_version=yes 16588 ;; 16589 16590sysv4 | sysv4.3*) 16591 version_type=linux # correct to gnu/linux during the next big refactor 16592 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16593 soname_spec='$libname$release$shared_ext$major' 16594 shlibpath_var=LD_LIBRARY_PATH 16595 case $host_vendor in 16596 sni) 16597 shlibpath_overrides_runpath=no 16598 need_lib_prefix=no 16599 runpath_var=LD_RUN_PATH 16600 ;; 16601 siemens) 16602 need_lib_prefix=no 16603 ;; 16604 motorola) 16605 need_lib_prefix=no 16606 need_version=no 16607 shlibpath_overrides_runpath=no 16608 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16609 ;; 16610 esac 16611 ;; 16612 16613sysv4*MP*) 16614 if test -d /usr/nec; then 16615 version_type=linux # correct to gnu/linux during the next big refactor 16616 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16617 soname_spec='$libname$shared_ext.$major' 16618 shlibpath_var=LD_LIBRARY_PATH 16619 fi 16620 ;; 16621 16622sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16623 version_type=sco 16624 need_lib_prefix=no 16625 need_version=no 16626 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16627 soname_spec='$libname$release$shared_ext$major' 16628 shlibpath_var=LD_LIBRARY_PATH 16629 shlibpath_overrides_runpath=yes 16630 hardcode_into_libs=yes 16631 if test yes = "$with_gnu_ld"; then 16632 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16633 else 16634 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16635 case $host_os in 16636 sco3.2v5*) 16637 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16638 ;; 16639 esac 16640 fi 16641 sys_lib_dlsearch_path_spec='/usr/lib' 16642 ;; 16643 16644tpf*) 16645 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16646 version_type=linux # correct to gnu/linux during the next big refactor 16647 need_lib_prefix=no 16648 need_version=no 16649 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16650 shlibpath_var=LD_LIBRARY_PATH 16651 shlibpath_overrides_runpath=no 16652 hardcode_into_libs=yes 16653 ;; 16654 16655uts4*) 16656 version_type=linux # correct to gnu/linux during the next big refactor 16657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16658 soname_spec='$libname$release$shared_ext$major' 16659 shlibpath_var=LD_LIBRARY_PATH 16660 ;; 16661 16662*) 16663 dynamic_linker=no 16664 ;; 16665esac 16666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16667$as_echo "$dynamic_linker" >&6; } 16668test no = "$dynamic_linker" && can_build_shared=no 16669 16670variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16671if test yes = "$GCC"; then 16672 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16673fi 16674 16675if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16676 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16677fi 16678 16679if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16680 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16681fi 16682 16683# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16684configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16685 16686# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16687func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16688 16689# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16690configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16732$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16733hardcode_action_CXX= 16734if test -n "$hardcode_libdir_flag_spec_CXX" || 16735 test -n "$runpath_var_CXX" || 16736 test yes = "$hardcode_automatic_CXX"; then 16737 16738 # We can hardcode non-existent directories. 16739 if test no != "$hardcode_direct_CXX" && 16740 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16741 # have to relink, otherwise we might link with an installed library 16742 # when we should be linking with a yet-to-be-installed one 16743 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16744 test no != "$hardcode_minus_L_CXX"; then 16745 # Linking always hardcodes the temporary library directory. 16746 hardcode_action_CXX=relink 16747 else 16748 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16749 hardcode_action_CXX=immediate 16750 fi 16751else 16752 # We cannot hardcode anything, or else we can only hardcode existing 16753 # directories. 16754 hardcode_action_CXX=unsupported 16755fi 16756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16757$as_echo "$hardcode_action_CXX" >&6; } 16758 16759if test relink = "$hardcode_action_CXX" || 16760 test yes = "$inherit_rpath_CXX"; then 16761 # Fast installation is not supported 16762 enable_fast_install=no 16763elif test yes = "$shlibpath_overrides_runpath" || 16764 test no = "$enable_shared"; then 16765 # Fast installation is not necessary 16766 enable_fast_install=needless 16767fi 16768 16769 16770 16771 16772 16773 16774 16775 fi # test -n "$compiler" 16776 16777 CC=$lt_save_CC 16778 CFLAGS=$lt_save_CFLAGS 16779 LDCXX=$LD 16780 LD=$lt_save_LD 16781 GCC=$lt_save_GCC 16782 with_gnu_ld=$lt_save_with_gnu_ld 16783 lt_cv_path_LDCXX=$lt_cv_path_LD 16784 lt_cv_path_LD=$lt_save_path_LD 16785 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16786 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16787fi # test yes != "$_lt_caught_CXX_error" 16788 16789ac_ext=c 16790ac_cpp='$CPP $CPPFLAGS' 16791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16793ac_compiler_gnu=$ac_cv_c_compiler_gnu 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 ac_config_commands="$ac_config_commands libtool" 16810 16811 16812 16813 16814# Only expand once: 16815 16816 16817for ac_prog in flex lex 16818do 16819 # Extract the first word of "$ac_prog", so it can be a program name with args. 16820set dummy $ac_prog; ac_word=$2 16821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16822$as_echo_n "checking for $ac_word... " >&6; } 16823if ${ac_cv_prog_LEX+:} false; then : 16824 $as_echo_n "(cached) " >&6 16825else 16826 if test -n "$LEX"; then 16827 ac_cv_prog_LEX="$LEX" # Let the user override the test. 16828else 16829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16830for as_dir in $PATH 16831do 16832 IFS=$as_save_IFS 16833 test -z "$as_dir" && as_dir=. 16834 for ac_exec_ext in '' $ac_executable_extensions; do 16835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16836 ac_cv_prog_LEX="$ac_prog" 16837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16838 break 2 16839 fi 16840done 16841 done 16842IFS=$as_save_IFS 16843 16844fi 16845fi 16846LEX=$ac_cv_prog_LEX 16847if test -n "$LEX"; then 16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 16849$as_echo "$LEX" >&6; } 16850else 16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16852$as_echo "no" >&6; } 16853fi 16854 16855 16856 test -n "$LEX" && break 16857done 16858test -n "$LEX" || LEX=":" 16859 16860if test "x$LEX" != "x:"; then 16861 cat >conftest.l <<_ACEOF 16862%% 16863a { ECHO; } 16864b { REJECT; } 16865c { yymore (); } 16866d { yyless (1); } 16867e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 16868 yyless ((input () != 0)); } 16869f { unput (yytext[0]); } 16870. { BEGIN INITIAL; } 16871%% 16872#ifdef YYTEXT_POINTER 16873extern char *yytext; 16874#endif 16875int 16876main (void) 16877{ 16878 return ! yylex () + ! yywrap (); 16879} 16880_ACEOF 16881{ { ac_try="$LEX conftest.l" 16882case "(($ac_try" in 16883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16884 *) ac_try_echo=$ac_try;; 16885esac 16886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16887$as_echo "$ac_try_echo"; } >&5 16888 (eval "$LEX conftest.l") 2>&5 16889 ac_status=$? 16890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16891 test $ac_status = 0; } 16892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 16893$as_echo_n "checking lex output file root... " >&6; } 16894if ${ac_cv_prog_lex_root+:} false; then : 16895 $as_echo_n "(cached) " >&6 16896else 16897 16898if test -f lex.yy.c; then 16899 ac_cv_prog_lex_root=lex.yy 16900elif test -f lexyy.c; then 16901 ac_cv_prog_lex_root=lexyy 16902else 16903 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 16904fi 16905fi 16906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 16907$as_echo "$ac_cv_prog_lex_root" >&6; } 16908LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 16909 16910if test -z "${LEXLIB+set}"; then 16911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 16912$as_echo_n "checking lex library... " >&6; } 16913if ${ac_cv_lib_lex+:} false; then : 16914 $as_echo_n "(cached) " >&6 16915else 16916 16917 ac_save_LIBS=$LIBS 16918 ac_cv_lib_lex='none needed' 16919 for ac_lib in '' -lfl -ll; do 16920 LIBS="$ac_lib $ac_save_LIBS" 16921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16922/* end confdefs.h. */ 16923`cat $LEX_OUTPUT_ROOT.c` 16924_ACEOF 16925if ac_fn_c_try_link "$LINENO"; then : 16926 ac_cv_lib_lex=$ac_lib 16927fi 16928rm -f core conftest.err conftest.$ac_objext \ 16929 conftest$ac_exeext conftest.$ac_ext 16930 test "$ac_cv_lib_lex" != 'none needed' && break 16931 done 16932 LIBS=$ac_save_LIBS 16933 16934fi 16935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 16936$as_echo "$ac_cv_lib_lex" >&6; } 16937 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 16938fi 16939 16940 16941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 16942$as_echo_n "checking whether yytext is a pointer... " >&6; } 16943if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 16944 $as_echo_n "(cached) " >&6 16945else 16946 # POSIX says lex can declare yytext either as a pointer or an array; the 16947# default is implementation-dependent. Figure out which it is, since 16948# not all implementations provide the %pointer and %array declarations. 16949ac_cv_prog_lex_yytext_pointer=no 16950ac_save_LIBS=$LIBS 16951LIBS="$LEXLIB $ac_save_LIBS" 16952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16953/* end confdefs.h. */ 16954 16955 #define YYTEXT_POINTER 1 16956`cat $LEX_OUTPUT_ROOT.c` 16957_ACEOF 16958if ac_fn_c_try_link "$LINENO"; then : 16959 ac_cv_prog_lex_yytext_pointer=yes 16960fi 16961rm -f core conftest.err conftest.$ac_objext \ 16962 conftest$ac_exeext conftest.$ac_ext 16963LIBS=$ac_save_LIBS 16964 16965fi 16966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 16967$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 16968if test $ac_cv_prog_lex_yytext_pointer = yes; then 16969 16970$as_echo "@%:@define YYTEXT_POINTER 1" >>confdefs.h 16971 16972fi 16973rm -f conftest.l $LEX_OUTPUT_ROOT.c 16974 16975fi 16976for ac_prog in 'bison -y' byacc 16977do 16978 # Extract the first word of "$ac_prog", so it can be a program name with args. 16979set dummy $ac_prog; ac_word=$2 16980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16981$as_echo_n "checking for $ac_word... " >&6; } 16982if ${ac_cv_prog_YACC+:} false; then : 16983 $as_echo_n "(cached) " >&6 16984else 16985 if test -n "$YACC"; then 16986 ac_cv_prog_YACC="$YACC" # Let the user override the test. 16987else 16988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16989for as_dir in $PATH 16990do 16991 IFS=$as_save_IFS 16992 test -z "$as_dir" && as_dir=. 16993 for ac_exec_ext in '' $ac_executable_extensions; do 16994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16995 ac_cv_prog_YACC="$ac_prog" 16996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16997 break 2 16998 fi 16999done 17000 done 17001IFS=$as_save_IFS 17002 17003fi 17004fi 17005YACC=$ac_cv_prog_YACC 17006if test -n "$YACC"; then 17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 17008$as_echo "$YACC" >&6; } 17009else 17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17011$as_echo "no" >&6; } 17012fi 17013 17014 17015 test -n "$YACC" && break 17016done 17017test -n "$YACC" || YACC="yacc" 17018 17019 17020 17021 17022 17023module=yes eval LIB_EXT=$shrext_cmds 17024 17025 17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 17027$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 17028if ${ac_cv_c_bigendian+:} false; then : 17029 $as_echo_n "(cached) " >&6 17030else 17031 ac_cv_c_bigendian=unknown 17032 # See if we're dealing with a universal compiler. 17033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17034/* end confdefs.h. */ 17035#ifndef __APPLE_CC__ 17036 not a universal capable compiler 17037 #endif 17038 typedef int dummy; 17039 17040_ACEOF 17041if ac_fn_c_try_compile "$LINENO"; then : 17042 17043 # Check for potential -arch flags. It is not universal unless 17044 # there are at least two -arch flags with different values. 17045 ac_arch= 17046 ac_prev= 17047 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 17048 if test -n "$ac_prev"; then 17049 case $ac_word in 17050 i?86 | x86_64 | ppc | ppc64) 17051 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 17052 ac_arch=$ac_word 17053 else 17054 ac_cv_c_bigendian=universal 17055 break 17056 fi 17057 ;; 17058 esac 17059 ac_prev= 17060 elif test "x$ac_word" = "x-arch"; then 17061 ac_prev=arch 17062 fi 17063 done 17064fi 17065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17066 if test $ac_cv_c_bigendian = unknown; then 17067 # See if sys/param.h defines the BYTE_ORDER macro. 17068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17069/* end confdefs.h. */ 17070#include <sys/types.h> 17071 #include <sys/param.h> 17072 17073int 17074main () 17075{ 17076#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 17077 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 17078 && LITTLE_ENDIAN) 17079 bogus endian macros 17080 #endif 17081 17082 ; 17083 return 0; 17084} 17085_ACEOF 17086if ac_fn_c_try_compile "$LINENO"; then : 17087 # It does; now see whether it defined to BIG_ENDIAN or not. 17088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17089/* end confdefs.h. */ 17090#include <sys/types.h> 17091 #include <sys/param.h> 17092 17093int 17094main () 17095{ 17096#if BYTE_ORDER != BIG_ENDIAN 17097 not big endian 17098 #endif 17099 17100 ; 17101 return 0; 17102} 17103_ACEOF 17104if ac_fn_c_try_compile "$LINENO"; then : 17105 ac_cv_c_bigendian=yes 17106else 17107 ac_cv_c_bigendian=no 17108fi 17109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17110fi 17111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17112 fi 17113 if test $ac_cv_c_bigendian = unknown; then 17114 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 17115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17116/* end confdefs.h. */ 17117#include <limits.h> 17118 17119int 17120main () 17121{ 17122#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 17123 bogus endian macros 17124 #endif 17125 17126 ; 17127 return 0; 17128} 17129_ACEOF 17130if ac_fn_c_try_compile "$LINENO"; then : 17131 # It does; now see whether it defined to _BIG_ENDIAN or not. 17132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17133/* end confdefs.h. */ 17134#include <limits.h> 17135 17136int 17137main () 17138{ 17139#ifndef _BIG_ENDIAN 17140 not big endian 17141 #endif 17142 17143 ; 17144 return 0; 17145} 17146_ACEOF 17147if ac_fn_c_try_compile "$LINENO"; then : 17148 ac_cv_c_bigendian=yes 17149else 17150 ac_cv_c_bigendian=no 17151fi 17152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17153fi 17154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17155 fi 17156 if test $ac_cv_c_bigendian = unknown; then 17157 # Compile a test program. 17158 if test "$cross_compiling" = yes; then : 17159 # Try to guess by grepping values from an object file. 17160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17161/* end confdefs.h. */ 17162short int ascii_mm[] = 17163 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 17164 short int ascii_ii[] = 17165 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 17166 int use_ascii (int i) { 17167 return ascii_mm[i] + ascii_ii[i]; 17168 } 17169 short int ebcdic_ii[] = 17170 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 17171 short int ebcdic_mm[] = 17172 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 17173 int use_ebcdic (int i) { 17174 return ebcdic_mm[i] + ebcdic_ii[i]; 17175 } 17176 extern int foo; 17177 17178int 17179main () 17180{ 17181return use_ascii (foo) == use_ebcdic (foo); 17182 ; 17183 return 0; 17184} 17185_ACEOF 17186if ac_fn_c_try_compile "$LINENO"; then : 17187 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 17188 ac_cv_c_bigendian=yes 17189 fi 17190 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 17191 if test "$ac_cv_c_bigendian" = unknown; then 17192 ac_cv_c_bigendian=no 17193 else 17194 # finding both strings is unlikely to happen, but who knows? 17195 ac_cv_c_bigendian=unknown 17196 fi 17197 fi 17198fi 17199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17200else 17201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17202/* end confdefs.h. */ 17203$ac_includes_default 17204int 17205main () 17206{ 17207 17208 /* Are we little or big endian? From Harbison&Steele. */ 17209 union 17210 { 17211 long int l; 17212 char c[sizeof (long int)]; 17213 } u; 17214 u.l = 1; 17215 return u.c[sizeof (long int) - 1] == 1; 17216 17217 ; 17218 return 0; 17219} 17220_ACEOF 17221if ac_fn_c_try_run "$LINENO"; then : 17222 ac_cv_c_bigendian=no 17223else 17224 ac_cv_c_bigendian=yes 17225fi 17226rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17227 conftest.$ac_objext conftest.beam conftest.$ac_ext 17228fi 17229 17230 fi 17231fi 17232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 17233$as_echo "$ac_cv_c_bigendian" >&6; } 17234 case $ac_cv_c_bigendian in #( 17235 yes) 17236 $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h 17237;; #( 17238 no) 17239 ;; #( 17240 universal) 17241 17242$as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 17243 17244 ;; #( 17245 *) 17246 as_fn_error $? "unknown endianness 17247 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 17248 esac 17249 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 17260 if test -n "$ac_tool_prefix"; then 17261 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 17262set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 17263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17264$as_echo_n "checking for $ac_word... " >&6; } 17265if ${ac_cv_path_PKG_CONFIG+:} false; then : 17266 $as_echo_n "(cached) " >&6 17267else 17268 case $PKG_CONFIG in 17269 [\\/]* | ?:[\\/]*) 17270 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 17271 ;; 17272 *) 17273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17274for as_dir in $PATH 17275do 17276 IFS=$as_save_IFS 17277 test -z "$as_dir" && as_dir=. 17278 for ac_exec_ext in '' $ac_executable_extensions; do 17279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17280 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17282 break 2 17283 fi 17284done 17285 done 17286IFS=$as_save_IFS 17287 17288 ;; 17289esac 17290fi 17291PKG_CONFIG=$ac_cv_path_PKG_CONFIG 17292if test -n "$PKG_CONFIG"; then 17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 17294$as_echo "$PKG_CONFIG" >&6; } 17295else 17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17297$as_echo "no" >&6; } 17298fi 17299 17300 17301fi 17302if test -z "$ac_cv_path_PKG_CONFIG"; then 17303 ac_pt_PKG_CONFIG=$PKG_CONFIG 17304 # Extract the first word of "pkg-config", so it can be a program name with args. 17305set dummy pkg-config; ac_word=$2 17306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17307$as_echo_n "checking for $ac_word... " >&6; } 17308if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 17309 $as_echo_n "(cached) " >&6 17310else 17311 case $ac_pt_PKG_CONFIG in 17312 [\\/]* | ?:[\\/]*) 17313 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 17314 ;; 17315 *) 17316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17317for as_dir in $PATH 17318do 17319 IFS=$as_save_IFS 17320 test -z "$as_dir" && as_dir=. 17321 for ac_exec_ext in '' $ac_executable_extensions; do 17322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17323 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17325 break 2 17326 fi 17327done 17328 done 17329IFS=$as_save_IFS 17330 17331 ;; 17332esac 17333fi 17334ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 17335if test -n "$ac_pt_PKG_CONFIG"; then 17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 17337$as_echo "$ac_pt_PKG_CONFIG" >&6; } 17338else 17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17340$as_echo "no" >&6; } 17341fi 17342 17343 if test "x$ac_pt_PKG_CONFIG" = x; then 17344 PKG_CONFIG="" 17345 else 17346 case $cross_compiling:$ac_tool_warned in 17347yes:) 17348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17350ac_tool_warned=yes ;; 17351esac 17352 PKG_CONFIG=$ac_pt_PKG_CONFIG 17353 fi 17354else 17355 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 17356fi 17357 17358fi 17359if test -n "$PKG_CONFIG"; then 17360 _pkg_min_version=0.9.0 17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 17362$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 17363 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 17364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17365$as_echo "yes" >&6; } 17366 else 17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17368$as_echo "no" >&6; } 17369 PKG_CONFIG="" 17370 fi 17371fi 17372 17373########################################################################### 17374# General Checks 17375 17376 if test $cross_compiling = yes; then 17377 CROSS_COMPILING_TRUE= 17378 CROSS_COMPILING_FALSE='#' 17379else 17380 CROSS_COMPILING_TRUE='#' 17381 CROSS_COMPILING_FALSE= 17382fi 17383 17384 17385# make sure C++14 is supported by compiler 17386# (add CXXFLAGS if required [e.g. -std=c++14]) 17387# =========================================================================== 17388# https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html 17389# =========================================================================== 17390# 17391# SYNOPSIS 17392# 17393# AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional]) 17394# 17395# DESCRIPTION 17396# 17397# Check for baseline language coverage in the compiler for the specified 17398# version of the C++ standard. If necessary, add switches to CXX and 17399# CXXCPP to enable support. VERSION may be '11' (for the C++11 standard) 17400# or '14' (for the C++14 standard). 17401# 17402# The second argument, if specified, indicates whether you insist on an 17403# extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g. 17404# -std=c++11). If neither is specified, you get whatever works, with 17405# preference for an extended mode. 17406# 17407# The third argument, if specified 'mandatory' or if left unspecified, 17408# indicates that baseline support for the specified C++ standard is 17409# required and that the macro should error out if no mode with that 17410# support is found. If specified 'optional', then configuration proceeds 17411# regardless, after defining HAVE_CXX${VERSION} if and only if a 17412# supporting mode is found. 17413# 17414# LICENSE 17415# 17416# Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com> 17417# Copyright (c) 2012 Zack Weinberg <zackw@panix.com> 17418# Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu> 17419# Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com> 17420# Copyright (c) 2015 Paul Norman <penorman@mac.com> 17421# Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu> 17422# Copyright (c) 2016, 2018 Krzesimir Nowak <qdlacz@gmail.com> 17423# Copyright (c) 2019 Enji Cooper <yaneurabeya@gmail.com> 17424# 17425# Copying and distribution of this file, with or without modification, are 17426# permitted in any medium without royalty provided the copyright notice 17427# and this notice are preserved. This file is offered as-is, without any 17428# warranty. 17429 17430#serial 11 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=true 17457 ac_ext=cpp 17458ac_cpp='$CXXCPP $CPPFLAGS' 17459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17462 ac_success=no 17463 17464 if test x$ac_success = xno; then 17465 for alternative in ${ax_cxx_compile_alternatives}; do 17466 switch="-std=gnu++${alternative}" 17467 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh` 17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5 17469$as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; } 17470if eval \${$cachevar+:} false; then : 17471 $as_echo_n "(cached) " >&6 17472else 17473 ac_save_CXX="$CXX" 17474 CXX="$CXX $switch" 17475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17476/* end confdefs.h. */ 17477 17478 17479// If the compiler admits that it is not ready for C++11, why torture it? 17480// Hopefully, this will speed up the test. 17481 17482#ifndef __cplusplus 17483 17484#error "This is not a C++ compiler" 17485 17486#elif __cplusplus < 201103L 17487 17488#error "This is not a C++11 compiler" 17489 17490#else 17491 17492namespace cxx11 17493{ 17494 17495 namespace test_static_assert 17496 { 17497 17498 template <typename T> 17499 struct check 17500 { 17501 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 17502 }; 17503 17504 } 17505 17506 namespace test_final_override 17507 { 17508 17509 struct Base 17510 { 17511 virtual ~Base() {} 17512 virtual void f() {} 17513 }; 17514 17515 struct Derived : public Base 17516 { 17517 virtual ~Derived() override {} 17518 virtual void f() override {} 17519 }; 17520 17521 } 17522 17523 namespace test_double_right_angle_brackets 17524 { 17525 17526 template < typename T > 17527 struct check {}; 17528 17529 typedef check<void> single_type; 17530 typedef check<check<void>> double_type; 17531 typedef check<check<check<void>>> triple_type; 17532 typedef check<check<check<check<void>>>> quadruple_type; 17533 17534 } 17535 17536 namespace test_decltype 17537 { 17538 17539 int 17540 f() 17541 { 17542 int a = 1; 17543 decltype(a) b = 2; 17544 return a + b; 17545 } 17546 17547 } 17548 17549 namespace test_type_deduction 17550 { 17551 17552 template < typename T1, typename T2 > 17553 struct is_same 17554 { 17555 static const bool value = false; 17556 }; 17557 17558 template < typename T > 17559 struct is_same<T, T> 17560 { 17561 static const bool value = true; 17562 }; 17563 17564 template < typename T1, typename T2 > 17565 auto 17566 add(T1 a1, T2 a2) -> decltype(a1 + a2) 17567 { 17568 return a1 + a2; 17569 } 17570 17571 int 17572 test(const int c, volatile int v) 17573 { 17574 static_assert(is_same<int, decltype(0)>::value == true, ""); 17575 static_assert(is_same<int, decltype(c)>::value == false, ""); 17576 static_assert(is_same<int, decltype(v)>::value == false, ""); 17577 auto ac = c; 17578 auto av = v; 17579 auto sumi = ac + av + 'x'; 17580 auto sumf = ac + av + 1.0; 17581 static_assert(is_same<int, decltype(ac)>::value == true, ""); 17582 static_assert(is_same<int, decltype(av)>::value == true, ""); 17583 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 17584 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 17585 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 17586 return (sumf > 0.0) ? sumi : add(c, v); 17587 } 17588 17589 } 17590 17591 namespace test_noexcept 17592 { 17593 17594 int f() { return 0; } 17595 int g() noexcept { return 0; } 17596 17597 static_assert(noexcept(f()) == false, ""); 17598 static_assert(noexcept(g()) == true, ""); 17599 17600 } 17601 17602 namespace test_constexpr 17603 { 17604 17605 template < typename CharT > 17606 unsigned long constexpr 17607 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 17608 { 17609 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 17610 } 17611 17612 template < typename CharT > 17613 unsigned long constexpr 17614 strlen_c(const CharT *const s) noexcept 17615 { 17616 return strlen_c_r(s, 0UL); 17617 } 17618 17619 static_assert(strlen_c("") == 0UL, ""); 17620 static_assert(strlen_c("1") == 1UL, ""); 17621 static_assert(strlen_c("example") == 7UL, ""); 17622 static_assert(strlen_c("another\0example") == 7UL, ""); 17623 17624 } 17625 17626 namespace test_rvalue_references 17627 { 17628 17629 template < int N > 17630 struct answer 17631 { 17632 static constexpr int value = N; 17633 }; 17634 17635 answer<1> f(int&) { return answer<1>(); } 17636 answer<2> f(const int&) { return answer<2>(); } 17637 answer<3> f(int&&) { return answer<3>(); } 17638 17639 void 17640 test() 17641 { 17642 int i = 0; 17643 const int c = 0; 17644 static_assert(decltype(f(i))::value == 1, ""); 17645 static_assert(decltype(f(c))::value == 2, ""); 17646 static_assert(decltype(f(0))::value == 3, ""); 17647 } 17648 17649 } 17650 17651 namespace test_uniform_initialization 17652 { 17653 17654 struct test 17655 { 17656 static const int zero {}; 17657 static const int one {1}; 17658 }; 17659 17660 static_assert(test::zero == 0, ""); 17661 static_assert(test::one == 1, ""); 17662 17663 } 17664 17665 namespace test_lambdas 17666 { 17667 17668 void 17669 test1() 17670 { 17671 auto lambda1 = [](){}; 17672 auto lambda2 = lambda1; 17673 lambda1(); 17674 lambda2(); 17675 } 17676 17677 int 17678 test2() 17679 { 17680 auto a = [](int i, int j){ return i + j; }(1, 2); 17681 auto b = []() -> int { return '0'; }(); 17682 auto c = [=](){ return a + b; }(); 17683 auto d = [&](){ return c; }(); 17684 auto e = [a, &b](int x) mutable { 17685 const auto identity = [](int y){ return y; }; 17686 for (auto i = 0; i < a; ++i) 17687 a += b--; 17688 return x + identity(a + b); 17689 }(0); 17690 return a + b + c + d + e; 17691 } 17692 17693 int 17694 test3() 17695 { 17696 const auto nullary = [](){ return 0; }; 17697 const auto unary = [](int x){ return x; }; 17698 using nullary_t = decltype(nullary); 17699 using unary_t = decltype(unary); 17700 const auto higher1st = [](nullary_t f){ return f(); }; 17701 const auto higher2nd = [unary](nullary_t f1){ 17702 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 17703 }; 17704 return higher1st(nullary) + higher2nd(nullary)(unary); 17705 } 17706 17707 } 17708 17709 namespace test_variadic_templates 17710 { 17711 17712 template <int...> 17713 struct sum; 17714 17715 template <int N0, int... N1toN> 17716 struct sum<N0, N1toN...> 17717 { 17718 static constexpr auto value = N0 + sum<N1toN...>::value; 17719 }; 17720 17721 template <> 17722 struct sum<> 17723 { 17724 static constexpr auto value = 0; 17725 }; 17726 17727 static_assert(sum<>::value == 0, ""); 17728 static_assert(sum<1>::value == 1, ""); 17729 static_assert(sum<23>::value == 23, ""); 17730 static_assert(sum<1, 2>::value == 3, ""); 17731 static_assert(sum<5, 5, 11>::value == 21, ""); 17732 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 17733 17734 } 17735 17736 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 17737 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 17738 // because of this. 17739 namespace test_template_alias_sfinae 17740 { 17741 17742 struct foo {}; 17743 17744 template<typename T> 17745 using member = typename T::member_type; 17746 17747 template<typename T> 17748 void func(...) {} 17749 17750 template<typename T> 17751 void func(member<T>*) {} 17752 17753 void test(); 17754 17755 void test() { func<foo>(0); } 17756 17757 } 17758 17759} // namespace cxx11 17760 17761#endif // __cplusplus >= 201103L 17762 17763 17764 17765 17766// If the compiler admits that it is not ready for C++14, why torture it? 17767// Hopefully, this will speed up the test. 17768 17769#ifndef __cplusplus 17770 17771#error "This is not a C++ compiler" 17772 17773#elif __cplusplus < 201402L 17774 17775#error "This is not a C++14 compiler" 17776 17777#else 17778 17779namespace cxx14 17780{ 17781 17782 namespace test_polymorphic_lambdas 17783 { 17784 17785 int 17786 test() 17787 { 17788 const auto lambda = [](auto&&... args){ 17789 const auto istiny = [](auto x){ 17790 return (sizeof(x) == 1UL) ? 1 : 0; 17791 }; 17792 const int aretiny[] = { istiny(args)... }; 17793 return aretiny[0]; 17794 }; 17795 return lambda(1, 1L, 1.0f, '1'); 17796 } 17797 17798 } 17799 17800 namespace test_binary_literals 17801 { 17802 17803 constexpr auto ivii = 0b0000000000101010; 17804 static_assert(ivii == 42, "wrong value"); 17805 17806 } 17807 17808 namespace test_generalized_constexpr 17809 { 17810 17811 template < typename CharT > 17812 constexpr unsigned long 17813 strlen_c(const CharT *const s) noexcept 17814 { 17815 auto length = 0UL; 17816 for (auto p = s; *p; ++p) 17817 ++length; 17818 return length; 17819 } 17820 17821 static_assert(strlen_c("") == 0UL, ""); 17822 static_assert(strlen_c("x") == 1UL, ""); 17823 static_assert(strlen_c("test") == 4UL, ""); 17824 static_assert(strlen_c("another\0test") == 7UL, ""); 17825 17826 } 17827 17828 namespace test_lambda_init_capture 17829 { 17830 17831 int 17832 test() 17833 { 17834 auto x = 0; 17835 const auto lambda1 = [a = x](int b){ return a + b; }; 17836 const auto lambda2 = [a = lambda1(x)](){ return a; }; 17837 return lambda2(); 17838 } 17839 17840 } 17841 17842 namespace test_digit_separators 17843 { 17844 17845 constexpr auto ten_million = 100'000'000; 17846 static_assert(ten_million == 100000000, ""); 17847 17848 } 17849 17850 namespace test_return_type_deduction 17851 { 17852 17853 auto f(int& x) { return x; } 17854 decltype(auto) g(int& x) { return x; } 17855 17856 template < typename T1, typename T2 > 17857 struct is_same 17858 { 17859 static constexpr auto value = false; 17860 }; 17861 17862 template < typename T > 17863 struct is_same<T, T> 17864 { 17865 static constexpr auto value = true; 17866 }; 17867 17868 int 17869 test() 17870 { 17871 auto x = 0; 17872 static_assert(is_same<int, decltype(f(x))>::value, ""); 17873 static_assert(is_same<int&, decltype(g(x))>::value, ""); 17874 return x; 17875 } 17876 17877 } 17878 17879} // namespace cxx14 17880 17881#endif // __cplusplus >= 201402L 17882 17883 17884 17885_ACEOF 17886if ac_fn_cxx_try_compile "$LINENO"; then : 17887 eval $cachevar=yes 17888else 17889 eval $cachevar=no 17890fi 17891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17892 CXX="$ac_save_CXX" 17893fi 17894eval ac_res=\$$cachevar 17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17896$as_echo "$ac_res" >&6; } 17897 if eval test x\$$cachevar = xyes; then 17898 CXX="$CXX $switch" 17899 if test -n "$CXXCPP" ; then 17900 CXXCPP="$CXXCPP $switch" 17901 fi 17902 ac_success=yes 17903 break 17904 fi 17905 done 17906 fi 17907 17908 if test x$ac_success = xno; then 17909 for alternative in ${ax_cxx_compile_alternatives}; do 17910 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do 17911 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh` 17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5 17913$as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; } 17914if eval \${$cachevar+:} false; then : 17915 $as_echo_n "(cached) " >&6 17916else 17917 ac_save_CXX="$CXX" 17918 CXX="$CXX $switch" 17919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17920/* end confdefs.h. */ 17921 17922 17923// If the compiler admits that it is not ready for C++11, why torture it? 17924// Hopefully, this will speed up the test. 17925 17926#ifndef __cplusplus 17927 17928#error "This is not a C++ compiler" 17929 17930#elif __cplusplus < 201103L 17931 17932#error "This is not a C++11 compiler" 17933 17934#else 17935 17936namespace cxx11 17937{ 17938 17939 namespace test_static_assert 17940 { 17941 17942 template <typename T> 17943 struct check 17944 { 17945 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 17946 }; 17947 17948 } 17949 17950 namespace test_final_override 17951 { 17952 17953 struct Base 17954 { 17955 virtual ~Base() {} 17956 virtual void f() {} 17957 }; 17958 17959 struct Derived : public Base 17960 { 17961 virtual ~Derived() override {} 17962 virtual void f() override {} 17963 }; 17964 17965 } 17966 17967 namespace test_double_right_angle_brackets 17968 { 17969 17970 template < typename T > 17971 struct check {}; 17972 17973 typedef check<void> single_type; 17974 typedef check<check<void>> double_type; 17975 typedef check<check<check<void>>> triple_type; 17976 typedef check<check<check<check<void>>>> quadruple_type; 17977 17978 } 17979 17980 namespace test_decltype 17981 { 17982 17983 int 17984 f() 17985 { 17986 int a = 1; 17987 decltype(a) b = 2; 17988 return a + b; 17989 } 17990 17991 } 17992 17993 namespace test_type_deduction 17994 { 17995 17996 template < typename T1, typename T2 > 17997 struct is_same 17998 { 17999 static const bool value = false; 18000 }; 18001 18002 template < typename T > 18003 struct is_same<T, T> 18004 { 18005 static const bool value = true; 18006 }; 18007 18008 template < typename T1, typename T2 > 18009 auto 18010 add(T1 a1, T2 a2) -> decltype(a1 + a2) 18011 { 18012 return a1 + a2; 18013 } 18014 18015 int 18016 test(const int c, volatile int v) 18017 { 18018 static_assert(is_same<int, decltype(0)>::value == true, ""); 18019 static_assert(is_same<int, decltype(c)>::value == false, ""); 18020 static_assert(is_same<int, decltype(v)>::value == false, ""); 18021 auto ac = c; 18022 auto av = v; 18023 auto sumi = ac + av + 'x'; 18024 auto sumf = ac + av + 1.0; 18025 static_assert(is_same<int, decltype(ac)>::value == true, ""); 18026 static_assert(is_same<int, decltype(av)>::value == true, ""); 18027 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 18028 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 18029 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 18030 return (sumf > 0.0) ? sumi : add(c, v); 18031 } 18032 18033 } 18034 18035 namespace test_noexcept 18036 { 18037 18038 int f() { return 0; } 18039 int g() noexcept { return 0; } 18040 18041 static_assert(noexcept(f()) == false, ""); 18042 static_assert(noexcept(g()) == true, ""); 18043 18044 } 18045 18046 namespace test_constexpr 18047 { 18048 18049 template < typename CharT > 18050 unsigned long constexpr 18051 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 18052 { 18053 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 18054 } 18055 18056 template < typename CharT > 18057 unsigned long constexpr 18058 strlen_c(const CharT *const s) noexcept 18059 { 18060 return strlen_c_r(s, 0UL); 18061 } 18062 18063 static_assert(strlen_c("") == 0UL, ""); 18064 static_assert(strlen_c("1") == 1UL, ""); 18065 static_assert(strlen_c("example") == 7UL, ""); 18066 static_assert(strlen_c("another\0example") == 7UL, ""); 18067 18068 } 18069 18070 namespace test_rvalue_references 18071 { 18072 18073 template < int N > 18074 struct answer 18075 { 18076 static constexpr int value = N; 18077 }; 18078 18079 answer<1> f(int&) { return answer<1>(); } 18080 answer<2> f(const int&) { return answer<2>(); } 18081 answer<3> f(int&&) { return answer<3>(); } 18082 18083 void 18084 test() 18085 { 18086 int i = 0; 18087 const int c = 0; 18088 static_assert(decltype(f(i))::value == 1, ""); 18089 static_assert(decltype(f(c))::value == 2, ""); 18090 static_assert(decltype(f(0))::value == 3, ""); 18091 } 18092 18093 } 18094 18095 namespace test_uniform_initialization 18096 { 18097 18098 struct test 18099 { 18100 static const int zero {}; 18101 static const int one {1}; 18102 }; 18103 18104 static_assert(test::zero == 0, ""); 18105 static_assert(test::one == 1, ""); 18106 18107 } 18108 18109 namespace test_lambdas 18110 { 18111 18112 void 18113 test1() 18114 { 18115 auto lambda1 = [](){}; 18116 auto lambda2 = lambda1; 18117 lambda1(); 18118 lambda2(); 18119 } 18120 18121 int 18122 test2() 18123 { 18124 auto a = [](int i, int j){ return i + j; }(1, 2); 18125 auto b = []() -> int { return '0'; }(); 18126 auto c = [=](){ return a + b; }(); 18127 auto d = [&](){ return c; }(); 18128 auto e = [a, &b](int x) mutable { 18129 const auto identity = [](int y){ return y; }; 18130 for (auto i = 0; i < a; ++i) 18131 a += b--; 18132 return x + identity(a + b); 18133 }(0); 18134 return a + b + c + d + e; 18135 } 18136 18137 int 18138 test3() 18139 { 18140 const auto nullary = [](){ return 0; }; 18141 const auto unary = [](int x){ return x; }; 18142 using nullary_t = decltype(nullary); 18143 using unary_t = decltype(unary); 18144 const auto higher1st = [](nullary_t f){ return f(); }; 18145 const auto higher2nd = [unary](nullary_t f1){ 18146 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 18147 }; 18148 return higher1st(nullary) + higher2nd(nullary)(unary); 18149 } 18150 18151 } 18152 18153 namespace test_variadic_templates 18154 { 18155 18156 template <int...> 18157 struct sum; 18158 18159 template <int N0, int... N1toN> 18160 struct sum<N0, N1toN...> 18161 { 18162 static constexpr auto value = N0 + sum<N1toN...>::value; 18163 }; 18164 18165 template <> 18166 struct sum<> 18167 { 18168 static constexpr auto value = 0; 18169 }; 18170 18171 static_assert(sum<>::value == 0, ""); 18172 static_assert(sum<1>::value == 1, ""); 18173 static_assert(sum<23>::value == 23, ""); 18174 static_assert(sum<1, 2>::value == 3, ""); 18175 static_assert(sum<5, 5, 11>::value == 21, ""); 18176 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 18177 18178 } 18179 18180 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 18181 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 18182 // because of this. 18183 namespace test_template_alias_sfinae 18184 { 18185 18186 struct foo {}; 18187 18188 template<typename T> 18189 using member = typename T::member_type; 18190 18191 template<typename T> 18192 void func(...) {} 18193 18194 template<typename T> 18195 void func(member<T>*) {} 18196 18197 void test(); 18198 18199 void test() { func<foo>(0); } 18200 18201 } 18202 18203} // namespace cxx11 18204 18205#endif // __cplusplus >= 201103L 18206 18207 18208 18209 18210// If the compiler admits that it is not ready for C++14, why torture it? 18211// Hopefully, this will speed up the test. 18212 18213#ifndef __cplusplus 18214 18215#error "This is not a C++ compiler" 18216 18217#elif __cplusplus < 201402L 18218 18219#error "This is not a C++14 compiler" 18220 18221#else 18222 18223namespace cxx14 18224{ 18225 18226 namespace test_polymorphic_lambdas 18227 { 18228 18229 int 18230 test() 18231 { 18232 const auto lambda = [](auto&&... args){ 18233 const auto istiny = [](auto x){ 18234 return (sizeof(x) == 1UL) ? 1 : 0; 18235 }; 18236 const int aretiny[] = { istiny(args)... }; 18237 return aretiny[0]; 18238 }; 18239 return lambda(1, 1L, 1.0f, '1'); 18240 } 18241 18242 } 18243 18244 namespace test_binary_literals 18245 { 18246 18247 constexpr auto ivii = 0b0000000000101010; 18248 static_assert(ivii == 42, "wrong value"); 18249 18250 } 18251 18252 namespace test_generalized_constexpr 18253 { 18254 18255 template < typename CharT > 18256 constexpr unsigned long 18257 strlen_c(const CharT *const s) noexcept 18258 { 18259 auto length = 0UL; 18260 for (auto p = s; *p; ++p) 18261 ++length; 18262 return length; 18263 } 18264 18265 static_assert(strlen_c("") == 0UL, ""); 18266 static_assert(strlen_c("x") == 1UL, ""); 18267 static_assert(strlen_c("test") == 4UL, ""); 18268 static_assert(strlen_c("another\0test") == 7UL, ""); 18269 18270 } 18271 18272 namespace test_lambda_init_capture 18273 { 18274 18275 int 18276 test() 18277 { 18278 auto x = 0; 18279 const auto lambda1 = [a = x](int b){ return a + b; }; 18280 const auto lambda2 = [a = lambda1(x)](){ return a; }; 18281 return lambda2(); 18282 } 18283 18284 } 18285 18286 namespace test_digit_separators 18287 { 18288 18289 constexpr auto ten_million = 100'000'000; 18290 static_assert(ten_million == 100000000, ""); 18291 18292 } 18293 18294 namespace test_return_type_deduction 18295 { 18296 18297 auto f(int& x) { return x; } 18298 decltype(auto) g(int& x) { return x; } 18299 18300 template < typename T1, typename T2 > 18301 struct is_same 18302 { 18303 static constexpr auto value = false; 18304 }; 18305 18306 template < typename T > 18307 struct is_same<T, T> 18308 { 18309 static constexpr auto value = true; 18310 }; 18311 18312 int 18313 test() 18314 { 18315 auto x = 0; 18316 static_assert(is_same<int, decltype(f(x))>::value, ""); 18317 static_assert(is_same<int&, decltype(g(x))>::value, ""); 18318 return x; 18319 } 18320 18321 } 18322 18323} // namespace cxx14 18324 18325#endif // __cplusplus >= 201402L 18326 18327 18328 18329_ACEOF 18330if ac_fn_cxx_try_compile "$LINENO"; then : 18331 eval $cachevar=yes 18332else 18333 eval $cachevar=no 18334fi 18335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18336 CXX="$ac_save_CXX" 18337fi 18338eval ac_res=\$$cachevar 18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18340$as_echo "$ac_res" >&6; } 18341 if eval test x\$$cachevar = xyes; then 18342 CXX="$CXX $switch" 18343 if test -n "$CXXCPP" ; then 18344 CXXCPP="$CXXCPP $switch" 18345 fi 18346 ac_success=yes 18347 break 18348 fi 18349 done 18350 if test x$ac_success = xyes; then 18351 break 18352 fi 18353 done 18354 fi 18355 ac_ext=c 18356ac_cpp='$CPP $CPPFLAGS' 18357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18359ac_compiler_gnu=$ac_cv_c_compiler_gnu 18360 18361 if test x$ax_cxx_compile_cxx14_required = xtrue; then 18362 if test x$ac_success = xno; then 18363 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5 18364 fi 18365 fi 18366 if test x$ac_success = xno; then 18367 HAVE_CXX14=0 18368 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5 18369$as_echo "$as_me: No compiler with C++14 support was found" >&6;} 18370 else 18371 HAVE_CXX14=1 18372 18373$as_echo "@%:@define HAVE_CXX14 1" >>confdefs.h 18374 18375 fi 18376 18377 18378 18379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether x86 architecture" >&5 18380$as_echo_n "checking whether x86 architecture... " >&6; } 18381def_arch_x86=0 18382case $host_cpu in 18383 "i386" | "i486" | "i586" | "i686" | "i786" | "x86_64") 18384 echo "yes" 18385 def_arch_x86=1;; 18386 *) 18387 echo "no";; 18388esac 18389 18390cat >>confdefs.h <<_ACEOF 18391@%:@define ARCH_X86 $def_arch_x86 18392_ACEOF 18393 18394 18395# determine the right gcc switch for CPU specific optimizations 18396# (only if the user did not provide one) 18397CXX_CPU_SWITCH= 18398if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then 18399 if test "$def_arch_x86" = 1 -a "$host_cpu" != "x86_64"; then 18400 CXX_CPU_SWITCH="-march=$host_cpu" 18401 elif test "$target_cpu" = "ppc"; then 18402 CXX_CPU_SWITCH="-arch=$host_cpu" 18403 fi 18404fi 18405 18406 18407mac=no 18408linux=no 18409case "$host" in 18410 *-*-darwin*) 18411 mac=yes 18412 ;; 18413 *-*-linux*) 18414 linux=yes 18415 ;; 18416esac 18417 if test "$linux" = yes; then 18418 LINUX_TRUE= 18419 LINUX_FALSE='#' 18420else 18421 LINUX_TRUE='#' 18422 LINUX_FALSE= 18423fi 18424 18425 if test "$mac" = yes; then 18426 MAC_TRUE= 18427 MAC_FALSE='#' 18428else 18429 MAC_TRUE='#' 18430 MAC_FALSE= 18431fi 18432 18433 18434# check if we're on MS Windows 18435for ac_header in mmsystem.h 18436do : 18437 ac_fn_c_check_header_compile "$LINENO" "mmsystem.h" "ac_cv_header_mmsystem_h" "#include <windef.h> 18438 18439" 18440if test "x$ac_cv_header_mmsystem_h" = xyes; then : 18441 cat >>confdefs.h <<_ACEOF 18442@%:@define HAVE_MMSYSTEM_H 1 18443_ACEOF 18444 have_windows=1 18445else 18446 have_windows=0 18447fi 18448 18449done 18450 18451 if test $have_windows = "1"; then 18452 HAVE_WINDOWS_TRUE= 18453 HAVE_WINDOWS_FALSE='#' 18454else 18455 HAVE_WINDOWS_TRUE='#' 18456 HAVE_WINDOWS_FALSE= 18457fi 18458 18459 18460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UNIX98 compatible" >&5 18461$as_echo_n "checking whether UNIX98 compatible... " >&6; } 18462ac_ext=c 18463ac_cpp='$CPP $CPPFLAGS' 18464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18466ac_compiler_gnu=$ac_cv_c_compiler_gnu 18467 18468if test "$cross_compiling" = yes; then : 18469 have_unix98="no" 18470 18471else 18472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18473/* end confdefs.h. */ 18474 18475#ifndef _GNU_SOURCE 18476#define _GNU_SOURCE 1 18477#endif 18478#include <features.h> 18479void main(void) { 18480#if _XOPEN_SOURCE >= 500 18481exit(0); /* UNIX98 compatible */ 18482#else 18483exit(-1); /* not UNIX98 compatible */ 18484#endif 18485} 18486 18487_ACEOF 18488if ac_fn_c_try_run "$LINENO"; then : 18489 have_unix98="yes" 18490else 18491 have_unix98="no" 18492fi 18493rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18494 conftest.$ac_objext conftest.beam conftest.$ac_ext 18495fi 18496 18497ac_ext=c 18498ac_cpp='$CPP $CPPFLAGS' 18499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18501ac_compiler_gnu=$ac_cv_c_compiler_gnu 18502 18503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unix98" >&5 18504$as_echo "$have_unix98" >&6; } 18505if test "$have_unix98" = "no" -a "$have_windows" = "0" -a "$mac" = "no" ; then 18506 if test "x$HAVE_UNIX98" = "x"; then 18507 echo "LinuxSampler only runs on UNIX98 compatible systems, which is mandatory for" 18508 echo "pthread_mutexattr_settype() call in Mutex.cpp. You may want to run" 18509 echo "./configure with environment variable HAVE_UNIX98=1 in case you think you" 18510 echo "have a UNIX98 compatible system." 18511 exit -1; 18512 fi 18513fi 18514 18515# check for <features.h> 18516for ac_header in features.h 18517do : 18518 ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default" 18519if test "x$ac_cv_header_features_h" = xyes; then : 18520 cat >>confdefs.h <<_ACEOF 18521@%:@define HAVE_FEATURES_H 1 18522_ACEOF 18523 18524fi 18525 18526done 18527 18528 18529# test for POSIX thread library 18530 18531 18532 18533 18534ac_ext=c 18535ac_cpp='$CPP $CPPFLAGS' 18536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18538ac_compiler_gnu=$ac_cv_c_compiler_gnu 18539 18540acx_pthread_ok=no 18541 18542# We used to check for pthread.h first, but this fails if pthread.h 18543# requires special compiler flags (e.g. on True64 or Sequent). 18544# It gets checked for in the link test anyway. 18545 18546# First of all, check if the user has set any of the PTHREAD_LIBS, 18547# etcetera environment variables, and if threads linking works using 18548# them: 18549if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 18550 save_CFLAGS="$CFLAGS" 18551 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18552 save_LIBS="$LIBS" 18553 LIBS="$PTHREAD_LIBS $LIBS" 18554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 18555$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 18556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18557/* end confdefs.h. */ 18558 18559/* Override any GCC internal prototype to avoid an error. 18560 Use char because int might match the return type of a GCC 18561 builtin and then its argument prototype would still apply. */ 18562#ifdef __cplusplus 18563extern "C" 18564#endif 18565char pthread_join (); 18566int 18567main () 18568{ 18569return pthread_join (); 18570 ; 18571 return 0; 18572} 18573_ACEOF 18574if ac_fn_c_try_link "$LINENO"; then : 18575 acx_pthread_ok=yes 18576fi 18577rm -f core conftest.err conftest.$ac_objext \ 18578 conftest$ac_exeext conftest.$ac_ext 18579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 18580$as_echo "$acx_pthread_ok" >&6; } 18581 if test x"$acx_pthread_ok" = xno; then 18582 PTHREAD_LIBS="" 18583 PTHREAD_CFLAGS="" 18584 fi 18585 LIBS="$save_LIBS" 18586 CFLAGS="$save_CFLAGS" 18587fi 18588 18589# We must check for the threads library under a number of different 18590# names; the ordering is very important because some systems 18591# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 18592# libraries is broken (non-POSIX). 18593 18594# Create a list of thread flags to try. Items starting with a "-" are 18595# C compiler flags, and other items are library names, except for "none" 18596# which indicates that we try without any flags at all, and "pthread-config" 18597# which is a program returning the flags for the Pth emulation library. 18598 18599acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 18600 18601# The ordering *is* (sometimes) important. Some notes on the 18602# individual items follow: 18603 18604# pthreads: AIX (must check this before -lpthread) 18605# none: in case threads are in libc; should be tried before -Kthread and 18606# other compiler flags to prevent continual compiler warnings 18607# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 18608# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 18609# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 18610# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 18611# -pthreads: Solaris/gcc 18612# -mthreads: Mingw32/gcc, Lynx/gcc 18613# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 18614# doesn't hurt to check since this sometimes defines pthreads too; 18615# also defines -D_REENTRANT) 18616# ... -mt is also the pthreads flag for HP/aCC 18617# pthread: Linux, etcetera 18618# --thread-safe: KAI C++ 18619# pthread-config: use pthread-config program (for GNU Pth library) 18620 18621case "${host_cpu}-${host_os}" in 18622 *solaris*) 18623 18624 # On Solaris (at least, for some versions), libc contains stubbed 18625 # (non-functional) versions of the pthreads routines, so link-based 18626 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 18627 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 18628 # a function called by this macro, so we could check for that, but 18629 # who knows whether they'll stub that too in a future libc.) So, 18630 # we'll just look for -pthreads and -lpthread first: 18631 18632 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 18633 ;; 18634esac 18635 18636if test x"$acx_pthread_ok" = xno; then 18637for flag in $acx_pthread_flags; do 18638 18639 case $flag in 18640 none) 18641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 18642$as_echo_n "checking whether pthreads work without any flags... " >&6; } 18643 ;; 18644 18645 -*) 18646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 18647$as_echo_n "checking whether pthreads work with $flag... " >&6; } 18648 PTHREAD_CFLAGS="$flag" 18649 ;; 18650 18651 pthread-config) 18652 # Extract the first word of "pthread-config", so it can be a program name with args. 18653set dummy pthread-config; ac_word=$2 18654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18655$as_echo_n "checking for $ac_word... " >&6; } 18656if ${ac_cv_prog_acx_pthread_config+:} false; then : 18657 $as_echo_n "(cached) " >&6 18658else 18659 if test -n "$acx_pthread_config"; then 18660 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 18661else 18662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18663for as_dir in $PATH 18664do 18665 IFS=$as_save_IFS 18666 test -z "$as_dir" && as_dir=. 18667 for ac_exec_ext in '' $ac_executable_extensions; do 18668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18669 ac_cv_prog_acx_pthread_config="yes" 18670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18671 break 2 18672 fi 18673done 18674 done 18675IFS=$as_save_IFS 18676 18677 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 18678fi 18679fi 18680acx_pthread_config=$ac_cv_prog_acx_pthread_config 18681if test -n "$acx_pthread_config"; then 18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 18683$as_echo "$acx_pthread_config" >&6; } 18684else 18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18686$as_echo "no" >&6; } 18687fi 18688 18689 18690 if test x"$acx_pthread_config" = xno; then continue; fi 18691 PTHREAD_CFLAGS="`pthread-config --cflags`" 18692 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 18693 ;; 18694 18695 *) 18696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 18697$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 18698 PTHREAD_LIBS="-l$flag" 18699 ;; 18700 esac 18701 18702 save_LIBS="$LIBS" 18703 save_CFLAGS="$CFLAGS" 18704 LIBS="$PTHREAD_LIBS $LIBS" 18705 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18706 18707 # Check for various functions. We must include pthread.h, 18708 # since some functions may be macros. (On the Sequent, we 18709 # need a special flag -Kthread to make this header compile.) 18710 # We check for pthread_join because it is in -lpthread on IRIX 18711 # while pthread_create is in libc. We check for pthread_attr_init 18712 # due to DEC craziness with -lpthreads. We check for 18713 # pthread_cleanup_push because it is one of the few pthread 18714 # functions on Solaris that doesn't have a non-functional libc stub. 18715 # We try pthread_create on general principles. 18716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18717/* end confdefs.h. */ 18718#include <pthread.h> 18719int 18720main () 18721{ 18722pthread_t th; pthread_join(th, 0); 18723 pthread_attr_init(0); pthread_cleanup_push(0, 0); 18724 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 18725 ; 18726 return 0; 18727} 18728_ACEOF 18729if ac_fn_c_try_link "$LINENO"; then : 18730 acx_pthread_ok=yes 18731fi 18732rm -f core conftest.err conftest.$ac_objext \ 18733 conftest$ac_exeext conftest.$ac_ext 18734 18735 LIBS="$save_LIBS" 18736 CFLAGS="$save_CFLAGS" 18737 18738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 18739$as_echo "$acx_pthread_ok" >&6; } 18740 if test "x$acx_pthread_ok" = xyes; then 18741 break; 18742 fi 18743 18744 PTHREAD_LIBS="" 18745 PTHREAD_CFLAGS="" 18746done 18747fi 18748 18749# Various other checks: 18750if test "x$acx_pthread_ok" = xyes; then 18751 save_LIBS="$LIBS" 18752 LIBS="$PTHREAD_LIBS $LIBS" 18753 save_CFLAGS="$CFLAGS" 18754 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18755 18756 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 18757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 18758$as_echo_n "checking for joinable pthread attribute... " >&6; } 18759 attr_name=unknown 18760 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 18761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18762/* end confdefs.h. */ 18763#include <pthread.h> 18764int 18765main () 18766{ 18767int attr=$attr; return attr; 18768 ; 18769 return 0; 18770} 18771_ACEOF 18772if ac_fn_c_try_link "$LINENO"; then : 18773 attr_name=$attr; break 18774fi 18775rm -f core conftest.err conftest.$ac_objext \ 18776 conftest$ac_exeext conftest.$ac_ext 18777 done 18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 18779$as_echo "$attr_name" >&6; } 18780 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 18781 18782cat >>confdefs.h <<_ACEOF 18783@%:@define PTHREAD_CREATE_JOINABLE $attr_name 18784_ACEOF 18785 18786 fi 18787 18788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 18789$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 18790 flag=no 18791 case "${host_cpu}-${host_os}" in 18792 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 18793 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 18794 esac 18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 18796$as_echo "${flag}" >&6; } 18797 if test "x$flag" != xno; then 18798 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 18799 fi 18800 18801 LIBS="$save_LIBS" 18802 CFLAGS="$save_CFLAGS" 18803 18804 # More AIX lossage: must compile with xlc_r or cc_r 18805 if test x"$GCC" != xyes; then 18806 for ac_prog in xlc_r cc_r 18807do 18808 # Extract the first word of "$ac_prog", so it can be a program name with args. 18809set dummy $ac_prog; ac_word=$2 18810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18811$as_echo_n "checking for $ac_word... " >&6; } 18812if ${ac_cv_prog_PTHREAD_CC+:} false; then : 18813 $as_echo_n "(cached) " >&6 18814else 18815 if test -n "$PTHREAD_CC"; then 18816 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 18817else 18818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18819for as_dir in $PATH 18820do 18821 IFS=$as_save_IFS 18822 test -z "$as_dir" && as_dir=. 18823 for ac_exec_ext in '' $ac_executable_extensions; do 18824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18825 ac_cv_prog_PTHREAD_CC="$ac_prog" 18826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18827 break 2 18828 fi 18829done 18830 done 18831IFS=$as_save_IFS 18832 18833fi 18834fi 18835PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 18836if test -n "$PTHREAD_CC"; then 18837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 18838$as_echo "$PTHREAD_CC" >&6; } 18839else 18840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18841$as_echo "no" >&6; } 18842fi 18843 18844 18845 test -n "$PTHREAD_CC" && break 18846done 18847test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 18848 18849 else 18850 PTHREAD_CC=$CC 18851 fi 18852else 18853 PTHREAD_CC="$CC" 18854fi 18855 18856 18857 18858 18859 18860# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 18861if test x"$acx_pthread_ok" = xyes; then 18862 18863$as_echo "@%:@define HAVE_PTHREAD 1" >>confdefs.h 18864 18865 : 18866else 18867 acx_pthread_ok=no 18868 18869fi 18870ac_ext=c 18871ac_cpp='$CPP $CPPFLAGS' 18872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18874ac_compiler_gnu=$ac_cv_c_compiler_gnu 18875 18876 18877LIBS="$PTHREAD_LIBS $LIBS" 18878CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18879CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS" 18880CC="$PTHREAD_CC" 18881 18882 18883# check for compiler's pragma diagnostic capabilities 18884 18885 18886 18887 18888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler's pragma diagnostics" >&5 18889$as_echo_n "checking for compiler's pragma diagnostics... " >&6; } 18890 18891 ac_ext=cpp 18892ac_cpp='$CXXCPP $CPPFLAGS' 18893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18896 18897 18898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18899/* end confdefs.h. */ 18900 18901 18902#include <stdlib.h> 18903 18904int foo(int a, int b) { 18905 int i = 18906 _Pragma("GCC diagnostic push") 18907 _Pragma("GCC diagnostic ignored \"-Winvalid-offsetof\"") 18908 (a + b) 18909 _Pragma("GCC diagnostic pop") 18910 ; 18911 return i; 18912} 18913 18914 18915int 18916main () 18917{ 18918 18919 ; 18920 return 0; 18921} 18922_ACEOF 18923if ac_fn_cxx_try_compile "$LINENO"; then : 18924 18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18926$as_echo "yes" >&6; } 18927 have_embedded_pragma_diag=1 18928 18929else 18930 18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18932$as_echo "no" >&6; } 18933 have_embedded_pragma_diag=0 18934 18935fi 18936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18937 18938cat >>confdefs.h <<_ACEOF 18939@%:@define HAVE_CXX_EMBEDDED_PRAGMA_DIAGNOSTICS $have_embedded_pragma_diag 18940_ACEOF 18941 18942 18943 ac_ext=c 18944ac_cpp='$CPP $CPPFLAGS' 18945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18947ac_compiler_gnu=$ac_cv_c_compiler_gnu 18948 18949 18950 18951 18952# check for a bug in NPTL-enabled glibc 18953# (see Gentoo bug report #194076) 18954@%:@ Check whether --enable-nptl-bug-check was given. 18955if test "${enable_nptl_bug_check+set}" = set; then : 18956 enableval=$enable_nptl_bug_check; config_check_nptl_bug="$enableval" 18957else 18958 config_check_nptl_bug="yes" 18959 18960fi 18961 18962if test "$config_check_nptl_bug" = "yes"; then 18963 18964 18965 18966 18967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NPTL bug" >&5 18968$as_echo_n "checking for NPTL bug... " >&6; } 18969 18970 18971 ac_ext=c 18972ac_cpp='$CPP $CPPFLAGS' 18973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18975ac_compiler_gnu=$ac_cv_c_compiler_gnu 18976 18977 18978 if test "$cross_compiling" = yes; then : 18979 18980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 18981$as_echo "disabled" >&6; } 18982 : 18983 18984else 18985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18986/* end confdefs.h. */ 18987 18988 18989#include <stdlib.h> 18990 18991#if WIN32 18992 18993int main() { 18994 exit(0); 18995} 18996 18997#else /* POSIX system */ 18998 18999#include <stdio.h> 19000#include <pthread.h> 19001#include <unistd.h> 19002 19003pthread_attr_t __thread_attr; 19004pthread_t __thread_id; 19005 19006pthread_mutex_t __posix_mutex; 19007pthread_mutexattr_t __posix_mutexattr; 19008 19009/// entry point for the spawned thread 19010void* __pthread_launcher(void* p) { 19011 // let the thread be killable under any circumstances 19012 // (without this function call, this test always succeeds !) 19013 pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL); 19014 19015 // this will block this 2nd thread, since we already 19016 // locked this mutex by the main thread 19017 pthread_mutex_lock(&__posix_mutex); 19018 19019 // here we would access shared resources, etc. 19020 19021 // just pro forma, the remainder of this function is actually not of 19022 // interest, since this thread is always terminated at its mutex lock call 19023 pthread_mutex_unlock(&__posix_mutex); 19024 return NULL; 19025} 19026 19027int main() { 19028 19029 // initialize mutex and thread attribute 19030 pthread_mutexattr_init(&__posix_mutexattr); 19031 pthread_mutex_init(&__posix_mutex, &__posix_mutexattr); 19032 pthread_attr_init(&__thread_attr); 19033 19034 // already lock the mutex by the main thread ... 19035 pthread_mutex_lock(&__posix_mutex); 19036 19037 int res; 19038 19039 // create and run a 2nd thread 19040 res = pthread_create(&__thread_id, &__thread_attr, __pthread_launcher, NULL); 19041 if (res) { 19042 exit(-1); 19043 } 19044 19045 // give the other thread a chance to spawn 19046 usleep(400000); 19047 19048 // kill the other thread 19049 pthread_cancel(__thread_id); 19050 pthread_detach(__thread_id); 19051 19052 // give the other thread a chance to finish its execution 19053 usleep(400000); 19054 19055 // cleanup 19056 // (just pro forma, doesnt actually matter for this test case) 19057 pthread_attr_destroy(&__thread_attr); 19058 pthread_mutex_destroy(&__posix_mutex); 19059 pthread_mutexattr_destroy(&__posix_mutexattr); 19060 19061 exit(0); 19062} 19063#endif /* WIN32 */ 19064 19065 19066_ACEOF 19067if ac_fn_c_try_run "$LINENO"; then : 19068 19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19070$as_echo "no" >&6; } 19071 : 19072 19073else 19074 19075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19076$as_echo "yes" >&6; } 19077 19078 echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" 19079 echo "You seem to have a buggy PTHREAD library! LinuxSampler would" 19080 echo "probably crash due to this. Please report us the system you are" 19081 echo "using and/or file a bug report to the bug tracking system of" 19082 echo "your distribution." 19083 echo "If you have a NPTL-enabled glibc AND it was compiled for TLS as" 19084 echo "well, you can try to circumvent this problem for now by setting" 19085 echo "the environment variable LD_ASSUME_KERNEL=\"2.4.1\" , which" 19086 echo "should cause this test to pass." 19087 echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" 19088 as_fn_error $? "possibly NPTL glibc bug detected" "$LINENO" 5 19089 19090 19091fi 19092rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19093 conftest.$ac_objext conftest.beam conftest.$ac_ext 19094fi 19095 19096 19097 ac_ext=c 19098ac_cpp='$CPP $CPPFLAGS' 19099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19101ac_compiler_gnu=$ac_cv_c_compiler_gnu 19102 19103 19104else 19105 echo "NPTL glibc bug check disabled" 19106fi 19107 19108 19109# check whether C++ compiler supports "designated initializers" 19110echo -n "Checking whether C++ compiler supports designated initializers (partly)... " 19111ac_ext=cpp 19112ac_cpp='$CXXCPP $CPPFLAGS' 19113ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19114ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19115ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19116 19117cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19118/* end confdefs.h. */ 19119 19120 #include <stdlib.h> 19121 struct Foo { 19122 int a; 19123 float b; 19124 bool c; 19125 char d; 19126 }; 19127 static void bar(Foo o) { 19128 } 19129 int main() { 19130 bar({ 19131 .a = 2, 19132 .b = 4.3f, 19133 .c = true, 19134 .d = 'z' 19135 }); 19136 return 0; 19137 } 19138 19139_ACEOF 19140if ac_fn_cxx_try_compile "$LINENO"; then : 19141 cxx_designated_init_partly="yes" 19142else 19143 cxx_designated_init_partly="no" 19144 19145fi 19146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19147ac_ext=c 19148ac_cpp='$CPP $CPPFLAGS' 19149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19151ac_compiler_gnu=$ac_cv_c_compiler_gnu 19152 19153if test $cxx_designated_init_partly = "yes"; then 19154 echo "yes" 19155else 19156 echo "NO" 19157 echo '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!' 19158 echo '! !' 19159 echo '! ERROR: Selected C++ compiler does not support designated !' 19160 echo '! initializers at all, not even partly! !' 19161 echo '! !' 19162 echo '! Please either update your C++ compiler or select a !' 19163 echo '! different compiler (e.g. GCC >= 8 or clang >= 5). If you !' 19164 echo '! have several C++ compilers installed on your machine, you !' 19165 echo '! can easily select a different compiler by environment !' 19166 echo '! variable, e.g. to compile with clang instead: !' 19167 echo '! !' 19168 echo '! CXX=clang++ CC=clang ./configure && make !' 19169 echo '! !' 19170 echo '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!' 19171 exit -1 19172fi 19173echo -n "Checking whether C++ compiler fully supports designated initializers... " 19174ac_ext=cpp 19175ac_cpp='$CXXCPP $CPPFLAGS' 19176ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19177ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19178ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19179 19180cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19181/* end confdefs.h. */ 19182 19183 #include <stdlib.h> 19184 struct Foo { 19185 int a; 19186 float b; 19187 bool c; 19188 char d; 19189 }; 19190 static void bar(Foo o) { 19191 } 19192 int main() { 19193 bar({ 19194 .d = 'z', 19195 .a = 2 19196 }); 19197 return 0; 19198 } 19199 19200_ACEOF 19201if ac_fn_cxx_try_compile "$LINENO"; then : 19202 cxx_designated_init_fully="yes" 19203else 19204 cxx_designated_init_fully="no" 19205 19206fi 19207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19208ac_ext=c 19209ac_cpp='$CPP $CPPFLAGS' 19210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19212ac_compiler_gnu=$ac_cv_c_compiler_gnu 19213 19214if test $cxx_designated_init_fully = "yes"; then 19215 echo "yes" 19216else 19217 echo 'NO' 19218 echo '***************************************************************' 19219 echo '* *' 19220 echo '* WARNING: Selected C++ compiler does not fully support *' 19221 echo '* designated initializers (only partly)! *' 19222 echo '* *' 19223 echo '* You will be able to compile LinuxSampler, but you will not *' 19224 echo '* be able to compile the test cases. Consider updating your *' 19225 echo '* C++ compiler or switching to a different compiler. Chances *' 19226 echo '* are that LinuxSampler will soon no longer support your *' 19227 echo '* compiler. *' 19228 echo '* *' 19229 echo '* If you have several C++ compilers installed on your machine,*' 19230 echo '* you can easily select a different compiler by environment *' 19231 echo '* variable, e.g. to compile with clang instead: *' 19232 echo '* *' 19233 echo '* CXX=clang++ CC=clang ./configure && make *' 19234 echo '* *' 19235 echo '***************************************************************' 19236fi 19237 19238 19239# In case Bison is available, determine the exact version, since we need to 19240# use different custom parser code for Bison 2.x vs. Bison 3.x generated 19241# parser yacc tables. 19242if echo "$YACC" | grep -q bison; then 19243 # NOTE: m4 removes [], that's why it needs to be escaped 19244 bison_version=`$YACC --version | head -n 1 | sed -e 's/[^0-9.]*\([-0-9.]\+\)$/\1/'` 19245 bison_version_major=`echo $bison_version | cut -d. -f1` 19246 bison_version_minor=`echo $bison_version | cut -d. -f2` 19247 19248cat >>confdefs.h <<_ACEOF 19249@%:@define HAVE_BISON_MAJ $bison_version_major 19250_ACEOF 19251 19252 19253cat >>confdefs.h <<_ACEOF 19254@%:@define HAVE_BISON_MIN $bison_version_minor 19255_ACEOF 19256 19257fi 19258 19259 19260 19261########################################################################### 19262# Checks for available audio and MIDI systems / drivers 19263# (we throw an error if there's not at least one system for audio output and MIDI input available) 19264 19265have_midi_input_driver="false" 19266have_audio_output_driver="false" 19267 19268# ALSA 19269@%:@ Check whether --enable-alsa-driver was given. 19270if test "${enable_alsa_driver+set}" = set; then : 19271 enableval=$enable_alsa_driver; config_alsa_driver="$enableval" 19272else 19273 config_alsa_driver="yes" 19274 19275fi 19276 19277have_alsa=0 19278if test "$config_alsa_driver" = "yes"; then 19279 ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 19280if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 19281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lasound" >&5 19282$as_echo_n "checking for main in -lasound... " >&6; } 19283if ${ac_cv_lib_asound_main+:} false; then : 19284 $as_echo_n "(cached) " >&6 19285else 19286 ac_check_lib_save_LIBS=$LIBS 19287LIBS="-lasound $LIBS" 19288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19289/* end confdefs.h. */ 19290 19291 19292int 19293main () 19294{ 19295return main (); 19296 ; 19297 return 0; 19298} 19299_ACEOF 19300if ac_fn_c_try_link "$LINENO"; then : 19301 ac_cv_lib_asound_main=yes 19302else 19303 ac_cv_lib_asound_main=no 19304fi 19305rm -f core conftest.err conftest.$ac_objext \ 19306 conftest$ac_exeext conftest.$ac_ext 19307LIBS=$ac_check_lib_save_LIBS 19308fi 19309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_main" >&5 19310$as_echo "$ac_cv_lib_asound_main" >&6; } 19311if test "x$ac_cv_lib_asound_main" = xyes; then : 19312 have_alsa=1 19313 19314else 19315 have_alsa=0 19316 19317fi 19318 19319 19320else 19321 have_alsa=0 19322 19323fi 19324 19325 19326 if test "$have_alsa" = "1"; then 19327 have_midi_input_driver="true" 19328 have_audio_output_driver="true"; 19329 fi 19330 19331 echo -n "checking Alsa version... " 19332 ac_ext=c 19333ac_cpp='$CPP $CPPFLAGS' 19334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19336ac_compiler_gnu=$ac_cv_c_compiler_gnu 19337 19338 if test "$cross_compiling" = yes; then : 19339 alsa_major=0 19340 19341else 19342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19343/* end confdefs.h. */ 19344 19345 #include <alsa/asoundlib.h> 19346 void main(void) { 19347 /* ensure backward compatibility */ 19348 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR) 19349 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR 19350 #endif 19351 exit(SND_LIB_MAJOR); 19352 } 19353 19354_ACEOF 19355if ac_fn_c_try_run "$LINENO"; then : 19356 alsa_major=0 19357else 19358 alsa_major=$? 19359fi 19360rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19361 conftest.$ac_objext conftest.beam conftest.$ac_ext 19362fi 19363 19364 if test "$cross_compiling" = yes; then : 19365 alsa_minor=0 19366 19367else 19368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19369/* end confdefs.h. */ 19370 19371 #include <alsa/asoundlib.h> 19372 void main(void) { 19373 /* ensure backward compatibility */ 19374 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR) 19375 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR 19376 #endif 19377 exit(SND_LIB_MINOR); 19378 } 19379 19380_ACEOF 19381if ac_fn_c_try_run "$LINENO"; then : 19382 alsa_minor=0 19383else 19384 alsa_minor=$? 19385fi 19386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19387 conftest.$ac_objext conftest.beam conftest.$ac_ext 19388fi 19389 19390 if test "$cross_compiling" = yes; then : 19391 alsa_subminor=0 19392 19393else 19394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19395/* end confdefs.h. */ 19396 19397 #include <alsa/asoundlib.h> 19398 void main(void) { 19399 /* ensure backward compatibility */ 19400 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR) 19401 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR 19402 #endif 19403 exit(SND_LIB_SUBMINOR); 19404 } 19405 19406_ACEOF 19407if ac_fn_c_try_run "$LINENO"; then : 19408 alsa_subminor=0 19409else 19410 alsa_subminor=$? 19411fi 19412rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19413 conftest.$ac_objext conftest.beam conftest.$ac_ext 19414fi 19415 19416 ac_ext=c 19417ac_cpp='$CPP $CPPFLAGS' 19418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19420ac_compiler_gnu=$ac_cv_c_compiler_gnu 19421 19422 echo "$alsa_major.$alsa_minor.$alsa_subminor"; 19423 19424cat >>confdefs.h <<_ACEOF 19425@%:@define ALSA_MAJOR $alsa_major 19426_ACEOF 19427 19428 19429cat >>confdefs.h <<_ACEOF 19430@%:@define ALSA_MINOR $alsa_minor 19431_ACEOF 19432 19433 19434cat >>confdefs.h <<_ACEOF 19435@%:@define ALSA_SUBMINOR $alsa_subminor 19436_ACEOF 19437 19438else 19439 echo "ALSA support disabled by configure script parameter" 19440fi 19441 if test $have_alsa = "1"; then 19442 HAVE_ALSA_TRUE= 19443 HAVE_ALSA_FALSE='#' 19444else 19445 HAVE_ALSA_TRUE='#' 19446 HAVE_ALSA_FALSE= 19447fi 19448 19449 19450cat >>confdefs.h <<_ACEOF 19451@%:@define HAVE_ALSA $have_alsa 19452_ACEOF 19453 19454config_have_alsa="no" 19455if test $have_alsa = "1"; then 19456 config_have_alsa="yes" 19457fi 19458 19459# JACK 19460@%:@ Check whether --enable-jack-driver was given. 19461if test "${enable_jack_driver+set}" = set; then : 19462 enableval=$enable_jack_driver; config_jack_driver="$enableval" 19463else 19464 config_jack_driver="yes" 19465 19466fi 19467 19468have_jack=0 19469if test "$config_jack_driver" = "yes"; then 19470 19471pkg_failed=no 19472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5 19473$as_echo_n "checking for JACK... " >&6; } 19474 19475if test -n "$JACK_CFLAGS"; then 19476 pkg_cv_JACK_CFLAGS="$JACK_CFLAGS" 19477 elif test -n "$PKG_CONFIG"; then 19478 if test -n "$PKG_CONFIG" && \ 19479 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack\""; } >&5 19480 ($PKG_CONFIG --exists --print-errors "jack") 2>&5 19481 ac_status=$? 19482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19483 test $ac_status = 0; }; then 19484 pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack" 2>/dev/null` 19485 test "x$?" != "x0" && pkg_failed=yes 19486else 19487 pkg_failed=yes 19488fi 19489 else 19490 pkg_failed=untried 19491fi 19492if test -n "$JACK_LIBS"; then 19493 pkg_cv_JACK_LIBS="$JACK_LIBS" 19494 elif test -n "$PKG_CONFIG"; then 19495 if test -n "$PKG_CONFIG" && \ 19496 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack\""; } >&5 19497 ($PKG_CONFIG --exists --print-errors "jack") 2>&5 19498 ac_status=$? 19499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19500 test $ac_status = 0; }; then 19501 pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack" 2>/dev/null` 19502 test "x$?" != "x0" && pkg_failed=yes 19503else 19504 pkg_failed=yes 19505fi 19506 else 19507 pkg_failed=untried 19508fi 19509 19510 19511 19512if test $pkg_failed = yes; then 19513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19514$as_echo "no" >&6; } 19515 19516if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19517 _pkg_short_errors_supported=yes 19518else 19519 _pkg_short_errors_supported=no 19520fi 19521 if test $_pkg_short_errors_supported = yes; then 19522 JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack" 2>&1` 19523 else 19524 JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack" 2>&1` 19525 fi 19526 # Put the nasty error message in config.log where it belongs 19527 echo "$JACK_PKG_ERRORS" >&5 19528 19529 have_jack=0 19530elif test $pkg_failed = untried; then 19531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19532$as_echo "no" >&6; } 19533 have_jack=0 19534else 19535 JACK_CFLAGS=$pkg_cv_JACK_CFLAGS 19536 JACK_LIBS=$pkg_cv_JACK_LIBS 19537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19538$as_echo "yes" >&6; } 19539 have_jack=1 19540fi 19541 if test $have_jack = "1"; then 19542 19543 19544 linuxsampler_save_LIBS=$LIBS 19545 LIBS="$JACK_LIBS $LIBS" 19546 for ac_func in jack_client_name_size jack_client_open \ 19547 jack_on_info_shutdown 19548do : 19549 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19550ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19551if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19552 cat >>confdefs.h <<_ACEOF 19553@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19554_ACEOF 19555 19556fi 19557done 19558 19559 LIBS=$linuxsampler_save_LIBS 19560 have_audio_output_driver="true"; 19561 fi 19562else 19563 echo "JACK support disabled by configure script parameter" 19564fi 19565 if test $have_jack = "1"; then 19566 HAVE_JACK_TRUE= 19567 HAVE_JACK_FALSE='#' 19568else 19569 HAVE_JACK_TRUE='#' 19570 HAVE_JACK_FALSE= 19571fi 19572 19573 19574cat >>confdefs.h <<_ACEOF 19575@%:@define HAVE_JACK $have_jack 19576_ACEOF 19577 19578config_have_jack="no" 19579if test $have_jack = "1"; then 19580 config_have_jack="yes" 19581fi 19582 19583# JACK MIDI 19584have_jack_midi=0 19585if test $have_jack = "1"; then 19586 linuxsampler_save_CFLAGS=$CFLAGS 19587 linuxsampler_save_LIBS=$LIBS 19588 CFLAGS="$JACK_CFLAGS $CFLAGS" 19589 LIBS="$JACK_LIBS $LIBS" 19590 ac_fn_c_check_header_mongrel "$LINENO" "jack/midiport.h" "ac_cv_header_jack_midiport_h" "$ac_includes_default" 19591if test "x$ac_cv_header_jack_midiport_h" = xyes; then : 19592 have_jack_midi=1 19593else 19594 have_jack_midi=0 19595fi 19596 19597 19598 if test $have_jack_midi = "1"; then 19599 for ac_func in jack_midi_get_event_count 19600do : 19601 ac_fn_c_check_func "$LINENO" "jack_midi_get_event_count" "ac_cv_func_jack_midi_get_event_count" 19602if test "x$ac_cv_func_jack_midi_get_event_count" = xyes; then : 19603 cat >>confdefs.h <<_ACEOF 19604@%:@define HAVE_JACK_MIDI_GET_EVENT_COUNT 1 19605_ACEOF 19606 19607fi 19608done 19609 19610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19611/* end confdefs.h. */ 19612#include <jack/midiport.h> 19613int 19614main () 19615{ 19616 19617 jack_midi_clear_buffer(0, 0); 19618 19619 ; 19620 return 0; 19621} 19622_ACEOF 19623if ac_fn_c_try_compile "$LINENO"; then : 19624 19625$as_echo "@%:@define JACK_MIDI_FUNCS_NEED_NFRAMES 1" >>confdefs.h 19626 19627fi 19628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19629 have_midi_input_driver="true" 19630 fi 19631 CFLAGS=$linuxsampler_save_CFLAGS 19632 LIBS=$linuxsampler_save_LIBS 19633fi 19634 if test $have_jack_midi = "1"; then 19635 HAVE_JACK_MIDI_TRUE= 19636 HAVE_JACK_MIDI_FALSE='#' 19637else 19638 HAVE_JACK_MIDI_TRUE='#' 19639 HAVE_JACK_MIDI_FALSE= 19640fi 19641 19642 19643cat >>confdefs.h <<_ACEOF 19644@%:@define HAVE_JACK_MIDI $have_jack_midi 19645_ACEOF 19646 19647config_have_jack_midi="no" 19648if test $have_jack_midi = "1"; then 19649 config_have_jack_midi="yes" 19650fi 19651 19652# ARTS 19653@%:@ Check whether --enable-arts-driver was given. 19654if test "${enable_arts_driver+set}" = set; then : 19655 enableval=$enable_arts_driver; config_arts_driver="$enableval" 19656else 19657 config_arts_driver="yes" 19658 19659fi 19660 19661have_arts=0 19662if test "$config_arts_driver" = "yes"; then 19663 # Configure paths for ARTS 19664# Philip Stadermann 2001-06-21 19665# stolen from esd.m4 19666# 19667# Christian Schoenebeck 2006-02-09 19668# modified to work for a C++ environment 19669 19670 19671 19672 19673@%:@ Check whether --with-arts-prefix was given. 19674if test "${with_arts_prefix+set}" = set; then : 19675 withval=$with_arts_prefix; arts_prefix="$withval" 19676else 19677 arts_prefix="" 19678fi 19679 19680@%:@ Check whether --enable-artstest was given. 19681if test "${enable_artstest+set}" = set; then : 19682 enableval=$enable_artstest; enable_artstest=$enableval 19683else 19684 enable_artstest=yes 19685fi 19686 19687 19688 if test x$arts_prefix != x ; then 19689 arts_args="$arts_args --arts-prefix=$arts_prefix" 19690 if test x${ARTS_CONFIG+set} != xset ; then 19691 ARTS_CONFIG=$arts_prefix/bin/artsc-config 19692 fi 19693 fi 19694 19695 19696 ac_ext=c 19697ac_cpp='$CPP $CPPFLAGS' 19698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19700ac_compiler_gnu=$ac_cv_c_compiler_gnu 19701 19702 19703 if test -n "$ac_tool_prefix"; then 19704 # Extract the first word of "${ac_tool_prefix}artsc-config", so it can be a program name with args. 19705set dummy ${ac_tool_prefix}artsc-config; ac_word=$2 19706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19707$as_echo_n "checking for $ac_word... " >&6; } 19708if ${ac_cv_path_ARTS_CONFIG+:} false; then : 19709 $as_echo_n "(cached) " >&6 19710else 19711 case $ARTS_CONFIG in 19712 [\\/]* | ?:[\\/]*) 19713 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path. 19714 ;; 19715 *) 19716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19717for as_dir in $PATH 19718do 19719 IFS=$as_save_IFS 19720 test -z "$as_dir" && as_dir=. 19721 for ac_exec_ext in '' $ac_executable_extensions; do 19722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19723 ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19725 break 2 19726 fi 19727done 19728 done 19729IFS=$as_save_IFS 19730 19731 ;; 19732esac 19733fi 19734ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG 19735if test -n "$ARTS_CONFIG"; then 19736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTS_CONFIG" >&5 19737$as_echo "$ARTS_CONFIG" >&6; } 19738else 19739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19740$as_echo "no" >&6; } 19741fi 19742 19743 19744fi 19745if test -z "$ac_cv_path_ARTS_CONFIG"; then 19746 ac_pt_ARTS_CONFIG=$ARTS_CONFIG 19747 # Extract the first word of "artsc-config", so it can be a program name with args. 19748set dummy artsc-config; ac_word=$2 19749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19750$as_echo_n "checking for $ac_word... " >&6; } 19751if ${ac_cv_path_ac_pt_ARTS_CONFIG+:} false; then : 19752 $as_echo_n "(cached) " >&6 19753else 19754 case $ac_pt_ARTS_CONFIG in 19755 [\\/]* | ?:[\\/]*) 19756 ac_cv_path_ac_pt_ARTS_CONFIG="$ac_pt_ARTS_CONFIG" # Let the user override the test with a path. 19757 ;; 19758 *) 19759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19760for as_dir in $PATH 19761do 19762 IFS=$as_save_IFS 19763 test -z "$as_dir" && as_dir=. 19764 for ac_exec_ext in '' $ac_executable_extensions; do 19765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19766 ac_cv_path_ac_pt_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19768 break 2 19769 fi 19770done 19771 done 19772IFS=$as_save_IFS 19773 19774 ;; 19775esac 19776fi 19777ac_pt_ARTS_CONFIG=$ac_cv_path_ac_pt_ARTS_CONFIG 19778if test -n "$ac_pt_ARTS_CONFIG"; then 19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_ARTS_CONFIG" >&5 19780$as_echo "$ac_pt_ARTS_CONFIG" >&6; } 19781else 19782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19783$as_echo "no" >&6; } 19784fi 19785 19786 if test "x$ac_pt_ARTS_CONFIG" = x; then 19787 ARTS_CONFIG="no" 19788 else 19789 case $cross_compiling:$ac_tool_warned in 19790yes:) 19791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19793ac_tool_warned=yes ;; 19794esac 19795 ARTS_CONFIG=$ac_pt_ARTS_CONFIG 19796 fi 19797else 19798 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG" 19799fi 19800 19801 19802 min_arts_version=0.9.5 19803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARTS artsc - version >= $min_arts_version" >&5 19804$as_echo_n "checking for ARTS artsc - version >= $min_arts_version... " >&6; } 19805 no_arts="" 19806 if test "$ARTS_CONFIG" = "no" ; then 19807 no_arts=yes 19808 else 19809 ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags` 19810 ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs` 19811 19812 arts_major_version=`$ARTS_CONFIG $arts_args --version | \ 19813 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 19814 arts_minor_version=`$ARTS_CONFIG $arts_args --version | \ 19815 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 19816 arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \ 19817 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 19818 if test "x$enable_artstest" = "xyes" ; then 19819 ac_save_CFLAGS="$CFLAGS" 19820 ac_save_LIBS="$LIBS" 19821 CFLAGS="$CFLAGS $ARTS_CFLAGS" 19822 LIBS="$LIBS $ARTS_LIBS" 19823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arts_init in -lartsc" >&5 19824$as_echo_n "checking for arts_init in -lartsc... " >&6; } 19825if ${ac_cv_lib_artsc_arts_init+:} false; then : 19826 $as_echo_n "(cached) " >&6 19827else 19828 ac_check_lib_save_LIBS=$LIBS 19829LIBS="-lartsc $ARTS_LIBS $LIBS" 19830cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19831/* end confdefs.h. */ 19832 19833/* Override any GCC internal prototype to avoid an error. 19834 Use char because int might match the return type of a GCC 19835 builtin and then its argument prototype would still apply. */ 19836#ifdef __cplusplus 19837extern "C" 19838#endif 19839char arts_init (); 19840int 19841main () 19842{ 19843return arts_init (); 19844 ; 19845 return 0; 19846} 19847_ACEOF 19848if ac_fn_c_try_link "$LINENO"; then : 19849 ac_cv_lib_artsc_arts_init=yes 19850else 19851 ac_cv_lib_artsc_arts_init=no 19852fi 19853rm -f core conftest.err conftest.$ac_objext \ 19854 conftest$ac_exeext conftest.$ac_ext 19855LIBS=$ac_check_lib_save_LIBS 19856fi 19857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_artsc_arts_init" >&5 19858$as_echo "$ac_cv_lib_artsc_arts_init" >&6; } 19859if test "x$ac_cv_lib_artsc_arts_init" = xyes; then : 19860 cat >>confdefs.h <<_ACEOF 19861@%:@define HAVE_LIBARTSC 1 19862_ACEOF 19863 19864 LIBS="-lartsc $LIBS" 19865 19866else 19867 no_arts=yes 19868fi 19869 19870 19871 rm -f conf.artstest 19872 if test "$cross_compiling" = yes; then : 19873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19874/* end confdefs.h. */ 19875 19876#include <stdio.h> 19877#include <artsc.h> 19878 19879int 19880main () 19881{ 19882 return 0; 19883 ; 19884 return 0; 19885} 19886_ACEOF 19887if ac_fn_c_try_link "$LINENO"; then : 19888 19889else 19890 no_arts=yes 19891fi 19892rm -f core conftest.err conftest.$ac_objext \ 19893 conftest$ac_exeext conftest.$ac_ext 19894else 19895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19896/* end confdefs.h. */ 19897 19898#include <stdio.h> 19899#include <stdlib.h> 19900#include <string.h> 19901#include <artsc.h> 19902 19903char* 19904my_strdup (char *str) 19905{ 19906 char *new_str; 19907 19908 if (str) 19909 { 19910 new_str = malloc ((strlen (str) + 1) * sizeof(char)); 19911 strcpy (new_str, str); 19912 } 19913 else 19914 new_str = NULL; 19915 19916 return new_str; 19917} 19918 19919int main () 19920{ 19921 int major, minor, micro; 19922 char *tmp_version; 19923 19924 system ("touch conf.artstest"); 19925 19926 /* HP/UX 9 (%@#!) writes to sscanf strings */ 19927 tmp_version = my_strdup("$min_arts_version"); 19928 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 19929 printf("%s, bad version string\n", "$min_arts_version"); 19930 exit(1); 19931 } 19932 19933 if (($arts_major_version > major) || 19934 (($arts_major_version == major) && ($arts_minor_version > minor)) || 19935 (($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro))) 19936 { 19937 return 0; 19938 } 19939 else 19940 { 19941 printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version); 19942 printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro); 19943 printf("*** best to upgrade to the required version.\n"); 19944 printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n"); 19945 printf("*** to point to the correct copy of artsc-config, and remove the file\n"); 19946 printf("*** config.cache before re-running configure\n"); 19947 return 1; 19948 } 19949} 19950 19951 19952_ACEOF 19953if ac_fn_c_try_run "$LINENO"; then : 19954 19955else 19956 no_arts=yes 19957fi 19958rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19959 conftest.$ac_objext conftest.beam conftest.$ac_ext 19960fi 19961 19962 CFLAGS="$ac_save_CFLAGS" 19963 LIBS="$ac_save_LIBS" 19964 fi 19965 fi 19966 if test "x$no_arts" = x ; then 19967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19968$as_echo "yes" >&6; } 19969 have_arts=1 19970 else 19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19972$as_echo "no" >&6; } 19973 if test "$ARTS_CONFIG" = "no" ; then 19974 echo "*** The artsc-config script installed by ARTS could not be found" 19975 echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in" 19976 echo "*** your path, or set the ARTS_CONFIG environment variable to the" 19977 echo "*** full path to artsc-config." 19978 else 19979 if test -f conf.artstest ; then 19980 : 19981 else 19982 echo "*** Could not run ARTS test program, checking why..." 19983 CFLAGS="$CFLAGS $ARTS_CFLAGS" 19984 LIBS="$LIBS $ARTS_LIBS" 19985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19986/* end confdefs.h. */ 19987 19988#include <stdio.h> 19989#include <artsc.h> 19990 19991int 19992main () 19993{ 19994 return 0; 19995 ; 19996 return 0; 19997} 19998_ACEOF 19999if ac_fn_c_try_link "$LINENO"; then : 20000 echo "*** The test program compiled, but did not run. This usually means" 20001 echo "*** that the run-time linker is not finding ARTS or finding the wrong" 20002 echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your" 20003 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 20004 echo "*** to the installed location Also, make sure you have run ldconfig if that" 20005 echo "*** is required on your system" 20006 echo "***" 20007 echo "*** If you have an old version installed, it is best to remove it, although" 20008 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 20009else 20010 echo "*** The test program failed to compile or link. See the file config.log for the" 20011 echo "*** exact error that occured. This usually means ARTS was incorrectly installed" 20012 echo "*** or that you have moved ARTS since it was installed. In the latter case, you" 20013 echo "*** may want to edit the artsc-config script: $ARTS_CONFIG" 20014fi 20015rm -f core conftest.err conftest.$ac_objext \ 20016 conftest$ac_exeext conftest.$ac_ext 20017 CFLAGS="$ac_save_CFLAGS" 20018 LIBS="$ac_save_LIBS" 20019 fi 20020 fi 20021 ARTS_CFLAGS="" 20022 ARTS_LIBS="" 20023 have_arts=0 20024 fi 20025 20026 20027 rm -f conf.artstest 20028 ac_ext=c 20029ac_cpp='$CPP $CPPFLAGS' 20030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20032ac_compiler_gnu=$ac_cv_c_compiler_gnu 20033 20034 20035 if test "$have_arts" = "1"; then 20036 have_audio_output_driver="true" 20037 fi 20038else 20039 echo "ARTS support disabled by configure script parameter" 20040fi 20041 if test "$have_arts" = "1"; then 20042 HAVE_ARTS_TRUE= 20043 HAVE_ARTS_FALSE='#' 20044else 20045 HAVE_ARTS_TRUE='#' 20046 HAVE_ARTS_FALSE= 20047fi 20048 20049 20050cat >>confdefs.h <<_ACEOF 20051@%:@define HAVE_ARTS $have_arts 20052_ACEOF 20053 20054config_have_arts="no" 20055if test $have_arts = "1"; then 20056 config_have_arts="yes" 20057fi 20058 20059# ASIO AUDIO (Win32) 20060@%:@ Check whether --enable-asiosdk-dir was given. 20061if test "${enable_asiosdk_dir+set}" = set; then : 20062 enableval=$enable_asiosdk_dir; config_asiosdk_dir="${enableval}" 20063else 20064 config_asiosdk_dir="." 20065 20066fi 20067 20068 20069 20070@%:@ Check whether --enable-asio-driver was given. 20071if test "${enable_asio_driver+set}" = set; then : 20072 enableval=$enable_asio_driver; config_asio_driver="$enableval" 20073else 20074 config_asio_driver="yes" 20075 20076fi 20077 20078have_asio=0 20079ASIOSDK_BASEDIR= 20080if test "$config_asio_driver" = "yes"; then 20081 asiosdk_headerfile=$config_asiosdk_dir/ASIOSDK2/common/asio.h 20082 echo -n "checking for ASIO headerfile: $asiosdk_headerfile ...." 20083 if test -e $asiosdk_headerfile ; then 20084 echo yes 20085 have_asio=1 20086 ASIOSDK_BASEDIR="$config_asiosdk_dir" 20087 else 20088 echo no 20089 have_asio=0 20090 fi 20091 if test "$have_asio" = "1"; then 20092 have_audio_output_driver="true" 20093 fi 20094else 20095 echo "Windows ASIO support disabled by configure script parameter" 20096fi 20097 20098 if test $have_asio = "1"; then 20099 HAVE_ASIO_TRUE= 20100 HAVE_ASIO_FALSE='#' 20101else 20102 HAVE_ASIO_TRUE='#' 20103 HAVE_ASIO_FALSE= 20104fi 20105 20106 20107cat >>confdefs.h <<_ACEOF 20108@%:@define HAVE_ASIO $have_asio 20109_ACEOF 20110 20111config_have_asio="no" 20112if test $have_asio = "1"; then 20113 config_have_asio="yes" 20114fi 20115 20116# MidiShare (Linux, OS X, Windows) 20117@%:@ Check whether --enable-midishare-driver was given. 20118if test "${enable_midishare_driver+set}" = set; then : 20119 enableval=$enable_midishare_driver; config_midishare_driver="$enableval" 20120else 20121 config_midishare_driver="yes" 20122 20123fi 20124 20125have_midishare=0 20126if test "$config_midishare_driver" = "yes"; then 20127 ac_fn_c_check_header_mongrel "$LINENO" "MidiShare.h" "ac_cv_header_MidiShare_h" "$ac_includes_default" 20128if test "x$ac_cv_header_MidiShare_h" = xyes; then : 20129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MidiCountEvs in -lMidiShare" >&5 20130$as_echo_n "checking for MidiCountEvs in -lMidiShare... " >&6; } 20131if ${ac_cv_lib_MidiShare_MidiCountEvs+:} false; then : 20132 $as_echo_n "(cached) " >&6 20133else 20134 ac_check_lib_save_LIBS=$LIBS 20135LIBS="-lMidiShare $LIBS" 20136cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20137/* end confdefs.h. */ 20138 20139/* Override any GCC internal prototype to avoid an error. 20140 Use char because int might match the return type of a GCC 20141 builtin and then its argument prototype would still apply. */ 20142#ifdef __cplusplus 20143extern "C" 20144#endif 20145char MidiCountEvs (); 20146int 20147main () 20148{ 20149return MidiCountEvs (); 20150 ; 20151 return 0; 20152} 20153_ACEOF 20154if ac_fn_c_try_link "$LINENO"; then : 20155 ac_cv_lib_MidiShare_MidiCountEvs=yes 20156else 20157 ac_cv_lib_MidiShare_MidiCountEvs=no 20158fi 20159rm -f core conftest.err conftest.$ac_objext \ 20160 conftest$ac_exeext conftest.$ac_ext 20161LIBS=$ac_check_lib_save_LIBS 20162fi 20163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_MidiShare_MidiCountEvs" >&5 20164$as_echo "$ac_cv_lib_MidiShare_MidiCountEvs" >&6; } 20165if test "x$ac_cv_lib_MidiShare_MidiCountEvs" = xyes; then : 20166 have_midishare=1 20167else 20168 have_midishare=0 20169 20170fi 20171 20172 20173else 20174 have_midishare=0 20175 20176fi 20177 20178 20179 if test "$have_midishare" = "1"; then 20180 have_midi_input_driver="true" 20181 fi 20182else 20183 echo "MidiShare support disabled by configure script parameter" 20184fi 20185 if test $have_midishare = "1"; then 20186 HAVE_MIDISHARE_TRUE= 20187 HAVE_MIDISHARE_FALSE='#' 20188else 20189 HAVE_MIDISHARE_TRUE='#' 20190 HAVE_MIDISHARE_FALSE= 20191fi 20192 20193 20194cat >>confdefs.h <<_ACEOF 20195@%:@define HAVE_MIDISHARE $have_midishare 20196_ACEOF 20197 20198config_have_midishare="no" 20199if test $have_midishare = "1"; then 20200 config_have_midishare="yes" 20201fi 20202 20203# CoreMIDI (OS X) 20204@%:@ Check whether --enable-coremidi-driver was given. 20205if test "${enable_coremidi_driver+set}" = set; then : 20206 enableval=$enable_coremidi_driver; config_coremidi_driver="$enableval" 20207else 20208 config_coremidi_driver="yes" 20209 20210fi 20211 20212have_coremidi=0 20213if test "$config_coremidi_driver" = "yes"; then 20214 ac_fn_c_check_header_mongrel "$LINENO" "CoreMIDI/CoreMIDI.h" "ac_cv_header_CoreMIDI_CoreMIDI_h" "$ac_includes_default" 20215if test "x$ac_cv_header_CoreMIDI_CoreMIDI_h" = xyes; then : 20216 have_coremidi=1 20217else 20218 have_coremidi=0 20219 20220fi 20221 20222 20223 if test "$have_coremidi" = "1"; then 20224 have_midi_input_driver="true" 20225 fi 20226else 20227 echo "CoreMIDI support disabled by configure script parameter" 20228fi 20229 if test $have_coremidi = "1"; then 20230 HAVE_COREMIDI_TRUE= 20231 HAVE_COREMIDI_FALSE='#' 20232else 20233 HAVE_COREMIDI_TRUE='#' 20234 HAVE_COREMIDI_FALSE= 20235fi 20236 20237 20238cat >>confdefs.h <<_ACEOF 20239@%:@define HAVE_COREMIDI $have_coremidi 20240_ACEOF 20241 20242config_have_coremidi="no" 20243if test $have_coremidi = "1"; then 20244 config_have_coremidi="yes" 20245fi 20246 20247# CoreAudio (OS X) 20248@%:@ Check whether --enable-coreaudio-driver was given. 20249if test "${enable_coreaudio_driver+set}" = set; then : 20250 enableval=$enable_coreaudio_driver; config_coreaudio_driver="$enableval" 20251else 20252 config_coreaudio_driver="yes" 20253 20254fi 20255 20256have_coreaudio=0 20257if test "$config_coreaudio_driver" = "yes"; then 20258 ac_fn_c_check_header_mongrel "$LINENO" "CoreAudio/CoreAudio.h" "ac_cv_header_CoreAudio_CoreAudio_h" "$ac_includes_default" 20259if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = xyes; then : 20260 have_coreaudio=1 20261else 20262 have_coreaudio=0 20263 20264fi 20265 20266 20267 if test "$have_coreaudio" = "1"; then 20268 have_audio_output_driver="true" 20269 fi 20270else 20271 echo "CoreAudio support disabled by configure script parameter" 20272fi 20273 if test $have_coreaudio = "1"; then 20274 HAVE_COREAUDIO_TRUE= 20275 HAVE_COREAUDIO_FALSE='#' 20276else 20277 HAVE_COREAUDIO_TRUE='#' 20278 HAVE_COREAUDIO_FALSE= 20279fi 20280 20281 20282cat >>confdefs.h <<_ACEOF 20283@%:@define HAVE_COREAUDIO $have_coreaudio 20284_ACEOF 20285 20286config_have_coreaudio="no" 20287if test $have_coreaudio = "1"; then 20288 config_have_coreaudio="yes" 20289fi 20290 20291# MME MIDI (Win32) 20292@%:@ Check whether --enable-mmemidi-driver was given. 20293if test "${enable_mmemidi_driver+set}" = set; then : 20294 enableval=$enable_mmemidi_driver; config_mmemidi_driver="$enableval" 20295else 20296 config_mmemidi_driver="yes" 20297 20298fi 20299 20300have_mmemidi=0 20301if test "$config_mmemidi_driver" = "yes"; then 20302 for ac_header in mmsystem.h 20303do : 20304 ac_fn_c_check_header_mongrel "$LINENO" "mmsystem.h" "ac_cv_header_mmsystem_h" "$ac_includes_default" 20305if test "x$ac_cv_header_mmsystem_h" = xyes; then : 20306 cat >>confdefs.h <<_ACEOF 20307@%:@define HAVE_MMSYSTEM_H 1 20308_ACEOF 20309 have_mmemidi=1 20310else 20311 have_mmemidi=0 20312 20313fi 20314 20315done 20316 20317 if test "$have_mmemidi" = "1"; then 20318 have_midi_input_driver="true" 20319 fi 20320else 20321 echo "MME MIDI support disabled by configure script parameter" 20322fi 20323 if test $have_mmemidi = "1"; then 20324 HAVE_MME_MIDI_TRUE= 20325 HAVE_MME_MIDI_FALSE='#' 20326else 20327 HAVE_MME_MIDI_TRUE='#' 20328 HAVE_MME_MIDI_FALSE= 20329fi 20330 20331 20332cat >>confdefs.h <<_ACEOF 20333@%:@define HAVE_MME_MIDI $have_mmemidi 20334_ACEOF 20335 20336config_have_mme="no" 20337if test $have_mmemidi = "1"; then 20338 config_have_mme="yes" 20339fi 20340 20341# DSSI 20342for ac_header in dssi.h 20343do : 20344 ac_fn_c_check_header_mongrel "$LINENO" "dssi.h" "ac_cv_header_dssi_h" "$ac_includes_default" 20345if test "x$ac_cv_header_dssi_h" = xyes; then : 20346 cat >>confdefs.h <<_ACEOF 20347@%:@define HAVE_DSSI_H 1 20348_ACEOF 20349 config_have_dssi="yes" 20350else 20351 config_have_dssi="no" 20352fi 20353 20354done 20355 20356 if test $config_have_dssi = "yes"; then 20357 HAVE_DSSI_TRUE= 20358 HAVE_DSSI_FALSE='#' 20359else 20360 HAVE_DSSI_TRUE='#' 20361 HAVE_DSSI_FALSE= 20362fi 20363 20364 20365# LV2 20366 20367pkg_failed=no 20368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LV2" >&5 20369$as_echo_n "checking for LV2... " >&6; } 20370 20371if test -n "$LV2_CFLAGS"; then 20372 pkg_cv_LV2_CFLAGS="$LV2_CFLAGS" 20373 elif test -n "$PKG_CONFIG"; then 20374 if test -n "$PKG_CONFIG" && \ 20375 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lv2 >= 1.0.0\""; } >&5 20376 ($PKG_CONFIG --exists --print-errors "lv2 >= 1.0.0") 2>&5 20377 ac_status=$? 20378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20379 test $ac_status = 0; }; then 20380 pkg_cv_LV2_CFLAGS=`$PKG_CONFIG --cflags "lv2 >= 1.0.0" 2>/dev/null` 20381 test "x$?" != "x0" && pkg_failed=yes 20382else 20383 pkg_failed=yes 20384fi 20385 else 20386 pkg_failed=untried 20387fi 20388if test -n "$LV2_LIBS"; then 20389 pkg_cv_LV2_LIBS="$LV2_LIBS" 20390 elif test -n "$PKG_CONFIG"; then 20391 if test -n "$PKG_CONFIG" && \ 20392 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lv2 >= 1.0.0\""; } >&5 20393 ($PKG_CONFIG --exists --print-errors "lv2 >= 1.0.0") 2>&5 20394 ac_status=$? 20395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20396 test $ac_status = 0; }; then 20397 pkg_cv_LV2_LIBS=`$PKG_CONFIG --libs "lv2 >= 1.0.0" 2>/dev/null` 20398 test "x$?" != "x0" && pkg_failed=yes 20399else 20400 pkg_failed=yes 20401fi 20402 else 20403 pkg_failed=untried 20404fi 20405 20406 20407 20408if test $pkg_failed = yes; then 20409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20410$as_echo "no" >&6; } 20411 20412if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20413 _pkg_short_errors_supported=yes 20414else 20415 _pkg_short_errors_supported=no 20416fi 20417 if test $_pkg_short_errors_supported = yes; then 20418 LV2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lv2 >= 1.0.0" 2>&1` 20419 else 20420 LV2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lv2 >= 1.0.0" 2>&1` 20421 fi 20422 # Put the nasty error message in config.log where it belongs 20423 echo "$LV2_PKG_ERRORS" >&5 20424 20425 config_have_lv2="no" 20426elif test $pkg_failed = untried; then 20427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20428$as_echo "no" >&6; } 20429 config_have_lv2="no" 20430else 20431 LV2_CFLAGS=$pkg_cv_LV2_CFLAGS 20432 LV2_LIBS=$pkg_cv_LV2_LIBS 20433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20434$as_echo "yes" >&6; } 20435 config_have_lv2="yes" 20436fi 20437if test "$config_have_lv2" != "yes"; then 20438 20439pkg_failed=no 20440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LV2" >&5 20441$as_echo_n "checking for LV2... " >&6; } 20442 20443if test -n "$LV2_CFLAGS"; then 20444 pkg_cv_LV2_CFLAGS="$LV2_CFLAGS" 20445 elif test -n "$PKG_CONFIG"; then 20446 if test -n "$PKG_CONFIG" && \ 20447 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lv2core >= 1.0.0\""; } >&5 20448 ($PKG_CONFIG --exists --print-errors "lv2core >= 1.0.0") 2>&5 20449 ac_status=$? 20450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20451 test $ac_status = 0; }; then 20452 pkg_cv_LV2_CFLAGS=`$PKG_CONFIG --cflags "lv2core >= 1.0.0" 2>/dev/null` 20453 test "x$?" != "x0" && pkg_failed=yes 20454else 20455 pkg_failed=yes 20456fi 20457 else 20458 pkg_failed=untried 20459fi 20460if test -n "$LV2_LIBS"; then 20461 pkg_cv_LV2_LIBS="$LV2_LIBS" 20462 elif test -n "$PKG_CONFIG"; then 20463 if test -n "$PKG_CONFIG" && \ 20464 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lv2core >= 1.0.0\""; } >&5 20465 ($PKG_CONFIG --exists --print-errors "lv2core >= 1.0.0") 2>&5 20466 ac_status=$? 20467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20468 test $ac_status = 0; }; then 20469 pkg_cv_LV2_LIBS=`$PKG_CONFIG --libs "lv2core >= 1.0.0" 2>/dev/null` 20470 test "x$?" != "x0" && pkg_failed=yes 20471else 20472 pkg_failed=yes 20473fi 20474 else 20475 pkg_failed=untried 20476fi 20477 20478 20479 20480if test $pkg_failed = yes; then 20481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20482$as_echo "no" >&6; } 20483 20484if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20485 _pkg_short_errors_supported=yes 20486else 20487 _pkg_short_errors_supported=no 20488fi 20489 if test $_pkg_short_errors_supported = yes; then 20490 LV2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lv2core >= 1.0.0" 2>&1` 20491 else 20492 LV2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lv2core >= 1.0.0" 2>&1` 20493 fi 20494 # Put the nasty error message in config.log where it belongs 20495 echo "$LV2_PKG_ERRORS" >&5 20496 20497 config_have_lv2="no" 20498elif test $pkg_failed = untried; then 20499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20500$as_echo "no" >&6; } 20501 config_have_lv2="no" 20502else 20503 LV2_CFLAGS=$pkg_cv_LV2_CFLAGS 20504 LV2_LIBS=$pkg_cv_LV2_LIBS 20505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20506$as_echo "yes" >&6; } 20507 config_have_lv2="yes" 20508fi 20509fi 20510 20511 20512 if test $config_have_lv2 = "yes"; then 20513 HAVE_LV2_TRUE= 20514 HAVE_LV2_FALSE='#' 20515else 20516 HAVE_LV2_TRUE='#' 20517 HAVE_LV2_FALSE= 20518fi 20519 20520 20521# VST 20522@%:@ Check whether --enable-vstsdk-dir was given. 20523if test "${enable_vstsdk_dir+set}" = set; then : 20524 enableval=$enable_vstsdk_dir; VSTSDK_DIR="${enableval}" 20525else 20526 VSTSDK_DIR= 20527 20528fi 20529 20530 20531 if test "x$VSTSDK_DIR" != "x"; then 20532 HAVE_VST_TRUE= 20533 HAVE_VST_FALSE='#' 20534else 20535 HAVE_VST_TRUE='#' 20536 HAVE_VST_FALSE= 20537fi 20538 20539config_have_vst="no" 20540if test "x$VSTSDK_DIR" != "x"; then 20541 config_have_vst="yes" 20542fi 20543 20544# AU 20545for ac_header in AudioUnit/AudioUnit.h 20546do : 20547 ac_fn_c_check_header_mongrel "$LINENO" "AudioUnit/AudioUnit.h" "ac_cv_header_AudioUnit_AudioUnit_h" "$ac_includes_default" 20548if test "x$ac_cv_header_AudioUnit_AudioUnit_h" = xyes; then : 20549 cat >>confdefs.h <<_ACEOF 20550@%:@define HAVE_AUDIOUNIT_AUDIOUNIT_H 1 20551_ACEOF 20552 config_have_au="yes" 20553else 20554 config_have_au="no" 20555fi 20556 20557done 20558 20559 if test $config_have_au = "yes"; then 20560 HAVE_AU_TRUE= 20561 HAVE_AU_FALSE='#' 20562else 20563 HAVE_AU_TRUE='#' 20564 HAVE_AU_FALSE= 20565fi 20566 20567 if test "$AUFLAGS" != ""; then 20568 HAVE_AUFLAGS_TRUE= 20569 HAVE_AUFLAGS_FALSE='#' 20570else 20571 HAVE_AUFLAGS_TRUE='#' 20572 HAVE_AUFLAGS_FALSE= 20573fi 20574 20575 20576if test $config_have_au = "yes" ; then 20577 if test "x$DEVELOPER_EXTRAS_DIR" = "x" ; then 20578 if test -d /Developer/Extras ; then 20579 DEVELOPER_EXTRAS_DIR=/Developer/Extras 20580 else 20581 DEVELOPER_EXTRAS_DIR=/Developer/Examples 20582 fi 20583 fi 20584 20585fi 20586 20587if test "x$MAC_PLUGIN_INSTALL_DIR" = "x" ; then 20588 MAC_PLUGIN_INSTALL_DIR=/Library/Audio/Plug-Ins 20589fi 20590 20591 20592# have we found at least one MIDI input and one audio output driver ? 20593if test "$have_midi_input_driver" = "false"; then 20594 echo "No supported MIDI input system found!" 20595 echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:" 20596 echo "ALSA, JACK, MIDIShare, CoreMIDI, MME." 20597 echo "If you think you have one of those available on your system, make sure you" 20598 echo "also have the respective development (header) files installed." 20599 exit -1; 20600fi 20601if test "$have_audio_output_driver" = "false"; then 20602 echo "No supported audio output system found!" 20603 echo "Sorry, LinuxSampler only supports ALSA, JACK, ARTS and ASIO as audio output" 20604 echo "driver at the moment!" 20605 exit -1; 20606fi 20607 20608 20609 20610########################################################################### 20611# Checks for various DLL libraries 20612 20613# Check presence of libgig 20614libgig_version="4.3.0" 20615 20616pkg_failed=no 20617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIG" >&5 20618$as_echo_n "checking for GIG... " >&6; } 20619 20620if test -n "$GIG_CFLAGS"; then 20621 pkg_cv_GIG_CFLAGS="$GIG_CFLAGS" 20622 elif test -n "$PKG_CONFIG"; then 20623 if test -n "$PKG_CONFIG" && \ 20624 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gig >= \$libgig_version\""; } >&5 20625 ($PKG_CONFIG --exists --print-errors "gig >= $libgig_version") 2>&5 20626 ac_status=$? 20627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20628 test $ac_status = 0; }; then 20629 pkg_cv_GIG_CFLAGS=`$PKG_CONFIG --cflags "gig >= $libgig_version" 2>/dev/null` 20630 test "x$?" != "x0" && pkg_failed=yes 20631else 20632 pkg_failed=yes 20633fi 20634 else 20635 pkg_failed=untried 20636fi 20637if test -n "$GIG_LIBS"; then 20638 pkg_cv_GIG_LIBS="$GIG_LIBS" 20639 elif test -n "$PKG_CONFIG"; then 20640 if test -n "$PKG_CONFIG" && \ 20641 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gig >= \$libgig_version\""; } >&5 20642 ($PKG_CONFIG --exists --print-errors "gig >= $libgig_version") 2>&5 20643 ac_status=$? 20644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20645 test $ac_status = 0; }; then 20646 pkg_cv_GIG_LIBS=`$PKG_CONFIG --libs "gig >= $libgig_version" 2>/dev/null` 20647 test "x$?" != "x0" && pkg_failed=yes 20648else 20649 pkg_failed=yes 20650fi 20651 else 20652 pkg_failed=untried 20653fi 20654 20655 20656 20657if test $pkg_failed = yes; then 20658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20659$as_echo "no" >&6; } 20660 20661if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20662 _pkg_short_errors_supported=yes 20663else 20664 _pkg_short_errors_supported=no 20665fi 20666 if test $_pkg_short_errors_supported = yes; then 20667 GIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gig >= $libgig_version" 2>&1` 20668 else 20669 GIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gig >= $libgig_version" 2>&1` 20670 fi 20671 # Put the nasty error message in config.log where it belongs 20672 echo "$GIG_PKG_ERRORS" >&5 20673 20674 HAVE_GIG=false 20675elif test $pkg_failed = untried; then 20676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20677$as_echo "no" >&6; } 20678 HAVE_GIG=false 20679else 20680 GIG_CFLAGS=$pkg_cv_GIG_CFLAGS 20681 GIG_LIBS=$pkg_cv_GIG_LIBS 20682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20683$as_echo "yes" >&6; } 20684 HAVE_GIG=true 20685fi 20686if test "$HAVE_GIG" = "false"; then 20687 echo "Required libgig version not found!" 20688 echo "You need to have libgig version ${libgig_version} installed!" 20689 exit -1; 20690else 20691 echo "yes, found libgig $libgig_version" 20692fi 20693 20694 20695 20696# SF2 Engine (requires libgig) 20697@%:@ Check whether --enable-sf2-engine was given. 20698if test "${enable_sf2_engine+set}" = set; then : 20699 enableval=$enable_sf2_engine; config_sf2_engine="$enableval" 20700else 20701 config_sf2_engine="yes" 20702 20703fi 20704 20705HAVE_SF2=0; 20706if test "$config_sf2_engine" = "yes"; then 20707 HAVE_SF2=1 20708else 20709 echo "SF2 engine disabled by configure script parameter" 20710fi 20711 if test $HAVE_SF2 = 1; then 20712 HAVE_SF2_TRUE= 20713 HAVE_SF2_FALSE='#' 20714else 20715 HAVE_SF2_TRUE='#' 20716 HAVE_SF2_FALSE= 20717fi 20718 20719 20720cat >>confdefs.h <<_ACEOF 20721@%:@define HAVE_SF2 $HAVE_SF2 20722_ACEOF 20723 20724config_have_sf2="no" 20725if test $HAVE_SF2 = "1"; then 20726 config_have_sf2="yes" 20727fi 20728 20729# Check presence of libsndfile 20730libsndfile_version="1.0" 20731 20732pkg_failed=no 20733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5 20734$as_echo_n "checking for SNDFILE... " >&6; } 20735 20736if test -n "$SNDFILE_CFLAGS"; then 20737 pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS" 20738 elif test -n "$PKG_CONFIG"; then 20739 if test -n "$PKG_CONFIG" && \ 20740 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= \$libsndfile_version\""; } >&5 20741 ($PKG_CONFIG --exists --print-errors "sndfile >= $libsndfile_version") 2>&5 20742 ac_status=$? 20743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20744 test $ac_status = 0; }; then 20745 pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= $libsndfile_version" 2>/dev/null` 20746 test "x$?" != "x0" && pkg_failed=yes 20747else 20748 pkg_failed=yes 20749fi 20750 else 20751 pkg_failed=untried 20752fi 20753if test -n "$SNDFILE_LIBS"; then 20754 pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS" 20755 elif test -n "$PKG_CONFIG"; then 20756 if test -n "$PKG_CONFIG" && \ 20757 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= \$libsndfile_version\""; } >&5 20758 ($PKG_CONFIG --exists --print-errors "sndfile >= $libsndfile_version") 2>&5 20759 ac_status=$? 20760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20761 test $ac_status = 0; }; then 20762 pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= $libsndfile_version" 2>/dev/null` 20763 test "x$?" != "x0" && pkg_failed=yes 20764else 20765 pkg_failed=yes 20766fi 20767 else 20768 pkg_failed=untried 20769fi 20770 20771 20772 20773if test $pkg_failed = yes; then 20774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20775$as_echo "no" >&6; } 20776 20777if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20778 _pkg_short_errors_supported=yes 20779else 20780 _pkg_short_errors_supported=no 20781fi 20782 if test $_pkg_short_errors_supported = yes; then 20783 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= $libsndfile_version" 2>&1` 20784 else 20785 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= $libsndfile_version" 2>&1` 20786 fi 20787 # Put the nasty error message in config.log where it belongs 20788 echo "$SNDFILE_PKG_ERRORS" >&5 20789 20790 HAVE_SNDFILE=false 20791elif test $pkg_failed = untried; then 20792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20793$as_echo "no" >&6; } 20794 HAVE_SNDFILE=false 20795else 20796 SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS 20797 SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS 20798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20799$as_echo "yes" >&6; } 20800 HAVE_SNDFILE=true 20801fi 20802if test "$HAVE_SNDFILE" = "false"; then 20803 echo "Required libsndfile version not found!" 20804 echo "You need to have libsndfile version ${libsndfile_version} installed!" 20805 exit -1; 20806else 20807 echo "yes, found libsndfile $libsndfile_version" 20808fi 20809 20810 20811 20812# Check for Vorbis and FLAC support in libsndfile 20813linuxsampler_save_CFLAGS=$CFLAGS 20814CFLAGS="$SNDFILE_CFLAGS $CFLAGS" 20815ac_fn_c_check_decl "$LINENO" "SF_FORMAT_VORBIS" "ac_cv_have_decl_SF_FORMAT_VORBIS" "#include <sndfile.h> 20816" 20817if test "x$ac_cv_have_decl_SF_FORMAT_VORBIS" = xyes; then : 20818 ac_have_decl=1 20819else 20820 ac_have_decl=0 20821fi 20822 20823cat >>confdefs.h <<_ACEOF 20824@%:@define HAVE_DECL_SF_FORMAT_VORBIS $ac_have_decl 20825_ACEOF 20826ac_fn_c_check_decl "$LINENO" "SF_FORMAT_FLAC" "ac_cv_have_decl_SF_FORMAT_FLAC" "#include <sndfile.h> 20827" 20828if test "x$ac_cv_have_decl_SF_FORMAT_FLAC" = xyes; then : 20829 ac_have_decl=1 20830else 20831 ac_have_decl=0 20832fi 20833 20834cat >>confdefs.h <<_ACEOF 20835@%:@define HAVE_DECL_SF_FORMAT_FLAC $ac_have_decl 20836_ACEOF 20837 20838 20839# Check for loop functionality in libsndfile 20840ac_fn_c_check_member "$LINENO" "SF_INSTRUMENT" "loops" "ac_cv_member_SF_INSTRUMENT_loops" "#include <sndfile.h> 20841" 20842if test "x$ac_cv_member_SF_INSTRUMENT_loops" = xyes; then : 20843 20844cat >>confdefs.h <<_ACEOF 20845@%:@define HAVE_SF_INSTRUMENT_LOOPS 1 20846_ACEOF 20847 20848 20849else 20850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of libsndfile does not support 20851 reading of loop information. LinuxSampler will not be able to 20852 extract loop information from sample files." >&5 20853$as_echo "$as_me: WARNING: Your version of libsndfile does not support 20854 reading of loop information. LinuxSampler will not be able to 20855 extract loop information from sample files." >&2;} 20856fi 20857 20858CFLAGS=$linuxsampler_save_CFLAGS 20859 20860# Instruments DB feature (requires SQLite 3.3) 20861@%:@ Check whether --enable-instruments-db was given. 20862if test "${enable_instruments_db+set}" = set; then : 20863 enableval=$enable_instruments_db; config_instruments_db="$enableval" 20864else 20865 config_instruments_db="yes" 20866 20867fi 20868 20869HAVE_SQLITE3=0; 20870if test "$config_instruments_db" = "yes"; then 20871 # Check presence of sqlite3 20872 sqlite_version="3.3" 20873 20874pkg_failed=no 20875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5 20876$as_echo_n "checking for SQLITE3... " >&6; } 20877 20878if test -n "$SQLITE3_CFLAGS"; then 20879 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS" 20880 elif test -n "$PKG_CONFIG"; then 20881 if test -n "$PKG_CONFIG" && \ 20882 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$sqlite_version\""; } >&5 20883 ($PKG_CONFIG --exists --print-errors "sqlite3 >= $sqlite_version") 2>&5 20884 ac_status=$? 20885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20886 test $ac_status = 0; }; then 20887 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= $sqlite_version" 2>/dev/null` 20888 test "x$?" != "x0" && pkg_failed=yes 20889else 20890 pkg_failed=yes 20891fi 20892 else 20893 pkg_failed=untried 20894fi 20895if test -n "$SQLITE3_LIBS"; then 20896 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS" 20897 elif test -n "$PKG_CONFIG"; then 20898 if test -n "$PKG_CONFIG" && \ 20899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$sqlite_version\""; } >&5 20900 ($PKG_CONFIG --exists --print-errors "sqlite3 >= $sqlite_version") 2>&5 20901 ac_status=$? 20902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20903 test $ac_status = 0; }; then 20904 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= $sqlite_version" 2>/dev/null` 20905 test "x$?" != "x0" && pkg_failed=yes 20906else 20907 pkg_failed=yes 20908fi 20909 else 20910 pkg_failed=untried 20911fi 20912 20913 20914 20915if test $pkg_failed = yes; then 20916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20917$as_echo "no" >&6; } 20918 20919if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20920 _pkg_short_errors_supported=yes 20921else 20922 _pkg_short_errors_supported=no 20923fi 20924 if test $_pkg_short_errors_supported = yes; then 20925 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= $sqlite_version" 2>&1` 20926 else 20927 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= $sqlite_version" 2>&1` 20928 fi 20929 # Put the nasty error message in config.log where it belongs 20930 echo "$SQLITE3_PKG_ERRORS" >&5 20931 20932 HAVE_SQLITE3=false 20933elif test $pkg_failed = untried; then 20934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20935$as_echo "no" >&6; } 20936 HAVE_SQLITE3=false 20937else 20938 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS 20939 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS 20940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20941$as_echo "yes" >&6; } 20942 HAVE_SQLITE3=true 20943fi 20944 20945 20946 if test $HAVE_SQLITE3 = false; then 20947 HAVE_SQLITE3=0 20948 config_instruments_db="no" 20949 echo "*** Required sqlite version not found!" 20950 echo "*** You need to have sqlite version ${sqlite_version} or higher" 20951 echo "*** for instruments database support to be enabled." 20952 echo "*** Support for instruments DB will be disabled!" 20953 else 20954 HAVE_SQLITE3=1 20955 fi 20956else 20957 echo "Instruments DB feature disabled by configure script parameter" 20958fi 20959 if test $HAVE_SQLITE3 = 1; then 20960 HAVE_SQLITE3_TRUE= 20961 HAVE_SQLITE3_FALSE='#' 20962else 20963 HAVE_SQLITE3_TRUE='#' 20964 HAVE_SQLITE3_FALSE= 20965fi 20966 20967 20968cat >>confdefs.h <<_ACEOF 20969@%:@define HAVE_SQLITE3 $HAVE_SQLITE3 20970_ACEOF 20971 20972 20973 20974 20975########################################################################### 20976# Handle Configuration Options 20977 20978# TODO: should we use AC_ARG_VAR(variable, description) instead? 20979 20980@%:@ Check whether --enable-asm was given. 20981if test "${enable_asm+set}" = set; then : 20982 enableval=$enable_asm; config_asm="$enableval" 20983else 20984 config_asm="yes" 20985 20986fi 20987 20988if test "$config_asm" = "yes"; then 20989 20990cat >>confdefs.h <<_ACEOF 20991@%:@define CONFIG_ASM 1 20992_ACEOF 20993 20994fi 20995 20996@%:@ Check whether --enable-dev-mode was given. 20997if test "${enable_dev_mode+set}" = set; then : 20998 enableval=$enable_dev_mode; config_dev_mode="$enableval" 20999else 21000 config_dev_mode="no" 21001 21002fi 21003 21004if test "$config_dev_mode" = "yes"; then 21005 21006cat >>confdefs.h <<_ACEOF 21007@%:@define CONFIG_DEVMODE 1 21008_ACEOF 21009 21010fi 21011 21012@%:@ Check whether --enable-debug-level was given. 21013if test "${enable_debug_level+set}" = set; then : 21014 enableval=$enable_debug_level; config_debug_level="${enableval}" 21015else 21016 config_debug_level="1" 21017 21018fi 21019 21020 21021cat >>confdefs.h <<_ACEOF 21022@%:@define CONFIG_DEBUG_LEVEL $config_debug_level 21023_ACEOF 21024 21025 21026@%:@ Check whether --enable-rt-exceptions was given. 21027if test "${enable_rt_exceptions+set}" = set; then : 21028 enableval=$enable_rt_exceptions; config_rt_exceptions="$enableval" 21029else 21030 config_rt_exceptions="no" 21031 21032fi 21033 21034if test "$config_rt_exceptions" = "yes"; then 21035 21036cat >>confdefs.h <<_ACEOF 21037@%:@define CONFIG_RT_EXCEPTIONS 1 21038_ACEOF 21039 21040fi 21041 21042ac_fn_c_check_func "$LINENO" "pthread_testcancel" "ac_cv_func_pthread_testcancel" 21043if test "x$ac_cv_func_pthread_testcancel" = xyes; then : 21044 config_pthread_testcancel="yes" 21045else 21046 config_pthread_testcancel="no" 21047 21048fi 21049 21050if test "$config_pthread_testcancel" = "yes"; then 21051 21052cat >>confdefs.h <<_ACEOF 21053@%:@define CONFIG_PTHREAD_TESTCANCEL 1 21054_ACEOF 21055 21056fi 21057 21058@%:@ Check whether --enable-preload-samples was given. 21059if test "${enable_preload_samples+set}" = set; then : 21060 enableval=$enable_preload_samples; config_preload_samples="${enableval}" 21061else 21062 config_preload_samples="32768" 21063 21064fi 21065 21066 21067cat >>confdefs.h <<_ACEOF 21068@%:@define CONFIG_PRELOAD_SAMPLES $config_preload_samples 21069_ACEOF 21070 21071 21072@%:@ Check whether --enable-max-pitch was given. 21073if test "${enable_max_pitch+set}" = set; then : 21074 enableval=$enable_max_pitch; config_max_pitch="${enableval}" 21075else 21076 config_max_pitch="4" 21077 21078fi 21079 21080 21081cat >>confdefs.h <<_ACEOF 21082@%:@define CONFIG_MAX_PITCH $config_max_pitch 21083_ACEOF 21084 21085 21086@%:@ Check whether --enable-max-events was given. 21087if test "${enable_max_events+set}" = set; then : 21088 enableval=$enable_max_events; config_max_events="${enableval}" 21089else 21090 config_max_events="1024" 21091 21092fi 21093 21094 21095cat >>confdefs.h <<_ACEOF 21096@%:@define CONFIG_MAX_EVENTS_PER_FRAGMENT $config_max_events 21097_ACEOF 21098 21099 21100@%:@ Check whether --enable-eg-bottom was given. 21101if test "${enable_eg_bottom+set}" = set; then : 21102 enableval=$enable_eg_bottom; config_eg_bottom="${enableval}" 21103else 21104 config_eg_bottom="0.001" 21105 21106fi 21107 21108 21109cat >>confdefs.h <<_ACEOF 21110@%:@define CONFIG_EG_BOTTOM $config_eg_bottom 21111_ACEOF 21112 21113 21114@%:@ Check whether --enable-eg-min-release-time was given. 21115if test "${enable_eg_min_release_time+set}" = set; then : 21116 enableval=$enable_eg_min_release_time; config_eg_min_release_time="${enableval}" 21117else 21118 config_eg_min_release_time="0.0025" 21119 21120fi 21121 21122 21123cat >>confdefs.h <<_ACEOF 21124@%:@define CONFIG_EG_MIN_RELEASE_TIME $config_eg_min_release_time 21125_ACEOF 21126 21127 21128@%:@ Check whether --enable-refill-streams was given. 21129if test "${enable_refill_streams+set}" = set; then : 21130 enableval=$enable_refill_streams; config_refill_streams="${enableval}" 21131else 21132 config_refill_streams="4" 21133 21134fi 21135 21136 21137cat >>confdefs.h <<_ACEOF 21138@%:@define CONFIG_REFILL_STREAMS_PER_RUN $config_refill_streams 21139_ACEOF 21140 21141 21142@%:@ Check whether --enable-stream-min-refill was given. 21143if test "${enable_stream_min_refill+set}" = set; then : 21144 enableval=$enable_stream_min_refill; config_stream_min_refill="${enableval}" 21145else 21146 config_stream_min_refill="1024" 21147 21148fi 21149 21150 21151cat >>confdefs.h <<_ACEOF 21152@%:@define CONFIG_STREAM_MIN_REFILL_SIZE $config_stream_min_refill 21153_ACEOF 21154 21155 21156@%:@ Check whether --enable-stream-max-refill was given. 21157if test "${enable_stream_max_refill+set}" = set; then : 21158 enableval=$enable_stream_max_refill; config_stream_max_refill="${enableval}" 21159else 21160 config_stream_max_refill="65536" 21161 21162fi 21163 21164 21165cat >>confdefs.h <<_ACEOF 21166@%:@define CONFIG_STREAM_MAX_REFILL_SIZE $config_stream_max_refill 21167_ACEOF 21168 21169 21170@%:@ Check whether --enable-stream-size was given. 21171if test "${enable_stream_size+set}" = set; then : 21172 enableval=$enable_stream_size; config_stream_size="${enableval}" 21173else 21174 config_stream_size="262144" 21175 21176fi 21177 21178 21179cat >>confdefs.h <<_ACEOF 21180@%:@define CONFIG_STREAM_BUFFER_SIZE $config_stream_size 21181_ACEOF 21182 21183 21184@%:@ Check whether --enable-max-streams was given. 21185if test "${enable_max_streams+set}" = set; then : 21186 enableval=$enable_max_streams; config_max_streams="${enableval}" 21187else 21188 config_max_streams="90" 21189 21190fi 21191 21192 21193cat >>confdefs.h <<_ACEOF 21194@%:@define CONFIG_DEFAULT_MAX_STREAMS $config_max_streams 21195_ACEOF 21196 21197 21198@%:@ Check whether --enable-max-voices was given. 21199if test "${enable_max_voices+set}" = set; then : 21200 enableval=$enable_max_voices; config_max_voices="${enableval}" 21201else 21202 config_max_voices="64" 21203 21204fi 21205 21206 21207cat >>confdefs.h <<_ACEOF 21208@%:@define CONFIG_DEFAULT_MAX_VOICES $config_max_voices 21209_ACEOF 21210 21211 21212@%:@ Check whether --enable-subfragment-size was given. 21213if test "${enable_subfragment_size+set}" = set; then : 21214 enableval=$enable_subfragment_size; config_subfragment_size="${enableval}" 21215else 21216 config_subfragment_size="32" 21217 21218fi 21219 21220 21221cat >>confdefs.h <<_ACEOF 21222@%:@define CONFIG_DEFAULT_SUBFRAGMENT_SIZE $config_subfragment_size 21223_ACEOF 21224 21225 21226@%:@ Check whether --enable-global-attenuation-default was given. 21227if test "${enable_global_attenuation_default+set}" = set; then : 21228 enableval=$enable_global_attenuation_default; config_global_attenuation_default="${enableval}" 21229else 21230 config_global_attenuation_default="0.35" 21231 21232fi 21233 21234 21235cat >>confdefs.h <<_ACEOF 21236@%:@define CONFIG_GLOBAL_ATTENUATION_DEFAULT $config_global_attenuation_default 21237_ACEOF 21238 21239 21240@%:@ Check whether --enable-voice-steal-algo was given. 21241if test "${enable_voice_steal_algo+set}" = set; then : 21242 enableval=$enable_voice_steal_algo; if test ! "(" "${enableval}" = "none" \ 21243 -o "${enableval}" = "oldestvoiceonkey" \ 21244 -o "${enableval}" = "oldestkey" ")" ; then 21245 as_fn_error $? "Unknown voice stealing algorithm for parameter --enable-voice-steal-algo" "$LINENO" 5 21246 else 21247 config_voice_steal_algo="${enableval}" 21248 fi 21249 21250else 21251 config_voice_steal_algo="oldestvoiceonkey" 21252 21253fi 21254 21255 21256cat >>confdefs.h <<_ACEOF 21257@%:@define CONFIG_VOICE_STEAL_ALGO voice_steal_algo_${config_voice_steal_algo} 21258_ACEOF 21259 21260 21261@%:@ Check whether --enable-sysex-buffer-size was given. 21262if test "${enable_sysex_buffer_size+set}" = set; then : 21263 enableval=$enable_sysex_buffer_size; config_sysex_buffer_size="${enableval}" 21264else 21265 config_sysex_buffer_size="2048" 21266 21267fi 21268 21269 21270cat >>confdefs.h <<_ACEOF 21271@%:@define CONFIG_SYSEX_BUFFER_SIZE $config_sysex_buffer_size 21272_ACEOF 21273 21274 21275@%:@ Check whether --enable-force-filter was given. 21276if test "${enable_force_filter+set}" = set; then : 21277 enableval=$enable_force_filter; config_force_filter="$enableval" 21278else 21279 config_force_filter="no" 21280 21281fi 21282 21283if test "$config_force_filter" = "yes"; then 21284 21285cat >>confdefs.h <<_ACEOF 21286@%:@define CONFIG_FORCE_FILTER 1 21287_ACEOF 21288 21289fi 21290 21291@%:@ Check whether --enable-filter-cutoff-min was given. 21292if test "${enable_filter_cutoff_min+set}" = set; then : 21293 enableval=$enable_filter_cutoff_min; config_filter_cutoff_min="${enableval}" 21294else 21295 config_filter_cutoff_min="100.0" 21296 21297fi 21298 21299 21300cat >>confdefs.h <<_ACEOF 21301@%:@define CONFIG_FILTER_CUTOFF_MIN ${config_filter_cutoff_min}f 21302_ACEOF 21303 21304 21305@%:@ Check whether --enable-filter-cutoff-max was given. 21306if test "${enable_filter_cutoff_max+set}" = set; then : 21307 enableval=$enable_filter_cutoff_max; config_filter_cutoff_max="${enableval}" 21308else 21309 config_filter_cutoff_max="10000.0" 21310 21311fi 21312 21313 21314cat >>confdefs.h <<_ACEOF 21315@%:@define CONFIG_FILTER_CUTOFF_MAX ${config_filter_cutoff_max}f 21316_ACEOF 21317 21318 21319@%:@ Check whether --enable-override-cutoff-ctrl was given. 21320if test "${enable_override_cutoff_ctrl+set}" = set; then : 21321 enableval=$enable_override_cutoff_ctrl; config_override_cutoff_ctrl="${enableval}" 21322else 21323 config_override_cutoff_ctrl="no" 21324 21325fi 21326 21327if test ! "$config_override_cutoff_ctrl" = "no"; then 21328 21329cat >>confdefs.h <<_ACEOF 21330@%:@define CONFIG_OVERRIDE_CUTOFF_CTRL $config_override_cutoff_ctrl 21331_ACEOF 21332 21333fi 21334 21335@%:@ Check whether --enable-override-resonance-ctrl was given. 21336if test "${enable_override_resonance_ctrl+set}" = set; then : 21337 enableval=$enable_override_resonance_ctrl; config_override_resonance_ctrl="${enableval}" 21338else 21339 config_override_resonance_ctrl="no" 21340 21341fi 21342 21343if test ! "$config_override_resonance_ctrl" = "no"; then 21344 21345cat >>confdefs.h <<_ACEOF 21346@%:@define CONFIG_OVERRIDE_RESONANCE_CTRL $config_override_resonance_ctrl 21347_ACEOF 21348 21349fi 21350 21351@%:@ Check whether --enable-override-filter-type was given. 21352if test "${enable_override_filter_type+set}" = set; then : 21353 enableval=$enable_override_filter_type; if test "${enableval}" = "hp" ; then 21354 config_override_filter_type="::gig::vcf_type_highpass" 21355 elif test "${enableval}" = "bp" ; then 21356 config_override_filter_type="::gig::vcf_type_bandpass" 21357 elif test "${enableval}" = "br" ; then 21358 config_override_filter_type="::gig::vcf_type_bandreject" 21359 elif test "${enableval}" = "lp" ; then 21360 config_override_filter_type="::gig::vcf_type_lowpass" 21361 elif test "${enableval}" = "lpt" ; then 21362 config_override_filter_type="::gig::vcf_type_lowpassturbo" 21363 elif test ! "${enableval}" = "no"; then 21364 as_fn_error $? "Unknown filter type for parameter --enable-override-filter-type" "$LINENO" 5 21365 fi 21366 21367else 21368 config_override_filter_type="no" 21369 21370fi 21371 21372if test ! "$config_override_filter_type" = "no"; then 21373 21374cat >>confdefs.h <<_ACEOF 21375@%:@define CONFIG_OVERRIDE_FILTER_TYPE $config_override_filter_type 21376_ACEOF 21377 21378fi 21379 21380@%:@ Check whether --enable-gs-checksum was given. 21381if test "${enable_gs_checksum+set}" = set; then : 21382 enableval=$enable_gs_checksum; config_assert_gs_sysex_checksum="$enableval" 21383else 21384 config_assert_gs_sysex_checksum="no" 21385 21386fi 21387 21388if test "config_assert_gs_sysex_checksum" = "yes"; then 21389 21390cat >>confdefs.h <<_ACEOF 21391@%:@define CONFIG_ASSERT_GS_SYSEX_CHECKSUM 1 21392_ACEOF 21393 21394fi 21395 21396@%:@ Check whether --enable-portamento-time-min was given. 21397if test "${enable_portamento_time_min+set}" = set; then : 21398 enableval=$enable_portamento_time_min; config_portamento_time_min="${enableval}" 21399else 21400 config_portamento_time_min="0.1" 21401 21402fi 21403 21404 21405cat >>confdefs.h <<_ACEOF 21406@%:@define CONFIG_PORTAMENTO_TIME_MIN $config_portamento_time_min 21407_ACEOF 21408 21409 21410@%:@ Check whether --enable-portamento-time-max was given. 21411if test "${enable_portamento_time_max+set}" = set; then : 21412 enableval=$enable_portamento_time_max; config_portamento_time_max="${enableval}" 21413else 21414 config_portamento_time_max="32" 21415 21416fi 21417 21418 21419cat >>confdefs.h <<_ACEOF 21420@%:@define CONFIG_PORTAMENTO_TIME_MAX $config_portamento_time_max 21421_ACEOF 21422 21423 21424@%:@ Check whether --enable-portamento-time-default was given. 21425if test "${enable_portamento_time_default+set}" = set; then : 21426 enableval=$enable_portamento_time_default; config_portamento_time_default="${enableval}" 21427else 21428 config_portamento_time_default="1" 21429 21430fi 21431 21432 21433cat >>confdefs.h <<_ACEOF 21434@%:@define CONFIG_PORTAMENTO_TIME_DEFAULT $config_portamento_time_default 21435_ACEOF 21436 21437 21438@%:@ Check whether --enable-signed-triang-algo was given. 21439if test "${enable_signed_triang_algo+set}" = set; then : 21440 enableval=$enable_signed_triang_algo; if test ! "(" "${enableval}" = "intmath" \ 21441 -o "${enableval}" = "intmathabs" \ 21442 -o "${enableval}" = "diharmonic" ")" ; then 21443 as_fn_error $? "Unknown triangular wave algorithm for parameter --enable-signed-triang-algo" "$LINENO" 5 21444 else 21445 config_signed_triang_algo="${enableval}" 21446 fi 21447 21448else 21449 config_signed_triang_algo="benchmark" 21450 21451fi 21452 21453 21454@%:@ Check whether --enable-unsigned-triang-algo was given. 21455if test "${enable_unsigned_triang_algo+set}" = set; then : 21456 enableval=$enable_unsigned_triang_algo; if test ! "(" "${enableval}" = "intmath" \ 21457 -o "${enableval}" = "intmathabs" \ 21458 -o "${enableval}" = "diharmonic" ")" ; then 21459 as_fn_error $? "Unknown triangular wave algorithm for parameter --enable-unsigned-triang-algo" "$LINENO" 5 21460 else 21461 config_unsigned_triang_algo="${enableval}" 21462 fi 21463 21464else 21465 config_unsigned_triang_algo="benchmark" 21466 21467fi 21468 21469 21470@%:@ Check whether --enable-process-muted-channels was given. 21471if test "${enable_process_muted_channels+set}" = set; then : 21472 enableval=$enable_process_muted_channels; config_process_muted_channels="$enableval" 21473else 21474 config_process_muted_channels="no" 21475 21476fi 21477 21478if test "$config_process_muted_channels" = "yes"; then 21479 21480cat >>confdefs.h <<_ACEOF 21481@%:@define CONFIG_PROCESS_MUTED_CHANNELS 1 21482_ACEOF 21483 21484fi 21485 21486@%:@ Check whether --enable-process-all-notes-off was given. 21487if test "${enable_process_all_notes_off+set}" = set; then : 21488 enableval=$enable_process_all_notes_off; config_process_all_notes_off="$enableval" 21489else 21490 config_process_all_notes_off="yes" 21491 21492fi 21493 21494if test "$config_process_all_notes_off" = "yes"; then 21495 21496cat >>confdefs.h <<_ACEOF 21497@%:@define CONFIG_PROCESS_ALL_NOTES_OFF 1 21498_ACEOF 21499 21500fi 21501 21502@%:@ Check whether --enable-interpolate-volume was given. 21503if test "${enable_interpolate_volume+set}" = set; then : 21504 enableval=$enable_interpolate_volume; config_interpolate_volume="$enableval" 21505else 21506 config_interpolate_volume="yes" 21507 21508fi 21509 21510if test "$config_interpolate_volume" = "yes"; then 21511 21512cat >>confdefs.h <<_ACEOF 21513@%:@define CONFIG_INTERPOLATE_VOLUME 1 21514_ACEOF 21515 21516fi 21517 21518@%:@ Check whether --enable-master-volume-sysex-by-port was given. 21519if test "${enable_master_volume_sysex_by_port+set}" = set; then : 21520 enableval=$enable_master_volume_sysex_by_port; config_master_volume_sysex_by_port="$enableval" 21521else 21522 config_master_volume_sysex_by_port="no" 21523 21524fi 21525 21526if test "$config_master_volume_sysex_by_port" = "yes"; then 21527 21528cat >>confdefs.h <<_ACEOF 21529@%:@define CONFIG_MASTER_VOLUME_SYSEX_BY_PORT 1 21530_ACEOF 21531 21532fi 21533 21534@%:@ Check whether --enable-plugin-dir was given. 21535if test "${enable_plugin_dir+set}" = set; then : 21536 enableval=$enable_plugin_dir; config_plugin_dir="${enableval}" 21537else 21538 config_plugin_dir="${libdir}/linuxsampler/plugins" 21539 21540fi 21541 21542 21543 21544@%:@ Check whether --enable-default-instruments-db-location was given. 21545if test "${enable_default_instruments_db_location+set}" = set; then : 21546 enableval=$enable_default_instruments_db_location; config_default_instruments_db_file="${enableval}" 21547else 21548 config_default_instruments_db_file="/var/lib/linuxsampler/instruments.db" 21549 21550fi 21551 21552 21553cat >>confdefs.h <<_ACEOF 21554@%:@define CONFIG_DEFAULT_INSTRUMENTS_DB_LOCATION "$config_default_instruments_db_file" 21555_ACEOF 21556 21557 21558 21559 21560########################################################################### 21561# Automatic Benchmarks (to detect the best algorithms for the system) 21562 21563if test "$config_signed_triang_algo" = "benchmark"; then 21564 echo -n "benchmarking for the best (signed) triangular oscillator algorithm... " 21565 ac_ext=cpp 21566ac_cpp='$CXXCPP $CPPFLAGS' 21567ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21568ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21569ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21570 21571 if test "$cross_compiling" = yes; then : 21572 triang_signed=0 21573 21574else 21575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21576/* end confdefs.h. */ 21577 21578 #define SIGNED 1 21579 #define SILENT 1 21580 #include "${srcdir}/benchmarks/triang.cpp" 21581 21582_ACEOF 21583if ac_fn_cxx_try_run "$LINENO"; then : 21584 triang_signed=0 21585else 21586 triang_signed=$? 21587fi 21588rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21589 conftest.$ac_objext conftest.beam conftest.$ac_ext 21590fi 21591 21592 ac_ext=c 21593ac_cpp='$CPP $CPPFLAGS' 21594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21596ac_compiler_gnu=$ac_cv_c_compiler_gnu 21597 21598 if test "$triang_signed" = "2"; then 21599 config_signed_triang_algo="intmath" 21600 echo "integer math" 21601 elif test "$triang_signed" = "3"; then 21602 config_signed_triang_algo="diharmonic" 21603 echo "di harmonics" 21604 elif test "$triang_signed" = "5"; then 21605 config_signed_triang_algo="intmathabs" 21606 echo "integer math using abs()" 21607 else 21608 echo "Benchmark of signed triangular wave algorithms failed!" 21609 echo "Maybe you are doing cross compilation? In that case you have to select" 21610 echo "an algorithm manually with './configure --enable-signed-triang-algo=...'" 21611 echo "Call './configure --help' for further information or read configure.in." 21612 exit -1; 21613 fi 21614else 21615 case "$config_signed_triang_algo" in 21616 intmath) 21617 triang_signed=2 ;; 21618 diharmonic) 21619 triang_signed=3 ;; 21620 intmathabs) 21621 triang_signed=5 ;; 21622 esac 21623fi 21624 21625cat >>confdefs.h <<_ACEOF 21626@%:@define CONFIG_SIGNED_TRIANG_ALGO ${triang_signed} 21627_ACEOF 21628 21629 21630if test "$config_unsigned_triang_algo" = "benchmark"; then 21631 echo -n "benchmarking for the best (unsigned) triangular oscillator algorithm... " 21632 ac_ext=cpp 21633ac_cpp='$CXXCPP $CPPFLAGS' 21634ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21635ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21636ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21637 21638 if test "$cross_compiling" = yes; then : 21639 triang_unsigned=0 21640 21641else 21642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21643/* end confdefs.h. */ 21644 21645 #define SIGNED 0 21646 #define SILENT 1 21647 #include "${srcdir}/benchmarks/triang.cpp" 21648 21649_ACEOF 21650if ac_fn_cxx_try_run "$LINENO"; then : 21651 triang_unsigned=0 21652else 21653 triang_unsigned=$? 21654fi 21655rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21656 conftest.$ac_objext conftest.beam conftest.$ac_ext 21657fi 21658 21659 ac_ext=c 21660ac_cpp='$CPP $CPPFLAGS' 21661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21663ac_compiler_gnu=$ac_cv_c_compiler_gnu 21664 21665 if test "$triang_unsigned" = "2"; then 21666 config_unsigned_triang_algo="intmath" 21667 echo "integer math" 21668 elif test "$triang_unsigned" = "3"; then 21669 config_unsigned_triang_algo="diharmonic" 21670 echo "di harmonics" 21671 elif test "$triang_unsigned" = "5"; then 21672 config_unsigned_triang_algo="intmathabs" 21673 echo "integer math using abs()" 21674 else 21675 echo "Benchmark of unsigned triangular wave algorithms failed!" 21676 echo "Maybe you are doing cross compilation? In that case you have to select" 21677 echo "an algorithm manually with './configure --enable-unsigned-triang-algo=...'" 21678 echo "Call './configure --help' for further information or read configure.in." 21679 exit -1; 21680 fi 21681else 21682 case "$config_unsigned_triang_algo" in 21683 intmath) 21684 triang_unsigned=2 ;; 21685 diharmonic) 21686 triang_unsigned=3 ;; 21687 intmathabs) 21688 triang_unsigned=5 ;; 21689 esac 21690fi 21691 21692cat >>confdefs.h <<_ACEOF 21693@%:@define CONFIG_UNSIGNED_TRIANG_ALGO ${triang_unsigned} 21694_ACEOF 21695 21696 21697 21698########################################################################### 21699# Create Build Files 21700 21701ac_config_headers="$ac_config_headers config.h" 21702 21703 21704ac_ext=cpp 21705ac_cpp='$CXXCPP $CPPFLAGS' 21706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21709 21710 21711# autoconf 2.59/libtool 1.5.12 bug? work-around. Without a check like 21712# this, the dlfcn.h check in am_prog_libtool may fail. 21713 21714ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 21715if test "x$ac_cv_header_stdlib_h" = xyes; then : 21716 21717fi 21718 21719 21720 21721ac_config_files="$ac_config_files Makefile man/Makefile man/linuxsampler.1 man/lscp.1 src/Makefile src/db/Makefile src/network/Makefile src/engines/Makefile src/engines/gig/Makefile src/engines/sf2/Makefile src/engines/sfz/Makefile src/engines/common/Makefile src/effects/Makefile src/common/Makefile src/testcases/Makefile src/drivers/Makefile src/drivers/audio/Makefile src/drivers/midi/Makefile src/plugins/Makefile src/hostplugins/Makefile src/hostplugins/dssi/Makefile src/hostplugins/lv2/Makefile src/hostplugins/lv2/manifest.ttl src/hostplugins/vst/Makefile src/hostplugins/au/Makefile src/scriptvm/Makefile src/scriptvm/editor/Makefile src/shell/Makefile linuxsampler.spec debian/Makefile Artwork/Makefile scripts/Makefile osx/Makefile osx/linuxsampler.xcodeproj/Makefile Documentation/Makefile Documentation/Engines/Makefile Documentation/Engines/gig/Makefile linuxsampler.pc Doxyfile" 21722 21723cat >confcache <<\_ACEOF 21724# This file is a shell script that caches the results of configure 21725# tests run on this system so they can be shared between configure 21726# scripts and configure runs, see configure's option --config-cache. 21727# It is not useful on other systems. If it contains results you don't 21728# want to keep, you may remove or edit it. 21729# 21730# config.status only pays attention to the cache file if you give it 21731# the --recheck option to rerun configure. 21732# 21733# `ac_cv_env_foo' variables (set or unset) will be overridden when 21734# loading this file, other *unset* `ac_cv_foo' will be assigned the 21735# following values. 21736 21737_ACEOF 21738 21739# The following way of writing the cache mishandles newlines in values, 21740# but we know of no workaround that is simple, portable, and efficient. 21741# So, we kill variables containing newlines. 21742# Ultrix sh set writes to stderr and can't be redirected directly, 21743# and sets the high bit in the cache file unless we assign to the vars. 21744( 21745 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21746 eval ac_val=\$$ac_var 21747 case $ac_val in #( 21748 *${as_nl}*) 21749 case $ac_var in #( 21750 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21751$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21752 esac 21753 case $ac_var in #( 21754 _ | IFS | as_nl) ;; #( 21755 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21756 *) { eval $ac_var=; unset $ac_var;} ;; 21757 esac ;; 21758 esac 21759 done 21760 21761 (set) 2>&1 | 21762 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21763 *${as_nl}ac_space=\ *) 21764 # `set' does not quote correctly, so add quotes: double-quote 21765 # substitution turns \\\\ into \\, and sed turns \\ into \. 21766 sed -n \ 21767 "s/'/'\\\\''/g; 21768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21769 ;; #( 21770 *) 21771 # `set' quotes correctly as required by POSIX, so do not add quotes. 21772 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21773 ;; 21774 esac | 21775 sort 21776) | 21777 sed ' 21778 /^ac_cv_env_/b end 21779 t clear 21780 :clear 21781 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21782 t end 21783 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21784 :end' >>confcache 21785if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21786 if test -w "$cache_file"; then 21787 if test "x$cache_file" != "x/dev/null"; then 21788 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21789$as_echo "$as_me: updating cache $cache_file" >&6;} 21790 if test ! -f "$cache_file" || test -h "$cache_file"; then 21791 cat confcache >"$cache_file" 21792 else 21793 case $cache_file in #( 21794 */* | ?:*) 21795 mv -f confcache "$cache_file"$$ && 21796 mv -f "$cache_file"$$ "$cache_file" ;; #( 21797 *) 21798 mv -f confcache "$cache_file" ;; 21799 esac 21800 fi 21801 fi 21802 else 21803 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21804$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21805 fi 21806fi 21807rm -f confcache 21808 21809test "x$prefix" = xNONE && prefix=$ac_default_prefix 21810# Let make expand exec_prefix. 21811test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21812 21813DEFS=-DHAVE_CONFIG_H 21814 21815ac_libobjs= 21816ac_ltlibobjs= 21817U= 21818for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 21819 # 1. Remove the extension, and $U if already installed. 21820 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21821 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21822 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21823 # will be set to the directory where LIBOBJS objects are built. 21824 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21825 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21826done 21827LIB@&t@OBJS=$ac_libobjs 21828 21829LTLIBOBJS=$ac_ltlibobjs 21830 21831 21832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21833$as_echo_n "checking that generated files are newer than configure... " >&6; } 21834 if test -n "$am_sleep_pid"; then 21835 # Hide warnings about reused PIDs. 21836 wait $am_sleep_pid 2>/dev/null 21837 fi 21838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 21839$as_echo "done" >&6; } 21840 if test -n "$EXEEXT"; then 21841 am__EXEEXT_TRUE= 21842 am__EXEEXT_FALSE='#' 21843else 21844 am__EXEEXT_TRUE='#' 21845 am__EXEEXT_FALSE= 21846fi 21847 21848if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21849 as_fn_error $? "conditional \"AMDEP\" was never defined. 21850Usually this means the macro was only invoked conditionally." "$LINENO" 5 21851fi 21852if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21853 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21854Usually this means the macro was only invoked conditionally." "$LINENO" 5 21855fi 21856if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21857 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 21858Usually this means the macro was only invoked conditionally." "$LINENO" 5 21859fi 21860 21861if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then 21862 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined. 21863Usually this means the macro was only invoked conditionally." "$LINENO" 5 21864fi 21865if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then 21866 as_fn_error $? "conditional \"LINUX\" was never defined. 21867Usually this means the macro was only invoked conditionally." "$LINENO" 5 21868fi 21869if test -z "${MAC_TRUE}" && test -z "${MAC_FALSE}"; then 21870 as_fn_error $? "conditional \"MAC\" was never defined. 21871Usually this means the macro was only invoked conditionally." "$LINENO" 5 21872fi 21873if test -z "${HAVE_WINDOWS_TRUE}" && test -z "${HAVE_WINDOWS_FALSE}"; then 21874 as_fn_error $? "conditional \"HAVE_WINDOWS\" was never defined. 21875Usually this means the macro was only invoked conditionally." "$LINENO" 5 21876fi 21877if test -z "${HAVE_ALSA_TRUE}" && test -z "${HAVE_ALSA_FALSE}"; then 21878 as_fn_error $? "conditional \"HAVE_ALSA\" was never defined. 21879Usually this means the macro was only invoked conditionally." "$LINENO" 5 21880fi 21881if test -z "${HAVE_JACK_TRUE}" && test -z "${HAVE_JACK_FALSE}"; then 21882 as_fn_error $? "conditional \"HAVE_JACK\" was never defined. 21883Usually this means the macro was only invoked conditionally." "$LINENO" 5 21884fi 21885if test -z "${HAVE_JACK_MIDI_TRUE}" && test -z "${HAVE_JACK_MIDI_FALSE}"; then 21886 as_fn_error $? "conditional \"HAVE_JACK_MIDI\" was never defined. 21887Usually this means the macro was only invoked conditionally." "$LINENO" 5 21888fi 21889if test -z "${HAVE_ARTS_TRUE}" && test -z "${HAVE_ARTS_FALSE}"; then 21890 as_fn_error $? "conditional \"HAVE_ARTS\" was never defined. 21891Usually this means the macro was only invoked conditionally." "$LINENO" 5 21892fi 21893if test -z "${HAVE_ASIO_TRUE}" && test -z "${HAVE_ASIO_FALSE}"; then 21894 as_fn_error $? "conditional \"HAVE_ASIO\" was never defined. 21895Usually this means the macro was only invoked conditionally." "$LINENO" 5 21896fi 21897if test -z "${HAVE_MIDISHARE_TRUE}" && test -z "${HAVE_MIDISHARE_FALSE}"; then 21898 as_fn_error $? "conditional \"HAVE_MIDISHARE\" was never defined. 21899Usually this means the macro was only invoked conditionally." "$LINENO" 5 21900fi 21901if test -z "${HAVE_COREMIDI_TRUE}" && test -z "${HAVE_COREMIDI_FALSE}"; then 21902 as_fn_error $? "conditional \"HAVE_COREMIDI\" was never defined. 21903Usually this means the macro was only invoked conditionally." "$LINENO" 5 21904fi 21905if test -z "${HAVE_COREAUDIO_TRUE}" && test -z "${HAVE_COREAUDIO_FALSE}"; then 21906 as_fn_error $? "conditional \"HAVE_COREAUDIO\" was never defined. 21907Usually this means the macro was only invoked conditionally." "$LINENO" 5 21908fi 21909if test -z "${HAVE_MME_MIDI_TRUE}" && test -z "${HAVE_MME_MIDI_FALSE}"; then 21910 as_fn_error $? "conditional \"HAVE_MME_MIDI\" was never defined. 21911Usually this means the macro was only invoked conditionally." "$LINENO" 5 21912fi 21913if test -z "${HAVE_DSSI_TRUE}" && test -z "${HAVE_DSSI_FALSE}"; then 21914 as_fn_error $? "conditional \"HAVE_DSSI\" was never defined. 21915Usually this means the macro was only invoked conditionally." "$LINENO" 5 21916fi 21917if test -z "${HAVE_LV2_TRUE}" && test -z "${HAVE_LV2_FALSE}"; then 21918 as_fn_error $? "conditional \"HAVE_LV2\" was never defined. 21919Usually this means the macro was only invoked conditionally." "$LINENO" 5 21920fi 21921if test -z "${HAVE_VST_TRUE}" && test -z "${HAVE_VST_FALSE}"; then 21922 as_fn_error $? "conditional \"HAVE_VST\" was never defined. 21923Usually this means the macro was only invoked conditionally." "$LINENO" 5 21924fi 21925if test -z "${HAVE_AU_TRUE}" && test -z "${HAVE_AU_FALSE}"; then 21926 as_fn_error $? "conditional \"HAVE_AU\" was never defined. 21927Usually this means the macro was only invoked conditionally." "$LINENO" 5 21928fi 21929if test -z "${HAVE_AUFLAGS_TRUE}" && test -z "${HAVE_AUFLAGS_FALSE}"; then 21930 as_fn_error $? "conditional \"HAVE_AUFLAGS\" was never defined. 21931Usually this means the macro was only invoked conditionally." "$LINENO" 5 21932fi 21933if test -z "${HAVE_SF2_TRUE}" && test -z "${HAVE_SF2_FALSE}"; then 21934 as_fn_error $? "conditional \"HAVE_SF2\" was never defined. 21935Usually this means the macro was only invoked conditionally." "$LINENO" 5 21936fi 21937if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then 21938 as_fn_error $? "conditional \"HAVE_SQLITE3\" was never defined. 21939Usually this means the macro was only invoked conditionally." "$LINENO" 5 21940fi 21941 21942: "${CONFIG_STATUS=./config.status}" 21943ac_write_fail=0 21944ac_clean_files_save=$ac_clean_files 21945ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21946{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21947$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21948as_write_fail=0 21949cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21950#! $SHELL 21951# Generated by $as_me. 21952# Run this file to recreate the current configuration. 21953# Compiler output produced by configure, useful for debugging 21954# configure, is in config.log if it exists. 21955 21956debug=false 21957ac_cs_recheck=false 21958ac_cs_silent=false 21959 21960SHELL=\${CONFIG_SHELL-$SHELL} 21961export SHELL 21962_ASEOF 21963cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21964## -------------------- ## 21965## M4sh Initialization. ## 21966## -------------------- ## 21967 21968# Be more Bourne compatible 21969DUALCASE=1; export DUALCASE # for MKS sh 21970if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21971 emulate sh 21972 NULLCMD=: 21973 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21974 # is contrary to our usage. Disable this feature. 21975 alias -g '${1+"$@"}'='"$@"' 21976 setopt NO_GLOB_SUBST 21977else 21978 case `(set -o) 2>/dev/null` in @%:@( 21979 *posix*) : 21980 set -o posix ;; @%:@( 21981 *) : 21982 ;; 21983esac 21984fi 21985 21986 21987as_nl=' 21988' 21989export as_nl 21990# Printing a long string crashes Solaris 7 /usr/bin/printf. 21991as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21992as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21993as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21994# Prefer a ksh shell builtin over an external printf program on Solaris, 21995# but without wasting forks for bash or zsh. 21996if test -z "$BASH_VERSION$ZSH_VERSION" \ 21997 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 21998 as_echo='print -r --' 21999 as_echo_n='print -rn --' 22000elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22001 as_echo='printf %s\n' 22002 as_echo_n='printf %s' 22003else 22004 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22005 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22006 as_echo_n='/usr/ucb/echo -n' 22007 else 22008 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22009 as_echo_n_body='eval 22010 arg=$1; 22011 case $arg in @%:@( 22012 *"$as_nl"*) 22013 expr "X$arg" : "X\\(.*\\)$as_nl"; 22014 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22015 esac; 22016 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22017 ' 22018 export as_echo_n_body 22019 as_echo_n='sh -c $as_echo_n_body as_echo' 22020 fi 22021 export as_echo_body 22022 as_echo='sh -c $as_echo_body as_echo' 22023fi 22024 22025# The user is always right. 22026if test "${PATH_SEPARATOR+set}" != set; then 22027 PATH_SEPARATOR=: 22028 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22029 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22030 PATH_SEPARATOR=';' 22031 } 22032fi 22033 22034 22035# IFS 22036# We need space, tab and new line, in precisely that order. Quoting is 22037# there to prevent editors from complaining about space-tab. 22038# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22039# splitting by setting IFS to empty value.) 22040IFS=" "" $as_nl" 22041 22042# Find who we are. Look in the path if we contain no directory separator. 22043as_myself= 22044case $0 in @%:@(( 22045 *[\\/]* ) as_myself=$0 ;; 22046 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22047for as_dir in $PATH 22048do 22049 IFS=$as_save_IFS 22050 test -z "$as_dir" && as_dir=. 22051 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22052 done 22053IFS=$as_save_IFS 22054 22055 ;; 22056esac 22057# We did not find ourselves, most probably we were run as `sh COMMAND' 22058# in which case we are not to be found in the path. 22059if test "x$as_myself" = x; then 22060 as_myself=$0 22061fi 22062if test ! -f "$as_myself"; then 22063 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22064 exit 1 22065fi 22066 22067# Unset variables that we do not need and which cause bugs (e.g. in 22068# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 22069# suppresses any "Segmentation fault" message there. '((' could 22070# trigger a bug in pdksh 5.2.14. 22071for as_var in BASH_ENV ENV MAIL MAILPATH 22072do eval test x\${$as_var+set} = xset \ 22073 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22074done 22075PS1='$ ' 22076PS2='> ' 22077PS4='+ ' 22078 22079# NLS nuisances. 22080LC_ALL=C 22081export LC_ALL 22082LANGUAGE=C 22083export LANGUAGE 22084 22085# CDPATH. 22086(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22087 22088 22089@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] 22090@%:@ ---------------------------------------- 22091@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22092@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22093@%:@ script with STATUS, using 1 if that was 0. 22094as_fn_error () 22095{ 22096 as_status=$1; test $as_status -eq 0 && as_status=1 22097 if test "$4"; then 22098 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22099 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22100 fi 22101 $as_echo "$as_me: error: $2" >&2 22102 as_fn_exit $as_status 22103} @%:@ as_fn_error 22104 22105 22106@%:@ as_fn_set_status STATUS 22107@%:@ ----------------------- 22108@%:@ Set @S|@? to STATUS, without forking. 22109as_fn_set_status () 22110{ 22111 return $1 22112} @%:@ as_fn_set_status 22113 22114@%:@ as_fn_exit STATUS 22115@%:@ ----------------- 22116@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22117as_fn_exit () 22118{ 22119 set +e 22120 as_fn_set_status $1 22121 exit $1 22122} @%:@ as_fn_exit 22123 22124@%:@ as_fn_unset VAR 22125@%:@ --------------- 22126@%:@ Portably unset VAR. 22127as_fn_unset () 22128{ 22129 { eval $1=; unset $1;} 22130} 22131as_unset=as_fn_unset 22132@%:@ as_fn_append VAR VALUE 22133@%:@ ---------------------- 22134@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take 22135@%:@ advantage of any shell optimizations that allow amortized linear growth over 22136@%:@ repeated appends, instead of the typical quadratic growth present in naive 22137@%:@ implementations. 22138if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 22139 eval 'as_fn_append () 22140 { 22141 eval $1+=\$2 22142 }' 22143else 22144 as_fn_append () 22145 { 22146 eval $1=\$$1\$2 22147 } 22148fi # as_fn_append 22149 22150@%:@ as_fn_arith ARG... 22151@%:@ ------------------ 22152@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the 22153@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments 22154@%:@ must be portable across @S|@(()) and expr. 22155if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 22156 eval 'as_fn_arith () 22157 { 22158 as_val=$(( $* )) 22159 }' 22160else 22161 as_fn_arith () 22162 { 22163 as_val=`expr "$@" || test $? -eq 1` 22164 } 22165fi # as_fn_arith 22166 22167 22168if expr a : '\(a\)' >/dev/null 2>&1 && 22169 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22170 as_expr=expr 22171else 22172 as_expr=false 22173fi 22174 22175if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22176 as_basename=basename 22177else 22178 as_basename=false 22179fi 22180 22181if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22182 as_dirname=dirname 22183else 22184 as_dirname=false 22185fi 22186 22187as_me=`$as_basename -- "$0" || 22188$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22189 X"$0" : 'X\(//\)$' \| \ 22190 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22191$as_echo X/"$0" | 22192 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22193 s//\1/ 22194 q 22195 } 22196 /^X\/\(\/\/\)$/{ 22197 s//\1/ 22198 q 22199 } 22200 /^X\/\(\/\).*/{ 22201 s//\1/ 22202 q 22203 } 22204 s/.*/./; q'` 22205 22206# Avoid depending upon Character Ranges. 22207as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22208as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22209as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22210as_cr_digits='0123456789' 22211as_cr_alnum=$as_cr_Letters$as_cr_digits 22212 22213ECHO_C= ECHO_N= ECHO_T= 22214case `echo -n x` in @%:@((((( 22215-n*) 22216 case `echo 'xy\c'` in 22217 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22218 xy) ECHO_C='\c';; 22219 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22220 ECHO_T=' ';; 22221 esac;; 22222*) 22223 ECHO_N='-n';; 22224esac 22225 22226rm -f conf$$ conf$$.exe conf$$.file 22227if test -d conf$$.dir; then 22228 rm -f conf$$.dir/conf$$.file 22229else 22230 rm -f conf$$.dir 22231 mkdir conf$$.dir 2>/dev/null 22232fi 22233if (echo >conf$$.file) 2>/dev/null; then 22234 if ln -s conf$$.file conf$$ 2>/dev/null; then 22235 as_ln_s='ln -s' 22236 # ... but there are two gotchas: 22237 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22238 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22239 # In both cases, we have to default to `cp -pR'. 22240 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22241 as_ln_s='cp -pR' 22242 elif ln conf$$.file conf$$ 2>/dev/null; then 22243 as_ln_s=ln 22244 else 22245 as_ln_s='cp -pR' 22246 fi 22247else 22248 as_ln_s='cp -pR' 22249fi 22250rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22251rmdir conf$$.dir 2>/dev/null 22252 22253 22254@%:@ as_fn_mkdir_p 22255@%:@ ------------- 22256@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. 22257as_fn_mkdir_p () 22258{ 22259 22260 case $as_dir in #( 22261 -*) as_dir=./$as_dir;; 22262 esac 22263 test -d "$as_dir" || eval $as_mkdir_p || { 22264 as_dirs= 22265 while :; do 22266 case $as_dir in #( 22267 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22268 *) as_qdir=$as_dir;; 22269 esac 22270 as_dirs="'$as_qdir' $as_dirs" 22271 as_dir=`$as_dirname -- "$as_dir" || 22272$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22273 X"$as_dir" : 'X\(//\)[^/]' \| \ 22274 X"$as_dir" : 'X\(//\)$' \| \ 22275 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22276$as_echo X"$as_dir" | 22277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22278 s//\1/ 22279 q 22280 } 22281 /^X\(\/\/\)[^/].*/{ 22282 s//\1/ 22283 q 22284 } 22285 /^X\(\/\/\)$/{ 22286 s//\1/ 22287 q 22288 } 22289 /^X\(\/\).*/{ 22290 s//\1/ 22291 q 22292 } 22293 s/.*/./; q'` 22294 test -d "$as_dir" && break 22295 done 22296 test -z "$as_dirs" || eval "mkdir $as_dirs" 22297 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22298 22299 22300} @%:@ as_fn_mkdir_p 22301if mkdir -p . 2>/dev/null; then 22302 as_mkdir_p='mkdir -p "$as_dir"' 22303else 22304 test -d ./-p && rmdir ./-p 22305 as_mkdir_p=false 22306fi 22307 22308 22309@%:@ as_fn_executable_p FILE 22310@%:@ ----------------------- 22311@%:@ Test if FILE is an executable regular file. 22312as_fn_executable_p () 22313{ 22314 test -f "$1" && test -x "$1" 22315} @%:@ as_fn_executable_p 22316as_test_x='test -x' 22317as_executable_p=as_fn_executable_p 22318 22319# Sed expression to map a string onto a valid CPP name. 22320as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22321 22322# Sed expression to map a string onto a valid variable name. 22323as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22324 22325 22326exec 6>&1 22327## ----------------------------------- ## 22328## Main body of $CONFIG_STATUS script. ## 22329## ----------------------------------- ## 22330_ASEOF 22331test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22332 22333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22334# Save the log message, to keep $0 and so on meaningful, and to 22335# report actual input values of CONFIG_FILES etc. instead of their 22336# values after options handling. 22337ac_log=" 22338This file was extended by linuxsampler $as_me 2.2.0, which was 22339generated by GNU Autoconf 2.69. Invocation command line was 22340 22341 CONFIG_FILES = $CONFIG_FILES 22342 CONFIG_HEADERS = $CONFIG_HEADERS 22343 CONFIG_LINKS = $CONFIG_LINKS 22344 CONFIG_COMMANDS = $CONFIG_COMMANDS 22345 $ $0 $@ 22346 22347on `(hostname || uname -n) 2>/dev/null | sed 1q` 22348" 22349 22350_ACEOF 22351 22352case $ac_config_files in *" 22353"*) set x $ac_config_files; shift; ac_config_files=$*;; 22354esac 22355 22356case $ac_config_headers in *" 22357"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22358esac 22359 22360 22361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22362# Files that config.status was made for. 22363config_files="$ac_config_files" 22364config_headers="$ac_config_headers" 22365config_commands="$ac_config_commands" 22366 22367_ACEOF 22368 22369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22370ac_cs_usage="\ 22371\`$as_me' instantiates files and other configuration actions 22372from templates according to the current configuration. Unless the files 22373and actions are specified as TAGs, all are instantiated by default. 22374 22375Usage: $0 [OPTION]... [TAG]... 22376 22377 -h, --help print this help, then exit 22378 -V, --version print version number and configuration settings, then exit 22379 --config print configuration, then exit 22380 -q, --quiet, --silent 22381 do not print progress messages 22382 -d, --debug don't remove temporary files 22383 --recheck update $as_me by reconfiguring in the same conditions 22384 --file=FILE[:TEMPLATE] 22385 instantiate the configuration file FILE 22386 --header=FILE[:TEMPLATE] 22387 instantiate the configuration header FILE 22388 22389Configuration files: 22390$config_files 22391 22392Configuration headers: 22393$config_headers 22394 22395Configuration commands: 22396$config_commands 22397 22398Report bugs to the package provider." 22399 22400_ACEOF 22401cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22402ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 22403ac_cs_version="\\ 22404linuxsampler config.status 2.2.0 22405configured by $0, generated by GNU Autoconf 2.69, 22406 with options \\"\$ac_cs_config\\" 22407 22408Copyright (C) 2012 Free Software Foundation, Inc. 22409This config.status script is free software; the Free Software Foundation 22410gives unlimited permission to copy, distribute and modify it." 22411 22412ac_pwd='$ac_pwd' 22413srcdir='$srcdir' 22414INSTALL='$INSTALL' 22415MKDIR_P='$MKDIR_P' 22416AWK='$AWK' 22417test -n "\$AWK" || AWK=awk 22418_ACEOF 22419 22420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22421# The default lists apply if the user does not specify any file. 22422ac_need_defaults=: 22423while test $# != 0 22424do 22425 case $1 in 22426 --*=?*) 22427 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22428 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22429 ac_shift=: 22430 ;; 22431 --*=) 22432 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22433 ac_optarg= 22434 ac_shift=: 22435 ;; 22436 *) 22437 ac_option=$1 22438 ac_optarg=$2 22439 ac_shift=shift 22440 ;; 22441 esac 22442 22443 case $ac_option in 22444 # Handling of the options. 22445 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22446 ac_cs_recheck=: ;; 22447 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22448 $as_echo "$ac_cs_version"; exit ;; 22449 --config | --confi | --conf | --con | --co | --c ) 22450 $as_echo "$ac_cs_config"; exit ;; 22451 --debug | --debu | --deb | --de | --d | -d ) 22452 debug=: ;; 22453 --file | --fil | --fi | --f ) 22454 $ac_shift 22455 case $ac_optarg in 22456 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22457 '') as_fn_error $? "missing file argument" ;; 22458 esac 22459 as_fn_append CONFIG_FILES " '$ac_optarg'" 22460 ac_need_defaults=false;; 22461 --header | --heade | --head | --hea ) 22462 $ac_shift 22463 case $ac_optarg in 22464 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22465 esac 22466 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22467 ac_need_defaults=false;; 22468 --he | --h) 22469 # Conflict between --help and --header 22470 as_fn_error $? "ambiguous option: \`$1' 22471Try \`$0 --help' for more information.";; 22472 --help | --hel | -h ) 22473 $as_echo "$ac_cs_usage"; exit ;; 22474 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22475 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22476 ac_cs_silent=: ;; 22477 22478 # This is an error. 22479 -*) as_fn_error $? "unrecognized option: \`$1' 22480Try \`$0 --help' for more information." ;; 22481 22482 *) as_fn_append ac_config_targets " $1" 22483 ac_need_defaults=false ;; 22484 22485 esac 22486 shift 22487done 22488 22489ac_configure_extra_args= 22490 22491if $ac_cs_silent; then 22492 exec 6>/dev/null 22493 ac_configure_extra_args="$ac_configure_extra_args --silent" 22494fi 22495 22496_ACEOF 22497cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22498if \$ac_cs_recheck; then 22499 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22500 shift 22501 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22502 CONFIG_SHELL='$SHELL' 22503 export CONFIG_SHELL 22504 exec "\$@" 22505fi 22506 22507_ACEOF 22508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22509exec 5>>config.log 22510{ 22511 echo 22512 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 22513@%:@@%:@ Running $as_me. @%:@@%:@ 22514_ASBOX 22515 $as_echo "$ac_log" 22516} >&5 22517 22518_ACEOF 22519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22520# 22521# INIT-COMMANDS 22522# 22523AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 22524 22525 22526# The HP-UX ksh and POSIX shell print the target directory to stdout 22527# if CDPATH is set. 22528(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22529 22530sed_quote_subst='$sed_quote_subst' 22531double_quote_subst='$double_quote_subst' 22532delay_variable_subst='$delay_variable_subst' 22533AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 22534DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22535OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 22536macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22537macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22538enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22539enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22540pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22541enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22542shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 22543SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22544ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 22545PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 22546host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 22547host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 22548host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 22549build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 22550build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 22551build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 22552SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 22553Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 22554GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22555EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22556FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22557LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22558NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22559LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22560max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22561ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22562exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22563lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22564lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22565lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22566lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22567lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22568reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22569reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22570deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22571file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22572file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22573want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22574sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22575AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22576AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22577archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22578STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22579RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22580old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22581old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22582old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22583lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22584CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22585CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22586compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22587GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22588lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22589lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22590lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 22591lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22592lt_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"`' 22593lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 22594nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22595lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22596lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 22597objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22598MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22599lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22600lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22601lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22602lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22603lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22604need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22605MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22606DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22607NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22608LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22609OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22610OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22611libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22612shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22613extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22614archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22615enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22616export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22617whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22618compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22619old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22620old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22621archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22622archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22623module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22624module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22625with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22626allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22627no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22628hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22629hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22630hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22631hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22632hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22633hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22634hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22635inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22636link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22637always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22638export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22639exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22640include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22641prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22642postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22643file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22644variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22645need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22646need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22647version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22648runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22649shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22650shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22651libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22652library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22653soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22654install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22655postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22656postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22657finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22658finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22659hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22660sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22661configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22662configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22663hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22664enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22665enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22666enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22667old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22668striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22669compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 22670predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 22671postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 22672predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 22673postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 22674compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 22675LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 22676reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 22677reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22678old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22679compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 22680GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 22681lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 22682lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 22683lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 22684lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 22685lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 22686archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 22687enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 22688export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 22689whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 22690compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 22691old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22692old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22693archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22694archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22695module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22696module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22697with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 22698allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 22699no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 22700hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 22701hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 22702hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 22703hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 22704hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 22705hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 22706hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 22707inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 22708link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 22709always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 22710export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22711exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 22712include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 22713prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22714postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22715file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 22716hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 22717compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 22718predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 22719postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 22720predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 22721postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 22722compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 22723 22724LTCC='$LTCC' 22725LTCFLAGS='$LTCFLAGS' 22726compiler='$compiler_DEFAULT' 22727 22728# A function that is used when there is no print builtin or printf. 22729func_fallback_echo () 22730{ 22731 eval 'cat <<_LTECHO_EOF 22732\$1 22733_LTECHO_EOF' 22734} 22735 22736# Quote evaled strings. 22737for var in AS \ 22738DLLTOOL \ 22739OBJDUMP \ 22740SHELL \ 22741ECHO \ 22742PATH_SEPARATOR \ 22743SED \ 22744GREP \ 22745EGREP \ 22746FGREP \ 22747LD \ 22748NM \ 22749LN_S \ 22750lt_SP2NL \ 22751lt_NL2SP \ 22752reload_flag \ 22753deplibs_check_method \ 22754file_magic_cmd \ 22755file_magic_glob \ 22756want_nocaseglob \ 22757sharedlib_from_linklib_cmd \ 22758AR \ 22759AR_FLAGS \ 22760archiver_list_spec \ 22761STRIP \ 22762RANLIB \ 22763CC \ 22764CFLAGS \ 22765compiler \ 22766lt_cv_sys_global_symbol_pipe \ 22767lt_cv_sys_global_symbol_to_cdecl \ 22768lt_cv_sys_global_symbol_to_import \ 22769lt_cv_sys_global_symbol_to_c_name_address \ 22770lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22771lt_cv_nm_interface \ 22772nm_file_list_spec \ 22773lt_cv_truncate_bin \ 22774lt_prog_compiler_no_builtin_flag \ 22775lt_prog_compiler_pic \ 22776lt_prog_compiler_wl \ 22777lt_prog_compiler_static \ 22778lt_cv_prog_compiler_c_o \ 22779need_locks \ 22780MANIFEST_TOOL \ 22781DSYMUTIL \ 22782NMEDIT \ 22783LIPO \ 22784OTOOL \ 22785OTOOL64 \ 22786shrext_cmds \ 22787export_dynamic_flag_spec \ 22788whole_archive_flag_spec \ 22789compiler_needs_object \ 22790with_gnu_ld \ 22791allow_undefined_flag \ 22792no_undefined_flag \ 22793hardcode_libdir_flag_spec \ 22794hardcode_libdir_separator \ 22795exclude_expsyms \ 22796include_expsyms \ 22797file_list_spec \ 22798variables_saved_for_relink \ 22799libname_spec \ 22800library_names_spec \ 22801soname_spec \ 22802install_override_mode \ 22803finish_eval \ 22804old_striplib \ 22805striplib \ 22806compiler_lib_search_dirs \ 22807predep_objects \ 22808postdep_objects \ 22809predeps \ 22810postdeps \ 22811compiler_lib_search_path \ 22812LD_CXX \ 22813reload_flag_CXX \ 22814compiler_CXX \ 22815lt_prog_compiler_no_builtin_flag_CXX \ 22816lt_prog_compiler_pic_CXX \ 22817lt_prog_compiler_wl_CXX \ 22818lt_prog_compiler_static_CXX \ 22819lt_cv_prog_compiler_c_o_CXX \ 22820export_dynamic_flag_spec_CXX \ 22821whole_archive_flag_spec_CXX \ 22822compiler_needs_object_CXX \ 22823with_gnu_ld_CXX \ 22824allow_undefined_flag_CXX \ 22825no_undefined_flag_CXX \ 22826hardcode_libdir_flag_spec_CXX \ 22827hardcode_libdir_separator_CXX \ 22828exclude_expsyms_CXX \ 22829include_expsyms_CXX \ 22830file_list_spec_CXX \ 22831compiler_lib_search_dirs_CXX \ 22832predep_objects_CXX \ 22833postdep_objects_CXX \ 22834predeps_CXX \ 22835postdeps_CXX \ 22836compiler_lib_search_path_CXX; do 22837 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22838 *[\\\\\\\`\\"\\\$]*) 22839 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22840 ;; 22841 *) 22842 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22843 ;; 22844 esac 22845done 22846 22847# Double-quote double-evaled strings. 22848for var in reload_cmds \ 22849old_postinstall_cmds \ 22850old_postuninstall_cmds \ 22851old_archive_cmds \ 22852extract_expsyms_cmds \ 22853old_archive_from_new_cmds \ 22854old_archive_from_expsyms_cmds \ 22855archive_cmds \ 22856archive_expsym_cmds \ 22857module_cmds \ 22858module_expsym_cmds \ 22859export_symbols_cmds \ 22860prelink_cmds \ 22861postlink_cmds \ 22862postinstall_cmds \ 22863postuninstall_cmds \ 22864finish_cmds \ 22865sys_lib_search_path_spec \ 22866configure_time_dlsearch_path \ 22867configure_time_lt_sys_library_path \ 22868reload_cmds_CXX \ 22869old_archive_cmds_CXX \ 22870old_archive_from_new_cmds_CXX \ 22871old_archive_from_expsyms_cmds_CXX \ 22872archive_cmds_CXX \ 22873archive_expsym_cmds_CXX \ 22874module_cmds_CXX \ 22875module_expsym_cmds_CXX \ 22876export_symbols_cmds_CXX \ 22877prelink_cmds_CXX \ 22878postlink_cmds_CXX; do 22879 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22880 *[\\\\\\\`\\"\\\$]*) 22881 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22882 ;; 22883 *) 22884 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22885 ;; 22886 esac 22887done 22888 22889ac_aux_dir='$ac_aux_dir' 22890 22891# See if we are running on zsh, and set the options that allow our 22892# commands through without removal of \ escapes INIT. 22893if test -n "\${ZSH_VERSION+set}"; then 22894 setopt NO_GLOB_SUBST 22895fi 22896 22897 22898 PACKAGE='$PACKAGE' 22899 VERSION='$VERSION' 22900 RM='$RM' 22901 ofile='$ofile' 22902 22903 22904 22905 22906 22907 22908_ACEOF 22909 22910cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22911 22912# Handling of arguments. 22913for ac_config_target in $ac_config_targets 22914do 22915 case $ac_config_target in 22916 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22917 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22918 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22919 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22920 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22921 "man/linuxsampler.1") CONFIG_FILES="$CONFIG_FILES man/linuxsampler.1" ;; 22922 "man/lscp.1") CONFIG_FILES="$CONFIG_FILES man/lscp.1" ;; 22923 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22924 "src/db/Makefile") CONFIG_FILES="$CONFIG_FILES src/db/Makefile" ;; 22925 "src/network/Makefile") CONFIG_FILES="$CONFIG_FILES src/network/Makefile" ;; 22926 "src/engines/Makefile") CONFIG_FILES="$CONFIG_FILES src/engines/Makefile" ;; 22927 "src/engines/gig/Makefile") CONFIG_FILES="$CONFIG_FILES src/engines/gig/Makefile" ;; 22928 "src/engines/sf2/Makefile") CONFIG_FILES="$CONFIG_FILES src/engines/sf2/Makefile" ;; 22929 "src/engines/sfz/Makefile") CONFIG_FILES="$CONFIG_FILES src/engines/sfz/Makefile" ;; 22930 "src/engines/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/engines/common/Makefile" ;; 22931 "src/effects/Makefile") CONFIG_FILES="$CONFIG_FILES src/effects/Makefile" ;; 22932 "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;; 22933 "src/testcases/Makefile") CONFIG_FILES="$CONFIG_FILES src/testcases/Makefile" ;; 22934 "src/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES src/drivers/Makefile" ;; 22935 "src/drivers/audio/Makefile") CONFIG_FILES="$CONFIG_FILES src/drivers/audio/Makefile" ;; 22936 "src/drivers/midi/Makefile") CONFIG_FILES="$CONFIG_FILES src/drivers/midi/Makefile" ;; 22937 "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;; 22938 "src/hostplugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/hostplugins/Makefile" ;; 22939 "src/hostplugins/dssi/Makefile") CONFIG_FILES="$CONFIG_FILES src/hostplugins/dssi/Makefile" ;; 22940 "src/hostplugins/lv2/Makefile") CONFIG_FILES="$CONFIG_FILES src/hostplugins/lv2/Makefile" ;; 22941 "src/hostplugins/lv2/manifest.ttl") CONFIG_FILES="$CONFIG_FILES src/hostplugins/lv2/manifest.ttl" ;; 22942 "src/hostplugins/vst/Makefile") CONFIG_FILES="$CONFIG_FILES src/hostplugins/vst/Makefile" ;; 22943 "src/hostplugins/au/Makefile") CONFIG_FILES="$CONFIG_FILES src/hostplugins/au/Makefile" ;; 22944 "src/scriptvm/Makefile") CONFIG_FILES="$CONFIG_FILES src/scriptvm/Makefile" ;; 22945 "src/scriptvm/editor/Makefile") CONFIG_FILES="$CONFIG_FILES src/scriptvm/editor/Makefile" ;; 22946 "src/shell/Makefile") CONFIG_FILES="$CONFIG_FILES src/shell/Makefile" ;; 22947 "linuxsampler.spec") CONFIG_FILES="$CONFIG_FILES linuxsampler.spec" ;; 22948 "debian/Makefile") CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;; 22949 "Artwork/Makefile") CONFIG_FILES="$CONFIG_FILES Artwork/Makefile" ;; 22950 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 22951 "osx/Makefile") CONFIG_FILES="$CONFIG_FILES osx/Makefile" ;; 22952 "osx/linuxsampler.xcodeproj/Makefile") CONFIG_FILES="$CONFIG_FILES osx/linuxsampler.xcodeproj/Makefile" ;; 22953 "Documentation/Makefile") CONFIG_FILES="$CONFIG_FILES Documentation/Makefile" ;; 22954 "Documentation/Engines/Makefile") CONFIG_FILES="$CONFIG_FILES Documentation/Engines/Makefile" ;; 22955 "Documentation/Engines/gig/Makefile") CONFIG_FILES="$CONFIG_FILES Documentation/Engines/gig/Makefile" ;; 22956 "linuxsampler.pc") CONFIG_FILES="$CONFIG_FILES linuxsampler.pc" ;; 22957 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;; 22958 22959 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22960 esac 22961done 22962 22963 22964# If the user did not use the arguments to specify the items to instantiate, 22965# then the envvar interface is used. Set only those that are not. 22966# We use the long form for the default assignment because of an extremely 22967# bizarre bug on SunOS 4.1.3. 22968if $ac_need_defaults; then 22969 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22970 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22971 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22972fi 22973 22974# Have a temporary directory for convenience. Make it in the build tree 22975# simply because there is no reason against having it here, and in addition, 22976# creating and moving files from /tmp can sometimes cause problems. 22977# Hook for its removal unless debugging. 22978# Note that there is a small window in which the directory will not be cleaned: 22979# after its creation but before its name has been assigned to `$tmp'. 22980$debug || 22981{ 22982 tmp= ac_tmp= 22983 trap 'exit_status=$? 22984 : "${ac_tmp:=$tmp}" 22985 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22986' 0 22987 trap 'as_fn_exit 1' 1 2 13 15 22988} 22989# Create a (secure) tmp directory for tmp files. 22990 22991{ 22992 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22993 test -d "$tmp" 22994} || 22995{ 22996 tmp=./conf$$-$RANDOM 22997 (umask 077 && mkdir "$tmp") 22998} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22999ac_tmp=$tmp 23000 23001# Set up the scripts for CONFIG_FILES section. 23002# No need to generate them if there are no CONFIG_FILES. 23003# This happens for instance with `./config.status config.h'. 23004if test -n "$CONFIG_FILES"; then 23005 23006 23007ac_cr=`echo X | tr X '\015'` 23008# On cygwin, bash can eat \r inside `` if the user requested igncr. 23009# But we know of no other shell where ac_cr would be empty at this 23010# point, so we can use a bashism as a fallback. 23011if test "x$ac_cr" = x; then 23012 eval ac_cr=\$\'\\r\' 23013fi 23014ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23015if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23016 ac_cs_awk_cr='\\r' 23017else 23018 ac_cs_awk_cr=$ac_cr 23019fi 23020 23021echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 23022_ACEOF 23023 23024 23025{ 23026 echo "cat >conf$$subs.awk <<_ACEOF" && 23027 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23028 echo "_ACEOF" 23029} >conf$$subs.sh || 23030 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23031ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 23032ac_delim='%!_!# ' 23033for ac_last_try in false false false false false :; do 23034 . ./conf$$subs.sh || 23035 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23036 23037 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23038 if test $ac_delim_n = $ac_delim_num; then 23039 break 23040 elif $ac_last_try; then 23041 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23042 else 23043 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23044 fi 23045done 23046rm -f conf$$subs.sh 23047 23048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23049cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 23050_ACEOF 23051sed -n ' 23052h 23053s/^/S["/; s/!.*/"]=/ 23054p 23055g 23056s/^[^!]*!// 23057:repl 23058t repl 23059s/'"$ac_delim"'$// 23060t delim 23061:nl 23062h 23063s/\(.\{148\}\)..*/\1/ 23064t more1 23065s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23066p 23067n 23068b repl 23069:more1 23070s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23071p 23072g 23073s/.\{148\}// 23074t nl 23075:delim 23076h 23077s/\(.\{148\}\)..*/\1/ 23078t more2 23079s/["\\]/\\&/g; s/^/"/; s/$/"/ 23080p 23081b 23082:more2 23083s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23084p 23085g 23086s/.\{148\}// 23087t delim 23088' <conf$$subs.awk | sed ' 23089/^[^""]/{ 23090 N 23091 s/\n// 23092} 23093' >>$CONFIG_STATUS || ac_write_fail=1 23094rm -f conf$$subs.awk 23095cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23096_ACAWK 23097cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23098 for (key in S) S_is_set[key] = 1 23099 FS = "" 23100 23101} 23102{ 23103 line = $ 0 23104 nfields = split(line, field, "@") 23105 substed = 0 23106 len = length(field[1]) 23107 for (i = 2; i < nfields; i++) { 23108 key = field[i] 23109 keylen = length(key) 23110 if (S_is_set[key]) { 23111 value = S[key] 23112 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23113 len += length(value) + length(field[++i]) 23114 substed = 1 23115 } else 23116 len += 1 + keylen 23117 } 23118 23119 print line 23120} 23121 23122_ACAWK 23123_ACEOF 23124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23125if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23126 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23127else 23128 cat 23129fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23130 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23131_ACEOF 23132 23133# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23134# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23135# trailing colons and then remove the whole line if VPATH becomes empty 23136# (actually we leave an empty line to preserve line numbers). 23137if test "x$srcdir" = x.; then 23138 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23139h 23140s/// 23141s/^/:/ 23142s/[ ]*$/:/ 23143s/:\$(srcdir):/:/g 23144s/:\${srcdir}:/:/g 23145s/:@srcdir@:/:/g 23146s/^:*// 23147s/:*$// 23148x 23149s/\(=[ ]*\).*/\1/ 23150G 23151s/\n// 23152s/^[^=]*=[ ]*$// 23153}' 23154fi 23155 23156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23157fi # test -n "$CONFIG_FILES" 23158 23159# Set up the scripts for CONFIG_HEADERS section. 23160# No need to generate them if there are no CONFIG_HEADERS. 23161# This happens for instance with `./config.status Makefile'. 23162if test -n "$CONFIG_HEADERS"; then 23163cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23164BEGIN { 23165_ACEOF 23166 23167# Transform confdefs.h into an awk script `defines.awk', embedded as 23168# here-document in config.status, that substitutes the proper values into 23169# config.h.in to produce config.h. 23170 23171# Create a delimiter string that does not exist in confdefs.h, to ease 23172# handling of long lines. 23173ac_delim='%!_!# ' 23174for ac_last_try in false false :; do 23175 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23176 if test -z "$ac_tt"; then 23177 break 23178 elif $ac_last_try; then 23179 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23180 else 23181 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23182 fi 23183done 23184 23185# For the awk script, D is an array of macro values keyed by name, 23186# likewise P contains macro parameters if any. Preserve backslash 23187# newline sequences. 23188 23189ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23190sed -n ' 23191s/.\{148\}/&'"$ac_delim"'/g 23192t rset 23193:rset 23194s/^[ ]*#[ ]*define[ ][ ]*/ / 23195t def 23196d 23197:def 23198s/\\$// 23199t bsnl 23200s/["\\]/\\&/g 23201s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23202D["\1"]=" \3"/p 23203s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23204d 23205:bsnl 23206s/["\\]/\\&/g 23207s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23208D["\1"]=" \3\\\\\\n"\\/p 23209t cont 23210s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23211t cont 23212d 23213:cont 23214n 23215s/.\{148\}/&'"$ac_delim"'/g 23216t clear 23217:clear 23218s/\\$// 23219t bsnlc 23220s/["\\]/\\&/g; s/^/"/; s/$/"/p 23221d 23222:bsnlc 23223s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23224b cont 23225' <confdefs.h | sed ' 23226s/'"$ac_delim"'/"\\\ 23227"/g' >>$CONFIG_STATUS || ac_write_fail=1 23228 23229cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23230 for (key in D) D_is_set[key] = 1 23231 FS = "" 23232} 23233/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23234 line = \$ 0 23235 split(line, arg, " ") 23236 if (arg[1] == "#") { 23237 defundef = arg[2] 23238 mac1 = arg[3] 23239 } else { 23240 defundef = substr(arg[1], 2) 23241 mac1 = arg[2] 23242 } 23243 split(mac1, mac2, "(") #) 23244 macro = mac2[1] 23245 prefix = substr(line, 1, index(line, defundef) - 1) 23246 if (D_is_set[macro]) { 23247 # Preserve the white space surrounding the "#". 23248 print prefix "define", macro P[macro] D[macro] 23249 next 23250 } else { 23251 # Replace #undef with comments. This is necessary, for example, 23252 # in the case of _POSIX_SOURCE, which is predefined and required 23253 # on some systems where configure will not decide to define it. 23254 if (defundef == "undef") { 23255 print "/*", prefix defundef, macro, "*/" 23256 next 23257 } 23258 } 23259} 23260{ print } 23261_ACAWK 23262_ACEOF 23263cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23264 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23265fi # test -n "$CONFIG_HEADERS" 23266 23267 23268eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23269shift 23270for ac_tag 23271do 23272 case $ac_tag in 23273 :[FHLC]) ac_mode=$ac_tag; continue;; 23274 esac 23275 case $ac_mode$ac_tag in 23276 :[FHL]*:*);; 23277 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 23278 :[FH]-) ac_tag=-:-;; 23279 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23280 esac 23281 ac_save_IFS=$IFS 23282 IFS=: 23283 set x $ac_tag 23284 IFS=$ac_save_IFS 23285 shift 23286 ac_file=$1 23287 shift 23288 23289 case $ac_mode in 23290 :L) ac_source=$1;; 23291 :[FH]) 23292 ac_file_inputs= 23293 for ac_f 23294 do 23295 case $ac_f in 23296 -) ac_f="$ac_tmp/stdin";; 23297 *) # Look for the file first in the build tree, then in the source tree 23298 # (if the path is not absolute). The absolute path cannot be DOS-style, 23299 # because $ac_f cannot contain `:'. 23300 test -f "$ac_f" || 23301 case $ac_f in 23302 [\\/$]*) false;; 23303 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23304 esac || 23305 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 23306 esac 23307 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23308 as_fn_append ac_file_inputs " '$ac_f'" 23309 done 23310 23311 # Let's still pretend it is `configure' which instantiates (i.e., don't 23312 # use $as_me), people would be surprised to read: 23313 # /* config.h. Generated by config.status. */ 23314 configure_input='Generated from '` 23315 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23316 `' by configure.' 23317 if test x"$ac_file" != x-; then 23318 configure_input="$ac_file. $configure_input" 23319 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23320$as_echo "$as_me: creating $ac_file" >&6;} 23321 fi 23322 # Neutralize special characters interpreted by sed in replacement strings. 23323 case $configure_input in #( 23324 *\&* | *\|* | *\\* ) 23325 ac_sed_conf_input=`$as_echo "$configure_input" | 23326 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23327 *) ac_sed_conf_input=$configure_input;; 23328 esac 23329 23330 case $ac_tag in 23331 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23332 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23333 esac 23334 ;; 23335 esac 23336 23337 ac_dir=`$as_dirname -- "$ac_file" || 23338$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23339 X"$ac_file" : 'X\(//\)[^/]' \| \ 23340 X"$ac_file" : 'X\(//\)$' \| \ 23341 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23342$as_echo X"$ac_file" | 23343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23344 s//\1/ 23345 q 23346 } 23347 /^X\(\/\/\)[^/].*/{ 23348 s//\1/ 23349 q 23350 } 23351 /^X\(\/\/\)$/{ 23352 s//\1/ 23353 q 23354 } 23355 /^X\(\/\).*/{ 23356 s//\1/ 23357 q 23358 } 23359 s/.*/./; q'` 23360 as_dir="$ac_dir"; as_fn_mkdir_p 23361 ac_builddir=. 23362 23363case "$ac_dir" in 23364.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23365*) 23366 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23367 # A ".." for each directory in $ac_dir_suffix. 23368 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23369 case $ac_top_builddir_sub in 23370 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23371 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23372 esac ;; 23373esac 23374ac_abs_top_builddir=$ac_pwd 23375ac_abs_builddir=$ac_pwd$ac_dir_suffix 23376# for backward compatibility: 23377ac_top_builddir=$ac_top_build_prefix 23378 23379case $srcdir in 23380 .) # We are building in place. 23381 ac_srcdir=. 23382 ac_top_srcdir=$ac_top_builddir_sub 23383 ac_abs_top_srcdir=$ac_pwd ;; 23384 [\\/]* | ?:[\\/]* ) # Absolute name. 23385 ac_srcdir=$srcdir$ac_dir_suffix; 23386 ac_top_srcdir=$srcdir 23387 ac_abs_top_srcdir=$srcdir ;; 23388 *) # Relative name. 23389 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23390 ac_top_srcdir=$ac_top_build_prefix$srcdir 23391 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23392esac 23393ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23394 23395 23396 case $ac_mode in 23397 :F) 23398 # 23399 # CONFIG_FILE 23400 # 23401 23402 case $INSTALL in 23403 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23404 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23405 esac 23406 ac_MKDIR_P=$MKDIR_P 23407 case $MKDIR_P in 23408 [\\/$]* | ?:[\\/]* ) ;; 23409 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23410 esac 23411_ACEOF 23412 23413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23414# If the template does not know about datarootdir, expand it. 23415# FIXME: This hack should be removed a few years after 2.60. 23416ac_datarootdir_hack=; ac_datarootdir_seen= 23417ac_sed_dataroot=' 23418/datarootdir/ { 23419 p 23420 q 23421} 23422/@datadir@/p 23423/@docdir@/p 23424/@infodir@/p 23425/@localedir@/p 23426/@mandir@/p' 23427case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23428*datarootdir*) ac_datarootdir_seen=yes;; 23429*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23431$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23432_ACEOF 23433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23434 ac_datarootdir_hack=' 23435 s&@datadir@&$datadir&g 23436 s&@docdir@&$docdir&g 23437 s&@infodir@&$infodir&g 23438 s&@localedir@&$localedir&g 23439 s&@mandir@&$mandir&g 23440 s&\\\${datarootdir}&$datarootdir&g' ;; 23441esac 23442_ACEOF 23443 23444# Neutralize VPATH when `$srcdir' = `.'. 23445# Shell code in configure.ac might set extrasub. 23446# FIXME: do we really want to maintain this feature? 23447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23448ac_sed_extra="$ac_vpsub 23449$extrasub 23450_ACEOF 23451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23452:t 23453/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23454s|@configure_input@|$ac_sed_conf_input|;t t 23455s&@top_builddir@&$ac_top_builddir_sub&;t t 23456s&@top_build_prefix@&$ac_top_build_prefix&;t t 23457s&@srcdir@&$ac_srcdir&;t t 23458s&@abs_srcdir@&$ac_abs_srcdir&;t t 23459s&@top_srcdir@&$ac_top_srcdir&;t t 23460s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23461s&@builddir@&$ac_builddir&;t t 23462s&@abs_builddir@&$ac_abs_builddir&;t t 23463s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23464s&@INSTALL@&$ac_INSTALL&;t t 23465s&@MKDIR_P@&$ac_MKDIR_P&;t t 23466$ac_datarootdir_hack 23467" 23468eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23469 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23470 23471test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23472 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23473 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23474 "$ac_tmp/out"`; test -z "$ac_out"; } && 23475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23476which seems to be undefined. Please make sure it is defined" >&5 23477$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23478which seems to be undefined. Please make sure it is defined" >&2;} 23479 23480 rm -f "$ac_tmp/stdin" 23481 case $ac_file in 23482 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23483 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23484 esac \ 23485 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23486 ;; 23487 :H) 23488 # 23489 # CONFIG_HEADER 23490 # 23491 if test x"$ac_file" != x-; then 23492 { 23493 $as_echo "/* $configure_input */" \ 23494 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23495 } >"$ac_tmp/config.h" \ 23496 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23497 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23498 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23499$as_echo "$as_me: $ac_file is unchanged" >&6;} 23500 else 23501 rm -f "$ac_file" 23502 mv "$ac_tmp/config.h" "$ac_file" \ 23503 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23504 fi 23505 else 23506 $as_echo "/* $configure_input */" \ 23507 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23508 || as_fn_error $? "could not create -" "$LINENO" 5 23509 fi 23510# Compute "$ac_file"'s index in $config_headers. 23511_am_arg="$ac_file" 23512_am_stamp_count=1 23513for _am_header in $config_headers :; do 23514 case $_am_header in 23515 $_am_arg | $_am_arg:* ) 23516 break ;; 23517 * ) 23518 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23519 esac 23520done 23521echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23522$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23523 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23524 X"$_am_arg" : 'X\(//\)$' \| \ 23525 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23526$as_echo X"$_am_arg" | 23527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23528 s//\1/ 23529 q 23530 } 23531 /^X\(\/\/\)[^/].*/{ 23532 s//\1/ 23533 q 23534 } 23535 /^X\(\/\/\)$/{ 23536 s//\1/ 23537 q 23538 } 23539 /^X\(\/\).*/{ 23540 s//\1/ 23541 q 23542 } 23543 s/.*/./; q'`/stamp-h$_am_stamp_count 23544 ;; 23545 23546 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23547$as_echo "$as_me: executing $ac_file commands" >&6;} 23548 ;; 23549 esac 23550 23551 23552 case $ac_file$ac_mode in 23553 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23554 # Older Autoconf quotes --file arguments for eval, but not when files 23555 # are listed without --file. Let's play safe and only enable the eval 23556 # if we detect the quoting. 23557 # TODO: see whether this extra hack can be removed once we start 23558 # requiring Autoconf 2.70 or later. 23559 case $CONFIG_FILES in @%:@( 23560 *\'*) : 23561 eval set x "$CONFIG_FILES" ;; @%:@( 23562 *) : 23563 set x $CONFIG_FILES ;; @%:@( 23564 *) : 23565 ;; 23566esac 23567 shift 23568 # Used to flag and report bootstrapping failures. 23569 am_rc=0 23570 for am_mf 23571 do 23572 # Strip MF so we end up with the name of the file. 23573 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 23574 # Check whether this is an Automake generated Makefile which includes 23575 # dependency-tracking related rules and includes. 23576 # Grep'ing the whole file directly is not great: AIX grep has a line 23577 # limit of 2048, but all sed's we know have understand at least 4000. 23578 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 23579 || continue 23580 am_dirpart=`$as_dirname -- "$am_mf" || 23581$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23582 X"$am_mf" : 'X\(//\)[^/]' \| \ 23583 X"$am_mf" : 'X\(//\)$' \| \ 23584 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23585$as_echo X"$am_mf" | 23586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23587 s//\1/ 23588 q 23589 } 23590 /^X\(\/\/\)[^/].*/{ 23591 s//\1/ 23592 q 23593 } 23594 /^X\(\/\/\)$/{ 23595 s//\1/ 23596 q 23597 } 23598 /^X\(\/\).*/{ 23599 s//\1/ 23600 q 23601 } 23602 s/.*/./; q'` 23603 am_filepart=`$as_basename -- "$am_mf" || 23604$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 23605 X"$am_mf" : 'X\(//\)$' \| \ 23606 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23607$as_echo X/"$am_mf" | 23608 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23609 s//\1/ 23610 q 23611 } 23612 /^X\/\(\/\/\)$/{ 23613 s//\1/ 23614 q 23615 } 23616 /^X\/\(\/\).*/{ 23617 s//\1/ 23618 q 23619 } 23620 s/.*/./; q'` 23621 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 23622 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23623 | $MAKE -f - am--depfiles" >&5 23624 (cd "$am_dirpart" \ 23625 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23626 | $MAKE -f - am--depfiles) >&5 2>&5 23627 ac_status=$? 23628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23629 (exit $ac_status); } || am_rc=$? 23630 done 23631 if test $am_rc -ne 0; then 23632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23634as_fn_error $? "Something went wrong bootstrapping makefile fragments 23635 for automatic dependency tracking. Try re-running configure with the 23636 '--disable-dependency-tracking' option to at least be able to build 23637 the package (albeit without support for automatic dependency tracking). 23638See \`config.log' for more details" "$LINENO" 5; } 23639 fi 23640 { am_dirpart=; unset am_dirpart;} 23641 { am_filepart=; unset am_filepart;} 23642 { am_mf=; unset am_mf;} 23643 { am_rc=; unset am_rc;} 23644 rm -f conftest-deps.mk 23645} 23646 ;; 23647 "libtool":C) 23648 23649 # See if we are running on zsh, and set the options that allow our 23650 # commands through without removal of \ escapes. 23651 if test -n "${ZSH_VERSION+set}"; then 23652 setopt NO_GLOB_SUBST 23653 fi 23654 23655 cfgfile=${ofile}T 23656 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23657 $RM "$cfgfile" 23658 23659 cat <<_LT_EOF >> "$cfgfile" 23660#! $SHELL 23661# Generated automatically by $as_me ($PACKAGE) $VERSION 23662# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23663 23664# Provide generalized library-building support services. 23665# Written by Gordon Matzigkeit, 1996 23666 23667# Copyright (C) 2014 Free Software Foundation, Inc. 23668# This is free software; see the source for copying conditions. There is NO 23669# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23670 23671# GNU Libtool is free software; you can redistribute it and/or modify 23672# it under the terms of the GNU General Public License as published by 23673# the Free Software Foundation; either version 2 of of the License, or 23674# (at your option) any later version. 23675# 23676# As a special exception to the GNU General Public License, if you 23677# distribute this file as part of a program or library that is built 23678# using GNU Libtool, you may include this file under the same 23679# distribution terms that you use for the rest of that program. 23680# 23681# GNU Libtool is distributed in the hope that it will be useful, but 23682# WITHOUT ANY WARRANTY; without even the implied warranty of 23683# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23684# GNU General Public License for more details. 23685# 23686# You should have received a copy of the GNU General Public License 23687# along with this program. If not, see <http://www.gnu.org/licenses/>. 23688 23689 23690# The names of the tagged configurations supported by this script. 23691available_tags='CXX ' 23692 23693# Configured defaults for sys_lib_dlsearch_path munging. 23694: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 23695 23696# ### BEGIN LIBTOOL CONFIG 23697 23698# Assembler program. 23699AS=$lt_AS 23700 23701# DLL creation program. 23702DLLTOOL=$lt_DLLTOOL 23703 23704# Object dumper program. 23705OBJDUMP=$lt_OBJDUMP 23706 23707# Which release of libtool.m4 was used? 23708macro_version=$macro_version 23709macro_revision=$macro_revision 23710 23711# Whether or not to build shared libraries. 23712build_libtool_libs=$enable_shared 23713 23714# Whether or not to build static libraries. 23715build_old_libs=$enable_static 23716 23717# What type of objects to build. 23718pic_mode=$pic_mode 23719 23720# Whether or not to optimize for fast installation. 23721fast_install=$enable_fast_install 23722 23723# Shared archive member basename,for filename based shared library versioning on AIX. 23724shared_archive_member_spec=$shared_archive_member_spec 23725 23726# Shell to use when invoking shell scripts. 23727SHELL=$lt_SHELL 23728 23729# An echo program that protects backslashes. 23730ECHO=$lt_ECHO 23731 23732# The PATH separator for the build system. 23733PATH_SEPARATOR=$lt_PATH_SEPARATOR 23734 23735# The host system. 23736host_alias=$host_alias 23737host=$host 23738host_os=$host_os 23739 23740# The build system. 23741build_alias=$build_alias 23742build=$build 23743build_os=$build_os 23744 23745# A sed program that does not truncate output. 23746SED=$lt_SED 23747 23748# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23749Xsed="\$SED -e 1s/^X//" 23750 23751# A grep program that handles long lines. 23752GREP=$lt_GREP 23753 23754# An ERE matcher. 23755EGREP=$lt_EGREP 23756 23757# A literal string matcher. 23758FGREP=$lt_FGREP 23759 23760# A BSD- or MS-compatible name lister. 23761NM=$lt_NM 23762 23763# Whether we need soft or hard links. 23764LN_S=$lt_LN_S 23765 23766# What is the maximum length of a command? 23767max_cmd_len=$max_cmd_len 23768 23769# Object file suffix (normally "o"). 23770objext=$ac_objext 23771 23772# Executable file suffix (normally ""). 23773exeext=$exeext 23774 23775# whether the shell understands "unset". 23776lt_unset=$lt_unset 23777 23778# turn spaces into newlines. 23779SP2NL=$lt_lt_SP2NL 23780 23781# turn newlines into spaces. 23782NL2SP=$lt_lt_NL2SP 23783 23784# convert \$build file names to \$host format. 23785to_host_file_cmd=$lt_cv_to_host_file_cmd 23786 23787# convert \$build files to toolchain format. 23788to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23789 23790# Method to check whether dependent libraries are shared objects. 23791deplibs_check_method=$lt_deplibs_check_method 23792 23793# Command to use when deplibs_check_method = "file_magic". 23794file_magic_cmd=$lt_file_magic_cmd 23795 23796# How to find potential files when deplibs_check_method = "file_magic". 23797file_magic_glob=$lt_file_magic_glob 23798 23799# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23800want_nocaseglob=$lt_want_nocaseglob 23801 23802# Command to associate shared and link libraries. 23803sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23804 23805# The archiver. 23806AR=$lt_AR 23807 23808# Flags to create an archive. 23809AR_FLAGS=$lt_AR_FLAGS 23810 23811# How to feed a file listing to the archiver. 23812archiver_list_spec=$lt_archiver_list_spec 23813 23814# A symbol stripping program. 23815STRIP=$lt_STRIP 23816 23817# Commands used to install an old-style archive. 23818RANLIB=$lt_RANLIB 23819old_postinstall_cmds=$lt_old_postinstall_cmds 23820old_postuninstall_cmds=$lt_old_postuninstall_cmds 23821 23822# Whether to use a lock for old archive extraction. 23823lock_old_archive_extraction=$lock_old_archive_extraction 23824 23825# A C compiler. 23826LTCC=$lt_CC 23827 23828# LTCC compiler flags. 23829LTCFLAGS=$lt_CFLAGS 23830 23831# Take the output of nm and produce a listing of raw symbols and C names. 23832global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23833 23834# Transform the output of nm in a proper C declaration. 23835global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23836 23837# Transform the output of nm into a list of symbols to manually relocate. 23838global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23839 23840# Transform the output of nm in a C name address pair. 23841global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23842 23843# Transform the output of nm in a C name address pair when lib prefix is needed. 23844global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23845 23846# The name lister interface. 23847nm_interface=$lt_lt_cv_nm_interface 23848 23849# Specify filename containing input files for \$NM. 23850nm_file_list_spec=$lt_nm_file_list_spec 23851 23852# The root where to search for dependent libraries,and where our libraries should be installed. 23853lt_sysroot=$lt_sysroot 23854 23855# Command to truncate a binary pipe. 23856lt_truncate_bin=$lt_lt_cv_truncate_bin 23857 23858# The name of the directory that contains temporary libtool files. 23859objdir=$objdir 23860 23861# Used to examine libraries when file_magic_cmd begins with "file". 23862MAGIC_CMD=$MAGIC_CMD 23863 23864# Must we lock files when doing compilation? 23865need_locks=$lt_need_locks 23866 23867# Manifest tool. 23868MANIFEST_TOOL=$lt_MANIFEST_TOOL 23869 23870# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23871DSYMUTIL=$lt_DSYMUTIL 23872 23873# Tool to change global to local symbols on Mac OS X. 23874NMEDIT=$lt_NMEDIT 23875 23876# Tool to manipulate fat objects and archives on Mac OS X. 23877LIPO=$lt_LIPO 23878 23879# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23880OTOOL=$lt_OTOOL 23881 23882# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23883OTOOL64=$lt_OTOOL64 23884 23885# Old archive suffix (normally "a"). 23886libext=$libext 23887 23888# Shared library suffix (normally ".so"). 23889shrext_cmds=$lt_shrext_cmds 23890 23891# The commands to extract the exported symbol list from a shared archive. 23892extract_expsyms_cmds=$lt_extract_expsyms_cmds 23893 23894# Variables whose values should be saved in libtool wrapper scripts and 23895# restored at link time. 23896variables_saved_for_relink=$lt_variables_saved_for_relink 23897 23898# Do we need the "lib" prefix for modules? 23899need_lib_prefix=$need_lib_prefix 23900 23901# Do we need a version for libraries? 23902need_version=$need_version 23903 23904# Library versioning type. 23905version_type=$version_type 23906 23907# Shared library runtime path variable. 23908runpath_var=$runpath_var 23909 23910# Shared library path variable. 23911shlibpath_var=$shlibpath_var 23912 23913# Is shlibpath searched before the hard-coded library search path? 23914shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23915 23916# Format of library name prefix. 23917libname_spec=$lt_libname_spec 23918 23919# List of archive names. First name is the real one, the rest are links. 23920# The last name is the one that the linker finds with -lNAME 23921library_names_spec=$lt_library_names_spec 23922 23923# The coded name of the library, if different from the real name. 23924soname_spec=$lt_soname_spec 23925 23926# Permission mode override for installation of shared libraries. 23927install_override_mode=$lt_install_override_mode 23928 23929# Command to use after installation of a shared archive. 23930postinstall_cmds=$lt_postinstall_cmds 23931 23932# Command to use after uninstallation of a shared archive. 23933postuninstall_cmds=$lt_postuninstall_cmds 23934 23935# Commands used to finish a libtool library installation in a directory. 23936finish_cmds=$lt_finish_cmds 23937 23938# As "finish_cmds", except a single script fragment to be evaled but 23939# not shown. 23940finish_eval=$lt_finish_eval 23941 23942# Whether we should hardcode library paths into libraries. 23943hardcode_into_libs=$hardcode_into_libs 23944 23945# Compile-time system search path for libraries. 23946sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23947 23948# Detected run-time system search path for libraries. 23949sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23950 23951# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23952configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23953 23954# Whether dlopen is supported. 23955dlopen_support=$enable_dlopen 23956 23957# Whether dlopen of programs is supported. 23958dlopen_self=$enable_dlopen_self 23959 23960# Whether dlopen of statically linked programs is supported. 23961dlopen_self_static=$enable_dlopen_self_static 23962 23963# Commands to strip libraries. 23964old_striplib=$lt_old_striplib 23965striplib=$lt_striplib 23966 23967 23968# The linker used to build libraries. 23969LD=$lt_LD 23970 23971# How to create reloadable object files. 23972reload_flag=$lt_reload_flag 23973reload_cmds=$lt_reload_cmds 23974 23975# Commands used to build an old-style archive. 23976old_archive_cmds=$lt_old_archive_cmds 23977 23978# A language specific compiler. 23979CC=$lt_compiler 23980 23981# Is the compiler the GNU compiler? 23982with_gcc=$GCC 23983 23984# Compiler flag to turn off builtin functions. 23985no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23986 23987# Additional compiler flags for building library objects. 23988pic_flag=$lt_lt_prog_compiler_pic 23989 23990# How to pass a linker flag through the compiler. 23991wl=$lt_lt_prog_compiler_wl 23992 23993# Compiler flag to prevent dynamic linking. 23994link_static_flag=$lt_lt_prog_compiler_static 23995 23996# Does compiler simultaneously support -c and -o options? 23997compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23998 23999# Whether or not to add -lc for building shared libraries. 24000build_libtool_need_lc=$archive_cmds_need_lc 24001 24002# Whether or not to disallow shared libs when runtime libs are static. 24003allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 24004 24005# Compiler flag to allow reflexive dlopens. 24006export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 24007 24008# Compiler flag to generate shared objects directly from archives. 24009whole_archive_flag_spec=$lt_whole_archive_flag_spec 24010 24011# Whether the compiler copes with passing no objects directly. 24012compiler_needs_object=$lt_compiler_needs_object 24013 24014# Create an old-style archive from a shared archive. 24015old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 24016 24017# Create a temporary old-style archive to link instead of a shared archive. 24018old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 24019 24020# Commands used to build a shared archive. 24021archive_cmds=$lt_archive_cmds 24022archive_expsym_cmds=$lt_archive_expsym_cmds 24023 24024# Commands used to build a loadable module if different from building 24025# a shared archive. 24026module_cmds=$lt_module_cmds 24027module_expsym_cmds=$lt_module_expsym_cmds 24028 24029# Whether we are building with GNU ld or not. 24030with_gnu_ld=$lt_with_gnu_ld 24031 24032# Flag that allows shared libraries with undefined symbols to be built. 24033allow_undefined_flag=$lt_allow_undefined_flag 24034 24035# Flag that enforces no undefined symbols. 24036no_undefined_flag=$lt_no_undefined_flag 24037 24038# Flag to hardcode \$libdir into a binary during linking. 24039# This must work even if \$libdir does not exist 24040hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 24041 24042# Whether we need a single "-rpath" flag with a separated argument. 24043hardcode_libdir_separator=$lt_hardcode_libdir_separator 24044 24045# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24046# DIR into the resulting binary. 24047hardcode_direct=$hardcode_direct 24048 24049# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24050# DIR into the resulting binary and the resulting library dependency is 24051# "absolute",i.e impossible to change by setting \$shlibpath_var if the 24052# library is relocated. 24053hardcode_direct_absolute=$hardcode_direct_absolute 24054 24055# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24056# into the resulting binary. 24057hardcode_minus_L=$hardcode_minus_L 24058 24059# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24060# into the resulting binary. 24061hardcode_shlibpath_var=$hardcode_shlibpath_var 24062 24063# Set to "yes" if building a shared library automatically hardcodes DIR 24064# into the library and all subsequent libraries and executables linked 24065# against it. 24066hardcode_automatic=$hardcode_automatic 24067 24068# Set to yes if linker adds runtime paths of dependent libraries 24069# to runtime path list. 24070inherit_rpath=$inherit_rpath 24071 24072# Whether libtool must link a program against all its dependency libraries. 24073link_all_deplibs=$link_all_deplibs 24074 24075# Set to "yes" if exported symbols are required. 24076always_export_symbols=$always_export_symbols 24077 24078# The commands to list exported symbols. 24079export_symbols_cmds=$lt_export_symbols_cmds 24080 24081# Symbols that should not be listed in the preloaded symbols. 24082exclude_expsyms=$lt_exclude_expsyms 24083 24084# Symbols that must always be exported. 24085include_expsyms=$lt_include_expsyms 24086 24087# Commands necessary for linking programs (against libraries) with templates. 24088prelink_cmds=$lt_prelink_cmds 24089 24090# Commands necessary for finishing linking programs. 24091postlink_cmds=$lt_postlink_cmds 24092 24093# Specify filename containing input files. 24094file_list_spec=$lt_file_list_spec 24095 24096# How to hardcode a shared library path into an executable. 24097hardcode_action=$hardcode_action 24098 24099# The directories searched by this compiler when creating a shared library. 24100compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 24101 24102# Dependencies to place before and after the objects being linked to 24103# create a shared library. 24104predep_objects=$lt_predep_objects 24105postdep_objects=$lt_postdep_objects 24106predeps=$lt_predeps 24107postdeps=$lt_postdeps 24108 24109# The library search path used internally by the compiler when linking 24110# a shared library. 24111compiler_lib_search_path=$lt_compiler_lib_search_path 24112 24113# ### END LIBTOOL CONFIG 24114 24115_LT_EOF 24116 24117 cat <<'_LT_EOF' >> "$cfgfile" 24118 24119# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 24120 24121# func_munge_path_list VARIABLE PATH 24122# ----------------------------------- 24123# VARIABLE is name of variable containing _space_ separated list of 24124# directories to be munged by the contents of PATH, which is string 24125# having a format: 24126# "DIR[:DIR]:" 24127# string "DIR[ DIR]" will be prepended to VARIABLE 24128# ":DIR[:DIR]" 24129# string "DIR[ DIR]" will be appended to VARIABLE 24130# "DIRP[:DIRP]::[DIRA:]DIRA" 24131# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 24132# "DIRA[ DIRA]" will be appended to VARIABLE 24133# "DIR[:DIR]" 24134# VARIABLE will be replaced by "DIR[ DIR]" 24135func_munge_path_list () 24136{ 24137 case x@S|@2 in 24138 x) 24139 ;; 24140 *:) 24141 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 24142 ;; 24143 x:*) 24144 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 24145 ;; 24146 *::*) 24147 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 24148 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 24149 ;; 24150 *) 24151 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 24152 ;; 24153 esac 24154} 24155 24156 24157# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 24158func_cc_basename () 24159{ 24160 for cc_temp in @S|@*""; do 24161 case $cc_temp in 24162 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 24163 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 24164 \-*) ;; 24165 *) break;; 24166 esac 24167 done 24168 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 24169} 24170 24171 24172# ### END FUNCTIONS SHARED WITH CONFIGURE 24173 24174_LT_EOF 24175 24176 case $host_os in 24177 aix3*) 24178 cat <<\_LT_EOF >> "$cfgfile" 24179# AIX sometimes has problems with the GCC collect2 program. For some 24180# reason, if we set the COLLECT_NAMES environment variable, the problems 24181# vanish in a puff of smoke. 24182if test set != "${COLLECT_NAMES+set}"; then 24183 COLLECT_NAMES= 24184 export COLLECT_NAMES 24185fi 24186_LT_EOF 24187 ;; 24188 esac 24189 24190 24191ltmain=$ac_aux_dir/ltmain.sh 24192 24193 24194 # We use sed instead of cat because bash on DJGPP gets confused if 24195 # if finds mixed CR/LF and LF-only lines. Since sed operates in 24196 # text mode, it properly converts lines to CR/LF. This bash problem 24197 # is reportedly fixed, but why not run on old versions too? 24198 sed '$q' "$ltmain" >> "$cfgfile" \ 24199 || (rm -f "$cfgfile"; exit 1) 24200 24201 mv -f "$cfgfile" "$ofile" || 24202 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24203 chmod +x "$ofile" 24204 24205 24206 cat <<_LT_EOF >> "$ofile" 24207 24208# ### BEGIN LIBTOOL TAG CONFIG: CXX 24209 24210# The linker used to build libraries. 24211LD=$lt_LD_CXX 24212 24213# How to create reloadable object files. 24214reload_flag=$lt_reload_flag_CXX 24215reload_cmds=$lt_reload_cmds_CXX 24216 24217# Commands used to build an old-style archive. 24218old_archive_cmds=$lt_old_archive_cmds_CXX 24219 24220# A language specific compiler. 24221CC=$lt_compiler_CXX 24222 24223# Is the compiler the GNU compiler? 24224with_gcc=$GCC_CXX 24225 24226# Compiler flag to turn off builtin functions. 24227no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 24228 24229# Additional compiler flags for building library objects. 24230pic_flag=$lt_lt_prog_compiler_pic_CXX 24231 24232# How to pass a linker flag through the compiler. 24233wl=$lt_lt_prog_compiler_wl_CXX 24234 24235# Compiler flag to prevent dynamic linking. 24236link_static_flag=$lt_lt_prog_compiler_static_CXX 24237 24238# Does compiler simultaneously support -c and -o options? 24239compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 24240 24241# Whether or not to add -lc for building shared libraries. 24242build_libtool_need_lc=$archive_cmds_need_lc_CXX 24243 24244# Whether or not to disallow shared libs when runtime libs are static. 24245allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 24246 24247# Compiler flag to allow reflexive dlopens. 24248export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 24249 24250# Compiler flag to generate shared objects directly from archives. 24251whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 24252 24253# Whether the compiler copes with passing no objects directly. 24254compiler_needs_object=$lt_compiler_needs_object_CXX 24255 24256# Create an old-style archive from a shared archive. 24257old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 24258 24259# Create a temporary old-style archive to link instead of a shared archive. 24260old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 24261 24262# Commands used to build a shared archive. 24263archive_cmds=$lt_archive_cmds_CXX 24264archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 24265 24266# Commands used to build a loadable module if different from building 24267# a shared archive. 24268module_cmds=$lt_module_cmds_CXX 24269module_expsym_cmds=$lt_module_expsym_cmds_CXX 24270 24271# Whether we are building with GNU ld or not. 24272with_gnu_ld=$lt_with_gnu_ld_CXX 24273 24274# Flag that allows shared libraries with undefined symbols to be built. 24275allow_undefined_flag=$lt_allow_undefined_flag_CXX 24276 24277# Flag that enforces no undefined symbols. 24278no_undefined_flag=$lt_no_undefined_flag_CXX 24279 24280# Flag to hardcode \$libdir into a binary during linking. 24281# This must work even if \$libdir does not exist 24282hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 24283 24284# Whether we need a single "-rpath" flag with a separated argument. 24285hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 24286 24287# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24288# DIR into the resulting binary. 24289hardcode_direct=$hardcode_direct_CXX 24290 24291# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24292# DIR into the resulting binary and the resulting library dependency is 24293# "absolute",i.e impossible to change by setting \$shlibpath_var if the 24294# library is relocated. 24295hardcode_direct_absolute=$hardcode_direct_absolute_CXX 24296 24297# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24298# into the resulting binary. 24299hardcode_minus_L=$hardcode_minus_L_CXX 24300 24301# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24302# into the resulting binary. 24303hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 24304 24305# Set to "yes" if building a shared library automatically hardcodes DIR 24306# into the library and all subsequent libraries and executables linked 24307# against it. 24308hardcode_automatic=$hardcode_automatic_CXX 24309 24310# Set to yes if linker adds runtime paths of dependent libraries 24311# to runtime path list. 24312inherit_rpath=$inherit_rpath_CXX 24313 24314# Whether libtool must link a program against all its dependency libraries. 24315link_all_deplibs=$link_all_deplibs_CXX 24316 24317# Set to "yes" if exported symbols are required. 24318always_export_symbols=$always_export_symbols_CXX 24319 24320# The commands to list exported symbols. 24321export_symbols_cmds=$lt_export_symbols_cmds_CXX 24322 24323# Symbols that should not be listed in the preloaded symbols. 24324exclude_expsyms=$lt_exclude_expsyms_CXX 24325 24326# Symbols that must always be exported. 24327include_expsyms=$lt_include_expsyms_CXX 24328 24329# Commands necessary for linking programs (against libraries) with templates. 24330prelink_cmds=$lt_prelink_cmds_CXX 24331 24332# Commands necessary for finishing linking programs. 24333postlink_cmds=$lt_postlink_cmds_CXX 24334 24335# Specify filename containing input files. 24336file_list_spec=$lt_file_list_spec_CXX 24337 24338# How to hardcode a shared library path into an executable. 24339hardcode_action=$hardcode_action_CXX 24340 24341# The directories searched by this compiler when creating a shared library. 24342compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 24343 24344# Dependencies to place before and after the objects being linked to 24345# create a shared library. 24346predep_objects=$lt_predep_objects_CXX 24347postdep_objects=$lt_postdep_objects_CXX 24348predeps=$lt_predeps_CXX 24349postdeps=$lt_postdeps_CXX 24350 24351# The library search path used internally by the compiler when linking 24352# a shared library. 24353compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 24354 24355# ### END LIBTOOL TAG CONFIG: CXX 24356_LT_EOF 24357 24358 ;; 24359 24360 esac 24361done # for ac_tag 24362 24363 24364as_fn_exit 0 24365_ACEOF 24366ac_clean_files=$ac_clean_files_save 24367 24368test $ac_write_fail = 0 || 24369 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 24370 24371 24372# configure is writing to config.log, and then calls config.status. 24373# config.status does its own redirection, appending to config.log. 24374# Unfortunately, on DOS this fails, as config.log is still kept open 24375# by configure, so config.status won't be able to write to it; its 24376# output is simply discarded. So we exec the FD to /dev/null, 24377# effectively closing config.log, so it can be properly (re)opened and 24378# appended to by config.status. When coming back to configure, we 24379# need to make the FD available again. 24380if test "$no_create" != yes; then 24381 ac_cs_success=: 24382 ac_config_status_args= 24383 test "$silent" = yes && 24384 ac_config_status_args="$ac_config_status_args --quiet" 24385 exec 5>/dev/null 24386 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24387 exec 5>>config.log 24388 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24389 # would make configure fail if this is the last instruction. 24390 $ac_cs_success || as_fn_exit 1 24391fi 24392if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24394$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24395fi 24396 24397 24398# resolve all nested variables in '${config_plugin_dir}' 24399# (merely for providing a human readable summary below) 24400while test $config_plugin_dir != `eval echo ${config_plugin_dir}` ; do 24401 config_plugin_dir=`eval echo ${config_plugin_dir}` 24402done 24403 24404 24405########################################################################### 24406# Output All Configuration Options 24407 24408echo "" 24409echo "#####################################################################" 24410echo "# LinuxSampler Configuration #" 24411echo "#-------------------------------------------------------------------#" 24412echo "# Release Version: ${VERSION}" 24413echo "# LSCP Version: ${LSCP_RELEASE_MAJOR}.${LSCP_RELEASE_MINOR}" 24414echo "#-------------------------------------------------------------------" 24415echo "# Assembly Optimizations: ${config_asm}" 24416echo "# Development Mode: ${config_dev_mode}" 24417echo "# Debug Level: ${config_debug_level}" 24418echo "# Use Exceptions in RT Context: ${config_rt_exceptions}" 24419echo "# Preload Samples: ${config_preload_samples}" 24420echo "# Maximum Pitch: ${config_max_pitch} (octaves)" 24421echo "# Maximum Events: ${config_max_events}" 24422echo "# Envelope Bottom Level: ${config_eg_bottom} (linear)" 24423echo "# Envelope Minimum Release Time: ${config_eg_min_release_time} s" 24424echo "# Streams to be refilled per Disk Thread Cycle: ${config_refill_streams}" 24425echo "# Minimum Stream Refill Size: ${config_stream_min_refill}" 24426echo "# Maximum Stream Refill Size: ${config_stream_max_refill}" 24427echo "# Stream Size: ${config_stream_size}" 24428echo "# Default Maximum Disk Streams: ${config_max_streams}" 24429echo "# Default Maximum Voices: ${config_max_voices}" 24430echo "# Default Subfragment Size: ${config_subfragment_size}" 24431echo "# Default Global Volume Attenuation: ${config_global_attenuation_default}" 24432echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}" 24433echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}" 24434echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}" 24435echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte" 24436echo "# Min. Portamento Time: ${config_portamento_time_min} s" 24437echo "# Max. Portamento Time: ${config_portamento_time_max} s" 24438echo "# Default Portamento Time: ${config_portamento_time_default} s" 24439echo "# Force Filter Usage: ${config_force_filter}" 24440echo "# Filter Cutoff Minimum: ${config_filter_cutoff_min} Hz" 24441echo "# Filter Cutoff Maximum: ${config_filter_cutoff_max} Hz" 24442echo "# Override Filter Cutoff Controller: ${config_override_cutoff_ctrl}" 24443echo "# Override Filter Resonance Controller: ${config_override_resonance_ctrl}" 24444echo "# Override Filter Type: ${config_override_filter_type}" 24445echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}" 24446echo "# Process Muted Channels: ${config_process_muted_channels}" 24447echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}" 24448echo "# Apply global volume SysEx by MIDI port: ${config_master_volume_sysex_by_port}" 24449echo "# Interpolate Volume: ${config_interpolate_volume}" 24450echo "# Instruments database support: ${config_instruments_db}" 24451if test "$config_instruments_db" = "yes"; then 24452echo "# Instruments DB default location: ${config_default_instruments_db_file}" 24453fi 24454echo "# Plugin Path: ${config_plugin_dir}" 24455echo "#-------------------------------------------------------------------" 24456echo "# MIDI Input Drivers:" 24457echo "# ALSA: ${config_have_alsa}, JACK: ${config_have_jack_midi}, CoreMIDI: ${config_have_coremidi}, MME: ${config_have_mme}, MidiShare: ${config_have_midishare}" 24458echo "#-------------------------------------------------------------------" 24459echo "# Audio Output Drivers:" 24460echo "# ALSA: ${config_have_alsa}, JACK: ${config_have_jack}, ARTS: ${config_have_arts}, CoreAudio: ${config_have_coreaudio}, ASIO: ${config_have_asio}" 24461echo "#-------------------------------------------------------------------" 24462echo "# Sampler Engines:" 24463echo "# GIG: yes, SF2: ${config_have_sf2}, SFZ: yes" 24464echo "#-------------------------------------------------------------------" 24465echo "# Effect plugin systems for internal effects:" 24466echo "# LADSPA: yes" 24467echo "#-------------------------------------------------------------------" 24468echo "# Building sampler as plugin for following host standards:" 24469echo "# DSSI: ${config_have_dssi}, LV2: ${config_have_lv2}, VST: ${config_have_vst}, AU: ${config_have_au}" 24470echo "#-------------------------------------------------------------------#" 24471echo "# Read './configure --help' or file 'configure.in' for details. #" 24472echo "#####################################################################" 24473echo "" 24474echo "Good. Now type 'make' to compile, followed by 'make install' as root." 24475echo "" 24476