1#! /bin/sh 2# From configure.ac 1. 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.69 for YAPET 2.3. 5# 6# Report bugs to <https://github.com/RafaelOstertag/yapet/issues>. 7# 8# 9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27else 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33esac 34fi 35 36 37as_nl=' 38' 39export as_nl 40# Printing a long string crashes Solaris 7 /usr/bin/printf. 41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 44# Prefer a ksh shell builtin over an external printf program on Solaris, 45# but without wasting forks for bash or zsh. 46if test -z "$BASH_VERSION$ZSH_VERSION" \ 47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='print -r --' 49 as_echo_n='print -rn --' 50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='printf %s\n' 52 as_echo_n='printf %s' 53else 54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 56 as_echo_n='/usr/ucb/echo -n' 57 else 58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 59 as_echo_n_body='eval 60 arg=$1; 61 case $arg in #( 62 *"$as_nl"*) 63 expr "X$arg" : "X\\(.*\\)$as_nl"; 64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65 esac; 66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67 ' 68 export as_echo_n_body 69 as_echo_n='sh -c $as_echo_n_body as_echo' 70 fi 71 export as_echo_body 72 as_echo='sh -c $as_echo_body as_echo' 73fi 74 75# The user is always right. 76if test "${PATH_SEPARATOR+set}" != set; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82fi 83 84 85# IFS 86# We need space, tab and new line, in precisely that order. Quoting is 87# there to prevent editors from complaining about space-tab. 88# (If _AS_PATH_WALK were called with IFS unset, it would disable word 89# splitting by setting IFS to empty value.) 90IFS=" "" $as_nl" 91 92# Find who we are. Look in the path if we contain no directory separator. 93as_myself= 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138# Use a proper internal environment variable to ensure we don't fall 139 # into an infinite loop, continuously re-executing ourselves. 140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 141 _as_can_reexec=no; export _as_can_reexec; 142 # We cannot yet assume a decent shell, so we have to provide a 143# neutralization value for shells without unset; and this also 144# works around shells that cannot unset nonexistent variables. 145# Preserve -v and -x to the replacement shell. 146BASH_ENV=/dev/null 147ENV=/dev/null 148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 149case $- in # (((( 150 *v*x* | *x*v* ) as_opts=-vx ;; 151 *v* ) as_opts=-v ;; 152 *x* ) as_opts=-x ;; 153 * ) as_opts= ;; 154esac 155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 156# Admittedly, this is quite paranoid, since all the known shells bail 157# out after a failed `exec'. 158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 159as_fn_exit 255 160 fi 161 # We don't want this to propagate to other subprocesses. 162 { _as_can_reexec=; unset _as_can_reexec;} 163if test "x$CONFIG_SHELL" = x; then 164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 165 emulate sh 166 NULLCMD=: 167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 168 # is contrary to our usage. Disable this feature. 169 alias -g '\${1+\"\$@\"}'='\"\$@\"' 170 setopt NO_GLOB_SUBST 171else 172 case \`(set -o) 2>/dev/null\` in #( 173 *posix*) : 174 set -o posix ;; #( 175 *) : 176 ;; 177esac 178fi 179" 180 as_required="as_fn_return () { (exit \$1); } 181as_fn_success () { as_fn_return 0; } 182as_fn_failure () { as_fn_return 1; } 183as_fn_ret_success () { return 0; } 184as_fn_ret_failure () { return 1; } 185 186exitcode=0 187as_fn_success || { exitcode=1; echo as_fn_success failed.; } 188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 192 193else 194 exitcode=1; echo positional parameters were not saved. 195fi 196test x\$exitcode = x0 || exit 1 197test -x / || exit 1" 198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 202test \$(( 1 + 1 )) = 2 || exit 1 203 204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 208 PATH=/empty FPATH=/empty; export PATH FPATH 209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 211 if (eval "$as_required") 2>/dev/null; then : 212 as_have_required=yes 213else 214 as_have_required=no 215fi 216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 217 218else 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 220as_found=false 221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 222do 223 IFS=$as_save_IFS 224 test -z "$as_dir" && as_dir=. 225 as_found=: 226 case $as_dir in #( 227 /*) 228 for as_base in sh bash ksh sh5; do 229 # Try only shells that exist, to save several forks. 230 as_shell=$as_dir/$as_base 231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 233 CONFIG_SHELL=$as_shell as_have_required=yes 234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 235 break 2 236fi 237fi 238 done;; 239 esac 240 as_found=false 241done 242$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi; } 246IFS=$as_save_IFS 247 248 249 if test "x$CONFIG_SHELL" != x; then : 250 export CONFIG_SHELL 251 # We cannot yet assume a decent shell, so we have to provide a 252# neutralization value for shells without unset; and this also 253# works around shells that cannot unset nonexistent variables. 254# Preserve -v and -x to the replacement shell. 255BASH_ENV=/dev/null 256ENV=/dev/null 257(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 258case $- in # (((( 259 *v*x* | *x*v* ) as_opts=-vx ;; 260 *v* ) as_opts=-v ;; 261 *x* ) as_opts=-x ;; 262 * ) as_opts= ;; 263esac 264exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 265# Admittedly, this is quite paranoid, since all the known shells bail 266# out after a failed `exec'. 267$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 268exit 255 269fi 270 271 if test x$as_have_required = xno; then : 272 $as_echo "$0: This script requires a shell more modern than all" 273 $as_echo "$0: the shells that I found on your system." 274 if test x${ZSH_VERSION+set} = xset ; then 275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 $as_echo "$0: Please tell bug-autoconf@gnu.org and 279$0: https://github.com/RafaelOstertag/yapet/issues about 280$0: your system, including any error possibly output before 281$0: this message. Then install a modern shell, or manually 282$0: run the script under such a shell if you do have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='YAPET' 593PACKAGE_TARNAME='yapet' 594PACKAGE_VERSION='2.3' 595PACKAGE_STRING='YAPET 2.3' 596PACKAGE_BUGREPORT='https://github.com/RafaelOstertag/yapet/issues' 597PACKAGE_URL='' 598 599ac_unique_file="config.h.in" 600enable_option_checking=no 601# Factoring default headers for most tests. 602ac_includes_default="\ 603#include <stdio.h> 604#ifdef HAVE_SYS_TYPES_H 605# include <sys/types.h> 606#endif 607#ifdef HAVE_SYS_STAT_H 608# include <sys/stat.h> 609#endif 610#ifdef STDC_HEADERS 611# include <stdlib.h> 612# include <stddef.h> 613#else 614# ifdef HAVE_STDLIB_H 615# include <stdlib.h> 616# endif 617#endif 618#ifdef HAVE_STRING_H 619# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 620# include <memory.h> 621# endif 622# include <string.h> 623#endif 624#ifdef HAVE_STRINGS_H 625# include <strings.h> 626#endif 627#ifdef HAVE_INTTYPES_H 628# include <inttypes.h> 629#endif 630#ifdef HAVE_STDINT_H 631# include <stdint.h> 632#endif 633#ifdef HAVE_UNISTD_H 634# include <unistd.h> 635#endif" 636 637gt_needs= 638ac_subst_vars='am__EXEEXT_FALSE 639am__EXEEXT_TRUE 640LTLIBOBJS 641LIBOBJS 642DISABLE_DEBUG_FALSE 643DISABLE_DEBUG_TRUE 644DISABLEINSTALLDOC_FALSE 645DISABLEINSTALLDOC_TRUE 646USE_NLS_FALSE 647USE_NLS_TRUE 648ARGON2_LIBS 649ARGON2_CFLAGS 650CPPUNIT_LIBS 651CPPUNIT_CFLAGS 652PKG_CONFIG_LIBDIR 653PKG_CONFIG_PATH 654POSUB 655LTLIBINTL 656LIBINTL 657INTLLIBS 658LTLIBICONV 659LIBICONV 660INTL_MACOSX_LIBS 661XGETTEXT_EXTRA_OPTIONS 662MSGMERGE 663XGETTEXT_015 664XGETTEXT 665GMSGFMT_015 666MSGFMT_015 667GMSGFMT 668MSGFMT 669GETTEXT_MACRO_VERSION 670USE_NLS 671ALLOCA 672OPENSSL_LDFLAGS 673OPENSSL_LIBS 674OPENSSL_INCLUDES 675PKG_CONFIG 676HAVE_CXX14 677CXXCPP 678CPP 679LT_SYS_LIBRARY_PATH 680OTOOL64 681OTOOL 682LIPO 683NMEDIT 684DSYMUTIL 685MANIFEST_TOOL 686RANLIB 687DLLTOOL 688OBJDUMP 689LN_S 690NM 691ac_ct_DUMPBIN 692DUMPBIN 693LD 694FGREP 695EGREP 696GREP 697host_os 698host_vendor 699host_cpu 700host 701build_os 702build_vendor 703build_cpu 704build 705LIBTOOL 706ac_ct_AR 707AR 708SED 709am__fastdepCXX_FALSE 710am__fastdepCXX_TRUE 711CXXDEPMODE 712ac_ct_CXX 713CXXFLAGS 714CXX 715am__fastdepCC_FALSE 716am__fastdepCC_TRUE 717CCDEPMODE 718am__nodep 719AMDEPBACKSLASH 720AMDEP_FALSE 721AMDEP_TRUE 722am__include 723DEPDIR 724OBJEXT 725EXEEXT 726ac_ct_CC 727CPPFLAGS 728LDFLAGS 729CFLAGS 730CC 731AM_BACKSLASH 732AM_DEFAULT_VERBOSITY 733AM_DEFAULT_V 734AM_V 735am__untar 736am__tar 737AMTAR 738am__leading_dot 739SET_MAKE 740AWK 741mkdir_p 742MKDIR_P 743INSTALL_STRIP_PROGRAM 744STRIP 745install_sh 746MAKEINFO 747AUTOHEADER 748AUTOMAKE 749AUTOCONF 750ACLOCAL 751VERSION 752PACKAGE 753CYGPATH_W 754am__isrc 755INSTALL_DATA 756INSTALL_SCRIPT 757INSTALL_PROGRAM 758subdirs 759target_alias 760host_alias 761build_alias 762LIBS 763ECHO_T 764ECHO_N 765ECHO_C 766DEFS 767mandir 768localedir 769libdir 770psdir 771pdfdir 772dvidir 773htmldir 774infodir 775docdir 776oldincludedir 777includedir 778localstatedir 779sharedstatedir 780sysconfdir 781datadir 782datarootdir 783libexecdir 784sbindir 785bindir 786program_transform_name 787prefix 788exec_prefix 789PACKAGE_URL 790PACKAGE_BUGREPORT 791PACKAGE_STRING 792PACKAGE_VERSION 793PACKAGE_TARNAME 794PACKAGE_NAME 795PATH_SEPARATOR 796SHELL 797am__quote' 798ac_subst_files='' 799ac_user_opts=' 800enable_option_checking 801enable_silent_rules 802enable_dependency_tracking 803enable_shared 804enable_static 805with_pic 806enable_fast_install 807with_aix_soname 808with_gnu_ld 809with_sysroot 810enable_libtool_lock 811enable_debug 812enable_install_doc 813with_openssl 814enable_nls 815enable_rpath 816with_libiconv_prefix 817with_libintl_prefix 818' 819 ac_precious_vars='build_alias 820host_alias 821target_alias 822CC 823CFLAGS 824LDFLAGS 825LIBS 826CPPFLAGS 827CXX 828CXXFLAGS 829CCC 830LT_SYS_LIBRARY_PATH 831CPP 832CXXCPP 833PKG_CONFIG 834PKG_CONFIG_PATH 835PKG_CONFIG_LIBDIR 836CPPUNIT_CFLAGS 837CPPUNIT_LIBS 838ARGON2_CFLAGS 839ARGON2_LIBS' 840ac_subdirs_all='libyacurs' 841 842# Initialize some variables set by options. 843ac_init_help= 844ac_init_version=false 845ac_unrecognized_opts= 846ac_unrecognized_sep= 847# The variables have the same names as the options, with 848# dashes changed to underlines. 849cache_file=/dev/null 850exec_prefix=NONE 851no_create= 852no_recursion= 853prefix=NONE 854program_prefix=NONE 855program_suffix=NONE 856program_transform_name=s,x,x, 857silent= 858site= 859srcdir= 860verbose= 861x_includes=NONE 862x_libraries=NONE 863 864# Installation directory options. 865# These are left unexpanded so users can "make install exec_prefix=/foo" 866# and all the variables that are supposed to be based on exec_prefix 867# by default will actually change. 868# Use braces instead of parens because sh, perl, etc. also accept them. 869# (The list follows the same order as the GNU Coding Standards.) 870bindir='${exec_prefix}/bin' 871sbindir='${exec_prefix}/sbin' 872libexecdir='${exec_prefix}/libexec' 873datarootdir='${prefix}/share' 874datadir='${datarootdir}' 875sysconfdir='${prefix}/etc' 876sharedstatedir='${prefix}/com' 877localstatedir='${prefix}/var' 878includedir='${prefix}/include' 879oldincludedir='/usr/include' 880docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 881infodir='${datarootdir}/info' 882htmldir='${docdir}' 883dvidir='${docdir}' 884pdfdir='${docdir}' 885psdir='${docdir}' 886libdir='${exec_prefix}/lib' 887localedir='${datarootdir}/locale' 888mandir='${datarootdir}/man' 889 890ac_prev= 891ac_dashdash= 892for ac_option 893do 894 # If the previous option needs an argument, assign it. 895 if test -n "$ac_prev"; then 896 eval $ac_prev=\$ac_option 897 ac_prev= 898 continue 899 fi 900 901 case $ac_option in 902 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 903 *=) ac_optarg= ;; 904 *) ac_optarg=yes ;; 905 esac 906 907 # Accept the important Cygnus configure options, so we can diagnose typos. 908 909 case $ac_dashdash$ac_option in 910 --) 911 ac_dashdash=yes ;; 912 913 -bindir | --bindir | --bindi | --bind | --bin | --bi) 914 ac_prev=bindir ;; 915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 916 bindir=$ac_optarg ;; 917 918 -build | --build | --buil | --bui | --bu) 919 ac_prev=build_alias ;; 920 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 921 build_alias=$ac_optarg ;; 922 923 -cache-file | --cache-file | --cache-fil | --cache-fi \ 924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 925 ac_prev=cache_file ;; 926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 928 cache_file=$ac_optarg ;; 929 930 --config-cache | -C) 931 cache_file=config.cache ;; 932 933 -datadir | --datadir | --datadi | --datad) 934 ac_prev=datadir ;; 935 -datadir=* | --datadir=* | --datadi=* | --datad=*) 936 datadir=$ac_optarg ;; 937 938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 939 | --dataroo | --dataro | --datar) 940 ac_prev=datarootdir ;; 941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 943 datarootdir=$ac_optarg ;; 944 945 -disable-* | --disable-*) 946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 947 # Reject names that are not valid shell variable names. 948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 949 as_fn_error $? "invalid feature name: $ac_useropt" 950 ac_useropt_orig=$ac_useropt 951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 952 case $ac_user_opts in 953 *" 954"enable_$ac_useropt" 955"*) ;; 956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 957 ac_unrecognized_sep=', ';; 958 esac 959 eval enable_$ac_useropt=no ;; 960 961 -docdir | --docdir | --docdi | --doc | --do) 962 ac_prev=docdir ;; 963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 964 docdir=$ac_optarg ;; 965 966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 967 ac_prev=dvidir ;; 968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 969 dvidir=$ac_optarg ;; 970 971 -enable-* | --enable-*) 972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 973 # Reject names that are not valid shell variable names. 974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 975 as_fn_error $? "invalid feature name: $ac_useropt" 976 ac_useropt_orig=$ac_useropt 977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 978 case $ac_user_opts in 979 *" 980"enable_$ac_useropt" 981"*) ;; 982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 983 ac_unrecognized_sep=', ';; 984 esac 985 eval enable_$ac_useropt=\$ac_optarg ;; 986 987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 989 | --exec | --exe | --ex) 990 ac_prev=exec_prefix ;; 991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 993 | --exec=* | --exe=* | --ex=*) 994 exec_prefix=$ac_optarg ;; 995 996 -gas | --gas | --ga | --g) 997 # Obsolete; use --with-gas. 998 with_gas=yes ;; 999 1000 -help | --help | --hel | --he | -h) 1001 ac_init_help=long ;; 1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1003 ac_init_help=recursive ;; 1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1005 ac_init_help=short ;; 1006 1007 -host | --host | --hos | --ho) 1008 ac_prev=host_alias ;; 1009 -host=* | --host=* | --hos=* | --ho=*) 1010 host_alias=$ac_optarg ;; 1011 1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1013 ac_prev=htmldir ;; 1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1015 | --ht=*) 1016 htmldir=$ac_optarg ;; 1017 1018 -includedir | --includedir | --includedi | --included | --include \ 1019 | --includ | --inclu | --incl | --inc) 1020 ac_prev=includedir ;; 1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1022 | --includ=* | --inclu=* | --incl=* | --inc=*) 1023 includedir=$ac_optarg ;; 1024 1025 -infodir | --infodir | --infodi | --infod | --info | --inf) 1026 ac_prev=infodir ;; 1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1028 infodir=$ac_optarg ;; 1029 1030 -libdir | --libdir | --libdi | --libd) 1031 ac_prev=libdir ;; 1032 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1033 libdir=$ac_optarg ;; 1034 1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1036 | --libexe | --libex | --libe) 1037 ac_prev=libexecdir ;; 1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1039 | --libexe=* | --libex=* | --libe=*) 1040 libexecdir=$ac_optarg ;; 1041 1042 -localedir | --localedir | --localedi | --localed | --locale) 1043 ac_prev=localedir ;; 1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1045 localedir=$ac_optarg ;; 1046 1047 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1048 | --localstate | --localstat | --localsta | --localst | --locals) 1049 ac_prev=localstatedir ;; 1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1052 localstatedir=$ac_optarg ;; 1053 1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1055 ac_prev=mandir ;; 1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1057 mandir=$ac_optarg ;; 1058 1059 -nfp | --nfp | --nf) 1060 # Obsolete; use --without-fp. 1061 with_fp=no ;; 1062 1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1064 | --no-cr | --no-c | -n) 1065 no_create=yes ;; 1066 1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1069 no_recursion=yes ;; 1070 1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1073 | --oldin | --oldi | --old | --ol | --o) 1074 ac_prev=oldincludedir ;; 1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1078 oldincludedir=$ac_optarg ;; 1079 1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1081 ac_prev=prefix ;; 1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1083 prefix=$ac_optarg ;; 1084 1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1086 | --program-pre | --program-pr | --program-p) 1087 ac_prev=program_prefix ;; 1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1090 program_prefix=$ac_optarg ;; 1091 1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1093 | --program-suf | --program-su | --program-s) 1094 ac_prev=program_suffix ;; 1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1097 program_suffix=$ac_optarg ;; 1098 1099 -program-transform-name | --program-transform-name \ 1100 | --program-transform-nam | --program-transform-na \ 1101 | --program-transform-n | --program-transform- \ 1102 | --program-transform | --program-transfor \ 1103 | --program-transfo | --program-transf \ 1104 | --program-trans | --program-tran \ 1105 | --progr-tra | --program-tr | --program-t) 1106 ac_prev=program_transform_name ;; 1107 -program-transform-name=* | --program-transform-name=* \ 1108 | --program-transform-nam=* | --program-transform-na=* \ 1109 | --program-transform-n=* | --program-transform-=* \ 1110 | --program-transform=* | --program-transfor=* \ 1111 | --program-transfo=* | --program-transf=* \ 1112 | --program-trans=* | --program-tran=* \ 1113 | --progr-tra=* | --program-tr=* | --program-t=*) 1114 program_transform_name=$ac_optarg ;; 1115 1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1117 ac_prev=pdfdir ;; 1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1119 pdfdir=$ac_optarg ;; 1120 1121 -psdir | --psdir | --psdi | --psd | --ps) 1122 ac_prev=psdir ;; 1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1124 psdir=$ac_optarg ;; 1125 1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1127 | -silent | --silent | --silen | --sile | --sil) 1128 silent=yes ;; 1129 1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1131 ac_prev=sbindir ;; 1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1133 | --sbi=* | --sb=*) 1134 sbindir=$ac_optarg ;; 1135 1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1138 | --sharedst | --shareds | --shared | --share | --shar \ 1139 | --sha | --sh) 1140 ac_prev=sharedstatedir ;; 1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1144 | --sha=* | --sh=*) 1145 sharedstatedir=$ac_optarg ;; 1146 1147 -site | --site | --sit) 1148 ac_prev=site ;; 1149 -site=* | --site=* | --sit=*) 1150 site=$ac_optarg ;; 1151 1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1153 ac_prev=srcdir ;; 1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1155 srcdir=$ac_optarg ;; 1156 1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1158 | --syscon | --sysco | --sysc | --sys | --sy) 1159 ac_prev=sysconfdir ;; 1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1162 sysconfdir=$ac_optarg ;; 1163 1164 -target | --target | --targe | --targ | --tar | --ta | --t) 1165 ac_prev=target_alias ;; 1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1167 target_alias=$ac_optarg ;; 1168 1169 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1170 verbose=yes ;; 1171 1172 -version | --version | --versio | --versi | --vers | -V) 1173 ac_init_version=: ;; 1174 1175 -with-* | --with-*) 1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1177 # Reject names that are not valid shell variable names. 1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1179 as_fn_error $? "invalid package name: $ac_useropt" 1180 ac_useropt_orig=$ac_useropt 1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1182 case $ac_user_opts in 1183 *" 1184"with_$ac_useropt" 1185"*) ;; 1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1187 ac_unrecognized_sep=', ';; 1188 esac 1189 eval with_$ac_useropt=\$ac_optarg ;; 1190 1191 -without-* | --without-*) 1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1193 # Reject names that are not valid shell variable names. 1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1195 as_fn_error $? "invalid package name: $ac_useropt" 1196 ac_useropt_orig=$ac_useropt 1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1198 case $ac_user_opts in 1199 *" 1200"with_$ac_useropt" 1201"*) ;; 1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1203 ac_unrecognized_sep=', ';; 1204 esac 1205 eval with_$ac_useropt=no ;; 1206 1207 --x) 1208 # Obsolete; use --with-x. 1209 with_x=yes ;; 1210 1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1212 | --x-incl | --x-inc | --x-in | --x-i) 1213 ac_prev=x_includes ;; 1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1216 x_includes=$ac_optarg ;; 1217 1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1220 ac_prev=x_libraries ;; 1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1223 x_libraries=$ac_optarg ;; 1224 1225 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1226Try \`$0 --help' for more information" 1227 ;; 1228 1229 *=*) 1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1231 # Reject names that are not valid shell variable names. 1232 case $ac_envvar in #( 1233 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1234 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1235 esac 1236 eval $ac_envvar=\$ac_optarg 1237 export $ac_envvar ;; 1238 1239 *) 1240 # FIXME: should be removed in autoconf 3.0. 1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1244 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1245 ;; 1246 1247 esac 1248done 1249 1250if test -n "$ac_prev"; then 1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1252 as_fn_error $? "missing argument to $ac_option" 1253fi 1254 1255if test -n "$ac_unrecognized_opts"; then 1256 case $enable_option_checking in 1257 no) ;; 1258 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1260 esac 1261fi 1262 1263# Check all directory arguments for consistency. 1264for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1265 datadir sysconfdir sharedstatedir localstatedir includedir \ 1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1267 libdir localedir mandir 1268do 1269 eval ac_val=\$$ac_var 1270 # Remove trailing slashes. 1271 case $ac_val in 1272 */ ) 1273 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1274 eval $ac_var=\$ac_val;; 1275 esac 1276 # Be sure to have absolute directory names. 1277 case $ac_val in 1278 [\\/$]* | ?:[\\/]* ) continue;; 1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1280 esac 1281 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1282done 1283 1284# There might be people who depend on the old broken behavior: `$host' 1285# used to hold the argument of --host etc. 1286# FIXME: To remove some day. 1287build=$build_alias 1288host=$host_alias 1289target=$target_alias 1290 1291# FIXME: To remove some day. 1292if test "x$host_alias" != x; then 1293 if test "x$build_alias" = x; then 1294 cross_compiling=maybe 1295 elif test "x$build_alias" != "x$host_alias"; then 1296 cross_compiling=yes 1297 fi 1298fi 1299 1300ac_tool_prefix= 1301test -n "$host_alias" && ac_tool_prefix=$host_alias- 1302 1303test "$silent" = yes && exec 6>/dev/null 1304 1305 1306ac_pwd=`pwd` && test -n "$ac_pwd" && 1307ac_ls_di=`ls -di .` && 1308ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1309 as_fn_error $? "working directory cannot be determined" 1310test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1311 as_fn_error $? "pwd does not report name of working directory" 1312 1313 1314# Find the source files, if location was not specified. 1315if test -z "$srcdir"; then 1316 ac_srcdir_defaulted=yes 1317 # Try the directory containing this script, then the parent directory. 1318 ac_confdir=`$as_dirname -- "$as_myself" || 1319$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1320 X"$as_myself" : 'X\(//\)[^/]' \| \ 1321 X"$as_myself" : 'X\(//\)$' \| \ 1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1323$as_echo X"$as_myself" | 1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1325 s//\1/ 1326 q 1327 } 1328 /^X\(\/\/\)[^/].*/{ 1329 s//\1/ 1330 q 1331 } 1332 /^X\(\/\/\)$/{ 1333 s//\1/ 1334 q 1335 } 1336 /^X\(\/\).*/{ 1337 s//\1/ 1338 q 1339 } 1340 s/.*/./; q'` 1341 srcdir=$ac_confdir 1342 if test ! -r "$srcdir/$ac_unique_file"; then 1343 srcdir=.. 1344 fi 1345else 1346 ac_srcdir_defaulted=no 1347fi 1348if test ! -r "$srcdir/$ac_unique_file"; then 1349 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1350 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1351fi 1352ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1353ac_abs_confdir=`( 1354 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1355 pwd)` 1356# When building in place, set srcdir=. 1357if test "$ac_abs_confdir" = "$ac_pwd"; then 1358 srcdir=. 1359fi 1360# Remove unnecessary trailing slashes from srcdir. 1361# Double slashes in file names in object file debugging info 1362# mess up M-x gdb in Emacs. 1363case $srcdir in 1364*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1365esac 1366for ac_var in $ac_precious_vars; do 1367 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1368 eval ac_env_${ac_var}_value=\$${ac_var} 1369 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1370 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1371done 1372 1373# 1374# Report the --help message. 1375# 1376if test "$ac_init_help" = "long"; then 1377 # Omit some internal or obsolete options to make the list less imposing. 1378 # This message is too long to be a string in the A/UX 3.1 sh. 1379 cat <<_ACEOF 1380\`configure' configures YAPET 2.3 to adapt to many kinds of systems. 1381 1382Usage: $0 [OPTION]... [VAR=VALUE]... 1383 1384To assign environment variables (e.g., CC, CFLAGS...), specify them as 1385VAR=VALUE. See below for descriptions of some of the useful variables. 1386 1387Defaults for the options are specified in brackets. 1388 1389Configuration: 1390 -h, --help display this help and exit 1391 --help=short display options specific to this package 1392 --help=recursive display the short help of all the included packages 1393 -V, --version display version information and exit 1394 -q, --quiet, --silent do not print \`checking ...' messages 1395 --cache-file=FILE cache test results in FILE [disabled] 1396 -C, --config-cache alias for \`--cache-file=config.cache' 1397 -n, --no-create do not create output files 1398 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1399 1400Installation directories: 1401 --prefix=PREFIX install architecture-independent files in PREFIX 1402 [$ac_default_prefix] 1403 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1404 [PREFIX] 1405 1406By default, \`make install' will install all the files in 1407\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1408an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1409for instance \`--prefix=\$HOME'. 1410 1411For better control, use the options below. 1412 1413Fine tuning of the installation directories: 1414 --bindir=DIR user executables [EPREFIX/bin] 1415 --sbindir=DIR system admin executables [EPREFIX/sbin] 1416 --libexecdir=DIR program executables [EPREFIX/libexec] 1417 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1418 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1419 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1420 --libdir=DIR object code libraries [EPREFIX/lib] 1421 --includedir=DIR C header files [PREFIX/include] 1422 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1423 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1424 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1425 --infodir=DIR info documentation [DATAROOTDIR/info] 1426 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1427 --mandir=DIR man documentation [DATAROOTDIR/man] 1428 --docdir=DIR documentation root [DATAROOTDIR/doc/yapet] 1429 --htmldir=DIR html documentation [DOCDIR] 1430 --dvidir=DIR dvi documentation [DOCDIR] 1431 --pdfdir=DIR pdf documentation [DOCDIR] 1432 --psdir=DIR ps documentation [DOCDIR] 1433_ACEOF 1434 1435 cat <<\_ACEOF 1436 1437Program names: 1438 --program-prefix=PREFIX prepend PREFIX to installed program names 1439 --program-suffix=SUFFIX append SUFFIX to installed program names 1440 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1441 1442System types: 1443 --build=BUILD configure for building on BUILD [guessed] 1444 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1445_ACEOF 1446fi 1447 1448if test -n "$ac_init_help"; then 1449 case $ac_init_help in 1450 short | recursive ) echo "Configuration of YAPET 2.3:";; 1451 esac 1452 cat <<\_ACEOF 1453 1454Optional Features: 1455 --disable-option-checking ignore unrecognized --enable/--with options 1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1458 --enable-silent-rules less verbose build output (undo: "make V=1") 1459 --disable-silent-rules verbose build output (undo: "make V=0") 1460 --enable-dependency-tracking 1461 do not reject slow dependency extractors 1462 --disable-dependency-tracking 1463 speeds up one-time build 1464 --enable-shared[=PKGS] build shared libraries [default=yes] 1465 --enable-static[=PKGS] build static libraries [default=yes] 1466 --enable-fast-install[=PKGS] 1467 optimize for fast installation [default=yes] 1468 --disable-libtool-lock avoid locking (might break parallel builds) 1469 --enable-debug enable debug code (Default: no) 1470 --disable-install-doc disable installation of documentation (man pages, 1471 text and html files; Default: no) 1472 --disable-nls do not use Native Language Support 1473 --disable-rpath do not hardcode runtime library paths 1474 1475Optional Packages: 1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1478 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1479 both] 1480 --with-aix-soname=aix|svr4|both 1481 shared library versioning (aka "SONAME") variant to 1482 provide on AIX, [default=aix]. 1483 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1484 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1485 compiler's sysroot if not specified). 1486 --with-openssl=DIR root of the OpenSSL directory 1487 --with-gnu-ld assume the C compiler uses GNU ld default=no 1488 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1489 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1490 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1491 --without-libintl-prefix don't search for libintl in includedir and libdir 1492 1493Some influential environment variables: 1494 CC C compiler command 1495 CFLAGS C compiler flags 1496 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1497 nonstandard directory <lib dir> 1498 LIBS libraries to pass to the linker, e.g. -l<library> 1499 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1500 you have headers in a nonstandard directory <include dir> 1501 CXX C++ compiler command 1502 CXXFLAGS C++ compiler flags 1503 LT_SYS_LIBRARY_PATH 1504 User-defined run-time library search path. 1505 CPP C preprocessor 1506 CXXCPP C++ preprocessor 1507 PKG_CONFIG path to pkg-config utility 1508 PKG_CONFIG_PATH 1509 directories to add to pkg-config's search path 1510 PKG_CONFIG_LIBDIR 1511 path overriding pkg-config's built-in search path 1512 CPPUNIT_CFLAGS 1513 C compiler flags for CPPUNIT, overriding pkg-config 1514 CPPUNIT_LIBS 1515 linker flags for CPPUNIT, overriding pkg-config 1516 ARGON2_CFLAGS 1517 C compiler flags for ARGON2, overriding pkg-config 1518 ARGON2_LIBS linker flags for ARGON2, overriding pkg-config 1519 1520Use these variables to override the choices made by `configure' or to help 1521it to find libraries and programs with nonstandard names/locations. 1522 1523Report bugs to <https://github.com/RafaelOstertag/yapet/issues>. 1524_ACEOF 1525ac_status=$? 1526fi 1527 1528if test "$ac_init_help" = "recursive"; then 1529 # If there are subdirs, report their specific --help. 1530 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1531 test -d "$ac_dir" || 1532 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1533 continue 1534 ac_builddir=. 1535 1536case "$ac_dir" in 1537.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1538*) 1539 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1540 # A ".." for each directory in $ac_dir_suffix. 1541 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1542 case $ac_top_builddir_sub in 1543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1545 esac ;; 1546esac 1547ac_abs_top_builddir=$ac_pwd 1548ac_abs_builddir=$ac_pwd$ac_dir_suffix 1549# for backward compatibility: 1550ac_top_builddir=$ac_top_build_prefix 1551 1552case $srcdir in 1553 .) # We are building in place. 1554 ac_srcdir=. 1555 ac_top_srcdir=$ac_top_builddir_sub 1556 ac_abs_top_srcdir=$ac_pwd ;; 1557 [\\/]* | ?:[\\/]* ) # Absolute name. 1558 ac_srcdir=$srcdir$ac_dir_suffix; 1559 ac_top_srcdir=$srcdir 1560 ac_abs_top_srcdir=$srcdir ;; 1561 *) # Relative name. 1562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1563 ac_top_srcdir=$ac_top_build_prefix$srcdir 1564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1565esac 1566ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1567 1568 cd "$ac_dir" || { ac_status=$?; continue; } 1569 # Check for guested configure. 1570 if test -f "$ac_srcdir/configure.gnu"; then 1571 echo && 1572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1573 elif test -f "$ac_srcdir/configure"; then 1574 echo && 1575 $SHELL "$ac_srcdir/configure" --help=recursive 1576 else 1577 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1578 fi || ac_status=$? 1579 cd "$ac_pwd" || { ac_status=$?; break; } 1580 done 1581fi 1582 1583test -n "$ac_init_help" && exit $ac_status 1584if $ac_init_version; then 1585 cat <<\_ACEOF 1586YAPET configure 2.3 1587generated by GNU Autoconf 2.69 1588 1589Copyright (C) 2012 Free Software Foundation, Inc. 1590This configure script is free software; the Free Software Foundation 1591gives unlimited permission to copy, distribute and modify it. 1592_ACEOF 1593 exit 1594fi 1595 1596## ------------------------ ## 1597## Autoconf initialization. ## 1598## ------------------------ ## 1599 1600# ac_fn_c_try_compile LINENO 1601# -------------------------- 1602# Try to compile conftest.$ac_ext, and return whether this succeeded. 1603ac_fn_c_try_compile () 1604{ 1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1606 rm -f conftest.$ac_objext 1607 if { { ac_try="$ac_compile" 1608case "(($ac_try" in 1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1610 *) ac_try_echo=$ac_try;; 1611esac 1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1613$as_echo "$ac_try_echo"; } >&5 1614 (eval "$ac_compile") 2>conftest.err 1615 ac_status=$? 1616 if test -s conftest.err; then 1617 grep -v '^ *+' conftest.err >conftest.er1 1618 cat conftest.er1 >&5 1619 mv -f conftest.er1 conftest.err 1620 fi 1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1622 test $ac_status = 0; } && { 1623 test -z "$ac_c_werror_flag" || 1624 test ! -s conftest.err 1625 } && test -s conftest.$ac_objext; then : 1626 ac_retval=0 1627else 1628 $as_echo "$as_me: failed program was:" >&5 1629sed 's/^/| /' conftest.$ac_ext >&5 1630 1631 ac_retval=1 1632fi 1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1634 as_fn_set_status $ac_retval 1635 1636} # ac_fn_c_try_compile 1637 1638# ac_fn_cxx_try_compile LINENO 1639# ---------------------------- 1640# Try to compile conftest.$ac_ext, and return whether this succeeded. 1641ac_fn_cxx_try_compile () 1642{ 1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1644 rm -f conftest.$ac_objext 1645 if { { ac_try="$ac_compile" 1646case "(($ac_try" in 1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1648 *) ac_try_echo=$ac_try;; 1649esac 1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1651$as_echo "$ac_try_echo"; } >&5 1652 (eval "$ac_compile") 2>conftest.err 1653 ac_status=$? 1654 if test -s conftest.err; then 1655 grep -v '^ *+' conftest.err >conftest.er1 1656 cat conftest.er1 >&5 1657 mv -f conftest.er1 conftest.err 1658 fi 1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1660 test $ac_status = 0; } && { 1661 test -z "$ac_cxx_werror_flag" || 1662 test ! -s conftest.err 1663 } && test -s conftest.$ac_objext; then : 1664 ac_retval=0 1665else 1666 $as_echo "$as_me: failed program was:" >&5 1667sed 's/^/| /' conftest.$ac_ext >&5 1668 1669 ac_retval=1 1670fi 1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1672 as_fn_set_status $ac_retval 1673 1674} # ac_fn_cxx_try_compile 1675 1676# ac_fn_c_try_link LINENO 1677# ----------------------- 1678# Try to link conftest.$ac_ext, and return whether this succeeded. 1679ac_fn_c_try_link () 1680{ 1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1682 rm -f conftest.$ac_objext conftest$ac_exeext 1683 if { { ac_try="$ac_link" 1684case "(($ac_try" in 1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1686 *) ac_try_echo=$ac_try;; 1687esac 1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1689$as_echo "$ac_try_echo"; } >&5 1690 (eval "$ac_link") 2>conftest.err 1691 ac_status=$? 1692 if test -s conftest.err; then 1693 grep -v '^ *+' conftest.err >conftest.er1 1694 cat conftest.er1 >&5 1695 mv -f conftest.er1 conftest.err 1696 fi 1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1698 test $ac_status = 0; } && { 1699 test -z "$ac_c_werror_flag" || 1700 test ! -s conftest.err 1701 } && test -s conftest$ac_exeext && { 1702 test "$cross_compiling" = yes || 1703 test -x conftest$ac_exeext 1704 }; then : 1705 ac_retval=0 1706else 1707 $as_echo "$as_me: failed program was:" >&5 1708sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 ac_retval=1 1711fi 1712 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1713 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1714 # interfere with the next link command; also delete a directory that is 1715 # left behind by Apple's compiler. We do this before executing the actions. 1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1718 as_fn_set_status $ac_retval 1719 1720} # ac_fn_c_try_link 1721 1722# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1723# ------------------------------------------------------- 1724# Tests whether HEADER exists and can be compiled using the include files in 1725# INCLUDES, setting the cache variable VAR accordingly. 1726ac_fn_c_check_header_compile () 1727{ 1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1730$as_echo_n "checking for $2... " >&6; } 1731if eval \${$3+:} false; then : 1732 $as_echo_n "(cached) " >&6 1733else 1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1735/* end confdefs.h. */ 1736$4 1737#include <$2> 1738_ACEOF 1739if ac_fn_c_try_compile "$LINENO"; then : 1740 eval "$3=yes" 1741else 1742 eval "$3=no" 1743fi 1744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1745fi 1746eval ac_res=\$$3 1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1748$as_echo "$ac_res" >&6; } 1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1750 1751} # ac_fn_c_check_header_compile 1752 1753# ac_fn_c_try_cpp LINENO 1754# ---------------------- 1755# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1756ac_fn_c_try_cpp () 1757{ 1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1759 if { { ac_try="$ac_cpp conftest.$ac_ext" 1760case "(($ac_try" in 1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1762 *) ac_try_echo=$ac_try;; 1763esac 1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1765$as_echo "$ac_try_echo"; } >&5 1766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1767 ac_status=$? 1768 if test -s conftest.err; then 1769 grep -v '^ *+' conftest.err >conftest.er1 1770 cat conftest.er1 >&5 1771 mv -f conftest.er1 conftest.err 1772 fi 1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1774 test $ac_status = 0; } > conftest.i && { 1775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1776 test ! -s conftest.err 1777 }; then : 1778 ac_retval=0 1779else 1780 $as_echo "$as_me: failed program was:" >&5 1781sed 's/^/| /' conftest.$ac_ext >&5 1782 1783 ac_retval=1 1784fi 1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1786 as_fn_set_status $ac_retval 1787 1788} # ac_fn_c_try_cpp 1789 1790# ac_fn_c_try_run LINENO 1791# ---------------------- 1792# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1793# that executables *can* be run. 1794ac_fn_c_try_run () 1795{ 1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1797 if { { ac_try="$ac_link" 1798case "(($ac_try" in 1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1800 *) ac_try_echo=$ac_try;; 1801esac 1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1803$as_echo "$ac_try_echo"; } >&5 1804 (eval "$ac_link") 2>&5 1805 ac_status=$? 1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1807 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1808 { { case "(($ac_try" in 1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1810 *) ac_try_echo=$ac_try;; 1811esac 1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1813$as_echo "$ac_try_echo"; } >&5 1814 (eval "$ac_try") 2>&5 1815 ac_status=$? 1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1817 test $ac_status = 0; }; }; then : 1818 ac_retval=0 1819else 1820 $as_echo "$as_me: program exited with status $ac_status" >&5 1821 $as_echo "$as_me: failed program was:" >&5 1822sed 's/^/| /' conftest.$ac_ext >&5 1823 1824 ac_retval=$ac_status 1825fi 1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1828 as_fn_set_status $ac_retval 1829 1830} # ac_fn_c_try_run 1831 1832# ac_fn_c_check_func LINENO FUNC VAR 1833# ---------------------------------- 1834# Tests whether FUNC exists, setting the cache variable VAR accordingly 1835ac_fn_c_check_func () 1836{ 1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1839$as_echo_n "checking for $2... " >&6; } 1840if eval \${$3+:} false; then : 1841 $as_echo_n "(cached) " >&6 1842else 1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1844/* end confdefs.h. */ 1845/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1846 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1847#define $2 innocuous_$2 1848 1849/* System header to define __stub macros and hopefully few prototypes, 1850 which can conflict with char $2 (); below. 1851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1852 <limits.h> exists even on freestanding compilers. */ 1853 1854#ifdef __STDC__ 1855# include <limits.h> 1856#else 1857# include <assert.h> 1858#endif 1859 1860#undef $2 1861 1862/* Override any GCC internal prototype to avoid an error. 1863 Use char because int might match the return type of a GCC 1864 builtin and then its argument prototype would still apply. */ 1865#ifdef __cplusplus 1866extern "C" 1867#endif 1868char $2 (); 1869/* The GNU C library defines this for functions which it implements 1870 to always fail with ENOSYS. Some functions are actually named 1871 something starting with __ and the normal name is an alias. */ 1872#if defined __stub_$2 || defined __stub___$2 1873choke me 1874#endif 1875 1876int 1877main () 1878{ 1879return $2 (); 1880 ; 1881 return 0; 1882} 1883_ACEOF 1884if ac_fn_c_try_link "$LINENO"; then : 1885 eval "$3=yes" 1886else 1887 eval "$3=no" 1888fi 1889rm -f core conftest.err conftest.$ac_objext \ 1890 conftest$ac_exeext conftest.$ac_ext 1891fi 1892eval ac_res=\$$3 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1894$as_echo "$ac_res" >&6; } 1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1896 1897} # ac_fn_c_check_func 1898 1899# ac_fn_cxx_try_cpp LINENO 1900# ------------------------ 1901# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1902ac_fn_cxx_try_cpp () 1903{ 1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1905 if { { ac_try="$ac_cpp conftest.$ac_ext" 1906case "(($ac_try" in 1907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1908 *) ac_try_echo=$ac_try;; 1909esac 1910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1911$as_echo "$ac_try_echo"; } >&5 1912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1913 ac_status=$? 1914 if test -s conftest.err; then 1915 grep -v '^ *+' conftest.err >conftest.er1 1916 cat conftest.er1 >&5 1917 mv -f conftest.er1 conftest.err 1918 fi 1919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1920 test $ac_status = 0; } > conftest.i && { 1921 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1922 test ! -s conftest.err 1923 }; then : 1924 ac_retval=0 1925else 1926 $as_echo "$as_me: failed program was:" >&5 1927sed 's/^/| /' conftest.$ac_ext >&5 1928 1929 ac_retval=1 1930fi 1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1932 as_fn_set_status $ac_retval 1933 1934} # ac_fn_cxx_try_cpp 1935 1936# ac_fn_cxx_try_link LINENO 1937# ------------------------- 1938# Try to link conftest.$ac_ext, and return whether this succeeded. 1939ac_fn_cxx_try_link () 1940{ 1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1942 rm -f conftest.$ac_objext conftest$ac_exeext 1943 if { { ac_try="$ac_link" 1944case "(($ac_try" in 1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1946 *) ac_try_echo=$ac_try;; 1947esac 1948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1949$as_echo "$ac_try_echo"; } >&5 1950 (eval "$ac_link") 2>conftest.err 1951 ac_status=$? 1952 if test -s conftest.err; then 1953 grep -v '^ *+' conftest.err >conftest.er1 1954 cat conftest.er1 >&5 1955 mv -f conftest.er1 conftest.err 1956 fi 1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1958 test $ac_status = 0; } && { 1959 test -z "$ac_cxx_werror_flag" || 1960 test ! -s conftest.err 1961 } && test -s conftest$ac_exeext && { 1962 test "$cross_compiling" = yes || 1963 test -x conftest$ac_exeext 1964 }; then : 1965 ac_retval=0 1966else 1967 $as_echo "$as_me: failed program was:" >&5 1968sed 's/^/| /' conftest.$ac_ext >&5 1969 1970 ac_retval=1 1971fi 1972 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1973 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1974 # interfere with the next link command; also delete a directory that is 1975 # left behind by Apple's compiler. We do this before executing the actions. 1976 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1978 as_fn_set_status $ac_retval 1979 1980} # ac_fn_cxx_try_link 1981 1982# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 1983# --------------------------------------------------------- 1984# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1985# the include files in INCLUDES and setting the cache variable VAR 1986# accordingly. 1987ac_fn_cxx_check_header_mongrel () 1988{ 1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1990 if eval \${$3+:} false; then : 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1992$as_echo_n "checking for $2... " >&6; } 1993if eval \${$3+:} false; then : 1994 $as_echo_n "(cached) " >&6 1995fi 1996eval ac_res=\$$3 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1998$as_echo "$ac_res" >&6; } 1999else 2000 # Is the header compilable? 2001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2002$as_echo_n "checking $2 usability... " >&6; } 2003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2004/* end confdefs.h. */ 2005$4 2006#include <$2> 2007_ACEOF 2008if ac_fn_cxx_try_compile "$LINENO"; then : 2009 ac_header_compiler=yes 2010else 2011 ac_header_compiler=no 2012fi 2013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2015$as_echo "$ac_header_compiler" >&6; } 2016 2017# Is the header present? 2018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2019$as_echo_n "checking $2 presence... " >&6; } 2020cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2021/* end confdefs.h. */ 2022#include <$2> 2023_ACEOF 2024if ac_fn_cxx_try_cpp "$LINENO"; then : 2025 ac_header_preproc=yes 2026else 2027 ac_header_preproc=no 2028fi 2029rm -f conftest.err conftest.i conftest.$ac_ext 2030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2031$as_echo "$ac_header_preproc" >&6; } 2032 2033# So? What about this header? 2034case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2035 yes:no: ) 2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2037$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2039$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2040 ;; 2041 no:yes:* ) 2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2043$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2045$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2047$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2049$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2051$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2052( $as_echo "## ------------------------------------------------------------- ## 2053## Report this to https://github.com/RafaelOstertag/yapet/issues ## 2054## ------------------------------------------------------------- ##" 2055 ) | sed "s/^/$as_me: WARNING: /" >&2 2056 ;; 2057esac 2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2059$as_echo_n "checking for $2... " >&6; } 2060if eval \${$3+:} false; then : 2061 $as_echo_n "(cached) " >&6 2062else 2063 eval "$3=\$ac_header_compiler" 2064fi 2065eval ac_res=\$$3 2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2067$as_echo "$ac_res" >&6; } 2068fi 2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2070 2071} # ac_fn_cxx_check_header_mongrel 2072 2073# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 2074# --------------------------------------------- 2075# Tests whether TYPE exists after having included INCLUDES, setting cache 2076# variable VAR accordingly. 2077ac_fn_cxx_check_type () 2078{ 2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2081$as_echo_n "checking for $2... " >&6; } 2082if eval \${$3+:} false; then : 2083 $as_echo_n "(cached) " >&6 2084else 2085 eval "$3=no" 2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2087/* end confdefs.h. */ 2088$4 2089int 2090main () 2091{ 2092if (sizeof ($2)) 2093 return 0; 2094 ; 2095 return 0; 2096} 2097_ACEOF 2098if ac_fn_cxx_try_compile "$LINENO"; then : 2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2100/* end confdefs.h. */ 2101$4 2102int 2103main () 2104{ 2105if (sizeof (($2))) 2106 return 0; 2107 ; 2108 return 0; 2109} 2110_ACEOF 2111if ac_fn_cxx_try_compile "$LINENO"; then : 2112 2113else 2114 eval "$3=yes" 2115fi 2116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2117fi 2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2119fi 2120eval ac_res=\$$3 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2122$as_echo "$ac_res" >&6; } 2123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2124 2125} # ac_fn_cxx_check_type 2126 2127# ac_fn_cxx_check_func LINENO FUNC VAR 2128# ------------------------------------ 2129# Tests whether FUNC exists, setting the cache variable VAR accordingly 2130ac_fn_cxx_check_func () 2131{ 2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2134$as_echo_n "checking for $2... " >&6; } 2135if eval \${$3+:} false; then : 2136 $as_echo_n "(cached) " >&6 2137else 2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2139/* end confdefs.h. */ 2140/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2141 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2142#define $2 innocuous_$2 2143 2144/* System header to define __stub macros and hopefully few prototypes, 2145 which can conflict with char $2 (); below. 2146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2147 <limits.h> exists even on freestanding compilers. */ 2148 2149#ifdef __STDC__ 2150# include <limits.h> 2151#else 2152# include <assert.h> 2153#endif 2154 2155#undef $2 2156 2157/* Override any GCC internal prototype to avoid an error. 2158 Use char because int might match the return type of a GCC 2159 builtin and then its argument prototype would still apply. */ 2160#ifdef __cplusplus 2161extern "C" 2162#endif 2163char $2 (); 2164/* The GNU C library defines this for functions which it implements 2165 to always fail with ENOSYS. Some functions are actually named 2166 something starting with __ and the normal name is an alias. */ 2167#if defined __stub_$2 || defined __stub___$2 2168choke me 2169#endif 2170 2171int 2172main () 2173{ 2174return $2 (); 2175 ; 2176 return 0; 2177} 2178_ACEOF 2179if ac_fn_cxx_try_link "$LINENO"; then : 2180 eval "$3=yes" 2181else 2182 eval "$3=no" 2183fi 2184rm -f core conftest.err conftest.$ac_objext \ 2185 conftest$ac_exeext conftest.$ac_ext 2186fi 2187eval ac_res=\$$3 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2189$as_echo "$ac_res" >&6; } 2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2191 2192} # ac_fn_cxx_check_func 2193 2194# ac_fn_cxx_try_run LINENO 2195# ------------------------ 2196# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2197# that executables *can* be run. 2198ac_fn_cxx_try_run () 2199{ 2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2201 if { { ac_try="$ac_link" 2202case "(($ac_try" in 2203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2204 *) ac_try_echo=$ac_try;; 2205esac 2206eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2207$as_echo "$ac_try_echo"; } >&5 2208 (eval "$ac_link") 2>&5 2209 ac_status=$? 2210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2211 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2212 { { case "(($ac_try" in 2213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2214 *) ac_try_echo=$ac_try;; 2215esac 2216eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2217$as_echo "$ac_try_echo"; } >&5 2218 (eval "$ac_try") 2>&5 2219 ac_status=$? 2220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2221 test $ac_status = 0; }; }; then : 2222 ac_retval=0 2223else 2224 $as_echo "$as_me: program exited with status $ac_status" >&5 2225 $as_echo "$as_me: failed program was:" >&5 2226sed 's/^/| /' conftest.$ac_ext >&5 2227 2228 ac_retval=$ac_status 2229fi 2230 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2231 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2232 as_fn_set_status $ac_retval 2233 2234} # ac_fn_cxx_try_run 2235 2236# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2237# ---------------------------------------------- 2238# Tries to find the compile-time value of EXPR in a program that includes 2239# INCLUDES, setting VAR accordingly. Returns whether the value could be 2240# computed 2241ac_fn_cxx_compute_int () 2242{ 2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2244 if test "$cross_compiling" = yes; then 2245 # Depending upon the size, compute the lo and hi bounds. 2246cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2247/* end confdefs.h. */ 2248$4 2249int 2250main () 2251{ 2252static int test_array [1 - 2 * !(($2) >= 0)]; 2253test_array [0] = 0; 2254return test_array [0]; 2255 2256 ; 2257 return 0; 2258} 2259_ACEOF 2260if ac_fn_cxx_try_compile "$LINENO"; then : 2261 ac_lo=0 ac_mid=0 2262 while :; do 2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2264/* end confdefs.h. */ 2265$4 2266int 2267main () 2268{ 2269static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2270test_array [0] = 0; 2271return test_array [0]; 2272 2273 ; 2274 return 0; 2275} 2276_ACEOF 2277if ac_fn_cxx_try_compile "$LINENO"; then : 2278 ac_hi=$ac_mid; break 2279else 2280 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2281 if test $ac_lo -le $ac_mid; then 2282 ac_lo= ac_hi= 2283 break 2284 fi 2285 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2286fi 2287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2288 done 2289else 2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2291/* end confdefs.h. */ 2292$4 2293int 2294main () 2295{ 2296static int test_array [1 - 2 * !(($2) < 0)]; 2297test_array [0] = 0; 2298return test_array [0]; 2299 2300 ; 2301 return 0; 2302} 2303_ACEOF 2304if ac_fn_cxx_try_compile "$LINENO"; then : 2305 ac_hi=-1 ac_mid=-1 2306 while :; do 2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2308/* end confdefs.h. */ 2309$4 2310int 2311main () 2312{ 2313static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2314test_array [0] = 0; 2315return test_array [0]; 2316 2317 ; 2318 return 0; 2319} 2320_ACEOF 2321if ac_fn_cxx_try_compile "$LINENO"; then : 2322 ac_lo=$ac_mid; break 2323else 2324 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2325 if test $ac_mid -le $ac_hi; then 2326 ac_lo= ac_hi= 2327 break 2328 fi 2329 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2330fi 2331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2332 done 2333else 2334 ac_lo= ac_hi= 2335fi 2336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2337fi 2338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2339# Binary search between lo and hi bounds. 2340while test "x$ac_lo" != "x$ac_hi"; do 2341 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2343/* end confdefs.h. */ 2344$4 2345int 2346main () 2347{ 2348static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2349test_array [0] = 0; 2350return test_array [0]; 2351 2352 ; 2353 return 0; 2354} 2355_ACEOF 2356if ac_fn_cxx_try_compile "$LINENO"; then : 2357 ac_hi=$ac_mid 2358else 2359 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2360fi 2361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2362done 2363case $ac_lo in #(( 2364?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2365'') ac_retval=1 ;; 2366esac 2367 else 2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2369/* end confdefs.h. */ 2370$4 2371static long int longval () { return $2; } 2372static unsigned long int ulongval () { return $2; } 2373#include <stdio.h> 2374#include <stdlib.h> 2375int 2376main () 2377{ 2378 2379 FILE *f = fopen ("conftest.val", "w"); 2380 if (! f) 2381 return 1; 2382 if (($2) < 0) 2383 { 2384 long int i = longval (); 2385 if (i != ($2)) 2386 return 1; 2387 fprintf (f, "%ld", i); 2388 } 2389 else 2390 { 2391 unsigned long int i = ulongval (); 2392 if (i != ($2)) 2393 return 1; 2394 fprintf (f, "%lu", i); 2395 } 2396 /* Do not output a trailing newline, as this causes \r\n confusion 2397 on some platforms. */ 2398 return ferror (f) || fclose (f) != 0; 2399 2400 ; 2401 return 0; 2402} 2403_ACEOF 2404if ac_fn_cxx_try_run "$LINENO"; then : 2405 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2406else 2407 ac_retval=1 2408fi 2409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2410 conftest.$ac_objext conftest.beam conftest.$ac_ext 2411rm -f conftest.val 2412 2413 fi 2414 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2415 as_fn_set_status $ac_retval 2416 2417} # ac_fn_cxx_compute_int 2418cat >config.log <<_ACEOF 2419This file contains any messages produced by compilers while 2420running configure, to aid debugging if configure makes a mistake. 2421 2422It was created by YAPET $as_me 2.3, which was 2423generated by GNU Autoconf 2.69. Invocation command line was 2424 2425 $ $0 $@ 2426 2427_ACEOF 2428exec 5>>config.log 2429{ 2430cat <<_ASUNAME 2431## --------- ## 2432## Platform. ## 2433## --------- ## 2434 2435hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2436uname -m = `(uname -m) 2>/dev/null || echo unknown` 2437uname -r = `(uname -r) 2>/dev/null || echo unknown` 2438uname -s = `(uname -s) 2>/dev/null || echo unknown` 2439uname -v = `(uname -v) 2>/dev/null || echo unknown` 2440 2441/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2442/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2443 2444/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2445/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2446/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2447/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2448/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2449/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2450/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2451 2452_ASUNAME 2453 2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2455for as_dir in $PATH 2456do 2457 IFS=$as_save_IFS 2458 test -z "$as_dir" && as_dir=. 2459 $as_echo "PATH: $as_dir" 2460 done 2461IFS=$as_save_IFS 2462 2463} >&5 2464 2465cat >&5 <<_ACEOF 2466 2467 2468## ----------- ## 2469## Core tests. ## 2470## ----------- ## 2471 2472_ACEOF 2473 2474 2475# Keep a trace of the command line. 2476# Strip out --no-create and --no-recursion so they do not pile up. 2477# Strip out --silent because we don't want to record it for future runs. 2478# Also quote any args containing shell meta-characters. 2479# Make two passes to allow for proper duplicate-argument suppression. 2480ac_configure_args= 2481ac_configure_args0= 2482ac_configure_args1= 2483ac_must_keep_next=false 2484for ac_pass in 1 2 2485do 2486 for ac_arg 2487 do 2488 case $ac_arg in 2489 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2490 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2491 | -silent | --silent | --silen | --sile | --sil) 2492 continue ;; 2493 *\'*) 2494 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2495 esac 2496 case $ac_pass in 2497 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2498 2) 2499 as_fn_append ac_configure_args1 " '$ac_arg'" 2500 if test $ac_must_keep_next = true; then 2501 ac_must_keep_next=false # Got value, back to normal. 2502 else 2503 case $ac_arg in 2504 *=* | --config-cache | -C | -disable-* | --disable-* \ 2505 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2506 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2507 | -with-* | --with-* | -without-* | --without-* | --x) 2508 case "$ac_configure_args0 " in 2509 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2510 esac 2511 ;; 2512 -* ) ac_must_keep_next=true ;; 2513 esac 2514 fi 2515 as_fn_append ac_configure_args " '$ac_arg'" 2516 ;; 2517 esac 2518 done 2519done 2520{ ac_configure_args0=; unset ac_configure_args0;} 2521{ ac_configure_args1=; unset ac_configure_args1;} 2522 2523# When interrupted or exit'd, cleanup temporary files, and complete 2524# config.log. We remove comments because anyway the quotes in there 2525# would cause problems or look ugly. 2526# WARNING: Use '\'' to represent an apostrophe within the trap. 2527# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2528trap 'exit_status=$? 2529 # Save into config.log some information that might help in debugging. 2530 { 2531 echo 2532 2533 $as_echo "## ---------------- ## 2534## Cache variables. ## 2535## ---------------- ##" 2536 echo 2537 # The following way of writing the cache mishandles newlines in values, 2538( 2539 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2540 eval ac_val=\$$ac_var 2541 case $ac_val in #( 2542 *${as_nl}*) 2543 case $ac_var in #( 2544 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2545$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2546 esac 2547 case $ac_var in #( 2548 _ | IFS | as_nl) ;; #( 2549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2550 *) { eval $ac_var=; unset $ac_var;} ;; 2551 esac ;; 2552 esac 2553 done 2554 (set) 2>&1 | 2555 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2556 *${as_nl}ac_space=\ *) 2557 sed -n \ 2558 "s/'\''/'\''\\\\'\'''\''/g; 2559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2560 ;; #( 2561 *) 2562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2563 ;; 2564 esac | 2565 sort 2566) 2567 echo 2568 2569 $as_echo "## ----------------- ## 2570## Output variables. ## 2571## ----------------- ##" 2572 echo 2573 for ac_var in $ac_subst_vars 2574 do 2575 eval ac_val=\$$ac_var 2576 case $ac_val in 2577 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2578 esac 2579 $as_echo "$ac_var='\''$ac_val'\''" 2580 done | sort 2581 echo 2582 2583 if test -n "$ac_subst_files"; then 2584 $as_echo "## ------------------- ## 2585## File substitutions. ## 2586## ------------------- ##" 2587 echo 2588 for ac_var in $ac_subst_files 2589 do 2590 eval ac_val=\$$ac_var 2591 case $ac_val in 2592 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2593 esac 2594 $as_echo "$ac_var='\''$ac_val'\''" 2595 done | sort 2596 echo 2597 fi 2598 2599 if test -s confdefs.h; then 2600 $as_echo "## ----------- ## 2601## confdefs.h. ## 2602## ----------- ##" 2603 echo 2604 cat confdefs.h 2605 echo 2606 fi 2607 test "$ac_signal" != 0 && 2608 $as_echo "$as_me: caught signal $ac_signal" 2609 $as_echo "$as_me: exit $exit_status" 2610 } >&5 2611 rm -f core *.core core.conftest.* && 2612 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2613 exit $exit_status 2614' 0 2615for ac_signal in 1 2 13 15; do 2616 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2617done 2618ac_signal=0 2619 2620# confdefs.h avoids OS command line length limits that DEFS can exceed. 2621rm -f -r conftest* confdefs.h 2622 2623$as_echo "/* confdefs.h */" > confdefs.h 2624 2625# Predefined preprocessor variables. 2626 2627cat >>confdefs.h <<_ACEOF 2628#define PACKAGE_NAME "$PACKAGE_NAME" 2629_ACEOF 2630 2631cat >>confdefs.h <<_ACEOF 2632#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2633_ACEOF 2634 2635cat >>confdefs.h <<_ACEOF 2636#define PACKAGE_VERSION "$PACKAGE_VERSION" 2637_ACEOF 2638 2639cat >>confdefs.h <<_ACEOF 2640#define PACKAGE_STRING "$PACKAGE_STRING" 2641_ACEOF 2642 2643cat >>confdefs.h <<_ACEOF 2644#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2645_ACEOF 2646 2647cat >>confdefs.h <<_ACEOF 2648#define PACKAGE_URL "$PACKAGE_URL" 2649_ACEOF 2650 2651 2652# Let the site file select an alternate cache file if it wants to. 2653# Prefer an explicitly selected file to automatically selected ones. 2654ac_site_file1=NONE 2655ac_site_file2=NONE 2656if test -n "$CONFIG_SITE"; then 2657 # We do not want a PATH search for config.site. 2658 case $CONFIG_SITE in #(( 2659 -*) ac_site_file1=./$CONFIG_SITE;; 2660 */*) ac_site_file1=$CONFIG_SITE;; 2661 *) ac_site_file1=./$CONFIG_SITE;; 2662 esac 2663elif test "x$prefix" != xNONE; then 2664 ac_site_file1=$prefix/share/config.site 2665 ac_site_file2=$prefix/etc/config.site 2666else 2667 ac_site_file1=$ac_default_prefix/share/config.site 2668 ac_site_file2=$ac_default_prefix/etc/config.site 2669fi 2670for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2671do 2672 test "x$ac_site_file" = xNONE && continue 2673 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2674 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2675$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2676 sed 's/^/| /' "$ac_site_file" >&5 2677 . "$ac_site_file" \ 2678 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2680as_fn_error $? "failed to load site script $ac_site_file 2681See \`config.log' for more details" "$LINENO" 5; } 2682 fi 2683done 2684 2685if test -r "$cache_file"; then 2686 # Some versions of bash will fail to source /dev/null (special files 2687 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2688 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2689 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2690$as_echo "$as_me: loading cache $cache_file" >&6;} 2691 case $cache_file in 2692 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2693 *) . "./$cache_file";; 2694 esac 2695 fi 2696else 2697 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2698$as_echo "$as_me: creating cache $cache_file" >&6;} 2699 >$cache_file 2700fi 2701 2702gt_needs="$gt_needs " 2703# Check that the precious variables saved in the cache have kept the same 2704# value. 2705ac_cache_corrupted=false 2706for ac_var in $ac_precious_vars; do 2707 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2708 eval ac_new_set=\$ac_env_${ac_var}_set 2709 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2710 eval ac_new_val=\$ac_env_${ac_var}_value 2711 case $ac_old_set,$ac_new_set in 2712 set,) 2713 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2714$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2715 ac_cache_corrupted=: ;; 2716 ,set) 2717 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2718$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2719 ac_cache_corrupted=: ;; 2720 ,);; 2721 *) 2722 if test "x$ac_old_val" != "x$ac_new_val"; then 2723 # differences in whitespace do not lead to failure. 2724 ac_old_val_w=`echo x $ac_old_val` 2725 ac_new_val_w=`echo x $ac_new_val` 2726 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2728$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2729 ac_cache_corrupted=: 2730 else 2731 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2732$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2733 eval $ac_var=\$ac_old_val 2734 fi 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2736$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2737 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2738$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2739 fi;; 2740 esac 2741 # Pass precious variables to config.status. 2742 if test "$ac_new_set" = set; then 2743 case $ac_new_val in 2744 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2745 *) ac_arg=$ac_var=$ac_new_val ;; 2746 esac 2747 case " $ac_configure_args " in 2748 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2749 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2750 esac 2751 fi 2752done 2753if $ac_cache_corrupted; then 2754 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2756 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2757$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2758 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2759fi 2760## -------------------- ## 2761## Main body of script. ## 2762## -------------------- ## 2763 2764ac_ext=c 2765ac_cpp='$CPP $CPPFLAGS' 2766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2768ac_compiler_gnu=$ac_cv_c_compiler_gnu 2769 2770 2771ac_aux_dir= 2772for ac_dir in build-aux "$srcdir"/build-aux; do 2773 if test -f "$ac_dir/install-sh"; then 2774 ac_aux_dir=$ac_dir 2775 ac_install_sh="$ac_aux_dir/install-sh -c" 2776 break 2777 elif test -f "$ac_dir/install.sh"; then 2778 ac_aux_dir=$ac_dir 2779 ac_install_sh="$ac_aux_dir/install.sh -c" 2780 break 2781 elif test -f "$ac_dir/shtool"; then 2782 ac_aux_dir=$ac_dir 2783 ac_install_sh="$ac_aux_dir/shtool install -c" 2784 break 2785 fi 2786done 2787if test -z "$ac_aux_dir"; then 2788 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2789fi 2790 2791# These three variables are undocumented and unsupported, 2792# and are intended to be withdrawn in a future Autoconf release. 2793# They can cause serious problems if a builder's source tree is in a directory 2794# whose full name contains unusual characters. 2795ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2796ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2797ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2798 2799 2800 2801ac_config_headers="$ac_config_headers config.h" 2802 2803 2804 2805 2806subdirs="$subdirs libyacurs" 2807 2808 2809am__api_version='1.16' 2810 2811# Find a good install program. We prefer a C program (faster), 2812# so one script is as good as another. But avoid the broken or 2813# incompatible versions: 2814# SysV /etc/install, /usr/sbin/install 2815# SunOS /usr/etc/install 2816# IRIX /sbin/install 2817# AIX /bin/install 2818# AmigaOS /C/install, which installs bootblocks on floppy discs 2819# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2820# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2821# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2822# OS/2's system install, which has a completely different semantic 2823# ./install, which can be erroneously created by make from ./install.sh. 2824# Reject install programs that cannot install multiple files. 2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2826$as_echo_n "checking for a BSD-compatible install... " >&6; } 2827if test -z "$INSTALL"; then 2828if ${ac_cv_path_install+:} false; then : 2829 $as_echo_n "(cached) " >&6 2830else 2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2832for as_dir in $PATH 2833do 2834 IFS=$as_save_IFS 2835 test -z "$as_dir" && as_dir=. 2836 # Account for people who put trailing slashes in PATH elements. 2837case $as_dir/ in #(( 2838 ./ | .// | /[cC]/* | \ 2839 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2840 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2841 /usr/ucb/* ) ;; 2842 *) 2843 # OSF1 and SCO ODT 3.0 have their own names for install. 2844 # Don't use installbsd from OSF since it installs stuff as root 2845 # by default. 2846 for ac_prog in ginstall scoinst install; do 2847 for ac_exec_ext in '' $ac_executable_extensions; do 2848 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2849 if test $ac_prog = install && 2850 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2851 # AIX install. It has an incompatible calling convention. 2852 : 2853 elif test $ac_prog = install && 2854 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2855 # program-specific install script used by HP pwplus--don't use. 2856 : 2857 else 2858 rm -rf conftest.one conftest.two conftest.dir 2859 echo one > conftest.one 2860 echo two > conftest.two 2861 mkdir conftest.dir 2862 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2863 test -s conftest.one && test -s conftest.two && 2864 test -s conftest.dir/conftest.one && 2865 test -s conftest.dir/conftest.two 2866 then 2867 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2868 break 3 2869 fi 2870 fi 2871 fi 2872 done 2873 done 2874 ;; 2875esac 2876 2877 done 2878IFS=$as_save_IFS 2879 2880rm -rf conftest.one conftest.two conftest.dir 2881 2882fi 2883 if test "${ac_cv_path_install+set}" = set; then 2884 INSTALL=$ac_cv_path_install 2885 else 2886 # As a last resort, use the slow shell script. Don't cache a 2887 # value for INSTALL within a source directory, because that will 2888 # break other packages using the cache if that directory is 2889 # removed, or if the value is a relative name. 2890 INSTALL=$ac_install_sh 2891 fi 2892fi 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2894$as_echo "$INSTALL" >&6; } 2895 2896# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2897# It thinks the first close brace ends the variable substitution. 2898test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2899 2900test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2901 2902test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2903 2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2905$as_echo_n "checking whether build environment is sane... " >&6; } 2906# Reject unsafe characters in $srcdir or the absolute working directory 2907# name. Accept space and tab only in the latter. 2908am_lf=' 2909' 2910case `pwd` in 2911 *[\\\"\#\$\&\'\`$am_lf]*) 2912 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2913esac 2914case $srcdir in 2915 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2916 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2917esac 2918 2919# Do 'set' in a subshell so we don't clobber the current shell's 2920# arguments. Must try -L first in case configure is actually a 2921# symlink; some systems play weird games with the mod time of symlinks 2922# (eg FreeBSD returns the mod time of the symlink's containing 2923# directory). 2924if ( 2925 am_has_slept=no 2926 for am_try in 1 2; do 2927 echo "timestamp, slept: $am_has_slept" > conftest.file 2928 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2929 if test "$*" = "X"; then 2930 # -L didn't work. 2931 set X `ls -t "$srcdir/configure" conftest.file` 2932 fi 2933 if test "$*" != "X $srcdir/configure conftest.file" \ 2934 && test "$*" != "X conftest.file $srcdir/configure"; then 2935 2936 # If neither matched, then we have a broken ls. This can happen 2937 # if, for instance, CONFIG_SHELL is bash and it inherits a 2938 # broken ls alias from the environment. This has actually 2939 # happened. Such a system could not be considered "sane". 2940 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2941 alias in your environment" "$LINENO" 5 2942 fi 2943 if test "$2" = conftest.file || test $am_try -eq 2; then 2944 break 2945 fi 2946 # Just in case. 2947 sleep 1 2948 am_has_slept=yes 2949 done 2950 test "$2" = conftest.file 2951 ) 2952then 2953 # Ok. 2954 : 2955else 2956 as_fn_error $? "newly created file is older than distributed files! 2957Check your system clock" "$LINENO" 5 2958fi 2959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2960$as_echo "yes" >&6; } 2961# If we didn't sleep, we still need to ensure time stamps of config.status and 2962# generated files are strictly newer. 2963am_sleep_pid= 2964if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2965 ( sleep 1 ) & 2966 am_sleep_pid=$! 2967fi 2968 2969rm -f conftest.file 2970 2971test "$program_prefix" != NONE && 2972 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2973# Use a double $ so make ignores it. 2974test "$program_suffix" != NONE && 2975 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2976# Double any \ or $. 2977# By default was `s,x,x', remove it if useless. 2978ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2979program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2980 2981# Expand $ac_aux_dir to an absolute path. 2982am_aux_dir=`cd "$ac_aux_dir" && pwd` 2983 2984if test x"${MISSING+set}" != xset; then 2985 case $am_aux_dir in 2986 *\ * | *\ *) 2987 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2988 *) 2989 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2990 esac 2991fi 2992# Use eval to expand $SHELL 2993if eval "$MISSING --is-lightweight"; then 2994 am_missing_run="$MISSING " 2995else 2996 am_missing_run= 2997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2998$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2999fi 3000 3001if test x"${install_sh+set}" != xset; then 3002 case $am_aux_dir in 3003 *\ * | *\ *) 3004 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3005 *) 3006 install_sh="\${SHELL} $am_aux_dir/install-sh" 3007 esac 3008fi 3009 3010# Installed binaries are usually stripped using 'strip' when the user 3011# run "make install-strip". However 'strip' might not be the right 3012# tool to use in cross-compilation environments, therefore Automake 3013# will honor the 'STRIP' environment variable to overrule this program. 3014if test "$cross_compiling" != no; then 3015 if test -n "$ac_tool_prefix"; then 3016 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3017set dummy ${ac_tool_prefix}strip; ac_word=$2 3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3019$as_echo_n "checking for $ac_word... " >&6; } 3020if ${ac_cv_prog_STRIP+:} false; then : 3021 $as_echo_n "(cached) " >&6 3022else 3023 if test -n "$STRIP"; then 3024 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3025else 3026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3027for as_dir in $PATH 3028do 3029 IFS=$as_save_IFS 3030 test -z "$as_dir" && as_dir=. 3031 for ac_exec_ext in '' $ac_executable_extensions; do 3032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3033 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3035 break 2 3036 fi 3037done 3038 done 3039IFS=$as_save_IFS 3040 3041fi 3042fi 3043STRIP=$ac_cv_prog_STRIP 3044if test -n "$STRIP"; then 3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3046$as_echo "$STRIP" >&6; } 3047else 3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3049$as_echo "no" >&6; } 3050fi 3051 3052 3053fi 3054if test -z "$ac_cv_prog_STRIP"; then 3055 ac_ct_STRIP=$STRIP 3056 # Extract the first word of "strip", so it can be a program name with args. 3057set dummy strip; ac_word=$2 3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3059$as_echo_n "checking for $ac_word... " >&6; } 3060if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3061 $as_echo_n "(cached) " >&6 3062else 3063 if test -n "$ac_ct_STRIP"; then 3064 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3065else 3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3067for as_dir in $PATH 3068do 3069 IFS=$as_save_IFS 3070 test -z "$as_dir" && as_dir=. 3071 for ac_exec_ext in '' $ac_executable_extensions; do 3072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3073 ac_cv_prog_ac_ct_STRIP="strip" 3074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3075 break 2 3076 fi 3077done 3078 done 3079IFS=$as_save_IFS 3080 3081fi 3082fi 3083ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3084if test -n "$ac_ct_STRIP"; then 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3086$as_echo "$ac_ct_STRIP" >&6; } 3087else 3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3089$as_echo "no" >&6; } 3090fi 3091 3092 if test "x$ac_ct_STRIP" = x; then 3093 STRIP=":" 3094 else 3095 case $cross_compiling:$ac_tool_warned in 3096yes:) 3097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3099ac_tool_warned=yes ;; 3100esac 3101 STRIP=$ac_ct_STRIP 3102 fi 3103else 3104 STRIP="$ac_cv_prog_STRIP" 3105fi 3106 3107fi 3108INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3109 3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3111$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3112if test -z "$MKDIR_P"; then 3113 if ${ac_cv_path_mkdir+:} false; then : 3114 $as_echo_n "(cached) " >&6 3115else 3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3117for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3118do 3119 IFS=$as_save_IFS 3120 test -z "$as_dir" && as_dir=. 3121 for ac_prog in mkdir gmkdir; do 3122 for ac_exec_ext in '' $ac_executable_extensions; do 3123 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3124 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3125 'mkdir (GNU coreutils) '* | \ 3126 'mkdir (coreutils) '* | \ 3127 'mkdir (fileutils) '4.1*) 3128 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3129 break 3;; 3130 esac 3131 done 3132 done 3133 done 3134IFS=$as_save_IFS 3135 3136fi 3137 3138 test -d ./--version && rmdir ./--version 3139 if test "${ac_cv_path_mkdir+set}" = set; then 3140 MKDIR_P="$ac_cv_path_mkdir -p" 3141 else 3142 # As a last resort, use the slow shell script. Don't cache a 3143 # value for MKDIR_P within a source directory, because that will 3144 # break other packages using the cache if that directory is 3145 # removed, or if the value is a relative name. 3146 MKDIR_P="$ac_install_sh -d" 3147 fi 3148fi 3149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3150$as_echo "$MKDIR_P" >&6; } 3151 3152for ac_prog in gawk mawk nawk awk 3153do 3154 # Extract the first word of "$ac_prog", so it can be a program name with args. 3155set dummy $ac_prog; ac_word=$2 3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3157$as_echo_n "checking for $ac_word... " >&6; } 3158if ${ac_cv_prog_AWK+:} false; then : 3159 $as_echo_n "(cached) " >&6 3160else 3161 if test -n "$AWK"; then 3162 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3163else 3164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3165for as_dir in $PATH 3166do 3167 IFS=$as_save_IFS 3168 test -z "$as_dir" && as_dir=. 3169 for ac_exec_ext in '' $ac_executable_extensions; do 3170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3171 ac_cv_prog_AWK="$ac_prog" 3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3173 break 2 3174 fi 3175done 3176 done 3177IFS=$as_save_IFS 3178 3179fi 3180fi 3181AWK=$ac_cv_prog_AWK 3182if test -n "$AWK"; then 3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3184$as_echo "$AWK" >&6; } 3185else 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3187$as_echo "no" >&6; } 3188fi 3189 3190 3191 test -n "$AWK" && break 3192done 3193 3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3195$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3196set x ${MAKE-make} 3197ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3198if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3199 $as_echo_n "(cached) " >&6 3200else 3201 cat >conftest.make <<\_ACEOF 3202SHELL = /bin/sh 3203all: 3204 @echo '@@@%%%=$(MAKE)=@@@%%%' 3205_ACEOF 3206# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3207case `${MAKE-make} -f conftest.make 2>/dev/null` in 3208 *@@@%%%=?*=@@@%%%*) 3209 eval ac_cv_prog_make_${ac_make}_set=yes;; 3210 *) 3211 eval ac_cv_prog_make_${ac_make}_set=no;; 3212esac 3213rm -f conftest.make 3214fi 3215if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3217$as_echo "yes" >&6; } 3218 SET_MAKE= 3219else 3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3221$as_echo "no" >&6; } 3222 SET_MAKE="MAKE=${MAKE-make}" 3223fi 3224 3225rm -rf .tst 2>/dev/null 3226mkdir .tst 2>/dev/null 3227if test -d .tst; then 3228 am__leading_dot=. 3229else 3230 am__leading_dot=_ 3231fi 3232rmdir .tst 2>/dev/null 3233 3234# Check whether --enable-silent-rules was given. 3235if test "${enable_silent_rules+set}" = set; then : 3236 enableval=$enable_silent_rules; 3237fi 3238 3239case $enable_silent_rules in # ((( 3240 yes) AM_DEFAULT_VERBOSITY=0;; 3241 no) AM_DEFAULT_VERBOSITY=1;; 3242 *) AM_DEFAULT_VERBOSITY=1;; 3243esac 3244am_make=${MAKE-make} 3245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3246$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3247if ${am_cv_make_support_nested_variables+:} false; then : 3248 $as_echo_n "(cached) " >&6 3249else 3250 if $as_echo 'TRUE=$(BAR$(V)) 3251BAR0=false 3252BAR1=true 3253V=1 3254am__doit: 3255 @$(TRUE) 3256.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3257 am_cv_make_support_nested_variables=yes 3258else 3259 am_cv_make_support_nested_variables=no 3260fi 3261fi 3262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3263$as_echo "$am_cv_make_support_nested_variables" >&6; } 3264if test $am_cv_make_support_nested_variables = yes; then 3265 AM_V='$(V)' 3266 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3267else 3268 AM_V=$AM_DEFAULT_VERBOSITY 3269 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3270fi 3271AM_BACKSLASH='\' 3272 3273if test "`cd $srcdir && pwd`" != "`pwd`"; then 3274 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3275 # is not polluted with repeated "-I." 3276 am__isrc=' -I$(srcdir)' 3277 # test to see if srcdir already configured 3278 if test -f $srcdir/config.status; then 3279 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3280 fi 3281fi 3282 3283# test whether we have cygpath 3284if test -z "$CYGPATH_W"; then 3285 if (cygpath --version) >/dev/null 2>/dev/null; then 3286 CYGPATH_W='cygpath -w' 3287 else 3288 CYGPATH_W=echo 3289 fi 3290fi 3291 3292 3293# Define the identity of the package. 3294 PACKAGE='yapet' 3295 VERSION='2.3' 3296 3297 3298cat >>confdefs.h <<_ACEOF 3299#define PACKAGE "$PACKAGE" 3300_ACEOF 3301 3302 3303cat >>confdefs.h <<_ACEOF 3304#define VERSION "$VERSION" 3305_ACEOF 3306 3307# Some tools Automake needs. 3308 3309ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3310 3311 3312AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3313 3314 3315AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3316 3317 3318AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3319 3320 3321MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3322 3323# For better backward compatibility. To be removed once Automake 1.9.x 3324# dies out for good. For more background, see: 3325# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3326# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3327mkdir_p='$(MKDIR_P)' 3328 3329# We need awk for the "check" target (and possibly the TAP driver). The 3330# system "awk" is bad on some platforms. 3331# Always define AMTAR for backward compatibility. Yes, it's still used 3332# in the wild :-( We should find a proper way to deprecate it ... 3333AMTAR='$${TAR-tar}' 3334 3335 3336# We'll loop over all known methods to create a tar archive until one works. 3337_am_tools='gnutar pax cpio none' 3338 3339am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3340 3341 3342 3343 3344 3345 3346# POSIX will say in a future version that running "rm -f" with no argument 3347# is OK; and we want to be able to make that assumption in our Makefile 3348# recipes. So use an aggressive probe to check that the usage we want is 3349# actually supported "in the wild" to an acceptable degree. 3350# See automake bug#10828. 3351# To make any issue more visible, cause the running configure to be aborted 3352# by default if the 'rm' program in use doesn't match our expectations; the 3353# user can still override this though. 3354if rm -f && rm -fr && rm -rf; then : OK; else 3355 cat >&2 <<'END' 3356Oops! 3357 3358Your 'rm' program seems unable to run without file operands specified 3359on the command line, even when the '-f' option is present. This is contrary 3360to the behaviour of most rm programs out there, and not conforming with 3361the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3362 3363Please tell bug-automake@gnu.org about your system, including the value 3364of your $PATH and any error possibly output before this message. This 3365can help us improve future automake versions. 3366 3367END 3368 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3369 echo 'Configuration will proceed anyway, since you have set the' >&2 3370 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3371 echo >&2 3372 else 3373 cat >&2 <<'END' 3374Aborting the configuration process, to ensure you take notice of the issue. 3375 3376You can download and install GNU coreutils to get an 'rm' implementation 3377that behaves properly: <https://www.gnu.org/software/coreutils/>. 3378 3379If you want to complete the configuration process using your problematic 3380'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3381to "yes", and re-run configure. 3382 3383END 3384 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3385 fi 3386fi 3387 3388# Check whether --enable-silent-rules was given. 3389if test "${enable_silent_rules+set}" = set; then : 3390 enableval=$enable_silent_rules; 3391fi 3392 3393case $enable_silent_rules in # ((( 3394 yes) AM_DEFAULT_VERBOSITY=0;; 3395 no) AM_DEFAULT_VERBOSITY=1;; 3396 *) AM_DEFAULT_VERBOSITY=0;; 3397esac 3398am_make=${MAKE-make} 3399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3400$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3401if ${am_cv_make_support_nested_variables+:} false; then : 3402 $as_echo_n "(cached) " >&6 3403else 3404 if $as_echo 'TRUE=$(BAR$(V)) 3405BAR0=false 3406BAR1=true 3407V=1 3408am__doit: 3409 @$(TRUE) 3410.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3411 am_cv_make_support_nested_variables=yes 3412else 3413 am_cv_make_support_nested_variables=no 3414fi 3415fi 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3417$as_echo "$am_cv_make_support_nested_variables" >&6; } 3418if test $am_cv_make_support_nested_variables = yes; then 3419 AM_V='$(V)' 3420 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3421else 3422 AM_V=$AM_DEFAULT_VERBOSITY 3423 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3424fi 3425AM_BACKSLASH='\' 3426 3427 3428# Progs 3429{ $as_echo "$as_me:${as_lineno-$LINENO}: Checking required programs" >&5 3430$as_echo "$as_me: Checking required programs" >&6;} 3431ac_ext=c 3432ac_cpp='$CPP $CPPFLAGS' 3433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3435ac_compiler_gnu=$ac_cv_c_compiler_gnu 3436if test -n "$ac_tool_prefix"; then 3437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3438set dummy ${ac_tool_prefix}gcc; ac_word=$2 3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3440$as_echo_n "checking for $ac_word... " >&6; } 3441if ${ac_cv_prog_CC+:} false; then : 3442 $as_echo_n "(cached) " >&6 3443else 3444 if test -n "$CC"; then 3445 ac_cv_prog_CC="$CC" # Let the user override the test. 3446else 3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3448for as_dir in $PATH 3449do 3450 IFS=$as_save_IFS 3451 test -z "$as_dir" && as_dir=. 3452 for ac_exec_ext in '' $ac_executable_extensions; do 3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3454 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3456 break 2 3457 fi 3458done 3459 done 3460IFS=$as_save_IFS 3461 3462fi 3463fi 3464CC=$ac_cv_prog_CC 3465if test -n "$CC"; then 3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3467$as_echo "$CC" >&6; } 3468else 3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3470$as_echo "no" >&6; } 3471fi 3472 3473 3474fi 3475if test -z "$ac_cv_prog_CC"; then 3476 ac_ct_CC=$CC 3477 # Extract the first word of "gcc", so it can be a program name with args. 3478set dummy gcc; ac_word=$2 3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3480$as_echo_n "checking for $ac_word... " >&6; } 3481if ${ac_cv_prog_ac_ct_CC+:} false; then : 3482 $as_echo_n "(cached) " >&6 3483else 3484 if test -n "$ac_ct_CC"; then 3485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3486else 3487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3488for as_dir in $PATH 3489do 3490 IFS=$as_save_IFS 3491 test -z "$as_dir" && as_dir=. 3492 for ac_exec_ext in '' $ac_executable_extensions; do 3493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3494 ac_cv_prog_ac_ct_CC="gcc" 3495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3496 break 2 3497 fi 3498done 3499 done 3500IFS=$as_save_IFS 3501 3502fi 3503fi 3504ac_ct_CC=$ac_cv_prog_ac_ct_CC 3505if test -n "$ac_ct_CC"; then 3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3507$as_echo "$ac_ct_CC" >&6; } 3508else 3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3510$as_echo "no" >&6; } 3511fi 3512 3513 if test "x$ac_ct_CC" = x; then 3514 CC="" 3515 else 3516 case $cross_compiling:$ac_tool_warned in 3517yes:) 3518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3520ac_tool_warned=yes ;; 3521esac 3522 CC=$ac_ct_CC 3523 fi 3524else 3525 CC="$ac_cv_prog_CC" 3526fi 3527 3528if test -z "$CC"; then 3529 if test -n "$ac_tool_prefix"; then 3530 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3531set dummy ${ac_tool_prefix}cc; ac_word=$2 3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3533$as_echo_n "checking for $ac_word... " >&6; } 3534if ${ac_cv_prog_CC+:} false; then : 3535 $as_echo_n "(cached) " >&6 3536else 3537 if test -n "$CC"; then 3538 ac_cv_prog_CC="$CC" # Let the user override the test. 3539else 3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3541for as_dir in $PATH 3542do 3543 IFS=$as_save_IFS 3544 test -z "$as_dir" && as_dir=. 3545 for ac_exec_ext in '' $ac_executable_extensions; do 3546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3547 ac_cv_prog_CC="${ac_tool_prefix}cc" 3548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3549 break 2 3550 fi 3551done 3552 done 3553IFS=$as_save_IFS 3554 3555fi 3556fi 3557CC=$ac_cv_prog_CC 3558if test -n "$CC"; then 3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3560$as_echo "$CC" >&6; } 3561else 3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3563$as_echo "no" >&6; } 3564fi 3565 3566 3567 fi 3568fi 3569if test -z "$CC"; then 3570 # Extract the first word of "cc", so it can be a program name with args. 3571set dummy cc; ac_word=$2 3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3573$as_echo_n "checking for $ac_word... " >&6; } 3574if ${ac_cv_prog_CC+:} false; then : 3575 $as_echo_n "(cached) " >&6 3576else 3577 if test -n "$CC"; then 3578 ac_cv_prog_CC="$CC" # Let the user override the test. 3579else 3580 ac_prog_rejected=no 3581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3582for as_dir in $PATH 3583do 3584 IFS=$as_save_IFS 3585 test -z "$as_dir" && as_dir=. 3586 for ac_exec_ext in '' $ac_executable_extensions; do 3587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3588 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3589 ac_prog_rejected=yes 3590 continue 3591 fi 3592 ac_cv_prog_CC="cc" 3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3594 break 2 3595 fi 3596done 3597 done 3598IFS=$as_save_IFS 3599 3600if test $ac_prog_rejected = yes; then 3601 # We found a bogon in the path, so make sure we never use it. 3602 set dummy $ac_cv_prog_CC 3603 shift 3604 if test $# != 0; then 3605 # We chose a different compiler from the bogus one. 3606 # However, it has the same basename, so the bogon will be chosen 3607 # first if we set CC to just the basename; use the full file name. 3608 shift 3609 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3610 fi 3611fi 3612fi 3613fi 3614CC=$ac_cv_prog_CC 3615if test -n "$CC"; then 3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3617$as_echo "$CC" >&6; } 3618else 3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3620$as_echo "no" >&6; } 3621fi 3622 3623 3624fi 3625if test -z "$CC"; then 3626 if test -n "$ac_tool_prefix"; then 3627 for ac_prog in cl.exe 3628 do 3629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3630set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3632$as_echo_n "checking for $ac_word... " >&6; } 3633if ${ac_cv_prog_CC+:} false; then : 3634 $as_echo_n "(cached) " >&6 3635else 3636 if test -n "$CC"; then 3637 ac_cv_prog_CC="$CC" # Let the user override the test. 3638else 3639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3640for as_dir in $PATH 3641do 3642 IFS=$as_save_IFS 3643 test -z "$as_dir" && as_dir=. 3644 for ac_exec_ext in '' $ac_executable_extensions; do 3645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3646 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3648 break 2 3649 fi 3650done 3651 done 3652IFS=$as_save_IFS 3653 3654fi 3655fi 3656CC=$ac_cv_prog_CC 3657if test -n "$CC"; then 3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3659$as_echo "$CC" >&6; } 3660else 3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3662$as_echo "no" >&6; } 3663fi 3664 3665 3666 test -n "$CC" && break 3667 done 3668fi 3669if test -z "$CC"; then 3670 ac_ct_CC=$CC 3671 for ac_prog in cl.exe 3672do 3673 # Extract the first word of "$ac_prog", so it can be a program name with args. 3674set dummy $ac_prog; ac_word=$2 3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3676$as_echo_n "checking for $ac_word... " >&6; } 3677if ${ac_cv_prog_ac_ct_CC+:} false; then : 3678 $as_echo_n "(cached) " >&6 3679else 3680 if test -n "$ac_ct_CC"; then 3681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3682else 3683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3684for as_dir in $PATH 3685do 3686 IFS=$as_save_IFS 3687 test -z "$as_dir" && as_dir=. 3688 for ac_exec_ext in '' $ac_executable_extensions; do 3689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3690 ac_cv_prog_ac_ct_CC="$ac_prog" 3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3692 break 2 3693 fi 3694done 3695 done 3696IFS=$as_save_IFS 3697 3698fi 3699fi 3700ac_ct_CC=$ac_cv_prog_ac_ct_CC 3701if test -n "$ac_ct_CC"; then 3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3703$as_echo "$ac_ct_CC" >&6; } 3704else 3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3706$as_echo "no" >&6; } 3707fi 3708 3709 3710 test -n "$ac_ct_CC" && break 3711done 3712 3713 if test "x$ac_ct_CC" = x; then 3714 CC="" 3715 else 3716 case $cross_compiling:$ac_tool_warned in 3717yes:) 3718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3720ac_tool_warned=yes ;; 3721esac 3722 CC=$ac_ct_CC 3723 fi 3724fi 3725 3726fi 3727 3728 3729test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3731as_fn_error $? "no acceptable C compiler found in \$PATH 3732See \`config.log' for more details" "$LINENO" 5; } 3733 3734# Provide some information about the compiler. 3735$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3736set X $ac_compile 3737ac_compiler=$2 3738for ac_option in --version -v -V -qversion; do 3739 { { ac_try="$ac_compiler $ac_option >&5" 3740case "(($ac_try" in 3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3742 *) ac_try_echo=$ac_try;; 3743esac 3744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3745$as_echo "$ac_try_echo"; } >&5 3746 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3747 ac_status=$? 3748 if test -s conftest.err; then 3749 sed '10a\ 3750... rest of stderr output deleted ... 3751 10q' conftest.err >conftest.er1 3752 cat conftest.er1 >&5 3753 fi 3754 rm -f conftest.er1 conftest.err 3755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3756 test $ac_status = 0; } 3757done 3758 3759cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3760/* end confdefs.h. */ 3761 3762int 3763main () 3764{ 3765 3766 ; 3767 return 0; 3768} 3769_ACEOF 3770ac_clean_files_save=$ac_clean_files 3771ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3772# Try to create an executable without -o first, disregard a.out. 3773# It will help us diagnose broken compilers, and finding out an intuition 3774# of exeext. 3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3776$as_echo_n "checking whether the C compiler works... " >&6; } 3777ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3778 3779# The possible output files: 3780ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3781 3782ac_rmfiles= 3783for ac_file in $ac_files 3784do 3785 case $ac_file in 3786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3787 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3788 esac 3789done 3790rm -f $ac_rmfiles 3791 3792if { { ac_try="$ac_link_default" 3793case "(($ac_try" in 3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3795 *) ac_try_echo=$ac_try;; 3796esac 3797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3798$as_echo "$ac_try_echo"; } >&5 3799 (eval "$ac_link_default") 2>&5 3800 ac_status=$? 3801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3802 test $ac_status = 0; }; then : 3803 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3804# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3805# in a Makefile. We should not override ac_cv_exeext if it was cached, 3806# so that the user can short-circuit this test for compilers unknown to 3807# Autoconf. 3808for ac_file in $ac_files '' 3809do 3810 test -f "$ac_file" || continue 3811 case $ac_file in 3812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3813 ;; 3814 [ab].out ) 3815 # We found the default executable, but exeext='' is most 3816 # certainly right. 3817 break;; 3818 *.* ) 3819 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3820 then :; else 3821 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3822 fi 3823 # We set ac_cv_exeext here because the later test for it is not 3824 # safe: cross compilers may not add the suffix if given an `-o' 3825 # argument, so we may need to know it at that point already. 3826 # Even if this section looks crufty: it has the advantage of 3827 # actually working. 3828 break;; 3829 * ) 3830 break;; 3831 esac 3832done 3833test "$ac_cv_exeext" = no && ac_cv_exeext= 3834 3835else 3836 ac_file='' 3837fi 3838if test -z "$ac_file"; then : 3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3840$as_echo "no" >&6; } 3841$as_echo "$as_me: failed program was:" >&5 3842sed 's/^/| /' conftest.$ac_ext >&5 3843 3844{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3845$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3846as_fn_error 77 "C compiler cannot create executables 3847See \`config.log' for more details" "$LINENO" 5; } 3848else 3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3850$as_echo "yes" >&6; } 3851fi 3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3853$as_echo_n "checking for C compiler default output file name... " >&6; } 3854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3855$as_echo "$ac_file" >&6; } 3856ac_exeext=$ac_cv_exeext 3857 3858rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3859ac_clean_files=$ac_clean_files_save 3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3861$as_echo_n "checking for suffix of executables... " >&6; } 3862if { { ac_try="$ac_link" 3863case "(($ac_try" in 3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3865 *) ac_try_echo=$ac_try;; 3866esac 3867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3868$as_echo "$ac_try_echo"; } >&5 3869 (eval "$ac_link") 2>&5 3870 ac_status=$? 3871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3872 test $ac_status = 0; }; then : 3873 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3874# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3875# work properly (i.e., refer to `conftest.exe'), while it won't with 3876# `rm'. 3877for ac_file in conftest.exe conftest conftest.*; do 3878 test -f "$ac_file" || continue 3879 case $ac_file in 3880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3881 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3882 break;; 3883 * ) break;; 3884 esac 3885done 3886else 3887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3888$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3889as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3890See \`config.log' for more details" "$LINENO" 5; } 3891fi 3892rm -f conftest conftest$ac_cv_exeext 3893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3894$as_echo "$ac_cv_exeext" >&6; } 3895 3896rm -f conftest.$ac_ext 3897EXEEXT=$ac_cv_exeext 3898ac_exeext=$EXEEXT 3899cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3900/* end confdefs.h. */ 3901#include <stdio.h> 3902int 3903main () 3904{ 3905FILE *f = fopen ("conftest.out", "w"); 3906 return ferror (f) || fclose (f) != 0; 3907 3908 ; 3909 return 0; 3910} 3911_ACEOF 3912ac_clean_files="$ac_clean_files conftest.out" 3913# Check that the compiler produces executables we can run. If not, either 3914# the compiler is broken, or we cross compile. 3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3916$as_echo_n "checking whether we are cross compiling... " >&6; } 3917if test "$cross_compiling" != yes; then 3918 { { ac_try="$ac_link" 3919case "(($ac_try" in 3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3921 *) ac_try_echo=$ac_try;; 3922esac 3923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3924$as_echo "$ac_try_echo"; } >&5 3925 (eval "$ac_link") 2>&5 3926 ac_status=$? 3927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3928 test $ac_status = 0; } 3929 if { ac_try='./conftest$ac_cv_exeext' 3930 { { case "(($ac_try" in 3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3932 *) ac_try_echo=$ac_try;; 3933esac 3934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3935$as_echo "$ac_try_echo"; } >&5 3936 (eval "$ac_try") 2>&5 3937 ac_status=$? 3938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3939 test $ac_status = 0; }; }; then 3940 cross_compiling=no 3941 else 3942 if test "$cross_compiling" = maybe; then 3943 cross_compiling=yes 3944 else 3945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3947as_fn_error $? "cannot run C compiled programs. 3948If you meant to cross compile, use \`--host'. 3949See \`config.log' for more details" "$LINENO" 5; } 3950 fi 3951 fi 3952fi 3953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3954$as_echo "$cross_compiling" >&6; } 3955 3956rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3957ac_clean_files=$ac_clean_files_save 3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3959$as_echo_n "checking for suffix of object files... " >&6; } 3960if ${ac_cv_objext+:} false; then : 3961 $as_echo_n "(cached) " >&6 3962else 3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3964/* end confdefs.h. */ 3965 3966int 3967main () 3968{ 3969 3970 ; 3971 return 0; 3972} 3973_ACEOF 3974rm -f conftest.o conftest.obj 3975if { { ac_try="$ac_compile" 3976case "(($ac_try" in 3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3978 *) ac_try_echo=$ac_try;; 3979esac 3980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3981$as_echo "$ac_try_echo"; } >&5 3982 (eval "$ac_compile") 2>&5 3983 ac_status=$? 3984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3985 test $ac_status = 0; }; then : 3986 for ac_file in conftest.o conftest.obj conftest.*; do 3987 test -f "$ac_file" || continue; 3988 case $ac_file in 3989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3990 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3991 break;; 3992 esac 3993done 3994else 3995 $as_echo "$as_me: failed program was:" >&5 3996sed 's/^/| /' conftest.$ac_ext >&5 3997 3998{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4000as_fn_error $? "cannot compute suffix of object files: cannot compile 4001See \`config.log' for more details" "$LINENO" 5; } 4002fi 4003rm -f conftest.$ac_cv_objext conftest.$ac_ext 4004fi 4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4006$as_echo "$ac_cv_objext" >&6; } 4007OBJEXT=$ac_cv_objext 4008ac_objext=$OBJEXT 4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4010$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4011if ${ac_cv_c_compiler_gnu+:} false; then : 4012 $as_echo_n "(cached) " >&6 4013else 4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4015/* end confdefs.h. */ 4016 4017int 4018main () 4019{ 4020#ifndef __GNUC__ 4021 choke me 4022#endif 4023 4024 ; 4025 return 0; 4026} 4027_ACEOF 4028if ac_fn_c_try_compile "$LINENO"; then : 4029 ac_compiler_gnu=yes 4030else 4031 ac_compiler_gnu=no 4032fi 4033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4034ac_cv_c_compiler_gnu=$ac_compiler_gnu 4035 4036fi 4037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4038$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4039if test $ac_compiler_gnu = yes; then 4040 GCC=yes 4041else 4042 GCC= 4043fi 4044ac_test_CFLAGS=${CFLAGS+set} 4045ac_save_CFLAGS=$CFLAGS 4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4047$as_echo_n "checking whether $CC accepts -g... " >&6; } 4048if ${ac_cv_prog_cc_g+:} false; then : 4049 $as_echo_n "(cached) " >&6 4050else 4051 ac_save_c_werror_flag=$ac_c_werror_flag 4052 ac_c_werror_flag=yes 4053 ac_cv_prog_cc_g=no 4054 CFLAGS="-g" 4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4056/* end confdefs.h. */ 4057 4058int 4059main () 4060{ 4061 4062 ; 4063 return 0; 4064} 4065_ACEOF 4066if ac_fn_c_try_compile "$LINENO"; then : 4067 ac_cv_prog_cc_g=yes 4068else 4069 CFLAGS="" 4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4071/* end confdefs.h. */ 4072 4073int 4074main () 4075{ 4076 4077 ; 4078 return 0; 4079} 4080_ACEOF 4081if ac_fn_c_try_compile "$LINENO"; then : 4082 4083else 4084 ac_c_werror_flag=$ac_save_c_werror_flag 4085 CFLAGS="-g" 4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4087/* end confdefs.h. */ 4088 4089int 4090main () 4091{ 4092 4093 ; 4094 return 0; 4095} 4096_ACEOF 4097if ac_fn_c_try_compile "$LINENO"; then : 4098 ac_cv_prog_cc_g=yes 4099fi 4100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4101fi 4102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4103fi 4104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4105 ac_c_werror_flag=$ac_save_c_werror_flag 4106fi 4107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4108$as_echo "$ac_cv_prog_cc_g" >&6; } 4109if test "$ac_test_CFLAGS" = set; then 4110 CFLAGS=$ac_save_CFLAGS 4111elif test $ac_cv_prog_cc_g = yes; then 4112 if test "$GCC" = yes; then 4113 CFLAGS="-g -O2" 4114 else 4115 CFLAGS="-g" 4116 fi 4117else 4118 if test "$GCC" = yes; then 4119 CFLAGS="-O2" 4120 else 4121 CFLAGS= 4122 fi 4123fi 4124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4125$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4126if ${ac_cv_prog_cc_c89+:} false; then : 4127 $as_echo_n "(cached) " >&6 4128else 4129 ac_cv_prog_cc_c89=no 4130ac_save_CC=$CC 4131cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4132/* end confdefs.h. */ 4133#include <stdarg.h> 4134#include <stdio.h> 4135struct stat; 4136/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4137struct buf { int x; }; 4138FILE * (*rcsopen) (struct buf *, struct stat *, int); 4139static char *e (p, i) 4140 char **p; 4141 int i; 4142{ 4143 return p[i]; 4144} 4145static char *f (char * (*g) (char **, int), char **p, ...) 4146{ 4147 char *s; 4148 va_list v; 4149 va_start (v,p); 4150 s = g (p, va_arg (v,int)); 4151 va_end (v); 4152 return s; 4153} 4154 4155/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4156 function prototypes and stuff, but not '\xHH' hex character constants. 4157 These don't provoke an error unfortunately, instead are silently treated 4158 as 'x'. The following induces an error, until -std is added to get 4159 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4160 array size at least. It's necessary to write '\x00'==0 to get something 4161 that's true only with -std. */ 4162int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4163 4164/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4165 inside strings and character constants. */ 4166#define FOO(x) 'x' 4167int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4168 4169int test (int i, double x); 4170struct s1 {int (*f) (int a);}; 4171struct s2 {int (*f) (double a);}; 4172int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4173int argc; 4174char **argv; 4175int 4176main () 4177{ 4178return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4179 ; 4180 return 0; 4181} 4182_ACEOF 4183for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4184 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4185do 4186 CC="$ac_save_CC $ac_arg" 4187 if ac_fn_c_try_compile "$LINENO"; then : 4188 ac_cv_prog_cc_c89=$ac_arg 4189fi 4190rm -f core conftest.err conftest.$ac_objext 4191 test "x$ac_cv_prog_cc_c89" != "xno" && break 4192done 4193rm -f conftest.$ac_ext 4194CC=$ac_save_CC 4195 4196fi 4197# AC_CACHE_VAL 4198case "x$ac_cv_prog_cc_c89" in 4199 x) 4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4201$as_echo "none needed" >&6; } ;; 4202 xno) 4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4204$as_echo "unsupported" >&6; } ;; 4205 *) 4206 CC="$CC $ac_cv_prog_cc_c89" 4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4208$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4209esac 4210if test "x$ac_cv_prog_cc_c89" != xno; then : 4211 4212fi 4213 4214ac_ext=c 4215ac_cpp='$CPP $CPPFLAGS' 4216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4218ac_compiler_gnu=$ac_cv_c_compiler_gnu 4219 4220ac_ext=c 4221ac_cpp='$CPP $CPPFLAGS' 4222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4224ac_compiler_gnu=$ac_cv_c_compiler_gnu 4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4226$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4227if ${am_cv_prog_cc_c_o+:} false; then : 4228 $as_echo_n "(cached) " >&6 4229else 4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4231/* end confdefs.h. */ 4232 4233int 4234main () 4235{ 4236 4237 ; 4238 return 0; 4239} 4240_ACEOF 4241 # Make sure it works both with $CC and with simple cc. 4242 # Following AC_PROG_CC_C_O, we do the test twice because some 4243 # compilers refuse to overwrite an existing .o file with -o, 4244 # though they will create one. 4245 am_cv_prog_cc_c_o=yes 4246 for am_i in 1 2; do 4247 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4248 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4249 ac_status=$? 4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4251 (exit $ac_status); } \ 4252 && test -f conftest2.$ac_objext; then 4253 : OK 4254 else 4255 am_cv_prog_cc_c_o=no 4256 break 4257 fi 4258 done 4259 rm -f core conftest* 4260 unset am_i 4261fi 4262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4263$as_echo "$am_cv_prog_cc_c_o" >&6; } 4264if test "$am_cv_prog_cc_c_o" != yes; then 4265 # Losing compiler, so override with the script. 4266 # FIXME: It is wrong to rewrite CC. 4267 # But if we don't then we get into trouble of one sort or another. 4268 # A longer-term fix would be to have automake use am__CC in this case, 4269 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4270 CC="$am_aux_dir/compile $CC" 4271fi 4272ac_ext=c 4273ac_cpp='$CPP $CPPFLAGS' 4274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4276ac_compiler_gnu=$ac_cv_c_compiler_gnu 4277 4278DEPDIR="${am__leading_dot}deps" 4279 4280ac_config_commands="$ac_config_commands depfiles" 4281 4282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4283$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 4284cat > confinc.mk << 'END' 4285am__doit: 4286 @echo this is the am__doit target >confinc.out 4287.PHONY: am__doit 4288END 4289am__include="#" 4290am__quote= 4291# BSD make does it like this. 4292echo '.include "confinc.mk" # ignored' > confmf.BSD 4293# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4294echo 'include confinc.mk # ignored' > confmf.GNU 4295_am_result=no 4296for s in GNU BSD; do 4297 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4298 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4299 ac_status=$? 4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4301 (exit $ac_status); } 4302 case $?:`cat confinc.out 2>/dev/null` in #( 4303 '0:this is the am__doit target') : 4304 case $s in #( 4305 BSD) : 4306 am__include='.include' am__quote='"' ;; #( 4307 *) : 4308 am__include='include' am__quote='' ;; 4309esac ;; #( 4310 *) : 4311 ;; 4312esac 4313 if test "$am__include" != "#"; then 4314 _am_result="yes ($s style)" 4315 break 4316 fi 4317done 4318rm -f confinc.* confmf.* 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4320$as_echo "${_am_result}" >&6; } 4321 4322# Check whether --enable-dependency-tracking was given. 4323if test "${enable_dependency_tracking+set}" = set; then : 4324 enableval=$enable_dependency_tracking; 4325fi 4326 4327if test "x$enable_dependency_tracking" != xno; then 4328 am_depcomp="$ac_aux_dir/depcomp" 4329 AMDEPBACKSLASH='\' 4330 am__nodep='_no' 4331fi 4332 if test "x$enable_dependency_tracking" != xno; then 4333 AMDEP_TRUE= 4334 AMDEP_FALSE='#' 4335else 4336 AMDEP_TRUE='#' 4337 AMDEP_FALSE= 4338fi 4339 4340 4341 4342depcc="$CC" am_compiler_list= 4343 4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4345$as_echo_n "checking dependency style of $depcc... " >&6; } 4346if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4347 $as_echo_n "(cached) " >&6 4348else 4349 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4350 # We make a subdir and do the tests there. Otherwise we can end up 4351 # making bogus files that we don't know about and never remove. For 4352 # instance it was reported that on HP-UX the gcc test will end up 4353 # making a dummy file named 'D' -- because '-MD' means "put the output 4354 # in D". 4355 rm -rf conftest.dir 4356 mkdir conftest.dir 4357 # Copy depcomp to subdir because otherwise we won't find it if we're 4358 # using a relative directory. 4359 cp "$am_depcomp" conftest.dir 4360 cd conftest.dir 4361 # We will build objects and dependencies in a subdirectory because 4362 # it helps to detect inapplicable dependency modes. For instance 4363 # both Tru64's cc and ICC support -MD to output dependencies as a 4364 # side effect of compilation, but ICC will put the dependencies in 4365 # the current directory while Tru64 will put them in the object 4366 # directory. 4367 mkdir sub 4368 4369 am_cv_CC_dependencies_compiler_type=none 4370 if test "$am_compiler_list" = ""; then 4371 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4372 fi 4373 am__universal=false 4374 case " $depcc " in #( 4375 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4376 esac 4377 4378 for depmode in $am_compiler_list; do 4379 # Setup a source with many dependencies, because some compilers 4380 # like to wrap large dependency lists on column 80 (with \), and 4381 # we should not choose a depcomp mode which is confused by this. 4382 # 4383 # We need to recreate these files for each test, as the compiler may 4384 # overwrite some of them when testing with obscure command lines. 4385 # This happens at least with the AIX C compiler. 4386 : > sub/conftest.c 4387 for i in 1 2 3 4 5 6; do 4388 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4389 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4390 # Solaris 10 /bin/sh. 4391 echo '/* dummy */' > sub/conftst$i.h 4392 done 4393 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4394 4395 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4396 # mode. It turns out that the SunPro C++ compiler does not properly 4397 # handle '-M -o', and we need to detect this. Also, some Intel 4398 # versions had trouble with output in subdirs. 4399 am__obj=sub/conftest.${OBJEXT-o} 4400 am__minus_obj="-o $am__obj" 4401 case $depmode in 4402 gcc) 4403 # This depmode causes a compiler race in universal mode. 4404 test "$am__universal" = false || continue 4405 ;; 4406 nosideeffect) 4407 # After this tag, mechanisms are not by side-effect, so they'll 4408 # only be used when explicitly requested. 4409 if test "x$enable_dependency_tracking" = xyes; then 4410 continue 4411 else 4412 break 4413 fi 4414 ;; 4415 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4416 # This compiler won't grok '-c -o', but also, the minuso test has 4417 # not run yet. These depmodes are late enough in the game, and 4418 # so weak that their functioning should not be impacted. 4419 am__obj=conftest.${OBJEXT-o} 4420 am__minus_obj= 4421 ;; 4422 none) break ;; 4423 esac 4424 if depmode=$depmode \ 4425 source=sub/conftest.c object=$am__obj \ 4426 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4427 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4428 >/dev/null 2>conftest.err && 4429 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4430 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4431 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4432 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4433 # icc doesn't choke on unknown options, it will just issue warnings 4434 # or remarks (even with -Werror). So we grep stderr for any message 4435 # that says an option was ignored or not supported. 4436 # When given -MP, icc 7.0 and 7.1 complain thusly: 4437 # icc: Command line warning: ignoring option '-M'; no argument required 4438 # The diagnosis changed in icc 8.0: 4439 # icc: Command line remark: option '-MP' not supported 4440 if (grep 'ignoring option' conftest.err || 4441 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4442 am_cv_CC_dependencies_compiler_type=$depmode 4443 break 4444 fi 4445 fi 4446 done 4447 4448 cd .. 4449 rm -rf conftest.dir 4450else 4451 am_cv_CC_dependencies_compiler_type=none 4452fi 4453 4454fi 4455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4456$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4457CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4458 4459 if 4460 test "x$enable_dependency_tracking" != xno \ 4461 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4462 am__fastdepCC_TRUE= 4463 am__fastdepCC_FALSE='#' 4464else 4465 am__fastdepCC_TRUE='#' 4466 am__fastdepCC_FALSE= 4467fi 4468 4469 4470ac_ext=cpp 4471ac_cpp='$CXXCPP $CPPFLAGS' 4472ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4473ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4474ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4475if test -z "$CXX"; then 4476 if test -n "$CCC"; then 4477 CXX=$CCC 4478 else 4479 if test -n "$ac_tool_prefix"; then 4480 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4481 do 4482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4483set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4485$as_echo_n "checking for $ac_word... " >&6; } 4486if ${ac_cv_prog_CXX+:} false; then : 4487 $as_echo_n "(cached) " >&6 4488else 4489 if test -n "$CXX"; then 4490 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4491else 4492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4493for as_dir in $PATH 4494do 4495 IFS=$as_save_IFS 4496 test -z "$as_dir" && as_dir=. 4497 for ac_exec_ext in '' $ac_executable_extensions; do 4498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4499 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4501 break 2 4502 fi 4503done 4504 done 4505IFS=$as_save_IFS 4506 4507fi 4508fi 4509CXX=$ac_cv_prog_CXX 4510if test -n "$CXX"; then 4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4512$as_echo "$CXX" >&6; } 4513else 4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4515$as_echo "no" >&6; } 4516fi 4517 4518 4519 test -n "$CXX" && break 4520 done 4521fi 4522if test -z "$CXX"; then 4523 ac_ct_CXX=$CXX 4524 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4525do 4526 # Extract the first word of "$ac_prog", so it can be a program name with args. 4527set dummy $ac_prog; ac_word=$2 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4529$as_echo_n "checking for $ac_word... " >&6; } 4530if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4531 $as_echo_n "(cached) " >&6 4532else 4533 if test -n "$ac_ct_CXX"; then 4534 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4535else 4536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4537for as_dir in $PATH 4538do 4539 IFS=$as_save_IFS 4540 test -z "$as_dir" && as_dir=. 4541 for ac_exec_ext in '' $ac_executable_extensions; do 4542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4543 ac_cv_prog_ac_ct_CXX="$ac_prog" 4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4545 break 2 4546 fi 4547done 4548 done 4549IFS=$as_save_IFS 4550 4551fi 4552fi 4553ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4554if test -n "$ac_ct_CXX"; then 4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4556$as_echo "$ac_ct_CXX" >&6; } 4557else 4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4559$as_echo "no" >&6; } 4560fi 4561 4562 4563 test -n "$ac_ct_CXX" && break 4564done 4565 4566 if test "x$ac_ct_CXX" = x; then 4567 CXX="g++" 4568 else 4569 case $cross_compiling:$ac_tool_warned in 4570yes:) 4571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4573ac_tool_warned=yes ;; 4574esac 4575 CXX=$ac_ct_CXX 4576 fi 4577fi 4578 4579 fi 4580fi 4581# Provide some information about the compiler. 4582$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4583set X $ac_compile 4584ac_compiler=$2 4585for ac_option in --version -v -V -qversion; do 4586 { { ac_try="$ac_compiler $ac_option >&5" 4587case "(($ac_try" in 4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4589 *) ac_try_echo=$ac_try;; 4590esac 4591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4592$as_echo "$ac_try_echo"; } >&5 4593 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4594 ac_status=$? 4595 if test -s conftest.err; then 4596 sed '10a\ 4597... rest of stderr output deleted ... 4598 10q' conftest.err >conftest.er1 4599 cat conftest.er1 >&5 4600 fi 4601 rm -f conftest.er1 conftest.err 4602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4603 test $ac_status = 0; } 4604done 4605 4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4607$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4608if ${ac_cv_cxx_compiler_gnu+:} false; then : 4609 $as_echo_n "(cached) " >&6 4610else 4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4612/* end confdefs.h. */ 4613 4614int 4615main () 4616{ 4617#ifndef __GNUC__ 4618 choke me 4619#endif 4620 4621 ; 4622 return 0; 4623} 4624_ACEOF 4625if ac_fn_cxx_try_compile "$LINENO"; then : 4626 ac_compiler_gnu=yes 4627else 4628 ac_compiler_gnu=no 4629fi 4630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4631ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4632 4633fi 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4635$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4636if test $ac_compiler_gnu = yes; then 4637 GXX=yes 4638else 4639 GXX= 4640fi 4641ac_test_CXXFLAGS=${CXXFLAGS+set} 4642ac_save_CXXFLAGS=$CXXFLAGS 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4644$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4645if ${ac_cv_prog_cxx_g+:} false; then : 4646 $as_echo_n "(cached) " >&6 4647else 4648 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4649 ac_cxx_werror_flag=yes 4650 ac_cv_prog_cxx_g=no 4651 CXXFLAGS="-g" 4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4653/* end confdefs.h. */ 4654 4655int 4656main () 4657{ 4658 4659 ; 4660 return 0; 4661} 4662_ACEOF 4663if ac_fn_cxx_try_compile "$LINENO"; then : 4664 ac_cv_prog_cxx_g=yes 4665else 4666 CXXFLAGS="" 4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4668/* end confdefs.h. */ 4669 4670int 4671main () 4672{ 4673 4674 ; 4675 return 0; 4676} 4677_ACEOF 4678if ac_fn_cxx_try_compile "$LINENO"; then : 4679 4680else 4681 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4682 CXXFLAGS="-g" 4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4684/* end confdefs.h. */ 4685 4686int 4687main () 4688{ 4689 4690 ; 4691 return 0; 4692} 4693_ACEOF 4694if ac_fn_cxx_try_compile "$LINENO"; then : 4695 ac_cv_prog_cxx_g=yes 4696fi 4697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4698fi 4699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4700fi 4701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4702 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4703fi 4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4705$as_echo "$ac_cv_prog_cxx_g" >&6; } 4706if test "$ac_test_CXXFLAGS" = set; then 4707 CXXFLAGS=$ac_save_CXXFLAGS 4708elif test $ac_cv_prog_cxx_g = yes; then 4709 if test "$GXX" = yes; then 4710 CXXFLAGS="-g -O2" 4711 else 4712 CXXFLAGS="-g" 4713 fi 4714else 4715 if test "$GXX" = yes; then 4716 CXXFLAGS="-O2" 4717 else 4718 CXXFLAGS= 4719 fi 4720fi 4721ac_ext=c 4722ac_cpp='$CPP $CPPFLAGS' 4723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4725ac_compiler_gnu=$ac_cv_c_compiler_gnu 4726 4727depcc="$CXX" am_compiler_list= 4728 4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4730$as_echo_n "checking dependency style of $depcc... " >&6; } 4731if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4732 $as_echo_n "(cached) " >&6 4733else 4734 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4735 # We make a subdir and do the tests there. Otherwise we can end up 4736 # making bogus files that we don't know about and never remove. For 4737 # instance it was reported that on HP-UX the gcc test will end up 4738 # making a dummy file named 'D' -- because '-MD' means "put the output 4739 # in D". 4740 rm -rf conftest.dir 4741 mkdir conftest.dir 4742 # Copy depcomp to subdir because otherwise we won't find it if we're 4743 # using a relative directory. 4744 cp "$am_depcomp" conftest.dir 4745 cd conftest.dir 4746 # We will build objects and dependencies in a subdirectory because 4747 # it helps to detect inapplicable dependency modes. For instance 4748 # both Tru64's cc and ICC support -MD to output dependencies as a 4749 # side effect of compilation, but ICC will put the dependencies in 4750 # the current directory while Tru64 will put them in the object 4751 # directory. 4752 mkdir sub 4753 4754 am_cv_CXX_dependencies_compiler_type=none 4755 if test "$am_compiler_list" = ""; then 4756 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4757 fi 4758 am__universal=false 4759 case " $depcc " in #( 4760 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4761 esac 4762 4763 for depmode in $am_compiler_list; do 4764 # Setup a source with many dependencies, because some compilers 4765 # like to wrap large dependency lists on column 80 (with \), and 4766 # we should not choose a depcomp mode which is confused by this. 4767 # 4768 # We need to recreate these files for each test, as the compiler may 4769 # overwrite some of them when testing with obscure command lines. 4770 # This happens at least with the AIX C compiler. 4771 : > sub/conftest.c 4772 for i in 1 2 3 4 5 6; do 4773 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4774 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4775 # Solaris 10 /bin/sh. 4776 echo '/* dummy */' > sub/conftst$i.h 4777 done 4778 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4779 4780 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4781 # mode. It turns out that the SunPro C++ compiler does not properly 4782 # handle '-M -o', and we need to detect this. Also, some Intel 4783 # versions had trouble with output in subdirs. 4784 am__obj=sub/conftest.${OBJEXT-o} 4785 am__minus_obj="-o $am__obj" 4786 case $depmode in 4787 gcc) 4788 # This depmode causes a compiler race in universal mode. 4789 test "$am__universal" = false || continue 4790 ;; 4791 nosideeffect) 4792 # After this tag, mechanisms are not by side-effect, so they'll 4793 # only be used when explicitly requested. 4794 if test "x$enable_dependency_tracking" = xyes; then 4795 continue 4796 else 4797 break 4798 fi 4799 ;; 4800 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4801 # This compiler won't grok '-c -o', but also, the minuso test has 4802 # not run yet. These depmodes are late enough in the game, and 4803 # so weak that their functioning should not be impacted. 4804 am__obj=conftest.${OBJEXT-o} 4805 am__minus_obj= 4806 ;; 4807 none) break ;; 4808 esac 4809 if depmode=$depmode \ 4810 source=sub/conftest.c object=$am__obj \ 4811 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4812 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4813 >/dev/null 2>conftest.err && 4814 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4815 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4816 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4817 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4818 # icc doesn't choke on unknown options, it will just issue warnings 4819 # or remarks (even with -Werror). So we grep stderr for any message 4820 # that says an option was ignored or not supported. 4821 # When given -MP, icc 7.0 and 7.1 complain thusly: 4822 # icc: Command line warning: ignoring option '-M'; no argument required 4823 # The diagnosis changed in icc 8.0: 4824 # icc: Command line remark: option '-MP' not supported 4825 if (grep 'ignoring option' conftest.err || 4826 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4827 am_cv_CXX_dependencies_compiler_type=$depmode 4828 break 4829 fi 4830 fi 4831 done 4832 4833 cd .. 4834 rm -rf conftest.dir 4835else 4836 am_cv_CXX_dependencies_compiler_type=none 4837fi 4838 4839fi 4840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4841$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4842CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4843 4844 if 4845 test "x$enable_dependency_tracking" != xno \ 4846 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4847 am__fastdepCXX_TRUE= 4848 am__fastdepCXX_FALSE='#' 4849else 4850 am__fastdepCXX_TRUE='#' 4851 am__fastdepCXX_FALSE= 4852fi 4853 4854 4855 4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4857$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4858if ${ac_cv_path_SED+:} false; then : 4859 $as_echo_n "(cached) " >&6 4860else 4861 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4862 for ac_i in 1 2 3 4 5 6 7; do 4863 ac_script="$ac_script$as_nl$ac_script" 4864 done 4865 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4866 { ac_script=; unset ac_script;} 4867 if test -z "$SED"; then 4868 ac_path_SED_found=false 4869 # Loop through the user's path and test for each of PROGNAME-LIST 4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4871for as_dir in $PATH 4872do 4873 IFS=$as_save_IFS 4874 test -z "$as_dir" && as_dir=. 4875 for ac_prog in sed gsed; do 4876 for ac_exec_ext in '' $ac_executable_extensions; do 4877 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4878 as_fn_executable_p "$ac_path_SED" || continue 4879# Check for GNU ac_path_SED and select it if it is found. 4880 # Check for GNU $ac_path_SED 4881case `"$ac_path_SED" --version 2>&1` in 4882*GNU*) 4883 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4884*) 4885 ac_count=0 4886 $as_echo_n 0123456789 >"conftest.in" 4887 while : 4888 do 4889 cat "conftest.in" "conftest.in" >"conftest.tmp" 4890 mv "conftest.tmp" "conftest.in" 4891 cp "conftest.in" "conftest.nl" 4892 $as_echo '' >> "conftest.nl" 4893 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4895 as_fn_arith $ac_count + 1 && ac_count=$as_val 4896 if test $ac_count -gt ${ac_path_SED_max-0}; then 4897 # Best one so far, save it but keep looking for a better one 4898 ac_cv_path_SED="$ac_path_SED" 4899 ac_path_SED_max=$ac_count 4900 fi 4901 # 10*(2^10) chars as input seems more than enough 4902 test $ac_count -gt 10 && break 4903 done 4904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4905esac 4906 4907 $ac_path_SED_found && break 3 4908 done 4909 done 4910 done 4911IFS=$as_save_IFS 4912 if test -z "$ac_cv_path_SED"; then 4913 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4914 fi 4915else 4916 ac_cv_path_SED=$SED 4917fi 4918 4919fi 4920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4921$as_echo "$ac_cv_path_SED" >&6; } 4922 SED="$ac_cv_path_SED" 4923 rm -f conftest.sed 4924 4925 4926 4927if test -n "$ac_tool_prefix"; then 4928 for ac_prog in ar lib "link -lib" 4929 do 4930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4931set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4933$as_echo_n "checking for $ac_word... " >&6; } 4934if ${ac_cv_prog_AR+:} false; then : 4935 $as_echo_n "(cached) " >&6 4936else 4937 if test -n "$AR"; then 4938 ac_cv_prog_AR="$AR" # Let the user override the test. 4939else 4940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4941for as_dir in $PATH 4942do 4943 IFS=$as_save_IFS 4944 test -z "$as_dir" && as_dir=. 4945 for ac_exec_ext in '' $ac_executable_extensions; do 4946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4947 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4949 break 2 4950 fi 4951done 4952 done 4953IFS=$as_save_IFS 4954 4955fi 4956fi 4957AR=$ac_cv_prog_AR 4958if test -n "$AR"; then 4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4960$as_echo "$AR" >&6; } 4961else 4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4963$as_echo "no" >&6; } 4964fi 4965 4966 4967 test -n "$AR" && break 4968 done 4969fi 4970if test -z "$AR"; then 4971 ac_ct_AR=$AR 4972 for ac_prog in ar lib "link -lib" 4973do 4974 # Extract the first word of "$ac_prog", so it can be a program name with args. 4975set dummy $ac_prog; ac_word=$2 4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4977$as_echo_n "checking for $ac_word... " >&6; } 4978if ${ac_cv_prog_ac_ct_AR+:} false; then : 4979 $as_echo_n "(cached) " >&6 4980else 4981 if test -n "$ac_ct_AR"; then 4982 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4983else 4984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4985for as_dir in $PATH 4986do 4987 IFS=$as_save_IFS 4988 test -z "$as_dir" && as_dir=. 4989 for ac_exec_ext in '' $ac_executable_extensions; do 4990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4991 ac_cv_prog_ac_ct_AR="$ac_prog" 4992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4993 break 2 4994 fi 4995done 4996 done 4997IFS=$as_save_IFS 4998 4999fi 5000fi 5001ac_ct_AR=$ac_cv_prog_ac_ct_AR 5002if test -n "$ac_ct_AR"; then 5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5004$as_echo "$ac_ct_AR" >&6; } 5005else 5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5007$as_echo "no" >&6; } 5008fi 5009 5010 5011 test -n "$ac_ct_AR" && break 5012done 5013 5014 if test "x$ac_ct_AR" = x; then 5015 AR="false" 5016 else 5017 case $cross_compiling:$ac_tool_warned in 5018yes:) 5019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5021ac_tool_warned=yes ;; 5022esac 5023 AR=$ac_ct_AR 5024 fi 5025fi 5026 5027: ${AR=ar} 5028 5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 5030$as_echo_n "checking the archiver ($AR) interface... " >&6; } 5031if ${am_cv_ar_interface+:} false; then : 5032 $as_echo_n "(cached) " >&6 5033else 5034 ac_ext=c 5035ac_cpp='$CPP $CPPFLAGS' 5036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5038ac_compiler_gnu=$ac_cv_c_compiler_gnu 5039 5040 am_cv_ar_interface=ar 5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5042/* end confdefs.h. */ 5043int some_variable = 0; 5044_ACEOF 5045if ac_fn_c_try_compile "$LINENO"; then : 5046 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 5047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5048 (eval $am_ar_try) 2>&5 5049 ac_status=$? 5050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5051 test $ac_status = 0; } 5052 if test "$ac_status" -eq 0; then 5053 am_cv_ar_interface=ar 5054 else 5055 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 5056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5057 (eval $am_ar_try) 2>&5 5058 ac_status=$? 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5060 test $ac_status = 0; } 5061 if test "$ac_status" -eq 0; then 5062 am_cv_ar_interface=lib 5063 else 5064 am_cv_ar_interface=unknown 5065 fi 5066 fi 5067 rm -f conftest.lib libconftest.a 5068 5069fi 5070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5071 ac_ext=c 5072ac_cpp='$CPP $CPPFLAGS' 5073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5075ac_compiler_gnu=$ac_cv_c_compiler_gnu 5076 5077fi 5078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 5079$as_echo "$am_cv_ar_interface" >&6; } 5080 5081case $am_cv_ar_interface in 5082ar) 5083 ;; 5084lib) 5085 # Microsoft lib, so override with the ar-lib wrapper script. 5086 # FIXME: It is wrong to rewrite AR. 5087 # But if we don't then we get into trouble of one sort or another. 5088 # A longer-term fix would be to have automake use am__AR in this case, 5089 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 5090 # similar. 5091 AR="$am_aux_dir/ar-lib $AR" 5092 ;; 5093unknown) 5094 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 5095 ;; 5096esac 5097 5098 5099case `pwd` in 5100 *\ * | *\ *) 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5102$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5103esac 5104 5105 5106 5107macro_version='2.4.6' 5108macro_revision='2.4.6' 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122ltmain=$ac_aux_dir/ltmain.sh 5123 5124# Make sure we can run config.sub. 5125$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5126 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5127 5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5129$as_echo_n "checking build system type... " >&6; } 5130if ${ac_cv_build+:} false; then : 5131 $as_echo_n "(cached) " >&6 5132else 5133 ac_build_alias=$build_alias 5134test "x$ac_build_alias" = x && 5135 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5136test "x$ac_build_alias" = x && 5137 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5138ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5139 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5140 5141fi 5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5143$as_echo "$ac_cv_build" >&6; } 5144case $ac_cv_build in 5145*-*-*) ;; 5146*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5147esac 5148build=$ac_cv_build 5149ac_save_IFS=$IFS; IFS='-' 5150set x $ac_cv_build 5151shift 5152build_cpu=$1 5153build_vendor=$2 5154shift; shift 5155# Remember, the first character of IFS is used to create $*, 5156# except with old shells: 5157build_os=$* 5158IFS=$ac_save_IFS 5159case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5160 5161 5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5163$as_echo_n "checking host system type... " >&6; } 5164if ${ac_cv_host+:} false; then : 5165 $as_echo_n "(cached) " >&6 5166else 5167 if test "x$host_alias" = x; then 5168 ac_cv_host=$ac_cv_build 5169else 5170 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5171 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5172fi 5173 5174fi 5175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5176$as_echo "$ac_cv_host" >&6; } 5177case $ac_cv_host in 5178*-*-*) ;; 5179*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5180esac 5181host=$ac_cv_host 5182ac_save_IFS=$IFS; IFS='-' 5183set x $ac_cv_host 5184shift 5185host_cpu=$1 5186host_vendor=$2 5187shift; shift 5188# Remember, the first character of IFS is used to create $*, 5189# except with old shells: 5190host_os=$* 5191IFS=$ac_save_IFS 5192case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5193 5194 5195# Backslashify metacharacters that are still active within 5196# double-quoted strings. 5197sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5198 5199# Same as above, but do not quote variable references. 5200double_quote_subst='s/\(["`\\]\)/\\\1/g' 5201 5202# Sed substitution to delay expansion of an escaped shell variable in a 5203# double_quote_subst'ed string. 5204delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5205 5206# Sed substitution to delay expansion of an escaped single quote. 5207delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5208 5209# Sed substitution to avoid accidental globbing in evaled expressions 5210no_glob_subst='s/\*/\\\*/g' 5211 5212ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5213ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5214ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5215 5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5217$as_echo_n "checking how to print strings... " >&6; } 5218# Test print first, because it will be a builtin if present. 5219if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5220 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5221 ECHO='print -r --' 5222elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5223 ECHO='printf %s\n' 5224else 5225 # Use this function as a fallback that always works. 5226 func_fallback_echo () 5227 { 5228 eval 'cat <<_LTECHO_EOF 5229$1 5230_LTECHO_EOF' 5231 } 5232 ECHO='func_fallback_echo' 5233fi 5234 5235# func_echo_all arg... 5236# Invoke $ECHO with all args, space-separated. 5237func_echo_all () 5238{ 5239 $ECHO "" 5240} 5241 5242case $ECHO in 5243 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5244$as_echo "printf" >&6; } ;; 5245 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5246$as_echo "print -r" >&6; } ;; 5247 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5248$as_echo "cat" >&6; } ;; 5249esac 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5265$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5266if ${ac_cv_path_SED+:} false; then : 5267 $as_echo_n "(cached) " >&6 5268else 5269 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5270 for ac_i in 1 2 3 4 5 6 7; do 5271 ac_script="$ac_script$as_nl$ac_script" 5272 done 5273 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5274 { ac_script=; unset ac_script;} 5275 if test -z "$SED"; then 5276 ac_path_SED_found=false 5277 # Loop through the user's path and test for each of PROGNAME-LIST 5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5279for as_dir in $PATH 5280do 5281 IFS=$as_save_IFS 5282 test -z "$as_dir" && as_dir=. 5283 for ac_prog in sed gsed; do 5284 for ac_exec_ext in '' $ac_executable_extensions; do 5285 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5286 as_fn_executable_p "$ac_path_SED" || continue 5287# Check for GNU ac_path_SED and select it if it is found. 5288 # Check for GNU $ac_path_SED 5289case `"$ac_path_SED" --version 2>&1` in 5290*GNU*) 5291 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5292*) 5293 ac_count=0 5294 $as_echo_n 0123456789 >"conftest.in" 5295 while : 5296 do 5297 cat "conftest.in" "conftest.in" >"conftest.tmp" 5298 mv "conftest.tmp" "conftest.in" 5299 cp "conftest.in" "conftest.nl" 5300 $as_echo '' >> "conftest.nl" 5301 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5303 as_fn_arith $ac_count + 1 && ac_count=$as_val 5304 if test $ac_count -gt ${ac_path_SED_max-0}; then 5305 # Best one so far, save it but keep looking for a better one 5306 ac_cv_path_SED="$ac_path_SED" 5307 ac_path_SED_max=$ac_count 5308 fi 5309 # 10*(2^10) chars as input seems more than enough 5310 test $ac_count -gt 10 && break 5311 done 5312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5313esac 5314 5315 $ac_path_SED_found && break 3 5316 done 5317 done 5318 done 5319IFS=$as_save_IFS 5320 if test -z "$ac_cv_path_SED"; then 5321 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5322 fi 5323else 5324 ac_cv_path_SED=$SED 5325fi 5326 5327fi 5328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5329$as_echo "$ac_cv_path_SED" >&6; } 5330 SED="$ac_cv_path_SED" 5331 rm -f conftest.sed 5332 5333test -z "$SED" && SED=sed 5334Xsed="$SED -e 1s/^X//" 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5347$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5348if ${ac_cv_path_GREP+:} false; then : 5349 $as_echo_n "(cached) " >&6 5350else 5351 if test -z "$GREP"; then 5352 ac_path_GREP_found=false 5353 # Loop through the user's path and test for each of PROGNAME-LIST 5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5355for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5356do 5357 IFS=$as_save_IFS 5358 test -z "$as_dir" && as_dir=. 5359 for ac_prog in grep ggrep; do 5360 for ac_exec_ext in '' $ac_executable_extensions; do 5361 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5362 as_fn_executable_p "$ac_path_GREP" || continue 5363# Check for GNU ac_path_GREP and select it if it is found. 5364 # Check for GNU $ac_path_GREP 5365case `"$ac_path_GREP" --version 2>&1` in 5366*GNU*) 5367 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5368*) 5369 ac_count=0 5370 $as_echo_n 0123456789 >"conftest.in" 5371 while : 5372 do 5373 cat "conftest.in" "conftest.in" >"conftest.tmp" 5374 mv "conftest.tmp" "conftest.in" 5375 cp "conftest.in" "conftest.nl" 5376 $as_echo 'GREP' >> "conftest.nl" 5377 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5379 as_fn_arith $ac_count + 1 && ac_count=$as_val 5380 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5381 # Best one so far, save it but keep looking for a better one 5382 ac_cv_path_GREP="$ac_path_GREP" 5383 ac_path_GREP_max=$ac_count 5384 fi 5385 # 10*(2^10) chars as input seems more than enough 5386 test $ac_count -gt 10 && break 5387 done 5388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5389esac 5390 5391 $ac_path_GREP_found && break 3 5392 done 5393 done 5394 done 5395IFS=$as_save_IFS 5396 if test -z "$ac_cv_path_GREP"; then 5397 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5398 fi 5399else 5400 ac_cv_path_GREP=$GREP 5401fi 5402 5403fi 5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5405$as_echo "$ac_cv_path_GREP" >&6; } 5406 GREP="$ac_cv_path_GREP" 5407 5408 5409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5410$as_echo_n "checking for egrep... " >&6; } 5411if ${ac_cv_path_EGREP+:} false; then : 5412 $as_echo_n "(cached) " >&6 5413else 5414 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5415 then ac_cv_path_EGREP="$GREP -E" 5416 else 5417 if test -z "$EGREP"; then 5418 ac_path_EGREP_found=false 5419 # Loop through the user's path and test for each of PROGNAME-LIST 5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5421for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5422do 5423 IFS=$as_save_IFS 5424 test -z "$as_dir" && as_dir=. 5425 for ac_prog in egrep; do 5426 for ac_exec_ext in '' $ac_executable_extensions; do 5427 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5428 as_fn_executable_p "$ac_path_EGREP" || continue 5429# Check for GNU ac_path_EGREP and select it if it is found. 5430 # Check for GNU $ac_path_EGREP 5431case `"$ac_path_EGREP" --version 2>&1` in 5432*GNU*) 5433 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5434*) 5435 ac_count=0 5436 $as_echo_n 0123456789 >"conftest.in" 5437 while : 5438 do 5439 cat "conftest.in" "conftest.in" >"conftest.tmp" 5440 mv "conftest.tmp" "conftest.in" 5441 cp "conftest.in" "conftest.nl" 5442 $as_echo 'EGREP' >> "conftest.nl" 5443 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5444 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5445 as_fn_arith $ac_count + 1 && ac_count=$as_val 5446 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5447 # Best one so far, save it but keep looking for a better one 5448 ac_cv_path_EGREP="$ac_path_EGREP" 5449 ac_path_EGREP_max=$ac_count 5450 fi 5451 # 10*(2^10) chars as input seems more than enough 5452 test $ac_count -gt 10 && break 5453 done 5454 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5455esac 5456 5457 $ac_path_EGREP_found && break 3 5458 done 5459 done 5460 done 5461IFS=$as_save_IFS 5462 if test -z "$ac_cv_path_EGREP"; then 5463 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5464 fi 5465else 5466 ac_cv_path_EGREP=$EGREP 5467fi 5468 5469 fi 5470fi 5471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5472$as_echo "$ac_cv_path_EGREP" >&6; } 5473 EGREP="$ac_cv_path_EGREP" 5474 5475 5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5477$as_echo_n "checking for fgrep... " >&6; } 5478if ${ac_cv_path_FGREP+:} false; then : 5479 $as_echo_n "(cached) " >&6 5480else 5481 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5482 then ac_cv_path_FGREP="$GREP -F" 5483 else 5484 if test -z "$FGREP"; then 5485 ac_path_FGREP_found=false 5486 # Loop through the user's path and test for each of PROGNAME-LIST 5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5488for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5489do 5490 IFS=$as_save_IFS 5491 test -z "$as_dir" && as_dir=. 5492 for ac_prog in fgrep; do 5493 for ac_exec_ext in '' $ac_executable_extensions; do 5494 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5495 as_fn_executable_p "$ac_path_FGREP" || continue 5496# Check for GNU ac_path_FGREP and select it if it is found. 5497 # Check for GNU $ac_path_FGREP 5498case `"$ac_path_FGREP" --version 2>&1` in 5499*GNU*) 5500 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5501*) 5502 ac_count=0 5503 $as_echo_n 0123456789 >"conftest.in" 5504 while : 5505 do 5506 cat "conftest.in" "conftest.in" >"conftest.tmp" 5507 mv "conftest.tmp" "conftest.in" 5508 cp "conftest.in" "conftest.nl" 5509 $as_echo 'FGREP' >> "conftest.nl" 5510 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5511 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5512 as_fn_arith $ac_count + 1 && ac_count=$as_val 5513 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5514 # Best one so far, save it but keep looking for a better one 5515 ac_cv_path_FGREP="$ac_path_FGREP" 5516 ac_path_FGREP_max=$ac_count 5517 fi 5518 # 10*(2^10) chars as input seems more than enough 5519 test $ac_count -gt 10 && break 5520 done 5521 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5522esac 5523 5524 $ac_path_FGREP_found && break 3 5525 done 5526 done 5527 done 5528IFS=$as_save_IFS 5529 if test -z "$ac_cv_path_FGREP"; then 5530 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5531 fi 5532else 5533 ac_cv_path_FGREP=$FGREP 5534fi 5535 5536 fi 5537fi 5538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5539$as_echo "$ac_cv_path_FGREP" >&6; } 5540 FGREP="$ac_cv_path_FGREP" 5541 5542 5543test -z "$GREP" && GREP=grep 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563# Check whether --with-gnu-ld was given. 5564if test "${with_gnu_ld+set}" = set; then : 5565 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5566else 5567 with_gnu_ld=no 5568fi 5569 5570ac_prog=ld 5571if test yes = "$GCC"; then 5572 # Check if gcc -print-prog-name=ld gives a path. 5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5574$as_echo_n "checking for ld used by $CC... " >&6; } 5575 case $host in 5576 *-*-mingw*) 5577 # gcc leaves a trailing carriage return, which upsets mingw 5578 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5579 *) 5580 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5581 esac 5582 case $ac_prog in 5583 # Accept absolute paths. 5584 [\\/]* | ?:[\\/]*) 5585 re_direlt='/[^/][^/]*/\.\./' 5586 # Canonicalize the pathname of ld 5587 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5588 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5589 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5590 done 5591 test -z "$LD" && LD=$ac_prog 5592 ;; 5593 "") 5594 # If it fails, then pretend we aren't using GCC. 5595 ac_prog=ld 5596 ;; 5597 *) 5598 # If it is relative, then search for the first ld in PATH. 5599 with_gnu_ld=unknown 5600 ;; 5601 esac 5602elif test yes = "$with_gnu_ld"; then 5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5604$as_echo_n "checking for GNU ld... " >&6; } 5605else 5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5607$as_echo_n "checking for non-GNU ld... " >&6; } 5608fi 5609if ${lt_cv_path_LD+:} false; then : 5610 $as_echo_n "(cached) " >&6 5611else 5612 if test -z "$LD"; then 5613 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5614 for ac_dir in $PATH; do 5615 IFS=$lt_save_ifs 5616 test -z "$ac_dir" && ac_dir=. 5617 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5618 lt_cv_path_LD=$ac_dir/$ac_prog 5619 # Check to see if the program is GNU ld. I'd rather use --version, 5620 # but apparently some variants of GNU ld only accept -v. 5621 # Break only if it was the GNU/non-GNU ld that we prefer. 5622 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5623 *GNU* | *'with BFD'*) 5624 test no != "$with_gnu_ld" && break 5625 ;; 5626 *) 5627 test yes != "$with_gnu_ld" && break 5628 ;; 5629 esac 5630 fi 5631 done 5632 IFS=$lt_save_ifs 5633else 5634 lt_cv_path_LD=$LD # Let the user override the test with a path. 5635fi 5636fi 5637 5638LD=$lt_cv_path_LD 5639if test -n "$LD"; then 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5641$as_echo "$LD" >&6; } 5642else 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5644$as_echo "no" >&6; } 5645fi 5646test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5648$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5649if ${lt_cv_prog_gnu_ld+:} false; then : 5650 $as_echo_n "(cached) " >&6 5651else 5652 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5653case `$LD -v 2>&1 </dev/null` in 5654*GNU* | *'with BFD'*) 5655 lt_cv_prog_gnu_ld=yes 5656 ;; 5657*) 5658 lt_cv_prog_gnu_ld=no 5659 ;; 5660esac 5661fi 5662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5663$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5664with_gnu_ld=$lt_cv_prog_gnu_ld 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5675$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5676if ${lt_cv_path_NM+:} false; then : 5677 $as_echo_n "(cached) " >&6 5678else 5679 if test -n "$NM"; then 5680 # Let the user override the test. 5681 lt_cv_path_NM=$NM 5682else 5683 lt_nm_to_check=${ac_tool_prefix}nm 5684 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5685 lt_nm_to_check="$lt_nm_to_check nm" 5686 fi 5687 for lt_tmp_nm in $lt_nm_to_check; do 5688 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5689 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5690 IFS=$lt_save_ifs 5691 test -z "$ac_dir" && ac_dir=. 5692 tmp_nm=$ac_dir/$lt_tmp_nm 5693 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5694 # Check to see if the nm accepts a BSD-compat flag. 5695 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5696 # nm: unknown option "B" ignored 5697 # Tru64's nm complains that /dev/null is an invalid object file 5698 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5699 case $build_os in 5700 mingw*) lt_bad_file=conftest.nm/nofile ;; 5701 *) lt_bad_file=/dev/null ;; 5702 esac 5703 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5704 *$lt_bad_file* | *'Invalid file or object type'*) 5705 lt_cv_path_NM="$tmp_nm -B" 5706 break 2 5707 ;; 5708 *) 5709 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5710 */dev/null*) 5711 lt_cv_path_NM="$tmp_nm -p" 5712 break 2 5713 ;; 5714 *) 5715 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5716 continue # so that we can try to find one that supports BSD flags 5717 ;; 5718 esac 5719 ;; 5720 esac 5721 fi 5722 done 5723 IFS=$lt_save_ifs 5724 done 5725 : ${lt_cv_path_NM=no} 5726fi 5727fi 5728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5729$as_echo "$lt_cv_path_NM" >&6; } 5730if test no != "$lt_cv_path_NM"; then 5731 NM=$lt_cv_path_NM 5732else 5733 # Didn't find any BSD compatible name lister, look for dumpbin. 5734 if test -n "$DUMPBIN"; then : 5735 # Let the user override the test. 5736 else 5737 if test -n "$ac_tool_prefix"; then 5738 for ac_prog in dumpbin "link -dump" 5739 do 5740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5741set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5743$as_echo_n "checking for $ac_word... " >&6; } 5744if ${ac_cv_prog_DUMPBIN+:} false; then : 5745 $as_echo_n "(cached) " >&6 5746else 5747 if test -n "$DUMPBIN"; then 5748 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5749else 5750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5751for as_dir in $PATH 5752do 5753 IFS=$as_save_IFS 5754 test -z "$as_dir" && as_dir=. 5755 for ac_exec_ext in '' $ac_executable_extensions; do 5756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5757 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5759 break 2 5760 fi 5761done 5762 done 5763IFS=$as_save_IFS 5764 5765fi 5766fi 5767DUMPBIN=$ac_cv_prog_DUMPBIN 5768if test -n "$DUMPBIN"; then 5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5770$as_echo "$DUMPBIN" >&6; } 5771else 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5773$as_echo "no" >&6; } 5774fi 5775 5776 5777 test -n "$DUMPBIN" && break 5778 done 5779fi 5780if test -z "$DUMPBIN"; then 5781 ac_ct_DUMPBIN=$DUMPBIN 5782 for ac_prog in dumpbin "link -dump" 5783do 5784 # Extract the first word of "$ac_prog", so it can be a program name with args. 5785set dummy $ac_prog; ac_word=$2 5786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5787$as_echo_n "checking for $ac_word... " >&6; } 5788if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5789 $as_echo_n "(cached) " >&6 5790else 5791 if test -n "$ac_ct_DUMPBIN"; then 5792 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5793else 5794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5795for as_dir in $PATH 5796do 5797 IFS=$as_save_IFS 5798 test -z "$as_dir" && as_dir=. 5799 for ac_exec_ext in '' $ac_executable_extensions; do 5800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5801 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5803 break 2 5804 fi 5805done 5806 done 5807IFS=$as_save_IFS 5808 5809fi 5810fi 5811ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5812if test -n "$ac_ct_DUMPBIN"; then 5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5814$as_echo "$ac_ct_DUMPBIN" >&6; } 5815else 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5817$as_echo "no" >&6; } 5818fi 5819 5820 5821 test -n "$ac_ct_DUMPBIN" && break 5822done 5823 5824 if test "x$ac_ct_DUMPBIN" = x; then 5825 DUMPBIN=":" 5826 else 5827 case $cross_compiling:$ac_tool_warned in 5828yes:) 5829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5831ac_tool_warned=yes ;; 5832esac 5833 DUMPBIN=$ac_ct_DUMPBIN 5834 fi 5835fi 5836 5837 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5838 *COFF*) 5839 DUMPBIN="$DUMPBIN -symbols -headers" 5840 ;; 5841 *) 5842 DUMPBIN=: 5843 ;; 5844 esac 5845 fi 5846 5847 if test : != "$DUMPBIN"; then 5848 NM=$DUMPBIN 5849 fi 5850fi 5851test -z "$NM" && NM=nm 5852 5853 5854 5855 5856 5857 5858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5859$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5860if ${lt_cv_nm_interface+:} false; then : 5861 $as_echo_n "(cached) " >&6 5862else 5863 lt_cv_nm_interface="BSD nm" 5864 echo "int some_variable = 0;" > conftest.$ac_ext 5865 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5866 (eval "$ac_compile" 2>conftest.err) 5867 cat conftest.err >&5 5868 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5869 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5870 cat conftest.err >&5 5871 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5872 cat conftest.out >&5 5873 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5874 lt_cv_nm_interface="MS dumpbin" 5875 fi 5876 rm -f conftest* 5877fi 5878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5879$as_echo "$lt_cv_nm_interface" >&6; } 5880 5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5882$as_echo_n "checking whether ln -s works... " >&6; } 5883LN_S=$as_ln_s 5884if test "$LN_S" = "ln -s"; then 5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5886$as_echo "yes" >&6; } 5887else 5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5889$as_echo "no, using $LN_S" >&6; } 5890fi 5891 5892# find the maximum length of command line arguments 5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5894$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5895if ${lt_cv_sys_max_cmd_len+:} false; then : 5896 $as_echo_n "(cached) " >&6 5897else 5898 i=0 5899 teststring=ABCD 5900 5901 case $build_os in 5902 msdosdjgpp*) 5903 # On DJGPP, this test can blow up pretty badly due to problems in libc 5904 # (any single argument exceeding 2000 bytes causes a buffer overrun 5905 # during glob expansion). Even if it were fixed, the result of this 5906 # check would be larger than it should be. 5907 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5908 ;; 5909 5910 gnu*) 5911 # Under GNU Hurd, this test is not required because there is 5912 # no limit to the length of command line arguments. 5913 # Libtool will interpret -1 as no limit whatsoever 5914 lt_cv_sys_max_cmd_len=-1; 5915 ;; 5916 5917 cygwin* | mingw* | cegcc*) 5918 # On Win9x/ME, this test blows up -- it succeeds, but takes 5919 # about 5 minutes as the teststring grows exponentially. 5920 # Worse, since 9x/ME are not pre-emptively multitasking, 5921 # you end up with a "frozen" computer, even though with patience 5922 # the test eventually succeeds (with a max line length of 256k). 5923 # Instead, let's just punt: use the minimum linelength reported by 5924 # all of the supported platforms: 8192 (on NT/2K/XP). 5925 lt_cv_sys_max_cmd_len=8192; 5926 ;; 5927 5928 mint*) 5929 # On MiNT this can take a long time and run out of memory. 5930 lt_cv_sys_max_cmd_len=8192; 5931 ;; 5932 5933 amigaos*) 5934 # On AmigaOS with pdksh, this test takes hours, literally. 5935 # So we just punt and use a minimum line length of 8192. 5936 lt_cv_sys_max_cmd_len=8192; 5937 ;; 5938 5939 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5940 # This has been around since 386BSD, at least. Likely further. 5941 if test -x /sbin/sysctl; then 5942 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5943 elif test -x /usr/sbin/sysctl; then 5944 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5945 else 5946 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5947 fi 5948 # And add a safety zone 5949 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5950 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5951 ;; 5952 5953 interix*) 5954 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5955 lt_cv_sys_max_cmd_len=196608 5956 ;; 5957 5958 os2*) 5959 # The test takes a long time on OS/2. 5960 lt_cv_sys_max_cmd_len=8192 5961 ;; 5962 5963 osf*) 5964 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5965 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5966 # nice to cause kernel panics so lets avoid the loop below. 5967 # First set a reasonable default. 5968 lt_cv_sys_max_cmd_len=16384 5969 # 5970 if test -x /sbin/sysconfig; then 5971 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5972 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5973 esac 5974 fi 5975 ;; 5976 sco3.2v5*) 5977 lt_cv_sys_max_cmd_len=102400 5978 ;; 5979 sysv5* | sco5v6* | sysv4.2uw2*) 5980 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5981 if test -n "$kargmax"; then 5982 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5983 else 5984 lt_cv_sys_max_cmd_len=32768 5985 fi 5986 ;; 5987 *) 5988 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5989 if test -n "$lt_cv_sys_max_cmd_len" && \ 5990 test undefined != "$lt_cv_sys_max_cmd_len"; then 5991 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5992 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5993 else 5994 # Make teststring a little bigger before we do anything with it. 5995 # a 1K string should be a reasonable start. 5996 for i in 1 2 3 4 5 6 7 8; do 5997 teststring=$teststring$teststring 5998 done 5999 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6000 # If test is not a shell built-in, we'll probably end up computing a 6001 # maximum length that is only half of the actual maximum length, but 6002 # we can't tell. 6003 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6004 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6005 test 17 != "$i" # 1/2 MB should be enough 6006 do 6007 i=`expr $i + 1` 6008 teststring=$teststring$teststring 6009 done 6010 # Only check the string length outside the loop. 6011 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6012 teststring= 6013 # Add a significant safety factor because C++ compilers can tack on 6014 # massive amounts of additional arguments before passing them to the 6015 # linker. It appears as though 1/2 is a usable value. 6016 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6017 fi 6018 ;; 6019 esac 6020 6021fi 6022 6023if test -n "$lt_cv_sys_max_cmd_len"; then 6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6025$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6026else 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6028$as_echo "none" >&6; } 6029fi 6030max_cmd_len=$lt_cv_sys_max_cmd_len 6031 6032 6033 6034 6035 6036 6037: ${CP="cp -f"} 6038: ${MV="mv -f"} 6039: ${RM="rm -f"} 6040 6041if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6042 lt_unset=unset 6043else 6044 lt_unset=false 6045fi 6046 6047 6048 6049 6050 6051# test EBCDIC or ASCII 6052case `echo X|tr X '\101'` in 6053 A) # ASCII based system 6054 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6055 lt_SP2NL='tr \040 \012' 6056 lt_NL2SP='tr \015\012 \040\040' 6057 ;; 6058 *) # EBCDIC based system 6059 lt_SP2NL='tr \100 \n' 6060 lt_NL2SP='tr \r\n \100\100' 6061 ;; 6062esac 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6073$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6074if ${lt_cv_to_host_file_cmd+:} false; then : 6075 $as_echo_n "(cached) " >&6 6076else 6077 case $host in 6078 *-*-mingw* ) 6079 case $build in 6080 *-*-mingw* ) # actually msys 6081 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6082 ;; 6083 *-*-cygwin* ) 6084 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6085 ;; 6086 * ) # otherwise, assume *nix 6087 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6088 ;; 6089 esac 6090 ;; 6091 *-*-cygwin* ) 6092 case $build in 6093 *-*-mingw* ) # actually msys 6094 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6095 ;; 6096 *-*-cygwin* ) 6097 lt_cv_to_host_file_cmd=func_convert_file_noop 6098 ;; 6099 * ) # otherwise, assume *nix 6100 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6101 ;; 6102 esac 6103 ;; 6104 * ) # unhandled hosts (and "normal" native builds) 6105 lt_cv_to_host_file_cmd=func_convert_file_noop 6106 ;; 6107esac 6108 6109fi 6110 6111to_host_file_cmd=$lt_cv_to_host_file_cmd 6112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6113$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6114 6115 6116 6117 6118 6119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6120$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6121if ${lt_cv_to_tool_file_cmd+:} false; then : 6122 $as_echo_n "(cached) " >&6 6123else 6124 #assume ordinary cross tools, or native build. 6125lt_cv_to_tool_file_cmd=func_convert_file_noop 6126case $host in 6127 *-*-mingw* ) 6128 case $build in 6129 *-*-mingw* ) # actually msys 6130 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6131 ;; 6132 esac 6133 ;; 6134esac 6135 6136fi 6137 6138to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6140$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6141 6142 6143 6144 6145 6146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6147$as_echo_n "checking for $LD option to reload object files... " >&6; } 6148if ${lt_cv_ld_reload_flag+:} false; then : 6149 $as_echo_n "(cached) " >&6 6150else 6151 lt_cv_ld_reload_flag='-r' 6152fi 6153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6154$as_echo "$lt_cv_ld_reload_flag" >&6; } 6155reload_flag=$lt_cv_ld_reload_flag 6156case $reload_flag in 6157"" | " "*) ;; 6158*) reload_flag=" $reload_flag" ;; 6159esac 6160reload_cmds='$LD$reload_flag -o $output$reload_objs' 6161case $host_os in 6162 cygwin* | mingw* | pw32* | cegcc*) 6163 if test yes != "$GCC"; then 6164 reload_cmds=false 6165 fi 6166 ;; 6167 darwin*) 6168 if test yes = "$GCC"; then 6169 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6170 else 6171 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6172 fi 6173 ;; 6174esac 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184if test -n "$ac_tool_prefix"; then 6185 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6186set dummy ${ac_tool_prefix}objdump; ac_word=$2 6187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6188$as_echo_n "checking for $ac_word... " >&6; } 6189if ${ac_cv_prog_OBJDUMP+:} false; then : 6190 $as_echo_n "(cached) " >&6 6191else 6192 if test -n "$OBJDUMP"; then 6193 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6194else 6195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6196for as_dir in $PATH 6197do 6198 IFS=$as_save_IFS 6199 test -z "$as_dir" && as_dir=. 6200 for ac_exec_ext in '' $ac_executable_extensions; do 6201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6202 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6204 break 2 6205 fi 6206done 6207 done 6208IFS=$as_save_IFS 6209 6210fi 6211fi 6212OBJDUMP=$ac_cv_prog_OBJDUMP 6213if test -n "$OBJDUMP"; then 6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6215$as_echo "$OBJDUMP" >&6; } 6216else 6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6218$as_echo "no" >&6; } 6219fi 6220 6221 6222fi 6223if test -z "$ac_cv_prog_OBJDUMP"; then 6224 ac_ct_OBJDUMP=$OBJDUMP 6225 # Extract the first word of "objdump", so it can be a program name with args. 6226set dummy objdump; ac_word=$2 6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6228$as_echo_n "checking for $ac_word... " >&6; } 6229if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6230 $as_echo_n "(cached) " >&6 6231else 6232 if test -n "$ac_ct_OBJDUMP"; then 6233 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6234else 6235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6236for as_dir in $PATH 6237do 6238 IFS=$as_save_IFS 6239 test -z "$as_dir" && as_dir=. 6240 for ac_exec_ext in '' $ac_executable_extensions; do 6241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6242 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6244 break 2 6245 fi 6246done 6247 done 6248IFS=$as_save_IFS 6249 6250fi 6251fi 6252ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6253if test -n "$ac_ct_OBJDUMP"; then 6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6255$as_echo "$ac_ct_OBJDUMP" >&6; } 6256else 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6258$as_echo "no" >&6; } 6259fi 6260 6261 if test "x$ac_ct_OBJDUMP" = x; then 6262 OBJDUMP="false" 6263 else 6264 case $cross_compiling:$ac_tool_warned in 6265yes:) 6266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6268ac_tool_warned=yes ;; 6269esac 6270 OBJDUMP=$ac_ct_OBJDUMP 6271 fi 6272else 6273 OBJDUMP="$ac_cv_prog_OBJDUMP" 6274fi 6275 6276test -z "$OBJDUMP" && OBJDUMP=objdump 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6287$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6288if ${lt_cv_deplibs_check_method+:} false; then : 6289 $as_echo_n "(cached) " >&6 6290else 6291 lt_cv_file_magic_cmd='$MAGIC_CMD' 6292lt_cv_file_magic_test_file= 6293lt_cv_deplibs_check_method='unknown' 6294# Need to set the preceding variable on all platforms that support 6295# interlibrary dependencies. 6296# 'none' -- dependencies not supported. 6297# 'unknown' -- same as none, but documents that we really don't know. 6298# 'pass_all' -- all dependencies passed with no checks. 6299# 'test_compile' -- check by making test program. 6300# 'file_magic [[regex]]' -- check by looking for files in library path 6301# that responds to the $file_magic_cmd with a given extended regex. 6302# If you have 'file' or equivalent on your system and you're not sure 6303# whether 'pass_all' will *always* work, you probably want this one. 6304 6305case $host_os in 6306aix[4-9]*) 6307 lt_cv_deplibs_check_method=pass_all 6308 ;; 6309 6310beos*) 6311 lt_cv_deplibs_check_method=pass_all 6312 ;; 6313 6314bsdi[45]*) 6315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6316 lt_cv_file_magic_cmd='/usr/bin/file -L' 6317 lt_cv_file_magic_test_file=/shlib/libc.so 6318 ;; 6319 6320cygwin*) 6321 # func_win32_libid is a shell function defined in ltmain.sh 6322 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6323 lt_cv_file_magic_cmd='func_win32_libid' 6324 ;; 6325 6326mingw* | pw32*) 6327 # Base MSYS/MinGW do not provide the 'file' command needed by 6328 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6329 # unless we find 'file', for example because we are cross-compiling. 6330 if ( file / ) >/dev/null 2>&1; then 6331 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6332 lt_cv_file_magic_cmd='func_win32_libid' 6333 else 6334 # Keep this pattern in sync with the one in func_win32_libid. 6335 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6336 lt_cv_file_magic_cmd='$OBJDUMP -f' 6337 fi 6338 ;; 6339 6340cegcc*) 6341 # use the weaker test based on 'objdump'. See mingw*. 6342 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6343 lt_cv_file_magic_cmd='$OBJDUMP -f' 6344 ;; 6345 6346darwin* | rhapsody*) 6347 lt_cv_deplibs_check_method=pass_all 6348 ;; 6349 6350freebsd* | dragonfly*) 6351 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6352 case $host_cpu in 6353 i*86 ) 6354 # Not sure whether the presence of OpenBSD here was a mistake. 6355 # Let's accept both of them until this is cleared up. 6356 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6357 lt_cv_file_magic_cmd=/usr/bin/file 6358 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6359 ;; 6360 esac 6361 else 6362 lt_cv_deplibs_check_method=pass_all 6363 fi 6364 ;; 6365 6366haiku*) 6367 lt_cv_deplibs_check_method=pass_all 6368 ;; 6369 6370hpux10.20* | hpux11*) 6371 lt_cv_file_magic_cmd=/usr/bin/file 6372 case $host_cpu in 6373 ia64*) 6374 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6375 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6376 ;; 6377 hppa*64*) 6378 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]' 6379 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6380 ;; 6381 *) 6382 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6383 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6384 ;; 6385 esac 6386 ;; 6387 6388interix[3-9]*) 6389 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6390 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6391 ;; 6392 6393irix5* | irix6* | nonstopux*) 6394 case $LD in 6395 *-32|*"-32 ") libmagic=32-bit;; 6396 *-n32|*"-n32 ") libmagic=N32;; 6397 *-64|*"-64 ") libmagic=64-bit;; 6398 *) libmagic=never-match;; 6399 esac 6400 lt_cv_deplibs_check_method=pass_all 6401 ;; 6402 6403# This must be glibc/ELF. 6404linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6405 lt_cv_deplibs_check_method=pass_all 6406 ;; 6407 6408netbsd*) 6409 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6411 else 6412 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6413 fi 6414 ;; 6415 6416newos6*) 6417 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6418 lt_cv_file_magic_cmd=/usr/bin/file 6419 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6420 ;; 6421 6422*nto* | *qnx*) 6423 lt_cv_deplibs_check_method=pass_all 6424 ;; 6425 6426openbsd* | bitrig*) 6427 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6429 else 6430 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6431 fi 6432 ;; 6433 6434osf3* | osf4* | osf5*) 6435 lt_cv_deplibs_check_method=pass_all 6436 ;; 6437 6438rdos*) 6439 lt_cv_deplibs_check_method=pass_all 6440 ;; 6441 6442solaris*) 6443 lt_cv_deplibs_check_method=pass_all 6444 ;; 6445 6446sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6447 lt_cv_deplibs_check_method=pass_all 6448 ;; 6449 6450sysv4 | sysv4.3*) 6451 case $host_vendor in 6452 motorola) 6453 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]' 6454 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6455 ;; 6456 ncr) 6457 lt_cv_deplibs_check_method=pass_all 6458 ;; 6459 sequent) 6460 lt_cv_file_magic_cmd='/bin/file' 6461 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6462 ;; 6463 sni) 6464 lt_cv_file_magic_cmd='/bin/file' 6465 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6466 lt_cv_file_magic_test_file=/lib/libc.so 6467 ;; 6468 siemens) 6469 lt_cv_deplibs_check_method=pass_all 6470 ;; 6471 pc) 6472 lt_cv_deplibs_check_method=pass_all 6473 ;; 6474 esac 6475 ;; 6476 6477tpf*) 6478 lt_cv_deplibs_check_method=pass_all 6479 ;; 6480os2*) 6481 lt_cv_deplibs_check_method=pass_all 6482 ;; 6483esac 6484 6485fi 6486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6487$as_echo "$lt_cv_deplibs_check_method" >&6; } 6488 6489file_magic_glob= 6490want_nocaseglob=no 6491if test "$build" = "$host"; then 6492 case $host_os in 6493 mingw* | pw32*) 6494 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6495 want_nocaseglob=yes 6496 else 6497 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6498 fi 6499 ;; 6500 esac 6501fi 6502 6503file_magic_cmd=$lt_cv_file_magic_cmd 6504deplibs_check_method=$lt_cv_deplibs_check_method 6505test -z "$deplibs_check_method" && deplibs_check_method=unknown 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528if test -n "$ac_tool_prefix"; then 6529 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6530set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6532$as_echo_n "checking for $ac_word... " >&6; } 6533if ${ac_cv_prog_DLLTOOL+:} false; then : 6534 $as_echo_n "(cached) " >&6 6535else 6536 if test -n "$DLLTOOL"; then 6537 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6538else 6539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6540for as_dir in $PATH 6541do 6542 IFS=$as_save_IFS 6543 test -z "$as_dir" && as_dir=. 6544 for ac_exec_ext in '' $ac_executable_extensions; do 6545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6546 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6548 break 2 6549 fi 6550done 6551 done 6552IFS=$as_save_IFS 6553 6554fi 6555fi 6556DLLTOOL=$ac_cv_prog_DLLTOOL 6557if test -n "$DLLTOOL"; then 6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6559$as_echo "$DLLTOOL" >&6; } 6560else 6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6562$as_echo "no" >&6; } 6563fi 6564 6565 6566fi 6567if test -z "$ac_cv_prog_DLLTOOL"; then 6568 ac_ct_DLLTOOL=$DLLTOOL 6569 # Extract the first word of "dlltool", so it can be a program name with args. 6570set dummy dlltool; ac_word=$2 6571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6572$as_echo_n "checking for $ac_word... " >&6; } 6573if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6574 $as_echo_n "(cached) " >&6 6575else 6576 if test -n "$ac_ct_DLLTOOL"; then 6577 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6578else 6579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6580for as_dir in $PATH 6581do 6582 IFS=$as_save_IFS 6583 test -z "$as_dir" && as_dir=. 6584 for ac_exec_ext in '' $ac_executable_extensions; do 6585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6586 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6588 break 2 6589 fi 6590done 6591 done 6592IFS=$as_save_IFS 6593 6594fi 6595fi 6596ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6597if test -n "$ac_ct_DLLTOOL"; then 6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6599$as_echo "$ac_ct_DLLTOOL" >&6; } 6600else 6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6602$as_echo "no" >&6; } 6603fi 6604 6605 if test "x$ac_ct_DLLTOOL" = x; then 6606 DLLTOOL="false" 6607 else 6608 case $cross_compiling:$ac_tool_warned in 6609yes:) 6610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6612ac_tool_warned=yes ;; 6613esac 6614 DLLTOOL=$ac_ct_DLLTOOL 6615 fi 6616else 6617 DLLTOOL="$ac_cv_prog_DLLTOOL" 6618fi 6619 6620test -z "$DLLTOOL" && DLLTOOL=dlltool 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6632$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6633if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6634 $as_echo_n "(cached) " >&6 6635else 6636 lt_cv_sharedlib_from_linklib_cmd='unknown' 6637 6638case $host_os in 6639cygwin* | mingw* | pw32* | cegcc*) 6640 # two different shell functions defined in ltmain.sh; 6641 # decide which one to use based on capabilities of $DLLTOOL 6642 case `$DLLTOOL --help 2>&1` in 6643 *--identify-strict*) 6644 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6645 ;; 6646 *) 6647 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6648 ;; 6649 esac 6650 ;; 6651*) 6652 # fallback: assume linklib IS sharedlib 6653 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6654 ;; 6655esac 6656 6657fi 6658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6659$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6660sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6661test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6662 6663 6664 6665 6666 6667 6668 6669if test -n "$ac_tool_prefix"; then 6670 for ac_prog in ar 6671 do 6672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6673set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6675$as_echo_n "checking for $ac_word... " >&6; } 6676if ${ac_cv_prog_AR+:} false; then : 6677 $as_echo_n "(cached) " >&6 6678else 6679 if test -n "$AR"; then 6680 ac_cv_prog_AR="$AR" # Let the user override the test. 6681else 6682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6683for as_dir in $PATH 6684do 6685 IFS=$as_save_IFS 6686 test -z "$as_dir" && as_dir=. 6687 for ac_exec_ext in '' $ac_executable_extensions; do 6688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6689 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6691 break 2 6692 fi 6693done 6694 done 6695IFS=$as_save_IFS 6696 6697fi 6698fi 6699AR=$ac_cv_prog_AR 6700if test -n "$AR"; then 6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6702$as_echo "$AR" >&6; } 6703else 6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6705$as_echo "no" >&6; } 6706fi 6707 6708 6709 test -n "$AR" && break 6710 done 6711fi 6712if test -z "$AR"; then 6713 ac_ct_AR=$AR 6714 for ac_prog in ar 6715do 6716 # Extract the first word of "$ac_prog", so it can be a program name with args. 6717set dummy $ac_prog; ac_word=$2 6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6719$as_echo_n "checking for $ac_word... " >&6; } 6720if ${ac_cv_prog_ac_ct_AR+:} false; then : 6721 $as_echo_n "(cached) " >&6 6722else 6723 if test -n "$ac_ct_AR"; then 6724 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6725else 6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6727for as_dir in $PATH 6728do 6729 IFS=$as_save_IFS 6730 test -z "$as_dir" && as_dir=. 6731 for ac_exec_ext in '' $ac_executable_extensions; do 6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6733 ac_cv_prog_ac_ct_AR="$ac_prog" 6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6735 break 2 6736 fi 6737done 6738 done 6739IFS=$as_save_IFS 6740 6741fi 6742fi 6743ac_ct_AR=$ac_cv_prog_ac_ct_AR 6744if test -n "$ac_ct_AR"; then 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6746$as_echo "$ac_ct_AR" >&6; } 6747else 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6749$as_echo "no" >&6; } 6750fi 6751 6752 6753 test -n "$ac_ct_AR" && break 6754done 6755 6756 if test "x$ac_ct_AR" = x; then 6757 AR="false" 6758 else 6759 case $cross_compiling:$ac_tool_warned in 6760yes:) 6761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6763ac_tool_warned=yes ;; 6764esac 6765 AR=$ac_ct_AR 6766 fi 6767fi 6768 6769: ${AR=ar} 6770: ${AR_FLAGS=cru} 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6783$as_echo_n "checking for archiver @FILE support... " >&6; } 6784if ${lt_cv_ar_at_file+:} false; then : 6785 $as_echo_n "(cached) " >&6 6786else 6787 lt_cv_ar_at_file=no 6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6789/* end confdefs.h. */ 6790 6791int 6792main () 6793{ 6794 6795 ; 6796 return 0; 6797} 6798_ACEOF 6799if ac_fn_c_try_compile "$LINENO"; then : 6800 echo conftest.$ac_objext > conftest.lst 6801 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6803 (eval $lt_ar_try) 2>&5 6804 ac_status=$? 6805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6806 test $ac_status = 0; } 6807 if test 0 -eq "$ac_status"; then 6808 # Ensure the archiver fails upon bogus file names. 6809 rm -f conftest.$ac_objext libconftest.a 6810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6811 (eval $lt_ar_try) 2>&5 6812 ac_status=$? 6813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6814 test $ac_status = 0; } 6815 if test 0 -ne "$ac_status"; then 6816 lt_cv_ar_at_file=@ 6817 fi 6818 fi 6819 rm -f conftest.* libconftest.a 6820 6821fi 6822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6823 6824fi 6825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6826$as_echo "$lt_cv_ar_at_file" >&6; } 6827 6828if test no = "$lt_cv_ar_at_file"; then 6829 archiver_list_spec= 6830else 6831 archiver_list_spec=$lt_cv_ar_at_file 6832fi 6833 6834 6835 6836 6837 6838 6839 6840if test -n "$ac_tool_prefix"; then 6841 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6842set dummy ${ac_tool_prefix}strip; ac_word=$2 6843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6844$as_echo_n "checking for $ac_word... " >&6; } 6845if ${ac_cv_prog_STRIP+:} false; then : 6846 $as_echo_n "(cached) " >&6 6847else 6848 if test -n "$STRIP"; then 6849 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6850else 6851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6852for as_dir in $PATH 6853do 6854 IFS=$as_save_IFS 6855 test -z "$as_dir" && as_dir=. 6856 for ac_exec_ext in '' $ac_executable_extensions; do 6857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6858 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6860 break 2 6861 fi 6862done 6863 done 6864IFS=$as_save_IFS 6865 6866fi 6867fi 6868STRIP=$ac_cv_prog_STRIP 6869if test -n "$STRIP"; then 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6871$as_echo "$STRIP" >&6; } 6872else 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6874$as_echo "no" >&6; } 6875fi 6876 6877 6878fi 6879if test -z "$ac_cv_prog_STRIP"; then 6880 ac_ct_STRIP=$STRIP 6881 # Extract the first word of "strip", so it can be a program name with args. 6882set dummy strip; ac_word=$2 6883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6884$as_echo_n "checking for $ac_word... " >&6; } 6885if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6886 $as_echo_n "(cached) " >&6 6887else 6888 if test -n "$ac_ct_STRIP"; then 6889 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6890else 6891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6892for as_dir in $PATH 6893do 6894 IFS=$as_save_IFS 6895 test -z "$as_dir" && as_dir=. 6896 for ac_exec_ext in '' $ac_executable_extensions; do 6897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6898 ac_cv_prog_ac_ct_STRIP="strip" 6899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6900 break 2 6901 fi 6902done 6903 done 6904IFS=$as_save_IFS 6905 6906fi 6907fi 6908ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6909if test -n "$ac_ct_STRIP"; then 6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6911$as_echo "$ac_ct_STRIP" >&6; } 6912else 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6914$as_echo "no" >&6; } 6915fi 6916 6917 if test "x$ac_ct_STRIP" = x; then 6918 STRIP=":" 6919 else 6920 case $cross_compiling:$ac_tool_warned in 6921yes:) 6922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6924ac_tool_warned=yes ;; 6925esac 6926 STRIP=$ac_ct_STRIP 6927 fi 6928else 6929 STRIP="$ac_cv_prog_STRIP" 6930fi 6931 6932test -z "$STRIP" && STRIP=: 6933 6934 6935 6936 6937 6938 6939if test -n "$ac_tool_prefix"; then 6940 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6941set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6943$as_echo_n "checking for $ac_word... " >&6; } 6944if ${ac_cv_prog_RANLIB+:} false; then : 6945 $as_echo_n "(cached) " >&6 6946else 6947 if test -n "$RANLIB"; then 6948 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6949else 6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6951for as_dir in $PATH 6952do 6953 IFS=$as_save_IFS 6954 test -z "$as_dir" && as_dir=. 6955 for ac_exec_ext in '' $ac_executable_extensions; do 6956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6957 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6959 break 2 6960 fi 6961done 6962 done 6963IFS=$as_save_IFS 6964 6965fi 6966fi 6967RANLIB=$ac_cv_prog_RANLIB 6968if test -n "$RANLIB"; then 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6970$as_echo "$RANLIB" >&6; } 6971else 6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6973$as_echo "no" >&6; } 6974fi 6975 6976 6977fi 6978if test -z "$ac_cv_prog_RANLIB"; then 6979 ac_ct_RANLIB=$RANLIB 6980 # Extract the first word of "ranlib", so it can be a program name with args. 6981set dummy ranlib; ac_word=$2 6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6983$as_echo_n "checking for $ac_word... " >&6; } 6984if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6985 $as_echo_n "(cached) " >&6 6986else 6987 if test -n "$ac_ct_RANLIB"; then 6988 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6989else 6990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6991for as_dir in $PATH 6992do 6993 IFS=$as_save_IFS 6994 test -z "$as_dir" && as_dir=. 6995 for ac_exec_ext in '' $ac_executable_extensions; do 6996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6997 ac_cv_prog_ac_ct_RANLIB="ranlib" 6998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6999 break 2 7000 fi 7001done 7002 done 7003IFS=$as_save_IFS 7004 7005fi 7006fi 7007ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7008if test -n "$ac_ct_RANLIB"; then 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7010$as_echo "$ac_ct_RANLIB" >&6; } 7011else 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7013$as_echo "no" >&6; } 7014fi 7015 7016 if test "x$ac_ct_RANLIB" = x; then 7017 RANLIB=":" 7018 else 7019 case $cross_compiling:$ac_tool_warned in 7020yes:) 7021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7023ac_tool_warned=yes ;; 7024esac 7025 RANLIB=$ac_ct_RANLIB 7026 fi 7027else 7028 RANLIB="$ac_cv_prog_RANLIB" 7029fi 7030 7031test -z "$RANLIB" && RANLIB=: 7032 7033 7034 7035 7036 7037 7038# Determine commands to create old-style static archives. 7039old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7040old_postinstall_cmds='chmod 644 $oldlib' 7041old_postuninstall_cmds= 7042 7043if test -n "$RANLIB"; then 7044 case $host_os in 7045 bitrig* | openbsd*) 7046 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7047 ;; 7048 *) 7049 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7050 ;; 7051 esac 7052 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7053fi 7054 7055case $host_os in 7056 darwin*) 7057 lock_old_archive_extraction=yes ;; 7058 *) 7059 lock_old_archive_extraction=no ;; 7060esac 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100# If no C compiler was specified, use CC. 7101LTCC=${LTCC-"$CC"} 7102 7103# If no C compiler flags were specified, use CFLAGS. 7104LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7105 7106# Allow CC to be a program name with arguments. 7107compiler=$CC 7108 7109 7110# Check for command to grab the raw symbol name followed by C symbol from nm. 7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7112$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7113if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7114 $as_echo_n "(cached) " >&6 7115else 7116 7117# These are sane defaults that work on at least a few old systems. 7118# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7119 7120# Character class describing NM global symbol codes. 7121symcode='[BCDEGRST]' 7122 7123# Regexp to match symbols that can be accessed directly from C. 7124sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7125 7126# Define system-specific variables. 7127case $host_os in 7128aix*) 7129 symcode='[BCDT]' 7130 ;; 7131cygwin* | mingw* | pw32* | cegcc*) 7132 symcode='[ABCDGISTW]' 7133 ;; 7134hpux*) 7135 if test ia64 = "$host_cpu"; then 7136 symcode='[ABCDEGRST]' 7137 fi 7138 ;; 7139irix* | nonstopux*) 7140 symcode='[BCDEGRST]' 7141 ;; 7142osf*) 7143 symcode='[BCDEGQRST]' 7144 ;; 7145solaris*) 7146 symcode='[BDRT]' 7147 ;; 7148sco3.2v5*) 7149 symcode='[DT]' 7150 ;; 7151sysv4.2uw2*) 7152 symcode='[DT]' 7153 ;; 7154sysv5* | sco5v6* | unixware* | OpenUNIX*) 7155 symcode='[ABDT]' 7156 ;; 7157sysv4) 7158 symcode='[DFNSTU]' 7159 ;; 7160esac 7161 7162# If we're using GNU nm, then use its standard symbol codes. 7163case `$NM -V 2>&1` in 7164*GNU* | *'with BFD'*) 7165 symcode='[ABCDGIRSTW]' ;; 7166esac 7167 7168if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7169 # Gets list of data symbols to import. 7170 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7171 # Adjust the below global symbol transforms to fixup imported variables. 7172 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7173 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7174 lt_c_name_lib_hook="\ 7175 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7176 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7177else 7178 # Disable hooks by default. 7179 lt_cv_sys_global_symbol_to_import= 7180 lt_cdecl_hook= 7181 lt_c_name_hook= 7182 lt_c_name_lib_hook= 7183fi 7184 7185# Transform an extracted symbol line into a proper C declaration. 7186# Some systems (esp. on ia64) link data and code symbols differently, 7187# so use this general approach. 7188lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7189$lt_cdecl_hook\ 7190" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7191" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7192 7193# Transform an extracted symbol line into symbol name and symbol address 7194lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7195$lt_c_name_hook\ 7196" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7197" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7198 7199# Transform an extracted symbol line into symbol name with lib prefix and 7200# symbol address. 7201lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7202$lt_c_name_lib_hook\ 7203" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7204" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7205" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7206 7207# Handle CRLF in mingw tool chain 7208opt_cr= 7209case $build_os in 7210mingw*) 7211 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7212 ;; 7213esac 7214 7215# Try without a prefix underscore, then with it. 7216for ac_symprfx in "" "_"; do 7217 7218 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7219 symxfrm="\\1 $ac_symprfx\\2 \\2" 7220 7221 # Write the raw and C identifiers. 7222 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7223 # Fake it for dumpbin and say T for any non-static function, 7224 # D for any global variable and I for any imported variable. 7225 # Also find C++ and __fastcall symbols from MSVC++, 7226 # which start with @ or ?. 7227 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7228" {last_section=section; section=\$ 3};"\ 7229" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7230" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7231" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7232" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7233" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7234" \$ 0!~/External *\|/{next};"\ 7235" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7236" {if(hide[section]) next};"\ 7237" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7238" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7239" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7240" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7241" ' prfx=^$ac_symprfx" 7242 else 7243 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7244 fi 7245 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7246 7247 # Check to see that the pipe works correctly. 7248 pipe_works=no 7249 7250 rm -f conftest* 7251 cat > conftest.$ac_ext <<_LT_EOF 7252#ifdef __cplusplus 7253extern "C" { 7254#endif 7255char nm_test_var; 7256void nm_test_func(void); 7257void nm_test_func(void){} 7258#ifdef __cplusplus 7259} 7260#endif 7261int main(){nm_test_var='a';nm_test_func();return(0);} 7262_LT_EOF 7263 7264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7265 (eval $ac_compile) 2>&5 7266 ac_status=$? 7267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7268 test $ac_status = 0; }; then 7269 # Now try to grab the symbols. 7270 nlist=conftest.nm 7271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7272 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7273 ac_status=$? 7274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7275 test $ac_status = 0; } && test -s "$nlist"; then 7276 # Try sorting and uniquifying the output. 7277 if sort "$nlist" | uniq > "$nlist"T; then 7278 mv -f "$nlist"T "$nlist" 7279 else 7280 rm -f "$nlist"T 7281 fi 7282 7283 # Make sure that we snagged all the symbols we need. 7284 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7285 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7286 cat <<_LT_EOF > conftest.$ac_ext 7287/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7288#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7289/* DATA imports from DLLs on WIN32 can't be const, because runtime 7290 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7291# define LT_DLSYM_CONST 7292#elif defined __osf__ 7293/* This system does not cope well with relocations in const data. */ 7294# define LT_DLSYM_CONST 7295#else 7296# define LT_DLSYM_CONST const 7297#endif 7298 7299#ifdef __cplusplus 7300extern "C" { 7301#endif 7302 7303_LT_EOF 7304 # Now generate the symbol file. 7305 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7306 7307 cat <<_LT_EOF >> conftest.$ac_ext 7308 7309/* The mapping between symbol names and symbols. */ 7310LT_DLSYM_CONST struct { 7311 const char *name; 7312 void *address; 7313} 7314lt__PROGRAM__LTX_preloaded_symbols[] = 7315{ 7316 { "@PROGRAM@", (void *) 0 }, 7317_LT_EOF 7318 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7319 cat <<\_LT_EOF >> conftest.$ac_ext 7320 {0, (void *) 0} 7321}; 7322 7323/* This works around a problem in FreeBSD linker */ 7324#ifdef FREEBSD_WORKAROUND 7325static const void *lt_preloaded_setup() { 7326 return lt__PROGRAM__LTX_preloaded_symbols; 7327} 7328#endif 7329 7330#ifdef __cplusplus 7331} 7332#endif 7333_LT_EOF 7334 # Now try linking the two files. 7335 mv conftest.$ac_objext conftstm.$ac_objext 7336 lt_globsym_save_LIBS=$LIBS 7337 lt_globsym_save_CFLAGS=$CFLAGS 7338 LIBS=conftstm.$ac_objext 7339 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7341 (eval $ac_link) 2>&5 7342 ac_status=$? 7343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7344 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7345 pipe_works=yes 7346 fi 7347 LIBS=$lt_globsym_save_LIBS 7348 CFLAGS=$lt_globsym_save_CFLAGS 7349 else 7350 echo "cannot find nm_test_func in $nlist" >&5 7351 fi 7352 else 7353 echo "cannot find nm_test_var in $nlist" >&5 7354 fi 7355 else 7356 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7357 fi 7358 else 7359 echo "$progname: failed program was:" >&5 7360 cat conftest.$ac_ext >&5 7361 fi 7362 rm -rf conftest* conftst* 7363 7364 # Do not use the global_symbol_pipe unless it works. 7365 if test yes = "$pipe_works"; then 7366 break 7367 else 7368 lt_cv_sys_global_symbol_pipe= 7369 fi 7370done 7371 7372fi 7373 7374if test -z "$lt_cv_sys_global_symbol_pipe"; then 7375 lt_cv_sys_global_symbol_to_cdecl= 7376fi 7377if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7379$as_echo "failed" >&6; } 7380else 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7382$as_echo "ok" >&6; } 7383fi 7384 7385# Response file support. 7386if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7387 nm_file_list_spec='@' 7388elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7389 nm_file_list_spec='@' 7390fi 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7429$as_echo_n "checking for sysroot... " >&6; } 7430 7431# Check whether --with-sysroot was given. 7432if test "${with_sysroot+set}" = set; then : 7433 withval=$with_sysroot; 7434else 7435 with_sysroot=no 7436fi 7437 7438 7439lt_sysroot= 7440case $with_sysroot in #( 7441 yes) 7442 if test yes = "$GCC"; then 7443 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7444 fi 7445 ;; #( 7446 /*) 7447 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7448 ;; #( 7449 no|'') 7450 ;; #( 7451 *) 7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7453$as_echo "$with_sysroot" >&6; } 7454 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7455 ;; 7456esac 7457 7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7459$as_echo "${lt_sysroot:-no}" >&6; } 7460 7461 7462 7463 7464 7465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7466$as_echo_n "checking for a working dd... " >&6; } 7467if ${ac_cv_path_lt_DD+:} false; then : 7468 $as_echo_n "(cached) " >&6 7469else 7470 printf 0123456789abcdef0123456789abcdef >conftest.i 7471cat conftest.i conftest.i >conftest2.i 7472: ${lt_DD:=$DD} 7473if test -z "$lt_DD"; then 7474 ac_path_lt_DD_found=false 7475 # Loop through the user's path and test for each of PROGNAME-LIST 7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7477for as_dir in $PATH 7478do 7479 IFS=$as_save_IFS 7480 test -z "$as_dir" && as_dir=. 7481 for ac_prog in dd; do 7482 for ac_exec_ext in '' $ac_executable_extensions; do 7483 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7484 as_fn_executable_p "$ac_path_lt_DD" || continue 7485if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7486 cmp -s conftest.i conftest.out \ 7487 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7488fi 7489 $ac_path_lt_DD_found && break 3 7490 done 7491 done 7492 done 7493IFS=$as_save_IFS 7494 if test -z "$ac_cv_path_lt_DD"; then 7495 : 7496 fi 7497else 7498 ac_cv_path_lt_DD=$lt_DD 7499fi 7500 7501rm -f conftest.i conftest2.i conftest.out 7502fi 7503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7504$as_echo "$ac_cv_path_lt_DD" >&6; } 7505 7506 7507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7508$as_echo_n "checking how to truncate binary pipes... " >&6; } 7509if ${lt_cv_truncate_bin+:} false; then : 7510 $as_echo_n "(cached) " >&6 7511else 7512 printf 0123456789abcdef0123456789abcdef >conftest.i 7513cat conftest.i conftest.i >conftest2.i 7514lt_cv_truncate_bin= 7515if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7516 cmp -s conftest.i conftest.out \ 7517 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7518fi 7519rm -f conftest.i conftest2.i conftest.out 7520test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7521fi 7522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7523$as_echo "$lt_cv_truncate_bin" >&6; } 7524 7525 7526 7527 7528 7529 7530 7531# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7532func_cc_basename () 7533{ 7534 for cc_temp in $*""; do 7535 case $cc_temp in 7536 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7537 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7538 \-*) ;; 7539 *) break;; 7540 esac 7541 done 7542 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7543} 7544 7545# Check whether --enable-libtool-lock was given. 7546if test "${enable_libtool_lock+set}" = set; then : 7547 enableval=$enable_libtool_lock; 7548fi 7549 7550test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7551 7552# Some flags need to be propagated to the compiler or linker for good 7553# libtool support. 7554case $host in 7555ia64-*-hpux*) 7556 # Find out what ABI is being produced by ac_compile, and set mode 7557 # options accordingly. 7558 echo 'int i;' > conftest.$ac_ext 7559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7560 (eval $ac_compile) 2>&5 7561 ac_status=$? 7562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7563 test $ac_status = 0; }; then 7564 case `/usr/bin/file conftest.$ac_objext` in 7565 *ELF-32*) 7566 HPUX_IA64_MODE=32 7567 ;; 7568 *ELF-64*) 7569 HPUX_IA64_MODE=64 7570 ;; 7571 esac 7572 fi 7573 rm -rf conftest* 7574 ;; 7575*-*-irix6*) 7576 # Find out what ABI is being produced by ac_compile, and set linker 7577 # options accordingly. 7578 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7580 (eval $ac_compile) 2>&5 7581 ac_status=$? 7582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7583 test $ac_status = 0; }; then 7584 if test yes = "$lt_cv_prog_gnu_ld"; then 7585 case `/usr/bin/file conftest.$ac_objext` in 7586 *32-bit*) 7587 LD="${LD-ld} -melf32bsmip" 7588 ;; 7589 *N32*) 7590 LD="${LD-ld} -melf32bmipn32" 7591 ;; 7592 *64-bit*) 7593 LD="${LD-ld} -melf64bmip" 7594 ;; 7595 esac 7596 else 7597 case `/usr/bin/file conftest.$ac_objext` in 7598 *32-bit*) 7599 LD="${LD-ld} -32" 7600 ;; 7601 *N32*) 7602 LD="${LD-ld} -n32" 7603 ;; 7604 *64-bit*) 7605 LD="${LD-ld} -64" 7606 ;; 7607 esac 7608 fi 7609 fi 7610 rm -rf conftest* 7611 ;; 7612 7613mips64*-*linux*) 7614 # Find out what ABI is being produced by ac_compile, and set linker 7615 # options accordingly. 7616 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7618 (eval $ac_compile) 2>&5 7619 ac_status=$? 7620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7621 test $ac_status = 0; }; then 7622 emul=elf 7623 case `/usr/bin/file conftest.$ac_objext` in 7624 *32-bit*) 7625 emul="${emul}32" 7626 ;; 7627 *64-bit*) 7628 emul="${emul}64" 7629 ;; 7630 esac 7631 case `/usr/bin/file conftest.$ac_objext` in 7632 *MSB*) 7633 emul="${emul}btsmip" 7634 ;; 7635 *LSB*) 7636 emul="${emul}ltsmip" 7637 ;; 7638 esac 7639 case `/usr/bin/file conftest.$ac_objext` in 7640 *N32*) 7641 emul="${emul}n32" 7642 ;; 7643 esac 7644 LD="${LD-ld} -m $emul" 7645 fi 7646 rm -rf conftest* 7647 ;; 7648 7649x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7650s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7651 # Find out what ABI is being produced by ac_compile, and set linker 7652 # options accordingly. Note that the listed cases only cover the 7653 # situations where additional linker options are needed (such as when 7654 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7655 # vice versa); the common cases where no linker options are needed do 7656 # not appear in the list. 7657 echo 'int i;' > conftest.$ac_ext 7658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7659 (eval $ac_compile) 2>&5 7660 ac_status=$? 7661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7662 test $ac_status = 0; }; then 7663 case `/usr/bin/file conftest.o` in 7664 *32-bit*) 7665 case $host in 7666 x86_64-*kfreebsd*-gnu) 7667 LD="${LD-ld} -m elf_i386_fbsd" 7668 ;; 7669 x86_64-*linux*) 7670 case `/usr/bin/file conftest.o` in 7671 *x86-64*) 7672 LD="${LD-ld} -m elf32_x86_64" 7673 ;; 7674 *) 7675 LD="${LD-ld} -m elf_i386" 7676 ;; 7677 esac 7678 ;; 7679 powerpc64le-*linux*) 7680 LD="${LD-ld} -m elf32lppclinux" 7681 ;; 7682 powerpc64-*linux*) 7683 LD="${LD-ld} -m elf32ppclinux" 7684 ;; 7685 s390x-*linux*) 7686 LD="${LD-ld} -m elf_s390" 7687 ;; 7688 sparc64-*linux*) 7689 LD="${LD-ld} -m elf32_sparc" 7690 ;; 7691 esac 7692 ;; 7693 *64-bit*) 7694 case $host in 7695 x86_64-*kfreebsd*-gnu) 7696 LD="${LD-ld} -m elf_x86_64_fbsd" 7697 ;; 7698 x86_64-*linux*) 7699 LD="${LD-ld} -m elf_x86_64" 7700 ;; 7701 powerpcle-*linux*) 7702 LD="${LD-ld} -m elf64lppc" 7703 ;; 7704 powerpc-*linux*) 7705 LD="${LD-ld} -m elf64ppc" 7706 ;; 7707 s390*-*linux*|s390*-*tpf*) 7708 LD="${LD-ld} -m elf64_s390" 7709 ;; 7710 sparc*-*linux*) 7711 LD="${LD-ld} -m elf64_sparc" 7712 ;; 7713 esac 7714 ;; 7715 esac 7716 fi 7717 rm -rf conftest* 7718 ;; 7719 7720*-*-sco3.2v5*) 7721 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7722 SAVE_CFLAGS=$CFLAGS 7723 CFLAGS="$CFLAGS -belf" 7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7725$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7726if ${lt_cv_cc_needs_belf+:} false; then : 7727 $as_echo_n "(cached) " >&6 7728else 7729 ac_ext=c 7730ac_cpp='$CPP $CPPFLAGS' 7731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7733ac_compiler_gnu=$ac_cv_c_compiler_gnu 7734 7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7736/* end confdefs.h. */ 7737 7738int 7739main () 7740{ 7741 7742 ; 7743 return 0; 7744} 7745_ACEOF 7746if ac_fn_c_try_link "$LINENO"; then : 7747 lt_cv_cc_needs_belf=yes 7748else 7749 lt_cv_cc_needs_belf=no 7750fi 7751rm -f core conftest.err conftest.$ac_objext \ 7752 conftest$ac_exeext conftest.$ac_ext 7753 ac_ext=c 7754ac_cpp='$CPP $CPPFLAGS' 7755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7757ac_compiler_gnu=$ac_cv_c_compiler_gnu 7758 7759fi 7760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7761$as_echo "$lt_cv_cc_needs_belf" >&6; } 7762 if test yes != "$lt_cv_cc_needs_belf"; then 7763 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7764 CFLAGS=$SAVE_CFLAGS 7765 fi 7766 ;; 7767*-*solaris*) 7768 # Find out what ABI is being produced by ac_compile, and set linker 7769 # options accordingly. 7770 echo 'int i;' > conftest.$ac_ext 7771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7772 (eval $ac_compile) 2>&5 7773 ac_status=$? 7774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7775 test $ac_status = 0; }; then 7776 case `/usr/bin/file conftest.o` in 7777 *64-bit*) 7778 case $lt_cv_prog_gnu_ld in 7779 yes*) 7780 case $host in 7781 i?86-*-solaris*|x86_64-*-solaris*) 7782 LD="${LD-ld} -m elf_x86_64" 7783 ;; 7784 sparc*-*-solaris*) 7785 LD="${LD-ld} -m elf64_sparc" 7786 ;; 7787 esac 7788 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7789 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7790 LD=${LD-ld}_sol2 7791 fi 7792 ;; 7793 *) 7794 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7795 LD="${LD-ld} -64" 7796 fi 7797 ;; 7798 esac 7799 ;; 7800 esac 7801 fi 7802 rm -rf conftest* 7803 ;; 7804esac 7805 7806need_locks=$enable_libtool_lock 7807 7808if test -n "$ac_tool_prefix"; then 7809 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7810set dummy ${ac_tool_prefix}mt; ac_word=$2 7811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7812$as_echo_n "checking for $ac_word... " >&6; } 7813if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7814 $as_echo_n "(cached) " >&6 7815else 7816 if test -n "$MANIFEST_TOOL"; then 7817 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7818else 7819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7820for as_dir in $PATH 7821do 7822 IFS=$as_save_IFS 7823 test -z "$as_dir" && as_dir=. 7824 for ac_exec_ext in '' $ac_executable_extensions; do 7825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7826 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7828 break 2 7829 fi 7830done 7831 done 7832IFS=$as_save_IFS 7833 7834fi 7835fi 7836MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7837if test -n "$MANIFEST_TOOL"; then 7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7839$as_echo "$MANIFEST_TOOL" >&6; } 7840else 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7842$as_echo "no" >&6; } 7843fi 7844 7845 7846fi 7847if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7848 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7849 # Extract the first word of "mt", so it can be a program name with args. 7850set dummy mt; ac_word=$2 7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7852$as_echo_n "checking for $ac_word... " >&6; } 7853if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7854 $as_echo_n "(cached) " >&6 7855else 7856 if test -n "$ac_ct_MANIFEST_TOOL"; then 7857 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7858else 7859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7860for as_dir in $PATH 7861do 7862 IFS=$as_save_IFS 7863 test -z "$as_dir" && as_dir=. 7864 for ac_exec_ext in '' $ac_executable_extensions; do 7865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7866 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7868 break 2 7869 fi 7870done 7871 done 7872IFS=$as_save_IFS 7873 7874fi 7875fi 7876ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7877if test -n "$ac_ct_MANIFEST_TOOL"; then 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7879$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7880else 7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7882$as_echo "no" >&6; } 7883fi 7884 7885 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7886 MANIFEST_TOOL=":" 7887 else 7888 case $cross_compiling:$ac_tool_warned in 7889yes:) 7890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7892ac_tool_warned=yes ;; 7893esac 7894 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7895 fi 7896else 7897 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7898fi 7899 7900test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7902$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7903if ${lt_cv_path_mainfest_tool+:} false; then : 7904 $as_echo_n "(cached) " >&6 7905else 7906 lt_cv_path_mainfest_tool=no 7907 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7908 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7909 cat conftest.err >&5 7910 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7911 lt_cv_path_mainfest_tool=yes 7912 fi 7913 rm -f conftest* 7914fi 7915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7916$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7917if test yes != "$lt_cv_path_mainfest_tool"; then 7918 MANIFEST_TOOL=: 7919fi 7920 7921 7922 7923 7924 7925 7926 case $host_os in 7927 rhapsody* | darwin*) 7928 if test -n "$ac_tool_prefix"; then 7929 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7930set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7932$as_echo_n "checking for $ac_word... " >&6; } 7933if ${ac_cv_prog_DSYMUTIL+:} false; then : 7934 $as_echo_n "(cached) " >&6 7935else 7936 if test -n "$DSYMUTIL"; then 7937 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7938else 7939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7940for as_dir in $PATH 7941do 7942 IFS=$as_save_IFS 7943 test -z "$as_dir" && as_dir=. 7944 for ac_exec_ext in '' $ac_executable_extensions; do 7945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7946 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7948 break 2 7949 fi 7950done 7951 done 7952IFS=$as_save_IFS 7953 7954fi 7955fi 7956DSYMUTIL=$ac_cv_prog_DSYMUTIL 7957if test -n "$DSYMUTIL"; then 7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7959$as_echo "$DSYMUTIL" >&6; } 7960else 7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7962$as_echo "no" >&6; } 7963fi 7964 7965 7966fi 7967if test -z "$ac_cv_prog_DSYMUTIL"; then 7968 ac_ct_DSYMUTIL=$DSYMUTIL 7969 # Extract the first word of "dsymutil", so it can be a program name with args. 7970set dummy dsymutil; ac_word=$2 7971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7972$as_echo_n "checking for $ac_word... " >&6; } 7973if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7974 $as_echo_n "(cached) " >&6 7975else 7976 if test -n "$ac_ct_DSYMUTIL"; then 7977 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7978else 7979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7980for as_dir in $PATH 7981do 7982 IFS=$as_save_IFS 7983 test -z "$as_dir" && as_dir=. 7984 for ac_exec_ext in '' $ac_executable_extensions; do 7985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7986 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7988 break 2 7989 fi 7990done 7991 done 7992IFS=$as_save_IFS 7993 7994fi 7995fi 7996ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7997if test -n "$ac_ct_DSYMUTIL"; then 7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7999$as_echo "$ac_ct_DSYMUTIL" >&6; } 8000else 8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8002$as_echo "no" >&6; } 8003fi 8004 8005 if test "x$ac_ct_DSYMUTIL" = x; then 8006 DSYMUTIL=":" 8007 else 8008 case $cross_compiling:$ac_tool_warned in 8009yes:) 8010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8012ac_tool_warned=yes ;; 8013esac 8014 DSYMUTIL=$ac_ct_DSYMUTIL 8015 fi 8016else 8017 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8018fi 8019 8020 if test -n "$ac_tool_prefix"; then 8021 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8022set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8024$as_echo_n "checking for $ac_word... " >&6; } 8025if ${ac_cv_prog_NMEDIT+:} false; then : 8026 $as_echo_n "(cached) " >&6 8027else 8028 if test -n "$NMEDIT"; then 8029 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8030else 8031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8032for as_dir in $PATH 8033do 8034 IFS=$as_save_IFS 8035 test -z "$as_dir" && as_dir=. 8036 for ac_exec_ext in '' $ac_executable_extensions; do 8037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8038 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8040 break 2 8041 fi 8042done 8043 done 8044IFS=$as_save_IFS 8045 8046fi 8047fi 8048NMEDIT=$ac_cv_prog_NMEDIT 8049if test -n "$NMEDIT"; then 8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8051$as_echo "$NMEDIT" >&6; } 8052else 8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8054$as_echo "no" >&6; } 8055fi 8056 8057 8058fi 8059if test -z "$ac_cv_prog_NMEDIT"; then 8060 ac_ct_NMEDIT=$NMEDIT 8061 # Extract the first word of "nmedit", so it can be a program name with args. 8062set dummy nmedit; ac_word=$2 8063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8064$as_echo_n "checking for $ac_word... " >&6; } 8065if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8066 $as_echo_n "(cached) " >&6 8067else 8068 if test -n "$ac_ct_NMEDIT"; then 8069 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8070else 8071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8072for as_dir in $PATH 8073do 8074 IFS=$as_save_IFS 8075 test -z "$as_dir" && as_dir=. 8076 for ac_exec_ext in '' $ac_executable_extensions; do 8077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8078 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8080 break 2 8081 fi 8082done 8083 done 8084IFS=$as_save_IFS 8085 8086fi 8087fi 8088ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8089if test -n "$ac_ct_NMEDIT"; then 8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8091$as_echo "$ac_ct_NMEDIT" >&6; } 8092else 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8094$as_echo "no" >&6; } 8095fi 8096 8097 if test "x$ac_ct_NMEDIT" = x; then 8098 NMEDIT=":" 8099 else 8100 case $cross_compiling:$ac_tool_warned in 8101yes:) 8102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8104ac_tool_warned=yes ;; 8105esac 8106 NMEDIT=$ac_ct_NMEDIT 8107 fi 8108else 8109 NMEDIT="$ac_cv_prog_NMEDIT" 8110fi 8111 8112 if test -n "$ac_tool_prefix"; then 8113 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8114set dummy ${ac_tool_prefix}lipo; ac_word=$2 8115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8116$as_echo_n "checking for $ac_word... " >&6; } 8117if ${ac_cv_prog_LIPO+:} false; then : 8118 $as_echo_n "(cached) " >&6 8119else 8120 if test -n "$LIPO"; then 8121 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8122else 8123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8124for as_dir in $PATH 8125do 8126 IFS=$as_save_IFS 8127 test -z "$as_dir" && as_dir=. 8128 for ac_exec_ext in '' $ac_executable_extensions; do 8129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8130 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8132 break 2 8133 fi 8134done 8135 done 8136IFS=$as_save_IFS 8137 8138fi 8139fi 8140LIPO=$ac_cv_prog_LIPO 8141if test -n "$LIPO"; then 8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8143$as_echo "$LIPO" >&6; } 8144else 8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8146$as_echo "no" >&6; } 8147fi 8148 8149 8150fi 8151if test -z "$ac_cv_prog_LIPO"; then 8152 ac_ct_LIPO=$LIPO 8153 # Extract the first word of "lipo", so it can be a program name with args. 8154set dummy lipo; ac_word=$2 8155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8156$as_echo_n "checking for $ac_word... " >&6; } 8157if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8158 $as_echo_n "(cached) " >&6 8159else 8160 if test -n "$ac_ct_LIPO"; then 8161 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8162else 8163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8164for as_dir in $PATH 8165do 8166 IFS=$as_save_IFS 8167 test -z "$as_dir" && as_dir=. 8168 for ac_exec_ext in '' $ac_executable_extensions; do 8169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8170 ac_cv_prog_ac_ct_LIPO="lipo" 8171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8172 break 2 8173 fi 8174done 8175 done 8176IFS=$as_save_IFS 8177 8178fi 8179fi 8180ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8181if test -n "$ac_ct_LIPO"; then 8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8183$as_echo "$ac_ct_LIPO" >&6; } 8184else 8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8186$as_echo "no" >&6; } 8187fi 8188 8189 if test "x$ac_ct_LIPO" = x; then 8190 LIPO=":" 8191 else 8192 case $cross_compiling:$ac_tool_warned in 8193yes:) 8194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8196ac_tool_warned=yes ;; 8197esac 8198 LIPO=$ac_ct_LIPO 8199 fi 8200else 8201 LIPO="$ac_cv_prog_LIPO" 8202fi 8203 8204 if test -n "$ac_tool_prefix"; then 8205 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8206set dummy ${ac_tool_prefix}otool; ac_word=$2 8207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8208$as_echo_n "checking for $ac_word... " >&6; } 8209if ${ac_cv_prog_OTOOL+:} false; then : 8210 $as_echo_n "(cached) " >&6 8211else 8212 if test -n "$OTOOL"; then 8213 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8214else 8215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8216for as_dir in $PATH 8217do 8218 IFS=$as_save_IFS 8219 test -z "$as_dir" && as_dir=. 8220 for ac_exec_ext in '' $ac_executable_extensions; do 8221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8222 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8224 break 2 8225 fi 8226done 8227 done 8228IFS=$as_save_IFS 8229 8230fi 8231fi 8232OTOOL=$ac_cv_prog_OTOOL 8233if test -n "$OTOOL"; then 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8235$as_echo "$OTOOL" >&6; } 8236else 8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8238$as_echo "no" >&6; } 8239fi 8240 8241 8242fi 8243if test -z "$ac_cv_prog_OTOOL"; then 8244 ac_ct_OTOOL=$OTOOL 8245 # Extract the first word of "otool", so it can be a program name with args. 8246set dummy otool; ac_word=$2 8247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8248$as_echo_n "checking for $ac_word... " >&6; } 8249if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8250 $as_echo_n "(cached) " >&6 8251else 8252 if test -n "$ac_ct_OTOOL"; then 8253 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8254else 8255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8256for as_dir in $PATH 8257do 8258 IFS=$as_save_IFS 8259 test -z "$as_dir" && as_dir=. 8260 for ac_exec_ext in '' $ac_executable_extensions; do 8261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8262 ac_cv_prog_ac_ct_OTOOL="otool" 8263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8264 break 2 8265 fi 8266done 8267 done 8268IFS=$as_save_IFS 8269 8270fi 8271fi 8272ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8273if test -n "$ac_ct_OTOOL"; then 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8275$as_echo "$ac_ct_OTOOL" >&6; } 8276else 8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8278$as_echo "no" >&6; } 8279fi 8280 8281 if test "x$ac_ct_OTOOL" = x; then 8282 OTOOL=":" 8283 else 8284 case $cross_compiling:$ac_tool_warned in 8285yes:) 8286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8288ac_tool_warned=yes ;; 8289esac 8290 OTOOL=$ac_ct_OTOOL 8291 fi 8292else 8293 OTOOL="$ac_cv_prog_OTOOL" 8294fi 8295 8296 if test -n "$ac_tool_prefix"; then 8297 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8298set dummy ${ac_tool_prefix}otool64; ac_word=$2 8299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8300$as_echo_n "checking for $ac_word... " >&6; } 8301if ${ac_cv_prog_OTOOL64+:} false; then : 8302 $as_echo_n "(cached) " >&6 8303else 8304 if test -n "$OTOOL64"; then 8305 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8306else 8307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8308for as_dir in $PATH 8309do 8310 IFS=$as_save_IFS 8311 test -z "$as_dir" && as_dir=. 8312 for ac_exec_ext in '' $ac_executable_extensions; do 8313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8314 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8316 break 2 8317 fi 8318done 8319 done 8320IFS=$as_save_IFS 8321 8322fi 8323fi 8324OTOOL64=$ac_cv_prog_OTOOL64 8325if test -n "$OTOOL64"; then 8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8327$as_echo "$OTOOL64" >&6; } 8328else 8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8330$as_echo "no" >&6; } 8331fi 8332 8333 8334fi 8335if test -z "$ac_cv_prog_OTOOL64"; then 8336 ac_ct_OTOOL64=$OTOOL64 8337 # Extract the first word of "otool64", so it can be a program name with args. 8338set dummy otool64; ac_word=$2 8339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8340$as_echo_n "checking for $ac_word... " >&6; } 8341if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8342 $as_echo_n "(cached) " >&6 8343else 8344 if test -n "$ac_ct_OTOOL64"; then 8345 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8346else 8347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8348for as_dir in $PATH 8349do 8350 IFS=$as_save_IFS 8351 test -z "$as_dir" && as_dir=. 8352 for ac_exec_ext in '' $ac_executable_extensions; do 8353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8354 ac_cv_prog_ac_ct_OTOOL64="otool64" 8355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8356 break 2 8357 fi 8358done 8359 done 8360IFS=$as_save_IFS 8361 8362fi 8363fi 8364ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8365if test -n "$ac_ct_OTOOL64"; then 8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8367$as_echo "$ac_ct_OTOOL64" >&6; } 8368else 8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8370$as_echo "no" >&6; } 8371fi 8372 8373 if test "x$ac_ct_OTOOL64" = x; then 8374 OTOOL64=":" 8375 else 8376 case $cross_compiling:$ac_tool_warned in 8377yes:) 8378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8380ac_tool_warned=yes ;; 8381esac 8382 OTOOL64=$ac_ct_OTOOL64 8383 fi 8384else 8385 OTOOL64="$ac_cv_prog_OTOOL64" 8386fi 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8415$as_echo_n "checking for -single_module linker flag... " >&6; } 8416if ${lt_cv_apple_cc_single_mod+:} false; then : 8417 $as_echo_n "(cached) " >&6 8418else 8419 lt_cv_apple_cc_single_mod=no 8420 if test -z "$LT_MULTI_MODULE"; then 8421 # By default we will add the -single_module flag. You can override 8422 # by either setting the environment variable LT_MULTI_MODULE 8423 # non-empty at configure time, or by adding -multi_module to the 8424 # link flags. 8425 rm -rf libconftest.dylib* 8426 echo "int foo(void){return 1;}" > conftest.c 8427 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8428-dynamiclib -Wl,-single_module conftest.c" >&5 8429 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8430 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8431 _lt_result=$? 8432 # If there is a non-empty error log, and "single_module" 8433 # appears in it, assume the flag caused a linker warning 8434 if test -s conftest.err && $GREP single_module conftest.err; then 8435 cat conftest.err >&5 8436 # Otherwise, if the output was created with a 0 exit code from 8437 # the compiler, it worked. 8438 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8439 lt_cv_apple_cc_single_mod=yes 8440 else 8441 cat conftest.err >&5 8442 fi 8443 rm -rf libconftest.dylib* 8444 rm -f conftest.* 8445 fi 8446fi 8447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8448$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8449 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8451$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8452if ${lt_cv_ld_exported_symbols_list+:} false; then : 8453 $as_echo_n "(cached) " >&6 8454else 8455 lt_cv_ld_exported_symbols_list=no 8456 save_LDFLAGS=$LDFLAGS 8457 echo "_main" > conftest.sym 8458 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8460/* end confdefs.h. */ 8461 8462int 8463main () 8464{ 8465 8466 ; 8467 return 0; 8468} 8469_ACEOF 8470if ac_fn_c_try_link "$LINENO"; then : 8471 lt_cv_ld_exported_symbols_list=yes 8472else 8473 lt_cv_ld_exported_symbols_list=no 8474fi 8475rm -f core conftest.err conftest.$ac_objext \ 8476 conftest$ac_exeext conftest.$ac_ext 8477 LDFLAGS=$save_LDFLAGS 8478 8479fi 8480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8481$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8482 8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8484$as_echo_n "checking for -force_load linker flag... " >&6; } 8485if ${lt_cv_ld_force_load+:} false; then : 8486 $as_echo_n "(cached) " >&6 8487else 8488 lt_cv_ld_force_load=no 8489 cat > conftest.c << _LT_EOF 8490int forced_loaded() { return 2;} 8491_LT_EOF 8492 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8493 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8494 echo "$AR cru libconftest.a conftest.o" >&5 8495 $AR cru libconftest.a conftest.o 2>&5 8496 echo "$RANLIB libconftest.a" >&5 8497 $RANLIB libconftest.a 2>&5 8498 cat > conftest.c << _LT_EOF 8499int main() { return 0;} 8500_LT_EOF 8501 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8502 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8503 _lt_result=$? 8504 if test -s conftest.err && $GREP force_load conftest.err; then 8505 cat conftest.err >&5 8506 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8507 lt_cv_ld_force_load=yes 8508 else 8509 cat conftest.err >&5 8510 fi 8511 rm -f conftest.err libconftest.a conftest conftest.c 8512 rm -rf conftest.dSYM 8513 8514fi 8515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8516$as_echo "$lt_cv_ld_force_load" >&6; } 8517 case $host_os in 8518 rhapsody* | darwin1.[012]) 8519 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8520 darwin1.*) 8521 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8522 darwin*) # darwin 5.x on 8523 # if running on 10.5 or later, the deployment target defaults 8524 # to the OS version, if on x86, and 10.4, the deployment 8525 # target defaults to 10.4. Don't you love it? 8526 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8527 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8528 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8529 10.[012][,.]*) 8530 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8531 10.*) 8532 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8533 esac 8534 ;; 8535 esac 8536 if test yes = "$lt_cv_apple_cc_single_mod"; then 8537 _lt_dar_single_mod='$single_module' 8538 fi 8539 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8540 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8541 else 8542 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8543 fi 8544 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8545 _lt_dsymutil='~$DSYMUTIL $lib || :' 8546 else 8547 _lt_dsymutil= 8548 fi 8549 ;; 8550 esac 8551 8552# func_munge_path_list VARIABLE PATH 8553# ----------------------------------- 8554# VARIABLE is name of variable containing _space_ separated list of 8555# directories to be munged by the contents of PATH, which is string 8556# having a format: 8557# "DIR[:DIR]:" 8558# string "DIR[ DIR]" will be prepended to VARIABLE 8559# ":DIR[:DIR]" 8560# string "DIR[ DIR]" will be appended to VARIABLE 8561# "DIRP[:DIRP]::[DIRA:]DIRA" 8562# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8563# "DIRA[ DIRA]" will be appended to VARIABLE 8564# "DIR[:DIR]" 8565# VARIABLE will be replaced by "DIR[ DIR]" 8566func_munge_path_list () 8567{ 8568 case x$2 in 8569 x) 8570 ;; 8571 *:) 8572 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8573 ;; 8574 x:*) 8575 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8576 ;; 8577 *::*) 8578 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8579 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8580 ;; 8581 *) 8582 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8583 ;; 8584 esac 8585} 8586 8587ac_ext=c 8588ac_cpp='$CPP $CPPFLAGS' 8589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8591ac_compiler_gnu=$ac_cv_c_compiler_gnu 8592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8593$as_echo_n "checking how to run the C preprocessor... " >&6; } 8594# On Suns, sometimes $CPP names a directory. 8595if test -n "$CPP" && test -d "$CPP"; then 8596 CPP= 8597fi 8598if test -z "$CPP"; then 8599 if ${ac_cv_prog_CPP+:} false; then : 8600 $as_echo_n "(cached) " >&6 8601else 8602 # Double quotes because CPP needs to be expanded 8603 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8604 do 8605 ac_preproc_ok=false 8606for ac_c_preproc_warn_flag in '' yes 8607do 8608 # Use a header file that comes with gcc, so configuring glibc 8609 # with a fresh cross-compiler works. 8610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8611 # <limits.h> exists even on freestanding compilers. 8612 # On the NeXT, cc -E runs the code through the compiler's parser, 8613 # not just through cpp. "Syntax error" is here to catch this case. 8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8615/* end confdefs.h. */ 8616#ifdef __STDC__ 8617# include <limits.h> 8618#else 8619# include <assert.h> 8620#endif 8621 Syntax error 8622_ACEOF 8623if ac_fn_c_try_cpp "$LINENO"; then : 8624 8625else 8626 # Broken: fails on valid input. 8627continue 8628fi 8629rm -f conftest.err conftest.i conftest.$ac_ext 8630 8631 # OK, works on sane cases. Now check whether nonexistent headers 8632 # can be detected and how. 8633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8634/* end confdefs.h. */ 8635#include <ac_nonexistent.h> 8636_ACEOF 8637if ac_fn_c_try_cpp "$LINENO"; then : 8638 # Broken: success on invalid input. 8639continue 8640else 8641 # Passes both tests. 8642ac_preproc_ok=: 8643break 8644fi 8645rm -f conftest.err conftest.i conftest.$ac_ext 8646 8647done 8648# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8649rm -f conftest.i conftest.err conftest.$ac_ext 8650if $ac_preproc_ok; then : 8651 break 8652fi 8653 8654 done 8655 ac_cv_prog_CPP=$CPP 8656 8657fi 8658 CPP=$ac_cv_prog_CPP 8659else 8660 ac_cv_prog_CPP=$CPP 8661fi 8662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8663$as_echo "$CPP" >&6; } 8664ac_preproc_ok=false 8665for ac_c_preproc_warn_flag in '' yes 8666do 8667 # Use a header file that comes with gcc, so configuring glibc 8668 # with a fresh cross-compiler works. 8669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8670 # <limits.h> exists even on freestanding compilers. 8671 # On the NeXT, cc -E runs the code through the compiler's parser, 8672 # not just through cpp. "Syntax error" is here to catch this case. 8673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8674/* end confdefs.h. */ 8675#ifdef __STDC__ 8676# include <limits.h> 8677#else 8678# include <assert.h> 8679#endif 8680 Syntax error 8681_ACEOF 8682if ac_fn_c_try_cpp "$LINENO"; then : 8683 8684else 8685 # Broken: fails on valid input. 8686continue 8687fi 8688rm -f conftest.err conftest.i conftest.$ac_ext 8689 8690 # OK, works on sane cases. Now check whether nonexistent headers 8691 # can be detected and how. 8692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8693/* end confdefs.h. */ 8694#include <ac_nonexistent.h> 8695_ACEOF 8696if ac_fn_c_try_cpp "$LINENO"; then : 8697 # Broken: success on invalid input. 8698continue 8699else 8700 # Passes both tests. 8701ac_preproc_ok=: 8702break 8703fi 8704rm -f conftest.err conftest.i conftest.$ac_ext 8705 8706done 8707# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8708rm -f conftest.i conftest.err conftest.$ac_ext 8709if $ac_preproc_ok; then : 8710 8711else 8712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8714as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8715See \`config.log' for more details" "$LINENO" 5; } 8716fi 8717 8718ac_ext=c 8719ac_cpp='$CPP $CPPFLAGS' 8720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8722ac_compiler_gnu=$ac_cv_c_compiler_gnu 8723 8724 8725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8726$as_echo_n "checking for ANSI C header files... " >&6; } 8727if ${ac_cv_header_stdc+:} false; then : 8728 $as_echo_n "(cached) " >&6 8729else 8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8731/* end confdefs.h. */ 8732#include <stdlib.h> 8733#include <stdarg.h> 8734#include <string.h> 8735#include <float.h> 8736 8737int 8738main () 8739{ 8740 8741 ; 8742 return 0; 8743} 8744_ACEOF 8745if ac_fn_c_try_compile "$LINENO"; then : 8746 ac_cv_header_stdc=yes 8747else 8748 ac_cv_header_stdc=no 8749fi 8750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8751 8752if test $ac_cv_header_stdc = yes; then 8753 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8755/* end confdefs.h. */ 8756#include <string.h> 8757 8758_ACEOF 8759if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8760 $EGREP "memchr" >/dev/null 2>&1; then : 8761 8762else 8763 ac_cv_header_stdc=no 8764fi 8765rm -f conftest* 8766 8767fi 8768 8769if test $ac_cv_header_stdc = yes; then 8770 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8772/* end confdefs.h. */ 8773#include <stdlib.h> 8774 8775_ACEOF 8776if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8777 $EGREP "free" >/dev/null 2>&1; then : 8778 8779else 8780 ac_cv_header_stdc=no 8781fi 8782rm -f conftest* 8783 8784fi 8785 8786if test $ac_cv_header_stdc = yes; then 8787 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8788 if test "$cross_compiling" = yes; then : 8789 : 8790else 8791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8792/* end confdefs.h. */ 8793#include <ctype.h> 8794#include <stdlib.h> 8795#if ((' ' & 0x0FF) == 0x020) 8796# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8797# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8798#else 8799# define ISLOWER(c) \ 8800 (('a' <= (c) && (c) <= 'i') \ 8801 || ('j' <= (c) && (c) <= 'r') \ 8802 || ('s' <= (c) && (c) <= 'z')) 8803# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8804#endif 8805 8806#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8807int 8808main () 8809{ 8810 int i; 8811 for (i = 0; i < 256; i++) 8812 if (XOR (islower (i), ISLOWER (i)) 8813 || toupper (i) != TOUPPER (i)) 8814 return 2; 8815 return 0; 8816} 8817_ACEOF 8818if ac_fn_c_try_run "$LINENO"; then : 8819 8820else 8821 ac_cv_header_stdc=no 8822fi 8823rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8824 conftest.$ac_objext conftest.beam conftest.$ac_ext 8825fi 8826 8827fi 8828fi 8829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8830$as_echo "$ac_cv_header_stdc" >&6; } 8831if test $ac_cv_header_stdc = yes; then 8832 8833$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8834 8835fi 8836 8837# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8838for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8839 inttypes.h stdint.h unistd.h 8840do : 8841 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8842ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8843" 8844if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8845 cat >>confdefs.h <<_ACEOF 8846#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8847_ACEOF 8848 8849fi 8850 8851done 8852 8853 8854for ac_header in dlfcn.h 8855do : 8856 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8857" 8858if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8859 cat >>confdefs.h <<_ACEOF 8860#define HAVE_DLFCN_H 1 8861_ACEOF 8862 8863fi 8864 8865done 8866 8867 8868 8869 8870func_stripname_cnf () 8871{ 8872 case $2 in 8873 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 8874 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 8875 esac 8876} # func_stripname_cnf 8877 8878 8879 8880 8881 8882# Set options 8883 8884 8885 8886 enable_dlopen=no 8887 8888 8889 enable_win32_dll=no 8890 8891 8892 # Check whether --enable-shared was given. 8893if test "${enable_shared+set}" = set; then : 8894 enableval=$enable_shared; p=${PACKAGE-default} 8895 case $enableval in 8896 yes) enable_shared=yes ;; 8897 no) enable_shared=no ;; 8898 *) 8899 enable_shared=no 8900 # Look at the argument we got. We use all the common list separators. 8901 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8902 for pkg in $enableval; do 8903 IFS=$lt_save_ifs 8904 if test "X$pkg" = "X$p"; then 8905 enable_shared=yes 8906 fi 8907 done 8908 IFS=$lt_save_ifs 8909 ;; 8910 esac 8911else 8912 enable_shared=yes 8913fi 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 # Check whether --enable-static was given. 8924if test "${enable_static+set}" = set; then : 8925 enableval=$enable_static; p=${PACKAGE-default} 8926 case $enableval in 8927 yes) enable_static=yes ;; 8928 no) enable_static=no ;; 8929 *) 8930 enable_static=no 8931 # Look at the argument we got. We use all the common list separators. 8932 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8933 for pkg in $enableval; do 8934 IFS=$lt_save_ifs 8935 if test "X$pkg" = "X$p"; then 8936 enable_static=yes 8937 fi 8938 done 8939 IFS=$lt_save_ifs 8940 ;; 8941 esac 8942else 8943 enable_static=yes 8944fi 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955# Check whether --with-pic was given. 8956if test "${with_pic+set}" = set; then : 8957 withval=$with_pic; lt_p=${PACKAGE-default} 8958 case $withval in 8959 yes|no) pic_mode=$withval ;; 8960 *) 8961 pic_mode=default 8962 # Look at the argument we got. We use all the common list separators. 8963 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8964 for lt_pkg in $withval; do 8965 IFS=$lt_save_ifs 8966 if test "X$lt_pkg" = "X$lt_p"; then 8967 pic_mode=yes 8968 fi 8969 done 8970 IFS=$lt_save_ifs 8971 ;; 8972 esac 8973else 8974 pic_mode=default 8975fi 8976 8977 8978 8979 8980 8981 8982 8983 8984 # Check whether --enable-fast-install was given. 8985if test "${enable_fast_install+set}" = set; then : 8986 enableval=$enable_fast_install; p=${PACKAGE-default} 8987 case $enableval in 8988 yes) enable_fast_install=yes ;; 8989 no) enable_fast_install=no ;; 8990 *) 8991 enable_fast_install=no 8992 # Look at the argument we got. We use all the common list separators. 8993 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8994 for pkg in $enableval; do 8995 IFS=$lt_save_ifs 8996 if test "X$pkg" = "X$p"; then 8997 enable_fast_install=yes 8998 fi 8999 done 9000 IFS=$lt_save_ifs 9001 ;; 9002 esac 9003else 9004 enable_fast_install=yes 9005fi 9006 9007 9008 9009 9010 9011 9012 9013 9014 shared_archive_member_spec= 9015case $host,$enable_shared in 9016power*-*-aix[5-9]*,yes) 9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9018$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9019 9020# Check whether --with-aix-soname was given. 9021if test "${with_aix_soname+set}" = set; then : 9022 withval=$with_aix_soname; case $withval in 9023 aix|svr4|both) 9024 ;; 9025 *) 9026 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9027 ;; 9028 esac 9029 lt_cv_with_aix_soname=$with_aix_soname 9030else 9031 if ${lt_cv_with_aix_soname+:} false; then : 9032 $as_echo_n "(cached) " >&6 9033else 9034 lt_cv_with_aix_soname=aix 9035fi 9036 9037 with_aix_soname=$lt_cv_with_aix_soname 9038fi 9039 9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9041$as_echo "$with_aix_soname" >&6; } 9042 if test aix != "$with_aix_soname"; then 9043 # For the AIX way of multilib, we name the shared archive member 9044 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9045 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9046 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9047 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9048 if test 64 = "${OBJECT_MODE-32}"; then 9049 shared_archive_member_spec=shr_64 9050 else 9051 shared_archive_member_spec=shr 9052 fi 9053 fi 9054 ;; 9055*) 9056 with_aix_soname=aix 9057 ;; 9058esac 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069# This can be used to rebuild libtool when needed 9070LIBTOOL_DEPS=$ltmain 9071 9072# Always use our own libtool. 9073LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104test -z "$LN_S" && LN_S="ln -s" 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119if test -n "${ZSH_VERSION+set}"; then 9120 setopt NO_GLOB_SUBST 9121fi 9122 9123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9124$as_echo_n "checking for objdir... " >&6; } 9125if ${lt_cv_objdir+:} false; then : 9126 $as_echo_n "(cached) " >&6 9127else 9128 rm -f .libs 2>/dev/null 9129mkdir .libs 2>/dev/null 9130if test -d .libs; then 9131 lt_cv_objdir=.libs 9132else 9133 # MS-DOS does not allow filenames that begin with a dot. 9134 lt_cv_objdir=_libs 9135fi 9136rmdir .libs 2>/dev/null 9137fi 9138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9139$as_echo "$lt_cv_objdir" >&6; } 9140objdir=$lt_cv_objdir 9141 9142 9143 9144 9145 9146cat >>confdefs.h <<_ACEOF 9147#define LT_OBJDIR "$lt_cv_objdir/" 9148_ACEOF 9149 9150 9151 9152 9153case $host_os in 9154aix3*) 9155 # AIX sometimes has problems with the GCC collect2 program. For some 9156 # reason, if we set the COLLECT_NAMES environment variable, the problems 9157 # vanish in a puff of smoke. 9158 if test set != "${COLLECT_NAMES+set}"; then 9159 COLLECT_NAMES= 9160 export COLLECT_NAMES 9161 fi 9162 ;; 9163esac 9164 9165# Global variables: 9166ofile=libtool 9167can_build_shared=yes 9168 9169# All known linkers require a '.a' archive for static linking (except MSVC, 9170# which needs '.lib'). 9171libext=a 9172 9173with_gnu_ld=$lt_cv_prog_gnu_ld 9174 9175old_CC=$CC 9176old_CFLAGS=$CFLAGS 9177 9178# Set sane defaults for various variables 9179test -z "$CC" && CC=cc 9180test -z "$LTCC" && LTCC=$CC 9181test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9182test -z "$LD" && LD=ld 9183test -z "$ac_objext" && ac_objext=o 9184 9185func_cc_basename $compiler 9186cc_basename=$func_cc_basename_result 9187 9188 9189# Only perform the check for file, if the check method requires it 9190test -z "$MAGIC_CMD" && MAGIC_CMD=file 9191case $deplibs_check_method in 9192file_magic*) 9193 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9195$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9196if ${lt_cv_path_MAGIC_CMD+:} false; then : 9197 $as_echo_n "(cached) " >&6 9198else 9199 case $MAGIC_CMD in 9200[\\/*] | ?:[\\/]*) 9201 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9202 ;; 9203*) 9204 lt_save_MAGIC_CMD=$MAGIC_CMD 9205 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9206 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9207 for ac_dir in $ac_dummy; do 9208 IFS=$lt_save_ifs 9209 test -z "$ac_dir" && ac_dir=. 9210 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9211 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9212 if test -n "$file_magic_test_file"; then 9213 case $deplibs_check_method in 9214 "file_magic "*) 9215 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9216 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9217 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9218 $EGREP "$file_magic_regex" > /dev/null; then 9219 : 9220 else 9221 cat <<_LT_EOF 1>&2 9222 9223*** Warning: the command libtool uses to detect shared libraries, 9224*** $file_magic_cmd, produces output that libtool cannot recognize. 9225*** The result is that libtool may fail to recognize shared libraries 9226*** as such. This will affect the creation of libtool libraries that 9227*** depend on shared libraries, but programs linked with such libtool 9228*** libraries will work regardless of this problem. Nevertheless, you 9229*** may want to report the problem to your system manager and/or to 9230*** bug-libtool@gnu.org 9231 9232_LT_EOF 9233 fi ;; 9234 esac 9235 fi 9236 break 9237 fi 9238 done 9239 IFS=$lt_save_ifs 9240 MAGIC_CMD=$lt_save_MAGIC_CMD 9241 ;; 9242esac 9243fi 9244 9245MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9246if test -n "$MAGIC_CMD"; then 9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9248$as_echo "$MAGIC_CMD" >&6; } 9249else 9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9251$as_echo "no" >&6; } 9252fi 9253 9254 9255 9256 9257 9258if test -z "$lt_cv_path_MAGIC_CMD"; then 9259 if test -n "$ac_tool_prefix"; then 9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9261$as_echo_n "checking for file... " >&6; } 9262if ${lt_cv_path_MAGIC_CMD+:} false; then : 9263 $as_echo_n "(cached) " >&6 9264else 9265 case $MAGIC_CMD in 9266[\\/*] | ?:[\\/]*) 9267 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9268 ;; 9269*) 9270 lt_save_MAGIC_CMD=$MAGIC_CMD 9271 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9272 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9273 for ac_dir in $ac_dummy; do 9274 IFS=$lt_save_ifs 9275 test -z "$ac_dir" && ac_dir=. 9276 if test -f "$ac_dir/file"; then 9277 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9278 if test -n "$file_magic_test_file"; then 9279 case $deplibs_check_method in 9280 "file_magic "*) 9281 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9282 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9283 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9284 $EGREP "$file_magic_regex" > /dev/null; then 9285 : 9286 else 9287 cat <<_LT_EOF 1>&2 9288 9289*** Warning: the command libtool uses to detect shared libraries, 9290*** $file_magic_cmd, produces output that libtool cannot recognize. 9291*** The result is that libtool may fail to recognize shared libraries 9292*** as such. This will affect the creation of libtool libraries that 9293*** depend on shared libraries, but programs linked with such libtool 9294*** libraries will work regardless of this problem. Nevertheless, you 9295*** may want to report the problem to your system manager and/or to 9296*** bug-libtool@gnu.org 9297 9298_LT_EOF 9299 fi ;; 9300 esac 9301 fi 9302 break 9303 fi 9304 done 9305 IFS=$lt_save_ifs 9306 MAGIC_CMD=$lt_save_MAGIC_CMD 9307 ;; 9308esac 9309fi 9310 9311MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9312if test -n "$MAGIC_CMD"; then 9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9314$as_echo "$MAGIC_CMD" >&6; } 9315else 9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9317$as_echo "no" >&6; } 9318fi 9319 9320 9321 else 9322 MAGIC_CMD=: 9323 fi 9324fi 9325 9326 fi 9327 ;; 9328esac 9329 9330# Use C for the default configuration in the libtool script 9331 9332lt_save_CC=$CC 9333ac_ext=c 9334ac_cpp='$CPP $CPPFLAGS' 9335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9337ac_compiler_gnu=$ac_cv_c_compiler_gnu 9338 9339 9340# Source file extension for C test sources. 9341ac_ext=c 9342 9343# Object file extension for compiled C test sources. 9344objext=o 9345objext=$objext 9346 9347# Code to be used in simple compile tests 9348lt_simple_compile_test_code="int some_variable = 0;" 9349 9350# Code to be used in simple link tests 9351lt_simple_link_test_code='int main(){return(0);}' 9352 9353 9354 9355 9356 9357 9358 9359# If no C compiler was specified, use CC. 9360LTCC=${LTCC-"$CC"} 9361 9362# If no C compiler flags were specified, use CFLAGS. 9363LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9364 9365# Allow CC to be a program name with arguments. 9366compiler=$CC 9367 9368# Save the default compiler, since it gets overwritten when the other 9369# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9370compiler_DEFAULT=$CC 9371 9372# save warnings/boilerplate of simple test code 9373ac_outfile=conftest.$ac_objext 9374echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9375eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9376_lt_compiler_boilerplate=`cat conftest.err` 9377$RM conftest* 9378 9379ac_outfile=conftest.$ac_objext 9380echo "$lt_simple_link_test_code" >conftest.$ac_ext 9381eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9382_lt_linker_boilerplate=`cat conftest.err` 9383$RM -r conftest* 9384 9385 9386## CAVEAT EMPTOR: 9387## There is no encapsulation within the following macros, do not change 9388## the running order or otherwise move them around unless you know exactly 9389## what you are doing... 9390if test -n "$compiler"; then 9391 9392lt_prog_compiler_no_builtin_flag= 9393 9394if test yes = "$GCC"; then 9395 case $cc_basename in 9396 nvcc*) 9397 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9398 *) 9399 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9400 esac 9401 9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9403$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9404if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9405 $as_echo_n "(cached) " >&6 9406else 9407 lt_cv_prog_compiler_rtti_exceptions=no 9408 ac_outfile=conftest.$ac_objext 9409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9410 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9411 # Insert the option either (1) after the last *FLAGS variable, or 9412 # (2) before a word containing "conftest.", or (3) at the end. 9413 # Note that $ac_compile itself does not contain backslashes and begins 9414 # with a dollar sign (not a hyphen), so the echo should work correctly. 9415 # The option is referenced via a variable to avoid confusing sed. 9416 lt_compile=`echo "$ac_compile" | $SED \ 9417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9419 -e 's:$: $lt_compiler_flag:'` 9420 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9421 (eval "$lt_compile" 2>conftest.err) 9422 ac_status=$? 9423 cat conftest.err >&5 9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9425 if (exit $ac_status) && test -s "$ac_outfile"; then 9426 # The compiler can only warn and ignore the option if not recognized 9427 # So say no if there are warnings other than the usual output. 9428 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9429 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9430 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9431 lt_cv_prog_compiler_rtti_exceptions=yes 9432 fi 9433 fi 9434 $RM conftest* 9435 9436fi 9437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9438$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9439 9440if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9441 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9442else 9443 : 9444fi 9445 9446fi 9447 9448 9449 9450 9451 9452 9453 lt_prog_compiler_wl= 9454lt_prog_compiler_pic= 9455lt_prog_compiler_static= 9456 9457 9458 if test yes = "$GCC"; then 9459 lt_prog_compiler_wl='-Wl,' 9460 lt_prog_compiler_static='-static' 9461 9462 case $host_os in 9463 aix*) 9464 # All AIX code is PIC. 9465 if test ia64 = "$host_cpu"; then 9466 # AIX 5 now supports IA64 processor 9467 lt_prog_compiler_static='-Bstatic' 9468 fi 9469 lt_prog_compiler_pic='-fPIC' 9470 ;; 9471 9472 amigaos*) 9473 case $host_cpu in 9474 powerpc) 9475 # see comment about AmigaOS4 .so support 9476 lt_prog_compiler_pic='-fPIC' 9477 ;; 9478 m68k) 9479 # FIXME: we need at least 68020 code to build shared libraries, but 9480 # adding the '-m68020' flag to GCC prevents building anything better, 9481 # like '-m68040'. 9482 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9483 ;; 9484 esac 9485 ;; 9486 9487 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9488 # PIC is the default for these OSes. 9489 ;; 9490 9491 mingw* | cygwin* | pw32* | os2* | cegcc*) 9492 # This hack is so that the source file can tell whether it is being 9493 # built for inclusion in a dll (and should export symbols for example). 9494 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9495 # (--disable-auto-import) libraries 9496 lt_prog_compiler_pic='-DDLL_EXPORT' 9497 case $host_os in 9498 os2*) 9499 lt_prog_compiler_static='$wl-static' 9500 ;; 9501 esac 9502 ;; 9503 9504 darwin* | rhapsody*) 9505 # PIC is the default on this platform 9506 # Common symbols not allowed in MH_DYLIB files 9507 lt_prog_compiler_pic='-fno-common' 9508 ;; 9509 9510 haiku*) 9511 # PIC is the default for Haiku. 9512 # The "-static" flag exists, but is broken. 9513 lt_prog_compiler_static= 9514 ;; 9515 9516 hpux*) 9517 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9518 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9519 # sets the default TLS model and affects inlining. 9520 case $host_cpu in 9521 hppa*64*) 9522 # +Z the default 9523 ;; 9524 *) 9525 lt_prog_compiler_pic='-fPIC' 9526 ;; 9527 esac 9528 ;; 9529 9530 interix[3-9]*) 9531 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9532 # Instead, we relocate shared libraries at runtime. 9533 ;; 9534 9535 msdosdjgpp*) 9536 # Just because we use GCC doesn't mean we suddenly get shared libraries 9537 # on systems that don't support them. 9538 lt_prog_compiler_can_build_shared=no 9539 enable_shared=no 9540 ;; 9541 9542 *nto* | *qnx*) 9543 # QNX uses GNU C++, but need to define -shared option too, otherwise 9544 # it will coredump. 9545 lt_prog_compiler_pic='-fPIC -shared' 9546 ;; 9547 9548 sysv4*MP*) 9549 if test -d /usr/nec; then 9550 lt_prog_compiler_pic=-Kconform_pic 9551 fi 9552 ;; 9553 9554 *) 9555 lt_prog_compiler_pic='-fPIC' 9556 ;; 9557 esac 9558 9559 case $cc_basename in 9560 nvcc*) # Cuda Compiler Driver 2.2 9561 lt_prog_compiler_wl='-Xlinker ' 9562 if test -n "$lt_prog_compiler_pic"; then 9563 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9564 fi 9565 ;; 9566 esac 9567 else 9568 # PORTME Check for flag to pass linker flags through the system compiler. 9569 case $host_os in 9570 aix*) 9571 lt_prog_compiler_wl='-Wl,' 9572 if test ia64 = "$host_cpu"; then 9573 # AIX 5 now supports IA64 processor 9574 lt_prog_compiler_static='-Bstatic' 9575 else 9576 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9577 fi 9578 ;; 9579 9580 darwin* | rhapsody*) 9581 # PIC is the default on this platform 9582 # Common symbols not allowed in MH_DYLIB files 9583 lt_prog_compiler_pic='-fno-common' 9584 case $cc_basename in 9585 nagfor*) 9586 # NAG Fortran compiler 9587 lt_prog_compiler_wl='-Wl,-Wl,,' 9588 lt_prog_compiler_pic='-PIC' 9589 lt_prog_compiler_static='-Bstatic' 9590 ;; 9591 esac 9592 ;; 9593 9594 mingw* | cygwin* | pw32* | os2* | cegcc*) 9595 # This hack is so that the source file can tell whether it is being 9596 # built for inclusion in a dll (and should export symbols for example). 9597 lt_prog_compiler_pic='-DDLL_EXPORT' 9598 case $host_os in 9599 os2*) 9600 lt_prog_compiler_static='$wl-static' 9601 ;; 9602 esac 9603 ;; 9604 9605 hpux9* | hpux10* | hpux11*) 9606 lt_prog_compiler_wl='-Wl,' 9607 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9608 # not for PA HP-UX. 9609 case $host_cpu in 9610 hppa*64*|ia64*) 9611 # +Z the default 9612 ;; 9613 *) 9614 lt_prog_compiler_pic='+Z' 9615 ;; 9616 esac 9617 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9618 lt_prog_compiler_static='$wl-a ${wl}archive' 9619 ;; 9620 9621 irix5* | irix6* | nonstopux*) 9622 lt_prog_compiler_wl='-Wl,' 9623 # PIC (with -KPIC) is the default. 9624 lt_prog_compiler_static='-non_shared' 9625 ;; 9626 9627 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9628 case $cc_basename in 9629 # old Intel for x86_64, which still supported -KPIC. 9630 ecc*) 9631 lt_prog_compiler_wl='-Wl,' 9632 lt_prog_compiler_pic='-KPIC' 9633 lt_prog_compiler_static='-static' 9634 ;; 9635 # icc used to be incompatible with GCC. 9636 # ICC 10 doesn't accept -KPIC any more. 9637 icc* | ifort*) 9638 lt_prog_compiler_wl='-Wl,' 9639 lt_prog_compiler_pic='-fPIC' 9640 lt_prog_compiler_static='-static' 9641 ;; 9642 # Lahey Fortran 8.1. 9643 lf95*) 9644 lt_prog_compiler_wl='-Wl,' 9645 lt_prog_compiler_pic='--shared' 9646 lt_prog_compiler_static='--static' 9647 ;; 9648 nagfor*) 9649 # NAG Fortran compiler 9650 lt_prog_compiler_wl='-Wl,-Wl,,' 9651 lt_prog_compiler_pic='-PIC' 9652 lt_prog_compiler_static='-Bstatic' 9653 ;; 9654 tcc*) 9655 # Fabrice Bellard et al's Tiny C Compiler 9656 lt_prog_compiler_wl='-Wl,' 9657 lt_prog_compiler_pic='-fPIC' 9658 lt_prog_compiler_static='-static' 9659 ;; 9660 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9661 # Portland Group compilers (*not* the Pentium gcc compiler, 9662 # which looks to be a dead project) 9663 lt_prog_compiler_wl='-Wl,' 9664 lt_prog_compiler_pic='-fpic' 9665 lt_prog_compiler_static='-Bstatic' 9666 ;; 9667 ccc*) 9668 lt_prog_compiler_wl='-Wl,' 9669 # All Alpha code is PIC. 9670 lt_prog_compiler_static='-non_shared' 9671 ;; 9672 xl* | bgxl* | bgf* | mpixl*) 9673 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9674 lt_prog_compiler_wl='-Wl,' 9675 lt_prog_compiler_pic='-qpic' 9676 lt_prog_compiler_static='-qstaticlink' 9677 ;; 9678 *) 9679 case `$CC -V 2>&1 | sed 5q` in 9680 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9681 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9682 lt_prog_compiler_pic='-KPIC' 9683 lt_prog_compiler_static='-Bstatic' 9684 lt_prog_compiler_wl='' 9685 ;; 9686 *Sun\ F* | *Sun*Fortran*) 9687 lt_prog_compiler_pic='-KPIC' 9688 lt_prog_compiler_static='-Bstatic' 9689 lt_prog_compiler_wl='-Qoption ld ' 9690 ;; 9691 *Sun\ C*) 9692 # Sun C 5.9 9693 lt_prog_compiler_pic='-KPIC' 9694 lt_prog_compiler_static='-Bstatic' 9695 lt_prog_compiler_wl='-Wl,' 9696 ;; 9697 *Intel*\ [CF]*Compiler*) 9698 lt_prog_compiler_wl='-Wl,' 9699 lt_prog_compiler_pic='-fPIC' 9700 lt_prog_compiler_static='-static' 9701 ;; 9702 *Portland\ Group*) 9703 lt_prog_compiler_wl='-Wl,' 9704 lt_prog_compiler_pic='-fpic' 9705 lt_prog_compiler_static='-Bstatic' 9706 ;; 9707 esac 9708 ;; 9709 esac 9710 ;; 9711 9712 newsos6) 9713 lt_prog_compiler_pic='-KPIC' 9714 lt_prog_compiler_static='-Bstatic' 9715 ;; 9716 9717 *nto* | *qnx*) 9718 # QNX uses GNU C++, but need to define -shared option too, otherwise 9719 # it will coredump. 9720 lt_prog_compiler_pic='-fPIC -shared' 9721 ;; 9722 9723 osf3* | osf4* | osf5*) 9724 lt_prog_compiler_wl='-Wl,' 9725 # All OSF/1 code is PIC. 9726 lt_prog_compiler_static='-non_shared' 9727 ;; 9728 9729 rdos*) 9730 lt_prog_compiler_static='-non_shared' 9731 ;; 9732 9733 solaris*) 9734 lt_prog_compiler_pic='-KPIC' 9735 lt_prog_compiler_static='-Bstatic' 9736 case $cc_basename in 9737 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9738 lt_prog_compiler_wl='-Qoption ld ';; 9739 *) 9740 lt_prog_compiler_wl='-Wl,';; 9741 esac 9742 ;; 9743 9744 sunos4*) 9745 lt_prog_compiler_wl='-Qoption ld ' 9746 lt_prog_compiler_pic='-PIC' 9747 lt_prog_compiler_static='-Bstatic' 9748 ;; 9749 9750 sysv4 | sysv4.2uw2* | sysv4.3*) 9751 lt_prog_compiler_wl='-Wl,' 9752 lt_prog_compiler_pic='-KPIC' 9753 lt_prog_compiler_static='-Bstatic' 9754 ;; 9755 9756 sysv4*MP*) 9757 if test -d /usr/nec; then 9758 lt_prog_compiler_pic='-Kconform_pic' 9759 lt_prog_compiler_static='-Bstatic' 9760 fi 9761 ;; 9762 9763 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9764 lt_prog_compiler_wl='-Wl,' 9765 lt_prog_compiler_pic='-KPIC' 9766 lt_prog_compiler_static='-Bstatic' 9767 ;; 9768 9769 unicos*) 9770 lt_prog_compiler_wl='-Wl,' 9771 lt_prog_compiler_can_build_shared=no 9772 ;; 9773 9774 uts4*) 9775 lt_prog_compiler_pic='-pic' 9776 lt_prog_compiler_static='-Bstatic' 9777 ;; 9778 9779 *) 9780 lt_prog_compiler_can_build_shared=no 9781 ;; 9782 esac 9783 fi 9784 9785case $host_os in 9786 # For platforms that do not support PIC, -DPIC is meaningless: 9787 *djgpp*) 9788 lt_prog_compiler_pic= 9789 ;; 9790 *) 9791 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9792 ;; 9793esac 9794 9795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9796$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9797if ${lt_cv_prog_compiler_pic+:} false; then : 9798 $as_echo_n "(cached) " >&6 9799else 9800 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9801fi 9802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9803$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9804lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9805 9806# 9807# Check to make sure the PIC flag actually works. 9808# 9809if test -n "$lt_prog_compiler_pic"; then 9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9811$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9812if ${lt_cv_prog_compiler_pic_works+:} false; then : 9813 $as_echo_n "(cached) " >&6 9814else 9815 lt_cv_prog_compiler_pic_works=no 9816 ac_outfile=conftest.$ac_objext 9817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9818 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9819 # Insert the option either (1) after the last *FLAGS variable, or 9820 # (2) before a word containing "conftest.", or (3) at the end. 9821 # Note that $ac_compile itself does not contain backslashes and begins 9822 # with a dollar sign (not a hyphen), so the echo should work correctly. 9823 # The option is referenced via a variable to avoid confusing sed. 9824 lt_compile=`echo "$ac_compile" | $SED \ 9825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9827 -e 's:$: $lt_compiler_flag:'` 9828 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9829 (eval "$lt_compile" 2>conftest.err) 9830 ac_status=$? 9831 cat conftest.err >&5 9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9833 if (exit $ac_status) && test -s "$ac_outfile"; then 9834 # The compiler can only warn and ignore the option if not recognized 9835 # So say no if there are warnings other than the usual output. 9836 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9838 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9839 lt_cv_prog_compiler_pic_works=yes 9840 fi 9841 fi 9842 $RM conftest* 9843 9844fi 9845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9846$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9847 9848if test yes = "$lt_cv_prog_compiler_pic_works"; then 9849 case $lt_prog_compiler_pic in 9850 "" | " "*) ;; 9851 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9852 esac 9853else 9854 lt_prog_compiler_pic= 9855 lt_prog_compiler_can_build_shared=no 9856fi 9857 9858fi 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870# 9871# Check to make sure the static flag actually works. 9872# 9873wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9875$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9876if ${lt_cv_prog_compiler_static_works+:} false; then : 9877 $as_echo_n "(cached) " >&6 9878else 9879 lt_cv_prog_compiler_static_works=no 9880 save_LDFLAGS=$LDFLAGS 9881 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9882 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9883 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9884 # The linker can only warn and ignore the option if not recognized 9885 # So say no if there are warnings 9886 if test -s conftest.err; then 9887 # Append any errors to the config.log. 9888 cat conftest.err 1>&5 9889 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9890 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9891 if diff conftest.exp conftest.er2 >/dev/null; then 9892 lt_cv_prog_compiler_static_works=yes 9893 fi 9894 else 9895 lt_cv_prog_compiler_static_works=yes 9896 fi 9897 fi 9898 $RM -r conftest* 9899 LDFLAGS=$save_LDFLAGS 9900 9901fi 9902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9903$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9904 9905if test yes = "$lt_cv_prog_compiler_static_works"; then 9906 : 9907else 9908 lt_prog_compiler_static= 9909fi 9910 9911 9912 9913 9914 9915 9916 9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9918$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9919if ${lt_cv_prog_compiler_c_o+:} false; then : 9920 $as_echo_n "(cached) " >&6 9921else 9922 lt_cv_prog_compiler_c_o=no 9923 $RM -r conftest 2>/dev/null 9924 mkdir conftest 9925 cd conftest 9926 mkdir out 9927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9928 9929 lt_compiler_flag="-o out/conftest2.$ac_objext" 9930 # Insert the option either (1) after the last *FLAGS variable, or 9931 # (2) before a word containing "conftest.", or (3) at the end. 9932 # Note that $ac_compile itself does not contain backslashes and begins 9933 # with a dollar sign (not a hyphen), so the echo should work correctly. 9934 lt_compile=`echo "$ac_compile" | $SED \ 9935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9937 -e 's:$: $lt_compiler_flag:'` 9938 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9939 (eval "$lt_compile" 2>out/conftest.err) 9940 ac_status=$? 9941 cat out/conftest.err >&5 9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9943 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9944 then 9945 # The compiler can only warn and ignore the option if not recognized 9946 # So say no if there are warnings 9947 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9948 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9949 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9950 lt_cv_prog_compiler_c_o=yes 9951 fi 9952 fi 9953 chmod u+w . 2>&5 9954 $RM conftest* 9955 # SGI C++ compiler will create directory out/ii_files/ for 9956 # template instantiation 9957 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9958 $RM out/* && rmdir out 9959 cd .. 9960 $RM -r conftest 9961 $RM conftest* 9962 9963fi 9964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9965$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9966 9967 9968 9969 9970 9971 9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9973$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9974if ${lt_cv_prog_compiler_c_o+:} false; then : 9975 $as_echo_n "(cached) " >&6 9976else 9977 lt_cv_prog_compiler_c_o=no 9978 $RM -r conftest 2>/dev/null 9979 mkdir conftest 9980 cd conftest 9981 mkdir out 9982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9983 9984 lt_compiler_flag="-o out/conftest2.$ac_objext" 9985 # Insert the option either (1) after the last *FLAGS variable, or 9986 # (2) before a word containing "conftest.", or (3) at the end. 9987 # Note that $ac_compile itself does not contain backslashes and begins 9988 # with a dollar sign (not a hyphen), so the echo should work correctly. 9989 lt_compile=`echo "$ac_compile" | $SED \ 9990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9992 -e 's:$: $lt_compiler_flag:'` 9993 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9994 (eval "$lt_compile" 2>out/conftest.err) 9995 ac_status=$? 9996 cat out/conftest.err >&5 9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9998 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9999 then 10000 # The compiler can only warn and ignore the option if not recognized 10001 # So say no if there are warnings 10002 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10003 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10004 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10005 lt_cv_prog_compiler_c_o=yes 10006 fi 10007 fi 10008 chmod u+w . 2>&5 10009 $RM conftest* 10010 # SGI C++ compiler will create directory out/ii_files/ for 10011 # template instantiation 10012 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10013 $RM out/* && rmdir out 10014 cd .. 10015 $RM -r conftest 10016 $RM conftest* 10017 10018fi 10019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10020$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10021 10022 10023 10024 10025hard_links=nottested 10026if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10027 # do not overwrite the value of need_locks provided by the user 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10029$as_echo_n "checking if we can lock with hard links... " >&6; } 10030 hard_links=yes 10031 $RM conftest* 10032 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10033 touch conftest.a 10034 ln conftest.a conftest.b 2>&5 || hard_links=no 10035 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10037$as_echo "$hard_links" >&6; } 10038 if test no = "$hard_links"; then 10039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10040$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10041 need_locks=warn 10042 fi 10043else 10044 need_locks=no 10045fi 10046 10047 10048 10049 10050 10051 10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10053$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10054 10055 runpath_var= 10056 allow_undefined_flag= 10057 always_export_symbols=no 10058 archive_cmds= 10059 archive_expsym_cmds= 10060 compiler_needs_object=no 10061 enable_shared_with_static_runtimes=no 10062 export_dynamic_flag_spec= 10063 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10064 hardcode_automatic=no 10065 hardcode_direct=no 10066 hardcode_direct_absolute=no 10067 hardcode_libdir_flag_spec= 10068 hardcode_libdir_separator= 10069 hardcode_minus_L=no 10070 hardcode_shlibpath_var=unsupported 10071 inherit_rpath=no 10072 link_all_deplibs=unknown 10073 module_cmds= 10074 module_expsym_cmds= 10075 old_archive_from_new_cmds= 10076 old_archive_from_expsyms_cmds= 10077 thread_safe_flag_spec= 10078 whole_archive_flag_spec= 10079 # include_expsyms should be a list of space-separated symbols to be *always* 10080 # included in the symbol list 10081 include_expsyms= 10082 # exclude_expsyms can be an extended regexp of symbols to exclude 10083 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10084 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10085 # as well as any symbol that contains 'd'. 10086 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10087 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10088 # platforms (ab)use it in PIC code, but their linkers get confused if 10089 # the symbol is explicitly referenced. Since portable code cannot 10090 # rely on this symbol name, it's probably fine to never include it in 10091 # preloaded symbol tables. 10092 # Exclude shared library initialization/finalization symbols. 10093 extract_expsyms_cmds= 10094 10095 case $host_os in 10096 cygwin* | mingw* | pw32* | cegcc*) 10097 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10098 # When not using gcc, we currently assume that we are using 10099 # Microsoft Visual C++. 10100 if test yes != "$GCC"; then 10101 with_gnu_ld=no 10102 fi 10103 ;; 10104 interix*) 10105 # we just hope/assume this is gcc and not c89 (= MSVC++) 10106 with_gnu_ld=yes 10107 ;; 10108 openbsd* | bitrig*) 10109 with_gnu_ld=no 10110 ;; 10111 esac 10112 10113 ld_shlibs=yes 10114 10115 # On some targets, GNU ld is compatible enough with the native linker 10116 # that we're better off using the native interface for both. 10117 lt_use_gnu_ld_interface=no 10118 if test yes = "$with_gnu_ld"; then 10119 case $host_os in 10120 aix*) 10121 # The AIX port of GNU ld has always aspired to compatibility 10122 # with the native linker. However, as the warning in the GNU ld 10123 # block says, versions before 2.19.5* couldn't really create working 10124 # shared libraries, regardless of the interface used. 10125 case `$LD -v 2>&1` in 10126 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10127 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10128 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10129 *) 10130 lt_use_gnu_ld_interface=yes 10131 ;; 10132 esac 10133 ;; 10134 *) 10135 lt_use_gnu_ld_interface=yes 10136 ;; 10137 esac 10138 fi 10139 10140 if test yes = "$lt_use_gnu_ld_interface"; then 10141 # If archive_cmds runs LD, not CC, wlarc should be empty 10142 wlarc='$wl' 10143 10144 # Set some defaults for GNU ld with shared library support. These 10145 # are reset later if shared libraries are not supported. Putting them 10146 # here allows them to be overridden if necessary. 10147 runpath_var=LD_RUN_PATH 10148 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10149 export_dynamic_flag_spec='$wl--export-dynamic' 10150 # ancient GNU ld didn't support --whole-archive et. al. 10151 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10152 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10153 else 10154 whole_archive_flag_spec= 10155 fi 10156 supports_anon_versioning=no 10157 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10158 *GNU\ gold*) supports_anon_versioning=yes ;; 10159 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10160 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10161 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10162 *\ 2.11.*) ;; # other 2.11 versions 10163 *) supports_anon_versioning=yes ;; 10164 esac 10165 10166 # See if GNU ld supports shared libraries. 10167 case $host_os in 10168 aix[3-9]*) 10169 # On AIX/PPC, the GNU linker is very broken 10170 if test ia64 != "$host_cpu"; then 10171 ld_shlibs=no 10172 cat <<_LT_EOF 1>&2 10173 10174*** Warning: the GNU linker, at least up to release 2.19, is reported 10175*** to be unable to reliably create shared libraries on AIX. 10176*** Therefore, libtool is disabling shared libraries support. If you 10177*** really care for shared libraries, you may want to install binutils 10178*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10179*** You will then need to restart the configuration process. 10180 10181_LT_EOF 10182 fi 10183 ;; 10184 10185 amigaos*) 10186 case $host_cpu in 10187 powerpc) 10188 # see comment about AmigaOS4 .so support 10189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10190 archive_expsym_cmds='' 10191 ;; 10192 m68k) 10193 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)' 10194 hardcode_libdir_flag_spec='-L$libdir' 10195 hardcode_minus_L=yes 10196 ;; 10197 esac 10198 ;; 10199 10200 beos*) 10201 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10202 allow_undefined_flag=unsupported 10203 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10204 # support --undefined. This deserves some investigation. FIXME 10205 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10206 else 10207 ld_shlibs=no 10208 fi 10209 ;; 10210 10211 cygwin* | mingw* | pw32* | cegcc*) 10212 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10213 # as there is no search path for DLLs. 10214 hardcode_libdir_flag_spec='-L$libdir' 10215 export_dynamic_flag_spec='$wl--export-all-symbols' 10216 allow_undefined_flag=unsupported 10217 always_export_symbols=no 10218 enable_shared_with_static_runtimes=yes 10219 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' 10220 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10221 10222 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10224 # If the export-symbols file already is a .def file, use it as 10225 # is; otherwise, prepend EXPORTS... 10226 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10227 cp $export_symbols $output_objdir/$soname.def; 10228 else 10229 echo EXPORTS > $output_objdir/$soname.def; 10230 cat $export_symbols >> $output_objdir/$soname.def; 10231 fi~ 10232 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10233 else 10234 ld_shlibs=no 10235 fi 10236 ;; 10237 10238 haiku*) 10239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10240 link_all_deplibs=yes 10241 ;; 10242 10243 os2*) 10244 hardcode_libdir_flag_spec='-L$libdir' 10245 hardcode_minus_L=yes 10246 allow_undefined_flag=unsupported 10247 shrext_cmds=.dll 10248 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10249 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10250 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10251 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10252 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10253 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10254 emximp -o $lib $output_objdir/$libname.def' 10255 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10256 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10257 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10258 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10259 prefix_cmds="$SED"~ 10260 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10261 prefix_cmds="$prefix_cmds -e 1d"; 10262 fi~ 10263 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10264 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10265 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10266 emximp -o $lib $output_objdir/$libname.def' 10267 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10268 enable_shared_with_static_runtimes=yes 10269 ;; 10270 10271 interix[3-9]*) 10272 hardcode_direct=no 10273 hardcode_shlibpath_var=no 10274 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10275 export_dynamic_flag_spec='$wl-E' 10276 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10277 # Instead, shared libraries are loaded at an image base (0x10000000 by 10278 # default) and relocated if they conflict, which is a slow very memory 10279 # consuming and fragmenting process. To avoid this, we pick a random, 10280 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10281 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10282 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10283 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' 10284 ;; 10285 10286 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10287 tmp_diet=no 10288 if test linux-dietlibc = "$host_os"; then 10289 case $cc_basename in 10290 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10291 esac 10292 fi 10293 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10294 && test no = "$tmp_diet" 10295 then 10296 tmp_addflag=' $pic_flag' 10297 tmp_sharedflag='-shared' 10298 case $cc_basename,$host_cpu in 10299 pgcc*) # Portland Group C compiler 10300 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' 10301 tmp_addflag=' $pic_flag' 10302 ;; 10303 pgf77* | pgf90* | pgf95* | pgfortran*) 10304 # Portland Group f77 and f90 compilers 10305 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' 10306 tmp_addflag=' $pic_flag -Mnomain' ;; 10307 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10308 tmp_addflag=' -i_dynamic' ;; 10309 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10310 tmp_addflag=' -i_dynamic -nofor_main' ;; 10311 ifc* | ifort*) # Intel Fortran compiler 10312 tmp_addflag=' -nofor_main' ;; 10313 lf95*) # Lahey Fortran 8.1 10314 whole_archive_flag_spec= 10315 tmp_sharedflag='--shared' ;; 10316 nagfor*) # NAGFOR 5.3 10317 tmp_sharedflag='-Wl,-shared' ;; 10318 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10319 tmp_sharedflag='-qmkshrobj' 10320 tmp_addflag= ;; 10321 nvcc*) # Cuda Compiler Driver 2.2 10322 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' 10323 compiler_needs_object=yes 10324 ;; 10325 esac 10326 case `$CC -V 2>&1 | sed 5q` in 10327 *Sun\ C*) # Sun C 5.9 10328 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' 10329 compiler_needs_object=yes 10330 tmp_sharedflag='-G' ;; 10331 *Sun\ F*) # Sun Fortran 8.3 10332 tmp_sharedflag='-G' ;; 10333 esac 10334 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10335 10336 if test yes = "$supports_anon_versioning"; then 10337 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10338 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10339 echo "local: *; };" >> $output_objdir/$libname.ver~ 10340 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10341 fi 10342 10343 case $cc_basename in 10344 tcc*) 10345 export_dynamic_flag_spec='-rdynamic' 10346 ;; 10347 xlf* | bgf* | bgxlf* | mpixlf*) 10348 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10349 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10350 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10351 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10352 if test yes = "$supports_anon_versioning"; then 10353 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10354 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10355 echo "local: *; };" >> $output_objdir/$libname.ver~ 10356 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10357 fi 10358 ;; 10359 esac 10360 else 10361 ld_shlibs=no 10362 fi 10363 ;; 10364 10365 netbsd*) 10366 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10367 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10368 wlarc= 10369 else 10370 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10371 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10372 fi 10373 ;; 10374 10375 solaris*) 10376 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10377 ld_shlibs=no 10378 cat <<_LT_EOF 1>&2 10379 10380*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10381*** create shared libraries on Solaris systems. Therefore, libtool 10382*** is disabling shared libraries support. We urge you to upgrade GNU 10383*** binutils to release 2.9.1 or newer. Another option is to modify 10384*** your PATH or compiler configuration so that the native linker is 10385*** used, and then restart. 10386 10387_LT_EOF 10388 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10389 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10390 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10391 else 10392 ld_shlibs=no 10393 fi 10394 ;; 10395 10396 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10397 case `$LD -v 2>&1` in 10398 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10399 ld_shlibs=no 10400 cat <<_LT_EOF 1>&2 10401 10402*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10403*** reliably create shared libraries on SCO systems. Therefore, libtool 10404*** is disabling shared libraries support. We urge you to upgrade GNU 10405*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10406*** your PATH or compiler configuration so that the native linker is 10407*** used, and then restart. 10408 10409_LT_EOF 10410 ;; 10411 *) 10412 # For security reasons, it is highly recommended that you always 10413 # use absolute paths for naming shared libraries, and exclude the 10414 # DT_RUNPATH tag from executables and libraries. But doing so 10415 # requires that you compile everything twice, which is a pain. 10416 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10417 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10419 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10420 else 10421 ld_shlibs=no 10422 fi 10423 ;; 10424 esac 10425 ;; 10426 10427 sunos4*) 10428 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10429 wlarc= 10430 hardcode_direct=yes 10431 hardcode_shlibpath_var=no 10432 ;; 10433 10434 *) 10435 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10436 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10437 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10438 else 10439 ld_shlibs=no 10440 fi 10441 ;; 10442 esac 10443 10444 if test no = "$ld_shlibs"; then 10445 runpath_var= 10446 hardcode_libdir_flag_spec= 10447 export_dynamic_flag_spec= 10448 whole_archive_flag_spec= 10449 fi 10450 else 10451 # PORTME fill in a description of your system's linker (not GNU ld) 10452 case $host_os in 10453 aix3*) 10454 allow_undefined_flag=unsupported 10455 always_export_symbols=yes 10456 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' 10457 # Note: this linker hardcodes the directories in LIBPATH if there 10458 # are no directories specified by -L. 10459 hardcode_minus_L=yes 10460 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10461 # Neither direct hardcoding nor static linking is supported with a 10462 # broken collect2. 10463 hardcode_direct=unsupported 10464 fi 10465 ;; 10466 10467 aix[4-9]*) 10468 if test ia64 = "$host_cpu"; then 10469 # On IA64, the linker does run time linking by default, so we don't 10470 # have to do anything special. 10471 aix_use_runtimelinking=no 10472 exp_sym_flag='-Bexport' 10473 no_entry_flag= 10474 else 10475 # If we're using GNU nm, then we don't want the "-C" option. 10476 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10477 # Without the "-l" option, or with the "-B" option, AIX nm treats 10478 # weak defined symbols like other global defined symbols, whereas 10479 # GNU nm marks them as "W". 10480 # While the 'weak' keyword is ignored in the Export File, we need 10481 # it in the Import File for the 'aix-soname' feature, so we have 10482 # to replace the "-B" option with "-P" for AIX nm. 10483 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10484 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' 10485 else 10486 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' 10487 fi 10488 aix_use_runtimelinking=no 10489 10490 # Test if we are trying to use run time linking or normal 10491 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10492 # have runtime linking enabled, and use it for executables. 10493 # For shared libraries, we enable/disable runtime linking 10494 # depending on the kind of the shared library created - 10495 # when "with_aix_soname,aix_use_runtimelinking" is: 10496 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10497 # "aix,yes" lib.so shared, rtl:yes, for executables 10498 # lib.a static archive 10499 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10500 # lib.a(lib.so.V) shared, rtl:no, for executables 10501 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10502 # lib.a(lib.so.V) shared, rtl:no 10503 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10504 # lib.a static archive 10505 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10506 for ld_flag in $LDFLAGS; do 10507 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10508 aix_use_runtimelinking=yes 10509 break 10510 fi 10511 done 10512 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10513 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10514 # so we don't have lib.a shared libs to link our executables. 10515 # We have to force runtime linking in this case. 10516 aix_use_runtimelinking=yes 10517 LDFLAGS="$LDFLAGS -Wl,-brtl" 10518 fi 10519 ;; 10520 esac 10521 10522 exp_sym_flag='-bexport' 10523 no_entry_flag='-bnoentry' 10524 fi 10525 10526 # When large executables or shared objects are built, AIX ld can 10527 # have problems creating the table of contents. If linking a library 10528 # or program results in "error TOC overflow" add -mminimal-toc to 10529 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10530 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10531 10532 archive_cmds='' 10533 hardcode_direct=yes 10534 hardcode_direct_absolute=yes 10535 hardcode_libdir_separator=':' 10536 link_all_deplibs=yes 10537 file_list_spec='$wl-f,' 10538 case $with_aix_soname,$aix_use_runtimelinking in 10539 aix,*) ;; # traditional, no import file 10540 svr4,* | *,yes) # use import file 10541 # The Import File defines what to hardcode. 10542 hardcode_direct=no 10543 hardcode_direct_absolute=no 10544 ;; 10545 esac 10546 10547 if test yes = "$GCC"; then 10548 case $host_os in aix4.[012]|aix4.[012].*) 10549 # We only want to do this on AIX 4.2 and lower, the check 10550 # below for broken collect2 doesn't work under 4.3+ 10551 collect2name=`$CC -print-prog-name=collect2` 10552 if test -f "$collect2name" && 10553 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10554 then 10555 # We have reworked collect2 10556 : 10557 else 10558 # We have old collect2 10559 hardcode_direct=unsupported 10560 # It fails to find uninstalled libraries when the uninstalled 10561 # path is not listed in the libpath. Setting hardcode_minus_L 10562 # to unsupported forces relinking 10563 hardcode_minus_L=yes 10564 hardcode_libdir_flag_spec='-L$libdir' 10565 hardcode_libdir_separator= 10566 fi 10567 ;; 10568 esac 10569 shared_flag='-shared' 10570 if test yes = "$aix_use_runtimelinking"; then 10571 shared_flag="$shared_flag "'$wl-G' 10572 fi 10573 # Need to ensure runtime linking is disabled for the traditional 10574 # shared library, or the linker may eventually find shared libraries 10575 # /with/ Import File - we do not want to mix them. 10576 shared_flag_aix='-shared' 10577 shared_flag_svr4='-shared $wl-G' 10578 else 10579 # not using gcc 10580 if test ia64 = "$host_cpu"; then 10581 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10582 # chokes on -Wl,-G. The following line is correct: 10583 shared_flag='-G' 10584 else 10585 if test yes = "$aix_use_runtimelinking"; then 10586 shared_flag='$wl-G' 10587 else 10588 shared_flag='$wl-bM:SRE' 10589 fi 10590 shared_flag_aix='$wl-bM:SRE' 10591 shared_flag_svr4='$wl-G' 10592 fi 10593 fi 10594 10595 export_dynamic_flag_spec='$wl-bexpall' 10596 # It seems that -bexpall does not export symbols beginning with 10597 # underscore (_), so it is better to generate a list of symbols to export. 10598 always_export_symbols=yes 10599 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10600 # Warning - without using the other runtime loading flags (-brtl), 10601 # -berok will link without error, but may produce a broken library. 10602 allow_undefined_flag='-berok' 10603 # Determine the default libpath from the value encoded in an 10604 # empty executable. 10605 if test set = "${lt_cv_aix_libpath+set}"; then 10606 aix_libpath=$lt_cv_aix_libpath 10607else 10608 if ${lt_cv_aix_libpath_+:} false; then : 10609 $as_echo_n "(cached) " >&6 10610else 10611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10612/* end confdefs.h. */ 10613 10614int 10615main () 10616{ 10617 10618 ; 10619 return 0; 10620} 10621_ACEOF 10622if ac_fn_c_try_link "$LINENO"; then : 10623 10624 lt_aix_libpath_sed=' 10625 /Import File Strings/,/^$/ { 10626 /^0/ { 10627 s/^0 *\([^ ]*\) *$/\1/ 10628 p 10629 } 10630 }' 10631 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10632 # Check for a 64-bit object if we didn't find anything. 10633 if test -z "$lt_cv_aix_libpath_"; then 10634 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10635 fi 10636fi 10637rm -f core conftest.err conftest.$ac_objext \ 10638 conftest$ac_exeext conftest.$ac_ext 10639 if test -z "$lt_cv_aix_libpath_"; then 10640 lt_cv_aix_libpath_=/usr/lib:/lib 10641 fi 10642 10643fi 10644 10645 aix_libpath=$lt_cv_aix_libpath_ 10646fi 10647 10648 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10649 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 10650 else 10651 if test ia64 = "$host_cpu"; then 10652 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10653 allow_undefined_flag="-z nodefs" 10654 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" 10655 else 10656 # Determine the default libpath from the value encoded in an 10657 # empty executable. 10658 if test set = "${lt_cv_aix_libpath+set}"; then 10659 aix_libpath=$lt_cv_aix_libpath 10660else 10661 if ${lt_cv_aix_libpath_+:} false; then : 10662 $as_echo_n "(cached) " >&6 10663else 10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10665/* end confdefs.h. */ 10666 10667int 10668main () 10669{ 10670 10671 ; 10672 return 0; 10673} 10674_ACEOF 10675if ac_fn_c_try_link "$LINENO"; then : 10676 10677 lt_aix_libpath_sed=' 10678 /Import File Strings/,/^$/ { 10679 /^0/ { 10680 s/^0 *\([^ ]*\) *$/\1/ 10681 p 10682 } 10683 }' 10684 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10685 # Check for a 64-bit object if we didn't find anything. 10686 if test -z "$lt_cv_aix_libpath_"; then 10687 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10688 fi 10689fi 10690rm -f core conftest.err conftest.$ac_objext \ 10691 conftest$ac_exeext conftest.$ac_ext 10692 if test -z "$lt_cv_aix_libpath_"; then 10693 lt_cv_aix_libpath_=/usr/lib:/lib 10694 fi 10695 10696fi 10697 10698 aix_libpath=$lt_cv_aix_libpath_ 10699fi 10700 10701 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10702 # Warning - without using the other run time loading flags, 10703 # -berok will link without error, but may produce a broken library. 10704 no_undefined_flag=' $wl-bernotok' 10705 allow_undefined_flag=' $wl-berok' 10706 if test yes = "$with_gnu_ld"; then 10707 # We only use this code for GNU lds that support --whole-archive. 10708 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10709 else 10710 # Exported symbols can be pulled into shared objects from archives 10711 whole_archive_flag_spec='$convenience' 10712 fi 10713 archive_cmds_need_lc=yes 10714 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10715 # -brtl affects multiple linker settings, -berok does not and is overridden later 10716 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10717 if test svr4 != "$with_aix_soname"; then 10718 # This is similar to how AIX traditionally builds its shared libraries. 10719 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' 10720 fi 10721 if test aix != "$with_aix_soname"; then 10722 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' 10723 else 10724 # used by -dlpreopen to get the symbols 10725 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10726 fi 10727 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10728 fi 10729 fi 10730 ;; 10731 10732 amigaos*) 10733 case $host_cpu in 10734 powerpc) 10735 # see comment about AmigaOS4 .so support 10736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10737 archive_expsym_cmds='' 10738 ;; 10739 m68k) 10740 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)' 10741 hardcode_libdir_flag_spec='-L$libdir' 10742 hardcode_minus_L=yes 10743 ;; 10744 esac 10745 ;; 10746 10747 bsdi[45]*) 10748 export_dynamic_flag_spec=-rdynamic 10749 ;; 10750 10751 cygwin* | mingw* | pw32* | cegcc*) 10752 # When not using gcc, we currently assume that we are using 10753 # Microsoft Visual C++. 10754 # hardcode_libdir_flag_spec is actually meaningless, as there is 10755 # no search path for DLLs. 10756 case $cc_basename in 10757 cl*) 10758 # Native MSVC 10759 hardcode_libdir_flag_spec=' ' 10760 allow_undefined_flag=unsupported 10761 always_export_symbols=yes 10762 file_list_spec='@' 10763 # Tell ltmain to make .lib files, not .a files. 10764 libext=lib 10765 # Tell ltmain to make .dll files, not .so files. 10766 shrext_cmds=.dll 10767 # FIXME: Setting linknames here is a bad hack. 10768 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10769 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10770 cp "$export_symbols" "$output_objdir/$soname.def"; 10771 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10772 else 10773 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10774 fi~ 10775 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10776 linknames=' 10777 # The linker will not automatically build a static lib if we build a DLL. 10778 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10779 enable_shared_with_static_runtimes=yes 10780 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10781 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10782 # Don't use ranlib 10783 old_postinstall_cmds='chmod 644 $oldlib' 10784 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10785 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10786 case $lt_outputfile in 10787 *.exe|*.EXE) ;; 10788 *) 10789 lt_outputfile=$lt_outputfile.exe 10790 lt_tool_outputfile=$lt_tool_outputfile.exe 10791 ;; 10792 esac~ 10793 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10794 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10795 $RM "$lt_outputfile.manifest"; 10796 fi' 10797 ;; 10798 *) 10799 # Assume MSVC wrapper 10800 hardcode_libdir_flag_spec=' ' 10801 allow_undefined_flag=unsupported 10802 # Tell ltmain to make .lib files, not .a files. 10803 libext=lib 10804 # Tell ltmain to make .dll files, not .so files. 10805 shrext_cmds=.dll 10806 # FIXME: Setting linknames here is a bad hack. 10807 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10808 # The linker will automatically build a .lib file if we build a DLL. 10809 old_archive_from_new_cmds='true' 10810 # FIXME: Should let the user specify the lib program. 10811 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10812 enable_shared_with_static_runtimes=yes 10813 ;; 10814 esac 10815 ;; 10816 10817 darwin* | rhapsody*) 10818 10819 10820 archive_cmds_need_lc=no 10821 hardcode_direct=no 10822 hardcode_automatic=yes 10823 hardcode_shlibpath_var=unsupported 10824 if test yes = "$lt_cv_ld_force_load"; then 10825 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\"`' 10826 10827 else 10828 whole_archive_flag_spec='' 10829 fi 10830 link_all_deplibs=yes 10831 allow_undefined_flag=$_lt_dar_allow_undefined 10832 case $cc_basename in 10833 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10834 *) _lt_dar_can_shared=$GCC ;; 10835 esac 10836 if test yes = "$_lt_dar_can_shared"; then 10837 output_verbose_link_cmd=func_echo_all 10838 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10839 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10840 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" 10841 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" 10842 10843 else 10844 ld_shlibs=no 10845 fi 10846 10847 ;; 10848 10849 dgux*) 10850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10851 hardcode_libdir_flag_spec='-L$libdir' 10852 hardcode_shlibpath_var=no 10853 ;; 10854 10855 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10856 # support. Future versions do this automatically, but an explicit c++rt0.o 10857 # does not break anything, and helps significantly (at the cost of a little 10858 # extra space). 10859 freebsd2.2*) 10860 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10861 hardcode_libdir_flag_spec='-R$libdir' 10862 hardcode_direct=yes 10863 hardcode_shlibpath_var=no 10864 ;; 10865 10866 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10867 freebsd2.*) 10868 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10869 hardcode_direct=yes 10870 hardcode_minus_L=yes 10871 hardcode_shlibpath_var=no 10872 ;; 10873 10874 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10875 freebsd* | dragonfly*) 10876 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10877 hardcode_libdir_flag_spec='-R$libdir' 10878 hardcode_direct=yes 10879 hardcode_shlibpath_var=no 10880 ;; 10881 10882 hpux9*) 10883 if test yes = "$GCC"; then 10884 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' 10885 else 10886 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' 10887 fi 10888 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10889 hardcode_libdir_separator=: 10890 hardcode_direct=yes 10891 10892 # hardcode_minus_L: Not really in the search PATH, 10893 # but as the default location of the library. 10894 hardcode_minus_L=yes 10895 export_dynamic_flag_spec='$wl-E' 10896 ;; 10897 10898 hpux10*) 10899 if test yes,no = "$GCC,$with_gnu_ld"; then 10900 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10901 else 10902 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10903 fi 10904 if test no = "$with_gnu_ld"; then 10905 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10906 hardcode_libdir_separator=: 10907 hardcode_direct=yes 10908 hardcode_direct_absolute=yes 10909 export_dynamic_flag_spec='$wl-E' 10910 # hardcode_minus_L: Not really in the search PATH, 10911 # but as the default location of the library. 10912 hardcode_minus_L=yes 10913 fi 10914 ;; 10915 10916 hpux11*) 10917 if test yes,no = "$GCC,$with_gnu_ld"; then 10918 case $host_cpu in 10919 hppa*64*) 10920 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10921 ;; 10922 ia64*) 10923 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10924 ;; 10925 *) 10926 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10927 ;; 10928 esac 10929 else 10930 case $host_cpu in 10931 hppa*64*) 10932 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10933 ;; 10934 ia64*) 10935 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10936 ;; 10937 *) 10938 10939 # Older versions of the 11.00 compiler do not understand -b yet 10940 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10942$as_echo_n "checking if $CC understands -b... " >&6; } 10943if ${lt_cv_prog_compiler__b+:} false; then : 10944 $as_echo_n "(cached) " >&6 10945else 10946 lt_cv_prog_compiler__b=no 10947 save_LDFLAGS=$LDFLAGS 10948 LDFLAGS="$LDFLAGS -b" 10949 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10950 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10951 # The linker can only warn and ignore the option if not recognized 10952 # So say no if there are warnings 10953 if test -s conftest.err; then 10954 # Append any errors to the config.log. 10955 cat conftest.err 1>&5 10956 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10958 if diff conftest.exp conftest.er2 >/dev/null; then 10959 lt_cv_prog_compiler__b=yes 10960 fi 10961 else 10962 lt_cv_prog_compiler__b=yes 10963 fi 10964 fi 10965 $RM -r conftest* 10966 LDFLAGS=$save_LDFLAGS 10967 10968fi 10969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10970$as_echo "$lt_cv_prog_compiler__b" >&6; } 10971 10972if test yes = "$lt_cv_prog_compiler__b"; then 10973 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10974else 10975 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10976fi 10977 10978 ;; 10979 esac 10980 fi 10981 if test no = "$with_gnu_ld"; then 10982 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10983 hardcode_libdir_separator=: 10984 10985 case $host_cpu in 10986 hppa*64*|ia64*) 10987 hardcode_direct=no 10988 hardcode_shlibpath_var=no 10989 ;; 10990 *) 10991 hardcode_direct=yes 10992 hardcode_direct_absolute=yes 10993 export_dynamic_flag_spec='$wl-E' 10994 10995 # hardcode_minus_L: Not really in the search PATH, 10996 # but as the default location of the library. 10997 hardcode_minus_L=yes 10998 ;; 10999 esac 11000 fi 11001 ;; 11002 11003 irix5* | irix6* | nonstopux*) 11004 if test yes = "$GCC"; then 11005 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' 11006 # Try to use the -exported_symbol ld option, if it does not 11007 # work, assume that -exports_file does not work either and 11008 # implicitly export all symbols. 11009 # This should be the same for all languages, so no per-tag cache variable. 11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11011$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11012if ${lt_cv_irix_exported_symbol+:} false; then : 11013 $as_echo_n "(cached) " >&6 11014else 11015 save_LDFLAGS=$LDFLAGS 11016 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11018/* end confdefs.h. */ 11019int foo (void) { return 0; } 11020_ACEOF 11021if ac_fn_c_try_link "$LINENO"; then : 11022 lt_cv_irix_exported_symbol=yes 11023else 11024 lt_cv_irix_exported_symbol=no 11025fi 11026rm -f core conftest.err conftest.$ac_objext \ 11027 conftest$ac_exeext conftest.$ac_ext 11028 LDFLAGS=$save_LDFLAGS 11029fi 11030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11031$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11032 if test yes = "$lt_cv_irix_exported_symbol"; then 11033 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' 11034 fi 11035 else 11036 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' 11037 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' 11038 fi 11039 archive_cmds_need_lc='no' 11040 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11041 hardcode_libdir_separator=: 11042 inherit_rpath=yes 11043 link_all_deplibs=yes 11044 ;; 11045 11046 linux*) 11047 case $cc_basename in 11048 tcc*) 11049 # Fabrice Bellard et al's Tiny C Compiler 11050 ld_shlibs=yes 11051 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11052 ;; 11053 esac 11054 ;; 11055 11056 netbsd*) 11057 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11058 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11059 else 11060 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11061 fi 11062 hardcode_libdir_flag_spec='-R$libdir' 11063 hardcode_direct=yes 11064 hardcode_shlibpath_var=no 11065 ;; 11066 11067 newsos6) 11068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11069 hardcode_direct=yes 11070 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11071 hardcode_libdir_separator=: 11072 hardcode_shlibpath_var=no 11073 ;; 11074 11075 *nto* | *qnx*) 11076 ;; 11077 11078 openbsd* | bitrig*) 11079 if test -f /usr/libexec/ld.so; then 11080 hardcode_direct=yes 11081 hardcode_shlibpath_var=no 11082 hardcode_direct_absolute=yes 11083 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11084 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11085 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11086 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11087 export_dynamic_flag_spec='$wl-E' 11088 else 11089 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11090 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11091 fi 11092 else 11093 ld_shlibs=no 11094 fi 11095 ;; 11096 11097 os2*) 11098 hardcode_libdir_flag_spec='-L$libdir' 11099 hardcode_minus_L=yes 11100 allow_undefined_flag=unsupported 11101 shrext_cmds=.dll 11102 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11103 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11104 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11105 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11106 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11107 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11108 emximp -o $lib $output_objdir/$libname.def' 11109 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11110 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11111 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11112 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11113 prefix_cmds="$SED"~ 11114 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11115 prefix_cmds="$prefix_cmds -e 1d"; 11116 fi~ 11117 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11118 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11119 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11120 emximp -o $lib $output_objdir/$libname.def' 11121 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11122 enable_shared_with_static_runtimes=yes 11123 ;; 11124 11125 osf3*) 11126 if test yes = "$GCC"; then 11127 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11128 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' 11129 else 11130 allow_undefined_flag=' -expect_unresolved \*' 11131 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' 11132 fi 11133 archive_cmds_need_lc='no' 11134 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11135 hardcode_libdir_separator=: 11136 ;; 11137 11138 osf4* | osf5*) # as osf3* with the addition of -msym flag 11139 if test yes = "$GCC"; then 11140 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11141 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' 11142 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11143 else 11144 allow_undefined_flag=' -expect_unresolved \*' 11145 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' 11146 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~ 11147 $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' 11148 11149 # Both c and cxx compiler support -rpath directly 11150 hardcode_libdir_flag_spec='-rpath $libdir' 11151 fi 11152 archive_cmds_need_lc='no' 11153 hardcode_libdir_separator=: 11154 ;; 11155 11156 solaris*) 11157 no_undefined_flag=' -z defs' 11158 if test yes = "$GCC"; then 11159 wlarc='$wl' 11160 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11161 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11162 $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' 11163 else 11164 case `$CC -V 2>&1` in 11165 *"Compilers 5.0"*) 11166 wlarc='' 11167 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11168 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11169 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11170 ;; 11171 *) 11172 wlarc='$wl' 11173 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11174 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11175 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11176 ;; 11177 esac 11178 fi 11179 hardcode_libdir_flag_spec='-R$libdir' 11180 hardcode_shlibpath_var=no 11181 case $host_os in 11182 solaris2.[0-5] | solaris2.[0-5].*) ;; 11183 *) 11184 # The compiler driver will combine and reorder linker options, 11185 # but understands '-z linker_flag'. GCC discards it without '$wl', 11186 # but is careful enough not to reorder. 11187 # Supported since Solaris 2.6 (maybe 2.5.1?) 11188 if test yes = "$GCC"; then 11189 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11190 else 11191 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11192 fi 11193 ;; 11194 esac 11195 link_all_deplibs=yes 11196 ;; 11197 11198 sunos4*) 11199 if test sequent = "$host_vendor"; then 11200 # Use $CC to link under sequent, because it throws in some extra .o 11201 # files that make .init and .fini sections work. 11202 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11203 else 11204 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11205 fi 11206 hardcode_libdir_flag_spec='-L$libdir' 11207 hardcode_direct=yes 11208 hardcode_minus_L=yes 11209 hardcode_shlibpath_var=no 11210 ;; 11211 11212 sysv4) 11213 case $host_vendor in 11214 sni) 11215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11216 hardcode_direct=yes # is this really true??? 11217 ;; 11218 siemens) 11219 ## LD is ld it makes a PLAMLIB 11220 ## CC just makes a GrossModule. 11221 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11222 reload_cmds='$CC -r -o $output$reload_objs' 11223 hardcode_direct=no 11224 ;; 11225 motorola) 11226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11227 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11228 ;; 11229 esac 11230 runpath_var='LD_RUN_PATH' 11231 hardcode_shlibpath_var=no 11232 ;; 11233 11234 sysv4.3*) 11235 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11236 hardcode_shlibpath_var=no 11237 export_dynamic_flag_spec='-Bexport' 11238 ;; 11239 11240 sysv4*MP*) 11241 if test -d /usr/nec; then 11242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11243 hardcode_shlibpath_var=no 11244 runpath_var=LD_RUN_PATH 11245 hardcode_runpath_var=yes 11246 ld_shlibs=yes 11247 fi 11248 ;; 11249 11250 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11251 no_undefined_flag='$wl-z,text' 11252 archive_cmds_need_lc=no 11253 hardcode_shlibpath_var=no 11254 runpath_var='LD_RUN_PATH' 11255 11256 if test yes = "$GCC"; then 11257 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11258 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11259 else 11260 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11261 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11262 fi 11263 ;; 11264 11265 sysv5* | sco3.2v5* | sco5v6*) 11266 # Note: We CANNOT use -z defs as we might desire, because we do not 11267 # link with -lc, and that would cause any symbols used from libc to 11268 # always be unresolved, which means just about no library would 11269 # ever link correctly. If we're not using GNU ld we use -z text 11270 # though, which does catch some bad symbols but isn't as heavy-handed 11271 # as -z defs. 11272 no_undefined_flag='$wl-z,text' 11273 allow_undefined_flag='$wl-z,nodefs' 11274 archive_cmds_need_lc=no 11275 hardcode_shlibpath_var=no 11276 hardcode_libdir_flag_spec='$wl-R,$libdir' 11277 hardcode_libdir_separator=':' 11278 link_all_deplibs=yes 11279 export_dynamic_flag_spec='$wl-Bexport' 11280 runpath_var='LD_RUN_PATH' 11281 11282 if test yes = "$GCC"; then 11283 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11284 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11285 else 11286 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11287 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11288 fi 11289 ;; 11290 11291 uts4*) 11292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11293 hardcode_libdir_flag_spec='-L$libdir' 11294 hardcode_shlibpath_var=no 11295 ;; 11296 11297 *) 11298 ld_shlibs=no 11299 ;; 11300 esac 11301 11302 if test sni = "$host_vendor"; then 11303 case $host in 11304 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11305 export_dynamic_flag_spec='$wl-Blargedynsym' 11306 ;; 11307 esac 11308 fi 11309 fi 11310 11311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11312$as_echo "$ld_shlibs" >&6; } 11313test no = "$ld_shlibs" && can_build_shared=no 11314 11315with_gnu_ld=$with_gnu_ld 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331# 11332# Do we need to explicitly link libc? 11333# 11334case "x$archive_cmds_need_lc" in 11335x|xyes) 11336 # Assume -lc should be added 11337 archive_cmds_need_lc=yes 11338 11339 if test yes,yes = "$GCC,$enable_shared"; then 11340 case $archive_cmds in 11341 *'~'*) 11342 # FIXME: we may have to deal with multi-command sequences. 11343 ;; 11344 '$CC '*) 11345 # Test whether the compiler implicitly links with -lc since on some 11346 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11347 # to ld, don't add -lc before -lgcc. 11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11349$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11350if ${lt_cv_archive_cmds_need_lc+:} false; then : 11351 $as_echo_n "(cached) " >&6 11352else 11353 $RM conftest* 11354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11355 11356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11357 (eval $ac_compile) 2>&5 11358 ac_status=$? 11359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11360 test $ac_status = 0; } 2>conftest.err; then 11361 soname=conftest 11362 lib=conftest 11363 libobjs=conftest.$ac_objext 11364 deplibs= 11365 wl=$lt_prog_compiler_wl 11366 pic_flag=$lt_prog_compiler_pic 11367 compiler_flags=-v 11368 linker_flags=-v 11369 verstring= 11370 output_objdir=. 11371 libname=conftest 11372 lt_save_allow_undefined_flag=$allow_undefined_flag 11373 allow_undefined_flag= 11374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11375 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11376 ac_status=$? 11377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11378 test $ac_status = 0; } 11379 then 11380 lt_cv_archive_cmds_need_lc=no 11381 else 11382 lt_cv_archive_cmds_need_lc=yes 11383 fi 11384 allow_undefined_flag=$lt_save_allow_undefined_flag 11385 else 11386 cat conftest.err 1>&5 11387 fi 11388 $RM conftest* 11389 11390fi 11391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11392$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11393 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11394 ;; 11395 esac 11396 fi 11397 ;; 11398esac 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11552$as_echo_n "checking dynamic linker characteristics... " >&6; } 11553 11554if test yes = "$GCC"; then 11555 case $host_os in 11556 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11557 *) lt_awk_arg='/^libraries:/' ;; 11558 esac 11559 case $host_os in 11560 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11561 *) lt_sed_strip_eq='s|=/|/|g' ;; 11562 esac 11563 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11564 case $lt_search_path_spec in 11565 *\;*) 11566 # if the path contains ";" then we assume it to be the separator 11567 # otherwise default to the standard path separator (i.e. ":") - it is 11568 # assumed that no part of a normal pathname contains ";" but that should 11569 # okay in the real world where ";" in dirpaths is itself problematic. 11570 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11571 ;; 11572 *) 11573 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11574 ;; 11575 esac 11576 # Ok, now we have the path, separated by spaces, we can step through it 11577 # and add multilib dir if necessary... 11578 lt_tmp_lt_search_path_spec= 11579 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11580 # ...but if some path component already ends with the multilib dir we assume 11581 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11582 case "$lt_multi_os_dir; $lt_search_path_spec " in 11583 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11584 lt_multi_os_dir= 11585 ;; 11586 esac 11587 for lt_sys_path in $lt_search_path_spec; do 11588 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11589 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11590 elif test -n "$lt_multi_os_dir"; then 11591 test -d "$lt_sys_path" && \ 11592 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11593 fi 11594 done 11595 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11596BEGIN {RS = " "; FS = "/|\n";} { 11597 lt_foo = ""; 11598 lt_count = 0; 11599 for (lt_i = NF; lt_i > 0; lt_i--) { 11600 if ($lt_i != "" && $lt_i != ".") { 11601 if ($lt_i == "..") { 11602 lt_count++; 11603 } else { 11604 if (lt_count == 0) { 11605 lt_foo = "/" $lt_i lt_foo; 11606 } else { 11607 lt_count--; 11608 } 11609 } 11610 } 11611 } 11612 if (lt_foo != "") { lt_freq[lt_foo]++; } 11613 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11614}'` 11615 # AWK program above erroneously prepends '/' to C:/dos/paths 11616 # for these hosts. 11617 case $host_os in 11618 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11619 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11620 esac 11621 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11622else 11623 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11624fi 11625library_names_spec= 11626libname_spec='lib$name' 11627soname_spec= 11628shrext_cmds=.so 11629postinstall_cmds= 11630postuninstall_cmds= 11631finish_cmds= 11632finish_eval= 11633shlibpath_var= 11634shlibpath_overrides_runpath=unknown 11635version_type=none 11636dynamic_linker="$host_os ld.so" 11637sys_lib_dlsearch_path_spec="/lib /usr/lib" 11638need_lib_prefix=unknown 11639hardcode_into_libs=no 11640 11641# when you set need_version to no, make sure it does not cause -set_version 11642# flags to be left without arguments 11643need_version=unknown 11644 11645 11646 11647case $host_os in 11648aix3*) 11649 version_type=linux # correct to gnu/linux during the next big refactor 11650 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11651 shlibpath_var=LIBPATH 11652 11653 # AIX 3 has no versioning support, so we append a major version to the name. 11654 soname_spec='$libname$release$shared_ext$major' 11655 ;; 11656 11657aix[4-9]*) 11658 version_type=linux # correct to gnu/linux during the next big refactor 11659 need_lib_prefix=no 11660 need_version=no 11661 hardcode_into_libs=yes 11662 if test ia64 = "$host_cpu"; then 11663 # AIX 5 supports IA64 11664 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11665 shlibpath_var=LD_LIBRARY_PATH 11666 else 11667 # With GCC up to 2.95.x, collect2 would create an import file 11668 # for dependence libraries. The import file would start with 11669 # the line '#! .'. This would cause the generated library to 11670 # depend on '.', always an invalid library. This was fixed in 11671 # development snapshots of GCC prior to 3.0. 11672 case $host_os in 11673 aix4 | aix4.[01] | aix4.[01].*) 11674 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11675 echo ' yes ' 11676 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11677 : 11678 else 11679 can_build_shared=no 11680 fi 11681 ;; 11682 esac 11683 # Using Import Files as archive members, it is possible to support 11684 # filename-based versioning of shared library archives on AIX. While 11685 # this would work for both with and without runtime linking, it will 11686 # prevent static linking of such archives. So we do filename-based 11687 # shared library versioning with .so extension only, which is used 11688 # when both runtime linking and shared linking is enabled. 11689 # Unfortunately, runtime linking may impact performance, so we do 11690 # not want this to be the default eventually. Also, we use the 11691 # versioned .so libs for executables only if there is the -brtl 11692 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11693 # To allow for filename-based versioning support, we need to create 11694 # libNAME.so.V as an archive file, containing: 11695 # *) an Import File, referring to the versioned filename of the 11696 # archive as well as the shared archive member, telling the 11697 # bitwidth (32 or 64) of that shared object, and providing the 11698 # list of exported symbols of that shared object, eventually 11699 # decorated with the 'weak' keyword 11700 # *) the shared object with the F_LOADONLY flag set, to really avoid 11701 # it being seen by the linker. 11702 # At run time we better use the real file rather than another symlink, 11703 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11704 11705 case $with_aix_soname,$aix_use_runtimelinking in 11706 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11707 # soname into executable. Probably we can add versioning support to 11708 # collect2, so additional links can be useful in future. 11709 aix,yes) # traditional libtool 11710 dynamic_linker='AIX unversionable lib.so' 11711 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11712 # instead of lib<name>.a to let people know that these are not 11713 # typical AIX shared libraries. 11714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11715 ;; 11716 aix,no) # traditional AIX only 11717 dynamic_linker='AIX lib.a(lib.so.V)' 11718 # We preserve .a as extension for shared libraries through AIX4.2 11719 # and later when we are not doing run time linking. 11720 library_names_spec='$libname$release.a $libname.a' 11721 soname_spec='$libname$release$shared_ext$major' 11722 ;; 11723 svr4,*) # full svr4 only 11724 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11725 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11726 # We do not specify a path in Import Files, so LIBPATH fires. 11727 shlibpath_overrides_runpath=yes 11728 ;; 11729 *,yes) # both, prefer svr4 11730 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11731 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11732 # unpreferred sharedlib libNAME.a needs extra handling 11733 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"' 11734 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"' 11735 # We do not specify a path in Import Files, so LIBPATH fires. 11736 shlibpath_overrides_runpath=yes 11737 ;; 11738 *,no) # both, prefer aix 11739 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11740 library_names_spec='$libname$release.a $libname.a' 11741 soname_spec='$libname$release$shared_ext$major' 11742 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11743 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)' 11744 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"' 11745 ;; 11746 esac 11747 shlibpath_var=LIBPATH 11748 fi 11749 ;; 11750 11751amigaos*) 11752 case $host_cpu in 11753 powerpc) 11754 # Since July 2007 AmigaOS4 officially supports .so libraries. 11755 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11757 ;; 11758 m68k) 11759 library_names_spec='$libname.ixlibrary $libname.a' 11760 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11761 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' 11762 ;; 11763 esac 11764 ;; 11765 11766beos*) 11767 library_names_spec='$libname$shared_ext' 11768 dynamic_linker="$host_os ld.so" 11769 shlibpath_var=LIBRARY_PATH 11770 ;; 11771 11772bsdi[45]*) 11773 version_type=linux # correct to gnu/linux during the next big refactor 11774 need_version=no 11775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11776 soname_spec='$libname$release$shared_ext$major' 11777 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11778 shlibpath_var=LD_LIBRARY_PATH 11779 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11780 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11781 # the default ld.so.conf also contains /usr/contrib/lib and 11782 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11783 # libtool to hard-code these into programs 11784 ;; 11785 11786cygwin* | mingw* | pw32* | cegcc*) 11787 version_type=windows 11788 shrext_cmds=.dll 11789 need_version=no 11790 need_lib_prefix=no 11791 11792 case $GCC,$cc_basename in 11793 yes,*) 11794 # gcc 11795 library_names_spec='$libname.dll.a' 11796 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11797 postinstall_cmds='base_file=`basename \$file`~ 11798 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11799 dldir=$destdir/`dirname \$dlpath`~ 11800 test -d \$dldir || mkdir -p \$dldir~ 11801 $install_prog $dir/$dlname \$dldir/$dlname~ 11802 chmod a+x \$dldir/$dlname~ 11803 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11804 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11805 fi' 11806 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11807 dlpath=$dir/\$dldll~ 11808 $RM \$dlpath' 11809 shlibpath_overrides_runpath=yes 11810 11811 case $host_os in 11812 cygwin*) 11813 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11814 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11815 11816 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11817 ;; 11818 mingw* | cegcc*) 11819 # MinGW DLLs use traditional 'lib' prefix 11820 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11821 ;; 11822 pw32*) 11823 # pw32 DLLs use 'pw' prefix rather than 'lib' 11824 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11825 ;; 11826 esac 11827 dynamic_linker='Win32 ld.exe' 11828 ;; 11829 11830 *,cl*) 11831 # Native MSVC 11832 libname_spec='$name' 11833 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11834 library_names_spec='$libname.dll.lib' 11835 11836 case $build_os in 11837 mingw*) 11838 sys_lib_search_path_spec= 11839 lt_save_ifs=$IFS 11840 IFS=';' 11841 for lt_path in $LIB 11842 do 11843 IFS=$lt_save_ifs 11844 # Let DOS variable expansion print the short 8.3 style file name. 11845 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11846 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11847 done 11848 IFS=$lt_save_ifs 11849 # Convert to MSYS style. 11850 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11851 ;; 11852 cygwin*) 11853 # Convert to unix form, then to dos form, then back to unix form 11854 # but this time dos style (no spaces!) so that the unix form looks 11855 # like /cygdrive/c/PROGRA~1:/cygdr... 11856 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11857 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11858 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11859 ;; 11860 *) 11861 sys_lib_search_path_spec=$LIB 11862 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11863 # It is most probably a Windows format PATH. 11864 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11865 else 11866 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11867 fi 11868 # FIXME: find the short name or the path components, as spaces are 11869 # common. (e.g. "Program Files" -> "PROGRA~1") 11870 ;; 11871 esac 11872 11873 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11874 postinstall_cmds='base_file=`basename \$file`~ 11875 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11876 dldir=$destdir/`dirname \$dlpath`~ 11877 test -d \$dldir || mkdir -p \$dldir~ 11878 $install_prog $dir/$dlname \$dldir/$dlname' 11879 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11880 dlpath=$dir/\$dldll~ 11881 $RM \$dlpath' 11882 shlibpath_overrides_runpath=yes 11883 dynamic_linker='Win32 link.exe' 11884 ;; 11885 11886 *) 11887 # Assume MSVC wrapper 11888 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11889 dynamic_linker='Win32 ld.exe' 11890 ;; 11891 esac 11892 # FIXME: first we should search . and the directory the executable is in 11893 shlibpath_var=PATH 11894 ;; 11895 11896darwin* | rhapsody*) 11897 dynamic_linker="$host_os dyld" 11898 version_type=darwin 11899 need_lib_prefix=no 11900 need_version=no 11901 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11902 soname_spec='$libname$release$major$shared_ext' 11903 shlibpath_overrides_runpath=yes 11904 shlibpath_var=DYLD_LIBRARY_PATH 11905 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11906 11907 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11908 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11909 ;; 11910 11911dgux*) 11912 version_type=linux # correct to gnu/linux during the next big refactor 11913 need_lib_prefix=no 11914 need_version=no 11915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11916 soname_spec='$libname$release$shared_ext$major' 11917 shlibpath_var=LD_LIBRARY_PATH 11918 ;; 11919 11920freebsd* | dragonfly*) 11921 # DragonFly does not have aout. When/if they implement a new 11922 # versioning mechanism, adjust this. 11923 if test -x /usr/bin/objformat; then 11924 objformat=`/usr/bin/objformat` 11925 else 11926 case $host_os in 11927 freebsd[23].*) objformat=aout ;; 11928 *) objformat=elf ;; 11929 esac 11930 fi 11931 version_type=freebsd-$objformat 11932 case $version_type in 11933 freebsd-elf*) 11934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11935 soname_spec='$libname$release$shared_ext$major' 11936 need_version=no 11937 need_lib_prefix=no 11938 ;; 11939 freebsd-*) 11940 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11941 need_version=yes 11942 ;; 11943 esac 11944 shlibpath_var=LD_LIBRARY_PATH 11945 case $host_os in 11946 freebsd2.*) 11947 shlibpath_overrides_runpath=yes 11948 ;; 11949 freebsd3.[01]* | freebsdelf3.[01]*) 11950 shlibpath_overrides_runpath=yes 11951 hardcode_into_libs=yes 11952 ;; 11953 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11954 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11955 shlibpath_overrides_runpath=no 11956 hardcode_into_libs=yes 11957 ;; 11958 *) # from 4.6 on, and DragonFly 11959 shlibpath_overrides_runpath=yes 11960 hardcode_into_libs=yes 11961 ;; 11962 esac 11963 ;; 11964 11965haiku*) 11966 version_type=linux # correct to gnu/linux during the next big refactor 11967 need_lib_prefix=no 11968 need_version=no 11969 dynamic_linker="$host_os runtime_loader" 11970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11971 soname_spec='$libname$release$shared_ext$major' 11972 shlibpath_var=LIBRARY_PATH 11973 shlibpath_overrides_runpath=no 11974 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11975 hardcode_into_libs=yes 11976 ;; 11977 11978hpux9* | hpux10* | hpux11*) 11979 # Give a soname corresponding to the major version so that dld.sl refuses to 11980 # link against other versions. 11981 version_type=sunos 11982 need_lib_prefix=no 11983 need_version=no 11984 case $host_cpu in 11985 ia64*) 11986 shrext_cmds='.so' 11987 hardcode_into_libs=yes 11988 dynamic_linker="$host_os dld.so" 11989 shlibpath_var=LD_LIBRARY_PATH 11990 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11991 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11992 soname_spec='$libname$release$shared_ext$major' 11993 if test 32 = "$HPUX_IA64_MODE"; then 11994 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11995 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11996 else 11997 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11998 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11999 fi 12000 ;; 12001 hppa*64*) 12002 shrext_cmds='.sl' 12003 hardcode_into_libs=yes 12004 dynamic_linker="$host_os dld.sl" 12005 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12008 soname_spec='$libname$release$shared_ext$major' 12009 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12011 ;; 12012 *) 12013 shrext_cmds='.sl' 12014 dynamic_linker="$host_os dld.sl" 12015 shlibpath_var=SHLIB_PATH 12016 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12018 soname_spec='$libname$release$shared_ext$major' 12019 ;; 12020 esac 12021 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12022 postinstall_cmds='chmod 555 $lib' 12023 # or fails outright, so override atomically: 12024 install_override_mode=555 12025 ;; 12026 12027interix[3-9]*) 12028 version_type=linux # correct to gnu/linux during the next big refactor 12029 need_lib_prefix=no 12030 need_version=no 12031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12032 soname_spec='$libname$release$shared_ext$major' 12033 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12034 shlibpath_var=LD_LIBRARY_PATH 12035 shlibpath_overrides_runpath=no 12036 hardcode_into_libs=yes 12037 ;; 12038 12039irix5* | irix6* | nonstopux*) 12040 case $host_os in 12041 nonstopux*) version_type=nonstopux ;; 12042 *) 12043 if test yes = "$lt_cv_prog_gnu_ld"; then 12044 version_type=linux # correct to gnu/linux during the next big refactor 12045 else 12046 version_type=irix 12047 fi ;; 12048 esac 12049 need_lib_prefix=no 12050 need_version=no 12051 soname_spec='$libname$release$shared_ext$major' 12052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12053 case $host_os in 12054 irix5* | nonstopux*) 12055 libsuff= shlibsuff= 12056 ;; 12057 *) 12058 case $LD in # libtool.m4 will add one of these switches to LD 12059 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12060 libsuff= shlibsuff= libmagic=32-bit;; 12061 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12062 libsuff=32 shlibsuff=N32 libmagic=N32;; 12063 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12064 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12065 *) libsuff= shlibsuff= libmagic=never-match;; 12066 esac 12067 ;; 12068 esac 12069 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12070 shlibpath_overrides_runpath=no 12071 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12072 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12073 hardcode_into_libs=yes 12074 ;; 12075 12076# No shared lib support for Linux oldld, aout, or coff. 12077linux*oldld* | linux*aout* | linux*coff*) 12078 dynamic_linker=no 12079 ;; 12080 12081linux*android*) 12082 version_type=none # Android doesn't support versioned libraries. 12083 need_lib_prefix=no 12084 need_version=no 12085 library_names_spec='$libname$release$shared_ext' 12086 soname_spec='$libname$release$shared_ext' 12087 finish_cmds= 12088 shlibpath_var=LD_LIBRARY_PATH 12089 shlibpath_overrides_runpath=yes 12090 12091 # This implies no fast_install, which is unacceptable. 12092 # Some rework will be needed to allow for fast_install 12093 # before this can be enabled. 12094 hardcode_into_libs=yes 12095 12096 dynamic_linker='Android linker' 12097 # Don't embed -rpath directories since the linker doesn't support them. 12098 hardcode_libdir_flag_spec='-L$libdir' 12099 ;; 12100 12101# This must be glibc/ELF. 12102linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12103 version_type=linux # correct to gnu/linux during the next big refactor 12104 need_lib_prefix=no 12105 need_version=no 12106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12107 soname_spec='$libname$release$shared_ext$major' 12108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12109 shlibpath_var=LD_LIBRARY_PATH 12110 shlibpath_overrides_runpath=no 12111 12112 # Some binutils ld are patched to set DT_RUNPATH 12113 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12114 $as_echo_n "(cached) " >&6 12115else 12116 lt_cv_shlibpath_overrides_runpath=no 12117 save_LDFLAGS=$LDFLAGS 12118 save_libdir=$libdir 12119 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12120 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12122/* end confdefs.h. */ 12123 12124int 12125main () 12126{ 12127 12128 ; 12129 return 0; 12130} 12131_ACEOF 12132if ac_fn_c_try_link "$LINENO"; then : 12133 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12134 lt_cv_shlibpath_overrides_runpath=yes 12135fi 12136fi 12137rm -f core conftest.err conftest.$ac_objext \ 12138 conftest$ac_exeext conftest.$ac_ext 12139 LDFLAGS=$save_LDFLAGS 12140 libdir=$save_libdir 12141 12142fi 12143 12144 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12145 12146 # This implies no fast_install, which is unacceptable. 12147 # Some rework will be needed to allow for fast_install 12148 # before this can be enabled. 12149 hardcode_into_libs=yes 12150 12151 # Ideally, we could use ldconfig to report *all* directores which are 12152 # searched for libraries, however this is still not possible. Aside from not 12153 # being certain /sbin/ldconfig is available, command 12154 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12155 # even though it is searched at run-time. Try to do the best guess by 12156 # appending ld.so.conf contents (and includes) to the search path. 12157 if test -f /etc/ld.so.conf; then 12158 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' ' '` 12159 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12160 fi 12161 12162 # We used to test for /lib/ld.so.1 and disable shared libraries on 12163 # powerpc, because MkLinux only supported shared libraries with the 12164 # GNU dynamic linker. Since this was broken with cross compilers, 12165 # most powerpc-linux boxes support dynamic linking these days and 12166 # people can always --disable-shared, the test was removed, and we 12167 # assume the GNU/Linux dynamic linker is in use. 12168 dynamic_linker='GNU/Linux ld.so' 12169 ;; 12170 12171netbsd*) 12172 version_type=sunos 12173 need_lib_prefix=no 12174 need_version=no 12175 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12176 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12177 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12178 dynamic_linker='NetBSD (a.out) ld.so' 12179 else 12180 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12181 soname_spec='$libname$release$shared_ext$major' 12182 dynamic_linker='NetBSD ld.elf_so' 12183 fi 12184 shlibpath_var=LD_LIBRARY_PATH 12185 shlibpath_overrides_runpath=yes 12186 hardcode_into_libs=yes 12187 ;; 12188 12189newsos6) 12190 version_type=linux # correct to gnu/linux during the next big refactor 12191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12192 shlibpath_var=LD_LIBRARY_PATH 12193 shlibpath_overrides_runpath=yes 12194 ;; 12195 12196*nto* | *qnx*) 12197 version_type=qnx 12198 need_lib_prefix=no 12199 need_version=no 12200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12201 soname_spec='$libname$release$shared_ext$major' 12202 shlibpath_var=LD_LIBRARY_PATH 12203 shlibpath_overrides_runpath=no 12204 hardcode_into_libs=yes 12205 dynamic_linker='ldqnx.so' 12206 ;; 12207 12208openbsd* | bitrig*) 12209 version_type=sunos 12210 sys_lib_dlsearch_path_spec=/usr/lib 12211 need_lib_prefix=no 12212 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12213 need_version=no 12214 else 12215 need_version=yes 12216 fi 12217 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12219 shlibpath_var=LD_LIBRARY_PATH 12220 shlibpath_overrides_runpath=yes 12221 ;; 12222 12223os2*) 12224 libname_spec='$name' 12225 version_type=windows 12226 shrext_cmds=.dll 12227 need_version=no 12228 need_lib_prefix=no 12229 # OS/2 can only load a DLL with a base name of 8 characters or less. 12230 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12231 v=$($ECHO $release$versuffix | tr -d .-); 12232 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12233 $ECHO $n$v`$shared_ext' 12234 library_names_spec='${libname}_dll.$libext' 12235 dynamic_linker='OS/2 ld.exe' 12236 shlibpath_var=BEGINLIBPATH 12237 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12239 postinstall_cmds='base_file=`basename \$file`~ 12240 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12241 dldir=$destdir/`dirname \$dlpath`~ 12242 test -d \$dldir || mkdir -p \$dldir~ 12243 $install_prog $dir/$dlname \$dldir/$dlname~ 12244 chmod a+x \$dldir/$dlname~ 12245 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12246 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12247 fi' 12248 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12249 dlpath=$dir/\$dldll~ 12250 $RM \$dlpath' 12251 ;; 12252 12253osf3* | osf4* | osf5*) 12254 version_type=osf 12255 need_lib_prefix=no 12256 need_version=no 12257 soname_spec='$libname$release$shared_ext$major' 12258 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12259 shlibpath_var=LD_LIBRARY_PATH 12260 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12261 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12262 ;; 12263 12264rdos*) 12265 dynamic_linker=no 12266 ;; 12267 12268solaris*) 12269 version_type=linux # correct to gnu/linux during the next big refactor 12270 need_lib_prefix=no 12271 need_version=no 12272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12273 soname_spec='$libname$release$shared_ext$major' 12274 shlibpath_var=LD_LIBRARY_PATH 12275 shlibpath_overrides_runpath=yes 12276 hardcode_into_libs=yes 12277 # ldd complains unless libraries are executable 12278 postinstall_cmds='chmod +x $lib' 12279 ;; 12280 12281sunos4*) 12282 version_type=sunos 12283 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12284 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12285 shlibpath_var=LD_LIBRARY_PATH 12286 shlibpath_overrides_runpath=yes 12287 if test yes = "$with_gnu_ld"; then 12288 need_lib_prefix=no 12289 fi 12290 need_version=yes 12291 ;; 12292 12293sysv4 | sysv4.3*) 12294 version_type=linux # correct to gnu/linux during the next big refactor 12295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12296 soname_spec='$libname$release$shared_ext$major' 12297 shlibpath_var=LD_LIBRARY_PATH 12298 case $host_vendor in 12299 sni) 12300 shlibpath_overrides_runpath=no 12301 need_lib_prefix=no 12302 runpath_var=LD_RUN_PATH 12303 ;; 12304 siemens) 12305 need_lib_prefix=no 12306 ;; 12307 motorola) 12308 need_lib_prefix=no 12309 need_version=no 12310 shlibpath_overrides_runpath=no 12311 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12312 ;; 12313 esac 12314 ;; 12315 12316sysv4*MP*) 12317 if test -d /usr/nec; then 12318 version_type=linux # correct to gnu/linux during the next big refactor 12319 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12320 soname_spec='$libname$shared_ext.$major' 12321 shlibpath_var=LD_LIBRARY_PATH 12322 fi 12323 ;; 12324 12325sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12326 version_type=sco 12327 need_lib_prefix=no 12328 need_version=no 12329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12330 soname_spec='$libname$release$shared_ext$major' 12331 shlibpath_var=LD_LIBRARY_PATH 12332 shlibpath_overrides_runpath=yes 12333 hardcode_into_libs=yes 12334 if test yes = "$with_gnu_ld"; then 12335 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12336 else 12337 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12338 case $host_os in 12339 sco3.2v5*) 12340 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12341 ;; 12342 esac 12343 fi 12344 sys_lib_dlsearch_path_spec='/usr/lib' 12345 ;; 12346 12347tpf*) 12348 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12349 version_type=linux # correct to gnu/linux during the next big refactor 12350 need_lib_prefix=no 12351 need_version=no 12352 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12353 shlibpath_var=LD_LIBRARY_PATH 12354 shlibpath_overrides_runpath=no 12355 hardcode_into_libs=yes 12356 ;; 12357 12358uts4*) 12359 version_type=linux # correct to gnu/linux during the next big refactor 12360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12361 soname_spec='$libname$release$shared_ext$major' 12362 shlibpath_var=LD_LIBRARY_PATH 12363 ;; 12364 12365*) 12366 dynamic_linker=no 12367 ;; 12368esac 12369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12370$as_echo "$dynamic_linker" >&6; } 12371test no = "$dynamic_linker" && can_build_shared=no 12372 12373variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12374if test yes = "$GCC"; then 12375 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12376fi 12377 12378if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12379 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12380fi 12381 12382if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12383 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12384fi 12385 12386# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12387configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12388 12389# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12390func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12391 12392# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12393configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12492$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12493hardcode_action= 12494if test -n "$hardcode_libdir_flag_spec" || 12495 test -n "$runpath_var" || 12496 test yes = "$hardcode_automatic"; then 12497 12498 # We can hardcode non-existent directories. 12499 if test no != "$hardcode_direct" && 12500 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12501 # have to relink, otherwise we might link with an installed library 12502 # when we should be linking with a yet-to-be-installed one 12503 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12504 test no != "$hardcode_minus_L"; then 12505 # Linking always hardcodes the temporary library directory. 12506 hardcode_action=relink 12507 else 12508 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12509 hardcode_action=immediate 12510 fi 12511else 12512 # We cannot hardcode anything, or else we can only hardcode existing 12513 # directories. 12514 hardcode_action=unsupported 12515fi 12516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12517$as_echo "$hardcode_action" >&6; } 12518 12519if test relink = "$hardcode_action" || 12520 test yes = "$inherit_rpath"; then 12521 # Fast installation is not supported 12522 enable_fast_install=no 12523elif test yes = "$shlibpath_overrides_runpath" || 12524 test no = "$enable_shared"; then 12525 # Fast installation is not necessary 12526 enable_fast_install=needless 12527fi 12528 12529 12530 12531 12532 12533 12534 if test yes != "$enable_dlopen"; then 12535 enable_dlopen=unknown 12536 enable_dlopen_self=unknown 12537 enable_dlopen_self_static=unknown 12538else 12539 lt_cv_dlopen=no 12540 lt_cv_dlopen_libs= 12541 12542 case $host_os in 12543 beos*) 12544 lt_cv_dlopen=load_add_on 12545 lt_cv_dlopen_libs= 12546 lt_cv_dlopen_self=yes 12547 ;; 12548 12549 mingw* | pw32* | cegcc*) 12550 lt_cv_dlopen=LoadLibrary 12551 lt_cv_dlopen_libs= 12552 ;; 12553 12554 cygwin*) 12555 lt_cv_dlopen=dlopen 12556 lt_cv_dlopen_libs= 12557 ;; 12558 12559 darwin*) 12560 # if libdl is installed we need to link against it 12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12562$as_echo_n "checking for dlopen in -ldl... " >&6; } 12563if ${ac_cv_lib_dl_dlopen+:} false; then : 12564 $as_echo_n "(cached) " >&6 12565else 12566 ac_check_lib_save_LIBS=$LIBS 12567LIBS="-ldl $LIBS" 12568cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12569/* end confdefs.h. */ 12570 12571/* Override any GCC internal prototype to avoid an error. 12572 Use char because int might match the return type of a GCC 12573 builtin and then its argument prototype would still apply. */ 12574#ifdef __cplusplus 12575extern "C" 12576#endif 12577char dlopen (); 12578int 12579main () 12580{ 12581return dlopen (); 12582 ; 12583 return 0; 12584} 12585_ACEOF 12586if ac_fn_c_try_link "$LINENO"; then : 12587 ac_cv_lib_dl_dlopen=yes 12588else 12589 ac_cv_lib_dl_dlopen=no 12590fi 12591rm -f core conftest.err conftest.$ac_objext \ 12592 conftest$ac_exeext conftest.$ac_ext 12593LIBS=$ac_check_lib_save_LIBS 12594fi 12595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12596$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12597if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12598 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12599else 12600 12601 lt_cv_dlopen=dyld 12602 lt_cv_dlopen_libs= 12603 lt_cv_dlopen_self=yes 12604 12605fi 12606 12607 ;; 12608 12609 tpf*) 12610 # Don't try to run any link tests for TPF. We know it's impossible 12611 # because TPF is a cross-compiler, and we know how we open DSOs. 12612 lt_cv_dlopen=dlopen 12613 lt_cv_dlopen_libs= 12614 lt_cv_dlopen_self=no 12615 ;; 12616 12617 *) 12618 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12619if test "x$ac_cv_func_shl_load" = xyes; then : 12620 lt_cv_dlopen=shl_load 12621else 12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12623$as_echo_n "checking for shl_load in -ldld... " >&6; } 12624if ${ac_cv_lib_dld_shl_load+:} false; then : 12625 $as_echo_n "(cached) " >&6 12626else 12627 ac_check_lib_save_LIBS=$LIBS 12628LIBS="-ldld $LIBS" 12629cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12630/* end confdefs.h. */ 12631 12632/* Override any GCC internal prototype to avoid an error. 12633 Use char because int might match the return type of a GCC 12634 builtin and then its argument prototype would still apply. */ 12635#ifdef __cplusplus 12636extern "C" 12637#endif 12638char shl_load (); 12639int 12640main () 12641{ 12642return shl_load (); 12643 ; 12644 return 0; 12645} 12646_ACEOF 12647if ac_fn_c_try_link "$LINENO"; then : 12648 ac_cv_lib_dld_shl_load=yes 12649else 12650 ac_cv_lib_dld_shl_load=no 12651fi 12652rm -f core conftest.err conftest.$ac_objext \ 12653 conftest$ac_exeext conftest.$ac_ext 12654LIBS=$ac_check_lib_save_LIBS 12655fi 12656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12657$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12658if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12659 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12660else 12661 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12662if test "x$ac_cv_func_dlopen" = xyes; then : 12663 lt_cv_dlopen=dlopen 12664else 12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12666$as_echo_n "checking for dlopen in -ldl... " >&6; } 12667if ${ac_cv_lib_dl_dlopen+:} false; then : 12668 $as_echo_n "(cached) " >&6 12669else 12670 ac_check_lib_save_LIBS=$LIBS 12671LIBS="-ldl $LIBS" 12672cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12673/* end confdefs.h. */ 12674 12675/* Override any GCC internal prototype to avoid an error. 12676 Use char because int might match the return type of a GCC 12677 builtin and then its argument prototype would still apply. */ 12678#ifdef __cplusplus 12679extern "C" 12680#endif 12681char dlopen (); 12682int 12683main () 12684{ 12685return dlopen (); 12686 ; 12687 return 0; 12688} 12689_ACEOF 12690if ac_fn_c_try_link "$LINENO"; then : 12691 ac_cv_lib_dl_dlopen=yes 12692else 12693 ac_cv_lib_dl_dlopen=no 12694fi 12695rm -f core conftest.err conftest.$ac_objext \ 12696 conftest$ac_exeext conftest.$ac_ext 12697LIBS=$ac_check_lib_save_LIBS 12698fi 12699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12700$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12701if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12702 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12703else 12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12705$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12706if ${ac_cv_lib_svld_dlopen+:} false; then : 12707 $as_echo_n "(cached) " >&6 12708else 12709 ac_check_lib_save_LIBS=$LIBS 12710LIBS="-lsvld $LIBS" 12711cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12712/* end confdefs.h. */ 12713 12714/* Override any GCC internal prototype to avoid an error. 12715 Use char because int might match the return type of a GCC 12716 builtin and then its argument prototype would still apply. */ 12717#ifdef __cplusplus 12718extern "C" 12719#endif 12720char dlopen (); 12721int 12722main () 12723{ 12724return dlopen (); 12725 ; 12726 return 0; 12727} 12728_ACEOF 12729if ac_fn_c_try_link "$LINENO"; then : 12730 ac_cv_lib_svld_dlopen=yes 12731else 12732 ac_cv_lib_svld_dlopen=no 12733fi 12734rm -f core conftest.err conftest.$ac_objext \ 12735 conftest$ac_exeext conftest.$ac_ext 12736LIBS=$ac_check_lib_save_LIBS 12737fi 12738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12739$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12740if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12741 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12742else 12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12744$as_echo_n "checking for dld_link in -ldld... " >&6; } 12745if ${ac_cv_lib_dld_dld_link+:} false; then : 12746 $as_echo_n "(cached) " >&6 12747else 12748 ac_check_lib_save_LIBS=$LIBS 12749LIBS="-ldld $LIBS" 12750cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12751/* end confdefs.h. */ 12752 12753/* Override any GCC internal prototype to avoid an error. 12754 Use char because int might match the return type of a GCC 12755 builtin and then its argument prototype would still apply. */ 12756#ifdef __cplusplus 12757extern "C" 12758#endif 12759char dld_link (); 12760int 12761main () 12762{ 12763return dld_link (); 12764 ; 12765 return 0; 12766} 12767_ACEOF 12768if ac_fn_c_try_link "$LINENO"; then : 12769 ac_cv_lib_dld_dld_link=yes 12770else 12771 ac_cv_lib_dld_dld_link=no 12772fi 12773rm -f core conftest.err conftest.$ac_objext \ 12774 conftest$ac_exeext conftest.$ac_ext 12775LIBS=$ac_check_lib_save_LIBS 12776fi 12777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12778$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12779if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12780 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12781fi 12782 12783 12784fi 12785 12786 12787fi 12788 12789 12790fi 12791 12792 12793fi 12794 12795 12796fi 12797 12798 ;; 12799 esac 12800 12801 if test no = "$lt_cv_dlopen"; then 12802 enable_dlopen=no 12803 else 12804 enable_dlopen=yes 12805 fi 12806 12807 case $lt_cv_dlopen in 12808 dlopen) 12809 save_CPPFLAGS=$CPPFLAGS 12810 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12811 12812 save_LDFLAGS=$LDFLAGS 12813 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12814 12815 save_LIBS=$LIBS 12816 LIBS="$lt_cv_dlopen_libs $LIBS" 12817 12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12819$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12820if ${lt_cv_dlopen_self+:} false; then : 12821 $as_echo_n "(cached) " >&6 12822else 12823 if test yes = "$cross_compiling"; then : 12824 lt_cv_dlopen_self=cross 12825else 12826 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12827 lt_status=$lt_dlunknown 12828 cat > conftest.$ac_ext <<_LT_EOF 12829#line $LINENO "configure" 12830#include "confdefs.h" 12831 12832#if HAVE_DLFCN_H 12833#include <dlfcn.h> 12834#endif 12835 12836#include <stdio.h> 12837 12838#ifdef RTLD_GLOBAL 12839# define LT_DLGLOBAL RTLD_GLOBAL 12840#else 12841# ifdef DL_GLOBAL 12842# define LT_DLGLOBAL DL_GLOBAL 12843# else 12844# define LT_DLGLOBAL 0 12845# endif 12846#endif 12847 12848/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12849 find out it does not work in some platform. */ 12850#ifndef LT_DLLAZY_OR_NOW 12851# ifdef RTLD_LAZY 12852# define LT_DLLAZY_OR_NOW RTLD_LAZY 12853# else 12854# ifdef DL_LAZY 12855# define LT_DLLAZY_OR_NOW DL_LAZY 12856# else 12857# ifdef RTLD_NOW 12858# define LT_DLLAZY_OR_NOW RTLD_NOW 12859# else 12860# ifdef DL_NOW 12861# define LT_DLLAZY_OR_NOW DL_NOW 12862# else 12863# define LT_DLLAZY_OR_NOW 0 12864# endif 12865# endif 12866# endif 12867# endif 12868#endif 12869 12870/* When -fvisibility=hidden is used, assume the code has been annotated 12871 correspondingly for the symbols needed. */ 12872#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12873int fnord () __attribute__((visibility("default"))); 12874#endif 12875 12876int fnord () { return 42; } 12877int main () 12878{ 12879 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12880 int status = $lt_dlunknown; 12881 12882 if (self) 12883 { 12884 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12885 else 12886 { 12887 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12888 else puts (dlerror ()); 12889 } 12890 /* dlclose (self); */ 12891 } 12892 else 12893 puts (dlerror ()); 12894 12895 return status; 12896} 12897_LT_EOF 12898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12899 (eval $ac_link) 2>&5 12900 ac_status=$? 12901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12902 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12903 (./conftest; exit; ) >&5 2>/dev/null 12904 lt_status=$? 12905 case x$lt_status in 12906 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12907 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12908 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12909 esac 12910 else : 12911 # compilation failed 12912 lt_cv_dlopen_self=no 12913 fi 12914fi 12915rm -fr conftest* 12916 12917 12918fi 12919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12920$as_echo "$lt_cv_dlopen_self" >&6; } 12921 12922 if test yes = "$lt_cv_dlopen_self"; then 12923 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12925$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12926if ${lt_cv_dlopen_self_static+:} false; then : 12927 $as_echo_n "(cached) " >&6 12928else 12929 if test yes = "$cross_compiling"; then : 12930 lt_cv_dlopen_self_static=cross 12931else 12932 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12933 lt_status=$lt_dlunknown 12934 cat > conftest.$ac_ext <<_LT_EOF 12935#line $LINENO "configure" 12936#include "confdefs.h" 12937 12938#if HAVE_DLFCN_H 12939#include <dlfcn.h> 12940#endif 12941 12942#include <stdio.h> 12943 12944#ifdef RTLD_GLOBAL 12945# define LT_DLGLOBAL RTLD_GLOBAL 12946#else 12947# ifdef DL_GLOBAL 12948# define LT_DLGLOBAL DL_GLOBAL 12949# else 12950# define LT_DLGLOBAL 0 12951# endif 12952#endif 12953 12954/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12955 find out it does not work in some platform. */ 12956#ifndef LT_DLLAZY_OR_NOW 12957# ifdef RTLD_LAZY 12958# define LT_DLLAZY_OR_NOW RTLD_LAZY 12959# else 12960# ifdef DL_LAZY 12961# define LT_DLLAZY_OR_NOW DL_LAZY 12962# else 12963# ifdef RTLD_NOW 12964# define LT_DLLAZY_OR_NOW RTLD_NOW 12965# else 12966# ifdef DL_NOW 12967# define LT_DLLAZY_OR_NOW DL_NOW 12968# else 12969# define LT_DLLAZY_OR_NOW 0 12970# endif 12971# endif 12972# endif 12973# endif 12974#endif 12975 12976/* When -fvisibility=hidden is used, assume the code has been annotated 12977 correspondingly for the symbols needed. */ 12978#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12979int fnord () __attribute__((visibility("default"))); 12980#endif 12981 12982int fnord () { return 42; } 12983int main () 12984{ 12985 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12986 int status = $lt_dlunknown; 12987 12988 if (self) 12989 { 12990 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12991 else 12992 { 12993 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12994 else puts (dlerror ()); 12995 } 12996 /* dlclose (self); */ 12997 } 12998 else 12999 puts (dlerror ()); 13000 13001 return status; 13002} 13003_LT_EOF 13004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13005 (eval $ac_link) 2>&5 13006 ac_status=$? 13007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13008 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13009 (./conftest; exit; ) >&5 2>/dev/null 13010 lt_status=$? 13011 case x$lt_status in 13012 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13013 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13014 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13015 esac 13016 else : 13017 # compilation failed 13018 lt_cv_dlopen_self_static=no 13019 fi 13020fi 13021rm -fr conftest* 13022 13023 13024fi 13025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13026$as_echo "$lt_cv_dlopen_self_static" >&6; } 13027 fi 13028 13029 CPPFLAGS=$save_CPPFLAGS 13030 LDFLAGS=$save_LDFLAGS 13031 LIBS=$save_LIBS 13032 ;; 13033 esac 13034 13035 case $lt_cv_dlopen_self in 13036 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13037 *) enable_dlopen_self=unknown ;; 13038 esac 13039 13040 case $lt_cv_dlopen_self_static in 13041 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13042 *) enable_dlopen_self_static=unknown ;; 13043 esac 13044fi 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062striplib= 13063old_striplib= 13064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13065$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13066if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13067 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13068 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13070$as_echo "yes" >&6; } 13071else 13072# FIXME - insert some real tests, host_os isn't really good enough 13073 case $host_os in 13074 darwin*) 13075 if test -n "$STRIP"; then 13076 striplib="$STRIP -x" 13077 old_striplib="$STRIP -S" 13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13079$as_echo "yes" >&6; } 13080 else 13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13082$as_echo "no" >&6; } 13083 fi 13084 ;; 13085 *) 13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13087$as_echo "no" >&6; } 13088 ;; 13089 esac 13090fi 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 # Report what library types will actually be built 13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13105$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13107$as_echo "$can_build_shared" >&6; } 13108 13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13110$as_echo_n "checking whether to build shared libraries... " >&6; } 13111 test no = "$can_build_shared" && enable_shared=no 13112 13113 # On AIX, shared libraries and static libraries use the same namespace, and 13114 # are all built from PIC. 13115 case $host_os in 13116 aix3*) 13117 test yes = "$enable_shared" && enable_static=no 13118 if test -n "$RANLIB"; then 13119 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13120 postinstall_cmds='$RANLIB $lib' 13121 fi 13122 ;; 13123 13124 aix[4-9]*) 13125 if test ia64 != "$host_cpu"; then 13126 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13127 yes,aix,yes) ;; # shared object as lib.so file only 13128 yes,svr4,*) ;; # shared object as lib.so archive member only 13129 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13130 esac 13131 fi 13132 ;; 13133 esac 13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13135$as_echo "$enable_shared" >&6; } 13136 13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13138$as_echo_n "checking whether to build static libraries... " >&6; } 13139 # Make sure either enable_shared or enable_static is yes. 13140 test yes = "$enable_shared" || enable_static=yes 13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13142$as_echo "$enable_static" >&6; } 13143 13144 13145 13146 13147fi 13148ac_ext=c 13149ac_cpp='$CPP $CPPFLAGS' 13150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13152ac_compiler_gnu=$ac_cv_c_compiler_gnu 13153 13154CC=$lt_save_CC 13155 13156 if test -n "$CXX" && ( test no != "$CXX" && 13157 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13158 (test g++ != "$CXX"))); then 13159 ac_ext=cpp 13160ac_cpp='$CXXCPP $CPPFLAGS' 13161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13165$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13166if test -z "$CXXCPP"; then 13167 if ${ac_cv_prog_CXXCPP+:} false; then : 13168 $as_echo_n "(cached) " >&6 13169else 13170 # Double quotes because CXXCPP needs to be expanded 13171 for CXXCPP in "$CXX -E" "/lib/cpp" 13172 do 13173 ac_preproc_ok=false 13174for ac_cxx_preproc_warn_flag in '' yes 13175do 13176 # Use a header file that comes with gcc, so configuring glibc 13177 # with a fresh cross-compiler works. 13178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13179 # <limits.h> exists even on freestanding compilers. 13180 # On the NeXT, cc -E runs the code through the compiler's parser, 13181 # not just through cpp. "Syntax error" is here to catch this case. 13182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13183/* end confdefs.h. */ 13184#ifdef __STDC__ 13185# include <limits.h> 13186#else 13187# include <assert.h> 13188#endif 13189 Syntax error 13190_ACEOF 13191if ac_fn_cxx_try_cpp "$LINENO"; then : 13192 13193else 13194 # Broken: fails on valid input. 13195continue 13196fi 13197rm -f conftest.err conftest.i conftest.$ac_ext 13198 13199 # OK, works on sane cases. Now check whether nonexistent headers 13200 # can be detected and how. 13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13202/* end confdefs.h. */ 13203#include <ac_nonexistent.h> 13204_ACEOF 13205if ac_fn_cxx_try_cpp "$LINENO"; then : 13206 # Broken: success on invalid input. 13207continue 13208else 13209 # Passes both tests. 13210ac_preproc_ok=: 13211break 13212fi 13213rm -f conftest.err conftest.i conftest.$ac_ext 13214 13215done 13216# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13217rm -f conftest.i conftest.err conftest.$ac_ext 13218if $ac_preproc_ok; then : 13219 break 13220fi 13221 13222 done 13223 ac_cv_prog_CXXCPP=$CXXCPP 13224 13225fi 13226 CXXCPP=$ac_cv_prog_CXXCPP 13227else 13228 ac_cv_prog_CXXCPP=$CXXCPP 13229fi 13230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13231$as_echo "$CXXCPP" >&6; } 13232ac_preproc_ok=false 13233for ac_cxx_preproc_warn_flag in '' yes 13234do 13235 # Use a header file that comes with gcc, so configuring glibc 13236 # with a fresh cross-compiler works. 13237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13238 # <limits.h> exists even on freestanding compilers. 13239 # On the NeXT, cc -E runs the code through the compiler's parser, 13240 # not just through cpp. "Syntax error" is here to catch this case. 13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13242/* end confdefs.h. */ 13243#ifdef __STDC__ 13244# include <limits.h> 13245#else 13246# include <assert.h> 13247#endif 13248 Syntax error 13249_ACEOF 13250if ac_fn_cxx_try_cpp "$LINENO"; then : 13251 13252else 13253 # Broken: fails on valid input. 13254continue 13255fi 13256rm -f conftest.err conftest.i conftest.$ac_ext 13257 13258 # OK, works on sane cases. Now check whether nonexistent headers 13259 # can be detected and how. 13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13261/* end confdefs.h. */ 13262#include <ac_nonexistent.h> 13263_ACEOF 13264if ac_fn_cxx_try_cpp "$LINENO"; then : 13265 # Broken: success on invalid input. 13266continue 13267else 13268 # Passes both tests. 13269ac_preproc_ok=: 13270break 13271fi 13272rm -f conftest.err conftest.i conftest.$ac_ext 13273 13274done 13275# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13276rm -f conftest.i conftest.err conftest.$ac_ext 13277if $ac_preproc_ok; then : 13278 13279else 13280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13282as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13283See \`config.log' for more details" "$LINENO" 5; } 13284fi 13285 13286ac_ext=c 13287ac_cpp='$CPP $CPPFLAGS' 13288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13290ac_compiler_gnu=$ac_cv_c_compiler_gnu 13291 13292else 13293 _lt_caught_CXX_error=yes 13294fi 13295 13296ac_ext=cpp 13297ac_cpp='$CXXCPP $CPPFLAGS' 13298ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13299ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13300ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13301 13302archive_cmds_need_lc_CXX=no 13303allow_undefined_flag_CXX= 13304always_export_symbols_CXX=no 13305archive_expsym_cmds_CXX= 13306compiler_needs_object_CXX=no 13307export_dynamic_flag_spec_CXX= 13308hardcode_direct_CXX=no 13309hardcode_direct_absolute_CXX=no 13310hardcode_libdir_flag_spec_CXX= 13311hardcode_libdir_separator_CXX= 13312hardcode_minus_L_CXX=no 13313hardcode_shlibpath_var_CXX=unsupported 13314hardcode_automatic_CXX=no 13315inherit_rpath_CXX=no 13316module_cmds_CXX= 13317module_expsym_cmds_CXX= 13318link_all_deplibs_CXX=unknown 13319old_archive_cmds_CXX=$old_archive_cmds 13320reload_flag_CXX=$reload_flag 13321reload_cmds_CXX=$reload_cmds 13322no_undefined_flag_CXX= 13323whole_archive_flag_spec_CXX= 13324enable_shared_with_static_runtimes_CXX=no 13325 13326# Source file extension for C++ test sources. 13327ac_ext=cpp 13328 13329# Object file extension for compiled C++ test sources. 13330objext=o 13331objext_CXX=$objext 13332 13333# No sense in running all these tests if we already determined that 13334# the CXX compiler isn't working. Some variables (like enable_shared) 13335# are currently assumed to apply to all compilers on this platform, 13336# and will be corrupted by setting them based on a non-working compiler. 13337if test yes != "$_lt_caught_CXX_error"; then 13338 # Code to be used in simple compile tests 13339 lt_simple_compile_test_code="int some_variable = 0;" 13340 13341 # Code to be used in simple link tests 13342 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13343 13344 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13345 13346 13347 13348 13349 13350 13351# If no C compiler was specified, use CC. 13352LTCC=${LTCC-"$CC"} 13353 13354# If no C compiler flags were specified, use CFLAGS. 13355LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13356 13357# Allow CC to be a program name with arguments. 13358compiler=$CC 13359 13360 13361 # save warnings/boilerplate of simple test code 13362 ac_outfile=conftest.$ac_objext 13363echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13364eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13365_lt_compiler_boilerplate=`cat conftest.err` 13366$RM conftest* 13367 13368 ac_outfile=conftest.$ac_objext 13369echo "$lt_simple_link_test_code" >conftest.$ac_ext 13370eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13371_lt_linker_boilerplate=`cat conftest.err` 13372$RM -r conftest* 13373 13374 13375 # Allow CC to be a program name with arguments. 13376 lt_save_CC=$CC 13377 lt_save_CFLAGS=$CFLAGS 13378 lt_save_LD=$LD 13379 lt_save_GCC=$GCC 13380 GCC=$GXX 13381 lt_save_with_gnu_ld=$with_gnu_ld 13382 lt_save_path_LD=$lt_cv_path_LD 13383 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13384 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13385 else 13386 $as_unset lt_cv_prog_gnu_ld 13387 fi 13388 if test -n "${lt_cv_path_LDCXX+set}"; then 13389 lt_cv_path_LD=$lt_cv_path_LDCXX 13390 else 13391 $as_unset lt_cv_path_LD 13392 fi 13393 test -z "${LDCXX+set}" || LD=$LDCXX 13394 CC=${CXX-"c++"} 13395 CFLAGS=$CXXFLAGS 13396 compiler=$CC 13397 compiler_CXX=$CC 13398 func_cc_basename $compiler 13399cc_basename=$func_cc_basename_result 13400 13401 13402 if test -n "$compiler"; then 13403 # We don't want -fno-exception when compiling C++ code, so set the 13404 # no_builtin_flag separately 13405 if test yes = "$GXX"; then 13406 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13407 else 13408 lt_prog_compiler_no_builtin_flag_CXX= 13409 fi 13410 13411 if test yes = "$GXX"; then 13412 # Set up default GNU C++ configuration 13413 13414 13415 13416# Check whether --with-gnu-ld was given. 13417if test "${with_gnu_ld+set}" = set; then : 13418 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13419else 13420 with_gnu_ld=no 13421fi 13422 13423ac_prog=ld 13424if test yes = "$GCC"; then 13425 # Check if gcc -print-prog-name=ld gives a path. 13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13427$as_echo_n "checking for ld used by $CC... " >&6; } 13428 case $host in 13429 *-*-mingw*) 13430 # gcc leaves a trailing carriage return, which upsets mingw 13431 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13432 *) 13433 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13434 esac 13435 case $ac_prog in 13436 # Accept absolute paths. 13437 [\\/]* | ?:[\\/]*) 13438 re_direlt='/[^/][^/]*/\.\./' 13439 # Canonicalize the pathname of ld 13440 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13441 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13442 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13443 done 13444 test -z "$LD" && LD=$ac_prog 13445 ;; 13446 "") 13447 # If it fails, then pretend we aren't using GCC. 13448 ac_prog=ld 13449 ;; 13450 *) 13451 # If it is relative, then search for the first ld in PATH. 13452 with_gnu_ld=unknown 13453 ;; 13454 esac 13455elif test yes = "$with_gnu_ld"; then 13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13457$as_echo_n "checking for GNU ld... " >&6; } 13458else 13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13460$as_echo_n "checking for non-GNU ld... " >&6; } 13461fi 13462if ${lt_cv_path_LD+:} false; then : 13463 $as_echo_n "(cached) " >&6 13464else 13465 if test -z "$LD"; then 13466 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13467 for ac_dir in $PATH; do 13468 IFS=$lt_save_ifs 13469 test -z "$ac_dir" && ac_dir=. 13470 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13471 lt_cv_path_LD=$ac_dir/$ac_prog 13472 # Check to see if the program is GNU ld. I'd rather use --version, 13473 # but apparently some variants of GNU ld only accept -v. 13474 # Break only if it was the GNU/non-GNU ld that we prefer. 13475 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13476 *GNU* | *'with BFD'*) 13477 test no != "$with_gnu_ld" && break 13478 ;; 13479 *) 13480 test yes != "$with_gnu_ld" && break 13481 ;; 13482 esac 13483 fi 13484 done 13485 IFS=$lt_save_ifs 13486else 13487 lt_cv_path_LD=$LD # Let the user override the test with a path. 13488fi 13489fi 13490 13491LD=$lt_cv_path_LD 13492if test -n "$LD"; then 13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13494$as_echo "$LD" >&6; } 13495else 13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13497$as_echo "no" >&6; } 13498fi 13499test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13501$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13502if ${lt_cv_prog_gnu_ld+:} false; then : 13503 $as_echo_n "(cached) " >&6 13504else 13505 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13506case `$LD -v 2>&1 </dev/null` in 13507*GNU* | *'with BFD'*) 13508 lt_cv_prog_gnu_ld=yes 13509 ;; 13510*) 13511 lt_cv_prog_gnu_ld=no 13512 ;; 13513esac 13514fi 13515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13516$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13517with_gnu_ld=$lt_cv_prog_gnu_ld 13518 13519 13520 13521 13522 13523 13524 13525 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13526 # archiving commands below assume that GNU ld is being used. 13527 if test yes = "$with_gnu_ld"; then 13528 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13529 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' 13530 13531 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13532 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13533 13534 # If archive_cmds runs LD, not CC, wlarc should be empty 13535 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13536 # investigate it a little bit more. (MM) 13537 wlarc='$wl' 13538 13539 # ancient GNU ld didn't support --whole-archive et. al. 13540 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13541 $GREP 'no-whole-archive' > /dev/null; then 13542 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13543 else 13544 whole_archive_flag_spec_CXX= 13545 fi 13546 else 13547 with_gnu_ld=no 13548 wlarc= 13549 13550 # A generic and very simple default shared library creation 13551 # command for GNU C++ for the case where it uses the native 13552 # linker, instead of GNU ld. If possible, this setting should 13553 # overridden to take advantage of the native linker features on 13554 # the platform it is being used on. 13555 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13556 fi 13557 13558 # Commands to make compiler produce verbose output that lists 13559 # what "hidden" libraries, object files and flags are used when 13560 # linking a shared library. 13561 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13562 13563 else 13564 GXX=no 13565 with_gnu_ld=no 13566 wlarc= 13567 fi 13568 13569 # PORTME: fill in a description of your system's C++ link characteristics 13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13571$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13572 ld_shlibs_CXX=yes 13573 case $host_os in 13574 aix3*) 13575 # FIXME: insert proper C++ library support 13576 ld_shlibs_CXX=no 13577 ;; 13578 aix[4-9]*) 13579 if test ia64 = "$host_cpu"; then 13580 # On IA64, the linker does run time linking by default, so we don't 13581 # have to do anything special. 13582 aix_use_runtimelinking=no 13583 exp_sym_flag='-Bexport' 13584 no_entry_flag= 13585 else 13586 aix_use_runtimelinking=no 13587 13588 # Test if we are trying to use run time linking or normal 13589 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13590 # have runtime linking enabled, and use it for executables. 13591 # For shared libraries, we enable/disable runtime linking 13592 # depending on the kind of the shared library created - 13593 # when "with_aix_soname,aix_use_runtimelinking" is: 13594 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13595 # "aix,yes" lib.so shared, rtl:yes, for executables 13596 # lib.a static archive 13597 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13598 # lib.a(lib.so.V) shared, rtl:no, for executables 13599 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13600 # lib.a(lib.so.V) shared, rtl:no 13601 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13602 # lib.a static archive 13603 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13604 for ld_flag in $LDFLAGS; do 13605 case $ld_flag in 13606 *-brtl*) 13607 aix_use_runtimelinking=yes 13608 break 13609 ;; 13610 esac 13611 done 13612 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13613 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13614 # so we don't have lib.a shared libs to link our executables. 13615 # We have to force runtime linking in this case. 13616 aix_use_runtimelinking=yes 13617 LDFLAGS="$LDFLAGS -Wl,-brtl" 13618 fi 13619 ;; 13620 esac 13621 13622 exp_sym_flag='-bexport' 13623 no_entry_flag='-bnoentry' 13624 fi 13625 13626 # When large executables or shared objects are built, AIX ld can 13627 # have problems creating the table of contents. If linking a library 13628 # or program results in "error TOC overflow" add -mminimal-toc to 13629 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13630 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13631 13632 archive_cmds_CXX='' 13633 hardcode_direct_CXX=yes 13634 hardcode_direct_absolute_CXX=yes 13635 hardcode_libdir_separator_CXX=':' 13636 link_all_deplibs_CXX=yes 13637 file_list_spec_CXX='$wl-f,' 13638 case $with_aix_soname,$aix_use_runtimelinking in 13639 aix,*) ;; # no import file 13640 svr4,* | *,yes) # use import file 13641 # The Import File defines what to hardcode. 13642 hardcode_direct_CXX=no 13643 hardcode_direct_absolute_CXX=no 13644 ;; 13645 esac 13646 13647 if test yes = "$GXX"; then 13648 case $host_os in aix4.[012]|aix4.[012].*) 13649 # We only want to do this on AIX 4.2 and lower, the check 13650 # below for broken collect2 doesn't work under 4.3+ 13651 collect2name=`$CC -print-prog-name=collect2` 13652 if test -f "$collect2name" && 13653 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13654 then 13655 # We have reworked collect2 13656 : 13657 else 13658 # We have old collect2 13659 hardcode_direct_CXX=unsupported 13660 # It fails to find uninstalled libraries when the uninstalled 13661 # path is not listed in the libpath. Setting hardcode_minus_L 13662 # to unsupported forces relinking 13663 hardcode_minus_L_CXX=yes 13664 hardcode_libdir_flag_spec_CXX='-L$libdir' 13665 hardcode_libdir_separator_CXX= 13666 fi 13667 esac 13668 shared_flag='-shared' 13669 if test yes = "$aix_use_runtimelinking"; then 13670 shared_flag=$shared_flag' $wl-G' 13671 fi 13672 # Need to ensure runtime linking is disabled for the traditional 13673 # shared library, or the linker may eventually find shared libraries 13674 # /with/ Import File - we do not want to mix them. 13675 shared_flag_aix='-shared' 13676 shared_flag_svr4='-shared $wl-G' 13677 else 13678 # not using gcc 13679 if test ia64 = "$host_cpu"; then 13680 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13681 # chokes on -Wl,-G. The following line is correct: 13682 shared_flag='-G' 13683 else 13684 if test yes = "$aix_use_runtimelinking"; then 13685 shared_flag='$wl-G' 13686 else 13687 shared_flag='$wl-bM:SRE' 13688 fi 13689 shared_flag_aix='$wl-bM:SRE' 13690 shared_flag_svr4='$wl-G' 13691 fi 13692 fi 13693 13694 export_dynamic_flag_spec_CXX='$wl-bexpall' 13695 # It seems that -bexpall does not export symbols beginning with 13696 # underscore (_), so it is better to generate a list of symbols to 13697 # export. 13698 always_export_symbols_CXX=yes 13699 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13700 # Warning - without using the other runtime loading flags (-brtl), 13701 # -berok will link without error, but may produce a broken library. 13702 # The "-G" linker flag allows undefined symbols. 13703 no_undefined_flag_CXX='-bernotok' 13704 # Determine the default libpath from the value encoded in an empty 13705 # executable. 13706 if test set = "${lt_cv_aix_libpath+set}"; then 13707 aix_libpath=$lt_cv_aix_libpath 13708else 13709 if ${lt_cv_aix_libpath__CXX+:} false; then : 13710 $as_echo_n "(cached) " >&6 13711else 13712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13713/* end confdefs.h. */ 13714 13715int 13716main () 13717{ 13718 13719 ; 13720 return 0; 13721} 13722_ACEOF 13723if ac_fn_cxx_try_link "$LINENO"; then : 13724 13725 lt_aix_libpath_sed=' 13726 /Import File Strings/,/^$/ { 13727 /^0/ { 13728 s/^0 *\([^ ]*\) *$/\1/ 13729 p 13730 } 13731 }' 13732 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13733 # Check for a 64-bit object if we didn't find anything. 13734 if test -z "$lt_cv_aix_libpath__CXX"; then 13735 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13736 fi 13737fi 13738rm -f core conftest.err conftest.$ac_objext \ 13739 conftest$ac_exeext conftest.$ac_ext 13740 if test -z "$lt_cv_aix_libpath__CXX"; then 13741 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13742 fi 13743 13744fi 13745 13746 aix_libpath=$lt_cv_aix_libpath__CXX 13747fi 13748 13749 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13750 13751 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 13752 else 13753 if test ia64 = "$host_cpu"; then 13754 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13755 allow_undefined_flag_CXX="-z nodefs" 13756 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" 13757 else 13758 # Determine the default libpath from the value encoded in an 13759 # empty executable. 13760 if test set = "${lt_cv_aix_libpath+set}"; then 13761 aix_libpath=$lt_cv_aix_libpath 13762else 13763 if ${lt_cv_aix_libpath__CXX+:} false; then : 13764 $as_echo_n "(cached) " >&6 13765else 13766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13767/* end confdefs.h. */ 13768 13769int 13770main () 13771{ 13772 13773 ; 13774 return 0; 13775} 13776_ACEOF 13777if ac_fn_cxx_try_link "$LINENO"; then : 13778 13779 lt_aix_libpath_sed=' 13780 /Import File Strings/,/^$/ { 13781 /^0/ { 13782 s/^0 *\([^ ]*\) *$/\1/ 13783 p 13784 } 13785 }' 13786 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13787 # Check for a 64-bit object if we didn't find anything. 13788 if test -z "$lt_cv_aix_libpath__CXX"; then 13789 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13790 fi 13791fi 13792rm -f core conftest.err conftest.$ac_objext \ 13793 conftest$ac_exeext conftest.$ac_ext 13794 if test -z "$lt_cv_aix_libpath__CXX"; then 13795 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13796 fi 13797 13798fi 13799 13800 aix_libpath=$lt_cv_aix_libpath__CXX 13801fi 13802 13803 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13804 # Warning - without using the other run time loading flags, 13805 # -berok will link without error, but may produce a broken library. 13806 no_undefined_flag_CXX=' $wl-bernotok' 13807 allow_undefined_flag_CXX=' $wl-berok' 13808 if test yes = "$with_gnu_ld"; then 13809 # We only use this code for GNU lds that support --whole-archive. 13810 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13811 else 13812 # Exported symbols can be pulled into shared objects from archives 13813 whole_archive_flag_spec_CXX='$convenience' 13814 fi 13815 archive_cmds_need_lc_CXX=yes 13816 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13817 # -brtl affects multiple linker settings, -berok does not and is overridden later 13818 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13819 if test svr4 != "$with_aix_soname"; then 13820 # This is similar to how AIX traditionally builds its shared 13821 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13822 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' 13823 fi 13824 if test aix != "$with_aix_soname"; then 13825 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' 13826 else 13827 # used by -dlpreopen to get the symbols 13828 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13829 fi 13830 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13831 fi 13832 fi 13833 ;; 13834 13835 beos*) 13836 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13837 allow_undefined_flag_CXX=unsupported 13838 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13839 # support --undefined. This deserves some investigation. FIXME 13840 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13841 else 13842 ld_shlibs_CXX=no 13843 fi 13844 ;; 13845 13846 chorus*) 13847 case $cc_basename in 13848 *) 13849 # FIXME: insert proper C++ library support 13850 ld_shlibs_CXX=no 13851 ;; 13852 esac 13853 ;; 13854 13855 cygwin* | mingw* | pw32* | cegcc*) 13856 case $GXX,$cc_basename in 13857 ,cl* | no,cl*) 13858 # Native MSVC 13859 # hardcode_libdir_flag_spec is actually meaningless, as there is 13860 # no search path for DLLs. 13861 hardcode_libdir_flag_spec_CXX=' ' 13862 allow_undefined_flag_CXX=unsupported 13863 always_export_symbols_CXX=yes 13864 file_list_spec_CXX='@' 13865 # Tell ltmain to make .lib files, not .a files. 13866 libext=lib 13867 # Tell ltmain to make .dll files, not .so files. 13868 shrext_cmds=.dll 13869 # FIXME: Setting linknames here is a bad hack. 13870 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13871 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13872 cp "$export_symbols" "$output_objdir/$soname.def"; 13873 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13874 else 13875 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13876 fi~ 13877 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13878 linknames=' 13879 # The linker will not automatically build a static lib if we build a DLL. 13880 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13881 enable_shared_with_static_runtimes_CXX=yes 13882 # Don't use ranlib 13883 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13884 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13885 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13886 case $lt_outputfile in 13887 *.exe|*.EXE) ;; 13888 *) 13889 lt_outputfile=$lt_outputfile.exe 13890 lt_tool_outputfile=$lt_tool_outputfile.exe 13891 ;; 13892 esac~ 13893 func_to_tool_file "$lt_outputfile"~ 13894 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13895 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13896 $RM "$lt_outputfile.manifest"; 13897 fi' 13898 ;; 13899 *) 13900 # g++ 13901 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13902 # as there is no search path for DLLs. 13903 hardcode_libdir_flag_spec_CXX='-L$libdir' 13904 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 13905 allow_undefined_flag_CXX=unsupported 13906 always_export_symbols_CXX=no 13907 enable_shared_with_static_runtimes_CXX=yes 13908 13909 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13910 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' 13911 # If the export-symbols file already is a .def file, use it as 13912 # is; otherwise, prepend EXPORTS... 13913 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13914 cp $export_symbols $output_objdir/$soname.def; 13915 else 13916 echo EXPORTS > $output_objdir/$soname.def; 13917 cat $export_symbols >> $output_objdir/$soname.def; 13918 fi~ 13919 $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' 13920 else 13921 ld_shlibs_CXX=no 13922 fi 13923 ;; 13924 esac 13925 ;; 13926 darwin* | rhapsody*) 13927 13928 13929 archive_cmds_need_lc_CXX=no 13930 hardcode_direct_CXX=no 13931 hardcode_automatic_CXX=yes 13932 hardcode_shlibpath_var_CXX=unsupported 13933 if test yes = "$lt_cv_ld_force_load"; then 13934 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\"`' 13935 13936 else 13937 whole_archive_flag_spec_CXX='' 13938 fi 13939 link_all_deplibs_CXX=yes 13940 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13941 case $cc_basename in 13942 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13943 *) _lt_dar_can_shared=$GCC ;; 13944 esac 13945 if test yes = "$_lt_dar_can_shared"; then 13946 output_verbose_link_cmd=func_echo_all 13947 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" 13948 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13949 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" 13950 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" 13951 if test yes != "$lt_cv_apple_cc_single_mod"; then 13952 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" 13953 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" 13954 fi 13955 13956 else 13957 ld_shlibs_CXX=no 13958 fi 13959 13960 ;; 13961 13962 os2*) 13963 hardcode_libdir_flag_spec_CXX='-L$libdir' 13964 hardcode_minus_L_CXX=yes 13965 allow_undefined_flag_CXX=unsupported 13966 shrext_cmds=.dll 13967 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13968 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13969 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13970 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13971 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13972 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13973 emximp -o $lib $output_objdir/$libname.def' 13974 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13975 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13976 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13977 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13978 prefix_cmds="$SED"~ 13979 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13980 prefix_cmds="$prefix_cmds -e 1d"; 13981 fi~ 13982 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13983 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13984 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13985 emximp -o $lib $output_objdir/$libname.def' 13986 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13987 enable_shared_with_static_runtimes_CXX=yes 13988 ;; 13989 13990 dgux*) 13991 case $cc_basename in 13992 ec++*) 13993 # FIXME: insert proper C++ library support 13994 ld_shlibs_CXX=no 13995 ;; 13996 ghcx*) 13997 # Green Hills C++ Compiler 13998 # FIXME: insert proper C++ library support 13999 ld_shlibs_CXX=no 14000 ;; 14001 *) 14002 # FIXME: insert proper C++ library support 14003 ld_shlibs_CXX=no 14004 ;; 14005 esac 14006 ;; 14007 14008 freebsd2.*) 14009 # C++ shared libraries reported to be fairly broken before 14010 # switch to ELF 14011 ld_shlibs_CXX=no 14012 ;; 14013 14014 freebsd-elf*) 14015 archive_cmds_need_lc_CXX=no 14016 ;; 14017 14018 freebsd* | dragonfly*) 14019 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14020 # conventions 14021 ld_shlibs_CXX=yes 14022 ;; 14023 14024 haiku*) 14025 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14026 link_all_deplibs_CXX=yes 14027 ;; 14028 14029 hpux9*) 14030 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14031 hardcode_libdir_separator_CXX=: 14032 export_dynamic_flag_spec_CXX='$wl-E' 14033 hardcode_direct_CXX=yes 14034 hardcode_minus_L_CXX=yes # Not in the search PATH, 14035 # but as the default 14036 # location of the library. 14037 14038 case $cc_basename in 14039 CC*) 14040 # FIXME: insert proper C++ library support 14041 ld_shlibs_CXX=no 14042 ;; 14043 aCC*) 14044 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' 14045 # Commands to make compiler produce verbose output that lists 14046 # what "hidden" libraries, object files and flags are used when 14047 # linking a shared library. 14048 # 14049 # There doesn't appear to be a way to prevent this compiler from 14050 # explicitly linking system object files so we need to strip them 14051 # from the output so that they don't get included in the library 14052 # dependencies. 14053 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"' 14054 ;; 14055 *) 14056 if test yes = "$GXX"; then 14057 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' 14058 else 14059 # FIXME: insert proper C++ library support 14060 ld_shlibs_CXX=no 14061 fi 14062 ;; 14063 esac 14064 ;; 14065 14066 hpux10*|hpux11*) 14067 if test no = "$with_gnu_ld"; then 14068 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14069 hardcode_libdir_separator_CXX=: 14070 14071 case $host_cpu in 14072 hppa*64*|ia64*) 14073 ;; 14074 *) 14075 export_dynamic_flag_spec_CXX='$wl-E' 14076 ;; 14077 esac 14078 fi 14079 case $host_cpu in 14080 hppa*64*|ia64*) 14081 hardcode_direct_CXX=no 14082 hardcode_shlibpath_var_CXX=no 14083 ;; 14084 *) 14085 hardcode_direct_CXX=yes 14086 hardcode_direct_absolute_CXX=yes 14087 hardcode_minus_L_CXX=yes # Not in the search PATH, 14088 # but as the default 14089 # location of the library. 14090 ;; 14091 esac 14092 14093 case $cc_basename in 14094 CC*) 14095 # FIXME: insert proper C++ library support 14096 ld_shlibs_CXX=no 14097 ;; 14098 aCC*) 14099 case $host_cpu in 14100 hppa*64*) 14101 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14102 ;; 14103 ia64*) 14104 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14105 ;; 14106 *) 14107 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14108 ;; 14109 esac 14110 # Commands to make compiler produce verbose output that lists 14111 # what "hidden" libraries, object files and flags are used when 14112 # linking a shared library. 14113 # 14114 # There doesn't appear to be a way to prevent this compiler from 14115 # explicitly linking system object files so we need to strip them 14116 # from the output so that they don't get included in the library 14117 # dependencies. 14118 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"' 14119 ;; 14120 *) 14121 if test yes = "$GXX"; then 14122 if test no = "$with_gnu_ld"; then 14123 case $host_cpu in 14124 hppa*64*) 14125 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14126 ;; 14127 ia64*) 14128 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14129 ;; 14130 *) 14131 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' 14132 ;; 14133 esac 14134 fi 14135 else 14136 # FIXME: insert proper C++ library support 14137 ld_shlibs_CXX=no 14138 fi 14139 ;; 14140 esac 14141 ;; 14142 14143 interix[3-9]*) 14144 hardcode_direct_CXX=no 14145 hardcode_shlibpath_var_CXX=no 14146 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14147 export_dynamic_flag_spec_CXX='$wl-E' 14148 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14149 # Instead, shared libraries are loaded at an image base (0x10000000 by 14150 # default) and relocated if they conflict, which is a slow very memory 14151 # consuming and fragmenting process. To avoid this, we pick a random, 14152 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14153 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14154 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' 14155 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' 14156 ;; 14157 irix5* | irix6*) 14158 case $cc_basename in 14159 CC*) 14160 # SGI C++ 14161 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' 14162 14163 # Archives containing C++ object files must be created using 14164 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14165 # necessary to make sure instantiated templates are included 14166 # in the archive. 14167 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14168 ;; 14169 *) 14170 if test yes = "$GXX"; then 14171 if test no = "$with_gnu_ld"; then 14172 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' 14173 else 14174 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' 14175 fi 14176 fi 14177 link_all_deplibs_CXX=yes 14178 ;; 14179 esac 14180 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14181 hardcode_libdir_separator_CXX=: 14182 inherit_rpath_CXX=yes 14183 ;; 14184 14185 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14186 case $cc_basename in 14187 KCC*) 14188 # Kuck and Associates, Inc. (KAI) C++ Compiler 14189 14190 # KCC will only create a shared library if the output file 14191 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14192 # to its proper name (with version) after linking. 14193 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' 14194 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' 14195 # Commands to make compiler produce verbose output that lists 14196 # what "hidden" libraries, object files and flags are used when 14197 # linking a shared library. 14198 # 14199 # There doesn't appear to be a way to prevent this compiler from 14200 # explicitly linking system object files so we need to strip them 14201 # from the output so that they don't get included in the library 14202 # dependencies. 14203 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"' 14204 14205 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14206 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14207 14208 # Archives containing C++ object files must be created using 14209 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14210 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14211 ;; 14212 icpc* | ecpc* ) 14213 # Intel C++ 14214 with_gnu_ld=yes 14215 # version 8.0 and above of icpc choke on multiply defined symbols 14216 # if we add $predep_objects and $postdep_objects, however 7.1 and 14217 # earlier do not add the objects themselves. 14218 case `$CC -V 2>&1` in 14219 *"Version 7."*) 14220 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14221 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' 14222 ;; 14223 *) # Version 8.0 or newer 14224 tmp_idyn= 14225 case $host_cpu in 14226 ia64*) tmp_idyn=' -i_dynamic';; 14227 esac 14228 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14229 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' 14230 ;; 14231 esac 14232 archive_cmds_need_lc_CXX=no 14233 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14234 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14235 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14236 ;; 14237 pgCC* | pgcpp*) 14238 # Portland Group C++ compiler 14239 case `$CC -V` in 14240 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14241 prelink_cmds_CXX='tpldir=Template.dir~ 14242 rm -rf $tpldir~ 14243 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14244 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14245 old_archive_cmds_CXX='tpldir=Template.dir~ 14246 rm -rf $tpldir~ 14247 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14248 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14249 $RANLIB $oldlib' 14250 archive_cmds_CXX='tpldir=Template.dir~ 14251 rm -rf $tpldir~ 14252 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14253 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14254 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14255 rm -rf $tpldir~ 14256 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14257 $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' 14258 ;; 14259 *) # Version 6 and above use weak symbols 14260 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14261 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' 14262 ;; 14263 esac 14264 14265 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14266 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14267 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' 14268 ;; 14269 cxx*) 14270 # Compaq C++ 14271 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14272 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' 14273 14274 runpath_var=LD_RUN_PATH 14275 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14276 hardcode_libdir_separator_CXX=: 14277 14278 # Commands to make compiler produce verbose output that lists 14279 # what "hidden" libraries, object files and flags are used when 14280 # linking a shared library. 14281 # 14282 # There doesn't appear to be a way to prevent this compiler from 14283 # explicitly linking system object files so we need to strip them 14284 # from the output so that they don't get included in the library 14285 # dependencies. 14286 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' 14287 ;; 14288 xl* | mpixl* | bgxl*) 14289 # IBM XL 8.0 on PPC, with GNU ld 14290 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14291 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14292 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14293 if test yes = "$supports_anon_versioning"; then 14294 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14295 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14296 echo "local: *; };" >> $output_objdir/$libname.ver~ 14297 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14298 fi 14299 ;; 14300 *) 14301 case `$CC -V 2>&1 | sed 5q` in 14302 *Sun\ C*) 14303 # Sun C++ 5.9 14304 no_undefined_flag_CXX=' -zdefs' 14305 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14306 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' 14307 hardcode_libdir_flag_spec_CXX='-R$libdir' 14308 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' 14309 compiler_needs_object_CXX=yes 14310 14311 # Not sure whether something based on 14312 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14313 # would be better. 14314 output_verbose_link_cmd='func_echo_all' 14315 14316 # Archives containing C++ object files must be created using 14317 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14318 # necessary to make sure instantiated templates are included 14319 # in the archive. 14320 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14321 ;; 14322 esac 14323 ;; 14324 esac 14325 ;; 14326 14327 lynxos*) 14328 # FIXME: insert proper C++ library support 14329 ld_shlibs_CXX=no 14330 ;; 14331 14332 m88k*) 14333 # FIXME: insert proper C++ library support 14334 ld_shlibs_CXX=no 14335 ;; 14336 14337 mvs*) 14338 case $cc_basename in 14339 cxx*) 14340 # FIXME: insert proper C++ library support 14341 ld_shlibs_CXX=no 14342 ;; 14343 *) 14344 # FIXME: insert proper C++ library support 14345 ld_shlibs_CXX=no 14346 ;; 14347 esac 14348 ;; 14349 14350 netbsd*) 14351 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14352 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14353 wlarc= 14354 hardcode_libdir_flag_spec_CXX='-R$libdir' 14355 hardcode_direct_CXX=yes 14356 hardcode_shlibpath_var_CXX=no 14357 fi 14358 # Workaround some broken pre-1.5 toolchains 14359 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14360 ;; 14361 14362 *nto* | *qnx*) 14363 ld_shlibs_CXX=yes 14364 ;; 14365 14366 openbsd* | bitrig*) 14367 if test -f /usr/libexec/ld.so; then 14368 hardcode_direct_CXX=yes 14369 hardcode_shlibpath_var_CXX=no 14370 hardcode_direct_absolute_CXX=yes 14371 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14372 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14373 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14374 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14375 export_dynamic_flag_spec_CXX='$wl-E' 14376 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14377 fi 14378 output_verbose_link_cmd=func_echo_all 14379 else 14380 ld_shlibs_CXX=no 14381 fi 14382 ;; 14383 14384 osf3* | osf4* | osf5*) 14385 case $cc_basename in 14386 KCC*) 14387 # Kuck and Associates, Inc. (KAI) C++ Compiler 14388 14389 # KCC will only create a shared library if the output file 14390 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14391 # to its proper name (with version) after linking. 14392 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' 14393 14394 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14395 hardcode_libdir_separator_CXX=: 14396 14397 # Archives containing C++ object files must be created using 14398 # the KAI C++ compiler. 14399 case $host in 14400 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14401 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14402 esac 14403 ;; 14404 RCC*) 14405 # Rational C++ 2.4.1 14406 # FIXME: insert proper C++ library support 14407 ld_shlibs_CXX=no 14408 ;; 14409 cxx*) 14410 case $host in 14411 osf3*) 14412 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14413 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' 14414 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14415 ;; 14416 *) 14417 allow_undefined_flag_CXX=' -expect_unresolved \*' 14418 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' 14419 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14420 echo "-hidden">> $lib.exp~ 14421 $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~ 14422 $RM $lib.exp' 14423 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14424 ;; 14425 esac 14426 14427 hardcode_libdir_separator_CXX=: 14428 14429 # Commands to make compiler produce verbose output that lists 14430 # what "hidden" libraries, object files and flags are used when 14431 # linking a shared library. 14432 # 14433 # There doesn't appear to be a way to prevent this compiler from 14434 # explicitly linking system object files so we need to strip them 14435 # from the output so that they don't get included in the library 14436 # dependencies. 14437 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"' 14438 ;; 14439 *) 14440 if test yes,no = "$GXX,$with_gnu_ld"; then 14441 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14442 case $host in 14443 osf3*) 14444 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' 14445 ;; 14446 *) 14447 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' 14448 ;; 14449 esac 14450 14451 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14452 hardcode_libdir_separator_CXX=: 14453 14454 # Commands to make compiler produce verbose output that lists 14455 # what "hidden" libraries, object files and flags are used when 14456 # linking a shared library. 14457 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14458 14459 else 14460 # FIXME: insert proper C++ library support 14461 ld_shlibs_CXX=no 14462 fi 14463 ;; 14464 esac 14465 ;; 14466 14467 psos*) 14468 # FIXME: insert proper C++ library support 14469 ld_shlibs_CXX=no 14470 ;; 14471 14472 sunos4*) 14473 case $cc_basename in 14474 CC*) 14475 # Sun C++ 4.x 14476 # FIXME: insert proper C++ library support 14477 ld_shlibs_CXX=no 14478 ;; 14479 lcc*) 14480 # Lucid 14481 # FIXME: insert proper C++ library support 14482 ld_shlibs_CXX=no 14483 ;; 14484 *) 14485 # FIXME: insert proper C++ library support 14486 ld_shlibs_CXX=no 14487 ;; 14488 esac 14489 ;; 14490 14491 solaris*) 14492 case $cc_basename in 14493 CC* | sunCC*) 14494 # Sun C++ 4.2, 5.x and Centerline C++ 14495 archive_cmds_need_lc_CXX=yes 14496 no_undefined_flag_CXX=' -zdefs' 14497 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14498 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14499 $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' 14500 14501 hardcode_libdir_flag_spec_CXX='-R$libdir' 14502 hardcode_shlibpath_var_CXX=no 14503 case $host_os in 14504 solaris2.[0-5] | solaris2.[0-5].*) ;; 14505 *) 14506 # The compiler driver will combine and reorder linker options, 14507 # but understands '-z linker_flag'. 14508 # Supported since Solaris 2.6 (maybe 2.5.1?) 14509 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14510 ;; 14511 esac 14512 link_all_deplibs_CXX=yes 14513 14514 output_verbose_link_cmd='func_echo_all' 14515 14516 # Archives containing C++ object files must be created using 14517 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14518 # necessary to make sure instantiated templates are included 14519 # in the archive. 14520 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14521 ;; 14522 gcx*) 14523 # Green Hills C++ Compiler 14524 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14525 14526 # The C++ compiler must be used to create the archive. 14527 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14528 ;; 14529 *) 14530 # GNU C++ compiler with Solaris linker 14531 if test yes,no = "$GXX,$with_gnu_ld"; then 14532 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14533 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14534 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14535 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14536 $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' 14537 14538 # Commands to make compiler produce verbose output that lists 14539 # what "hidden" libraries, object files and flags are used when 14540 # linking a shared library. 14541 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14542 else 14543 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14544 # platform. 14545 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14546 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14547 $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' 14548 14549 # Commands to make compiler produce verbose output that lists 14550 # what "hidden" libraries, object files and flags are used when 14551 # linking a shared library. 14552 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14553 fi 14554 14555 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14556 case $host_os in 14557 solaris2.[0-5] | solaris2.[0-5].*) ;; 14558 *) 14559 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14560 ;; 14561 esac 14562 fi 14563 ;; 14564 esac 14565 ;; 14566 14567 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14568 no_undefined_flag_CXX='$wl-z,text' 14569 archive_cmds_need_lc_CXX=no 14570 hardcode_shlibpath_var_CXX=no 14571 runpath_var='LD_RUN_PATH' 14572 14573 case $cc_basename in 14574 CC*) 14575 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14576 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14577 ;; 14578 *) 14579 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14580 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14581 ;; 14582 esac 14583 ;; 14584 14585 sysv5* | sco3.2v5* | sco5v6*) 14586 # Note: We CANNOT use -z defs as we might desire, because we do not 14587 # link with -lc, and that would cause any symbols used from libc to 14588 # always be unresolved, which means just about no library would 14589 # ever link correctly. If we're not using GNU ld we use -z text 14590 # though, which does catch some bad symbols but isn't as heavy-handed 14591 # as -z defs. 14592 no_undefined_flag_CXX='$wl-z,text' 14593 allow_undefined_flag_CXX='$wl-z,nodefs' 14594 archive_cmds_need_lc_CXX=no 14595 hardcode_shlibpath_var_CXX=no 14596 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14597 hardcode_libdir_separator_CXX=':' 14598 link_all_deplibs_CXX=yes 14599 export_dynamic_flag_spec_CXX='$wl-Bexport' 14600 runpath_var='LD_RUN_PATH' 14601 14602 case $cc_basename in 14603 CC*) 14604 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14605 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14606 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14607 '"$old_archive_cmds_CXX" 14608 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14609 '"$reload_cmds_CXX" 14610 ;; 14611 *) 14612 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14613 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14614 ;; 14615 esac 14616 ;; 14617 14618 tandem*) 14619 case $cc_basename in 14620 NCC*) 14621 # NonStop-UX NCC 3.20 14622 # FIXME: insert proper C++ library support 14623 ld_shlibs_CXX=no 14624 ;; 14625 *) 14626 # FIXME: insert proper C++ library support 14627 ld_shlibs_CXX=no 14628 ;; 14629 esac 14630 ;; 14631 14632 vxworks*) 14633 # FIXME: insert proper C++ library support 14634 ld_shlibs_CXX=no 14635 ;; 14636 14637 *) 14638 # FIXME: insert proper C++ library support 14639 ld_shlibs_CXX=no 14640 ;; 14641 esac 14642 14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14644$as_echo "$ld_shlibs_CXX" >&6; } 14645 test no = "$ld_shlibs_CXX" && can_build_shared=no 14646 14647 GCC_CXX=$GXX 14648 LD_CXX=$LD 14649 14650 ## CAVEAT EMPTOR: 14651 ## There is no encapsulation within the following macros, do not change 14652 ## the running order or otherwise move them around unless you know exactly 14653 ## what you are doing... 14654 # Dependencies to place before and after the object being linked: 14655predep_objects_CXX= 14656postdep_objects_CXX= 14657predeps_CXX= 14658postdeps_CXX= 14659compiler_lib_search_path_CXX= 14660 14661cat > conftest.$ac_ext <<_LT_EOF 14662class Foo 14663{ 14664public: 14665 Foo (void) { a = 0; } 14666private: 14667 int a; 14668}; 14669_LT_EOF 14670 14671 14672_lt_libdeps_save_CFLAGS=$CFLAGS 14673case "$CC $CFLAGS " in #( 14674*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14675*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14676*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14677esac 14678 14679if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14680 (eval $ac_compile) 2>&5 14681 ac_status=$? 14682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14683 test $ac_status = 0; }; then 14684 # Parse the compiler output and extract the necessary 14685 # objects, libraries and library flags. 14686 14687 # Sentinel used to keep track of whether or not we are before 14688 # the conftest object file. 14689 pre_test_object_deps_done=no 14690 14691 for p in `eval "$output_verbose_link_cmd"`; do 14692 case $prev$p in 14693 14694 -L* | -R* | -l*) 14695 # Some compilers place space between "-{L,R}" and the path. 14696 # Remove the space. 14697 if test x-L = "$p" || 14698 test x-R = "$p"; then 14699 prev=$p 14700 continue 14701 fi 14702 14703 # Expand the sysroot to ease extracting the directories later. 14704 if test -z "$prev"; then 14705 case $p in 14706 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14707 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14708 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14709 esac 14710 fi 14711 case $p in 14712 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14713 esac 14714 if test no = "$pre_test_object_deps_done"; then 14715 case $prev in 14716 -L | -R) 14717 # Internal compiler library paths should come after those 14718 # provided the user. The postdeps already come after the 14719 # user supplied libs so there is no need to process them. 14720 if test -z "$compiler_lib_search_path_CXX"; then 14721 compiler_lib_search_path_CXX=$prev$p 14722 else 14723 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14724 fi 14725 ;; 14726 # The "-l" case would never come before the object being 14727 # linked, so don't bother handling this case. 14728 esac 14729 else 14730 if test -z "$postdeps_CXX"; then 14731 postdeps_CXX=$prev$p 14732 else 14733 postdeps_CXX="${postdeps_CXX} $prev$p" 14734 fi 14735 fi 14736 prev= 14737 ;; 14738 14739 *.lto.$objext) ;; # Ignore GCC LTO objects 14740 *.$objext) 14741 # This assumes that the test object file only shows up 14742 # once in the compiler output. 14743 if test "$p" = "conftest.$objext"; then 14744 pre_test_object_deps_done=yes 14745 continue 14746 fi 14747 14748 if test no = "$pre_test_object_deps_done"; then 14749 if test -z "$predep_objects_CXX"; then 14750 predep_objects_CXX=$p 14751 else 14752 predep_objects_CXX="$predep_objects_CXX $p" 14753 fi 14754 else 14755 if test -z "$postdep_objects_CXX"; then 14756 postdep_objects_CXX=$p 14757 else 14758 postdep_objects_CXX="$postdep_objects_CXX $p" 14759 fi 14760 fi 14761 ;; 14762 14763 *) ;; # Ignore the rest. 14764 14765 esac 14766 done 14767 14768 # Clean up. 14769 rm -f a.out a.exe 14770else 14771 echo "libtool.m4: error: problem compiling CXX test program" 14772fi 14773 14774$RM -f confest.$objext 14775CFLAGS=$_lt_libdeps_save_CFLAGS 14776 14777# PORTME: override above test on systems where it is broken 14778case $host_os in 14779interix[3-9]*) 14780 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14781 # hack all around it, let's just trust "g++" to DTRT. 14782 predep_objects_CXX= 14783 postdep_objects_CXX= 14784 postdeps_CXX= 14785 ;; 14786esac 14787 14788 14789case " $postdeps_CXX " in 14790*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14791esac 14792 compiler_lib_search_dirs_CXX= 14793if test -n "${compiler_lib_search_path_CXX}"; then 14794 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14795fi 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 lt_prog_compiler_wl_CXX= 14828lt_prog_compiler_pic_CXX= 14829lt_prog_compiler_static_CXX= 14830 14831 14832 # C++ specific cases for pic, static, wl, etc. 14833 if test yes = "$GXX"; then 14834 lt_prog_compiler_wl_CXX='-Wl,' 14835 lt_prog_compiler_static_CXX='-static' 14836 14837 case $host_os in 14838 aix*) 14839 # All AIX code is PIC. 14840 if test ia64 = "$host_cpu"; then 14841 # AIX 5 now supports IA64 processor 14842 lt_prog_compiler_static_CXX='-Bstatic' 14843 fi 14844 lt_prog_compiler_pic_CXX='-fPIC' 14845 ;; 14846 14847 amigaos*) 14848 case $host_cpu in 14849 powerpc) 14850 # see comment about AmigaOS4 .so support 14851 lt_prog_compiler_pic_CXX='-fPIC' 14852 ;; 14853 m68k) 14854 # FIXME: we need at least 68020 code to build shared libraries, but 14855 # adding the '-m68020' flag to GCC prevents building anything better, 14856 # like '-m68040'. 14857 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14858 ;; 14859 esac 14860 ;; 14861 14862 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14863 # PIC is the default for these OSes. 14864 ;; 14865 mingw* | cygwin* | os2* | pw32* | cegcc*) 14866 # This hack is so that the source file can tell whether it is being 14867 # built for inclusion in a dll (and should export symbols for example). 14868 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14869 # (--disable-auto-import) libraries 14870 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14871 case $host_os in 14872 os2*) 14873 lt_prog_compiler_static_CXX='$wl-static' 14874 ;; 14875 esac 14876 ;; 14877 darwin* | rhapsody*) 14878 # PIC is the default on this platform 14879 # Common symbols not allowed in MH_DYLIB files 14880 lt_prog_compiler_pic_CXX='-fno-common' 14881 ;; 14882 *djgpp*) 14883 # DJGPP does not support shared libraries at all 14884 lt_prog_compiler_pic_CXX= 14885 ;; 14886 haiku*) 14887 # PIC is the default for Haiku. 14888 # The "-static" flag exists, but is broken. 14889 lt_prog_compiler_static_CXX= 14890 ;; 14891 interix[3-9]*) 14892 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14893 # Instead, we relocate shared libraries at runtime. 14894 ;; 14895 sysv4*MP*) 14896 if test -d /usr/nec; then 14897 lt_prog_compiler_pic_CXX=-Kconform_pic 14898 fi 14899 ;; 14900 hpux*) 14901 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14902 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14903 # sets the default TLS model and affects inlining. 14904 case $host_cpu in 14905 hppa*64*) 14906 ;; 14907 *) 14908 lt_prog_compiler_pic_CXX='-fPIC' 14909 ;; 14910 esac 14911 ;; 14912 *qnx* | *nto*) 14913 # QNX uses GNU C++, but need to define -shared option too, otherwise 14914 # it will coredump. 14915 lt_prog_compiler_pic_CXX='-fPIC -shared' 14916 ;; 14917 *) 14918 lt_prog_compiler_pic_CXX='-fPIC' 14919 ;; 14920 esac 14921 else 14922 case $host_os in 14923 aix[4-9]*) 14924 # All AIX code is PIC. 14925 if test ia64 = "$host_cpu"; then 14926 # AIX 5 now supports IA64 processor 14927 lt_prog_compiler_static_CXX='-Bstatic' 14928 else 14929 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14930 fi 14931 ;; 14932 chorus*) 14933 case $cc_basename in 14934 cxch68*) 14935 # Green Hills C++ Compiler 14936 # _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" 14937 ;; 14938 esac 14939 ;; 14940 mingw* | cygwin* | os2* | pw32* | cegcc*) 14941 # This hack is so that the source file can tell whether it is being 14942 # built for inclusion in a dll (and should export symbols for example). 14943 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14944 ;; 14945 dgux*) 14946 case $cc_basename in 14947 ec++*) 14948 lt_prog_compiler_pic_CXX='-KPIC' 14949 ;; 14950 ghcx*) 14951 # Green Hills C++ Compiler 14952 lt_prog_compiler_pic_CXX='-pic' 14953 ;; 14954 *) 14955 ;; 14956 esac 14957 ;; 14958 freebsd* | dragonfly*) 14959 # FreeBSD uses GNU C++ 14960 ;; 14961 hpux9* | hpux10* | hpux11*) 14962 case $cc_basename in 14963 CC*) 14964 lt_prog_compiler_wl_CXX='-Wl,' 14965 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14966 if test ia64 != "$host_cpu"; then 14967 lt_prog_compiler_pic_CXX='+Z' 14968 fi 14969 ;; 14970 aCC*) 14971 lt_prog_compiler_wl_CXX='-Wl,' 14972 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14973 case $host_cpu in 14974 hppa*64*|ia64*) 14975 # +Z the default 14976 ;; 14977 *) 14978 lt_prog_compiler_pic_CXX='+Z' 14979 ;; 14980 esac 14981 ;; 14982 *) 14983 ;; 14984 esac 14985 ;; 14986 interix*) 14987 # This is c89, which is MS Visual C++ (no shared libs) 14988 # Anyone wants to do a port? 14989 ;; 14990 irix5* | irix6* | nonstopux*) 14991 case $cc_basename in 14992 CC*) 14993 lt_prog_compiler_wl_CXX='-Wl,' 14994 lt_prog_compiler_static_CXX='-non_shared' 14995 # CC pic flag -KPIC is the default. 14996 ;; 14997 *) 14998 ;; 14999 esac 15000 ;; 15001 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15002 case $cc_basename in 15003 KCC*) 15004 # KAI C++ Compiler 15005 lt_prog_compiler_wl_CXX='--backend -Wl,' 15006 lt_prog_compiler_pic_CXX='-fPIC' 15007 ;; 15008 ecpc* ) 15009 # old Intel C++ for x86_64, which still supported -KPIC. 15010 lt_prog_compiler_wl_CXX='-Wl,' 15011 lt_prog_compiler_pic_CXX='-KPIC' 15012 lt_prog_compiler_static_CXX='-static' 15013 ;; 15014 icpc* ) 15015 # Intel C++, used to be incompatible with GCC. 15016 # ICC 10 doesn't accept -KPIC any more. 15017 lt_prog_compiler_wl_CXX='-Wl,' 15018 lt_prog_compiler_pic_CXX='-fPIC' 15019 lt_prog_compiler_static_CXX='-static' 15020 ;; 15021 pgCC* | pgcpp*) 15022 # Portland Group C++ compiler 15023 lt_prog_compiler_wl_CXX='-Wl,' 15024 lt_prog_compiler_pic_CXX='-fpic' 15025 lt_prog_compiler_static_CXX='-Bstatic' 15026 ;; 15027 cxx*) 15028 # Compaq C++ 15029 # Make sure the PIC flag is empty. It appears that all Alpha 15030 # Linux and Compaq Tru64 Unix objects are PIC. 15031 lt_prog_compiler_pic_CXX= 15032 lt_prog_compiler_static_CXX='-non_shared' 15033 ;; 15034 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15035 # IBM XL 8.0, 9.0 on PPC and BlueGene 15036 lt_prog_compiler_wl_CXX='-Wl,' 15037 lt_prog_compiler_pic_CXX='-qpic' 15038 lt_prog_compiler_static_CXX='-qstaticlink' 15039 ;; 15040 *) 15041 case `$CC -V 2>&1 | sed 5q` in 15042 *Sun\ C*) 15043 # Sun C++ 5.9 15044 lt_prog_compiler_pic_CXX='-KPIC' 15045 lt_prog_compiler_static_CXX='-Bstatic' 15046 lt_prog_compiler_wl_CXX='-Qoption ld ' 15047 ;; 15048 esac 15049 ;; 15050 esac 15051 ;; 15052 lynxos*) 15053 ;; 15054 m88k*) 15055 ;; 15056 mvs*) 15057 case $cc_basename in 15058 cxx*) 15059 lt_prog_compiler_pic_CXX='-W c,exportall' 15060 ;; 15061 *) 15062 ;; 15063 esac 15064 ;; 15065 netbsd*) 15066 ;; 15067 *qnx* | *nto*) 15068 # QNX uses GNU C++, but need to define -shared option too, otherwise 15069 # it will coredump. 15070 lt_prog_compiler_pic_CXX='-fPIC -shared' 15071 ;; 15072 osf3* | osf4* | osf5*) 15073 case $cc_basename in 15074 KCC*) 15075 lt_prog_compiler_wl_CXX='--backend -Wl,' 15076 ;; 15077 RCC*) 15078 # Rational C++ 2.4.1 15079 lt_prog_compiler_pic_CXX='-pic' 15080 ;; 15081 cxx*) 15082 # Digital/Compaq C++ 15083 lt_prog_compiler_wl_CXX='-Wl,' 15084 # Make sure the PIC flag is empty. It appears that all Alpha 15085 # Linux and Compaq Tru64 Unix objects are PIC. 15086 lt_prog_compiler_pic_CXX= 15087 lt_prog_compiler_static_CXX='-non_shared' 15088 ;; 15089 *) 15090 ;; 15091 esac 15092 ;; 15093 psos*) 15094 ;; 15095 solaris*) 15096 case $cc_basename in 15097 CC* | sunCC*) 15098 # Sun C++ 4.2, 5.x and Centerline C++ 15099 lt_prog_compiler_pic_CXX='-KPIC' 15100 lt_prog_compiler_static_CXX='-Bstatic' 15101 lt_prog_compiler_wl_CXX='-Qoption ld ' 15102 ;; 15103 gcx*) 15104 # Green Hills C++ Compiler 15105 lt_prog_compiler_pic_CXX='-PIC' 15106 ;; 15107 *) 15108 ;; 15109 esac 15110 ;; 15111 sunos4*) 15112 case $cc_basename in 15113 CC*) 15114 # Sun C++ 4.x 15115 lt_prog_compiler_pic_CXX='-pic' 15116 lt_prog_compiler_static_CXX='-Bstatic' 15117 ;; 15118 lcc*) 15119 # Lucid 15120 lt_prog_compiler_pic_CXX='-pic' 15121 ;; 15122 *) 15123 ;; 15124 esac 15125 ;; 15126 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15127 case $cc_basename in 15128 CC*) 15129 lt_prog_compiler_wl_CXX='-Wl,' 15130 lt_prog_compiler_pic_CXX='-KPIC' 15131 lt_prog_compiler_static_CXX='-Bstatic' 15132 ;; 15133 esac 15134 ;; 15135 tandem*) 15136 case $cc_basename in 15137 NCC*) 15138 # NonStop-UX NCC 3.20 15139 lt_prog_compiler_pic_CXX='-KPIC' 15140 ;; 15141 *) 15142 ;; 15143 esac 15144 ;; 15145 vxworks*) 15146 ;; 15147 *) 15148 lt_prog_compiler_can_build_shared_CXX=no 15149 ;; 15150 esac 15151 fi 15152 15153case $host_os in 15154 # For platforms that do not support PIC, -DPIC is meaningless: 15155 *djgpp*) 15156 lt_prog_compiler_pic_CXX= 15157 ;; 15158 *) 15159 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15160 ;; 15161esac 15162 15163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15164$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15165if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15166 $as_echo_n "(cached) " >&6 15167else 15168 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15169fi 15170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15171$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15172lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15173 15174# 15175# Check to make sure the PIC flag actually works. 15176# 15177if test -n "$lt_prog_compiler_pic_CXX"; then 15178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15179$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15180if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15181 $as_echo_n "(cached) " >&6 15182else 15183 lt_cv_prog_compiler_pic_works_CXX=no 15184 ac_outfile=conftest.$ac_objext 15185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15186 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15187 # Insert the option either (1) after the last *FLAGS variable, or 15188 # (2) before a word containing "conftest.", or (3) at the end. 15189 # Note that $ac_compile itself does not contain backslashes and begins 15190 # with a dollar sign (not a hyphen), so the echo should work correctly. 15191 # The option is referenced via a variable to avoid confusing sed. 15192 lt_compile=`echo "$ac_compile" | $SED \ 15193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15195 -e 's:$: $lt_compiler_flag:'` 15196 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15197 (eval "$lt_compile" 2>conftest.err) 15198 ac_status=$? 15199 cat conftest.err >&5 15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15201 if (exit $ac_status) && test -s "$ac_outfile"; then 15202 # The compiler can only warn and ignore the option if not recognized 15203 # So say no if there are warnings other than the usual output. 15204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15206 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15207 lt_cv_prog_compiler_pic_works_CXX=yes 15208 fi 15209 fi 15210 $RM conftest* 15211 15212fi 15213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15214$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15215 15216if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15217 case $lt_prog_compiler_pic_CXX in 15218 "" | " "*) ;; 15219 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15220 esac 15221else 15222 lt_prog_compiler_pic_CXX= 15223 lt_prog_compiler_can_build_shared_CXX=no 15224fi 15225 15226fi 15227 15228 15229 15230 15231 15232# 15233# Check to make sure the static flag actually works. 15234# 15235wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15237$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15238if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15239 $as_echo_n "(cached) " >&6 15240else 15241 lt_cv_prog_compiler_static_works_CXX=no 15242 save_LDFLAGS=$LDFLAGS 15243 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15244 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15245 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15246 # The linker can only warn and ignore the option if not recognized 15247 # So say no if there are warnings 15248 if test -s conftest.err; then 15249 # Append any errors to the config.log. 15250 cat conftest.err 1>&5 15251 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15252 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15253 if diff conftest.exp conftest.er2 >/dev/null; then 15254 lt_cv_prog_compiler_static_works_CXX=yes 15255 fi 15256 else 15257 lt_cv_prog_compiler_static_works_CXX=yes 15258 fi 15259 fi 15260 $RM -r conftest* 15261 LDFLAGS=$save_LDFLAGS 15262 15263fi 15264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15265$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15266 15267if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15268 : 15269else 15270 lt_prog_compiler_static_CXX= 15271fi 15272 15273 15274 15275 15276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15277$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15278if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15279 $as_echo_n "(cached) " >&6 15280else 15281 lt_cv_prog_compiler_c_o_CXX=no 15282 $RM -r conftest 2>/dev/null 15283 mkdir conftest 15284 cd conftest 15285 mkdir out 15286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15287 15288 lt_compiler_flag="-o out/conftest2.$ac_objext" 15289 # Insert the option either (1) after the last *FLAGS variable, or 15290 # (2) before a word containing "conftest.", or (3) at the end. 15291 # Note that $ac_compile itself does not contain backslashes and begins 15292 # with a dollar sign (not a hyphen), so the echo should work correctly. 15293 lt_compile=`echo "$ac_compile" | $SED \ 15294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15296 -e 's:$: $lt_compiler_flag:'` 15297 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15298 (eval "$lt_compile" 2>out/conftest.err) 15299 ac_status=$? 15300 cat out/conftest.err >&5 15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15302 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15303 then 15304 # The compiler can only warn and ignore the option if not recognized 15305 # So say no if there are warnings 15306 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15307 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15308 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15309 lt_cv_prog_compiler_c_o_CXX=yes 15310 fi 15311 fi 15312 chmod u+w . 2>&5 15313 $RM conftest* 15314 # SGI C++ compiler will create directory out/ii_files/ for 15315 # template instantiation 15316 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15317 $RM out/* && rmdir out 15318 cd .. 15319 $RM -r conftest 15320 $RM conftest* 15321 15322fi 15323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15324$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15325 15326 15327 15328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15329$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15330if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15331 $as_echo_n "(cached) " >&6 15332else 15333 lt_cv_prog_compiler_c_o_CXX=no 15334 $RM -r conftest 2>/dev/null 15335 mkdir conftest 15336 cd conftest 15337 mkdir out 15338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15339 15340 lt_compiler_flag="-o out/conftest2.$ac_objext" 15341 # Insert the option either (1) after the last *FLAGS variable, or 15342 # (2) before a word containing "conftest.", or (3) at the end. 15343 # Note that $ac_compile itself does not contain backslashes and begins 15344 # with a dollar sign (not a hyphen), so the echo should work correctly. 15345 lt_compile=`echo "$ac_compile" | $SED \ 15346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15348 -e 's:$: $lt_compiler_flag:'` 15349 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15350 (eval "$lt_compile" 2>out/conftest.err) 15351 ac_status=$? 15352 cat out/conftest.err >&5 15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15354 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15355 then 15356 # The compiler can only warn and ignore the option if not recognized 15357 # So say no if there are warnings 15358 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15359 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15360 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15361 lt_cv_prog_compiler_c_o_CXX=yes 15362 fi 15363 fi 15364 chmod u+w . 2>&5 15365 $RM conftest* 15366 # SGI C++ compiler will create directory out/ii_files/ for 15367 # template instantiation 15368 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15369 $RM out/* && rmdir out 15370 cd .. 15371 $RM -r conftest 15372 $RM conftest* 15373 15374fi 15375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15376$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15377 15378 15379 15380 15381hard_links=nottested 15382if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15383 # do not overwrite the value of need_locks provided by the user 15384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15385$as_echo_n "checking if we can lock with hard links... " >&6; } 15386 hard_links=yes 15387 $RM conftest* 15388 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15389 touch conftest.a 15390 ln conftest.a conftest.b 2>&5 || hard_links=no 15391 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15393$as_echo "$hard_links" >&6; } 15394 if test no = "$hard_links"; then 15395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15396$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15397 need_locks=warn 15398 fi 15399else 15400 need_locks=no 15401fi 15402 15403 15404 15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15406$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15407 15408 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15409 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15410 case $host_os in 15411 aix[4-9]*) 15412 # If we're using GNU nm, then we don't want the "-C" option. 15413 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15414 # Without the "-l" option, or with the "-B" option, AIX nm treats 15415 # weak defined symbols like other global defined symbols, whereas 15416 # GNU nm marks them as "W". 15417 # While the 'weak' keyword is ignored in the Export File, we need 15418 # it in the Import File for the 'aix-soname' feature, so we have 15419 # to replace the "-B" option with "-P" for AIX nm. 15420 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15421 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' 15422 else 15423 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' 15424 fi 15425 ;; 15426 pw32*) 15427 export_symbols_cmds_CXX=$ltdll_cmds 15428 ;; 15429 cygwin* | mingw* | cegcc*) 15430 case $cc_basename in 15431 cl*) 15432 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15433 ;; 15434 *) 15435 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' 15436 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15437 ;; 15438 esac 15439 ;; 15440 *) 15441 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15442 ;; 15443 esac 15444 15445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15446$as_echo "$ld_shlibs_CXX" >&6; } 15447test no = "$ld_shlibs_CXX" && can_build_shared=no 15448 15449with_gnu_ld_CXX=$with_gnu_ld 15450 15451 15452 15453 15454 15455 15456# 15457# Do we need to explicitly link libc? 15458# 15459case "x$archive_cmds_need_lc_CXX" in 15460x|xyes) 15461 # Assume -lc should be added 15462 archive_cmds_need_lc_CXX=yes 15463 15464 if test yes,yes = "$GCC,$enable_shared"; then 15465 case $archive_cmds_CXX in 15466 *'~'*) 15467 # FIXME: we may have to deal with multi-command sequences. 15468 ;; 15469 '$CC '*) 15470 # Test whether the compiler implicitly links with -lc since on some 15471 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15472 # to ld, don't add -lc before -lgcc. 15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15474$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15475if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15476 $as_echo_n "(cached) " >&6 15477else 15478 $RM conftest* 15479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15480 15481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15482 (eval $ac_compile) 2>&5 15483 ac_status=$? 15484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15485 test $ac_status = 0; } 2>conftest.err; then 15486 soname=conftest 15487 lib=conftest 15488 libobjs=conftest.$ac_objext 15489 deplibs= 15490 wl=$lt_prog_compiler_wl_CXX 15491 pic_flag=$lt_prog_compiler_pic_CXX 15492 compiler_flags=-v 15493 linker_flags=-v 15494 verstring= 15495 output_objdir=. 15496 libname=conftest 15497 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15498 allow_undefined_flag_CXX= 15499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15500 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15501 ac_status=$? 15502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15503 test $ac_status = 0; } 15504 then 15505 lt_cv_archive_cmds_need_lc_CXX=no 15506 else 15507 lt_cv_archive_cmds_need_lc_CXX=yes 15508 fi 15509 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15510 else 15511 cat conftest.err 1>&5 15512 fi 15513 $RM conftest* 15514 15515fi 15516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15517$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15518 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15519 ;; 15520 esac 15521 fi 15522 ;; 15523esac 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15587$as_echo_n "checking dynamic linker characteristics... " >&6; } 15588 15589library_names_spec= 15590libname_spec='lib$name' 15591soname_spec= 15592shrext_cmds=.so 15593postinstall_cmds= 15594postuninstall_cmds= 15595finish_cmds= 15596finish_eval= 15597shlibpath_var= 15598shlibpath_overrides_runpath=unknown 15599version_type=none 15600dynamic_linker="$host_os ld.so" 15601sys_lib_dlsearch_path_spec="/lib /usr/lib" 15602need_lib_prefix=unknown 15603hardcode_into_libs=no 15604 15605# when you set need_version to no, make sure it does not cause -set_version 15606# flags to be left without arguments 15607need_version=unknown 15608 15609 15610 15611case $host_os in 15612aix3*) 15613 version_type=linux # correct to gnu/linux during the next big refactor 15614 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15615 shlibpath_var=LIBPATH 15616 15617 # AIX 3 has no versioning support, so we append a major version to the name. 15618 soname_spec='$libname$release$shared_ext$major' 15619 ;; 15620 15621aix[4-9]*) 15622 version_type=linux # correct to gnu/linux during the next big refactor 15623 need_lib_prefix=no 15624 need_version=no 15625 hardcode_into_libs=yes 15626 if test ia64 = "$host_cpu"; then 15627 # AIX 5 supports IA64 15628 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15629 shlibpath_var=LD_LIBRARY_PATH 15630 else 15631 # With GCC up to 2.95.x, collect2 would create an import file 15632 # for dependence libraries. The import file would start with 15633 # the line '#! .'. This would cause the generated library to 15634 # depend on '.', always an invalid library. This was fixed in 15635 # development snapshots of GCC prior to 3.0. 15636 case $host_os in 15637 aix4 | aix4.[01] | aix4.[01].*) 15638 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15639 echo ' yes ' 15640 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15641 : 15642 else 15643 can_build_shared=no 15644 fi 15645 ;; 15646 esac 15647 # Using Import Files as archive members, it is possible to support 15648 # filename-based versioning of shared library archives on AIX. While 15649 # this would work for both with and without runtime linking, it will 15650 # prevent static linking of such archives. So we do filename-based 15651 # shared library versioning with .so extension only, which is used 15652 # when both runtime linking and shared linking is enabled. 15653 # Unfortunately, runtime linking may impact performance, so we do 15654 # not want this to be the default eventually. Also, we use the 15655 # versioned .so libs for executables only if there is the -brtl 15656 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15657 # To allow for filename-based versioning support, we need to create 15658 # libNAME.so.V as an archive file, containing: 15659 # *) an Import File, referring to the versioned filename of the 15660 # archive as well as the shared archive member, telling the 15661 # bitwidth (32 or 64) of that shared object, and providing the 15662 # list of exported symbols of that shared object, eventually 15663 # decorated with the 'weak' keyword 15664 # *) the shared object with the F_LOADONLY flag set, to really avoid 15665 # it being seen by the linker. 15666 # At run time we better use the real file rather than another symlink, 15667 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15668 15669 case $with_aix_soname,$aix_use_runtimelinking in 15670 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15671 # soname into executable. Probably we can add versioning support to 15672 # collect2, so additional links can be useful in future. 15673 aix,yes) # traditional libtool 15674 dynamic_linker='AIX unversionable lib.so' 15675 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15676 # instead of lib<name>.a to let people know that these are not 15677 # typical AIX shared libraries. 15678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15679 ;; 15680 aix,no) # traditional AIX only 15681 dynamic_linker='AIX lib.a(lib.so.V)' 15682 # We preserve .a as extension for shared libraries through AIX4.2 15683 # and later when we are not doing run time linking. 15684 library_names_spec='$libname$release.a $libname.a' 15685 soname_spec='$libname$release$shared_ext$major' 15686 ;; 15687 svr4,*) # full svr4 only 15688 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15689 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15690 # We do not specify a path in Import Files, so LIBPATH fires. 15691 shlibpath_overrides_runpath=yes 15692 ;; 15693 *,yes) # both, prefer svr4 15694 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15695 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15696 # unpreferred sharedlib libNAME.a needs extra handling 15697 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"' 15698 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"' 15699 # We do not specify a path in Import Files, so LIBPATH fires. 15700 shlibpath_overrides_runpath=yes 15701 ;; 15702 *,no) # both, prefer aix 15703 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15704 library_names_spec='$libname$release.a $libname.a' 15705 soname_spec='$libname$release$shared_ext$major' 15706 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15707 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)' 15708 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"' 15709 ;; 15710 esac 15711 shlibpath_var=LIBPATH 15712 fi 15713 ;; 15714 15715amigaos*) 15716 case $host_cpu in 15717 powerpc) 15718 # Since July 2007 AmigaOS4 officially supports .so libraries. 15719 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15721 ;; 15722 m68k) 15723 library_names_spec='$libname.ixlibrary $libname.a' 15724 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15725 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' 15726 ;; 15727 esac 15728 ;; 15729 15730beos*) 15731 library_names_spec='$libname$shared_ext' 15732 dynamic_linker="$host_os ld.so" 15733 shlibpath_var=LIBRARY_PATH 15734 ;; 15735 15736bsdi[45]*) 15737 version_type=linux # correct to gnu/linux during the next big refactor 15738 need_version=no 15739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15740 soname_spec='$libname$release$shared_ext$major' 15741 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15742 shlibpath_var=LD_LIBRARY_PATH 15743 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15744 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15745 # the default ld.so.conf also contains /usr/contrib/lib and 15746 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15747 # libtool to hard-code these into programs 15748 ;; 15749 15750cygwin* | mingw* | pw32* | cegcc*) 15751 version_type=windows 15752 shrext_cmds=.dll 15753 need_version=no 15754 need_lib_prefix=no 15755 15756 case $GCC,$cc_basename in 15757 yes,*) 15758 # gcc 15759 library_names_spec='$libname.dll.a' 15760 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15761 postinstall_cmds='base_file=`basename \$file`~ 15762 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15763 dldir=$destdir/`dirname \$dlpath`~ 15764 test -d \$dldir || mkdir -p \$dldir~ 15765 $install_prog $dir/$dlname \$dldir/$dlname~ 15766 chmod a+x \$dldir/$dlname~ 15767 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15768 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15769 fi' 15770 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15771 dlpath=$dir/\$dldll~ 15772 $RM \$dlpath' 15773 shlibpath_overrides_runpath=yes 15774 15775 case $host_os in 15776 cygwin*) 15777 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15778 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15779 15780 ;; 15781 mingw* | cegcc*) 15782 # MinGW DLLs use traditional 'lib' prefix 15783 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15784 ;; 15785 pw32*) 15786 # pw32 DLLs use 'pw' prefix rather than 'lib' 15787 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15788 ;; 15789 esac 15790 dynamic_linker='Win32 ld.exe' 15791 ;; 15792 15793 *,cl*) 15794 # Native MSVC 15795 libname_spec='$name' 15796 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15797 library_names_spec='$libname.dll.lib' 15798 15799 case $build_os in 15800 mingw*) 15801 sys_lib_search_path_spec= 15802 lt_save_ifs=$IFS 15803 IFS=';' 15804 for lt_path in $LIB 15805 do 15806 IFS=$lt_save_ifs 15807 # Let DOS variable expansion print the short 8.3 style file name. 15808 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15809 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15810 done 15811 IFS=$lt_save_ifs 15812 # Convert to MSYS style. 15813 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15814 ;; 15815 cygwin*) 15816 # Convert to unix form, then to dos form, then back to unix form 15817 # but this time dos style (no spaces!) so that the unix form looks 15818 # like /cygdrive/c/PROGRA~1:/cygdr... 15819 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15820 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15821 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15822 ;; 15823 *) 15824 sys_lib_search_path_spec=$LIB 15825 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15826 # It is most probably a Windows format PATH. 15827 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15828 else 15829 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15830 fi 15831 # FIXME: find the short name or the path components, as spaces are 15832 # common. (e.g. "Program Files" -> "PROGRA~1") 15833 ;; 15834 esac 15835 15836 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15837 postinstall_cmds='base_file=`basename \$file`~ 15838 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15839 dldir=$destdir/`dirname \$dlpath`~ 15840 test -d \$dldir || mkdir -p \$dldir~ 15841 $install_prog $dir/$dlname \$dldir/$dlname' 15842 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15843 dlpath=$dir/\$dldll~ 15844 $RM \$dlpath' 15845 shlibpath_overrides_runpath=yes 15846 dynamic_linker='Win32 link.exe' 15847 ;; 15848 15849 *) 15850 # Assume MSVC wrapper 15851 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15852 dynamic_linker='Win32 ld.exe' 15853 ;; 15854 esac 15855 # FIXME: first we should search . and the directory the executable is in 15856 shlibpath_var=PATH 15857 ;; 15858 15859darwin* | rhapsody*) 15860 dynamic_linker="$host_os dyld" 15861 version_type=darwin 15862 need_lib_prefix=no 15863 need_version=no 15864 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15865 soname_spec='$libname$release$major$shared_ext' 15866 shlibpath_overrides_runpath=yes 15867 shlibpath_var=DYLD_LIBRARY_PATH 15868 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15869 15870 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15871 ;; 15872 15873dgux*) 15874 version_type=linux # correct to gnu/linux during the next big refactor 15875 need_lib_prefix=no 15876 need_version=no 15877 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15878 soname_spec='$libname$release$shared_ext$major' 15879 shlibpath_var=LD_LIBRARY_PATH 15880 ;; 15881 15882freebsd* | dragonfly*) 15883 # DragonFly does not have aout. When/if they implement a new 15884 # versioning mechanism, adjust this. 15885 if test -x /usr/bin/objformat; then 15886 objformat=`/usr/bin/objformat` 15887 else 15888 case $host_os in 15889 freebsd[23].*) objformat=aout ;; 15890 *) objformat=elf ;; 15891 esac 15892 fi 15893 version_type=freebsd-$objformat 15894 case $version_type in 15895 freebsd-elf*) 15896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15897 soname_spec='$libname$release$shared_ext$major' 15898 need_version=no 15899 need_lib_prefix=no 15900 ;; 15901 freebsd-*) 15902 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15903 need_version=yes 15904 ;; 15905 esac 15906 shlibpath_var=LD_LIBRARY_PATH 15907 case $host_os in 15908 freebsd2.*) 15909 shlibpath_overrides_runpath=yes 15910 ;; 15911 freebsd3.[01]* | freebsdelf3.[01]*) 15912 shlibpath_overrides_runpath=yes 15913 hardcode_into_libs=yes 15914 ;; 15915 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15916 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15917 shlibpath_overrides_runpath=no 15918 hardcode_into_libs=yes 15919 ;; 15920 *) # from 4.6 on, and DragonFly 15921 shlibpath_overrides_runpath=yes 15922 hardcode_into_libs=yes 15923 ;; 15924 esac 15925 ;; 15926 15927haiku*) 15928 version_type=linux # correct to gnu/linux during the next big refactor 15929 need_lib_prefix=no 15930 need_version=no 15931 dynamic_linker="$host_os runtime_loader" 15932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15933 soname_spec='$libname$release$shared_ext$major' 15934 shlibpath_var=LIBRARY_PATH 15935 shlibpath_overrides_runpath=no 15936 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15937 hardcode_into_libs=yes 15938 ;; 15939 15940hpux9* | hpux10* | hpux11*) 15941 # Give a soname corresponding to the major version so that dld.sl refuses to 15942 # link against other versions. 15943 version_type=sunos 15944 need_lib_prefix=no 15945 need_version=no 15946 case $host_cpu in 15947 ia64*) 15948 shrext_cmds='.so' 15949 hardcode_into_libs=yes 15950 dynamic_linker="$host_os dld.so" 15951 shlibpath_var=LD_LIBRARY_PATH 15952 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15954 soname_spec='$libname$release$shared_ext$major' 15955 if test 32 = "$HPUX_IA64_MODE"; then 15956 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15957 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15958 else 15959 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15960 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15961 fi 15962 ;; 15963 hppa*64*) 15964 shrext_cmds='.sl' 15965 hardcode_into_libs=yes 15966 dynamic_linker="$host_os dld.sl" 15967 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15968 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15970 soname_spec='$libname$release$shared_ext$major' 15971 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15972 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15973 ;; 15974 *) 15975 shrext_cmds='.sl' 15976 dynamic_linker="$host_os dld.sl" 15977 shlibpath_var=SHLIB_PATH 15978 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15980 soname_spec='$libname$release$shared_ext$major' 15981 ;; 15982 esac 15983 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15984 postinstall_cmds='chmod 555 $lib' 15985 # or fails outright, so override atomically: 15986 install_override_mode=555 15987 ;; 15988 15989interix[3-9]*) 15990 version_type=linux # correct to gnu/linux during the next big refactor 15991 need_lib_prefix=no 15992 need_version=no 15993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15994 soname_spec='$libname$release$shared_ext$major' 15995 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15996 shlibpath_var=LD_LIBRARY_PATH 15997 shlibpath_overrides_runpath=no 15998 hardcode_into_libs=yes 15999 ;; 16000 16001irix5* | irix6* | nonstopux*) 16002 case $host_os in 16003 nonstopux*) version_type=nonstopux ;; 16004 *) 16005 if test yes = "$lt_cv_prog_gnu_ld"; then 16006 version_type=linux # correct to gnu/linux during the next big refactor 16007 else 16008 version_type=irix 16009 fi ;; 16010 esac 16011 need_lib_prefix=no 16012 need_version=no 16013 soname_spec='$libname$release$shared_ext$major' 16014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16015 case $host_os in 16016 irix5* | nonstopux*) 16017 libsuff= shlibsuff= 16018 ;; 16019 *) 16020 case $LD in # libtool.m4 will add one of these switches to LD 16021 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16022 libsuff= shlibsuff= libmagic=32-bit;; 16023 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16024 libsuff=32 shlibsuff=N32 libmagic=N32;; 16025 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16026 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16027 *) libsuff= shlibsuff= libmagic=never-match;; 16028 esac 16029 ;; 16030 esac 16031 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16032 shlibpath_overrides_runpath=no 16033 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16034 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16035 hardcode_into_libs=yes 16036 ;; 16037 16038# No shared lib support for Linux oldld, aout, or coff. 16039linux*oldld* | linux*aout* | linux*coff*) 16040 dynamic_linker=no 16041 ;; 16042 16043linux*android*) 16044 version_type=none # Android doesn't support versioned libraries. 16045 need_lib_prefix=no 16046 need_version=no 16047 library_names_spec='$libname$release$shared_ext' 16048 soname_spec='$libname$release$shared_ext' 16049 finish_cmds= 16050 shlibpath_var=LD_LIBRARY_PATH 16051 shlibpath_overrides_runpath=yes 16052 16053 # This implies no fast_install, which is unacceptable. 16054 # Some rework will be needed to allow for fast_install 16055 # before this can be enabled. 16056 hardcode_into_libs=yes 16057 16058 dynamic_linker='Android linker' 16059 # Don't embed -rpath directories since the linker doesn't support them. 16060 hardcode_libdir_flag_spec_CXX='-L$libdir' 16061 ;; 16062 16063# This must be glibc/ELF. 16064linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16065 version_type=linux # correct to gnu/linux during the next big refactor 16066 need_lib_prefix=no 16067 need_version=no 16068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16069 soname_spec='$libname$release$shared_ext$major' 16070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16071 shlibpath_var=LD_LIBRARY_PATH 16072 shlibpath_overrides_runpath=no 16073 16074 # Some binutils ld are patched to set DT_RUNPATH 16075 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16076 $as_echo_n "(cached) " >&6 16077else 16078 lt_cv_shlibpath_overrides_runpath=no 16079 save_LDFLAGS=$LDFLAGS 16080 save_libdir=$libdir 16081 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16082 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16084/* end confdefs.h. */ 16085 16086int 16087main () 16088{ 16089 16090 ; 16091 return 0; 16092} 16093_ACEOF 16094if ac_fn_cxx_try_link "$LINENO"; then : 16095 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16096 lt_cv_shlibpath_overrides_runpath=yes 16097fi 16098fi 16099rm -f core conftest.err conftest.$ac_objext \ 16100 conftest$ac_exeext conftest.$ac_ext 16101 LDFLAGS=$save_LDFLAGS 16102 libdir=$save_libdir 16103 16104fi 16105 16106 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16107 16108 # This implies no fast_install, which is unacceptable. 16109 # Some rework will be needed to allow for fast_install 16110 # before this can be enabled. 16111 hardcode_into_libs=yes 16112 16113 # Ideally, we could use ldconfig to report *all* directores which are 16114 # searched for libraries, however this is still not possible. Aside from not 16115 # being certain /sbin/ldconfig is available, command 16116 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16117 # even though it is searched at run-time. Try to do the best guess by 16118 # appending ld.so.conf contents (and includes) to the search path. 16119 if test -f /etc/ld.so.conf; then 16120 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' ' '` 16121 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16122 fi 16123 16124 # We used to test for /lib/ld.so.1 and disable shared libraries on 16125 # powerpc, because MkLinux only supported shared libraries with the 16126 # GNU dynamic linker. Since this was broken with cross compilers, 16127 # most powerpc-linux boxes support dynamic linking these days and 16128 # people can always --disable-shared, the test was removed, and we 16129 # assume the GNU/Linux dynamic linker is in use. 16130 dynamic_linker='GNU/Linux ld.so' 16131 ;; 16132 16133netbsd*) 16134 version_type=sunos 16135 need_lib_prefix=no 16136 need_version=no 16137 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16138 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16140 dynamic_linker='NetBSD (a.out) ld.so' 16141 else 16142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16143 soname_spec='$libname$release$shared_ext$major' 16144 dynamic_linker='NetBSD ld.elf_so' 16145 fi 16146 shlibpath_var=LD_LIBRARY_PATH 16147 shlibpath_overrides_runpath=yes 16148 hardcode_into_libs=yes 16149 ;; 16150 16151newsos6) 16152 version_type=linux # correct to gnu/linux during the next big refactor 16153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16154 shlibpath_var=LD_LIBRARY_PATH 16155 shlibpath_overrides_runpath=yes 16156 ;; 16157 16158*nto* | *qnx*) 16159 version_type=qnx 16160 need_lib_prefix=no 16161 need_version=no 16162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16163 soname_spec='$libname$release$shared_ext$major' 16164 shlibpath_var=LD_LIBRARY_PATH 16165 shlibpath_overrides_runpath=no 16166 hardcode_into_libs=yes 16167 dynamic_linker='ldqnx.so' 16168 ;; 16169 16170openbsd* | bitrig*) 16171 version_type=sunos 16172 sys_lib_dlsearch_path_spec=/usr/lib 16173 need_lib_prefix=no 16174 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16175 need_version=no 16176 else 16177 need_version=yes 16178 fi 16179 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16181 shlibpath_var=LD_LIBRARY_PATH 16182 shlibpath_overrides_runpath=yes 16183 ;; 16184 16185os2*) 16186 libname_spec='$name' 16187 version_type=windows 16188 shrext_cmds=.dll 16189 need_version=no 16190 need_lib_prefix=no 16191 # OS/2 can only load a DLL with a base name of 8 characters or less. 16192 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16193 v=$($ECHO $release$versuffix | tr -d .-); 16194 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16195 $ECHO $n$v`$shared_ext' 16196 library_names_spec='${libname}_dll.$libext' 16197 dynamic_linker='OS/2 ld.exe' 16198 shlibpath_var=BEGINLIBPATH 16199 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16200 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16201 postinstall_cmds='base_file=`basename \$file`~ 16202 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16203 dldir=$destdir/`dirname \$dlpath`~ 16204 test -d \$dldir || mkdir -p \$dldir~ 16205 $install_prog $dir/$dlname \$dldir/$dlname~ 16206 chmod a+x \$dldir/$dlname~ 16207 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16208 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16209 fi' 16210 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16211 dlpath=$dir/\$dldll~ 16212 $RM \$dlpath' 16213 ;; 16214 16215osf3* | osf4* | osf5*) 16216 version_type=osf 16217 need_lib_prefix=no 16218 need_version=no 16219 soname_spec='$libname$release$shared_ext$major' 16220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16221 shlibpath_var=LD_LIBRARY_PATH 16222 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16223 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16224 ;; 16225 16226rdos*) 16227 dynamic_linker=no 16228 ;; 16229 16230solaris*) 16231 version_type=linux # correct to gnu/linux during the next big refactor 16232 need_lib_prefix=no 16233 need_version=no 16234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16235 soname_spec='$libname$release$shared_ext$major' 16236 shlibpath_var=LD_LIBRARY_PATH 16237 shlibpath_overrides_runpath=yes 16238 hardcode_into_libs=yes 16239 # ldd complains unless libraries are executable 16240 postinstall_cmds='chmod +x $lib' 16241 ;; 16242 16243sunos4*) 16244 version_type=sunos 16245 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16246 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16247 shlibpath_var=LD_LIBRARY_PATH 16248 shlibpath_overrides_runpath=yes 16249 if test yes = "$with_gnu_ld"; then 16250 need_lib_prefix=no 16251 fi 16252 need_version=yes 16253 ;; 16254 16255sysv4 | sysv4.3*) 16256 version_type=linux # correct to gnu/linux during the next big refactor 16257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16258 soname_spec='$libname$release$shared_ext$major' 16259 shlibpath_var=LD_LIBRARY_PATH 16260 case $host_vendor in 16261 sni) 16262 shlibpath_overrides_runpath=no 16263 need_lib_prefix=no 16264 runpath_var=LD_RUN_PATH 16265 ;; 16266 siemens) 16267 need_lib_prefix=no 16268 ;; 16269 motorola) 16270 need_lib_prefix=no 16271 need_version=no 16272 shlibpath_overrides_runpath=no 16273 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16274 ;; 16275 esac 16276 ;; 16277 16278sysv4*MP*) 16279 if test -d /usr/nec; then 16280 version_type=linux # correct to gnu/linux during the next big refactor 16281 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16282 soname_spec='$libname$shared_ext.$major' 16283 shlibpath_var=LD_LIBRARY_PATH 16284 fi 16285 ;; 16286 16287sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16288 version_type=sco 16289 need_lib_prefix=no 16290 need_version=no 16291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16292 soname_spec='$libname$release$shared_ext$major' 16293 shlibpath_var=LD_LIBRARY_PATH 16294 shlibpath_overrides_runpath=yes 16295 hardcode_into_libs=yes 16296 if test yes = "$with_gnu_ld"; then 16297 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16298 else 16299 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16300 case $host_os in 16301 sco3.2v5*) 16302 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16303 ;; 16304 esac 16305 fi 16306 sys_lib_dlsearch_path_spec='/usr/lib' 16307 ;; 16308 16309tpf*) 16310 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16311 version_type=linux # correct to gnu/linux during the next big refactor 16312 need_lib_prefix=no 16313 need_version=no 16314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16315 shlibpath_var=LD_LIBRARY_PATH 16316 shlibpath_overrides_runpath=no 16317 hardcode_into_libs=yes 16318 ;; 16319 16320uts4*) 16321 version_type=linux # correct to gnu/linux during the next big refactor 16322 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16323 soname_spec='$libname$release$shared_ext$major' 16324 shlibpath_var=LD_LIBRARY_PATH 16325 ;; 16326 16327*) 16328 dynamic_linker=no 16329 ;; 16330esac 16331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16332$as_echo "$dynamic_linker" >&6; } 16333test no = "$dynamic_linker" && can_build_shared=no 16334 16335variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16336if test yes = "$GCC"; then 16337 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16338fi 16339 16340if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16341 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16342fi 16343 16344if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16345 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16346fi 16347 16348# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16349configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16350 16351# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16352func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16353 16354# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16355configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16397$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16398hardcode_action_CXX= 16399if test -n "$hardcode_libdir_flag_spec_CXX" || 16400 test -n "$runpath_var_CXX" || 16401 test yes = "$hardcode_automatic_CXX"; then 16402 16403 # We can hardcode non-existent directories. 16404 if test no != "$hardcode_direct_CXX" && 16405 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16406 # have to relink, otherwise we might link with an installed library 16407 # when we should be linking with a yet-to-be-installed one 16408 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16409 test no != "$hardcode_minus_L_CXX"; then 16410 # Linking always hardcodes the temporary library directory. 16411 hardcode_action_CXX=relink 16412 else 16413 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16414 hardcode_action_CXX=immediate 16415 fi 16416else 16417 # We cannot hardcode anything, or else we can only hardcode existing 16418 # directories. 16419 hardcode_action_CXX=unsupported 16420fi 16421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16422$as_echo "$hardcode_action_CXX" >&6; } 16423 16424if test relink = "$hardcode_action_CXX" || 16425 test yes = "$inherit_rpath_CXX"; then 16426 # Fast installation is not supported 16427 enable_fast_install=no 16428elif test yes = "$shlibpath_overrides_runpath" || 16429 test no = "$enable_shared"; then 16430 # Fast installation is not necessary 16431 enable_fast_install=needless 16432fi 16433 16434 16435 16436 16437 16438 16439 16440 fi # test -n "$compiler" 16441 16442 CC=$lt_save_CC 16443 CFLAGS=$lt_save_CFLAGS 16444 LDCXX=$LD 16445 LD=$lt_save_LD 16446 GCC=$lt_save_GCC 16447 with_gnu_ld=$lt_save_with_gnu_ld 16448 lt_cv_path_LDCXX=$lt_cv_path_LD 16449 lt_cv_path_LD=$lt_save_path_LD 16450 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16451 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16452fi # test yes != "$_lt_caught_CXX_error" 16453 16454ac_ext=c 16455ac_cpp='$CPP $CPPFLAGS' 16456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16458ac_compiler_gnu=$ac_cv_c_compiler_gnu 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 ac_config_commands="$ac_config_commands libtool" 16475 16476 16477 16478 16479# Only expand once: 16480 16481 16482 16483ac_ext=cpp 16484ac_cpp='$CXXCPP $CPPFLAGS' 16485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16486ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16488 16489 16490 ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=true 16491 ac_ext=cpp 16492ac_cpp='$CXXCPP $CPPFLAGS' 16493ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16494ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16495ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16496 ac_success=no 16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5 16498$as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; } 16499if ${ax_cv_cxx_compile_cxx14+:} false; then : 16500 $as_echo_n "(cached) " >&6 16501else 16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16503/* end confdefs.h. */ 16504 16505 16506// If the compiler admits that it is not ready for C++11, why torture it? 16507// Hopefully, this will speed up the test. 16508 16509#ifndef __cplusplus 16510 16511#error "This is not a C++ compiler" 16512 16513#elif __cplusplus < 201103L 16514 16515#error "This is not a C++11 compiler" 16516 16517#else 16518 16519namespace cxx11 16520{ 16521 16522 namespace test_static_assert 16523 { 16524 16525 template <typename T> 16526 struct check 16527 { 16528 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 16529 }; 16530 16531 } 16532 16533 namespace test_final_override 16534 { 16535 16536 struct Base 16537 { 16538 virtual void f() {} 16539 }; 16540 16541 struct Derived : public Base 16542 { 16543 virtual void f() override {} 16544 }; 16545 16546 } 16547 16548 namespace test_double_right_angle_brackets 16549 { 16550 16551 template < typename T > 16552 struct check {}; 16553 16554 typedef check<void> single_type; 16555 typedef check<check<void>> double_type; 16556 typedef check<check<check<void>>> triple_type; 16557 typedef check<check<check<check<void>>>> quadruple_type; 16558 16559 } 16560 16561 namespace test_decltype 16562 { 16563 16564 int 16565 f() 16566 { 16567 int a = 1; 16568 decltype(a) b = 2; 16569 return a + b; 16570 } 16571 16572 } 16573 16574 namespace test_type_deduction 16575 { 16576 16577 template < typename T1, typename T2 > 16578 struct is_same 16579 { 16580 static const bool value = false; 16581 }; 16582 16583 template < typename T > 16584 struct is_same<T, T> 16585 { 16586 static const bool value = true; 16587 }; 16588 16589 template < typename T1, typename T2 > 16590 auto 16591 add(T1 a1, T2 a2) -> decltype(a1 + a2) 16592 { 16593 return a1 + a2; 16594 } 16595 16596 int 16597 test(const int c, volatile int v) 16598 { 16599 static_assert(is_same<int, decltype(0)>::value == true, ""); 16600 static_assert(is_same<int, decltype(c)>::value == false, ""); 16601 static_assert(is_same<int, decltype(v)>::value == false, ""); 16602 auto ac = c; 16603 auto av = v; 16604 auto sumi = ac + av + 'x'; 16605 auto sumf = ac + av + 1.0; 16606 static_assert(is_same<int, decltype(ac)>::value == true, ""); 16607 static_assert(is_same<int, decltype(av)>::value == true, ""); 16608 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 16609 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 16610 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 16611 return (sumf > 0.0) ? sumi : add(c, v); 16612 } 16613 16614 } 16615 16616 namespace test_noexcept 16617 { 16618 16619 int f() { return 0; } 16620 int g() noexcept { return 0; } 16621 16622 static_assert(noexcept(f()) == false, ""); 16623 static_assert(noexcept(g()) == true, ""); 16624 16625 } 16626 16627 namespace test_constexpr 16628 { 16629 16630 template < typename CharT > 16631 unsigned long constexpr 16632 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 16633 { 16634 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 16635 } 16636 16637 template < typename CharT > 16638 unsigned long constexpr 16639 strlen_c(const CharT *const s) noexcept 16640 { 16641 return strlen_c_r(s, 0UL); 16642 } 16643 16644 static_assert(strlen_c("") == 0UL, ""); 16645 static_assert(strlen_c("1") == 1UL, ""); 16646 static_assert(strlen_c("example") == 7UL, ""); 16647 static_assert(strlen_c("another\0example") == 7UL, ""); 16648 16649 } 16650 16651 namespace test_rvalue_references 16652 { 16653 16654 template < int N > 16655 struct answer 16656 { 16657 static constexpr int value = N; 16658 }; 16659 16660 answer<1> f(int&) { return answer<1>(); } 16661 answer<2> f(const int&) { return answer<2>(); } 16662 answer<3> f(int&&) { return answer<3>(); } 16663 16664 void 16665 test() 16666 { 16667 int i = 0; 16668 const int c = 0; 16669 static_assert(decltype(f(i))::value == 1, ""); 16670 static_assert(decltype(f(c))::value == 2, ""); 16671 static_assert(decltype(f(0))::value == 3, ""); 16672 } 16673 16674 } 16675 16676 namespace test_uniform_initialization 16677 { 16678 16679 struct test 16680 { 16681 static const int zero {}; 16682 static const int one {1}; 16683 }; 16684 16685 static_assert(test::zero == 0, ""); 16686 static_assert(test::one == 1, ""); 16687 16688 } 16689 16690 namespace test_lambdas 16691 { 16692 16693 void 16694 test1() 16695 { 16696 auto lambda1 = [](){}; 16697 auto lambda2 = lambda1; 16698 lambda1(); 16699 lambda2(); 16700 } 16701 16702 int 16703 test2() 16704 { 16705 auto a = [](int i, int j){ return i + j; }(1, 2); 16706 auto b = []() -> int { return '0'; }(); 16707 auto c = [=](){ return a + b; }(); 16708 auto d = [&](){ return c; }(); 16709 auto e = [a, &b](int x) mutable { 16710 const auto identity = [](int y){ return y; }; 16711 for (auto i = 0; i < a; ++i) 16712 a += b--; 16713 return x + identity(a + b); 16714 }(0); 16715 return a + b + c + d + e; 16716 } 16717 16718 int 16719 test3() 16720 { 16721 const auto nullary = [](){ return 0; }; 16722 const auto unary = [](int x){ return x; }; 16723 using nullary_t = decltype(nullary); 16724 using unary_t = decltype(unary); 16725 const auto higher1st = [](nullary_t f){ return f(); }; 16726 const auto higher2nd = [unary](nullary_t f1){ 16727 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 16728 }; 16729 return higher1st(nullary) + higher2nd(nullary)(unary); 16730 } 16731 16732 } 16733 16734 namespace test_variadic_templates 16735 { 16736 16737 template <int...> 16738 struct sum; 16739 16740 template <int N0, int... N1toN> 16741 struct sum<N0, N1toN...> 16742 { 16743 static constexpr auto value = N0 + sum<N1toN...>::value; 16744 }; 16745 16746 template <> 16747 struct sum<> 16748 { 16749 static constexpr auto value = 0; 16750 }; 16751 16752 static_assert(sum<>::value == 0, ""); 16753 static_assert(sum<1>::value == 1, ""); 16754 static_assert(sum<23>::value == 23, ""); 16755 static_assert(sum<1, 2>::value == 3, ""); 16756 static_assert(sum<5, 5, 11>::value == 21, ""); 16757 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 16758 16759 } 16760 16761 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 16762 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 16763 // because of this. 16764 namespace test_template_alias_sfinae 16765 { 16766 16767 struct foo {}; 16768 16769 template<typename T> 16770 using member = typename T::member_type; 16771 16772 template<typename T> 16773 void func(...) {} 16774 16775 template<typename T> 16776 void func(member<T>*) {} 16777 16778 void test(); 16779 16780 void test() { func<foo>(0); } 16781 16782 } 16783 16784} // namespace cxx11 16785 16786#endif // __cplusplus >= 201103L 16787 16788 16789 16790 16791// If the compiler admits that it is not ready for C++14, why torture it? 16792// Hopefully, this will speed up the test. 16793 16794#ifndef __cplusplus 16795 16796#error "This is not a C++ compiler" 16797 16798#elif __cplusplus < 201402L 16799 16800#error "This is not a C++14 compiler" 16801 16802#else 16803 16804namespace cxx14 16805{ 16806 16807 namespace test_polymorphic_lambdas 16808 { 16809 16810 int 16811 test() 16812 { 16813 const auto lambda = [](auto&&... args){ 16814 const auto istiny = [](auto x){ 16815 return (sizeof(x) == 1UL) ? 1 : 0; 16816 }; 16817 const int aretiny[] = { istiny(args)... }; 16818 return aretiny[0]; 16819 }; 16820 return lambda(1, 1L, 1.0f, '1'); 16821 } 16822 16823 } 16824 16825 namespace test_binary_literals 16826 { 16827 16828 constexpr auto ivii = 0b0000000000101010; 16829 static_assert(ivii == 42, "wrong value"); 16830 16831 } 16832 16833 namespace test_generalized_constexpr 16834 { 16835 16836 template < typename CharT > 16837 constexpr unsigned long 16838 strlen_c(const CharT *const s) noexcept 16839 { 16840 auto length = 0UL; 16841 for (auto p = s; *p; ++p) 16842 ++length; 16843 return length; 16844 } 16845 16846 static_assert(strlen_c("") == 0UL, ""); 16847 static_assert(strlen_c("x") == 1UL, ""); 16848 static_assert(strlen_c("test") == 4UL, ""); 16849 static_assert(strlen_c("another\0test") == 7UL, ""); 16850 16851 } 16852 16853 namespace test_lambda_init_capture 16854 { 16855 16856 int 16857 test() 16858 { 16859 auto x = 0; 16860 const auto lambda1 = [a = x](int b){ return a + b; }; 16861 const auto lambda2 = [a = lambda1(x)](){ return a; }; 16862 return lambda2(); 16863 } 16864 16865 } 16866 16867 namespace test_digit_separators 16868 { 16869 16870 constexpr auto ten_million = 100'000'000; 16871 static_assert(ten_million == 100000000, ""); 16872 16873 } 16874 16875 namespace test_return_type_deduction 16876 { 16877 16878 auto f(int& x) { return x; } 16879 decltype(auto) g(int& x) { return x; } 16880 16881 template < typename T1, typename T2 > 16882 struct is_same 16883 { 16884 static constexpr auto value = false; 16885 }; 16886 16887 template < typename T > 16888 struct is_same<T, T> 16889 { 16890 static constexpr auto value = true; 16891 }; 16892 16893 int 16894 test() 16895 { 16896 auto x = 0; 16897 static_assert(is_same<int, decltype(f(x))>::value, ""); 16898 static_assert(is_same<int&, decltype(g(x))>::value, ""); 16899 return x; 16900 } 16901 16902 } 16903 16904} // namespace cxx14 16905 16906#endif // __cplusplus >= 201402L 16907 16908 16909 16910_ACEOF 16911if ac_fn_cxx_try_compile "$LINENO"; then : 16912 ax_cv_cxx_compile_cxx14=yes 16913else 16914 ax_cv_cxx_compile_cxx14=no 16915fi 16916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16917fi 16918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5 16919$as_echo "$ax_cv_cxx_compile_cxx14" >&6; } 16920 if test x$ax_cv_cxx_compile_cxx14 = xyes; then 16921 ac_success=yes 16922 fi 16923 16924 16925 16926 if test x$ac_success = xno; then 16927 for alternative in ${ax_cxx_compile_alternatives}; do 16928 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do 16929 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh` 16930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5 16931$as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; } 16932if eval \${$cachevar+:} false; then : 16933 $as_echo_n "(cached) " >&6 16934else 16935 ac_save_CXX="$CXX" 16936 CXX="$CXX $switch" 16937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16938/* end confdefs.h. */ 16939 16940 16941// If the compiler admits that it is not ready for C++11, why torture it? 16942// Hopefully, this will speed up the test. 16943 16944#ifndef __cplusplus 16945 16946#error "This is not a C++ compiler" 16947 16948#elif __cplusplus < 201103L 16949 16950#error "This is not a C++11 compiler" 16951 16952#else 16953 16954namespace cxx11 16955{ 16956 16957 namespace test_static_assert 16958 { 16959 16960 template <typename T> 16961 struct check 16962 { 16963 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 16964 }; 16965 16966 } 16967 16968 namespace test_final_override 16969 { 16970 16971 struct Base 16972 { 16973 virtual void f() {} 16974 }; 16975 16976 struct Derived : public Base 16977 { 16978 virtual void f() override {} 16979 }; 16980 16981 } 16982 16983 namespace test_double_right_angle_brackets 16984 { 16985 16986 template < typename T > 16987 struct check {}; 16988 16989 typedef check<void> single_type; 16990 typedef check<check<void>> double_type; 16991 typedef check<check<check<void>>> triple_type; 16992 typedef check<check<check<check<void>>>> quadruple_type; 16993 16994 } 16995 16996 namespace test_decltype 16997 { 16998 16999 int 17000 f() 17001 { 17002 int a = 1; 17003 decltype(a) b = 2; 17004 return a + b; 17005 } 17006 17007 } 17008 17009 namespace test_type_deduction 17010 { 17011 17012 template < typename T1, typename T2 > 17013 struct is_same 17014 { 17015 static const bool value = false; 17016 }; 17017 17018 template < typename T > 17019 struct is_same<T, T> 17020 { 17021 static const bool value = true; 17022 }; 17023 17024 template < typename T1, typename T2 > 17025 auto 17026 add(T1 a1, T2 a2) -> decltype(a1 + a2) 17027 { 17028 return a1 + a2; 17029 } 17030 17031 int 17032 test(const int c, volatile int v) 17033 { 17034 static_assert(is_same<int, decltype(0)>::value == true, ""); 17035 static_assert(is_same<int, decltype(c)>::value == false, ""); 17036 static_assert(is_same<int, decltype(v)>::value == false, ""); 17037 auto ac = c; 17038 auto av = v; 17039 auto sumi = ac + av + 'x'; 17040 auto sumf = ac + av + 1.0; 17041 static_assert(is_same<int, decltype(ac)>::value == true, ""); 17042 static_assert(is_same<int, decltype(av)>::value == true, ""); 17043 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 17044 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 17045 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 17046 return (sumf > 0.0) ? sumi : add(c, v); 17047 } 17048 17049 } 17050 17051 namespace test_noexcept 17052 { 17053 17054 int f() { return 0; } 17055 int g() noexcept { return 0; } 17056 17057 static_assert(noexcept(f()) == false, ""); 17058 static_assert(noexcept(g()) == true, ""); 17059 17060 } 17061 17062 namespace test_constexpr 17063 { 17064 17065 template < typename CharT > 17066 unsigned long constexpr 17067 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 17068 { 17069 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 17070 } 17071 17072 template < typename CharT > 17073 unsigned long constexpr 17074 strlen_c(const CharT *const s) noexcept 17075 { 17076 return strlen_c_r(s, 0UL); 17077 } 17078 17079 static_assert(strlen_c("") == 0UL, ""); 17080 static_assert(strlen_c("1") == 1UL, ""); 17081 static_assert(strlen_c("example") == 7UL, ""); 17082 static_assert(strlen_c("another\0example") == 7UL, ""); 17083 17084 } 17085 17086 namespace test_rvalue_references 17087 { 17088 17089 template < int N > 17090 struct answer 17091 { 17092 static constexpr int value = N; 17093 }; 17094 17095 answer<1> f(int&) { return answer<1>(); } 17096 answer<2> f(const int&) { return answer<2>(); } 17097 answer<3> f(int&&) { return answer<3>(); } 17098 17099 void 17100 test() 17101 { 17102 int i = 0; 17103 const int c = 0; 17104 static_assert(decltype(f(i))::value == 1, ""); 17105 static_assert(decltype(f(c))::value == 2, ""); 17106 static_assert(decltype(f(0))::value == 3, ""); 17107 } 17108 17109 } 17110 17111 namespace test_uniform_initialization 17112 { 17113 17114 struct test 17115 { 17116 static const int zero {}; 17117 static const int one {1}; 17118 }; 17119 17120 static_assert(test::zero == 0, ""); 17121 static_assert(test::one == 1, ""); 17122 17123 } 17124 17125 namespace test_lambdas 17126 { 17127 17128 void 17129 test1() 17130 { 17131 auto lambda1 = [](){}; 17132 auto lambda2 = lambda1; 17133 lambda1(); 17134 lambda2(); 17135 } 17136 17137 int 17138 test2() 17139 { 17140 auto a = [](int i, int j){ return i + j; }(1, 2); 17141 auto b = []() -> int { return '0'; }(); 17142 auto c = [=](){ return a + b; }(); 17143 auto d = [&](){ return c; }(); 17144 auto e = [a, &b](int x) mutable { 17145 const auto identity = [](int y){ return y; }; 17146 for (auto i = 0; i < a; ++i) 17147 a += b--; 17148 return x + identity(a + b); 17149 }(0); 17150 return a + b + c + d + e; 17151 } 17152 17153 int 17154 test3() 17155 { 17156 const auto nullary = [](){ return 0; }; 17157 const auto unary = [](int x){ return x; }; 17158 using nullary_t = decltype(nullary); 17159 using unary_t = decltype(unary); 17160 const auto higher1st = [](nullary_t f){ return f(); }; 17161 const auto higher2nd = [unary](nullary_t f1){ 17162 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 17163 }; 17164 return higher1st(nullary) + higher2nd(nullary)(unary); 17165 } 17166 17167 } 17168 17169 namespace test_variadic_templates 17170 { 17171 17172 template <int...> 17173 struct sum; 17174 17175 template <int N0, int... N1toN> 17176 struct sum<N0, N1toN...> 17177 { 17178 static constexpr auto value = N0 + sum<N1toN...>::value; 17179 }; 17180 17181 template <> 17182 struct sum<> 17183 { 17184 static constexpr auto value = 0; 17185 }; 17186 17187 static_assert(sum<>::value == 0, ""); 17188 static_assert(sum<1>::value == 1, ""); 17189 static_assert(sum<23>::value == 23, ""); 17190 static_assert(sum<1, 2>::value == 3, ""); 17191 static_assert(sum<5, 5, 11>::value == 21, ""); 17192 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 17193 17194 } 17195 17196 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 17197 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 17198 // because of this. 17199 namespace test_template_alias_sfinae 17200 { 17201 17202 struct foo {}; 17203 17204 template<typename T> 17205 using member = typename T::member_type; 17206 17207 template<typename T> 17208 void func(...) {} 17209 17210 template<typename T> 17211 void func(member<T>*) {} 17212 17213 void test(); 17214 17215 void test() { func<foo>(0); } 17216 17217 } 17218 17219} // namespace cxx11 17220 17221#endif // __cplusplus >= 201103L 17222 17223 17224 17225 17226// If the compiler admits that it is not ready for C++14, why torture it? 17227// Hopefully, this will speed up the test. 17228 17229#ifndef __cplusplus 17230 17231#error "This is not a C++ compiler" 17232 17233#elif __cplusplus < 201402L 17234 17235#error "This is not a C++14 compiler" 17236 17237#else 17238 17239namespace cxx14 17240{ 17241 17242 namespace test_polymorphic_lambdas 17243 { 17244 17245 int 17246 test() 17247 { 17248 const auto lambda = [](auto&&... args){ 17249 const auto istiny = [](auto x){ 17250 return (sizeof(x) == 1UL) ? 1 : 0; 17251 }; 17252 const int aretiny[] = { istiny(args)... }; 17253 return aretiny[0]; 17254 }; 17255 return lambda(1, 1L, 1.0f, '1'); 17256 } 17257 17258 } 17259 17260 namespace test_binary_literals 17261 { 17262 17263 constexpr auto ivii = 0b0000000000101010; 17264 static_assert(ivii == 42, "wrong value"); 17265 17266 } 17267 17268 namespace test_generalized_constexpr 17269 { 17270 17271 template < typename CharT > 17272 constexpr unsigned long 17273 strlen_c(const CharT *const s) noexcept 17274 { 17275 auto length = 0UL; 17276 for (auto p = s; *p; ++p) 17277 ++length; 17278 return length; 17279 } 17280 17281 static_assert(strlen_c("") == 0UL, ""); 17282 static_assert(strlen_c("x") == 1UL, ""); 17283 static_assert(strlen_c("test") == 4UL, ""); 17284 static_assert(strlen_c("another\0test") == 7UL, ""); 17285 17286 } 17287 17288 namespace test_lambda_init_capture 17289 { 17290 17291 int 17292 test() 17293 { 17294 auto x = 0; 17295 const auto lambda1 = [a = x](int b){ return a + b; }; 17296 const auto lambda2 = [a = lambda1(x)](){ return a; }; 17297 return lambda2(); 17298 } 17299 17300 } 17301 17302 namespace test_digit_separators 17303 { 17304 17305 constexpr auto ten_million = 100'000'000; 17306 static_assert(ten_million == 100000000, ""); 17307 17308 } 17309 17310 namespace test_return_type_deduction 17311 { 17312 17313 auto f(int& x) { return x; } 17314 decltype(auto) g(int& x) { return x; } 17315 17316 template < typename T1, typename T2 > 17317 struct is_same 17318 { 17319 static constexpr auto value = false; 17320 }; 17321 17322 template < typename T > 17323 struct is_same<T, T> 17324 { 17325 static constexpr auto value = true; 17326 }; 17327 17328 int 17329 test() 17330 { 17331 auto x = 0; 17332 static_assert(is_same<int, decltype(f(x))>::value, ""); 17333 static_assert(is_same<int&, decltype(g(x))>::value, ""); 17334 return x; 17335 } 17336 17337 } 17338 17339} // namespace cxx14 17340 17341#endif // __cplusplus >= 201402L 17342 17343 17344 17345_ACEOF 17346if ac_fn_cxx_try_compile "$LINENO"; then : 17347 eval $cachevar=yes 17348else 17349 eval $cachevar=no 17350fi 17351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17352 CXX="$ac_save_CXX" 17353fi 17354eval ac_res=\$$cachevar 17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17356$as_echo "$ac_res" >&6; } 17357 if eval test x\$$cachevar = xyes; then 17358 CXX="$CXX $switch" 17359 if test -n "$CXXCPP" ; then 17360 CXXCPP="$CXXCPP $switch" 17361 fi 17362 ac_success=yes 17363 break 17364 fi 17365 done 17366 if test x$ac_success = xyes; then 17367 break 17368 fi 17369 done 17370 fi 17371 ac_ext=cpp 17372ac_cpp='$CXXCPP $CPPFLAGS' 17373ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17374ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17375ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17376 17377 if test x$ax_cxx_compile_cxx14_required = xtrue; then 17378 if test x$ac_success = xno; then 17379 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5 17380 fi 17381 fi 17382 if test x$ac_success = xno; then 17383 HAVE_CXX14=0 17384 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5 17385$as_echo "$as_me: No compiler with C++14 support was found" >&6;} 17386 else 17387 HAVE_CXX14=1 17388 17389$as_echo "#define HAVE_CXX14 1" >>confdefs.h 17390 17391 fi 17392 17393 17394 17395 17396# "Enables" 17397# Check whether --enable-debug was given. 17398if test "${enable_debug+set}" = set; then : 17399 enableval=$enable_debug; my_debug=$enableval 17400else 17401 my_debug=no 17402fi 17403 17404# Check whether --enable-install-doc was given. 17405if test "${enable_install_doc+set}" = set; then : 17406 enableval=$enable_install_doc; if test x$enableval = xno ; then 17407 my_disableinstalldoc=yes 17408 else 17409 my_disableinstalldoc=no 17410 fi 17411else 17412 my_disableinstalldoc=no 17413fi 17414 17415 17416# Libs 17417 17418 found=false 17419 17420# Check whether --with-openssl was given. 17421if test "${with_openssl+set}" = set; then : 17422 withval=$with_openssl; 17423 case "$withval" in 17424 "" | y | ye | yes | n | no) 17425 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 17426 ;; 17427 *) ssldirs="$withval" 17428 ;; 17429 esac 17430 17431else 17432 17433 # if pkg-config is installed and openssl has installed a .pc file, 17434 # then use that information and don't search ssldirs 17435 # Extract the first word of "pkg-config", so it can be a program name with args. 17436set dummy pkg-config; ac_word=$2 17437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17438$as_echo_n "checking for $ac_word... " >&6; } 17439if ${ac_cv_path_PKG_CONFIG+:} false; then : 17440 $as_echo_n "(cached) " >&6 17441else 17442 case $PKG_CONFIG in 17443 [\\/]* | ?:[\\/]*) 17444 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 17445 ;; 17446 *) 17447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17448for as_dir in $PATH 17449do 17450 IFS=$as_save_IFS 17451 test -z "$as_dir" && as_dir=. 17452 for ac_exec_ext in '' $ac_executable_extensions; do 17453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17454 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17456 break 2 17457 fi 17458done 17459 done 17460IFS=$as_save_IFS 17461 17462 ;; 17463esac 17464fi 17465PKG_CONFIG=$ac_cv_path_PKG_CONFIG 17466if test -n "$PKG_CONFIG"; then 17467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 17468$as_echo "$PKG_CONFIG" >&6; } 17469else 17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17471$as_echo "no" >&6; } 17472fi 17473 17474 17475 if test x"$PKG_CONFIG" != x""; then 17476 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` 17477 if test $? = 0; then 17478 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` 17479 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` 17480 found=true 17481 fi 17482 fi 17483 17484 # no such luck; use some default ssldirs 17485 if ! $found; then 17486 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" 17487 fi 17488 17489 17490fi 17491 17492 17493 17494 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in 17495 # an 'openssl' subdirectory 17496 17497 if ! $found; then 17498 OPENSSL_INCLUDES= 17499 for ssldir in $ssldirs; do 17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 17501$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; } 17502 if test -f "$ssldir/include/openssl/ssl.h"; then 17503 if [ $ssldir != "/usr" ]; then 17504 OPENSSL_INCLUDES="-I$ssldir/include" 17505 OPENSSL_LDFLAGS="-L$ssldir/lib" 17506 fi 17507 OPENSSL_LIBS="-lssl -lcrypto" 17508 found=true 17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17510$as_echo "yes" >&6; } 17511 break 17512 else 17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17514$as_echo "no" >&6; } 17515 fi 17516 done 17517 17518 # if the file wasn't found, well, go ahead and try the link anyway -- maybe 17519 # it will just work! 17520 fi 17521 17522 # try the preprocessor and linker with our new flags, 17523 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS 17524 17525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 17526$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; } 17527 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ 17528 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 17529 17530 save_LIBS="$LIBS" 17531 save_LDFLAGS="$LDFLAGS" 17532 save_CPPFLAGS="$CPPFLAGS" 17533 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 17534 LIBS="$OPENSSL_LIBS $LIBS" 17535 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 17536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17537/* end confdefs.h. */ 17538#include <openssl/ssl.h> 17539int 17540main () 17541{ 17542SSL_new(NULL) 17543 ; 17544 return 0; 17545} 17546_ACEOF 17547if ac_fn_cxx_try_link "$LINENO"; then : 17548 17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17550$as_echo "yes" >&6; } 17551 17552 17553else 17554 17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17556$as_echo "no" >&6; } 17557 as_fn_error $? "openssl not found" "$LINENO" 5 17558 17559fi 17560rm -f core conftest.err conftest.$ac_objext \ 17561 conftest$ac_exeext conftest.$ac_ext 17562 CPPFLAGS="$save_CPPFLAGS" 17563 LDFLAGS="$save_LDFLAGS" 17564 LIBS="$save_LIBS" 17565 17566 17567 17568 17569 17570 17571# Headers 17572{ $as_echo "$as_me:${as_lineno-$LINENO}: Checking C headers" >&5 17573$as_echo "$as_me: Checking C headers" >&6;} 17574 17575for ac_header in fcntl.h getopt.h libgen.h libintl.h locale.h strings.h termios.h 17576do : 17577 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17578ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17579if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17580 cat >>confdefs.h <<_ACEOF 17581#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17582_ACEOF 17583 17584fi 17585 17586done 17587 17588 17589# Types 17590{ $as_echo "$as_me:${as_lineno-$LINENO}: Checking types" >&5 17591$as_echo "$as_me: Checking types" >&6;} 17592ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 17593if test "x$ac_cv_type_mode_t" = xyes; then : 17594 17595else 17596 17597cat >>confdefs.h <<_ACEOF 17598#define mode_t int 17599_ACEOF 17600 17601fi 17602 17603ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 17604if test "x$ac_cv_type_off_t" = xyes; then : 17605 17606else 17607 17608cat >>confdefs.h <<_ACEOF 17609#define off_t long int 17610_ACEOF 17611 17612fi 17613 17614ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 17615if test "x$ac_cv_type_size_t" = xyes; then : 17616 17617else 17618 17619cat >>confdefs.h <<_ACEOF 17620#define size_t unsigned int 17621_ACEOF 17622 17623fi 17624 17625ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 17626if test "x$ac_cv_type_ssize_t" = xyes; then : 17627 17628else 17629 17630cat >>confdefs.h <<_ACEOF 17631#define ssize_t int 17632_ACEOF 17633 17634fi 17635 17636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 17637$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 17638if ${ac_cv_type_uid_t+:} false; then : 17639 $as_echo_n "(cached) " >&6 17640else 17641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17642/* end confdefs.h. */ 17643#include <sys/types.h> 17644 17645_ACEOF 17646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17647 $EGREP "uid_t" >/dev/null 2>&1; then : 17648 ac_cv_type_uid_t=yes 17649else 17650 ac_cv_type_uid_t=no 17651fi 17652rm -f conftest* 17653 17654fi 17655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 17656$as_echo "$ac_cv_type_uid_t" >&6; } 17657if test $ac_cv_type_uid_t = no; then 17658 17659$as_echo "#define uid_t int" >>confdefs.h 17660 17661 17662$as_echo "#define gid_t int" >>confdefs.h 17663 17664fi 17665 17666 17667# library functions 17668{ $as_echo "$as_me:${as_lineno-$LINENO}: Checking functions" >&5 17669$as_echo "$as_me: Checking functions" >&6;} 17670# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 17671# for constant arguments. Useless! 17672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 17673$as_echo_n "checking for working alloca.h... " >&6; } 17674if ${ac_cv_working_alloca_h+:} false; then : 17675 $as_echo_n "(cached) " >&6 17676else 17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17678/* end confdefs.h. */ 17679#include <alloca.h> 17680int 17681main () 17682{ 17683char *p = (char *) alloca (2 * sizeof (int)); 17684 if (p) return 0; 17685 ; 17686 return 0; 17687} 17688_ACEOF 17689if ac_fn_cxx_try_link "$LINENO"; then : 17690 ac_cv_working_alloca_h=yes 17691else 17692 ac_cv_working_alloca_h=no 17693fi 17694rm -f core conftest.err conftest.$ac_objext \ 17695 conftest$ac_exeext conftest.$ac_ext 17696fi 17697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 17698$as_echo "$ac_cv_working_alloca_h" >&6; } 17699if test $ac_cv_working_alloca_h = yes; then 17700 17701$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 17702 17703fi 17704 17705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 17706$as_echo_n "checking for alloca... " >&6; } 17707if ${ac_cv_func_alloca_works+:} false; then : 17708 $as_echo_n "(cached) " >&6 17709else 17710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17711/* end confdefs.h. */ 17712#ifdef __GNUC__ 17713# define alloca __builtin_alloca 17714#else 17715# ifdef _MSC_VER 17716# include <malloc.h> 17717# define alloca _alloca 17718# else 17719# ifdef HAVE_ALLOCA_H 17720# include <alloca.h> 17721# else 17722# ifdef _AIX 17723 #pragma alloca 17724# else 17725# ifndef alloca /* predefined by HP cc +Olibcalls */ 17726void *alloca (size_t); 17727# endif 17728# endif 17729# endif 17730# endif 17731#endif 17732 17733int 17734main () 17735{ 17736char *p = (char *) alloca (1); 17737 if (p) return 0; 17738 ; 17739 return 0; 17740} 17741_ACEOF 17742if ac_fn_cxx_try_link "$LINENO"; then : 17743 ac_cv_func_alloca_works=yes 17744else 17745 ac_cv_func_alloca_works=no 17746fi 17747rm -f core conftest.err conftest.$ac_objext \ 17748 conftest$ac_exeext conftest.$ac_ext 17749fi 17750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 17751$as_echo "$ac_cv_func_alloca_works" >&6; } 17752 17753if test $ac_cv_func_alloca_works = yes; then 17754 17755$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 17756 17757else 17758 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 17759# that cause trouble. Some versions do not even contain alloca or 17760# contain a buggy version. If you still want to use their alloca, 17761# use ar to extract alloca.o from them instead of compiling alloca.c. 17762 17763ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 17764 17765$as_echo "#define C_ALLOCA 1" >>confdefs.h 17766 17767 17768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 17769$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 17770if ${ac_cv_os_cray+:} false; then : 17771 $as_echo_n "(cached) " >&6 17772else 17773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17774/* end confdefs.h. */ 17775#if defined CRAY && ! defined CRAY2 17776webecray 17777#else 17778wenotbecray 17779#endif 17780 17781_ACEOF 17782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17783 $EGREP "webecray" >/dev/null 2>&1; then : 17784 ac_cv_os_cray=yes 17785else 17786 ac_cv_os_cray=no 17787fi 17788rm -f conftest* 17789 17790fi 17791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 17792$as_echo "$ac_cv_os_cray" >&6; } 17793if test $ac_cv_os_cray = yes; then 17794 for ac_func in _getb67 GETB67 getb67; do 17795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17796ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 17797if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17798 17799cat >>confdefs.h <<_ACEOF 17800#define CRAY_STACKSEG_END $ac_func 17801_ACEOF 17802 17803 break 17804fi 17805 17806 done 17807fi 17808 17809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 17810$as_echo_n "checking stack direction for C alloca... " >&6; } 17811if ${ac_cv_c_stack_direction+:} false; then : 17812 $as_echo_n "(cached) " >&6 17813else 17814 if test "$cross_compiling" = yes; then : 17815 ac_cv_c_stack_direction=0 17816else 17817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17818/* end confdefs.h. */ 17819$ac_includes_default 17820int 17821find_stack_direction (int *addr, int depth) 17822{ 17823 int dir, dummy = 0; 17824 if (! addr) 17825 addr = &dummy; 17826 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 17827 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 17828 return dir + dummy; 17829} 17830 17831int 17832main (int argc, char **argv) 17833{ 17834 return find_stack_direction (0, argc + !argv + 20) < 0; 17835} 17836_ACEOF 17837if ac_fn_cxx_try_run "$LINENO"; then : 17838 ac_cv_c_stack_direction=1 17839else 17840 ac_cv_c_stack_direction=-1 17841fi 17842rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17843 conftest.$ac_objext conftest.beam conftest.$ac_ext 17844fi 17845 17846fi 17847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 17848$as_echo "$ac_cv_c_stack_direction" >&6; } 17849cat >>confdefs.h <<_ACEOF 17850#define STACK_DIRECTION $ac_cv_c_stack_direction 17851_ACEOF 17852 17853 17854fi 17855 17856for ac_func in basename isblank isspace setlocale strcasestr tcgetattr tcsetattr tolower towlower 17857do : 17858 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17859ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 17860if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17861 cat >>confdefs.h <<_ACEOF 17862#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17863_ACEOF 17864 17865fi 17866done 17867 17868 17869for ac_func in getopt strchr strdup strerror strstr 17870do : 17871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17872ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 17873if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17874 cat >>confdefs.h <<_ACEOF 17875#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17876_ACEOF 17877 17878else 17879 as_fn_error $? "required function not found" "$LINENO" 5 17880fi 17881done 17882 17883 17884LIBS_SAVE="$LIBS" 17885LDFLAGS_SAVE="$LDFLAGS" 17886CPPFLAGS_SAVE="$CPPFLAGS" 17887 17888LIBS="$LIBS $OPENSSL_LIBS" 17889LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 17890CPPFLAGS="$CPPFLAGS $OPENSSL_INCLUDES" 17891{ $as_echo "$as_me:${as_lineno-$LINENO}: Checking encryption functions" >&5 17892$as_echo "$as_me: Checking encryption functions" >&6;} 17893for ac_func in EVP_bf_cbc EVP_CIPHER_CTX_set_key_length EVP_CipherInit_ex EVP_DigestFinal_ex EVP_DigestInit_ex EVP_DigestUpdate EVP_md5 EVP_ripemd160 EVP_sha1 EVP_sha256 EVP_aes_256_cbc RAND_bytes 17894do : 17895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17896ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 17897if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17898 cat >>confdefs.h <<_ACEOF 17899#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17900_ACEOF 17901 17902else 17903 as_fn_error $? "You are missing a crucial function required for $PACKAGE_NAME" "$LINENO" 5 17904fi 17905done 17906 17907for ac_func in EVP_CIPHER_CTX_cleanup EVP_CIPHER_CTX_free EVP_CIPHER_CTX_init EVP_CIPHER_CTX_new EVP_MD_CTX_destroy EVP_MD_CTX_create EVP_MD_CTX_free EVP_MD_CTX_new 17908do : 17909 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17910ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 17911if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17912 cat >>confdefs.h <<_ACEOF 17913#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17914_ACEOF 17915 17916fi 17917done 17918 17919{ $as_echo "$as_me:${as_lineno-$LINENO}: Checking support functions" >&5 17920$as_echo "$as_me: Checking support functions" >&6;} 17921for ac_func in SSLeay_version OpenSSL_version 17922do : 17923 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17924ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 17925if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17926 cat >>confdefs.h <<_ACEOF 17927#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17928_ACEOF 17929 17930fi 17931done 17932 17933LIBS="$LIBS_SAVE" 17934LDFLAGS="$LDFLAGS_SAVE" 17935CPPFLAGS="$CPPFLAGS_SAVE" 17936 17937{ $as_echo "$as_me:${as_lineno-$LINENO}: Checking miscellaneous properties of platform" >&5 17938$as_echo "$as_me: Checking miscellaneous properties of platform" >&6;} 17939# The cast to long int works around a bug in the HP C Compiler 17940# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17941# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17942# This bug is HP SR number 8606223364. 17943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 17944$as_echo_n "checking size of int *... " >&6; } 17945if ${ac_cv_sizeof_int_p+:} false; then : 17946 $as_echo_n "(cached) " >&6 17947else 17948 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 17949 17950else 17951 if test "$ac_cv_type_int_p" = yes; then 17952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17954as_fn_error 77 "cannot compute sizeof (int *) 17955See \`config.log' for more details" "$LINENO" 5; } 17956 else 17957 ac_cv_sizeof_int_p=0 17958 fi 17959fi 17960 17961fi 17962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 17963$as_echo "$ac_cv_sizeof_int_p" >&6; } 17964 17965 17966 17967cat >>confdefs.h <<_ACEOF 17968#define SIZEOF_INT_P $ac_cv_sizeof_int_p 17969_ACEOF 17970 17971 17972# The cast to long int works around a bug in the HP C Compiler 17973# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17974# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17975# This bug is HP SR number 8606223364. 17976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 17977$as_echo_n "checking size of int... " >&6; } 17978if ${ac_cv_sizeof_int+:} false; then : 17979 $as_echo_n "(cached) " >&6 17980else 17981 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 17982 17983else 17984 if test "$ac_cv_type_int" = yes; then 17985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17987as_fn_error 77 "cannot compute sizeof (int) 17988See \`config.log' for more details" "$LINENO" 5; } 17989 else 17990 ac_cv_sizeof_int=0 17991 fi 17992fi 17993 17994fi 17995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 17996$as_echo "$ac_cv_sizeof_int" >&6; } 17997 17998 17999 18000cat >>confdefs.h <<_ACEOF 18001#define SIZEOF_INT $ac_cv_sizeof_int 18002_ACEOF 18003 18004 18005# The cast to long int works around a bug in the HP C Compiler 18006# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18007# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18008# This bug is HP SR number 8606223364. 18009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 18010$as_echo_n "checking size of long... " >&6; } 18011if ${ac_cv_sizeof_long+:} false; then : 18012 $as_echo_n "(cached) " >&6 18013else 18014 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 18015 18016else 18017 if test "$ac_cv_type_long" = yes; then 18018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18020as_fn_error 77 "cannot compute sizeof (long) 18021See \`config.log' for more details" "$LINENO" 5; } 18022 else 18023 ac_cv_sizeof_long=0 18024 fi 18025fi 18026 18027fi 18028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 18029$as_echo "$ac_cv_sizeof_long" >&6; } 18030 18031 18032 18033cat >>confdefs.h <<_ACEOF 18034#define SIZEOF_LONG $ac_cv_sizeof_long 18035_ACEOF 18036 18037 18038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 18039$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 18040if ${ac_cv_c_bigendian+:} false; then : 18041 $as_echo_n "(cached) " >&6 18042else 18043 ac_cv_c_bigendian=unknown 18044 # See if we're dealing with a universal compiler. 18045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18046/* end confdefs.h. */ 18047#ifndef __APPLE_CC__ 18048 not a universal capable compiler 18049 #endif 18050 typedef int dummy; 18051 18052_ACEOF 18053if ac_fn_cxx_try_compile "$LINENO"; then : 18054 18055 # Check for potential -arch flags. It is not universal unless 18056 # there are at least two -arch flags with different values. 18057 ac_arch= 18058 ac_prev= 18059 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 18060 if test -n "$ac_prev"; then 18061 case $ac_word in 18062 i?86 | x86_64 | ppc | ppc64) 18063 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 18064 ac_arch=$ac_word 18065 else 18066 ac_cv_c_bigendian=universal 18067 break 18068 fi 18069 ;; 18070 esac 18071 ac_prev= 18072 elif test "x$ac_word" = "x-arch"; then 18073 ac_prev=arch 18074 fi 18075 done 18076fi 18077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18078 if test $ac_cv_c_bigendian = unknown; then 18079 # See if sys/param.h defines the BYTE_ORDER macro. 18080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18081/* end confdefs.h. */ 18082#include <sys/types.h> 18083 #include <sys/param.h> 18084 18085int 18086main () 18087{ 18088#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 18089 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 18090 && LITTLE_ENDIAN) 18091 bogus endian macros 18092 #endif 18093 18094 ; 18095 return 0; 18096} 18097_ACEOF 18098if ac_fn_cxx_try_compile "$LINENO"; then : 18099 # It does; now see whether it defined to BIG_ENDIAN or not. 18100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18101/* end confdefs.h. */ 18102#include <sys/types.h> 18103 #include <sys/param.h> 18104 18105int 18106main () 18107{ 18108#if BYTE_ORDER != BIG_ENDIAN 18109 not big endian 18110 #endif 18111 18112 ; 18113 return 0; 18114} 18115_ACEOF 18116if ac_fn_cxx_try_compile "$LINENO"; then : 18117 ac_cv_c_bigendian=yes 18118else 18119 ac_cv_c_bigendian=no 18120fi 18121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18122fi 18123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18124 fi 18125 if test $ac_cv_c_bigendian = unknown; then 18126 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 18127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18128/* end confdefs.h. */ 18129#include <limits.h> 18130 18131int 18132main () 18133{ 18134#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 18135 bogus endian macros 18136 #endif 18137 18138 ; 18139 return 0; 18140} 18141_ACEOF 18142if ac_fn_cxx_try_compile "$LINENO"; then : 18143 # It does; now see whether it defined to _BIG_ENDIAN or not. 18144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18145/* end confdefs.h. */ 18146#include <limits.h> 18147 18148int 18149main () 18150{ 18151#ifndef _BIG_ENDIAN 18152 not big endian 18153 #endif 18154 18155 ; 18156 return 0; 18157} 18158_ACEOF 18159if ac_fn_cxx_try_compile "$LINENO"; then : 18160 ac_cv_c_bigendian=yes 18161else 18162 ac_cv_c_bigendian=no 18163fi 18164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18165fi 18166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18167 fi 18168 if test $ac_cv_c_bigendian = unknown; then 18169 # Compile a test program. 18170 if test "$cross_compiling" = yes; then : 18171 # Try to guess by grepping values from an object file. 18172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18173/* end confdefs.h. */ 18174short int ascii_mm[] = 18175 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 18176 short int ascii_ii[] = 18177 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 18178 int use_ascii (int i) { 18179 return ascii_mm[i] + ascii_ii[i]; 18180 } 18181 short int ebcdic_ii[] = 18182 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 18183 short int ebcdic_mm[] = 18184 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 18185 int use_ebcdic (int i) { 18186 return ebcdic_mm[i] + ebcdic_ii[i]; 18187 } 18188 extern int foo; 18189 18190int 18191main () 18192{ 18193return use_ascii (foo) == use_ebcdic (foo); 18194 ; 18195 return 0; 18196} 18197_ACEOF 18198if ac_fn_cxx_try_compile "$LINENO"; then : 18199 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 18200 ac_cv_c_bigendian=yes 18201 fi 18202 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 18203 if test "$ac_cv_c_bigendian" = unknown; then 18204 ac_cv_c_bigendian=no 18205 else 18206 # finding both strings is unlikely to happen, but who knows? 18207 ac_cv_c_bigendian=unknown 18208 fi 18209 fi 18210fi 18211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18212else 18213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18214/* end confdefs.h. */ 18215$ac_includes_default 18216int 18217main () 18218{ 18219 18220 /* Are we little or big endian? From Harbison&Steele. */ 18221 union 18222 { 18223 long int l; 18224 char c[sizeof (long int)]; 18225 } u; 18226 u.l = 1; 18227 return u.c[sizeof (long int) - 1] == 1; 18228 18229 ; 18230 return 0; 18231} 18232_ACEOF 18233if ac_fn_cxx_try_run "$LINENO"; then : 18234 ac_cv_c_bigendian=no 18235else 18236 ac_cv_c_bigendian=yes 18237fi 18238rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18239 conftest.$ac_objext conftest.beam conftest.$ac_ext 18240fi 18241 18242 fi 18243fi 18244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 18245$as_echo "$ac_cv_c_bigendian" >&6; } 18246 case $ac_cv_c_bigendian in #( 18247 yes) 18248 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 18249;; #( 18250 no) 18251 ;; #( 18252 universal) 18253 18254$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 18255 18256 ;; #( 18257 *) 18258 as_fn_error $? "unknown endianness 18259 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 18260 esac 18261 18262# Mainly used by the RNG test in tests/rng* 18263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5 18264$as_echo_n "checking for /dev/urandom... " >&6; } 18265if ${ac_cv_file__dev_urandom+:} false; then : 18266 $as_echo_n "(cached) " >&6 18267else 18268 test "$cross_compiling" = yes && 18269 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18270if test -r "/dev/urandom"; then 18271 ac_cv_file__dev_urandom=yes 18272else 18273 ac_cv_file__dev_urandom=no 18274fi 18275fi 18276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5 18277$as_echo "$ac_cv_file__dev_urandom" >&6; } 18278if test "x$ac_cv_file__dev_urandom" = xyes; then : 18279 18280cat >>confdefs.h <<_ACEOF 18281#define HAVE__DEV_URANDOM 1 18282_ACEOF 18283 18284fi 18285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5 18286$as_echo_n "checking for /dev/random... " >&6; } 18287if ${ac_cv_file__dev_random+:} false; then : 18288 $as_echo_n "(cached) " >&6 18289else 18290 test "$cross_compiling" = yes && 18291 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18292if test -r "/dev/random"; then 18293 ac_cv_file__dev_random=yes 18294else 18295 ac_cv_file__dev_random=no 18296fi 18297fi 18298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5 18299$as_echo "$ac_cv_file__dev_random" >&6; } 18300if test "x$ac_cv_file__dev_random" = xyes; then : 18301 18302cat >>confdefs.h <<_ACEOF 18303#define HAVE__DEV_RANDOM 1 18304_ACEOF 18305 18306fi 18307 18308 18309{ $as_echo "$as_me:${as_lineno-$LINENO}: Preparing NLS" >&5 18310$as_echo "$as_me: Preparing NLS" >&6;} 18311 18312mkdir_p="$MKDIR_P" 18313case $mkdir_p in 18314 [\\/$]* | ?:[\\/]*) ;; 18315 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 18316esac 18317 18318 18319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 18320$as_echo_n "checking whether NLS is requested... " >&6; } 18321 # Check whether --enable-nls was given. 18322if test "${enable_nls+set}" = set; then : 18323 enableval=$enable_nls; USE_NLS=$enableval 18324else 18325 USE_NLS=yes 18326fi 18327 18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 18329$as_echo "$USE_NLS" >&6; } 18330 18331 18332 18333 18334 GETTEXT_MACRO_VERSION=0.18 18335 18336 18337 18338 18339# Prepare PATH_SEPARATOR. 18340# The user is always right. 18341if test "${PATH_SEPARATOR+set}" != set; then 18342 echo "#! /bin/sh" >conf$$.sh 18343 echo "exit 0" >>conf$$.sh 18344 chmod +x conf$$.sh 18345 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 18346 PATH_SEPARATOR=';' 18347 else 18348 PATH_SEPARATOR=: 18349 fi 18350 rm -f conf$$.sh 18351fi 18352 18353# Find out how to test for executable files. Don't use a zero-byte file, 18354# as systems may use methods other than mode bits to determine executability. 18355cat >conf$$.file <<_ASEOF 18356#! /bin/sh 18357exit 0 18358_ASEOF 18359chmod +x conf$$.file 18360if test -x conf$$.file >/dev/null 2>&1; then 18361 ac_executable_p="test -x" 18362else 18363 ac_executable_p="test -f" 18364fi 18365rm -f conf$$.file 18366 18367# Extract the first word of "msgfmt", so it can be a program name with args. 18368set dummy msgfmt; ac_word=$2 18369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18370$as_echo_n "checking for $ac_word... " >&6; } 18371if ${ac_cv_path_MSGFMT+:} false; then : 18372 $as_echo_n "(cached) " >&6 18373else 18374 case "$MSGFMT" in 18375 [\\/]* | ?:[\\/]*) 18376 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 18377 ;; 18378 *) 18379 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 18380 for ac_dir in $PATH; do 18381 IFS="$ac_save_IFS" 18382 test -z "$ac_dir" && ac_dir=. 18383 for ac_exec_ext in '' $ac_executable_extensions; do 18384 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 18385 echo "$as_me: trying $ac_dir/$ac_word..." >&5 18386 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 18387 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 18388 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 18389 break 2 18390 fi 18391 fi 18392 done 18393 done 18394 IFS="$ac_save_IFS" 18395 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 18396 ;; 18397esac 18398fi 18399MSGFMT="$ac_cv_path_MSGFMT" 18400if test "$MSGFMT" != ":"; then 18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 18402$as_echo "$MSGFMT" >&6; } 18403else 18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18405$as_echo "no" >&6; } 18406fi 18407 18408 # Extract the first word of "gmsgfmt", so it can be a program name with args. 18409set dummy gmsgfmt; ac_word=$2 18410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18411$as_echo_n "checking for $ac_word... " >&6; } 18412if ${ac_cv_path_GMSGFMT+:} false; then : 18413 $as_echo_n "(cached) " >&6 18414else 18415 case $GMSGFMT in 18416 [\\/]* | ?:[\\/]*) 18417 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 18418 ;; 18419 *) 18420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18421for as_dir in $PATH 18422do 18423 IFS=$as_save_IFS 18424 test -z "$as_dir" && as_dir=. 18425 for ac_exec_ext in '' $ac_executable_extensions; do 18426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18427 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 18428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18429 break 2 18430 fi 18431done 18432 done 18433IFS=$as_save_IFS 18434 18435 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 18436 ;; 18437esac 18438fi 18439GMSGFMT=$ac_cv_path_GMSGFMT 18440if test -n "$GMSGFMT"; then 18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 18442$as_echo "$GMSGFMT" >&6; } 18443else 18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18445$as_echo "no" >&6; } 18446fi 18447 18448 18449 18450 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 18451 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 18452 *) MSGFMT_015=$MSGFMT ;; 18453 esac 18454 18455 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 18456 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 18457 *) GMSGFMT_015=$GMSGFMT ;; 18458 esac 18459 18460 18461 18462# Prepare PATH_SEPARATOR. 18463# The user is always right. 18464if test "${PATH_SEPARATOR+set}" != set; then 18465 echo "#! /bin/sh" >conf$$.sh 18466 echo "exit 0" >>conf$$.sh 18467 chmod +x conf$$.sh 18468 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 18469 PATH_SEPARATOR=';' 18470 else 18471 PATH_SEPARATOR=: 18472 fi 18473 rm -f conf$$.sh 18474fi 18475 18476# Find out how to test for executable files. Don't use a zero-byte file, 18477# as systems may use methods other than mode bits to determine executability. 18478cat >conf$$.file <<_ASEOF 18479#! /bin/sh 18480exit 0 18481_ASEOF 18482chmod +x conf$$.file 18483if test -x conf$$.file >/dev/null 2>&1; then 18484 ac_executable_p="test -x" 18485else 18486 ac_executable_p="test -f" 18487fi 18488rm -f conf$$.file 18489 18490# Extract the first word of "xgettext", so it can be a program name with args. 18491set dummy xgettext; ac_word=$2 18492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18493$as_echo_n "checking for $ac_word... " >&6; } 18494if ${ac_cv_path_XGETTEXT+:} false; then : 18495 $as_echo_n "(cached) " >&6 18496else 18497 case "$XGETTEXT" in 18498 [\\/]* | ?:[\\/]*) 18499 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 18500 ;; 18501 *) 18502 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 18503 for ac_dir in $PATH; do 18504 IFS="$ac_save_IFS" 18505 test -z "$ac_dir" && ac_dir=. 18506 for ac_exec_ext in '' $ac_executable_extensions; do 18507 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 18508 echo "$as_me: trying $ac_dir/$ac_word..." >&5 18509 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 18510 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 18511 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 18512 break 2 18513 fi 18514 fi 18515 done 18516 done 18517 IFS="$ac_save_IFS" 18518 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 18519 ;; 18520esac 18521fi 18522XGETTEXT="$ac_cv_path_XGETTEXT" 18523if test "$XGETTEXT" != ":"; then 18524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 18525$as_echo "$XGETTEXT" >&6; } 18526else 18527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18528$as_echo "no" >&6; } 18529fi 18530 18531 rm -f messages.po 18532 18533 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 18534 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 18535 *) XGETTEXT_015=$XGETTEXT ;; 18536 esac 18537 18538 18539 18540# Prepare PATH_SEPARATOR. 18541# The user is always right. 18542if test "${PATH_SEPARATOR+set}" != set; then 18543 echo "#! /bin/sh" >conf$$.sh 18544 echo "exit 0" >>conf$$.sh 18545 chmod +x conf$$.sh 18546 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 18547 PATH_SEPARATOR=';' 18548 else 18549 PATH_SEPARATOR=: 18550 fi 18551 rm -f conf$$.sh 18552fi 18553 18554# Find out how to test for executable files. Don't use a zero-byte file, 18555# as systems may use methods other than mode bits to determine executability. 18556cat >conf$$.file <<_ASEOF 18557#! /bin/sh 18558exit 0 18559_ASEOF 18560chmod +x conf$$.file 18561if test -x conf$$.file >/dev/null 2>&1; then 18562 ac_executable_p="test -x" 18563else 18564 ac_executable_p="test -f" 18565fi 18566rm -f conf$$.file 18567 18568# Extract the first word of "msgmerge", so it can be a program name with args. 18569set dummy msgmerge; ac_word=$2 18570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18571$as_echo_n "checking for $ac_word... " >&6; } 18572if ${ac_cv_path_MSGMERGE+:} false; then : 18573 $as_echo_n "(cached) " >&6 18574else 18575 case "$MSGMERGE" in 18576 [\\/]* | ?:[\\/]*) 18577 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 18578 ;; 18579 *) 18580 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 18581 for ac_dir in $PATH; do 18582 IFS="$ac_save_IFS" 18583 test -z "$ac_dir" && ac_dir=. 18584 for ac_exec_ext in '' $ac_executable_extensions; do 18585 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 18586 echo "$as_me: trying $ac_dir/$ac_word..." >&5 18587 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 18588 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 18589 break 2 18590 fi 18591 fi 18592 done 18593 done 18594 IFS="$ac_save_IFS" 18595 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 18596 ;; 18597esac 18598fi 18599MSGMERGE="$ac_cv_path_MSGMERGE" 18600if test "$MSGMERGE" != ":"; then 18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 18602$as_echo "$MSGMERGE" >&6; } 18603else 18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18605$as_echo "no" >&6; } 18606fi 18607 18608 18609 test -n "$localedir" || localedir='${datadir}/locale' 18610 18611 18612 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 18613 18614 18615 ac_config_commands="$ac_config_commands po-directories" 18616 18617 18618 18619 if test "X$prefix" = "XNONE"; then 18620 acl_final_prefix="$ac_default_prefix" 18621 else 18622 acl_final_prefix="$prefix" 18623 fi 18624 if test "X$exec_prefix" = "XNONE"; then 18625 acl_final_exec_prefix='${prefix}' 18626 else 18627 acl_final_exec_prefix="$exec_prefix" 18628 fi 18629 acl_save_prefix="$prefix" 18630 prefix="$acl_final_prefix" 18631 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 18632 prefix="$acl_save_prefix" 18633 18634 18635# Check whether --with-gnu-ld was given. 18636if test "${with_gnu_ld+set}" = set; then : 18637 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 18638else 18639 with_gnu_ld=no 18640fi 18641 18642# Prepare PATH_SEPARATOR. 18643# The user is always right. 18644if test "${PATH_SEPARATOR+set}" != set; then 18645 echo "#! /bin/sh" >conf$$.sh 18646 echo "exit 0" >>conf$$.sh 18647 chmod +x conf$$.sh 18648 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 18649 PATH_SEPARATOR=';' 18650 else 18651 PATH_SEPARATOR=: 18652 fi 18653 rm -f conf$$.sh 18654fi 18655ac_prog=ld 18656if test "$GCC" = yes; then 18657 # Check if gcc -print-prog-name=ld gives a path. 18658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 18659$as_echo_n "checking for ld used by GCC... " >&6; } 18660 case $host in 18661 *-*-mingw*) 18662 # gcc leaves a trailing carriage return which upsets mingw 18663 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 18664 *) 18665 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 18666 esac 18667 case $ac_prog in 18668 # Accept absolute paths. 18669 [\\/]* | [A-Za-z]:[\\/]*) 18670 re_direlt='/[^/][^/]*/\.\./' 18671 # Canonicalize the path of ld 18672 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 18673 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 18674 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 18675 done 18676 test -z "$LD" && LD="$ac_prog" 18677 ;; 18678 "") 18679 # If it fails, then pretend we aren't using GCC. 18680 ac_prog=ld 18681 ;; 18682 *) 18683 # If it is relative, then search for the first ld in PATH. 18684 with_gnu_ld=unknown 18685 ;; 18686 esac 18687elif test "$with_gnu_ld" = yes; then 18688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 18689$as_echo_n "checking for GNU ld... " >&6; } 18690else 18691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 18692$as_echo_n "checking for non-GNU ld... " >&6; } 18693fi 18694if ${acl_cv_path_LD+:} false; then : 18695 $as_echo_n "(cached) " >&6 18696else 18697 if test -z "$LD"; then 18698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 18699 for ac_dir in $PATH; do 18700 test -z "$ac_dir" && ac_dir=. 18701 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 18702 acl_cv_path_LD="$ac_dir/$ac_prog" 18703 # Check to see if the program is GNU ld. I'd rather use --version, 18704 # but apparently some GNU ld's only accept -v. 18705 # Break only if it was the GNU/non-GNU ld that we prefer. 18706 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 18707 *GNU* | *'with BFD'*) 18708 test "$with_gnu_ld" != no && break ;; 18709 *) 18710 test "$with_gnu_ld" != yes && break ;; 18711 esac 18712 fi 18713 done 18714 IFS="$ac_save_ifs" 18715else 18716 acl_cv_path_LD="$LD" # Let the user override the test with a path. 18717fi 18718fi 18719 18720LD="$acl_cv_path_LD" 18721if test -n "$LD"; then 18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 18723$as_echo "$LD" >&6; } 18724else 18725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18726$as_echo "no" >&6; } 18727fi 18728test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 18729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 18730$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 18731if ${acl_cv_prog_gnu_ld+:} false; then : 18732 $as_echo_n "(cached) " >&6 18733else 18734 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 18735case `$LD -v 2>&1 </dev/null` in 18736*GNU* | *'with BFD'*) 18737 acl_cv_prog_gnu_ld=yes ;; 18738*) 18739 acl_cv_prog_gnu_ld=no ;; 18740esac 18741fi 18742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 18743$as_echo "$acl_cv_prog_gnu_ld" >&6; } 18744with_gnu_ld=$acl_cv_prog_gnu_ld 18745 18746 18747 18748 18749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 18750$as_echo_n "checking for shared library run path origin... " >&6; } 18751if ${acl_cv_rpath+:} false; then : 18752 $as_echo_n "(cached) " >&6 18753else 18754 18755 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 18756 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 18757 . ./conftest.sh 18758 rm -f ./conftest.sh 18759 acl_cv_rpath=done 18760 18761fi 18762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 18763$as_echo "$acl_cv_rpath" >&6; } 18764 wl="$acl_cv_wl" 18765 acl_libext="$acl_cv_libext" 18766 acl_shlibext="$acl_cv_shlibext" 18767 acl_libname_spec="$acl_cv_libname_spec" 18768 acl_library_names_spec="$acl_cv_library_names_spec" 18769 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 18770 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 18771 acl_hardcode_direct="$acl_cv_hardcode_direct" 18772 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 18773 # Check whether --enable-rpath was given. 18774if test "${enable_rpath+set}" = set; then : 18775 enableval=$enable_rpath; : 18776else 18777 enable_rpath=yes 18778fi 18779 18780 18781 18782 18783 acl_libdirstem=lib 18784 acl_libdirstem2= 18785 case "$host_os" in 18786 solaris*) 18787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 18788$as_echo_n "checking for 64-bit host... " >&6; } 18789if ${gl_cv_solaris_64bit+:} false; then : 18790 $as_echo_n "(cached) " >&6 18791else 18792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18793/* end confdefs.h. */ 18794 18795#ifdef _LP64 18796sixtyfour bits 18797#endif 18798 18799_ACEOF 18800if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18801 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 18802 gl_cv_solaris_64bit=yes 18803else 18804 gl_cv_solaris_64bit=no 18805fi 18806rm -f conftest* 18807 18808 18809fi 18810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 18811$as_echo "$gl_cv_solaris_64bit" >&6; } 18812 if test $gl_cv_solaris_64bit = yes; then 18813 acl_libdirstem=lib/64 18814 case "$host_cpu" in 18815 sparc*) acl_libdirstem2=lib/sparcv9 ;; 18816 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 18817 esac 18818 fi 18819 ;; 18820 *) 18821 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 18822 if test -n "$searchpath"; then 18823 acl_save_IFS="${IFS= }"; IFS=":" 18824 for searchdir in $searchpath; do 18825 if test -d "$searchdir"; then 18826 case "$searchdir" in 18827 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 18828 */../ | */.. ) 18829 # Better ignore directories of this form. They are misleading. 18830 ;; 18831 *) searchdir=`cd "$searchdir" && pwd` 18832 case "$searchdir" in 18833 */lib64 ) acl_libdirstem=lib64 ;; 18834 esac ;; 18835 esac 18836 fi 18837 done 18838 IFS="$acl_save_IFS" 18839 fi 18840 ;; 18841 esac 18842 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 18843 18844 18845 18846 18847 18848 18849 18850 18851 18852 18853 18854 18855 use_additional=yes 18856 18857 acl_save_prefix="$prefix" 18858 prefix="$acl_final_prefix" 18859 acl_save_exec_prefix="$exec_prefix" 18860 exec_prefix="$acl_final_exec_prefix" 18861 18862 eval additional_includedir=\"$includedir\" 18863 eval additional_libdir=\"$libdir\" 18864 18865 exec_prefix="$acl_save_exec_prefix" 18866 prefix="$acl_save_prefix" 18867 18868 18869# Check whether --with-libiconv-prefix was given. 18870if test "${with_libiconv_prefix+set}" = set; then : 18871 withval=$with_libiconv_prefix; 18872 if test "X$withval" = "Xno"; then 18873 use_additional=no 18874 else 18875 if test "X$withval" = "X"; then 18876 18877 acl_save_prefix="$prefix" 18878 prefix="$acl_final_prefix" 18879 acl_save_exec_prefix="$exec_prefix" 18880 exec_prefix="$acl_final_exec_prefix" 18881 18882 eval additional_includedir=\"$includedir\" 18883 eval additional_libdir=\"$libdir\" 18884 18885 exec_prefix="$acl_save_exec_prefix" 18886 prefix="$acl_save_prefix" 18887 18888 else 18889 additional_includedir="$withval/include" 18890 additional_libdir="$withval/$acl_libdirstem" 18891 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 18892 && ! test -d "$withval/$acl_libdirstem"; then 18893 additional_libdir="$withval/$acl_libdirstem2" 18894 fi 18895 fi 18896 fi 18897 18898fi 18899 18900 LIBICONV= 18901 LTLIBICONV= 18902 INCICONV= 18903 LIBICONV_PREFIX= 18904 HAVE_LIBICONV= 18905 rpathdirs= 18906 ltrpathdirs= 18907 names_already_handled= 18908 names_next_round='iconv ' 18909 while test -n "$names_next_round"; do 18910 names_this_round="$names_next_round" 18911 names_next_round= 18912 for name in $names_this_round; do 18913 already_handled= 18914 for n in $names_already_handled; do 18915 if test "$n" = "$name"; then 18916 already_handled=yes 18917 break 18918 fi 18919 done 18920 if test -z "$already_handled"; then 18921 names_already_handled="$names_already_handled $name" 18922 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 18923 eval value=\"\$HAVE_LIB$uppername\" 18924 if test -n "$value"; then 18925 if test "$value" = yes; then 18926 eval value=\"\$LIB$uppername\" 18927 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 18928 eval value=\"\$LTLIB$uppername\" 18929 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 18930 else 18931 : 18932 fi 18933 else 18934 found_dir= 18935 found_la= 18936 found_so= 18937 found_a= 18938 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 18939 if test -n "$acl_shlibext"; then 18940 shrext=".$acl_shlibext" # typically: shrext=.so 18941 else 18942 shrext= 18943 fi 18944 if test $use_additional = yes; then 18945 dir="$additional_libdir" 18946 if test -n "$acl_shlibext"; then 18947 if test -f "$dir/$libname$shrext"; then 18948 found_dir="$dir" 18949 found_so="$dir/$libname$shrext" 18950 else 18951 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 18952 ver=`(cd "$dir" && \ 18953 for f in "$libname$shrext".*; do echo "$f"; done \ 18954 | sed -e "s,^$libname$shrext\\\\.,," \ 18955 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 18956 | sed 1q ) 2>/dev/null` 18957 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 18958 found_dir="$dir" 18959 found_so="$dir/$libname$shrext.$ver" 18960 fi 18961 else 18962 eval library_names=\"$acl_library_names_spec\" 18963 for f in $library_names; do 18964 if test -f "$dir/$f"; then 18965 found_dir="$dir" 18966 found_so="$dir/$f" 18967 break 18968 fi 18969 done 18970 fi 18971 fi 18972 fi 18973 if test "X$found_dir" = "X"; then 18974 if test -f "$dir/$libname.$acl_libext"; then 18975 found_dir="$dir" 18976 found_a="$dir/$libname.$acl_libext" 18977 fi 18978 fi 18979 if test "X$found_dir" != "X"; then 18980 if test -f "$dir/$libname.la"; then 18981 found_la="$dir/$libname.la" 18982 fi 18983 fi 18984 fi 18985 if test "X$found_dir" = "X"; then 18986 for x in $LDFLAGS $LTLIBICONV; do 18987 18988 acl_save_prefix="$prefix" 18989 prefix="$acl_final_prefix" 18990 acl_save_exec_prefix="$exec_prefix" 18991 exec_prefix="$acl_final_exec_prefix" 18992 eval x=\"$x\" 18993 exec_prefix="$acl_save_exec_prefix" 18994 prefix="$acl_save_prefix" 18995 18996 case "$x" in 18997 -L*) 18998 dir=`echo "X$x" | sed -e 's/^X-L//'` 18999 if test -n "$acl_shlibext"; then 19000 if test -f "$dir/$libname$shrext"; then 19001 found_dir="$dir" 19002 found_so="$dir/$libname$shrext" 19003 else 19004 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 19005 ver=`(cd "$dir" && \ 19006 for f in "$libname$shrext".*; do echo "$f"; done \ 19007 | sed -e "s,^$libname$shrext\\\\.,," \ 19008 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 19009 | sed 1q ) 2>/dev/null` 19010 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 19011 found_dir="$dir" 19012 found_so="$dir/$libname$shrext.$ver" 19013 fi 19014 else 19015 eval library_names=\"$acl_library_names_spec\" 19016 for f in $library_names; do 19017 if test -f "$dir/$f"; then 19018 found_dir="$dir" 19019 found_so="$dir/$f" 19020 break 19021 fi 19022 done 19023 fi 19024 fi 19025 fi 19026 if test "X$found_dir" = "X"; then 19027 if test -f "$dir/$libname.$acl_libext"; then 19028 found_dir="$dir" 19029 found_a="$dir/$libname.$acl_libext" 19030 fi 19031 fi 19032 if test "X$found_dir" != "X"; then 19033 if test -f "$dir/$libname.la"; then 19034 found_la="$dir/$libname.la" 19035 fi 19036 fi 19037 ;; 19038 esac 19039 if test "X$found_dir" != "X"; then 19040 break 19041 fi 19042 done 19043 fi 19044 if test "X$found_dir" != "X"; then 19045 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 19046 if test "X$found_so" != "X"; then 19047 if test "$enable_rpath" = no \ 19048 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 19049 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 19050 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 19051 else 19052 haveit= 19053 for x in $ltrpathdirs; do 19054 if test "X$x" = "X$found_dir"; then 19055 haveit=yes 19056 break 19057 fi 19058 done 19059 if test -z "$haveit"; then 19060 ltrpathdirs="$ltrpathdirs $found_dir" 19061 fi 19062 if test "$acl_hardcode_direct" = yes; then 19063 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 19064 else 19065 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 19066 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 19067 haveit= 19068 for x in $rpathdirs; do 19069 if test "X$x" = "X$found_dir"; then 19070 haveit=yes 19071 break 19072 fi 19073 done 19074 if test -z "$haveit"; then 19075 rpathdirs="$rpathdirs $found_dir" 19076 fi 19077 else 19078 haveit= 19079 for x in $LDFLAGS $LIBICONV; do 19080 19081 acl_save_prefix="$prefix" 19082 prefix="$acl_final_prefix" 19083 acl_save_exec_prefix="$exec_prefix" 19084 exec_prefix="$acl_final_exec_prefix" 19085 eval x=\"$x\" 19086 exec_prefix="$acl_save_exec_prefix" 19087 prefix="$acl_save_prefix" 19088 19089 if test "X$x" = "X-L$found_dir"; then 19090 haveit=yes 19091 break 19092 fi 19093 done 19094 if test -z "$haveit"; then 19095 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 19096 fi 19097 if test "$acl_hardcode_minus_L" != no; then 19098 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 19099 else 19100 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 19101 fi 19102 fi 19103 fi 19104 fi 19105 else 19106 if test "X$found_a" != "X"; then 19107 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 19108 else 19109 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 19110 fi 19111 fi 19112 additional_includedir= 19113 case "$found_dir" in 19114 */$acl_libdirstem | */$acl_libdirstem/) 19115 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 19116 if test "$name" = 'iconv'; then 19117 LIBICONV_PREFIX="$basedir" 19118 fi 19119 additional_includedir="$basedir/include" 19120 ;; 19121 */$acl_libdirstem2 | */$acl_libdirstem2/) 19122 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 19123 if test "$name" = 'iconv'; then 19124 LIBICONV_PREFIX="$basedir" 19125 fi 19126 additional_includedir="$basedir/include" 19127 ;; 19128 esac 19129 if test "X$additional_includedir" != "X"; then 19130 if test "X$additional_includedir" != "X/usr/include"; then 19131 haveit= 19132 if test "X$additional_includedir" = "X/usr/local/include"; then 19133 if test -n "$GCC"; then 19134 case $host_os in 19135 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 19136 esac 19137 fi 19138 fi 19139 if test -z "$haveit"; then 19140 for x in $CPPFLAGS $INCICONV; do 19141 19142 acl_save_prefix="$prefix" 19143 prefix="$acl_final_prefix" 19144 acl_save_exec_prefix="$exec_prefix" 19145 exec_prefix="$acl_final_exec_prefix" 19146 eval x=\"$x\" 19147 exec_prefix="$acl_save_exec_prefix" 19148 prefix="$acl_save_prefix" 19149 19150 if test "X$x" = "X-I$additional_includedir"; then 19151 haveit=yes 19152 break 19153 fi 19154 done 19155 if test -z "$haveit"; then 19156 if test -d "$additional_includedir"; then 19157 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 19158 fi 19159 fi 19160 fi 19161 fi 19162 fi 19163 if test -n "$found_la"; then 19164 save_libdir="$libdir" 19165 case "$found_la" in 19166 */* | *\\*) . "$found_la" ;; 19167 *) . "./$found_la" ;; 19168 esac 19169 libdir="$save_libdir" 19170 for dep in $dependency_libs; do 19171 case "$dep" in 19172 -L*) 19173 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 19174 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 19175 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 19176 haveit= 19177 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 19178 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 19179 if test -n "$GCC"; then 19180 case $host_os in 19181 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 19182 esac 19183 fi 19184 fi 19185 if test -z "$haveit"; then 19186 haveit= 19187 for x in $LDFLAGS $LIBICONV; do 19188 19189 acl_save_prefix="$prefix" 19190 prefix="$acl_final_prefix" 19191 acl_save_exec_prefix="$exec_prefix" 19192 exec_prefix="$acl_final_exec_prefix" 19193 eval x=\"$x\" 19194 exec_prefix="$acl_save_exec_prefix" 19195 prefix="$acl_save_prefix" 19196 19197 if test "X$x" = "X-L$additional_libdir"; then 19198 haveit=yes 19199 break 19200 fi 19201 done 19202 if test -z "$haveit"; then 19203 if test -d "$additional_libdir"; then 19204 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 19205 fi 19206 fi 19207 haveit= 19208 for x in $LDFLAGS $LTLIBICONV; do 19209 19210 acl_save_prefix="$prefix" 19211 prefix="$acl_final_prefix" 19212 acl_save_exec_prefix="$exec_prefix" 19213 exec_prefix="$acl_final_exec_prefix" 19214 eval x=\"$x\" 19215 exec_prefix="$acl_save_exec_prefix" 19216 prefix="$acl_save_prefix" 19217 19218 if test "X$x" = "X-L$additional_libdir"; then 19219 haveit=yes 19220 break 19221 fi 19222 done 19223 if test -z "$haveit"; then 19224 if test -d "$additional_libdir"; then 19225 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 19226 fi 19227 fi 19228 fi 19229 fi 19230 ;; 19231 -R*) 19232 dir=`echo "X$dep" | sed -e 's/^X-R//'` 19233 if test "$enable_rpath" != no; then 19234 haveit= 19235 for x in $rpathdirs; do 19236 if test "X$x" = "X$dir"; then 19237 haveit=yes 19238 break 19239 fi 19240 done 19241 if test -z "$haveit"; then 19242 rpathdirs="$rpathdirs $dir" 19243 fi 19244 haveit= 19245 for x in $ltrpathdirs; do 19246 if test "X$x" = "X$dir"; then 19247 haveit=yes 19248 break 19249 fi 19250 done 19251 if test -z "$haveit"; then 19252 ltrpathdirs="$ltrpathdirs $dir" 19253 fi 19254 fi 19255 ;; 19256 -l*) 19257 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 19258 ;; 19259 *.la) 19260 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 19261 ;; 19262 *) 19263 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 19264 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 19265 ;; 19266 esac 19267 done 19268 fi 19269 else 19270 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 19271 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 19272 fi 19273 fi 19274 fi 19275 done 19276 done 19277 if test "X$rpathdirs" != "X"; then 19278 if test -n "$acl_hardcode_libdir_separator"; then 19279 alldirs= 19280 for found_dir in $rpathdirs; do 19281 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 19282 done 19283 acl_save_libdir="$libdir" 19284 libdir="$alldirs" 19285 eval flag=\"$acl_hardcode_libdir_flag_spec\" 19286 libdir="$acl_save_libdir" 19287 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 19288 else 19289 for found_dir in $rpathdirs; do 19290 acl_save_libdir="$libdir" 19291 libdir="$found_dir" 19292 eval flag=\"$acl_hardcode_libdir_flag_spec\" 19293 libdir="$acl_save_libdir" 19294 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 19295 done 19296 fi 19297 fi 19298 if test "X$ltrpathdirs" != "X"; then 19299 for found_dir in $ltrpathdirs; do 19300 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 19301 done 19302 fi 19303 19304 19305 19306 19307 19308 19309 19310 19311 19312 19313 19314 19315 19316 19317 19318 19319 19320 19321 19322 19323 19324 19325 19326 19327 19328 19329 19330 19331 19332 19333 19334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 19335$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 19336if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 19337 $as_echo_n "(cached) " >&6 19338else 19339 gt_save_LIBS="$LIBS" 19340 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 19341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19342/* end confdefs.h. */ 19343#include <CoreFoundation/CFPreferences.h> 19344int 19345main () 19346{ 19347CFPreferencesCopyAppValue(NULL, NULL) 19348 ; 19349 return 0; 19350} 19351_ACEOF 19352if ac_fn_cxx_try_link "$LINENO"; then : 19353 gt_cv_func_CFPreferencesCopyAppValue=yes 19354else 19355 gt_cv_func_CFPreferencesCopyAppValue=no 19356fi 19357rm -f core conftest.err conftest.$ac_objext \ 19358 conftest$ac_exeext conftest.$ac_ext 19359 LIBS="$gt_save_LIBS" 19360fi 19361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 19362$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 19363 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 19364 19365$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 19366 19367 fi 19368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 19369$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 19370if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : 19371 $as_echo_n "(cached) " >&6 19372else 19373 gt_save_LIBS="$LIBS" 19374 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 19375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19376/* end confdefs.h. */ 19377#include <CoreFoundation/CFLocale.h> 19378int 19379main () 19380{ 19381CFLocaleCopyCurrent(); 19382 ; 19383 return 0; 19384} 19385_ACEOF 19386if ac_fn_cxx_try_link "$LINENO"; then : 19387 gt_cv_func_CFLocaleCopyCurrent=yes 19388else 19389 gt_cv_func_CFLocaleCopyCurrent=no 19390fi 19391rm -f core conftest.err conftest.$ac_objext \ 19392 conftest$ac_exeext conftest.$ac_ext 19393 LIBS="$gt_save_LIBS" 19394fi 19395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 19396$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 19397 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 19398 19399$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 19400 19401 fi 19402 INTL_MACOSX_LIBS= 19403 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 19404 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 19405 fi 19406 19407 19408 19409 19410 19411 19412 LIBINTL= 19413 LTLIBINTL= 19414 POSUB= 19415 19416 case " $gt_needs " in 19417 *" need-formatstring-macros "*) gt_api_version=3 ;; 19418 *" need-ngettext "*) gt_api_version=2 ;; 19419 *) gt_api_version=1 ;; 19420 esac 19421 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 19422 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 19423 19424 if test "$USE_NLS" = "yes"; then 19425 gt_use_preinstalled_gnugettext=no 19426 19427 19428 if test $gt_api_version -ge 3; then 19429 gt_revision_test_code=' 19430#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 19431#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 19432#endif 19433typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 19434' 19435 else 19436 gt_revision_test_code= 19437 fi 19438 if test $gt_api_version -ge 2; then 19439 gt_expression_test_code=' + * ngettext ("", "", 0)' 19440 else 19441 gt_expression_test_code= 19442 fi 19443 19444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 19445$as_echo_n "checking for GNU gettext in libc... " >&6; } 19446if eval \${$gt_func_gnugettext_libc+:} false; then : 19447 $as_echo_n "(cached) " >&6 19448else 19449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19450/* end confdefs.h. */ 19451#include <libintl.h> 19452$gt_revision_test_code 19453extern int _nl_msg_cat_cntr; 19454extern int *_nl_domain_bindings; 19455int 19456main () 19457{ 19458bindtextdomain ("", ""); 19459return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 19460 ; 19461 return 0; 19462} 19463_ACEOF 19464if ac_fn_cxx_try_link "$LINENO"; then : 19465 eval "$gt_func_gnugettext_libc=yes" 19466else 19467 eval "$gt_func_gnugettext_libc=no" 19468fi 19469rm -f core conftest.err conftest.$ac_objext \ 19470 conftest$ac_exeext conftest.$ac_ext 19471fi 19472eval ac_res=\$$gt_func_gnugettext_libc 19473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19474$as_echo "$ac_res" >&6; } 19475 19476 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 19477 19478 19479 19480 19481 19482 am_save_CPPFLAGS="$CPPFLAGS" 19483 19484 for element in $INCICONV; do 19485 haveit= 19486 for x in $CPPFLAGS; do 19487 19488 acl_save_prefix="$prefix" 19489 prefix="$acl_final_prefix" 19490 acl_save_exec_prefix="$exec_prefix" 19491 exec_prefix="$acl_final_exec_prefix" 19492 eval x=\"$x\" 19493 exec_prefix="$acl_save_exec_prefix" 19494 prefix="$acl_save_prefix" 19495 19496 if test "X$x" = "X$element"; then 19497 haveit=yes 19498 break 19499 fi 19500 done 19501 if test -z "$haveit"; then 19502 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 19503 fi 19504 done 19505 19506 19507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 19508$as_echo_n "checking for iconv... " >&6; } 19509if ${am_cv_func_iconv+:} false; then : 19510 $as_echo_n "(cached) " >&6 19511else 19512 19513 am_cv_func_iconv="no, consider installing GNU libiconv" 19514 am_cv_lib_iconv=no 19515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19516/* end confdefs.h. */ 19517#include <stdlib.h> 19518#include <iconv.h> 19519int 19520main () 19521{ 19522iconv_t cd = iconv_open("",""); 19523 iconv(cd,NULL,NULL,NULL,NULL); 19524 iconv_close(cd); 19525 ; 19526 return 0; 19527} 19528_ACEOF 19529if ac_fn_cxx_try_link "$LINENO"; then : 19530 am_cv_func_iconv=yes 19531fi 19532rm -f core conftest.err conftest.$ac_objext \ 19533 conftest$ac_exeext conftest.$ac_ext 19534 if test "$am_cv_func_iconv" != yes; then 19535 am_save_LIBS="$LIBS" 19536 LIBS="$LIBS $LIBICONV" 19537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19538/* end confdefs.h. */ 19539#include <stdlib.h> 19540#include <iconv.h> 19541int 19542main () 19543{ 19544iconv_t cd = iconv_open("",""); 19545 iconv(cd,NULL,NULL,NULL,NULL); 19546 iconv_close(cd); 19547 ; 19548 return 0; 19549} 19550_ACEOF 19551if ac_fn_cxx_try_link "$LINENO"; then : 19552 am_cv_lib_iconv=yes 19553 am_cv_func_iconv=yes 19554fi 19555rm -f core conftest.err conftest.$ac_objext \ 19556 conftest$ac_exeext conftest.$ac_ext 19557 LIBS="$am_save_LIBS" 19558 fi 19559 19560fi 19561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 19562$as_echo "$am_cv_func_iconv" >&6; } 19563 if test "$am_cv_func_iconv" = yes; then 19564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 19565$as_echo_n "checking for working iconv... " >&6; } 19566if ${am_cv_func_iconv_works+:} false; then : 19567 $as_echo_n "(cached) " >&6 19568else 19569 19570 am_save_LIBS="$LIBS" 19571 if test $am_cv_lib_iconv = yes; then 19572 LIBS="$LIBS $LIBICONV" 19573 fi 19574 if test "$cross_compiling" = yes; then : 19575 case "$host_os" in 19576 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 19577 *) am_cv_func_iconv_works="guessing yes" ;; 19578 esac 19579else 19580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19581/* end confdefs.h. */ 19582 19583#include <iconv.h> 19584#include <string.h> 19585int main () 19586{ 19587 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 19588 returns. */ 19589 { 19590 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 19591 if (cd_utf8_to_88591 != (iconv_t)(-1)) 19592 { 19593 static const char input[] = "\342\202\254"; /* EURO SIGN */ 19594 char buf[10]; 19595 const char *inptr = input; 19596 size_t inbytesleft = strlen (input); 19597 char *outptr = buf; 19598 size_t outbytesleft = sizeof (buf); 19599 size_t res = iconv (cd_utf8_to_88591, 19600 (char **) &inptr, &inbytesleft, 19601 &outptr, &outbytesleft); 19602 if (res == 0) 19603 return 1; 19604 } 19605 } 19606 /* Test against Solaris 10 bug: Failures are not distinguishable from 19607 successful returns. */ 19608 { 19609 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 19610 if (cd_ascii_to_88591 != (iconv_t)(-1)) 19611 { 19612 static const char input[] = "\263"; 19613 char buf[10]; 19614 const char *inptr = input; 19615 size_t inbytesleft = strlen (input); 19616 char *outptr = buf; 19617 size_t outbytesleft = sizeof (buf); 19618 size_t res = iconv (cd_ascii_to_88591, 19619 (char **) &inptr, &inbytesleft, 19620 &outptr, &outbytesleft); 19621 if (res == 0) 19622 return 1; 19623 } 19624 } 19625#if 0 /* This bug could be worked around by the caller. */ 19626 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 19627 { 19628 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 19629 if (cd_88591_to_utf8 != (iconv_t)(-1)) 19630 { 19631 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 19632 char buf[50]; 19633 const char *inptr = input; 19634 size_t inbytesleft = strlen (input); 19635 char *outptr = buf; 19636 size_t outbytesleft = sizeof (buf); 19637 size_t res = iconv (cd_88591_to_utf8, 19638 (char **) &inptr, &inbytesleft, 19639 &outptr, &outbytesleft); 19640 if ((int)res > 0) 19641 return 1; 19642 } 19643 } 19644#endif 19645 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 19646 provided. */ 19647 if (/* Try standardized names. */ 19648 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 19649 /* Try IRIX, OSF/1 names. */ 19650 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 19651 /* Try AIX names. */ 19652 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 19653 /* Try HP-UX names. */ 19654 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 19655 return 1; 19656 return 0; 19657} 19658_ACEOF 19659if ac_fn_cxx_try_run "$LINENO"; then : 19660 am_cv_func_iconv_works=yes 19661else 19662 am_cv_func_iconv_works=no 19663fi 19664rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19665 conftest.$ac_objext conftest.beam conftest.$ac_ext 19666fi 19667 19668 LIBS="$am_save_LIBS" 19669 19670fi 19671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 19672$as_echo "$am_cv_func_iconv_works" >&6; } 19673 case "$am_cv_func_iconv_works" in 19674 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 19675 *) am_func_iconv=yes ;; 19676 esac 19677 else 19678 am_func_iconv=no am_cv_lib_iconv=no 19679 fi 19680 if test "$am_func_iconv" = yes; then 19681 19682$as_echo "#define HAVE_ICONV 1" >>confdefs.h 19683 19684 fi 19685 if test "$am_cv_lib_iconv" = yes; then 19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 19687$as_echo_n "checking how to link with libiconv... " >&6; } 19688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 19689$as_echo "$LIBICONV" >&6; } 19690 else 19691 CPPFLAGS="$am_save_CPPFLAGS" 19692 LIBICONV= 19693 LTLIBICONV= 19694 fi 19695 19696 19697 19698 19699 19700 19701 19702 19703 19704 19705 19706 use_additional=yes 19707 19708 acl_save_prefix="$prefix" 19709 prefix="$acl_final_prefix" 19710 acl_save_exec_prefix="$exec_prefix" 19711 exec_prefix="$acl_final_exec_prefix" 19712 19713 eval additional_includedir=\"$includedir\" 19714 eval additional_libdir=\"$libdir\" 19715 19716 exec_prefix="$acl_save_exec_prefix" 19717 prefix="$acl_save_prefix" 19718 19719 19720# Check whether --with-libintl-prefix was given. 19721if test "${with_libintl_prefix+set}" = set; then : 19722 withval=$with_libintl_prefix; 19723 if test "X$withval" = "Xno"; then 19724 use_additional=no 19725 else 19726 if test "X$withval" = "X"; then 19727 19728 acl_save_prefix="$prefix" 19729 prefix="$acl_final_prefix" 19730 acl_save_exec_prefix="$exec_prefix" 19731 exec_prefix="$acl_final_exec_prefix" 19732 19733 eval additional_includedir=\"$includedir\" 19734 eval additional_libdir=\"$libdir\" 19735 19736 exec_prefix="$acl_save_exec_prefix" 19737 prefix="$acl_save_prefix" 19738 19739 else 19740 additional_includedir="$withval/include" 19741 additional_libdir="$withval/$acl_libdirstem" 19742 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 19743 && ! test -d "$withval/$acl_libdirstem"; then 19744 additional_libdir="$withval/$acl_libdirstem2" 19745 fi 19746 fi 19747 fi 19748 19749fi 19750 19751 LIBINTL= 19752 LTLIBINTL= 19753 INCINTL= 19754 LIBINTL_PREFIX= 19755 HAVE_LIBINTL= 19756 rpathdirs= 19757 ltrpathdirs= 19758 names_already_handled= 19759 names_next_round='intl ' 19760 while test -n "$names_next_round"; do 19761 names_this_round="$names_next_round" 19762 names_next_round= 19763 for name in $names_this_round; do 19764 already_handled= 19765 for n in $names_already_handled; do 19766 if test "$n" = "$name"; then 19767 already_handled=yes 19768 break 19769 fi 19770 done 19771 if test -z "$already_handled"; then 19772 names_already_handled="$names_already_handled $name" 19773 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 19774 eval value=\"\$HAVE_LIB$uppername\" 19775 if test -n "$value"; then 19776 if test "$value" = yes; then 19777 eval value=\"\$LIB$uppername\" 19778 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 19779 eval value=\"\$LTLIB$uppername\" 19780 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 19781 else 19782 : 19783 fi 19784 else 19785 found_dir= 19786 found_la= 19787 found_so= 19788 found_a= 19789 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 19790 if test -n "$acl_shlibext"; then 19791 shrext=".$acl_shlibext" # typically: shrext=.so 19792 else 19793 shrext= 19794 fi 19795 if test $use_additional = yes; then 19796 dir="$additional_libdir" 19797 if test -n "$acl_shlibext"; then 19798 if test -f "$dir/$libname$shrext"; then 19799 found_dir="$dir" 19800 found_so="$dir/$libname$shrext" 19801 else 19802 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 19803 ver=`(cd "$dir" && \ 19804 for f in "$libname$shrext".*; do echo "$f"; done \ 19805 | sed -e "s,^$libname$shrext\\\\.,," \ 19806 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 19807 | sed 1q ) 2>/dev/null` 19808 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 19809 found_dir="$dir" 19810 found_so="$dir/$libname$shrext.$ver" 19811 fi 19812 else 19813 eval library_names=\"$acl_library_names_spec\" 19814 for f in $library_names; do 19815 if test -f "$dir/$f"; then 19816 found_dir="$dir" 19817 found_so="$dir/$f" 19818 break 19819 fi 19820 done 19821 fi 19822 fi 19823 fi 19824 if test "X$found_dir" = "X"; then 19825 if test -f "$dir/$libname.$acl_libext"; then 19826 found_dir="$dir" 19827 found_a="$dir/$libname.$acl_libext" 19828 fi 19829 fi 19830 if test "X$found_dir" != "X"; then 19831 if test -f "$dir/$libname.la"; then 19832 found_la="$dir/$libname.la" 19833 fi 19834 fi 19835 fi 19836 if test "X$found_dir" = "X"; then 19837 for x in $LDFLAGS $LTLIBINTL; do 19838 19839 acl_save_prefix="$prefix" 19840 prefix="$acl_final_prefix" 19841 acl_save_exec_prefix="$exec_prefix" 19842 exec_prefix="$acl_final_exec_prefix" 19843 eval x=\"$x\" 19844 exec_prefix="$acl_save_exec_prefix" 19845 prefix="$acl_save_prefix" 19846 19847 case "$x" in 19848 -L*) 19849 dir=`echo "X$x" | sed -e 's/^X-L//'` 19850 if test -n "$acl_shlibext"; then 19851 if test -f "$dir/$libname$shrext"; then 19852 found_dir="$dir" 19853 found_so="$dir/$libname$shrext" 19854 else 19855 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 19856 ver=`(cd "$dir" && \ 19857 for f in "$libname$shrext".*; do echo "$f"; done \ 19858 | sed -e "s,^$libname$shrext\\\\.,," \ 19859 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 19860 | sed 1q ) 2>/dev/null` 19861 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 19862 found_dir="$dir" 19863 found_so="$dir/$libname$shrext.$ver" 19864 fi 19865 else 19866 eval library_names=\"$acl_library_names_spec\" 19867 for f in $library_names; do 19868 if test -f "$dir/$f"; then 19869 found_dir="$dir" 19870 found_so="$dir/$f" 19871 break 19872 fi 19873 done 19874 fi 19875 fi 19876 fi 19877 if test "X$found_dir" = "X"; then 19878 if test -f "$dir/$libname.$acl_libext"; then 19879 found_dir="$dir" 19880 found_a="$dir/$libname.$acl_libext" 19881 fi 19882 fi 19883 if test "X$found_dir" != "X"; then 19884 if test -f "$dir/$libname.la"; then 19885 found_la="$dir/$libname.la" 19886 fi 19887 fi 19888 ;; 19889 esac 19890 if test "X$found_dir" != "X"; then 19891 break 19892 fi 19893 done 19894 fi 19895 if test "X$found_dir" != "X"; then 19896 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 19897 if test "X$found_so" != "X"; then 19898 if test "$enable_rpath" = no \ 19899 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 19900 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 19901 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 19902 else 19903 haveit= 19904 for x in $ltrpathdirs; do 19905 if test "X$x" = "X$found_dir"; then 19906 haveit=yes 19907 break 19908 fi 19909 done 19910 if test -z "$haveit"; then 19911 ltrpathdirs="$ltrpathdirs $found_dir" 19912 fi 19913 if test "$acl_hardcode_direct" = yes; then 19914 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 19915 else 19916 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 19917 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 19918 haveit= 19919 for x in $rpathdirs; do 19920 if test "X$x" = "X$found_dir"; then 19921 haveit=yes 19922 break 19923 fi 19924 done 19925 if test -z "$haveit"; then 19926 rpathdirs="$rpathdirs $found_dir" 19927 fi 19928 else 19929 haveit= 19930 for x in $LDFLAGS $LIBINTL; do 19931 19932 acl_save_prefix="$prefix" 19933 prefix="$acl_final_prefix" 19934 acl_save_exec_prefix="$exec_prefix" 19935 exec_prefix="$acl_final_exec_prefix" 19936 eval x=\"$x\" 19937 exec_prefix="$acl_save_exec_prefix" 19938 prefix="$acl_save_prefix" 19939 19940 if test "X$x" = "X-L$found_dir"; then 19941 haveit=yes 19942 break 19943 fi 19944 done 19945 if test -z "$haveit"; then 19946 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 19947 fi 19948 if test "$acl_hardcode_minus_L" != no; then 19949 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 19950 else 19951 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 19952 fi 19953 fi 19954 fi 19955 fi 19956 else 19957 if test "X$found_a" != "X"; then 19958 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 19959 else 19960 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 19961 fi 19962 fi 19963 additional_includedir= 19964 case "$found_dir" in 19965 */$acl_libdirstem | */$acl_libdirstem/) 19966 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 19967 if test "$name" = 'intl'; then 19968 LIBINTL_PREFIX="$basedir" 19969 fi 19970 additional_includedir="$basedir/include" 19971 ;; 19972 */$acl_libdirstem2 | */$acl_libdirstem2/) 19973 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 19974 if test "$name" = 'intl'; then 19975 LIBINTL_PREFIX="$basedir" 19976 fi 19977 additional_includedir="$basedir/include" 19978 ;; 19979 esac 19980 if test "X$additional_includedir" != "X"; then 19981 if test "X$additional_includedir" != "X/usr/include"; then 19982 haveit= 19983 if test "X$additional_includedir" = "X/usr/local/include"; then 19984 if test -n "$GCC"; then 19985 case $host_os in 19986 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 19987 esac 19988 fi 19989 fi 19990 if test -z "$haveit"; then 19991 for x in $CPPFLAGS $INCINTL; do 19992 19993 acl_save_prefix="$prefix" 19994 prefix="$acl_final_prefix" 19995 acl_save_exec_prefix="$exec_prefix" 19996 exec_prefix="$acl_final_exec_prefix" 19997 eval x=\"$x\" 19998 exec_prefix="$acl_save_exec_prefix" 19999 prefix="$acl_save_prefix" 20000 20001 if test "X$x" = "X-I$additional_includedir"; then 20002 haveit=yes 20003 break 20004 fi 20005 done 20006 if test -z "$haveit"; then 20007 if test -d "$additional_includedir"; then 20008 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 20009 fi 20010 fi 20011 fi 20012 fi 20013 fi 20014 if test -n "$found_la"; then 20015 save_libdir="$libdir" 20016 case "$found_la" in 20017 */* | *\\*) . "$found_la" ;; 20018 *) . "./$found_la" ;; 20019 esac 20020 libdir="$save_libdir" 20021 for dep in $dependency_libs; do 20022 case "$dep" in 20023 -L*) 20024 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 20025 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 20026 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 20027 haveit= 20028 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 20029 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 20030 if test -n "$GCC"; then 20031 case $host_os in 20032 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 20033 esac 20034 fi 20035 fi 20036 if test -z "$haveit"; then 20037 haveit= 20038 for x in $LDFLAGS $LIBINTL; do 20039 20040 acl_save_prefix="$prefix" 20041 prefix="$acl_final_prefix" 20042 acl_save_exec_prefix="$exec_prefix" 20043 exec_prefix="$acl_final_exec_prefix" 20044 eval x=\"$x\" 20045 exec_prefix="$acl_save_exec_prefix" 20046 prefix="$acl_save_prefix" 20047 20048 if test "X$x" = "X-L$additional_libdir"; then 20049 haveit=yes 20050 break 20051 fi 20052 done 20053 if test -z "$haveit"; then 20054 if test -d "$additional_libdir"; then 20055 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 20056 fi 20057 fi 20058 haveit= 20059 for x in $LDFLAGS $LTLIBINTL; do 20060 20061 acl_save_prefix="$prefix" 20062 prefix="$acl_final_prefix" 20063 acl_save_exec_prefix="$exec_prefix" 20064 exec_prefix="$acl_final_exec_prefix" 20065 eval x=\"$x\" 20066 exec_prefix="$acl_save_exec_prefix" 20067 prefix="$acl_save_prefix" 20068 20069 if test "X$x" = "X-L$additional_libdir"; then 20070 haveit=yes 20071 break 20072 fi 20073 done 20074 if test -z "$haveit"; then 20075 if test -d "$additional_libdir"; then 20076 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 20077 fi 20078 fi 20079 fi 20080 fi 20081 ;; 20082 -R*) 20083 dir=`echo "X$dep" | sed -e 's/^X-R//'` 20084 if test "$enable_rpath" != no; then 20085 haveit= 20086 for x in $rpathdirs; do 20087 if test "X$x" = "X$dir"; then 20088 haveit=yes 20089 break 20090 fi 20091 done 20092 if test -z "$haveit"; then 20093 rpathdirs="$rpathdirs $dir" 20094 fi 20095 haveit= 20096 for x in $ltrpathdirs; do 20097 if test "X$x" = "X$dir"; then 20098 haveit=yes 20099 break 20100 fi 20101 done 20102 if test -z "$haveit"; then 20103 ltrpathdirs="$ltrpathdirs $dir" 20104 fi 20105 fi 20106 ;; 20107 -l*) 20108 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 20109 ;; 20110 *.la) 20111 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 20112 ;; 20113 *) 20114 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 20115 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 20116 ;; 20117 esac 20118 done 20119 fi 20120 else 20121 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 20122 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 20123 fi 20124 fi 20125 fi 20126 done 20127 done 20128 if test "X$rpathdirs" != "X"; then 20129 if test -n "$acl_hardcode_libdir_separator"; then 20130 alldirs= 20131 for found_dir in $rpathdirs; do 20132 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 20133 done 20134 acl_save_libdir="$libdir" 20135 libdir="$alldirs" 20136 eval flag=\"$acl_hardcode_libdir_flag_spec\" 20137 libdir="$acl_save_libdir" 20138 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 20139 else 20140 for found_dir in $rpathdirs; do 20141 acl_save_libdir="$libdir" 20142 libdir="$found_dir" 20143 eval flag=\"$acl_hardcode_libdir_flag_spec\" 20144 libdir="$acl_save_libdir" 20145 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 20146 done 20147 fi 20148 fi 20149 if test "X$ltrpathdirs" != "X"; then 20150 for found_dir in $ltrpathdirs; do 20151 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 20152 done 20153 fi 20154 20155 20156 20157 20158 20159 20160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 20161$as_echo_n "checking for GNU gettext in libintl... " >&6; } 20162if eval \${$gt_func_gnugettext_libintl+:} false; then : 20163 $as_echo_n "(cached) " >&6 20164else 20165 gt_save_CPPFLAGS="$CPPFLAGS" 20166 CPPFLAGS="$CPPFLAGS $INCINTL" 20167 gt_save_LIBS="$LIBS" 20168 LIBS="$LIBS $LIBINTL" 20169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20170/* end confdefs.h. */ 20171#include <libintl.h> 20172$gt_revision_test_code 20173extern int _nl_msg_cat_cntr; 20174extern 20175#ifdef __cplusplus 20176"C" 20177#endif 20178const char *_nl_expand_alias (const char *); 20179int 20180main () 20181{ 20182bindtextdomain ("", ""); 20183return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 20184 ; 20185 return 0; 20186} 20187_ACEOF 20188if ac_fn_cxx_try_link "$LINENO"; then : 20189 eval "$gt_func_gnugettext_libintl=yes" 20190else 20191 eval "$gt_func_gnugettext_libintl=no" 20192fi 20193rm -f core conftest.err conftest.$ac_objext \ 20194 conftest$ac_exeext conftest.$ac_ext 20195 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 20196 LIBS="$LIBS $LIBICONV" 20197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20198/* end confdefs.h. */ 20199#include <libintl.h> 20200$gt_revision_test_code 20201extern int _nl_msg_cat_cntr; 20202extern 20203#ifdef __cplusplus 20204"C" 20205#endif 20206const char *_nl_expand_alias (const char *); 20207int 20208main () 20209{ 20210bindtextdomain ("", ""); 20211return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 20212 ; 20213 return 0; 20214} 20215_ACEOF 20216if ac_fn_cxx_try_link "$LINENO"; then : 20217 LIBINTL="$LIBINTL $LIBICONV" 20218 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 20219 eval "$gt_func_gnugettext_libintl=yes" 20220 20221fi 20222rm -f core conftest.err conftest.$ac_objext \ 20223 conftest$ac_exeext conftest.$ac_ext 20224 fi 20225 CPPFLAGS="$gt_save_CPPFLAGS" 20226 LIBS="$gt_save_LIBS" 20227fi 20228eval ac_res=\$$gt_func_gnugettext_libintl 20229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20230$as_echo "$ac_res" >&6; } 20231 fi 20232 20233 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 20234 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 20235 && test "$PACKAGE" != gettext-runtime \ 20236 && test "$PACKAGE" != gettext-tools; }; then 20237 gt_use_preinstalled_gnugettext=yes 20238 else 20239 LIBINTL= 20240 LTLIBINTL= 20241 INCINTL= 20242 fi 20243 20244 20245 20246 if test -n "$INTL_MACOSX_LIBS"; then 20247 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 20248 || test "$nls_cv_use_gnu_gettext" = "yes"; then 20249 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 20250 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 20251 fi 20252 fi 20253 20254 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 20255 || test "$nls_cv_use_gnu_gettext" = "yes"; then 20256 20257$as_echo "#define ENABLE_NLS 1" >>confdefs.h 20258 20259 else 20260 USE_NLS=no 20261 fi 20262 fi 20263 20264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 20265$as_echo_n "checking whether to use NLS... " >&6; } 20266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 20267$as_echo "$USE_NLS" >&6; } 20268 if test "$USE_NLS" = "yes"; then 20269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 20270$as_echo_n "checking where the gettext function comes from... " >&6; } 20271 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 20272 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 20273 gt_source="external libintl" 20274 else 20275 gt_source="libc" 20276 fi 20277 else 20278 gt_source="included intl directory" 20279 fi 20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 20281$as_echo "$gt_source" >&6; } 20282 fi 20283 20284 if test "$USE_NLS" = "yes"; then 20285 20286 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 20287 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 20288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 20289$as_echo_n "checking how to link with libintl... " >&6; } 20290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 20291$as_echo "$LIBINTL" >&6; } 20292 20293 for element in $INCINTL; do 20294 haveit= 20295 for x in $CPPFLAGS; do 20296 20297 acl_save_prefix="$prefix" 20298 prefix="$acl_final_prefix" 20299 acl_save_exec_prefix="$exec_prefix" 20300 exec_prefix="$acl_final_exec_prefix" 20301 eval x=\"$x\" 20302 exec_prefix="$acl_save_exec_prefix" 20303 prefix="$acl_save_prefix" 20304 20305 if test "X$x" = "X$element"; then 20306 haveit=yes 20307 break 20308 fi 20309 done 20310 if test -z "$haveit"; then 20311 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 20312 fi 20313 done 20314 20315 fi 20316 20317 20318$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 20319 20320 20321$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 20322 20323 fi 20324 20325 POSUB=po 20326 fi 20327 20328 20329 20330 INTLLIBS="$LIBINTL" 20331 20332 20333 20334 20335 20336 20337 20338 20339 20340 20341 20342 20343 20344 20345 20346if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20347 if test -n "$ac_tool_prefix"; then 20348 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20349set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20351$as_echo_n "checking for $ac_word... " >&6; } 20352if ${ac_cv_path_PKG_CONFIG+:} false; then : 20353 $as_echo_n "(cached) " >&6 20354else 20355 case $PKG_CONFIG in 20356 [\\/]* | ?:[\\/]*) 20357 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20358 ;; 20359 *) 20360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20361for as_dir in $PATH 20362do 20363 IFS=$as_save_IFS 20364 test -z "$as_dir" && as_dir=. 20365 for ac_exec_ext in '' $ac_executable_extensions; do 20366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20367 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20369 break 2 20370 fi 20371done 20372 done 20373IFS=$as_save_IFS 20374 20375 ;; 20376esac 20377fi 20378PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20379if test -n "$PKG_CONFIG"; then 20380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 20381$as_echo "$PKG_CONFIG" >&6; } 20382else 20383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20384$as_echo "no" >&6; } 20385fi 20386 20387 20388fi 20389if test -z "$ac_cv_path_PKG_CONFIG"; then 20390 ac_pt_PKG_CONFIG=$PKG_CONFIG 20391 # Extract the first word of "pkg-config", so it can be a program name with args. 20392set dummy pkg-config; ac_word=$2 20393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20394$as_echo_n "checking for $ac_word... " >&6; } 20395if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 20396 $as_echo_n "(cached) " >&6 20397else 20398 case $ac_pt_PKG_CONFIG in 20399 [\\/]* | ?:[\\/]*) 20400 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 20401 ;; 20402 *) 20403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20404for as_dir in $PATH 20405do 20406 IFS=$as_save_IFS 20407 test -z "$as_dir" && as_dir=. 20408 for ac_exec_ext in '' $ac_executable_extensions; do 20409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20410 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20412 break 2 20413 fi 20414done 20415 done 20416IFS=$as_save_IFS 20417 20418 ;; 20419esac 20420fi 20421ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20422if test -n "$ac_pt_PKG_CONFIG"; then 20423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 20424$as_echo "$ac_pt_PKG_CONFIG" >&6; } 20425else 20426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20427$as_echo "no" >&6; } 20428fi 20429 20430 if test "x$ac_pt_PKG_CONFIG" = x; then 20431 PKG_CONFIG="" 20432 else 20433 case $cross_compiling:$ac_tool_warned in 20434yes:) 20435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20437ac_tool_warned=yes ;; 20438esac 20439 PKG_CONFIG=$ac_pt_PKG_CONFIG 20440 fi 20441else 20442 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20443fi 20444 20445fi 20446if test -n "$PKG_CONFIG"; then 20447 _pkg_min_version=0.9.0 20448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 20449$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 20450 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20452$as_echo "yes" >&6; } 20453 else 20454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20455$as_echo "no" >&6; } 20456 PKG_CONFIG="" 20457 fi 20458fi 20459 20460pkg_failed=no 20461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPPUNIT" >&5 20462$as_echo_n "checking for CPPUNIT... " >&6; } 20463 20464if test -n "$CPPUNIT_CFLAGS"; then 20465 pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS" 20466 elif test -n "$PKG_CONFIG"; then 20467 if test -n "$PKG_CONFIG" && \ 20468 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5 20469 ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5 20470 ac_status=$? 20471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20472 test $ac_status = 0; }; then 20473 pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit" 2>/dev/null` 20474 test "x$?" != "x0" && pkg_failed=yes 20475else 20476 pkg_failed=yes 20477fi 20478 else 20479 pkg_failed=untried 20480fi 20481if test -n "$CPPUNIT_LIBS"; then 20482 pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS" 20483 elif test -n "$PKG_CONFIG"; then 20484 if test -n "$PKG_CONFIG" && \ 20485 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5 20486 ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5 20487 ac_status=$? 20488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20489 test $ac_status = 0; }; then 20490 pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs "cppunit" 2>/dev/null` 20491 test "x$?" != "x0" && pkg_failed=yes 20492else 20493 pkg_failed=yes 20494fi 20495 else 20496 pkg_failed=untried 20497fi 20498 20499 20500 20501if test $pkg_failed = yes; then 20502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20503$as_echo "no" >&6; } 20504 20505if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20506 _pkg_short_errors_supported=yes 20507else 20508 _pkg_short_errors_supported=no 20509fi 20510 if test $_pkg_short_errors_supported = yes; then 20511 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cppunit" 2>&1` 20512 else 20513 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cppunit" 2>&1` 20514 fi 20515 # Put the nasty error message in config.log where it belongs 20516 echo "$CPPUNIT_PKG_ERRORS" >&5 20517 20518 as_fn_error $? "Package requirements (cppunit) were not met: 20519 20520$CPPUNIT_PKG_ERRORS 20521 20522Consider adjusting the PKG_CONFIG_PATH environment variable if you 20523installed software in a non-standard prefix. 20524 20525Alternatively, you may set the environment variables CPPUNIT_CFLAGS 20526and CPPUNIT_LIBS to avoid the need to call pkg-config. 20527See the pkg-config man page for more details." "$LINENO" 5 20528elif test $pkg_failed = untried; then 20529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20530$as_echo "no" >&6; } 20531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20533as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20534is in your PATH or set the PKG_CONFIG environment variable to the full 20535path to pkg-config. 20536 20537Alternatively, you may set the environment variables CPPUNIT_CFLAGS 20538and CPPUNIT_LIBS to avoid the need to call pkg-config. 20539See the pkg-config man page for more details. 20540 20541To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20542See \`config.log' for more details" "$LINENO" 5; } 20543else 20544 CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS 20545 CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS 20546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20547$as_echo "yes" >&6; } 20548 20549fi 20550 20551pkg_failed=no 20552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARGON2" >&5 20553$as_echo_n "checking for ARGON2... " >&6; } 20554 20555if test -n "$ARGON2_CFLAGS"; then 20556 pkg_cv_ARGON2_CFLAGS="$ARGON2_CFLAGS" 20557 elif test -n "$PKG_CONFIG"; then 20558 if test -n "$PKG_CONFIG" && \ 20559 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libargon2\""; } >&5 20560 ($PKG_CONFIG --exists --print-errors "libargon2") 2>&5 20561 ac_status=$? 20562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20563 test $ac_status = 0; }; then 20564 pkg_cv_ARGON2_CFLAGS=`$PKG_CONFIG --cflags "libargon2" 2>/dev/null` 20565 test "x$?" != "x0" && pkg_failed=yes 20566else 20567 pkg_failed=yes 20568fi 20569 else 20570 pkg_failed=untried 20571fi 20572if test -n "$ARGON2_LIBS"; then 20573 pkg_cv_ARGON2_LIBS="$ARGON2_LIBS" 20574 elif test -n "$PKG_CONFIG"; then 20575 if test -n "$PKG_CONFIG" && \ 20576 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libargon2\""; } >&5 20577 ($PKG_CONFIG --exists --print-errors "libargon2") 2>&5 20578 ac_status=$? 20579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20580 test $ac_status = 0; }; then 20581 pkg_cv_ARGON2_LIBS=`$PKG_CONFIG --libs "libargon2" 2>/dev/null` 20582 test "x$?" != "x0" && pkg_failed=yes 20583else 20584 pkg_failed=yes 20585fi 20586 else 20587 pkg_failed=untried 20588fi 20589 20590 20591 20592if test $pkg_failed = yes; then 20593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20594$as_echo "no" >&6; } 20595 20596if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20597 _pkg_short_errors_supported=yes 20598else 20599 _pkg_short_errors_supported=no 20600fi 20601 if test $_pkg_short_errors_supported = yes; then 20602 ARGON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libargon2" 2>&1` 20603 else 20604 ARGON2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libargon2" 2>&1` 20605 fi 20606 # Put the nasty error message in config.log where it belongs 20607 echo "$ARGON2_PKG_ERRORS" >&5 20608 20609 as_fn_error $? "Package requirements (libargon2) were not met: 20610 20611$ARGON2_PKG_ERRORS 20612 20613Consider adjusting the PKG_CONFIG_PATH environment variable if you 20614installed software in a non-standard prefix. 20615 20616Alternatively, you may set the environment variables ARGON2_CFLAGS 20617and ARGON2_LIBS to avoid the need to call pkg-config. 20618See the pkg-config man page for more details." "$LINENO" 5 20619elif test $pkg_failed = untried; then 20620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20621$as_echo "no" >&6; } 20622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20624as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20625is in your PATH or set the PKG_CONFIG environment variable to the full 20626path to pkg-config. 20627 20628Alternatively, you may set the environment variables ARGON2_CFLAGS 20629and ARGON2_LIBS to avoid the need to call pkg-config. 20630See the pkg-config man page for more details. 20631 20632To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20633See \`config.log' for more details" "$LINENO" 5; } 20634else 20635 ARGON2_CFLAGS=$pkg_cv_ARGON2_CFLAGS 20636 ARGON2_LIBS=$pkg_cv_ARGON2_LIBS 20637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20638$as_echo "yes" >&6; } 20639 20640fi 20641 20642# Some conditionals for the makefileS 20643 if test x$USE_NLS = xyes; then 20644 USE_NLS_TRUE= 20645 USE_NLS_FALSE='#' 20646else 20647 USE_NLS_TRUE='#' 20648 USE_NLS_FALSE= 20649fi 20650 20651 if test x$my_disableinstalldoc = xyes; then 20652 DISABLEINSTALLDOC_TRUE= 20653 DISABLEINSTALLDOC_FALSE='#' 20654else 20655 DISABLEINSTALLDOC_TRUE='#' 20656 DISABLEINSTALLDOC_FALSE= 20657fi 20658 20659 if test x$my_debug = xno; then 20660 DISABLE_DEBUG_TRUE= 20661 DISABLE_DEBUG_FALSE='#' 20662else 20663 DISABLE_DEBUG_TRUE='#' 20664 DISABLE_DEBUG_FALSE= 20665fi 20666 20667ac_config_files="$ac_config_files doc/Makefile doc/Makefile.doc Makefile po/Makefile.in src/converters/csv/Makefile src/converters/csv2yapet/Makefile src/converters/Makefile src/converters/yapet2csv/Makefile src/libs/cfg/Makefile src/libs/consts/Makefile src/libs/crypt/Makefile src/libs/exceptions/Makefile src/libs/file/Makefile src/libs/globals/Makefile src/libs/glue/Makefile src/libs/interfaces/Makefile src/libs/Makefile src/libs/metadata/Makefile src/libs/passwordrecord/Makefile src/libs/pwgen/Makefile src/libs/ui/Makefile src/libs/utils/Makefile src/Makefile src/yapet/Makefile tests/cfg/Makefile tests/cfg/testpaths.h tests/converters/csv/Makefile tests/converters/import/Makefile tests/converters/import/testpaths.h tests/converters/Makefile tests/crypt/Makefile tests/crypt/testpaths.h tests/file/Makefile tests/file/testpaths.h tests/Makefile tests/metadata/Makefile tests/passwordrecord/Makefile tests/preload/Makefile tests/pwgen/Makefile tests/utils/Makefile" 20668 20669# Inject --disable-install which is used by libyacurs. 20670ac_configure_args="$ac_configure_args --disable-install" 20671cat >confcache <<\_ACEOF 20672# This file is a shell script that caches the results of configure 20673# tests run on this system so they can be shared between configure 20674# scripts and configure runs, see configure's option --config-cache. 20675# It is not useful on other systems. If it contains results you don't 20676# want to keep, you may remove or edit it. 20677# 20678# config.status only pays attention to the cache file if you give it 20679# the --recheck option to rerun configure. 20680# 20681# `ac_cv_env_foo' variables (set or unset) will be overridden when 20682# loading this file, other *unset* `ac_cv_foo' will be assigned the 20683# following values. 20684 20685_ACEOF 20686 20687# The following way of writing the cache mishandles newlines in values, 20688# but we know of no workaround that is simple, portable, and efficient. 20689# So, we kill variables containing newlines. 20690# Ultrix sh set writes to stderr and can't be redirected directly, 20691# and sets the high bit in the cache file unless we assign to the vars. 20692( 20693 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20694 eval ac_val=\$$ac_var 20695 case $ac_val in #( 20696 *${as_nl}*) 20697 case $ac_var in #( 20698 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20699$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20700 esac 20701 case $ac_var in #( 20702 _ | IFS | as_nl) ;; #( 20703 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20704 *) { eval $ac_var=; unset $ac_var;} ;; 20705 esac ;; 20706 esac 20707 done 20708 20709 (set) 2>&1 | 20710 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20711 *${as_nl}ac_space=\ *) 20712 # `set' does not quote correctly, so add quotes: double-quote 20713 # substitution turns \\\\ into \\, and sed turns \\ into \. 20714 sed -n \ 20715 "s/'/'\\\\''/g; 20716 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20717 ;; #( 20718 *) 20719 # `set' quotes correctly as required by POSIX, so do not add quotes. 20720 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20721 ;; 20722 esac | 20723 sort 20724) | 20725 sed ' 20726 /^ac_cv_env_/b end 20727 t clear 20728 :clear 20729 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20730 t end 20731 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20732 :end' >>confcache 20733if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20734 if test -w "$cache_file"; then 20735 if test "x$cache_file" != "x/dev/null"; then 20736 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20737$as_echo "$as_me: updating cache $cache_file" >&6;} 20738 if test ! -f "$cache_file" || test -h "$cache_file"; then 20739 cat confcache >"$cache_file" 20740 else 20741 case $cache_file in #( 20742 */* | ?:*) 20743 mv -f confcache "$cache_file"$$ && 20744 mv -f "$cache_file"$$ "$cache_file" ;; #( 20745 *) 20746 mv -f confcache "$cache_file" ;; 20747 esac 20748 fi 20749 fi 20750 else 20751 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20752$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20753 fi 20754fi 20755rm -f confcache 20756 20757test "x$prefix" = xNONE && prefix=$ac_default_prefix 20758# Let make expand exec_prefix. 20759test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20760 20761DEFS=-DHAVE_CONFIG_H 20762 20763ac_libobjs= 20764ac_ltlibobjs= 20765U= 20766for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20767 # 1. Remove the extension, and $U if already installed. 20768 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20769 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20770 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20771 # will be set to the directory where LIBOBJS objects are built. 20772 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20773 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20774done 20775LIBOBJS=$ac_libobjs 20776 20777LTLIBOBJS=$ac_ltlibobjs 20778 20779 20780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20781$as_echo_n "checking that generated files are newer than configure... " >&6; } 20782 if test -n "$am_sleep_pid"; then 20783 # Hide warnings about reused PIDs. 20784 wait $am_sleep_pid 2>/dev/null 20785 fi 20786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20787$as_echo "done" >&6; } 20788 if test -n "$EXEEXT"; then 20789 am__EXEEXT_TRUE= 20790 am__EXEEXT_FALSE='#' 20791else 20792 am__EXEEXT_TRUE='#' 20793 am__EXEEXT_FALSE= 20794fi 20795 20796if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20797 as_fn_error $? "conditional \"AMDEP\" was never defined. 20798Usually this means the macro was only invoked conditionally." "$LINENO" 5 20799fi 20800if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20801 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20802Usually this means the macro was only invoked conditionally." "$LINENO" 5 20803fi 20804if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20805 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 20806Usually this means the macro was only invoked conditionally." "$LINENO" 5 20807fi 20808 20809if test -z "${USE_NLS_TRUE}" && test -z "${USE_NLS_FALSE}"; then 20810 as_fn_error $? "conditional \"USE_NLS\" was never defined. 20811Usually this means the macro was only invoked conditionally." "$LINENO" 5 20812fi 20813if test -z "${DISABLEINSTALLDOC_TRUE}" && test -z "${DISABLEINSTALLDOC_FALSE}"; then 20814 as_fn_error $? "conditional \"DISABLEINSTALLDOC\" was never defined. 20815Usually this means the macro was only invoked conditionally." "$LINENO" 5 20816fi 20817if test -z "${DISABLE_DEBUG_TRUE}" && test -z "${DISABLE_DEBUG_FALSE}"; then 20818 as_fn_error $? "conditional \"DISABLE_DEBUG\" was never defined. 20819Usually this means the macro was only invoked conditionally." "$LINENO" 5 20820fi 20821 20822: "${CONFIG_STATUS=./config.status}" 20823ac_write_fail=0 20824ac_clean_files_save=$ac_clean_files 20825ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20826{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20827$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20828as_write_fail=0 20829cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20830#! $SHELL 20831# Generated by $as_me. 20832# Run this file to recreate the current configuration. 20833# Compiler output produced by configure, useful for debugging 20834# configure, is in config.log if it exists. 20835 20836debug=false 20837ac_cs_recheck=false 20838ac_cs_silent=false 20839 20840SHELL=\${CONFIG_SHELL-$SHELL} 20841export SHELL 20842_ASEOF 20843cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20844## -------------------- ## 20845## M4sh Initialization. ## 20846## -------------------- ## 20847 20848# Be more Bourne compatible 20849DUALCASE=1; export DUALCASE # for MKS sh 20850if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20851 emulate sh 20852 NULLCMD=: 20853 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20854 # is contrary to our usage. Disable this feature. 20855 alias -g '${1+"$@"}'='"$@"' 20856 setopt NO_GLOB_SUBST 20857else 20858 case `(set -o) 2>/dev/null` in #( 20859 *posix*) : 20860 set -o posix ;; #( 20861 *) : 20862 ;; 20863esac 20864fi 20865 20866 20867as_nl=' 20868' 20869export as_nl 20870# Printing a long string crashes Solaris 7 /usr/bin/printf. 20871as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20872as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20873as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20874# Prefer a ksh shell builtin over an external printf program on Solaris, 20875# but without wasting forks for bash or zsh. 20876if test -z "$BASH_VERSION$ZSH_VERSION" \ 20877 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20878 as_echo='print -r --' 20879 as_echo_n='print -rn --' 20880elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20881 as_echo='printf %s\n' 20882 as_echo_n='printf %s' 20883else 20884 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20885 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20886 as_echo_n='/usr/ucb/echo -n' 20887 else 20888 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20889 as_echo_n_body='eval 20890 arg=$1; 20891 case $arg in #( 20892 *"$as_nl"*) 20893 expr "X$arg" : "X\\(.*\\)$as_nl"; 20894 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20895 esac; 20896 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20897 ' 20898 export as_echo_n_body 20899 as_echo_n='sh -c $as_echo_n_body as_echo' 20900 fi 20901 export as_echo_body 20902 as_echo='sh -c $as_echo_body as_echo' 20903fi 20904 20905# The user is always right. 20906if test "${PATH_SEPARATOR+set}" != set; then 20907 PATH_SEPARATOR=: 20908 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20909 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20910 PATH_SEPARATOR=';' 20911 } 20912fi 20913 20914 20915# IFS 20916# We need space, tab and new line, in precisely that order. Quoting is 20917# there to prevent editors from complaining about space-tab. 20918# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20919# splitting by setting IFS to empty value.) 20920IFS=" "" $as_nl" 20921 20922# Find who we are. Look in the path if we contain no directory separator. 20923as_myself= 20924case $0 in #(( 20925 *[\\/]* ) as_myself=$0 ;; 20926 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20927for as_dir in $PATH 20928do 20929 IFS=$as_save_IFS 20930 test -z "$as_dir" && as_dir=. 20931 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20932 done 20933IFS=$as_save_IFS 20934 20935 ;; 20936esac 20937# We did not find ourselves, most probably we were run as `sh COMMAND' 20938# in which case we are not to be found in the path. 20939if test "x$as_myself" = x; then 20940 as_myself=$0 20941fi 20942if test ! -f "$as_myself"; then 20943 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20944 exit 1 20945fi 20946 20947# Unset variables that we do not need and which cause bugs (e.g. in 20948# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20949# suppresses any "Segmentation fault" message there. '((' could 20950# trigger a bug in pdksh 5.2.14. 20951for as_var in BASH_ENV ENV MAIL MAILPATH 20952do eval test x\${$as_var+set} = xset \ 20953 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20954done 20955PS1='$ ' 20956PS2='> ' 20957PS4='+ ' 20958 20959# NLS nuisances. 20960LC_ALL=C 20961export LC_ALL 20962LANGUAGE=C 20963export LANGUAGE 20964 20965# CDPATH. 20966(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20967 20968 20969# as_fn_error STATUS ERROR [LINENO LOG_FD] 20970# ---------------------------------------- 20971# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20972# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20973# script with STATUS, using 1 if that was 0. 20974as_fn_error () 20975{ 20976 as_status=$1; test $as_status -eq 0 && as_status=1 20977 if test "$4"; then 20978 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20979 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20980 fi 20981 $as_echo "$as_me: error: $2" >&2 20982 as_fn_exit $as_status 20983} # as_fn_error 20984 20985 20986# as_fn_set_status STATUS 20987# ----------------------- 20988# Set $? to STATUS, without forking. 20989as_fn_set_status () 20990{ 20991 return $1 20992} # as_fn_set_status 20993 20994# as_fn_exit STATUS 20995# ----------------- 20996# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20997as_fn_exit () 20998{ 20999 set +e 21000 as_fn_set_status $1 21001 exit $1 21002} # as_fn_exit 21003 21004# as_fn_unset VAR 21005# --------------- 21006# Portably unset VAR. 21007as_fn_unset () 21008{ 21009 { eval $1=; unset $1;} 21010} 21011as_unset=as_fn_unset 21012# as_fn_append VAR VALUE 21013# ---------------------- 21014# Append the text in VALUE to the end of the definition contained in VAR. Take 21015# advantage of any shell optimizations that allow amortized linear growth over 21016# repeated appends, instead of the typical quadratic growth present in naive 21017# implementations. 21018if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 21019 eval 'as_fn_append () 21020 { 21021 eval $1+=\$2 21022 }' 21023else 21024 as_fn_append () 21025 { 21026 eval $1=\$$1\$2 21027 } 21028fi # as_fn_append 21029 21030# as_fn_arith ARG... 21031# ------------------ 21032# Perform arithmetic evaluation on the ARGs, and store the result in the 21033# global $as_val. Take advantage of shells that can avoid forks. The arguments 21034# must be portable across $(()) and expr. 21035if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 21036 eval 'as_fn_arith () 21037 { 21038 as_val=$(( $* )) 21039 }' 21040else 21041 as_fn_arith () 21042 { 21043 as_val=`expr "$@" || test $? -eq 1` 21044 } 21045fi # as_fn_arith 21046 21047 21048if expr a : '\(a\)' >/dev/null 2>&1 && 21049 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21050 as_expr=expr 21051else 21052 as_expr=false 21053fi 21054 21055if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21056 as_basename=basename 21057else 21058 as_basename=false 21059fi 21060 21061if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21062 as_dirname=dirname 21063else 21064 as_dirname=false 21065fi 21066 21067as_me=`$as_basename -- "$0" || 21068$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21069 X"$0" : 'X\(//\)$' \| \ 21070 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21071$as_echo X/"$0" | 21072 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21073 s//\1/ 21074 q 21075 } 21076 /^X\/\(\/\/\)$/{ 21077 s//\1/ 21078 q 21079 } 21080 /^X\/\(\/\).*/{ 21081 s//\1/ 21082 q 21083 } 21084 s/.*/./; q'` 21085 21086# Avoid depending upon Character Ranges. 21087as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21088as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21089as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21090as_cr_digits='0123456789' 21091as_cr_alnum=$as_cr_Letters$as_cr_digits 21092 21093ECHO_C= ECHO_N= ECHO_T= 21094case `echo -n x` in #((((( 21095-n*) 21096 case `echo 'xy\c'` in 21097 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21098 xy) ECHO_C='\c';; 21099 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21100 ECHO_T=' ';; 21101 esac;; 21102*) 21103 ECHO_N='-n';; 21104esac 21105 21106rm -f conf$$ conf$$.exe conf$$.file 21107if test -d conf$$.dir; then 21108 rm -f conf$$.dir/conf$$.file 21109else 21110 rm -f conf$$.dir 21111 mkdir conf$$.dir 2>/dev/null 21112fi 21113if (echo >conf$$.file) 2>/dev/null; then 21114 if ln -s conf$$.file conf$$ 2>/dev/null; then 21115 as_ln_s='ln -s' 21116 # ... but there are two gotchas: 21117 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21118 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21119 # In both cases, we have to default to `cp -pR'. 21120 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21121 as_ln_s='cp -pR' 21122 elif ln conf$$.file conf$$ 2>/dev/null; then 21123 as_ln_s=ln 21124 else 21125 as_ln_s='cp -pR' 21126 fi 21127else 21128 as_ln_s='cp -pR' 21129fi 21130rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21131rmdir conf$$.dir 2>/dev/null 21132 21133 21134# as_fn_mkdir_p 21135# ------------- 21136# Create "$as_dir" as a directory, including parents if necessary. 21137as_fn_mkdir_p () 21138{ 21139 21140 case $as_dir in #( 21141 -*) as_dir=./$as_dir;; 21142 esac 21143 test -d "$as_dir" || eval $as_mkdir_p || { 21144 as_dirs= 21145 while :; do 21146 case $as_dir in #( 21147 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21148 *) as_qdir=$as_dir;; 21149 esac 21150 as_dirs="'$as_qdir' $as_dirs" 21151 as_dir=`$as_dirname -- "$as_dir" || 21152$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21153 X"$as_dir" : 'X\(//\)[^/]' \| \ 21154 X"$as_dir" : 'X\(//\)$' \| \ 21155 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21156$as_echo X"$as_dir" | 21157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21158 s//\1/ 21159 q 21160 } 21161 /^X\(\/\/\)[^/].*/{ 21162 s//\1/ 21163 q 21164 } 21165 /^X\(\/\/\)$/{ 21166 s//\1/ 21167 q 21168 } 21169 /^X\(\/\).*/{ 21170 s//\1/ 21171 q 21172 } 21173 s/.*/./; q'` 21174 test -d "$as_dir" && break 21175 done 21176 test -z "$as_dirs" || eval "mkdir $as_dirs" 21177 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21178 21179 21180} # as_fn_mkdir_p 21181if mkdir -p . 2>/dev/null; then 21182 as_mkdir_p='mkdir -p "$as_dir"' 21183else 21184 test -d ./-p && rmdir ./-p 21185 as_mkdir_p=false 21186fi 21187 21188 21189# as_fn_executable_p FILE 21190# ----------------------- 21191# Test if FILE is an executable regular file. 21192as_fn_executable_p () 21193{ 21194 test -f "$1" && test -x "$1" 21195} # as_fn_executable_p 21196as_test_x='test -x' 21197as_executable_p=as_fn_executable_p 21198 21199# Sed expression to map a string onto a valid CPP name. 21200as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21201 21202# Sed expression to map a string onto a valid variable name. 21203as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21204 21205 21206exec 6>&1 21207## ----------------------------------- ## 21208## Main body of $CONFIG_STATUS script. ## 21209## ----------------------------------- ## 21210_ASEOF 21211test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21212 21213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21214# Save the log message, to keep $0 and so on meaningful, and to 21215# report actual input values of CONFIG_FILES etc. instead of their 21216# values after options handling. 21217ac_log=" 21218This file was extended by YAPET $as_me 2.3, which was 21219generated by GNU Autoconf 2.69. Invocation command line was 21220 21221 CONFIG_FILES = $CONFIG_FILES 21222 CONFIG_HEADERS = $CONFIG_HEADERS 21223 CONFIG_LINKS = $CONFIG_LINKS 21224 CONFIG_COMMANDS = $CONFIG_COMMANDS 21225 $ $0 $@ 21226 21227on `(hostname || uname -n) 2>/dev/null | sed 1q` 21228" 21229 21230_ACEOF 21231 21232case $ac_config_files in *" 21233"*) set x $ac_config_files; shift; ac_config_files=$*;; 21234esac 21235 21236case $ac_config_headers in *" 21237"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21238esac 21239 21240 21241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21242# Files that config.status was made for. 21243config_files="$ac_config_files" 21244config_headers="$ac_config_headers" 21245config_commands="$ac_config_commands" 21246 21247_ACEOF 21248 21249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21250ac_cs_usage="\ 21251\`$as_me' instantiates files and other configuration actions 21252from templates according to the current configuration. Unless the files 21253and actions are specified as TAGs, all are instantiated by default. 21254 21255Usage: $0 [OPTION]... [TAG]... 21256 21257 -h, --help print this help, then exit 21258 -V, --version print version number and configuration settings, then exit 21259 --config print configuration, then exit 21260 -q, --quiet, --silent 21261 do not print progress messages 21262 -d, --debug don't remove temporary files 21263 --recheck update $as_me by reconfiguring in the same conditions 21264 --file=FILE[:TEMPLATE] 21265 instantiate the configuration file FILE 21266 --header=FILE[:TEMPLATE] 21267 instantiate the configuration header FILE 21268 21269Configuration files: 21270$config_files 21271 21272Configuration headers: 21273$config_headers 21274 21275Configuration commands: 21276$config_commands 21277 21278Report bugs to <https://github.com/RafaelOstertag/yapet/issues>." 21279 21280_ACEOF 21281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21282ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21283ac_cs_version="\\ 21284YAPET config.status 2.3 21285configured by $0, generated by GNU Autoconf 2.69, 21286 with options \\"\$ac_cs_config\\" 21287 21288Copyright (C) 2012 Free Software Foundation, Inc. 21289This config.status script is free software; the Free Software Foundation 21290gives unlimited permission to copy, distribute and modify it." 21291 21292ac_pwd='$ac_pwd' 21293srcdir='$srcdir' 21294INSTALL='$INSTALL' 21295MKDIR_P='$MKDIR_P' 21296AWK='$AWK' 21297test -n "\$AWK" || AWK=awk 21298_ACEOF 21299 21300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21301# The default lists apply if the user does not specify any file. 21302ac_need_defaults=: 21303while test $# != 0 21304do 21305 case $1 in 21306 --*=?*) 21307 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21308 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21309 ac_shift=: 21310 ;; 21311 --*=) 21312 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21313 ac_optarg= 21314 ac_shift=: 21315 ;; 21316 *) 21317 ac_option=$1 21318 ac_optarg=$2 21319 ac_shift=shift 21320 ;; 21321 esac 21322 21323 case $ac_option in 21324 # Handling of the options. 21325 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21326 ac_cs_recheck=: ;; 21327 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21328 $as_echo "$ac_cs_version"; exit ;; 21329 --config | --confi | --conf | --con | --co | --c ) 21330 $as_echo "$ac_cs_config"; exit ;; 21331 --debug | --debu | --deb | --de | --d | -d ) 21332 debug=: ;; 21333 --file | --fil | --fi | --f ) 21334 $ac_shift 21335 case $ac_optarg in 21336 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21337 '') as_fn_error $? "missing file argument" ;; 21338 esac 21339 as_fn_append CONFIG_FILES " '$ac_optarg'" 21340 ac_need_defaults=false;; 21341 --header | --heade | --head | --hea ) 21342 $ac_shift 21343 case $ac_optarg in 21344 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21345 esac 21346 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21347 ac_need_defaults=false;; 21348 --he | --h) 21349 # Conflict between --help and --header 21350 as_fn_error $? "ambiguous option: \`$1' 21351Try \`$0 --help' for more information.";; 21352 --help | --hel | -h ) 21353 $as_echo "$ac_cs_usage"; exit ;; 21354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21355 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21356 ac_cs_silent=: ;; 21357 21358 # This is an error. 21359 -*) as_fn_error $? "unrecognized option: \`$1' 21360Try \`$0 --help' for more information." ;; 21361 21362 *) as_fn_append ac_config_targets " $1" 21363 ac_need_defaults=false ;; 21364 21365 esac 21366 shift 21367done 21368 21369ac_configure_extra_args= 21370 21371if $ac_cs_silent; then 21372 exec 6>/dev/null 21373 ac_configure_extra_args="$ac_configure_extra_args --silent" 21374fi 21375 21376_ACEOF 21377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21378if \$ac_cs_recheck; then 21379 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21380 shift 21381 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21382 CONFIG_SHELL='$SHELL' 21383 export CONFIG_SHELL 21384 exec "\$@" 21385fi 21386 21387_ACEOF 21388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21389exec 5>>config.log 21390{ 21391 echo 21392 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21393## Running $as_me. ## 21394_ASBOX 21395 $as_echo "$ac_log" 21396} >&5 21397 21398_ACEOF 21399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21400# 21401# INIT-COMMANDS 21402# 21403AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21404 21405 21406# The HP-UX ksh and POSIX shell print the target directory to stdout 21407# if CDPATH is set. 21408(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21409 21410sed_quote_subst='$sed_quote_subst' 21411double_quote_subst='$double_quote_subst' 21412delay_variable_subst='$delay_variable_subst' 21413macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21414macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21415enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21416enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21417pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21418enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21419shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21420SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21421ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21422PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21423host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21424host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21425host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21426build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21427build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21428build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21429SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21430Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21431GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21432EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21433FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21434LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21435NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21436LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21437max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21438ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21439exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21440lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21441lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21442lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21443lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21444lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21445reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21446reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21447OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21448deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21449file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21450file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21451want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21452DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21453sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21454AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21455AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21456archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21457STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21458RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21459old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21460old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21461old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21462lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21463CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21464CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21465compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21466GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21467lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21468lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21469lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21470lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21471lt_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"`' 21472lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21473nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21474lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21475lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21476objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21477MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21478lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21479lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21480lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21481lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21482lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21483need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21484MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21485DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21486NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21487LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21488OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21489OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21490libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21491shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21492extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21493archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21494enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21495export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21496whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21497compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21498old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21499old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21500archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21501archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21502module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21503module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21504with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21505allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21506no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21507hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21508hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21509hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21510hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21511hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21512hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21513hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21514inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21515link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21516always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21517export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21518exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21519include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21520prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21521postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21522file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21523variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21524need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21525need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21526version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21527runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21528shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21529shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21530libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21531library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21532soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21533install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21534postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21535postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21536finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21537finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21538hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21539sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21540configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21541configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21542hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21543enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21544enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21545enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21546old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21547striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21548compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 21549predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 21550postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 21551predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 21552postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 21553compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 21554LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 21555reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 21556reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21557old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21558compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 21559GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 21560lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 21561lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 21562lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 21563lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 21564lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 21565archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 21566enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 21567export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21568whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21569compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 21570old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21571old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21572archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21573archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21574module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21575module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21576with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 21577allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21578no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21579hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21580hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 21581hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 21582hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 21583hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 21584hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 21585hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 21586inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 21587link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 21588always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 21589export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21590exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21591include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21592prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21593postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21594file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 21595hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 21596compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 21597predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21598postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21599predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 21600postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 21601compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 21602 21603LTCC='$LTCC' 21604LTCFLAGS='$LTCFLAGS' 21605compiler='$compiler_DEFAULT' 21606 21607# A function that is used when there is no print builtin or printf. 21608func_fallback_echo () 21609{ 21610 eval 'cat <<_LTECHO_EOF 21611\$1 21612_LTECHO_EOF' 21613} 21614 21615# Quote evaled strings. 21616for var in SHELL \ 21617ECHO \ 21618PATH_SEPARATOR \ 21619SED \ 21620GREP \ 21621EGREP \ 21622FGREP \ 21623LD \ 21624NM \ 21625LN_S \ 21626lt_SP2NL \ 21627lt_NL2SP \ 21628reload_flag \ 21629OBJDUMP \ 21630deplibs_check_method \ 21631file_magic_cmd \ 21632file_magic_glob \ 21633want_nocaseglob \ 21634DLLTOOL \ 21635sharedlib_from_linklib_cmd \ 21636AR \ 21637AR_FLAGS \ 21638archiver_list_spec \ 21639STRIP \ 21640RANLIB \ 21641CC \ 21642CFLAGS \ 21643compiler \ 21644lt_cv_sys_global_symbol_pipe \ 21645lt_cv_sys_global_symbol_to_cdecl \ 21646lt_cv_sys_global_symbol_to_import \ 21647lt_cv_sys_global_symbol_to_c_name_address \ 21648lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21649lt_cv_nm_interface \ 21650nm_file_list_spec \ 21651lt_cv_truncate_bin \ 21652lt_prog_compiler_no_builtin_flag \ 21653lt_prog_compiler_pic \ 21654lt_prog_compiler_wl \ 21655lt_prog_compiler_static \ 21656lt_cv_prog_compiler_c_o \ 21657need_locks \ 21658MANIFEST_TOOL \ 21659DSYMUTIL \ 21660NMEDIT \ 21661LIPO \ 21662OTOOL \ 21663OTOOL64 \ 21664shrext_cmds \ 21665export_dynamic_flag_spec \ 21666whole_archive_flag_spec \ 21667compiler_needs_object \ 21668with_gnu_ld \ 21669allow_undefined_flag \ 21670no_undefined_flag \ 21671hardcode_libdir_flag_spec \ 21672hardcode_libdir_separator \ 21673exclude_expsyms \ 21674include_expsyms \ 21675file_list_spec \ 21676variables_saved_for_relink \ 21677libname_spec \ 21678library_names_spec \ 21679soname_spec \ 21680install_override_mode \ 21681finish_eval \ 21682old_striplib \ 21683striplib \ 21684compiler_lib_search_dirs \ 21685predep_objects \ 21686postdep_objects \ 21687predeps \ 21688postdeps \ 21689compiler_lib_search_path \ 21690LD_CXX \ 21691reload_flag_CXX \ 21692compiler_CXX \ 21693lt_prog_compiler_no_builtin_flag_CXX \ 21694lt_prog_compiler_pic_CXX \ 21695lt_prog_compiler_wl_CXX \ 21696lt_prog_compiler_static_CXX \ 21697lt_cv_prog_compiler_c_o_CXX \ 21698export_dynamic_flag_spec_CXX \ 21699whole_archive_flag_spec_CXX \ 21700compiler_needs_object_CXX \ 21701with_gnu_ld_CXX \ 21702allow_undefined_flag_CXX \ 21703no_undefined_flag_CXX \ 21704hardcode_libdir_flag_spec_CXX \ 21705hardcode_libdir_separator_CXX \ 21706exclude_expsyms_CXX \ 21707include_expsyms_CXX \ 21708file_list_spec_CXX \ 21709compiler_lib_search_dirs_CXX \ 21710predep_objects_CXX \ 21711postdep_objects_CXX \ 21712predeps_CXX \ 21713postdeps_CXX \ 21714compiler_lib_search_path_CXX; do 21715 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21716 *[\\\\\\\`\\"\\\$]*) 21717 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21718 ;; 21719 *) 21720 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21721 ;; 21722 esac 21723done 21724 21725# Double-quote double-evaled strings. 21726for var in reload_cmds \ 21727old_postinstall_cmds \ 21728old_postuninstall_cmds \ 21729old_archive_cmds \ 21730extract_expsyms_cmds \ 21731old_archive_from_new_cmds \ 21732old_archive_from_expsyms_cmds \ 21733archive_cmds \ 21734archive_expsym_cmds \ 21735module_cmds \ 21736module_expsym_cmds \ 21737export_symbols_cmds \ 21738prelink_cmds \ 21739postlink_cmds \ 21740postinstall_cmds \ 21741postuninstall_cmds \ 21742finish_cmds \ 21743sys_lib_search_path_spec \ 21744configure_time_dlsearch_path \ 21745configure_time_lt_sys_library_path \ 21746reload_cmds_CXX \ 21747old_archive_cmds_CXX \ 21748old_archive_from_new_cmds_CXX \ 21749old_archive_from_expsyms_cmds_CXX \ 21750archive_cmds_CXX \ 21751archive_expsym_cmds_CXX \ 21752module_cmds_CXX \ 21753module_expsym_cmds_CXX \ 21754export_symbols_cmds_CXX \ 21755prelink_cmds_CXX \ 21756postlink_cmds_CXX; do 21757 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21758 *[\\\\\\\`\\"\\\$]*) 21759 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21760 ;; 21761 *) 21762 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21763 ;; 21764 esac 21765done 21766 21767ac_aux_dir='$ac_aux_dir' 21768 21769# See if we are running on zsh, and set the options that allow our 21770# commands through without removal of \ escapes INIT. 21771if test -n "\${ZSH_VERSION+set}"; then 21772 setopt NO_GLOB_SUBST 21773fi 21774 21775 21776 PACKAGE='$PACKAGE' 21777 VERSION='$VERSION' 21778 RM='$RM' 21779 ofile='$ofile' 21780 21781 21782 21783 21784 21785# Capture the value of obsolete ALL_LINGUAS because we need it to compute 21786 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 21787 # from automake < 1.5. 21788 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 21789 # Capture the value of LINGUAS because we need it to compute CATALOGS. 21790 LINGUAS="${LINGUAS-%UNSET%}" 21791 21792 21793_ACEOF 21794 21795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21796 21797# Handling of arguments. 21798for ac_config_target in $ac_config_targets 21799do 21800 case $ac_config_target in 21801 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21802 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21803 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21804 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 21805 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 21806 "doc/Makefile.doc") CONFIG_FILES="$CONFIG_FILES doc/Makefile.doc" ;; 21807 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21808 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 21809 "src/converters/csv/Makefile") CONFIG_FILES="$CONFIG_FILES src/converters/csv/Makefile" ;; 21810 "src/converters/csv2yapet/Makefile") CONFIG_FILES="$CONFIG_FILES src/converters/csv2yapet/Makefile" ;; 21811 "src/converters/Makefile") CONFIG_FILES="$CONFIG_FILES src/converters/Makefile" ;; 21812 "src/converters/yapet2csv/Makefile") CONFIG_FILES="$CONFIG_FILES src/converters/yapet2csv/Makefile" ;; 21813 "src/libs/cfg/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/cfg/Makefile" ;; 21814 "src/libs/consts/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/consts/Makefile" ;; 21815 "src/libs/crypt/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/crypt/Makefile" ;; 21816 "src/libs/exceptions/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/exceptions/Makefile" ;; 21817 "src/libs/file/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/file/Makefile" ;; 21818 "src/libs/globals/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/globals/Makefile" ;; 21819 "src/libs/glue/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/glue/Makefile" ;; 21820 "src/libs/interfaces/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/interfaces/Makefile" ;; 21821 "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;; 21822 "src/libs/metadata/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/metadata/Makefile" ;; 21823 "src/libs/passwordrecord/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/passwordrecord/Makefile" ;; 21824 "src/libs/pwgen/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/pwgen/Makefile" ;; 21825 "src/libs/ui/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ui/Makefile" ;; 21826 "src/libs/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/utils/Makefile" ;; 21827 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21828 "src/yapet/Makefile") CONFIG_FILES="$CONFIG_FILES src/yapet/Makefile" ;; 21829 "tests/cfg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cfg/Makefile" ;; 21830 "tests/cfg/testpaths.h") CONFIG_FILES="$CONFIG_FILES tests/cfg/testpaths.h" ;; 21831 "tests/converters/csv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/converters/csv/Makefile" ;; 21832 "tests/converters/import/Makefile") CONFIG_FILES="$CONFIG_FILES tests/converters/import/Makefile" ;; 21833 "tests/converters/import/testpaths.h") CONFIG_FILES="$CONFIG_FILES tests/converters/import/testpaths.h" ;; 21834 "tests/converters/Makefile") CONFIG_FILES="$CONFIG_FILES tests/converters/Makefile" ;; 21835 "tests/crypt/Makefile") CONFIG_FILES="$CONFIG_FILES tests/crypt/Makefile" ;; 21836 "tests/crypt/testpaths.h") CONFIG_FILES="$CONFIG_FILES tests/crypt/testpaths.h" ;; 21837 "tests/file/Makefile") CONFIG_FILES="$CONFIG_FILES tests/file/Makefile" ;; 21838 "tests/file/testpaths.h") CONFIG_FILES="$CONFIG_FILES tests/file/testpaths.h" ;; 21839 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 21840 "tests/metadata/Makefile") CONFIG_FILES="$CONFIG_FILES tests/metadata/Makefile" ;; 21841 "tests/passwordrecord/Makefile") CONFIG_FILES="$CONFIG_FILES tests/passwordrecord/Makefile" ;; 21842 "tests/preload/Makefile") CONFIG_FILES="$CONFIG_FILES tests/preload/Makefile" ;; 21843 "tests/pwgen/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pwgen/Makefile" ;; 21844 "tests/utils/Makefile") CONFIG_FILES="$CONFIG_FILES tests/utils/Makefile" ;; 21845 21846 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21847 esac 21848done 21849 21850 21851# If the user did not use the arguments to specify the items to instantiate, 21852# then the envvar interface is used. Set only those that are not. 21853# We use the long form for the default assignment because of an extremely 21854# bizarre bug on SunOS 4.1.3. 21855if $ac_need_defaults; then 21856 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21857 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21858 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21859fi 21860 21861# Have a temporary directory for convenience. Make it in the build tree 21862# simply because there is no reason against having it here, and in addition, 21863# creating and moving files from /tmp can sometimes cause problems. 21864# Hook for its removal unless debugging. 21865# Note that there is a small window in which the directory will not be cleaned: 21866# after its creation but before its name has been assigned to `$tmp'. 21867$debug || 21868{ 21869 tmp= ac_tmp= 21870 trap 'exit_status=$? 21871 : "${ac_tmp:=$tmp}" 21872 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21873' 0 21874 trap 'as_fn_exit 1' 1 2 13 15 21875} 21876# Create a (secure) tmp directory for tmp files. 21877 21878{ 21879 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21880 test -d "$tmp" 21881} || 21882{ 21883 tmp=./conf$$-$RANDOM 21884 (umask 077 && mkdir "$tmp") 21885} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21886ac_tmp=$tmp 21887 21888# Set up the scripts for CONFIG_FILES section. 21889# No need to generate them if there are no CONFIG_FILES. 21890# This happens for instance with `./config.status config.h'. 21891if test -n "$CONFIG_FILES"; then 21892 21893 21894ac_cr=`echo X | tr X '\015'` 21895# On cygwin, bash can eat \r inside `` if the user requested igncr. 21896# But we know of no other shell where ac_cr would be empty at this 21897# point, so we can use a bashism as a fallback. 21898if test "x$ac_cr" = x; then 21899 eval ac_cr=\$\'\\r\' 21900fi 21901ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21902if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21903 ac_cs_awk_cr='\\r' 21904else 21905 ac_cs_awk_cr=$ac_cr 21906fi 21907 21908echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21909_ACEOF 21910 21911 21912{ 21913 echo "cat >conf$$subs.awk <<_ACEOF" && 21914 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21915 echo "_ACEOF" 21916} >conf$$subs.sh || 21917 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21918ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21919ac_delim='%!_!# ' 21920for ac_last_try in false false false false false :; do 21921 . ./conf$$subs.sh || 21922 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21923 21924 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21925 if test $ac_delim_n = $ac_delim_num; then 21926 break 21927 elif $ac_last_try; then 21928 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21929 else 21930 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21931 fi 21932done 21933rm -f conf$$subs.sh 21934 21935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21936cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21937_ACEOF 21938sed -n ' 21939h 21940s/^/S["/; s/!.*/"]=/ 21941p 21942g 21943s/^[^!]*!// 21944:repl 21945t repl 21946s/'"$ac_delim"'$// 21947t delim 21948:nl 21949h 21950s/\(.\{148\}\)..*/\1/ 21951t more1 21952s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21953p 21954n 21955b repl 21956:more1 21957s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21958p 21959g 21960s/.\{148\}// 21961t nl 21962:delim 21963h 21964s/\(.\{148\}\)..*/\1/ 21965t more2 21966s/["\\]/\\&/g; s/^/"/; s/$/"/ 21967p 21968b 21969:more2 21970s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21971p 21972g 21973s/.\{148\}// 21974t delim 21975' <conf$$subs.awk | sed ' 21976/^[^""]/{ 21977 N 21978 s/\n// 21979} 21980' >>$CONFIG_STATUS || ac_write_fail=1 21981rm -f conf$$subs.awk 21982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21983_ACAWK 21984cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21985 for (key in S) S_is_set[key] = 1 21986 FS = "" 21987 21988} 21989{ 21990 line = $ 0 21991 nfields = split(line, field, "@") 21992 substed = 0 21993 len = length(field[1]) 21994 for (i = 2; i < nfields; i++) { 21995 key = field[i] 21996 keylen = length(key) 21997 if (S_is_set[key]) { 21998 value = S[key] 21999 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22000 len += length(value) + length(field[++i]) 22001 substed = 1 22002 } else 22003 len += 1 + keylen 22004 } 22005 22006 print line 22007} 22008 22009_ACAWK 22010_ACEOF 22011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22012if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22013 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22014else 22015 cat 22016fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22017 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22018_ACEOF 22019 22020# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22021# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22022# trailing colons and then remove the whole line if VPATH becomes empty 22023# (actually we leave an empty line to preserve line numbers). 22024if test "x$srcdir" = x.; then 22025 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22026h 22027s/// 22028s/^/:/ 22029s/[ ]*$/:/ 22030s/:\$(srcdir):/:/g 22031s/:\${srcdir}:/:/g 22032s/:@srcdir@:/:/g 22033s/^:*// 22034s/:*$// 22035x 22036s/\(=[ ]*\).*/\1/ 22037G 22038s/\n// 22039s/^[^=]*=[ ]*$// 22040}' 22041fi 22042 22043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22044fi # test -n "$CONFIG_FILES" 22045 22046# Set up the scripts for CONFIG_HEADERS section. 22047# No need to generate them if there are no CONFIG_HEADERS. 22048# This happens for instance with `./config.status Makefile'. 22049if test -n "$CONFIG_HEADERS"; then 22050cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22051BEGIN { 22052_ACEOF 22053 22054# Transform confdefs.h into an awk script `defines.awk', embedded as 22055# here-document in config.status, that substitutes the proper values into 22056# config.h.in to produce config.h. 22057 22058# Create a delimiter string that does not exist in confdefs.h, to ease 22059# handling of long lines. 22060ac_delim='%!_!# ' 22061for ac_last_try in false false :; do 22062 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22063 if test -z "$ac_tt"; then 22064 break 22065 elif $ac_last_try; then 22066 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22067 else 22068 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22069 fi 22070done 22071 22072# For the awk script, D is an array of macro values keyed by name, 22073# likewise P contains macro parameters if any. Preserve backslash 22074# newline sequences. 22075 22076ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22077sed -n ' 22078s/.\{148\}/&'"$ac_delim"'/g 22079t rset 22080:rset 22081s/^[ ]*#[ ]*define[ ][ ]*/ / 22082t def 22083d 22084:def 22085s/\\$// 22086t bsnl 22087s/["\\]/\\&/g 22088s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22089D["\1"]=" \3"/p 22090s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22091d 22092:bsnl 22093s/["\\]/\\&/g 22094s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22095D["\1"]=" \3\\\\\\n"\\/p 22096t cont 22097s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22098t cont 22099d 22100:cont 22101n 22102s/.\{148\}/&'"$ac_delim"'/g 22103t clear 22104:clear 22105s/\\$// 22106t bsnlc 22107s/["\\]/\\&/g; s/^/"/; s/$/"/p 22108d 22109:bsnlc 22110s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22111b cont 22112' <confdefs.h | sed ' 22113s/'"$ac_delim"'/"\\\ 22114"/g' >>$CONFIG_STATUS || ac_write_fail=1 22115 22116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22117 for (key in D) D_is_set[key] = 1 22118 FS = "" 22119} 22120/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22121 line = \$ 0 22122 split(line, arg, " ") 22123 if (arg[1] == "#") { 22124 defundef = arg[2] 22125 mac1 = arg[3] 22126 } else { 22127 defundef = substr(arg[1], 2) 22128 mac1 = arg[2] 22129 } 22130 split(mac1, mac2, "(") #) 22131 macro = mac2[1] 22132 prefix = substr(line, 1, index(line, defundef) - 1) 22133 if (D_is_set[macro]) { 22134 # Preserve the white space surrounding the "#". 22135 print prefix "define", macro P[macro] D[macro] 22136 next 22137 } else { 22138 # Replace #undef with comments. This is necessary, for example, 22139 # in the case of _POSIX_SOURCE, which is predefined and required 22140 # on some systems where configure will not decide to define it. 22141 if (defundef == "undef") { 22142 print "/*", prefix defundef, macro, "*/" 22143 next 22144 } 22145 } 22146} 22147{ print } 22148_ACAWK 22149_ACEOF 22150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22151 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22152fi # test -n "$CONFIG_HEADERS" 22153 22154 22155eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22156shift 22157for ac_tag 22158do 22159 case $ac_tag in 22160 :[FHLC]) ac_mode=$ac_tag; continue;; 22161 esac 22162 case $ac_mode$ac_tag in 22163 :[FHL]*:*);; 22164 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22165 :[FH]-) ac_tag=-:-;; 22166 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22167 esac 22168 ac_save_IFS=$IFS 22169 IFS=: 22170 set x $ac_tag 22171 IFS=$ac_save_IFS 22172 shift 22173 ac_file=$1 22174 shift 22175 22176 case $ac_mode in 22177 :L) ac_source=$1;; 22178 :[FH]) 22179 ac_file_inputs= 22180 for ac_f 22181 do 22182 case $ac_f in 22183 -) ac_f="$ac_tmp/stdin";; 22184 *) # Look for the file first in the build tree, then in the source tree 22185 # (if the path is not absolute). The absolute path cannot be DOS-style, 22186 # because $ac_f cannot contain `:'. 22187 test -f "$ac_f" || 22188 case $ac_f in 22189 [\\/$]*) false;; 22190 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22191 esac || 22192 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22193 esac 22194 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22195 as_fn_append ac_file_inputs " '$ac_f'" 22196 done 22197 22198 # Let's still pretend it is `configure' which instantiates (i.e., don't 22199 # use $as_me), people would be surprised to read: 22200 # /* config.h. Generated by config.status. */ 22201 configure_input='Generated from '` 22202 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22203 `' by configure.' 22204 if test x"$ac_file" != x-; then 22205 configure_input="$ac_file. $configure_input" 22206 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22207$as_echo "$as_me: creating $ac_file" >&6;} 22208 fi 22209 # Neutralize special characters interpreted by sed in replacement strings. 22210 case $configure_input in #( 22211 *\&* | *\|* | *\\* ) 22212 ac_sed_conf_input=`$as_echo "$configure_input" | 22213 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22214 *) ac_sed_conf_input=$configure_input;; 22215 esac 22216 22217 case $ac_tag in 22218 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22219 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22220 esac 22221 ;; 22222 esac 22223 22224 ac_dir=`$as_dirname -- "$ac_file" || 22225$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22226 X"$ac_file" : 'X\(//\)[^/]' \| \ 22227 X"$ac_file" : 'X\(//\)$' \| \ 22228 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22229$as_echo X"$ac_file" | 22230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22231 s//\1/ 22232 q 22233 } 22234 /^X\(\/\/\)[^/].*/{ 22235 s//\1/ 22236 q 22237 } 22238 /^X\(\/\/\)$/{ 22239 s//\1/ 22240 q 22241 } 22242 /^X\(\/\).*/{ 22243 s//\1/ 22244 q 22245 } 22246 s/.*/./; q'` 22247 as_dir="$ac_dir"; as_fn_mkdir_p 22248 ac_builddir=. 22249 22250case "$ac_dir" in 22251.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22252*) 22253 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22254 # A ".." for each directory in $ac_dir_suffix. 22255 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22256 case $ac_top_builddir_sub in 22257 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22258 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22259 esac ;; 22260esac 22261ac_abs_top_builddir=$ac_pwd 22262ac_abs_builddir=$ac_pwd$ac_dir_suffix 22263# for backward compatibility: 22264ac_top_builddir=$ac_top_build_prefix 22265 22266case $srcdir in 22267 .) # We are building in place. 22268 ac_srcdir=. 22269 ac_top_srcdir=$ac_top_builddir_sub 22270 ac_abs_top_srcdir=$ac_pwd ;; 22271 [\\/]* | ?:[\\/]* ) # Absolute name. 22272 ac_srcdir=$srcdir$ac_dir_suffix; 22273 ac_top_srcdir=$srcdir 22274 ac_abs_top_srcdir=$srcdir ;; 22275 *) # Relative name. 22276 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22277 ac_top_srcdir=$ac_top_build_prefix$srcdir 22278 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22279esac 22280ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22281 22282 22283 case $ac_mode in 22284 :F) 22285 # 22286 # CONFIG_FILE 22287 # 22288 22289 case $INSTALL in 22290 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22291 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22292 esac 22293 ac_MKDIR_P=$MKDIR_P 22294 case $MKDIR_P in 22295 [\\/$]* | ?:[\\/]* ) ;; 22296 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22297 esac 22298_ACEOF 22299 22300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22301# If the template does not know about datarootdir, expand it. 22302# FIXME: This hack should be removed a few years after 2.60. 22303ac_datarootdir_hack=; ac_datarootdir_seen= 22304ac_sed_dataroot=' 22305/datarootdir/ { 22306 p 22307 q 22308} 22309/@datadir@/p 22310/@docdir@/p 22311/@infodir@/p 22312/@localedir@/p 22313/@mandir@/p' 22314case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22315*datarootdir*) ac_datarootdir_seen=yes;; 22316*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22318$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22319_ACEOF 22320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22321 ac_datarootdir_hack=' 22322 s&@datadir@&$datadir&g 22323 s&@docdir@&$docdir&g 22324 s&@infodir@&$infodir&g 22325 s&@localedir@&$localedir&g 22326 s&@mandir@&$mandir&g 22327 s&\\\${datarootdir}&$datarootdir&g' ;; 22328esac 22329_ACEOF 22330 22331# Neutralize VPATH when `$srcdir' = `.'. 22332# Shell code in configure.ac might set extrasub. 22333# FIXME: do we really want to maintain this feature? 22334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22335ac_sed_extra="$ac_vpsub 22336$extrasub 22337_ACEOF 22338cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22339:t 22340/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22341s|@configure_input@|$ac_sed_conf_input|;t t 22342s&@top_builddir@&$ac_top_builddir_sub&;t t 22343s&@top_build_prefix@&$ac_top_build_prefix&;t t 22344s&@srcdir@&$ac_srcdir&;t t 22345s&@abs_srcdir@&$ac_abs_srcdir&;t t 22346s&@top_srcdir@&$ac_top_srcdir&;t t 22347s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22348s&@builddir@&$ac_builddir&;t t 22349s&@abs_builddir@&$ac_abs_builddir&;t t 22350s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22351s&@INSTALL@&$ac_INSTALL&;t t 22352s&@MKDIR_P@&$ac_MKDIR_P&;t t 22353$ac_datarootdir_hack 22354" 22355eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22356 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22357 22358test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22359 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22360 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22361 "$ac_tmp/out"`; test -z "$ac_out"; } && 22362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22363which seems to be undefined. Please make sure it is defined" >&5 22364$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22365which seems to be undefined. Please make sure it is defined" >&2;} 22366 22367 rm -f "$ac_tmp/stdin" 22368 case $ac_file in 22369 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22370 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22371 esac \ 22372 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22373 ;; 22374 :H) 22375 # 22376 # CONFIG_HEADER 22377 # 22378 if test x"$ac_file" != x-; then 22379 { 22380 $as_echo "/* $configure_input */" \ 22381 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22382 } >"$ac_tmp/config.h" \ 22383 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22384 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22385 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22386$as_echo "$as_me: $ac_file is unchanged" >&6;} 22387 else 22388 rm -f "$ac_file" 22389 mv "$ac_tmp/config.h" "$ac_file" \ 22390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22391 fi 22392 else 22393 $as_echo "/* $configure_input */" \ 22394 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22395 || as_fn_error $? "could not create -" "$LINENO" 5 22396 fi 22397# Compute "$ac_file"'s index in $config_headers. 22398_am_arg="$ac_file" 22399_am_stamp_count=1 22400for _am_header in $config_headers :; do 22401 case $_am_header in 22402 $_am_arg | $_am_arg:* ) 22403 break ;; 22404 * ) 22405 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22406 esac 22407done 22408echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22409$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22410 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22411 X"$_am_arg" : 'X\(//\)$' \| \ 22412 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22413$as_echo X"$_am_arg" | 22414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22415 s//\1/ 22416 q 22417 } 22418 /^X\(\/\/\)[^/].*/{ 22419 s//\1/ 22420 q 22421 } 22422 /^X\(\/\/\)$/{ 22423 s//\1/ 22424 q 22425 } 22426 /^X\(\/\).*/{ 22427 s//\1/ 22428 q 22429 } 22430 s/.*/./; q'`/stamp-h$_am_stamp_count 22431 ;; 22432 22433 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22434$as_echo "$as_me: executing $ac_file commands" >&6;} 22435 ;; 22436 esac 22437 22438 22439 case $ac_file$ac_mode in 22440 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22441 # Older Autoconf quotes --file arguments for eval, but not when files 22442 # are listed without --file. Let's play safe and only enable the eval 22443 # if we detect the quoting. 22444 # TODO: see whether this extra hack can be removed once we start 22445 # requiring Autoconf 2.70 or later. 22446 case $CONFIG_FILES in #( 22447 *\'*) : 22448 eval set x "$CONFIG_FILES" ;; #( 22449 *) : 22450 set x $CONFIG_FILES ;; #( 22451 *) : 22452 ;; 22453esac 22454 shift 22455 # Used to flag and report bootstrapping failures. 22456 am_rc=0 22457 for am_mf 22458 do 22459 # Strip MF so we end up with the name of the file. 22460 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 22461 # Check whether this is an Automake generated Makefile which includes 22462 # dependency-tracking related rules and includes. 22463 # Grep'ing the whole file directly is not great: AIX grep has a line 22464 # limit of 2048, but all sed's we know have understand at least 4000. 22465 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22466 || continue 22467 am_dirpart=`$as_dirname -- "$am_mf" || 22468$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22469 X"$am_mf" : 'X\(//\)[^/]' \| \ 22470 X"$am_mf" : 'X\(//\)$' \| \ 22471 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22472$as_echo X"$am_mf" | 22473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22474 s//\1/ 22475 q 22476 } 22477 /^X\(\/\/\)[^/].*/{ 22478 s//\1/ 22479 q 22480 } 22481 /^X\(\/\/\)$/{ 22482 s//\1/ 22483 q 22484 } 22485 /^X\(\/\).*/{ 22486 s//\1/ 22487 q 22488 } 22489 s/.*/./; q'` 22490 am_filepart=`$as_basename -- "$am_mf" || 22491$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22492 X"$am_mf" : 'X\(//\)$' \| \ 22493 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22494$as_echo X/"$am_mf" | 22495 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22496 s//\1/ 22497 q 22498 } 22499 /^X\/\(\/\/\)$/{ 22500 s//\1/ 22501 q 22502 } 22503 /^X\/\(\/\).*/{ 22504 s//\1/ 22505 q 22506 } 22507 s/.*/./; q'` 22508 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22509 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22510 | $MAKE -f - am--depfiles" >&5 22511 (cd "$am_dirpart" \ 22512 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22513 | $MAKE -f - am--depfiles) >&5 2>&5 22514 ac_status=$? 22515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22516 (exit $ac_status); } || am_rc=$? 22517 done 22518 if test $am_rc -ne 0; then 22519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22521as_fn_error $? "Something went wrong bootstrapping makefile fragments 22522 for automatic dependency tracking. Try re-running configure with the 22523 '--disable-dependency-tracking' option to at least be able to build 22524 the package (albeit without support for automatic dependency tracking). 22525See \`config.log' for more details" "$LINENO" 5; } 22526 fi 22527 { am_dirpart=; unset am_dirpart;} 22528 { am_filepart=; unset am_filepart;} 22529 { am_mf=; unset am_mf;} 22530 { am_rc=; unset am_rc;} 22531 rm -f conftest-deps.mk 22532} 22533 ;; 22534 "libtool":C) 22535 22536 # See if we are running on zsh, and set the options that allow our 22537 # commands through without removal of \ escapes. 22538 if test -n "${ZSH_VERSION+set}"; then 22539 setopt NO_GLOB_SUBST 22540 fi 22541 22542 cfgfile=${ofile}T 22543 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22544 $RM "$cfgfile" 22545 22546 cat <<_LT_EOF >> "$cfgfile" 22547#! $SHELL 22548# Generated automatically by $as_me ($PACKAGE) $VERSION 22549# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22550# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22551 22552# Provide generalized library-building support services. 22553# Written by Gordon Matzigkeit, 1996 22554 22555# Copyright (C) 2014 Free Software Foundation, Inc. 22556# This is free software; see the source for copying conditions. There is NO 22557# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22558 22559# GNU Libtool is free software; you can redistribute it and/or modify 22560# it under the terms of the GNU General Public License as published by 22561# the Free Software Foundation; either version 2 of of the License, or 22562# (at your option) any later version. 22563# 22564# As a special exception to the GNU General Public License, if you 22565# distribute this file as part of a program or library that is built 22566# using GNU Libtool, you may include this file under the same 22567# distribution terms that you use for the rest of that program. 22568# 22569# GNU Libtool is distributed in the hope that it will be useful, but 22570# WITHOUT ANY WARRANTY; without even the implied warranty of 22571# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22572# GNU General Public License for more details. 22573# 22574# You should have received a copy of the GNU General Public License 22575# along with this program. If not, see <http://www.gnu.org/licenses/>. 22576 22577 22578# The names of the tagged configurations supported by this script. 22579available_tags='CXX ' 22580 22581# Configured defaults for sys_lib_dlsearch_path munging. 22582: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22583 22584# ### BEGIN LIBTOOL CONFIG 22585 22586# Which release of libtool.m4 was used? 22587macro_version=$macro_version 22588macro_revision=$macro_revision 22589 22590# Whether or not to build shared libraries. 22591build_libtool_libs=$enable_shared 22592 22593# Whether or not to build static libraries. 22594build_old_libs=$enable_static 22595 22596# What type of objects to build. 22597pic_mode=$pic_mode 22598 22599# Whether or not to optimize for fast installation. 22600fast_install=$enable_fast_install 22601 22602# Shared archive member basename,for filename based shared library versioning on AIX. 22603shared_archive_member_spec=$shared_archive_member_spec 22604 22605# Shell to use when invoking shell scripts. 22606SHELL=$lt_SHELL 22607 22608# An echo program that protects backslashes. 22609ECHO=$lt_ECHO 22610 22611# The PATH separator for the build system. 22612PATH_SEPARATOR=$lt_PATH_SEPARATOR 22613 22614# The host system. 22615host_alias=$host_alias 22616host=$host 22617host_os=$host_os 22618 22619# The build system. 22620build_alias=$build_alias 22621build=$build 22622build_os=$build_os 22623 22624# A sed program that does not truncate output. 22625SED=$lt_SED 22626 22627# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22628Xsed="\$SED -e 1s/^X//" 22629 22630# A grep program that handles long lines. 22631GREP=$lt_GREP 22632 22633# An ERE matcher. 22634EGREP=$lt_EGREP 22635 22636# A literal string matcher. 22637FGREP=$lt_FGREP 22638 22639# A BSD- or MS-compatible name lister. 22640NM=$lt_NM 22641 22642# Whether we need soft or hard links. 22643LN_S=$lt_LN_S 22644 22645# What is the maximum length of a command? 22646max_cmd_len=$max_cmd_len 22647 22648# Object file suffix (normally "o"). 22649objext=$ac_objext 22650 22651# Executable file suffix (normally ""). 22652exeext=$exeext 22653 22654# whether the shell understands "unset". 22655lt_unset=$lt_unset 22656 22657# turn spaces into newlines. 22658SP2NL=$lt_lt_SP2NL 22659 22660# turn newlines into spaces. 22661NL2SP=$lt_lt_NL2SP 22662 22663# convert \$build file names to \$host format. 22664to_host_file_cmd=$lt_cv_to_host_file_cmd 22665 22666# convert \$build files to toolchain format. 22667to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22668 22669# An object symbol dumper. 22670OBJDUMP=$lt_OBJDUMP 22671 22672# Method to check whether dependent libraries are shared objects. 22673deplibs_check_method=$lt_deplibs_check_method 22674 22675# Command to use when deplibs_check_method = "file_magic". 22676file_magic_cmd=$lt_file_magic_cmd 22677 22678# How to find potential files when deplibs_check_method = "file_magic". 22679file_magic_glob=$lt_file_magic_glob 22680 22681# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22682want_nocaseglob=$lt_want_nocaseglob 22683 22684# DLL creation program. 22685DLLTOOL=$lt_DLLTOOL 22686 22687# Command to associate shared and link libraries. 22688sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22689 22690# The archiver. 22691AR=$lt_AR 22692 22693# Flags to create an archive. 22694AR_FLAGS=$lt_AR_FLAGS 22695 22696# How to feed a file listing to the archiver. 22697archiver_list_spec=$lt_archiver_list_spec 22698 22699# A symbol stripping program. 22700STRIP=$lt_STRIP 22701 22702# Commands used to install an old-style archive. 22703RANLIB=$lt_RANLIB 22704old_postinstall_cmds=$lt_old_postinstall_cmds 22705old_postuninstall_cmds=$lt_old_postuninstall_cmds 22706 22707# Whether to use a lock for old archive extraction. 22708lock_old_archive_extraction=$lock_old_archive_extraction 22709 22710# A C compiler. 22711LTCC=$lt_CC 22712 22713# LTCC compiler flags. 22714LTCFLAGS=$lt_CFLAGS 22715 22716# Take the output of nm and produce a listing of raw symbols and C names. 22717global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22718 22719# Transform the output of nm in a proper C declaration. 22720global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22721 22722# Transform the output of nm into a list of symbols to manually relocate. 22723global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22724 22725# Transform the output of nm in a C name address pair. 22726global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22727 22728# Transform the output of nm in a C name address pair when lib prefix is needed. 22729global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22730 22731# The name lister interface. 22732nm_interface=$lt_lt_cv_nm_interface 22733 22734# Specify filename containing input files for \$NM. 22735nm_file_list_spec=$lt_nm_file_list_spec 22736 22737# The root where to search for dependent libraries,and where our libraries should be installed. 22738lt_sysroot=$lt_sysroot 22739 22740# Command to truncate a binary pipe. 22741lt_truncate_bin=$lt_lt_cv_truncate_bin 22742 22743# The name of the directory that contains temporary libtool files. 22744objdir=$objdir 22745 22746# Used to examine libraries when file_magic_cmd begins with "file". 22747MAGIC_CMD=$MAGIC_CMD 22748 22749# Must we lock files when doing compilation? 22750need_locks=$lt_need_locks 22751 22752# Manifest tool. 22753MANIFEST_TOOL=$lt_MANIFEST_TOOL 22754 22755# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22756DSYMUTIL=$lt_DSYMUTIL 22757 22758# Tool to change global to local symbols on Mac OS X. 22759NMEDIT=$lt_NMEDIT 22760 22761# Tool to manipulate fat objects and archives on Mac OS X. 22762LIPO=$lt_LIPO 22763 22764# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22765OTOOL=$lt_OTOOL 22766 22767# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22768OTOOL64=$lt_OTOOL64 22769 22770# Old archive suffix (normally "a"). 22771libext=$libext 22772 22773# Shared library suffix (normally ".so"). 22774shrext_cmds=$lt_shrext_cmds 22775 22776# The commands to extract the exported symbol list from a shared archive. 22777extract_expsyms_cmds=$lt_extract_expsyms_cmds 22778 22779# Variables whose values should be saved in libtool wrapper scripts and 22780# restored at link time. 22781variables_saved_for_relink=$lt_variables_saved_for_relink 22782 22783# Do we need the "lib" prefix for modules? 22784need_lib_prefix=$need_lib_prefix 22785 22786# Do we need a version for libraries? 22787need_version=$need_version 22788 22789# Library versioning type. 22790version_type=$version_type 22791 22792# Shared library runtime path variable. 22793runpath_var=$runpath_var 22794 22795# Shared library path variable. 22796shlibpath_var=$shlibpath_var 22797 22798# Is shlibpath searched before the hard-coded library search path? 22799shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22800 22801# Format of library name prefix. 22802libname_spec=$lt_libname_spec 22803 22804# List of archive names. First name is the real one, the rest are links. 22805# The last name is the one that the linker finds with -lNAME 22806library_names_spec=$lt_library_names_spec 22807 22808# The coded name of the library, if different from the real name. 22809soname_spec=$lt_soname_spec 22810 22811# Permission mode override for installation of shared libraries. 22812install_override_mode=$lt_install_override_mode 22813 22814# Command to use after installation of a shared archive. 22815postinstall_cmds=$lt_postinstall_cmds 22816 22817# Command to use after uninstallation of a shared archive. 22818postuninstall_cmds=$lt_postuninstall_cmds 22819 22820# Commands used to finish a libtool library installation in a directory. 22821finish_cmds=$lt_finish_cmds 22822 22823# As "finish_cmds", except a single script fragment to be evaled but 22824# not shown. 22825finish_eval=$lt_finish_eval 22826 22827# Whether we should hardcode library paths into libraries. 22828hardcode_into_libs=$hardcode_into_libs 22829 22830# Compile-time system search path for libraries. 22831sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22832 22833# Detected run-time system search path for libraries. 22834sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22835 22836# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22837configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22838 22839# Whether dlopen is supported. 22840dlopen_support=$enable_dlopen 22841 22842# Whether dlopen of programs is supported. 22843dlopen_self=$enable_dlopen_self 22844 22845# Whether dlopen of statically linked programs is supported. 22846dlopen_self_static=$enable_dlopen_self_static 22847 22848# Commands to strip libraries. 22849old_striplib=$lt_old_striplib 22850striplib=$lt_striplib 22851 22852 22853# The linker used to build libraries. 22854LD=$lt_LD 22855 22856# How to create reloadable object files. 22857reload_flag=$lt_reload_flag 22858reload_cmds=$lt_reload_cmds 22859 22860# Commands used to build an old-style archive. 22861old_archive_cmds=$lt_old_archive_cmds 22862 22863# A language specific compiler. 22864CC=$lt_compiler 22865 22866# Is the compiler the GNU compiler? 22867with_gcc=$GCC 22868 22869# Compiler flag to turn off builtin functions. 22870no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22871 22872# Additional compiler flags for building library objects. 22873pic_flag=$lt_lt_prog_compiler_pic 22874 22875# How to pass a linker flag through the compiler. 22876wl=$lt_lt_prog_compiler_wl 22877 22878# Compiler flag to prevent dynamic linking. 22879link_static_flag=$lt_lt_prog_compiler_static 22880 22881# Does compiler simultaneously support -c and -o options? 22882compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22883 22884# Whether or not to add -lc for building shared libraries. 22885build_libtool_need_lc=$archive_cmds_need_lc 22886 22887# Whether or not to disallow shared libs when runtime libs are static. 22888allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22889 22890# Compiler flag to allow reflexive dlopens. 22891export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22892 22893# Compiler flag to generate shared objects directly from archives. 22894whole_archive_flag_spec=$lt_whole_archive_flag_spec 22895 22896# Whether the compiler copes with passing no objects directly. 22897compiler_needs_object=$lt_compiler_needs_object 22898 22899# Create an old-style archive from a shared archive. 22900old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22901 22902# Create a temporary old-style archive to link instead of a shared archive. 22903old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22904 22905# Commands used to build a shared archive. 22906archive_cmds=$lt_archive_cmds 22907archive_expsym_cmds=$lt_archive_expsym_cmds 22908 22909# Commands used to build a loadable module if different from building 22910# a shared archive. 22911module_cmds=$lt_module_cmds 22912module_expsym_cmds=$lt_module_expsym_cmds 22913 22914# Whether we are building with GNU ld or not. 22915with_gnu_ld=$lt_with_gnu_ld 22916 22917# Flag that allows shared libraries with undefined symbols to be built. 22918allow_undefined_flag=$lt_allow_undefined_flag 22919 22920# Flag that enforces no undefined symbols. 22921no_undefined_flag=$lt_no_undefined_flag 22922 22923# Flag to hardcode \$libdir into a binary during linking. 22924# This must work even if \$libdir does not exist 22925hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22926 22927# Whether we need a single "-rpath" flag with a separated argument. 22928hardcode_libdir_separator=$lt_hardcode_libdir_separator 22929 22930# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22931# DIR into the resulting binary. 22932hardcode_direct=$hardcode_direct 22933 22934# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22935# DIR into the resulting binary and the resulting library dependency is 22936# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22937# library is relocated. 22938hardcode_direct_absolute=$hardcode_direct_absolute 22939 22940# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22941# into the resulting binary. 22942hardcode_minus_L=$hardcode_minus_L 22943 22944# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22945# into the resulting binary. 22946hardcode_shlibpath_var=$hardcode_shlibpath_var 22947 22948# Set to "yes" if building a shared library automatically hardcodes DIR 22949# into the library and all subsequent libraries and executables linked 22950# against it. 22951hardcode_automatic=$hardcode_automatic 22952 22953# Set to yes if linker adds runtime paths of dependent libraries 22954# to runtime path list. 22955inherit_rpath=$inherit_rpath 22956 22957# Whether libtool must link a program against all its dependency libraries. 22958link_all_deplibs=$link_all_deplibs 22959 22960# Set to "yes" if exported symbols are required. 22961always_export_symbols=$always_export_symbols 22962 22963# The commands to list exported symbols. 22964export_symbols_cmds=$lt_export_symbols_cmds 22965 22966# Symbols that should not be listed in the preloaded symbols. 22967exclude_expsyms=$lt_exclude_expsyms 22968 22969# Symbols that must always be exported. 22970include_expsyms=$lt_include_expsyms 22971 22972# Commands necessary for linking programs (against libraries) with templates. 22973prelink_cmds=$lt_prelink_cmds 22974 22975# Commands necessary for finishing linking programs. 22976postlink_cmds=$lt_postlink_cmds 22977 22978# Specify filename containing input files. 22979file_list_spec=$lt_file_list_spec 22980 22981# How to hardcode a shared library path into an executable. 22982hardcode_action=$hardcode_action 22983 22984# The directories searched by this compiler when creating a shared library. 22985compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 22986 22987# Dependencies to place before and after the objects being linked to 22988# create a shared library. 22989predep_objects=$lt_predep_objects 22990postdep_objects=$lt_postdep_objects 22991predeps=$lt_predeps 22992postdeps=$lt_postdeps 22993 22994# The library search path used internally by the compiler when linking 22995# a shared library. 22996compiler_lib_search_path=$lt_compiler_lib_search_path 22997 22998# ### END LIBTOOL CONFIG 22999 23000_LT_EOF 23001 23002 cat <<'_LT_EOF' >> "$cfgfile" 23003 23004# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23005 23006# func_munge_path_list VARIABLE PATH 23007# ----------------------------------- 23008# VARIABLE is name of variable containing _space_ separated list of 23009# directories to be munged by the contents of PATH, which is string 23010# having a format: 23011# "DIR[:DIR]:" 23012# string "DIR[ DIR]" will be prepended to VARIABLE 23013# ":DIR[:DIR]" 23014# string "DIR[ DIR]" will be appended to VARIABLE 23015# "DIRP[:DIRP]::[DIRA:]DIRA" 23016# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23017# "DIRA[ DIRA]" will be appended to VARIABLE 23018# "DIR[:DIR]" 23019# VARIABLE will be replaced by "DIR[ DIR]" 23020func_munge_path_list () 23021{ 23022 case x$2 in 23023 x) 23024 ;; 23025 *:) 23026 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23027 ;; 23028 x:*) 23029 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23030 ;; 23031 *::*) 23032 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23033 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23034 ;; 23035 *) 23036 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23037 ;; 23038 esac 23039} 23040 23041 23042# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23043func_cc_basename () 23044{ 23045 for cc_temp in $*""; do 23046 case $cc_temp in 23047 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23048 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23049 \-*) ;; 23050 *) break;; 23051 esac 23052 done 23053 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23054} 23055 23056 23057# ### END FUNCTIONS SHARED WITH CONFIGURE 23058 23059_LT_EOF 23060 23061 case $host_os in 23062 aix3*) 23063 cat <<\_LT_EOF >> "$cfgfile" 23064# AIX sometimes has problems with the GCC collect2 program. For some 23065# reason, if we set the COLLECT_NAMES environment variable, the problems 23066# vanish in a puff of smoke. 23067if test set != "${COLLECT_NAMES+set}"; then 23068 COLLECT_NAMES= 23069 export COLLECT_NAMES 23070fi 23071_LT_EOF 23072 ;; 23073 esac 23074 23075 23076ltmain=$ac_aux_dir/ltmain.sh 23077 23078 23079 # We use sed instead of cat because bash on DJGPP gets confused if 23080 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23081 # text mode, it properly converts lines to CR/LF. This bash problem 23082 # is reportedly fixed, but why not run on old versions too? 23083 sed '$q' "$ltmain" >> "$cfgfile" \ 23084 || (rm -f "$cfgfile"; exit 1) 23085 23086 mv -f "$cfgfile" "$ofile" || 23087 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23088 chmod +x "$ofile" 23089 23090 23091 cat <<_LT_EOF >> "$ofile" 23092 23093# ### BEGIN LIBTOOL TAG CONFIG: CXX 23094 23095# The linker used to build libraries. 23096LD=$lt_LD_CXX 23097 23098# How to create reloadable object files. 23099reload_flag=$lt_reload_flag_CXX 23100reload_cmds=$lt_reload_cmds_CXX 23101 23102# Commands used to build an old-style archive. 23103old_archive_cmds=$lt_old_archive_cmds_CXX 23104 23105# A language specific compiler. 23106CC=$lt_compiler_CXX 23107 23108# Is the compiler the GNU compiler? 23109with_gcc=$GCC_CXX 23110 23111# Compiler flag to turn off builtin functions. 23112no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 23113 23114# Additional compiler flags for building library objects. 23115pic_flag=$lt_lt_prog_compiler_pic_CXX 23116 23117# How to pass a linker flag through the compiler. 23118wl=$lt_lt_prog_compiler_wl_CXX 23119 23120# Compiler flag to prevent dynamic linking. 23121link_static_flag=$lt_lt_prog_compiler_static_CXX 23122 23123# Does compiler simultaneously support -c and -o options? 23124compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 23125 23126# Whether or not to add -lc for building shared libraries. 23127build_libtool_need_lc=$archive_cmds_need_lc_CXX 23128 23129# Whether or not to disallow shared libs when runtime libs are static. 23130allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 23131 23132# Compiler flag to allow reflexive dlopens. 23133export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 23134 23135# Compiler flag to generate shared objects directly from archives. 23136whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 23137 23138# Whether the compiler copes with passing no objects directly. 23139compiler_needs_object=$lt_compiler_needs_object_CXX 23140 23141# Create an old-style archive from a shared archive. 23142old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 23143 23144# Create a temporary old-style archive to link instead of a shared archive. 23145old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 23146 23147# Commands used to build a shared archive. 23148archive_cmds=$lt_archive_cmds_CXX 23149archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 23150 23151# Commands used to build a loadable module if different from building 23152# a shared archive. 23153module_cmds=$lt_module_cmds_CXX 23154module_expsym_cmds=$lt_module_expsym_cmds_CXX 23155 23156# Whether we are building with GNU ld or not. 23157with_gnu_ld=$lt_with_gnu_ld_CXX 23158 23159# Flag that allows shared libraries with undefined symbols to be built. 23160allow_undefined_flag=$lt_allow_undefined_flag_CXX 23161 23162# Flag that enforces no undefined symbols. 23163no_undefined_flag=$lt_no_undefined_flag_CXX 23164 23165# Flag to hardcode \$libdir into a binary during linking. 23166# This must work even if \$libdir does not exist 23167hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 23168 23169# Whether we need a single "-rpath" flag with a separated argument. 23170hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 23171 23172# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23173# DIR into the resulting binary. 23174hardcode_direct=$hardcode_direct_CXX 23175 23176# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23177# DIR into the resulting binary and the resulting library dependency is 23178# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23179# library is relocated. 23180hardcode_direct_absolute=$hardcode_direct_absolute_CXX 23181 23182# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23183# into the resulting binary. 23184hardcode_minus_L=$hardcode_minus_L_CXX 23185 23186# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23187# into the resulting binary. 23188hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 23189 23190# Set to "yes" if building a shared library automatically hardcodes DIR 23191# into the library and all subsequent libraries and executables linked 23192# against it. 23193hardcode_automatic=$hardcode_automatic_CXX 23194 23195# Set to yes if linker adds runtime paths of dependent libraries 23196# to runtime path list. 23197inherit_rpath=$inherit_rpath_CXX 23198 23199# Whether libtool must link a program against all its dependency libraries. 23200link_all_deplibs=$link_all_deplibs_CXX 23201 23202# Set to "yes" if exported symbols are required. 23203always_export_symbols=$always_export_symbols_CXX 23204 23205# The commands to list exported symbols. 23206export_symbols_cmds=$lt_export_symbols_cmds_CXX 23207 23208# Symbols that should not be listed in the preloaded symbols. 23209exclude_expsyms=$lt_exclude_expsyms_CXX 23210 23211# Symbols that must always be exported. 23212include_expsyms=$lt_include_expsyms_CXX 23213 23214# Commands necessary for linking programs (against libraries) with templates. 23215prelink_cmds=$lt_prelink_cmds_CXX 23216 23217# Commands necessary for finishing linking programs. 23218postlink_cmds=$lt_postlink_cmds_CXX 23219 23220# Specify filename containing input files. 23221file_list_spec=$lt_file_list_spec_CXX 23222 23223# How to hardcode a shared library path into an executable. 23224hardcode_action=$hardcode_action_CXX 23225 23226# The directories searched by this compiler when creating a shared library. 23227compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 23228 23229# Dependencies to place before and after the objects being linked to 23230# create a shared library. 23231predep_objects=$lt_predep_objects_CXX 23232postdep_objects=$lt_postdep_objects_CXX 23233predeps=$lt_predeps_CXX 23234postdeps=$lt_postdeps_CXX 23235 23236# The library search path used internally by the compiler when linking 23237# a shared library. 23238compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 23239 23240# ### END LIBTOOL TAG CONFIG: CXX 23241_LT_EOF 23242 23243 ;; 23244 "po-directories":C) 23245 for ac_file in $CONFIG_FILES; do 23246 # Support "outfile[:infile[:infile...]]" 23247 case "$ac_file" in 23248 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 23249 esac 23250 # PO directories have a Makefile.in generated from Makefile.in.in. 23251 case "$ac_file" in */Makefile.in) 23252 # Adjust a relative srcdir. 23253 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 23254 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 23255 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 23256 # In autoconf-2.13 it is called $ac_given_srcdir. 23257 # In autoconf-2.50 it is called $srcdir. 23258 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 23259 case "$ac_given_srcdir" in 23260 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 23261 /*) top_srcdir="$ac_given_srcdir" ;; 23262 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 23263 esac 23264 # Treat a directory as a PO directory if and only if it has a 23265 # POTFILES.in file. This allows packages to have multiple PO 23266 # directories under different names or in different locations. 23267 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 23268 rm -f "$ac_dir/POTFILES" 23269 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 23270 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 23271 POMAKEFILEDEPS="POTFILES.in" 23272 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 23273 # on $ac_dir but don't depend on user-specified configuration 23274 # parameters. 23275 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 23276 # The LINGUAS file contains the set of available languages. 23277 if test -n "$OBSOLETE_ALL_LINGUAS"; then 23278 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 23279 fi 23280 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 23281 # Hide the ALL_LINGUAS assigment from automake < 1.5. 23282 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 23283 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 23284 else 23285 # The set of available languages was given in configure.in. 23286 # Hide the ALL_LINGUAS assigment from automake < 1.5. 23287 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 23288 fi 23289 # Compute POFILES 23290 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 23291 # Compute UPDATEPOFILES 23292 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 23293 # Compute DUMMYPOFILES 23294 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 23295 # Compute GMOFILES 23296 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 23297 case "$ac_given_srcdir" in 23298 .) srcdirpre= ;; 23299 *) srcdirpre='$(srcdir)/' ;; 23300 esac 23301 POFILES= 23302 UPDATEPOFILES= 23303 DUMMYPOFILES= 23304 GMOFILES= 23305 for lang in $ALL_LINGUAS; do 23306 POFILES="$POFILES $srcdirpre$lang.po" 23307 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 23308 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 23309 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 23310 done 23311 # CATALOGS depends on both $ac_dir and the user's LINGUAS 23312 # environment variable. 23313 INST_LINGUAS= 23314 if test -n "$ALL_LINGUAS"; then 23315 for presentlang in $ALL_LINGUAS; do 23316 useit=no 23317 if test "%UNSET%" != "$LINGUAS"; then 23318 desiredlanguages="$LINGUAS" 23319 else 23320 desiredlanguages="$ALL_LINGUAS" 23321 fi 23322 for desiredlang in $desiredlanguages; do 23323 # Use the presentlang catalog if desiredlang is 23324 # a. equal to presentlang, or 23325 # b. a variant of presentlang (because in this case, 23326 # presentlang can be used as a fallback for messages 23327 # which are not translated in the desiredlang catalog). 23328 case "$desiredlang" in 23329 "$presentlang"*) useit=yes;; 23330 esac 23331 done 23332 if test $useit = yes; then 23333 INST_LINGUAS="$INST_LINGUAS $presentlang" 23334 fi 23335 done 23336 fi 23337 CATALOGS= 23338 if test -n "$INST_LINGUAS"; then 23339 for lang in $INST_LINGUAS; do 23340 CATALOGS="$CATALOGS $lang.gmo" 23341 done 23342 fi 23343 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 23344 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 23345 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 23346 if test -f "$f"; then 23347 case "$f" in 23348 *.orig | *.bak | *~) ;; 23349 *) cat "$f" >> "$ac_dir/Makefile" ;; 23350 esac 23351 fi 23352 done 23353 fi 23354 ;; 23355 esac 23356 done ;; 23357 23358 esac 23359done # for ac_tag 23360 23361 23362as_fn_exit 0 23363_ACEOF 23364ac_clean_files=$ac_clean_files_save 23365 23366test $ac_write_fail = 0 || 23367 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23368 23369 23370# configure is writing to config.log, and then calls config.status. 23371# config.status does its own redirection, appending to config.log. 23372# Unfortunately, on DOS this fails, as config.log is still kept open 23373# by configure, so config.status won't be able to write to it; its 23374# output is simply discarded. So we exec the FD to /dev/null, 23375# effectively closing config.log, so it can be properly (re)opened and 23376# appended to by config.status. When coming back to configure, we 23377# need to make the FD available again. 23378if test "$no_create" != yes; then 23379 ac_cs_success=: 23380 ac_config_status_args= 23381 test "$silent" = yes && 23382 ac_config_status_args="$ac_config_status_args --quiet" 23383 exec 5>/dev/null 23384 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23385 exec 5>>config.log 23386 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23387 # would make configure fail if this is the last instruction. 23388 $ac_cs_success || as_fn_exit 1 23389fi 23390 23391# 23392# CONFIG_SUBDIRS section. 23393# 23394if test "$no_recursion" != yes; then 23395 23396 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 23397 # so they do not pile up. 23398 ac_sub_configure_args= 23399 ac_prev= 23400 eval "set x $ac_configure_args" 23401 shift 23402 for ac_arg 23403 do 23404 if test -n "$ac_prev"; then 23405 ac_prev= 23406 continue 23407 fi 23408 case $ac_arg in 23409 -cache-file | --cache-file | --cache-fil | --cache-fi \ 23410 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 23411 ac_prev=cache_file ;; 23412 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 23413 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 23414 | --c=*) 23415 ;; 23416 --config-cache | -C) 23417 ;; 23418 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 23419 ac_prev=srcdir ;; 23420 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 23421 ;; 23422 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 23423 ac_prev=prefix ;; 23424 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 23425 ;; 23426 --disable-option-checking) 23427 ;; 23428 *) 23429 case $ac_arg in 23430 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 23431 esac 23432 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 23433 esac 23434 done 23435 23436 # Always prepend --prefix to ensure using the same prefix 23437 # in subdir configurations. 23438 ac_arg="--prefix=$prefix" 23439 case $ac_arg in 23440 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 23441 esac 23442 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 23443 23444 # Pass --silent 23445 if test "$silent" = yes; then 23446 ac_sub_configure_args="--silent $ac_sub_configure_args" 23447 fi 23448 23449 # Always prepend --disable-option-checking to silence warnings, since 23450 # different subdirs can have different --enable and --with options. 23451 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 23452 23453 ac_popdir=`pwd` 23454 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 23455 23456 # Do not complain, so a configure script can configure whichever 23457 # parts of a large source tree are present. 23458 test -d "$srcdir/$ac_dir" || continue 23459 23460 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 23461 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 23462 $as_echo "$ac_msg" >&6 23463 as_dir="$ac_dir"; as_fn_mkdir_p 23464 ac_builddir=. 23465 23466case "$ac_dir" in 23467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23468*) 23469 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23470 # A ".." for each directory in $ac_dir_suffix. 23471 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23472 case $ac_top_builddir_sub in 23473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23475 esac ;; 23476esac 23477ac_abs_top_builddir=$ac_pwd 23478ac_abs_builddir=$ac_pwd$ac_dir_suffix 23479# for backward compatibility: 23480ac_top_builddir=$ac_top_build_prefix 23481 23482case $srcdir in 23483 .) # We are building in place. 23484 ac_srcdir=. 23485 ac_top_srcdir=$ac_top_builddir_sub 23486 ac_abs_top_srcdir=$ac_pwd ;; 23487 [\\/]* | ?:[\\/]* ) # Absolute name. 23488 ac_srcdir=$srcdir$ac_dir_suffix; 23489 ac_top_srcdir=$srcdir 23490 ac_abs_top_srcdir=$srcdir ;; 23491 *) # Relative name. 23492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23493 ac_top_srcdir=$ac_top_build_prefix$srcdir 23494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23495esac 23496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23497 23498 23499 cd "$ac_dir" 23500 23501 # Check for guested configure; otherwise get Cygnus style configure. 23502 if test -f "$ac_srcdir/configure.gnu"; then 23503 ac_sub_configure=$ac_srcdir/configure.gnu 23504 elif test -f "$ac_srcdir/configure"; then 23505 ac_sub_configure=$ac_srcdir/configure 23506 elif test -f "$ac_srcdir/configure.in"; then 23507 # This should be Cygnus configure. 23508 ac_sub_configure=$ac_aux_dir/configure 23509 else 23510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 23511$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 23512 ac_sub_configure= 23513 fi 23514 23515 # The recursion is here. 23516 if test -n "$ac_sub_configure"; then 23517 # Make the cache file name correct relative to the subdirectory. 23518 case $cache_file in 23519 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 23520 *) # Relative name. 23521 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 23522 esac 23523 23524 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 23525$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 23526 # The eval makes quoting arguments work. 23527 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 23528 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 23529 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 23530 fi 23531 23532 cd "$ac_popdir" 23533 done 23534fi 23535if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23537$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23538fi 23539 23540 23541echo "******************************************************************" 23542echo "" 23543echo "Prefix : $prefix" 23544echo "CPPFLAGS : $CPPFLAGS" 23545echo "CFLAGS : $CFLAGS" 23546echo "CXXFLAGS : $CXXFLAGS" 23547echo "LDFLAGS : $LDFLAGS" 23548echo "" 23549echo "Enable debug code : $my_debug" 23550echo "Disable install Doc.: $my_disableinstalldoc" 23551echo "" 23552echo "Use NLS : $USE_NLS" 23553echo "" 23554echo "******************************************************************" 23555echo "" 23556echo "Looks good." 23557echo "" 23558