1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME= 589PACKAGE_TARNAME= 590PACKAGE_VERSION= 591PACKAGE_STRING= 592PACKAGE_BUGREPORT= 593PACKAGE_URL= 594 595# Factoring default headers for most tests. 596ac_includes_default="\ 597#include <stdio.h> 598#ifdef HAVE_SYS_TYPES_H 599# include <sys/types.h> 600#endif 601#ifdef HAVE_SYS_STAT_H 602# include <sys/stat.h> 603#endif 604#ifdef STDC_HEADERS 605# include <stdlib.h> 606# include <stddef.h> 607#else 608# ifdef HAVE_STDLIB_H 609# include <stdlib.h> 610# endif 611#endif 612#ifdef HAVE_STRING_H 613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 614# include <memory.h> 615# endif 616# include <string.h> 617#endif 618#ifdef HAVE_STRINGS_H 619# include <strings.h> 620#endif 621#ifdef HAVE_INTTYPES_H 622# include <inttypes.h> 623#endif 624#ifdef HAVE_STDINT_H 625# include <stdint.h> 626#endif 627#ifdef HAVE_UNISTD_H 628# include <unistd.h> 629#endif" 630 631ac_subst_vars='LTLIBOBJS 632LIBOBJS 633EXEFILES 634TRACE_NAME 635gui_libbuild_dir 636logfilesbuild_dir 637sharebuild_dir 638sbinbuild_dir 639binbuild_dir 640libbuild_dir 641RM 642RANLIB_AFTER_INSTALL 643INSTALL_DATA 644INSTALL_SCRIPT 645INSTALL_PROGRAM 646JPATH_FINAL 647JPATH_START 648JVMFLAGS 649JVM 650JNI_INC 651target_os 652target_vendor 653target_cpu 654target 655DEBUG_LIBS 656LIBTOOL_DEPS 657OTOOL64 658OTOOL 659LIPO 660NMEDIT 661DSYMUTIL 662MANIFEST_TOOL 663AWK 664RANLIB 665STRIP 666ac_ct_AR 667AR 668LN_S 669NM 670ac_ct_DUMPBIN 671DUMPBIN 672LD 673FGREP 674LIBTOOL 675SED 676OBJDUMP 677DLLTOOL 678AS 679EXPORT_SYMBOLS 680LIBSO_PREFIX 681LIBSO_LDFLAGS 682LIBSO_CFLAGS 683host_os 684host_vendor 685host_cpu 686host 687build_os 688build_vendor 689build_cpu 690build 691EGREP 692GREP 693CPP 694OBJEXT 695EXEEXT 696ac_ct_CC 697CPPFLAGS 698LDFLAGS 699CFLAGS 700CC 701TRACE_CFLAGS 702TRACE_CC 703MAKE 704VPATH_EXTRA 705VPATH 706top_srcdir_abs 707target_alias 708host_alias 709build_alias 710LIBS 711ECHO_T 712ECHO_N 713ECHO_C 714DEFS 715mandir 716localedir 717libdir 718psdir 719pdfdir 720dvidir 721htmldir 722infodir 723docdir 724oldincludedir 725includedir 726localstatedir 727sharedstatedir 728sysconfdir 729datadir 730datarootdir 731libexecdir 732sbindir 733bindir 734program_transform_name 735prefix 736exec_prefix 737PACKAGE_URL 738PACKAGE_BUGREPORT 739PACKAGE_STRING 740PACKAGE_VERSION 741PACKAGE_TARNAME 742PACKAGE_NAME 743PATH_SEPARATOR 744SHELL' 745ac_subst_files='' 746ac_user_opts=' 747enable_option_checking 748enable_strict 749enable_echo 750enable_softerror 751with_java 752with_java2 753with_jvmflags 754enable_static 755enable_shared 756with_pic 757enable_fast_install 758with_gnu_ld 759with_sysroot 760enable_libtool_lock 761' 762 ac_precious_vars='build_alias 763host_alias 764target_alias 765TRACE_CC 766TRACE_CFLAGS 767CC 768CFLAGS 769LDFLAGS 770LIBS 771CPPFLAGS 772CPP' 773 774 775# Initialize some variables set by options. 776ac_init_help= 777ac_init_version=false 778ac_unrecognized_opts= 779ac_unrecognized_sep= 780# The variables have the same names as the options, with 781# dashes changed to underlines. 782cache_file=/dev/null 783exec_prefix=NONE 784no_create= 785no_recursion= 786prefix=NONE 787program_prefix=NONE 788program_suffix=NONE 789program_transform_name=s,x,x, 790silent= 791site= 792srcdir= 793verbose= 794x_includes=NONE 795x_libraries=NONE 796 797# Installation directory options. 798# These are left unexpanded so users can "make install exec_prefix=/foo" 799# and all the variables that are supposed to be based on exec_prefix 800# by default will actually change. 801# Use braces instead of parens because sh, perl, etc. also accept them. 802# (The list follows the same order as the GNU Coding Standards.) 803bindir='${exec_prefix}/bin' 804sbindir='${exec_prefix}/sbin' 805libexecdir='${exec_prefix}/libexec' 806datarootdir='${prefix}/share' 807datadir='${datarootdir}' 808sysconfdir='${prefix}/etc' 809sharedstatedir='${prefix}/com' 810localstatedir='${prefix}/var' 811includedir='${prefix}/include' 812oldincludedir='/usr/include' 813docdir='${datarootdir}/doc/${PACKAGE}' 814infodir='${datarootdir}/info' 815htmldir='${docdir}' 816dvidir='${docdir}' 817pdfdir='${docdir}' 818psdir='${docdir}' 819libdir='${exec_prefix}/lib' 820localedir='${datarootdir}/locale' 821mandir='${datarootdir}/man' 822 823ac_prev= 824ac_dashdash= 825for ac_option 826do 827 # If the previous option needs an argument, assign it. 828 if test -n "$ac_prev"; then 829 eval $ac_prev=\$ac_option 830 ac_prev= 831 continue 832 fi 833 834 case $ac_option in 835 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 836 *=) ac_optarg= ;; 837 *) ac_optarg=yes ;; 838 esac 839 840 # Accept the important Cygnus configure options, so we can diagnose typos. 841 842 case $ac_dashdash$ac_option in 843 --) 844 ac_dashdash=yes ;; 845 846 -bindir | --bindir | --bindi | --bind | --bin | --bi) 847 ac_prev=bindir ;; 848 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 849 bindir=$ac_optarg ;; 850 851 -build | --build | --buil | --bui | --bu) 852 ac_prev=build_alias ;; 853 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 854 build_alias=$ac_optarg ;; 855 856 -cache-file | --cache-file | --cache-fil | --cache-fi \ 857 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 858 ac_prev=cache_file ;; 859 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 860 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 861 cache_file=$ac_optarg ;; 862 863 --config-cache | -C) 864 cache_file=config.cache ;; 865 866 -datadir | --datadir | --datadi | --datad) 867 ac_prev=datadir ;; 868 -datadir=* | --datadir=* | --datadi=* | --datad=*) 869 datadir=$ac_optarg ;; 870 871 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 872 | --dataroo | --dataro | --datar) 873 ac_prev=datarootdir ;; 874 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 875 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 876 datarootdir=$ac_optarg ;; 877 878 -disable-* | --disable-*) 879 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 880 # Reject names that are not valid shell variable names. 881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 882 as_fn_error $? "invalid feature name: $ac_useropt" 883 ac_useropt_orig=$ac_useropt 884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 885 case $ac_user_opts in 886 *" 887"enable_$ac_useropt" 888"*) ;; 889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 890 ac_unrecognized_sep=', ';; 891 esac 892 eval enable_$ac_useropt=no ;; 893 894 -docdir | --docdir | --docdi | --doc | --do) 895 ac_prev=docdir ;; 896 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 897 docdir=$ac_optarg ;; 898 899 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 900 ac_prev=dvidir ;; 901 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 902 dvidir=$ac_optarg ;; 903 904 -enable-* | --enable-*) 905 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 906 # Reject names that are not valid shell variable names. 907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 908 as_fn_error $? "invalid feature name: $ac_useropt" 909 ac_useropt_orig=$ac_useropt 910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 911 case $ac_user_opts in 912 *" 913"enable_$ac_useropt" 914"*) ;; 915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 916 ac_unrecognized_sep=', ';; 917 esac 918 eval enable_$ac_useropt=\$ac_optarg ;; 919 920 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 921 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 922 | --exec | --exe | --ex) 923 ac_prev=exec_prefix ;; 924 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 925 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 926 | --exec=* | --exe=* | --ex=*) 927 exec_prefix=$ac_optarg ;; 928 929 -gas | --gas | --ga | --g) 930 # Obsolete; use --with-gas. 931 with_gas=yes ;; 932 933 -help | --help | --hel | --he | -h) 934 ac_init_help=long ;; 935 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 936 ac_init_help=recursive ;; 937 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 938 ac_init_help=short ;; 939 940 -host | --host | --hos | --ho) 941 ac_prev=host_alias ;; 942 -host=* | --host=* | --hos=* | --ho=*) 943 host_alias=$ac_optarg ;; 944 945 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 946 ac_prev=htmldir ;; 947 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 948 | --ht=*) 949 htmldir=$ac_optarg ;; 950 951 -includedir | --includedir | --includedi | --included | --include \ 952 | --includ | --inclu | --incl | --inc) 953 ac_prev=includedir ;; 954 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 955 | --includ=* | --inclu=* | --incl=* | --inc=*) 956 includedir=$ac_optarg ;; 957 958 -infodir | --infodir | --infodi | --infod | --info | --inf) 959 ac_prev=infodir ;; 960 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 961 infodir=$ac_optarg ;; 962 963 -libdir | --libdir | --libdi | --libd) 964 ac_prev=libdir ;; 965 -libdir=* | --libdir=* | --libdi=* | --libd=*) 966 libdir=$ac_optarg ;; 967 968 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 969 | --libexe | --libex | --libe) 970 ac_prev=libexecdir ;; 971 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 972 | --libexe=* | --libex=* | --libe=*) 973 libexecdir=$ac_optarg ;; 974 975 -localedir | --localedir | --localedi | --localed | --locale) 976 ac_prev=localedir ;; 977 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 978 localedir=$ac_optarg ;; 979 980 -localstatedir | --localstatedir | --localstatedi | --localstated \ 981 | --localstate | --localstat | --localsta | --localst | --locals) 982 ac_prev=localstatedir ;; 983 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 984 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 985 localstatedir=$ac_optarg ;; 986 987 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 988 ac_prev=mandir ;; 989 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 990 mandir=$ac_optarg ;; 991 992 -nfp | --nfp | --nf) 993 # Obsolete; use --without-fp. 994 with_fp=no ;; 995 996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 997 | --no-cr | --no-c | -n) 998 no_create=yes ;; 999 1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1002 no_recursion=yes ;; 1003 1004 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1005 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1006 | --oldin | --oldi | --old | --ol | --o) 1007 ac_prev=oldincludedir ;; 1008 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1009 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1010 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1011 oldincludedir=$ac_optarg ;; 1012 1013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1014 ac_prev=prefix ;; 1015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1016 prefix=$ac_optarg ;; 1017 1018 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1019 | --program-pre | --program-pr | --program-p) 1020 ac_prev=program_prefix ;; 1021 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1022 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1023 program_prefix=$ac_optarg ;; 1024 1025 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1026 | --program-suf | --program-su | --program-s) 1027 ac_prev=program_suffix ;; 1028 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1029 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1030 program_suffix=$ac_optarg ;; 1031 1032 -program-transform-name | --program-transform-name \ 1033 | --program-transform-nam | --program-transform-na \ 1034 | --program-transform-n | --program-transform- \ 1035 | --program-transform | --program-transfor \ 1036 | --program-transfo | --program-transf \ 1037 | --program-trans | --program-tran \ 1038 | --progr-tra | --program-tr | --program-t) 1039 ac_prev=program_transform_name ;; 1040 -program-transform-name=* | --program-transform-name=* \ 1041 | --program-transform-nam=* | --program-transform-na=* \ 1042 | --program-transform-n=* | --program-transform-=* \ 1043 | --program-transform=* | --program-transfor=* \ 1044 | --program-transfo=* | --program-transf=* \ 1045 | --program-trans=* | --program-tran=* \ 1046 | --progr-tra=* | --program-tr=* | --program-t=*) 1047 program_transform_name=$ac_optarg ;; 1048 1049 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1050 ac_prev=pdfdir ;; 1051 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1052 pdfdir=$ac_optarg ;; 1053 1054 -psdir | --psdir | --psdi | --psd | --ps) 1055 ac_prev=psdir ;; 1056 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1057 psdir=$ac_optarg ;; 1058 1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1060 | -silent | --silent | --silen | --sile | --sil) 1061 silent=yes ;; 1062 1063 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1064 ac_prev=sbindir ;; 1065 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1066 | --sbi=* | --sb=*) 1067 sbindir=$ac_optarg ;; 1068 1069 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1070 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1071 | --sharedst | --shareds | --shared | --share | --shar \ 1072 | --sha | --sh) 1073 ac_prev=sharedstatedir ;; 1074 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1075 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1076 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1077 | --sha=* | --sh=*) 1078 sharedstatedir=$ac_optarg ;; 1079 1080 -site | --site | --sit) 1081 ac_prev=site ;; 1082 -site=* | --site=* | --sit=*) 1083 site=$ac_optarg ;; 1084 1085 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1086 ac_prev=srcdir ;; 1087 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1088 srcdir=$ac_optarg ;; 1089 1090 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1091 | --syscon | --sysco | --sysc | --sys | --sy) 1092 ac_prev=sysconfdir ;; 1093 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1094 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1095 sysconfdir=$ac_optarg ;; 1096 1097 -target | --target | --targe | --targ | --tar | --ta | --t) 1098 ac_prev=target_alias ;; 1099 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1100 target_alias=$ac_optarg ;; 1101 1102 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1103 verbose=yes ;; 1104 1105 -version | --version | --versio | --versi | --vers | -V) 1106 ac_init_version=: ;; 1107 1108 -with-* | --with-*) 1109 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1110 # Reject names that are not valid shell variable names. 1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1112 as_fn_error $? "invalid package name: $ac_useropt" 1113 ac_useropt_orig=$ac_useropt 1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1115 case $ac_user_opts in 1116 *" 1117"with_$ac_useropt" 1118"*) ;; 1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1120 ac_unrecognized_sep=', ';; 1121 esac 1122 eval with_$ac_useropt=\$ac_optarg ;; 1123 1124 -without-* | --without-*) 1125 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1126 # Reject names that are not valid shell variable names. 1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1128 as_fn_error $? "invalid package name: $ac_useropt" 1129 ac_useropt_orig=$ac_useropt 1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1131 case $ac_user_opts in 1132 *" 1133"with_$ac_useropt" 1134"*) ;; 1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1136 ac_unrecognized_sep=', ';; 1137 esac 1138 eval with_$ac_useropt=no ;; 1139 1140 --x) 1141 # Obsolete; use --with-x. 1142 with_x=yes ;; 1143 1144 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1145 | --x-incl | --x-inc | --x-in | --x-i) 1146 ac_prev=x_includes ;; 1147 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1148 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1149 x_includes=$ac_optarg ;; 1150 1151 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1152 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1153 ac_prev=x_libraries ;; 1154 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1155 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1156 x_libraries=$ac_optarg ;; 1157 1158 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1159Try \`$0 --help' for more information" 1160 ;; 1161 1162 *=*) 1163 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1164 # Reject names that are not valid shell variable names. 1165 case $ac_envvar in #( 1166 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1167 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1168 esac 1169 eval $ac_envvar=\$ac_optarg 1170 export $ac_envvar ;; 1171 1172 *) 1173 # FIXME: should be removed in autoconf 3.0. 1174 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1175 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1176 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1177 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1178 ;; 1179 1180 esac 1181done 1182 1183if test -n "$ac_prev"; then 1184 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1185 as_fn_error $? "missing argument to $ac_option" 1186fi 1187 1188if test -n "$ac_unrecognized_opts"; then 1189 case $enable_option_checking in 1190 no) ;; 1191 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1192 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1193 esac 1194fi 1195 1196# Check all directory arguments for consistency. 1197for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1198 datadir sysconfdir sharedstatedir localstatedir includedir \ 1199 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1200 libdir localedir mandir 1201do 1202 eval ac_val=\$$ac_var 1203 # Remove trailing slashes. 1204 case $ac_val in 1205 */ ) 1206 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1207 eval $ac_var=\$ac_val;; 1208 esac 1209 # Be sure to have absolute directory names. 1210 case $ac_val in 1211 [\\/$]* | ?:[\\/]* ) continue;; 1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1213 esac 1214 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1215done 1216 1217# There might be people who depend on the old broken behavior: `$host' 1218# used to hold the argument of --host etc. 1219# FIXME: To remove some day. 1220build=$build_alias 1221host=$host_alias 1222target=$target_alias 1223 1224# FIXME: To remove some day. 1225if test "x$host_alias" != x; then 1226 if test "x$build_alias" = x; then 1227 cross_compiling=maybe 1228 elif test "x$build_alias" != "x$host_alias"; then 1229 cross_compiling=yes 1230 fi 1231fi 1232 1233ac_tool_prefix= 1234test -n "$host_alias" && ac_tool_prefix=$host_alias- 1235 1236test "$silent" = yes && exec 6>/dev/null 1237 1238 1239ac_pwd=`pwd` && test -n "$ac_pwd" && 1240ac_ls_di=`ls -di .` && 1241ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1242 as_fn_error $? "working directory cannot be determined" 1243test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1244 as_fn_error $? "pwd does not report name of working directory" 1245 1246 1247# Find the source files, if location was not specified. 1248if test -z "$srcdir"; then 1249 ac_srcdir_defaulted=yes 1250 # Try the directory containing this script, then the parent directory. 1251 ac_confdir=`$as_dirname -- "$as_myself" || 1252$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1253 X"$as_myself" : 'X\(//\)[^/]' \| \ 1254 X"$as_myself" : 'X\(//\)$' \| \ 1255 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1256$as_echo X"$as_myself" | 1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1258 s//\1/ 1259 q 1260 } 1261 /^X\(\/\/\)[^/].*/{ 1262 s//\1/ 1263 q 1264 } 1265 /^X\(\/\/\)$/{ 1266 s//\1/ 1267 q 1268 } 1269 /^X\(\/\).*/{ 1270 s//\1/ 1271 q 1272 } 1273 s/.*/./; q'` 1274 srcdir=$ac_confdir 1275 if test ! -r "$srcdir/$ac_unique_file"; then 1276 srcdir=.. 1277 fi 1278else 1279 ac_srcdir_defaulted=no 1280fi 1281if test ! -r "$srcdir/$ac_unique_file"; then 1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1283 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1284fi 1285ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1286ac_abs_confdir=`( 1287 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1288 pwd)` 1289# When building in place, set srcdir=. 1290if test "$ac_abs_confdir" = "$ac_pwd"; then 1291 srcdir=. 1292fi 1293# Remove unnecessary trailing slashes from srcdir. 1294# Double slashes in file names in object file debugging info 1295# mess up M-x gdb in Emacs. 1296case $srcdir in 1297*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1298esac 1299for ac_var in $ac_precious_vars; do 1300 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1301 eval ac_env_${ac_var}_value=\$${ac_var} 1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1303 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1304done 1305 1306# 1307# Report the --help message. 1308# 1309if test "$ac_init_help" = "long"; then 1310 # Omit some internal or obsolete options to make the list less imposing. 1311 # This message is too long to be a string in the A/UX 3.1 sh. 1312 cat <<_ACEOF 1313\`configure' configures this package to adapt to many kinds of systems. 1314 1315Usage: $0 [OPTION]... [VAR=VALUE]... 1316 1317To assign environment variables (e.g., CC, CFLAGS...), specify them as 1318VAR=VALUE. See below for descriptions of some of the useful variables. 1319 1320Defaults for the options are specified in brackets. 1321 1322Configuration: 1323 -h, --help display this help and exit 1324 --help=short display options specific to this package 1325 --help=recursive display the short help of all the included packages 1326 -V, --version display version information and exit 1327 -q, --quiet, --silent do not print \`checking ...' messages 1328 --cache-file=FILE cache test results in FILE [disabled] 1329 -C, --config-cache alias for \`--cache-file=config.cache' 1330 -n, --no-create do not create output files 1331 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1332 1333Installation directories: 1334 --prefix=PREFIX install architecture-independent files in PREFIX 1335 [$ac_default_prefix] 1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1337 [PREFIX] 1338 1339By default, \`make install' will install all the files in 1340\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1341an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1342for instance \`--prefix=\$HOME'. 1343 1344For better control, use the options below. 1345 1346Fine tuning of the installation directories: 1347 --bindir=DIR user executables [EPREFIX/bin] 1348 --sbindir=DIR system admin executables [EPREFIX/sbin] 1349 --libexecdir=DIR program executables [EPREFIX/libexec] 1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1353 --libdir=DIR object code libraries [EPREFIX/lib] 1354 --includedir=DIR C header files [PREFIX/include] 1355 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1358 --infodir=DIR info documentation [DATAROOTDIR/info] 1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1360 --mandir=DIR man documentation [DATAROOTDIR/man] 1361 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1362 --htmldir=DIR html documentation [DOCDIR] 1363 --dvidir=DIR dvi documentation [DOCDIR] 1364 --pdfdir=DIR pdf documentation [DOCDIR] 1365 --psdir=DIR ps documentation [DOCDIR] 1366_ACEOF 1367 1368 cat <<\_ACEOF 1369 1370System types: 1371 --build=BUILD configure for building on BUILD [guessed] 1372 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1373 --target=TARGET configure for building compilers for TARGET [HOST] 1374_ACEOF 1375fi 1376 1377if test -n "$ac_init_help"; then 1378 1379 cat <<\_ACEOF 1380 1381Optional Features: 1382 --disable-option-checking ignore unrecognized --enable/--with options 1383 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1384 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1385--enable-strict - Turn on strict compilation testing 1386 when using gcc 1387--enable-echo - Turn on strong echoing. The default 1388 is enable=no. 1389--enable-softerror - Turn on soft error, i.e. instead of 1390 issuing MSG_ERROR, MSG_WARN + exit 0 1391 are used. The default is enable=no. 1392 --enable-static[=PKGS] build static libraries [default=no] 1393 --enable-shared[=PKGS] build shared libraries [default=yes] 1394 --enable-fast-install[=PKGS] 1395 optimize for fast installation [default=yes] 1396 --disable-libtool-lock avoid locking (might break parallel builds) 1397 1398Optional Packages: 1399 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1400 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1401--with-java=JDK_TOPDIR - The path of the top-level directory of 1402 the Java SDK installation. If this option 1403 or with-java2 is not given, configure 1404 will try to locate java for you. Also, 1405 with-java2 option overwrites the 1406 with-java option to set JDK_TOPDIR. 1407--with-java2=JDK_TOPDIR - The path of the top-level directory of 1408 the Java SDK installation. If this option 1409 or with-java is not given, configure will 1410 try to locate java for you. Also, 1411 with-java2 option overwrites the 1412 with-java option to set JDK_TOPDIR. 1413--with-jvmflags=JVMFLAGS - supply java virtual machine flags, 1414 e.g. -Xms32m -Xmx256m. 1415 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1416 both] 1417 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1418 --with-sysroot=DIR Search for dependent libraries within DIR 1419 (or the compiler's sysroot if not specified). 1420 1421Some influential environment variables: 1422 TRACE_CC TRACE_CC overrides CC if it exists. 1423 TRACE_CFLAGS 1424 TRACE_CFLAGS overrides CFLAGS if it exists. 1425 CC C compiler command 1426 CFLAGS C compiler flags 1427 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1428 nonstandard directory <lib dir> 1429 LIBS libraries to pass to the linker, e.g. -l<library> 1430 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1431 you have headers in a nonstandard directory <include dir> 1432 CPP C preprocessor 1433 1434Use these variables to override the choices made by `configure' or to help 1435it to find libraries and programs with nonstandard names/locations. 1436 1437Report bugs to the package provider. 1438_ACEOF 1439ac_status=$? 1440fi 1441 1442if test "$ac_init_help" = "recursive"; then 1443 # If there are subdirs, report their specific --help. 1444 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1445 test -d "$ac_dir" || 1446 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1447 continue 1448 ac_builddir=. 1449 1450case "$ac_dir" in 1451.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1452*) 1453 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1454 # A ".." for each directory in $ac_dir_suffix. 1455 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1456 case $ac_top_builddir_sub in 1457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1459 esac ;; 1460esac 1461ac_abs_top_builddir=$ac_pwd 1462ac_abs_builddir=$ac_pwd$ac_dir_suffix 1463# for backward compatibility: 1464ac_top_builddir=$ac_top_build_prefix 1465 1466case $srcdir in 1467 .) # We are building in place. 1468 ac_srcdir=. 1469 ac_top_srcdir=$ac_top_builddir_sub 1470 ac_abs_top_srcdir=$ac_pwd ;; 1471 [\\/]* | ?:[\\/]* ) # Absolute name. 1472 ac_srcdir=$srcdir$ac_dir_suffix; 1473 ac_top_srcdir=$srcdir 1474 ac_abs_top_srcdir=$srcdir ;; 1475 *) # Relative name. 1476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1477 ac_top_srcdir=$ac_top_build_prefix$srcdir 1478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1479esac 1480ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1481 1482 cd "$ac_dir" || { ac_status=$?; continue; } 1483 # Check for guested configure. 1484 if test -f "$ac_srcdir/configure.gnu"; then 1485 echo && 1486 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1487 elif test -f "$ac_srcdir/configure"; then 1488 echo && 1489 $SHELL "$ac_srcdir/configure" --help=recursive 1490 else 1491 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1492 fi || ac_status=$? 1493 cd "$ac_pwd" || { ac_status=$?; break; } 1494 done 1495fi 1496 1497test -n "$ac_init_help" && exit $ac_status 1498if $ac_init_version; then 1499 cat <<\_ACEOF 1500configure 1501generated by GNU Autoconf 2.69 1502 1503Copyright (C) 2012 Free Software Foundation, Inc. 1504This configure script is free software; the Free Software Foundation 1505gives unlimited permission to copy, distribute and modify it. 1506_ACEOF 1507 exit 1508fi 1509 1510## ------------------------ ## 1511## Autoconf initialization. ## 1512## ------------------------ ## 1513 1514# ac_fn_c_try_compile LINENO 1515# -------------------------- 1516# Try to compile conftest.$ac_ext, and return whether this succeeded. 1517ac_fn_c_try_compile () 1518{ 1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1520 rm -f conftest.$ac_objext 1521 if { { ac_try="$ac_compile" 1522case "(($ac_try" in 1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1524 *) ac_try_echo=$ac_try;; 1525esac 1526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1527$as_echo "$ac_try_echo"; } >&5 1528 (eval "$ac_compile") 2>conftest.err 1529 ac_status=$? 1530 if test -s conftest.err; then 1531 grep -v '^ *+' conftest.err >conftest.er1 1532 cat conftest.er1 >&5 1533 mv -f conftest.er1 conftest.err 1534 fi 1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1536 test $ac_status = 0; } && { 1537 test -z "$ac_c_werror_flag" || 1538 test ! -s conftest.err 1539 } && test -s conftest.$ac_objext; then : 1540 ac_retval=0 1541else 1542 $as_echo "$as_me: failed program was:" >&5 1543sed 's/^/| /' conftest.$ac_ext >&5 1544 1545 ac_retval=1 1546fi 1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1548 as_fn_set_status $ac_retval 1549 1550} # ac_fn_c_try_compile 1551 1552# ac_fn_c_try_cpp LINENO 1553# ---------------------- 1554# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1555ac_fn_c_try_cpp () 1556{ 1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1558 if { { ac_try="$ac_cpp conftest.$ac_ext" 1559case "(($ac_try" in 1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1561 *) ac_try_echo=$ac_try;; 1562esac 1563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1564$as_echo "$ac_try_echo"; } >&5 1565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1566 ac_status=$? 1567 if test -s conftest.err; then 1568 grep -v '^ *+' conftest.err >conftest.er1 1569 cat conftest.er1 >&5 1570 mv -f conftest.er1 conftest.err 1571 fi 1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1573 test $ac_status = 0; } > conftest.i && { 1574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1575 test ! -s conftest.err 1576 }; then : 1577 ac_retval=0 1578else 1579 $as_echo "$as_me: failed program was:" >&5 1580sed 's/^/| /' conftest.$ac_ext >&5 1581 1582 ac_retval=1 1583fi 1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1585 as_fn_set_status $ac_retval 1586 1587} # ac_fn_c_try_cpp 1588 1589# ac_fn_c_try_run LINENO 1590# ---------------------- 1591# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1592# that executables *can* be run. 1593ac_fn_c_try_run () 1594{ 1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1596 if { { ac_try="$ac_link" 1597case "(($ac_try" in 1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1599 *) ac_try_echo=$ac_try;; 1600esac 1601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1602$as_echo "$ac_try_echo"; } >&5 1603 (eval "$ac_link") 2>&5 1604 ac_status=$? 1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1606 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1607 { { case "(($ac_try" in 1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1609 *) ac_try_echo=$ac_try;; 1610esac 1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1612$as_echo "$ac_try_echo"; } >&5 1613 (eval "$ac_try") 2>&5 1614 ac_status=$? 1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1616 test $ac_status = 0; }; }; then : 1617 ac_retval=0 1618else 1619 $as_echo "$as_me: program exited with status $ac_status" >&5 1620 $as_echo "$as_me: failed program was:" >&5 1621sed 's/^/| /' conftest.$ac_ext >&5 1622 1623 ac_retval=$ac_status 1624fi 1625 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1627 as_fn_set_status $ac_retval 1628 1629} # ac_fn_c_try_run 1630 1631# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1632# ------------------------------------------------------- 1633# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1634# the include files in INCLUDES and setting the cache variable VAR 1635# accordingly. 1636ac_fn_c_check_header_mongrel () 1637{ 1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639 if eval \${$3+:} false; then : 1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1641$as_echo_n "checking for $2... " >&6; } 1642if eval \${$3+:} false; then : 1643 $as_echo_n "(cached) " >&6 1644fi 1645eval ac_res=\$$3 1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1647$as_echo "$ac_res" >&6; } 1648else 1649 # Is the header compilable? 1650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1651$as_echo_n "checking $2 usability... " >&6; } 1652cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1653/* end confdefs.h. */ 1654$4 1655#include <$2> 1656_ACEOF 1657if ac_fn_c_try_compile "$LINENO"; then : 1658 ac_header_compiler=yes 1659else 1660 ac_header_compiler=no 1661fi 1662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1664$as_echo "$ac_header_compiler" >&6; } 1665 1666# Is the header present? 1667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1668$as_echo_n "checking $2 presence... " >&6; } 1669cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1670/* end confdefs.h. */ 1671#include <$2> 1672_ACEOF 1673if ac_fn_c_try_cpp "$LINENO"; then : 1674 ac_header_preproc=yes 1675else 1676 ac_header_preproc=no 1677fi 1678rm -f conftest.err conftest.i conftest.$ac_ext 1679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1680$as_echo "$ac_header_preproc" >&6; } 1681 1682# So? What about this header? 1683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1684 yes:no: ) 1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1686$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1688$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1689 ;; 1690 no:yes:* ) 1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1692$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1694$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1696$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1698$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1700$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1701 ;; 1702esac 1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1704$as_echo_n "checking for $2... " >&6; } 1705if eval \${$3+:} false; then : 1706 $as_echo_n "(cached) " >&6 1707else 1708 eval "$3=\$ac_header_compiler" 1709fi 1710eval ac_res=\$$3 1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1712$as_echo "$ac_res" >&6; } 1713fi 1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1715 1716} # ac_fn_c_check_header_mongrel 1717 1718# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1719# ------------------------------------------------------- 1720# Tests whether HEADER exists and can be compiled using the include files in 1721# INCLUDES, setting the cache variable VAR accordingly. 1722ac_fn_c_check_header_compile () 1723{ 1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1726$as_echo_n "checking for $2... " >&6; } 1727if eval \${$3+:} false; then : 1728 $as_echo_n "(cached) " >&6 1729else 1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1731/* end confdefs.h. */ 1732$4 1733#include <$2> 1734_ACEOF 1735if ac_fn_c_try_compile "$LINENO"; then : 1736 eval "$3=yes" 1737else 1738 eval "$3=no" 1739fi 1740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1741fi 1742eval ac_res=\$$3 1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1744$as_echo "$ac_res" >&6; } 1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1746 1747} # ac_fn_c_check_header_compile 1748 1749# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1750# -------------------------------------------- 1751# Tries to find the compile-time value of EXPR in a program that includes 1752# INCLUDES, setting VAR accordingly. Returns whether the value could be 1753# computed 1754ac_fn_c_compute_int () 1755{ 1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1757 if test "$cross_compiling" = yes; then 1758 # Depending upon the size, compute the lo and hi bounds. 1759cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1760/* end confdefs.h. */ 1761$4 1762int 1763main () 1764{ 1765static int test_array [1 - 2 * !(($2) >= 0)]; 1766test_array [0] = 0; 1767return test_array [0]; 1768 1769 ; 1770 return 0; 1771} 1772_ACEOF 1773if ac_fn_c_try_compile "$LINENO"; then : 1774 ac_lo=0 ac_mid=0 1775 while :; do 1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1777/* end confdefs.h. */ 1778$4 1779int 1780main () 1781{ 1782static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1783test_array [0] = 0; 1784return test_array [0]; 1785 1786 ; 1787 return 0; 1788} 1789_ACEOF 1790if ac_fn_c_try_compile "$LINENO"; then : 1791 ac_hi=$ac_mid; break 1792else 1793 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1794 if test $ac_lo -le $ac_mid; then 1795 ac_lo= ac_hi= 1796 break 1797 fi 1798 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1799fi 1800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1801 done 1802else 1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1804/* end confdefs.h. */ 1805$4 1806int 1807main () 1808{ 1809static int test_array [1 - 2 * !(($2) < 0)]; 1810test_array [0] = 0; 1811return test_array [0]; 1812 1813 ; 1814 return 0; 1815} 1816_ACEOF 1817if ac_fn_c_try_compile "$LINENO"; then : 1818 ac_hi=-1 ac_mid=-1 1819 while :; do 1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1821/* end confdefs.h. */ 1822$4 1823int 1824main () 1825{ 1826static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1827test_array [0] = 0; 1828return test_array [0]; 1829 1830 ; 1831 return 0; 1832} 1833_ACEOF 1834if ac_fn_c_try_compile "$LINENO"; then : 1835 ac_lo=$ac_mid; break 1836else 1837 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1838 if test $ac_mid -le $ac_hi; then 1839 ac_lo= ac_hi= 1840 break 1841 fi 1842 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1843fi 1844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1845 done 1846else 1847 ac_lo= ac_hi= 1848fi 1849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1850fi 1851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1852# Binary search between lo and hi bounds. 1853while test "x$ac_lo" != "x$ac_hi"; do 1854 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1856/* end confdefs.h. */ 1857$4 1858int 1859main () 1860{ 1861static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1862test_array [0] = 0; 1863return test_array [0]; 1864 1865 ; 1866 return 0; 1867} 1868_ACEOF 1869if ac_fn_c_try_compile "$LINENO"; then : 1870 ac_hi=$ac_mid 1871else 1872 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1873fi 1874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1875done 1876case $ac_lo in #(( 1877?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1878'') ac_retval=1 ;; 1879esac 1880 else 1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1882/* end confdefs.h. */ 1883$4 1884static long int longval () { return $2; } 1885static unsigned long int ulongval () { return $2; } 1886#include <stdio.h> 1887#include <stdlib.h> 1888int 1889main () 1890{ 1891 1892 FILE *f = fopen ("conftest.val", "w"); 1893 if (! f) 1894 return 1; 1895 if (($2) < 0) 1896 { 1897 long int i = longval (); 1898 if (i != ($2)) 1899 return 1; 1900 fprintf (f, "%ld", i); 1901 } 1902 else 1903 { 1904 unsigned long int i = ulongval (); 1905 if (i != ($2)) 1906 return 1; 1907 fprintf (f, "%lu", i); 1908 } 1909 /* Do not output a trailing newline, as this causes \r\n confusion 1910 on some platforms. */ 1911 return ferror (f) || fclose (f) != 0; 1912 1913 ; 1914 return 0; 1915} 1916_ACEOF 1917if ac_fn_c_try_run "$LINENO"; then : 1918 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 1919else 1920 ac_retval=1 1921fi 1922rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1923 conftest.$ac_objext conftest.beam conftest.$ac_ext 1924rm -f conftest.val 1925 1926 fi 1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1928 as_fn_set_status $ac_retval 1929 1930} # ac_fn_c_compute_int 1931 1932# ac_fn_c_try_link LINENO 1933# ----------------------- 1934# Try to link conftest.$ac_ext, and return whether this succeeded. 1935ac_fn_c_try_link () 1936{ 1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1938 rm -f conftest.$ac_objext conftest$ac_exeext 1939 if { { ac_try="$ac_link" 1940case "(($ac_try" in 1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1942 *) ac_try_echo=$ac_try;; 1943esac 1944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1945$as_echo "$ac_try_echo"; } >&5 1946 (eval "$ac_link") 2>conftest.err 1947 ac_status=$? 1948 if test -s conftest.err; then 1949 grep -v '^ *+' conftest.err >conftest.er1 1950 cat conftest.er1 >&5 1951 mv -f conftest.er1 conftest.err 1952 fi 1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1954 test $ac_status = 0; } && { 1955 test -z "$ac_c_werror_flag" || 1956 test ! -s conftest.err 1957 } && test -s conftest$ac_exeext && { 1958 test "$cross_compiling" = yes || 1959 test -x conftest$ac_exeext 1960 }; then : 1961 ac_retval=0 1962else 1963 $as_echo "$as_me: failed program was:" >&5 1964sed 's/^/| /' conftest.$ac_ext >&5 1965 1966 ac_retval=1 1967fi 1968 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1969 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1970 # interfere with the next link command; also delete a directory that is 1971 # left behind by Apple's compiler. We do this before executing the actions. 1972 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1974 as_fn_set_status $ac_retval 1975 1976} # ac_fn_c_try_link 1977 1978# ac_fn_c_check_func LINENO FUNC VAR 1979# ---------------------------------- 1980# Tests whether FUNC exists, setting the cache variable VAR accordingly 1981ac_fn_c_check_func () 1982{ 1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1985$as_echo_n "checking for $2... " >&6; } 1986if eval \${$3+:} false; then : 1987 $as_echo_n "(cached) " >&6 1988else 1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1990/* end confdefs.h. */ 1991/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1992 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1993#define $2 innocuous_$2 1994 1995/* System header to define __stub macros and hopefully few prototypes, 1996 which can conflict with char $2 (); below. 1997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1998 <limits.h> exists even on freestanding compilers. */ 1999 2000#ifdef __STDC__ 2001# include <limits.h> 2002#else 2003# include <assert.h> 2004#endif 2005 2006#undef $2 2007 2008/* Override any GCC internal prototype to avoid an error. 2009 Use char because int might match the return type of a GCC 2010 builtin and then its argument prototype would still apply. */ 2011#ifdef __cplusplus 2012extern "C" 2013#endif 2014char $2 (); 2015/* The GNU C library defines this for functions which it implements 2016 to always fail with ENOSYS. Some functions are actually named 2017 something starting with __ and the normal name is an alias. */ 2018#if defined __stub_$2 || defined __stub___$2 2019choke me 2020#endif 2021 2022int 2023main () 2024{ 2025return $2 (); 2026 ; 2027 return 0; 2028} 2029_ACEOF 2030if ac_fn_c_try_link "$LINENO"; then : 2031 eval "$3=yes" 2032else 2033 eval "$3=no" 2034fi 2035rm -f core conftest.err conftest.$ac_objext \ 2036 conftest$ac_exeext conftest.$ac_ext 2037fi 2038eval ac_res=\$$3 2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2040$as_echo "$ac_res" >&6; } 2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2042 2043} # ac_fn_c_check_func 2044cat >config.log <<_ACEOF 2045This file contains any messages produced by compilers while 2046running configure, to aid debugging if configure makes a mistake. 2047 2048It was created by $as_me, which was 2049generated by GNU Autoconf 2.69. Invocation command line was 2050 2051 $ $0 $@ 2052 2053_ACEOF 2054exec 5>>config.log 2055{ 2056cat <<_ASUNAME 2057## --------- ## 2058## Platform. ## 2059## --------- ## 2060 2061hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2062uname -m = `(uname -m) 2>/dev/null || echo unknown` 2063uname -r = `(uname -r) 2>/dev/null || echo unknown` 2064uname -s = `(uname -s) 2>/dev/null || echo unknown` 2065uname -v = `(uname -v) 2>/dev/null || echo unknown` 2066 2067/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2068/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2069 2070/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2071/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2072/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2073/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2074/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2075/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2076/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2077 2078_ASUNAME 2079 2080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2081for as_dir in $PATH 2082do 2083 IFS=$as_save_IFS 2084 test -z "$as_dir" && as_dir=. 2085 $as_echo "PATH: $as_dir" 2086 done 2087IFS=$as_save_IFS 2088 2089} >&5 2090 2091cat >&5 <<_ACEOF 2092 2093 2094## ----------- ## 2095## Core tests. ## 2096## ----------- ## 2097 2098_ACEOF 2099 2100 2101# Keep a trace of the command line. 2102# Strip out --no-create and --no-recursion so they do not pile up. 2103# Strip out --silent because we don't want to record it for future runs. 2104# Also quote any args containing shell meta-characters. 2105# Make two passes to allow for proper duplicate-argument suppression. 2106ac_configure_args= 2107ac_configure_args0= 2108ac_configure_args1= 2109ac_must_keep_next=false 2110for ac_pass in 1 2 2111do 2112 for ac_arg 2113 do 2114 case $ac_arg in 2115 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2117 | -silent | --silent | --silen | --sile | --sil) 2118 continue ;; 2119 *\'*) 2120 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2121 esac 2122 case $ac_pass in 2123 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2124 2) 2125 as_fn_append ac_configure_args1 " '$ac_arg'" 2126 if test $ac_must_keep_next = true; then 2127 ac_must_keep_next=false # Got value, back to normal. 2128 else 2129 case $ac_arg in 2130 *=* | --config-cache | -C | -disable-* | --disable-* \ 2131 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2132 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2133 | -with-* | --with-* | -without-* | --without-* | --x) 2134 case "$ac_configure_args0 " in 2135 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2136 esac 2137 ;; 2138 -* ) ac_must_keep_next=true ;; 2139 esac 2140 fi 2141 as_fn_append ac_configure_args " '$ac_arg'" 2142 ;; 2143 esac 2144 done 2145done 2146{ ac_configure_args0=; unset ac_configure_args0;} 2147{ ac_configure_args1=; unset ac_configure_args1;} 2148 2149# When interrupted or exit'd, cleanup temporary files, and complete 2150# config.log. We remove comments because anyway the quotes in there 2151# would cause problems or look ugly. 2152# WARNING: Use '\'' to represent an apostrophe within the trap. 2153# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2154trap 'exit_status=$? 2155 # Save into config.log some information that might help in debugging. 2156 { 2157 echo 2158 2159 $as_echo "## ---------------- ## 2160## Cache variables. ## 2161## ---------------- ##" 2162 echo 2163 # The following way of writing the cache mishandles newlines in values, 2164( 2165 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2166 eval ac_val=\$$ac_var 2167 case $ac_val in #( 2168 *${as_nl}*) 2169 case $ac_var in #( 2170 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2171$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2172 esac 2173 case $ac_var in #( 2174 _ | IFS | as_nl) ;; #( 2175 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2176 *) { eval $ac_var=; unset $ac_var;} ;; 2177 esac ;; 2178 esac 2179 done 2180 (set) 2>&1 | 2181 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2182 *${as_nl}ac_space=\ *) 2183 sed -n \ 2184 "s/'\''/'\''\\\\'\'''\''/g; 2185 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2186 ;; #( 2187 *) 2188 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2189 ;; 2190 esac | 2191 sort 2192) 2193 echo 2194 2195 $as_echo "## ----------------- ## 2196## Output variables. ## 2197## ----------------- ##" 2198 echo 2199 for ac_var in $ac_subst_vars 2200 do 2201 eval ac_val=\$$ac_var 2202 case $ac_val in 2203 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2204 esac 2205 $as_echo "$ac_var='\''$ac_val'\''" 2206 done | sort 2207 echo 2208 2209 if test -n "$ac_subst_files"; then 2210 $as_echo "## ------------------- ## 2211## File substitutions. ## 2212## ------------------- ##" 2213 echo 2214 for ac_var in $ac_subst_files 2215 do 2216 eval ac_val=\$$ac_var 2217 case $ac_val in 2218 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2219 esac 2220 $as_echo "$ac_var='\''$ac_val'\''" 2221 done | sort 2222 echo 2223 fi 2224 2225 if test -s confdefs.h; then 2226 $as_echo "## ----------- ## 2227## confdefs.h. ## 2228## ----------- ##" 2229 echo 2230 cat confdefs.h 2231 echo 2232 fi 2233 test "$ac_signal" != 0 && 2234 $as_echo "$as_me: caught signal $ac_signal" 2235 $as_echo "$as_me: exit $exit_status" 2236 } >&5 2237 rm -f core *.core core.conftest.* && 2238 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2239 exit $exit_status 2240' 0 2241for ac_signal in 1 2 13 15; do 2242 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2243done 2244ac_signal=0 2245 2246# confdefs.h avoids OS command line length limits that DEFS can exceed. 2247rm -f -r conftest* confdefs.h 2248 2249$as_echo "/* confdefs.h */" > confdefs.h 2250 2251# Predefined preprocessor variables. 2252 2253cat >>confdefs.h <<_ACEOF 2254#define PACKAGE_NAME "$PACKAGE_NAME" 2255_ACEOF 2256 2257cat >>confdefs.h <<_ACEOF 2258#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2259_ACEOF 2260 2261cat >>confdefs.h <<_ACEOF 2262#define PACKAGE_VERSION "$PACKAGE_VERSION" 2263_ACEOF 2264 2265cat >>confdefs.h <<_ACEOF 2266#define PACKAGE_STRING "$PACKAGE_STRING" 2267_ACEOF 2268 2269cat >>confdefs.h <<_ACEOF 2270#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2271_ACEOF 2272 2273cat >>confdefs.h <<_ACEOF 2274#define PACKAGE_URL "$PACKAGE_URL" 2275_ACEOF 2276 2277 2278# Let the site file select an alternate cache file if it wants to. 2279# Prefer an explicitly selected file to automatically selected ones. 2280ac_site_file1=NONE 2281ac_site_file2=NONE 2282if test -n "$CONFIG_SITE"; then 2283 # We do not want a PATH search for config.site. 2284 case $CONFIG_SITE in #(( 2285 -*) ac_site_file1=./$CONFIG_SITE;; 2286 */*) ac_site_file1=$CONFIG_SITE;; 2287 *) ac_site_file1=./$CONFIG_SITE;; 2288 esac 2289elif test "x$prefix" != xNONE; then 2290 ac_site_file1=$prefix/share/config.site 2291 ac_site_file2=$prefix/etc/config.site 2292else 2293 ac_site_file1=$ac_default_prefix/share/config.site 2294 ac_site_file2=$ac_default_prefix/etc/config.site 2295fi 2296for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2297do 2298 test "x$ac_site_file" = xNONE && continue 2299 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2300 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2301$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2302 sed 's/^/| /' "$ac_site_file" >&5 2303 . "$ac_site_file" \ 2304 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2306as_fn_error $? "failed to load site script $ac_site_file 2307See \`config.log' for more details" "$LINENO" 5; } 2308 fi 2309done 2310 2311 2312# Check that the precious variables saved in the cache have kept the same 2313# value. 2314ac_cache_corrupted=false 2315for ac_var in $ac_precious_vars; do 2316 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2317 eval ac_new_set=\$ac_env_${ac_var}_set 2318 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2319 eval ac_new_val=\$ac_env_${ac_var}_value 2320 case $ac_old_set,$ac_new_set in 2321 set,) 2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2323$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2324 ac_cache_corrupted=: ;; 2325 ,set) 2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2327$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2328 ac_cache_corrupted=: ;; 2329 ,);; 2330 *) 2331 if test "x$ac_old_val" != "x$ac_new_val"; then 2332 # differences in whitespace do not lead to failure. 2333 ac_old_val_w=`echo x $ac_old_val` 2334 ac_new_val_w=`echo x $ac_new_val` 2335 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2337$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2338 ac_cache_corrupted=: 2339 else 2340 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2341$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2342 eval $ac_var=\$ac_old_val 2343 fi 2344 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2345$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2346 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2347$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2348 fi;; 2349 esac 2350 # Pass precious variables to config.status. 2351 if test "$ac_new_set" = set; then 2352 case $ac_new_val in 2353 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2354 *) ac_arg=$ac_var=$ac_new_val ;; 2355 esac 2356 case " $ac_configure_args " in 2357 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2358 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2359 esac 2360 fi 2361done 2362if $ac_cache_corrupted; then 2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2366$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2367 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2368fi 2369## -------------------- ## 2370## Main body of script. ## 2371## -------------------- ## 2372 2373ac_ext=c 2374ac_cpp='$CPP $CPPFLAGS' 2375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2377ac_compiler_gnu=$ac_cv_c_compiler_gnu 2378 2379 2380 2381 2382if test -f $CONFIG_AUX_DIR/install-sh ; then ac_aux_dir=$CONFIG_AUX_DIR 2383else 2384ac_aux_dir= 2385# We force the test to use the absolute path to ensure that the install 2386# program can be used if we cd to a different directory before using 2387# install. 2388for ac_dir in . "$srcdir"/.; do 2389 if test -f $ac_dir/install-sh; then 2390 ac_aux_dir=$ac_dir 2391 abs_ac_aux_dir=`(cd $ac_aux_dir && pwd)` 2392 ac_install_sh="$abs_ac_aux_dir/install-sh -c" 2393 break 2394 elif test -f $ac_dir/install.sh; then 2395 ac_aux_dir=$ac_dir 2396 abs_ac_aux_dir=`(cd $ac_aux_dir && pwd)` 2397 ac_install_sh="$abs_ac_aux_dir/install.sh -c" 2398 break 2399 fi 2400done 2401fi 2402if test -z "$ac_aux_dir"; then 2403 as_fn_error $? "can not find install-sh or install.sh in . \"$srcdir\"/." "$LINENO" 5 2404fi 2405ac_config_guess=$ac_aux_dir/config.guess 2406ac_config_sub=$ac_aux_dir/config.sub 2407ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 2408 2409ac_config_headers="$ac_config_headers trace_impl.h" 2410 2411 2412# Check whether --enable-strict was given. 2413if test "${enable_strict+set}" = set; then : 2414 enableval=$enable_strict; COPTIONS="${COPTIONS} -Wall -O -Wstrict-prototypes -Wmissing-prototypes -DGCC_WALL" 2415fi 2416 2417 2418# Check whether --enable-echo was given. 2419if test "${enable_echo+set}" = set; then : 2420 enableval=$enable_echo; set -x 2421fi 2422 2423 2424# Check whether --enable-softerror was given. 2425if test "${enable_softerror+set}" = set; then : 2426 enableval=$enable_softerror; 2427else 2428 enable_softerror=${slog2_enable_softerror:-no} 2429fi 2430 2431 2432# Find the home directory if not specified 2433if test "X$srcdir" != "X." -a -s $srcdir/src/Makefile.in ; then 2434 top_srcdir_abs=$srcdir 2435else 2436 2437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for current directory name" >&5 2438$as_echo_n "checking for current directory name... " >&6; } 2439top_srcdir_abs=$PWD 2440if test "${top_srcdir_abs}" != "" -a -d "${top_srcdir_abs}" ; then 2441 if test -r ${top_srcdir_abs}/.foo$$ ; then 2442 rm -f ${top_srcdir_abs}/.foo$$ 2443 rm -f .foo$$ 2444 fi 2445 if test -r ${top_srcdir_abs}/.foo$$ -o -r .foo$$ ; then 2446 top_srcdir_abs= 2447 else 2448 echo "test" > ${top_srcdir_abs}/.foo$$ 2449 if test ! -r .foo$$ ; then 2450 rm -f ${top_srcdir_abs}/.foo$$ 2451 top_srcdir_abs= 2452 else 2453 rm -f ${top_srcdir_abs}/.foo$$ 2454 fi 2455 fi 2456fi 2457if test "${top_srcdir_abs}" = "" ; then 2458 top_srcdir_abs=`pwd | sed -e 's%/tmp_mnt/%/%g'` 2459fi 2460if test ! -r ${top_srcdir_abs}/src/Makefile.in ; then 2461 top_srcdir_abs=`pwd` 2462 if test ! -r ${top_srcdir_abs}/src/Makefile.in ; then 2463 print_error "Cannot determine the root directory!" 2464 exit 1 2465 fi 2466 top_srcdir_abs=`pwd | sed -e 's%/tmp_mnt/%/%g'` 2467 if test ! -d ${top_srcdir_abs} ; then 2468 print_error "Warning: your default path uses the automounter; this may" 2469 print_error "cause some problems if you use other NFS-connected systems." 2470 top_srcdir_abs=`pwd` 2471 fi 2472fi 2473if test -z "${top_srcdir_abs}" ; then 2474 top_srcdir_abs=`pwd | sed -e 's%/tmp_mnt/%/%g'` 2475 if test ! -d ${top_srcdir_abs} ; then 2476 print_error "Warning: your default path uses the automounter; this may" 2477 print_error "cause some problems if you use other NFS-connected systems." 2478 top_srcdir_abs=`pwd` 2479 fi 2480fi 2481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${top_srcdir_abs}" >&5 2482$as_echo "${top_srcdir_abs}" >&6; } 2483 2484fi 2485 2486if test -z "$top_srcdir_abs" ; then 2487 top_srcdir_abs=`pwd` 2488fi 2489 2490if test ! -d "$top_srcdir_abs" ; then 2491 2492if test "$enable_softerror" = "yes" ; then 2493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $top_srcdir_abs is not a valid directory - cannot continue " >&5 2494$as_echo "$as_me: WARNING: *** $top_srcdir_abs is not a valid directory - cannot continue " >&2;} 2495 exit 0 2496else 2497 as_fn_error $? " *** $top_srcdir_abs is not a valid directory - cannot continue " "$LINENO" 5 2498fi 2499 2500fi 2501 2502 2503 2504# Determine this package's name based on its directory name 2505 2506tmpname="`echo $top_srcdir_abs | sed -e 's%\(.*\)/\([^/]*\)%\2%'`" 2507pkgname="`echo $tmpname | sed -e 'y%abcdefghijklmnopqrstuvwxyz/%ABCDEFGHIJKLMNOPQRSTUVWXYZ_%'`" 2508 2509if test "x$pkgname" = "x" ; then 2510 pkgname="TRACE-IMPL" 2511fi 2512 2513echo "Configuring $pkgname implementation with $ac_configure_args" 2514 2515# Cannot use JAVA_HOME here in this configure.ac. 2516# Because JAVA_HOME is used in Blackdown's .java_wrapper in jdk117_v3 2517# Using JAVA_HOME here would mistakenly set some variable in .java_wrapper 2518# when .java_wrapper is invoked. i.e. causes mysterious error in tests. 2519 2520# Check whether --with-java was given. 2521if test "${with_java+set}" = set; then : 2522 withval=$with_java; JDK_TOPDIR=$withval 2523else 2524 JDK_TOPDIR="" 2525fi 2526 2527 2528 2529# Check whether --with-java2 was given. 2530if test "${with_java2+set}" = set; then : 2531 withval=$with_java2; JDK_TOPDIR=$withval 2532fi 2533 2534 2535 2536# Check whether --with-jvmflags was given. 2537if test "${with_jvmflags+set}" = set; then : 2538 withval=$with_jvmflags; JVMFLAGS="$withval" 2539fi 2540 2541 2542MAKE=${MAKE:-"make"} 2543 2544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gnumake" >&5 2545$as_echo_n "checking gnumake... " >&6; } 2546rm -f conftest 2547cat > conftest <<. 2548SHELL=/bin/sh 2549ALL: 2550 @(dir=`pwd` ; cd .. ; \$(MAKE) -f \$\$dir/conftest SUB) 2551SUB: 2552 @echo "success" 2553. 2554str=`$MAKE -f conftest 2>&1` 2555if test "$str" != "success" ; then 2556 str=`$MAKE --no-print-directory -f conftest 2>&1` 2557 if test "$str" = "success" ; then 2558 MAKE="$MAKE --no-print-directory" 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes using --no-print-directory" >&5 2560$as_echo "yes using --no-print-directory" >&6; } 2561 else 2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2563$as_echo "no" >&6; } 2564 fi 2565else 2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2567$as_echo "no" >&6; } 2568fi 2569rm -f conftest 2570str="" 2571 2572 2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking BSD 4.4 make" >&5 2574$as_echo_n "checking BSD 4.4 make... " >&6; } 2575rm -f conftest 2576cat > conftest <<. 2577ALL: 2578 @echo "success" 2579. 2580cat > conftest1 <<. 2581include conftest 2582. 2583str=`$MAKE -f conftest1 2>&1` 2584rm -f conftest conftest1 2585if test "$str" != "success" ; then 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Found BSD 4.4 so-called make" >&5 2587$as_echo "Found BSD 4.4 so-called make" >&6; } 2588 echo "The BSD 4.4 make is INCOMPATIBLE with all other makes." 2589 echo "Using this so-called make may cause problems when building programs." 2590 echo "You should consider using gnumake instead." 2591 2592else 2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - whew" >&5 2594$as_echo "no - whew" >&6; } 2595fi 2596str="" 2597 2598 2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OSF V3 make" >&5 2600$as_echo_n "checking OSF V3 make... " >&6; } 2601rm -f conftest 2602cat > conftest <<. 2603SHELL=/bin/sh 2604ALL: 2605 @# This is a valid comment! 2606 @echo "success" 2607. 2608str=`$MAKE -f conftest 2>&1` 2609rm -f conftest 2610if test "$str" != "success" ; then 2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Found OSF V3 make" >&5 2612$as_echo "Found OSF V3 make" >&6; } 2613 echo "The OSF V3 make does not allow comments in target code." 2614 echo "Using this make may cause problems when building programs." 2615 echo "You should consider using gnumake instead." 2616 2617else 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2619$as_echo "no" >&6; } 2620fi 2621str="" 2622 2623 2624 2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for virtual path format" >&5 2626$as_echo_n "checking for virtual path format... " >&6; } 2627rm -rf conftest* 2628mkdir conftestdir 2629cat >conftestdir/a.c <<EOF 2630A sample file 2631EOF 2632cat > conftest <<EOF 2633all: a.o 2634VPATH=.:conftestdir 2635.c.o: 2636 @echo \$< 2637EOF 2638ac_out=`$MAKE -f conftest 2>&1 | grep 'conftestdir/a.c'` 2639if test -n "$ac_out" ; then 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: VPATH" >&5 2641$as_echo "VPATH" >&6; } 2642 VPATH='VPATH=.:$(srcdir)' 2643else 2644 rm -f conftest 2645 cat > conftest <<EOF 2646all: a.o 2647.PATH: . conftestdir 2648.c.o: 2649 @echo \$< 2650EOF 2651 ac_out=`$MAKE -f conftest 2>&1 | grep 'conftestdir/a.c'` 2652 if test -n "$ac_out" ; then 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: .PATH" >&5 2654$as_echo ".PATH" >&6; } 2655 VPATH='.PATH: . $(srcdir)' 2656 else 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither VPATH nor .PATH works" >&5 2658$as_echo "neither VPATH nor .PATH works" >&6; } 2659 fi 2660fi 2661rm -rf conftest* 2662 2663if test ! -s src/rlog.h -a -z "$VPATH" ; then 2664 as_fn_error $? "No virtual MAKE path command found. 2665 You may need to set your make command 2666 The GNU make (sometimes available as gnumake) can be used." "$LINENO" 5 2667fi 2668VPATH_EXTRA="" 2669case $VPATH in 2670 VPATH=*) 2671 VPATH_EXTRA=":\$(TRACE_SRCDIR)" 2672 ;; 2673 .PATH:*) 2674 VPATH_EXTRA=" \$(TRACE_SRCDIR)" 2675 ;; 2676esac 2677 2678 2679 2680# Check if --without-java is specified 2681if test "$JDK_TOPDIR" = "no" ; then 2682 2683if test "$enable_softerror" = "yes" ; then 2684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-java is specified, exit! " >&5 2685$as_echo "$as_me: WARNING: --without-java is specified, exit! " >&2;} 2686 exit 0 2687else 2688 as_fn_error $? " --without-java is specified, exit! " "$LINENO" 5 2689fi 2690 2691fi 2692 2693 2694 2695if test -n "$TRACE_CC" ; then 2696 TRACE_ORIG_CC="$CC" 2697 CC="$TRACE_CC" 2698fi 2699if test -n "$TRACE_CFLAGS" ; then 2700 TRACE_ORIG_CFLAGS="$CFLAGS" 2701 CFLAGS="$TRACE_CFLAGS" 2702fi 2703ac_ext=c 2704ac_cpp='$CPP $CPPFLAGS' 2705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2707ac_compiler_gnu=$ac_cv_c_compiler_gnu 2708if test -n "$ac_tool_prefix"; then 2709 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2710set dummy ${ac_tool_prefix}gcc; ac_word=$2 2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2712$as_echo_n "checking for $ac_word... " >&6; } 2713if ${ac_cv_prog_CC+:} false; then : 2714 $as_echo_n "(cached) " >&6 2715else 2716 if test -n "$CC"; then 2717 ac_cv_prog_CC="$CC" # Let the user override the test. 2718else 2719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2720for as_dir in $PATH 2721do 2722 IFS=$as_save_IFS 2723 test -z "$as_dir" && as_dir=. 2724 for ac_exec_ext in '' $ac_executable_extensions; do 2725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2726 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2728 break 2 2729 fi 2730done 2731 done 2732IFS=$as_save_IFS 2733 2734fi 2735fi 2736CC=$ac_cv_prog_CC 2737if test -n "$CC"; then 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2739$as_echo "$CC" >&6; } 2740else 2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2742$as_echo "no" >&6; } 2743fi 2744 2745 2746fi 2747if test -z "$ac_cv_prog_CC"; then 2748 ac_ct_CC=$CC 2749 # Extract the first word of "gcc", so it can be a program name with args. 2750set dummy gcc; ac_word=$2 2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2752$as_echo_n "checking for $ac_word... " >&6; } 2753if ${ac_cv_prog_ac_ct_CC+:} false; then : 2754 $as_echo_n "(cached) " >&6 2755else 2756 if test -n "$ac_ct_CC"; then 2757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2758else 2759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2760for as_dir in $PATH 2761do 2762 IFS=$as_save_IFS 2763 test -z "$as_dir" && as_dir=. 2764 for ac_exec_ext in '' $ac_executable_extensions; do 2765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2766 ac_cv_prog_ac_ct_CC="gcc" 2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2768 break 2 2769 fi 2770done 2771 done 2772IFS=$as_save_IFS 2773 2774fi 2775fi 2776ac_ct_CC=$ac_cv_prog_ac_ct_CC 2777if test -n "$ac_ct_CC"; then 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2779$as_echo "$ac_ct_CC" >&6; } 2780else 2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2782$as_echo "no" >&6; } 2783fi 2784 2785 if test "x$ac_ct_CC" = x; then 2786 CC="" 2787 else 2788 case $cross_compiling:$ac_tool_warned in 2789yes:) 2790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2792ac_tool_warned=yes ;; 2793esac 2794 CC=$ac_ct_CC 2795 fi 2796else 2797 CC="$ac_cv_prog_CC" 2798fi 2799 2800if test -z "$CC"; then 2801 if test -n "$ac_tool_prefix"; then 2802 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2803set dummy ${ac_tool_prefix}cc; ac_word=$2 2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2805$as_echo_n "checking for $ac_word... " >&6; } 2806if ${ac_cv_prog_CC+:} false; then : 2807 $as_echo_n "(cached) " >&6 2808else 2809 if test -n "$CC"; then 2810 ac_cv_prog_CC="$CC" # Let the user override the test. 2811else 2812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2813for as_dir in $PATH 2814do 2815 IFS=$as_save_IFS 2816 test -z "$as_dir" && as_dir=. 2817 for ac_exec_ext in '' $ac_executable_extensions; do 2818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2819 ac_cv_prog_CC="${ac_tool_prefix}cc" 2820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2821 break 2 2822 fi 2823done 2824 done 2825IFS=$as_save_IFS 2826 2827fi 2828fi 2829CC=$ac_cv_prog_CC 2830if test -n "$CC"; then 2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2832$as_echo "$CC" >&6; } 2833else 2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2835$as_echo "no" >&6; } 2836fi 2837 2838 2839 fi 2840fi 2841if test -z "$CC"; then 2842 # Extract the first word of "cc", so it can be a program name with args. 2843set dummy cc; ac_word=$2 2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2845$as_echo_n "checking for $ac_word... " >&6; } 2846if ${ac_cv_prog_CC+:} false; then : 2847 $as_echo_n "(cached) " >&6 2848else 2849 if test -n "$CC"; then 2850 ac_cv_prog_CC="$CC" # Let the user override the test. 2851else 2852 ac_prog_rejected=no 2853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2854for as_dir in $PATH 2855do 2856 IFS=$as_save_IFS 2857 test -z "$as_dir" && as_dir=. 2858 for ac_exec_ext in '' $ac_executable_extensions; do 2859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2860 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2861 ac_prog_rejected=yes 2862 continue 2863 fi 2864 ac_cv_prog_CC="cc" 2865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2866 break 2 2867 fi 2868done 2869 done 2870IFS=$as_save_IFS 2871 2872if test $ac_prog_rejected = yes; then 2873 # We found a bogon in the path, so make sure we never use it. 2874 set dummy $ac_cv_prog_CC 2875 shift 2876 if test $# != 0; then 2877 # We chose a different compiler from the bogus one. 2878 # However, it has the same basename, so the bogon will be chosen 2879 # first if we set CC to just the basename; use the full file name. 2880 shift 2881 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2882 fi 2883fi 2884fi 2885fi 2886CC=$ac_cv_prog_CC 2887if test -n "$CC"; then 2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2889$as_echo "$CC" >&6; } 2890else 2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2892$as_echo "no" >&6; } 2893fi 2894 2895 2896fi 2897if test -z "$CC"; then 2898 if test -n "$ac_tool_prefix"; then 2899 for ac_prog in cl.exe 2900 do 2901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2902set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2904$as_echo_n "checking for $ac_word... " >&6; } 2905if ${ac_cv_prog_CC+:} false; then : 2906 $as_echo_n "(cached) " >&6 2907else 2908 if test -n "$CC"; then 2909 ac_cv_prog_CC="$CC" # Let the user override the test. 2910else 2911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2912for as_dir in $PATH 2913do 2914 IFS=$as_save_IFS 2915 test -z "$as_dir" && as_dir=. 2916 for ac_exec_ext in '' $ac_executable_extensions; do 2917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2918 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2920 break 2 2921 fi 2922done 2923 done 2924IFS=$as_save_IFS 2925 2926fi 2927fi 2928CC=$ac_cv_prog_CC 2929if test -n "$CC"; then 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2931$as_echo "$CC" >&6; } 2932else 2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2934$as_echo "no" >&6; } 2935fi 2936 2937 2938 test -n "$CC" && break 2939 done 2940fi 2941if test -z "$CC"; then 2942 ac_ct_CC=$CC 2943 for ac_prog in cl.exe 2944do 2945 # Extract the first word of "$ac_prog", so it can be a program name with args. 2946set dummy $ac_prog; ac_word=$2 2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2948$as_echo_n "checking for $ac_word... " >&6; } 2949if ${ac_cv_prog_ac_ct_CC+:} false; then : 2950 $as_echo_n "(cached) " >&6 2951else 2952 if test -n "$ac_ct_CC"; then 2953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2954else 2955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2956for as_dir in $PATH 2957do 2958 IFS=$as_save_IFS 2959 test -z "$as_dir" && as_dir=. 2960 for ac_exec_ext in '' $ac_executable_extensions; do 2961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2962 ac_cv_prog_ac_ct_CC="$ac_prog" 2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2964 break 2 2965 fi 2966done 2967 done 2968IFS=$as_save_IFS 2969 2970fi 2971fi 2972ac_ct_CC=$ac_cv_prog_ac_ct_CC 2973if test -n "$ac_ct_CC"; then 2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2975$as_echo "$ac_ct_CC" >&6; } 2976else 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2978$as_echo "no" >&6; } 2979fi 2980 2981 2982 test -n "$ac_ct_CC" && break 2983done 2984 2985 if test "x$ac_ct_CC" = x; then 2986 CC="" 2987 else 2988 case $cross_compiling:$ac_tool_warned in 2989yes:) 2990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2992ac_tool_warned=yes ;; 2993esac 2994 CC=$ac_ct_CC 2995 fi 2996fi 2997 2998fi 2999 3000 3001test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3003as_fn_error $? "no acceptable C compiler found in \$PATH 3004See \`config.log' for more details" "$LINENO" 5; } 3005 3006# Provide some information about the compiler. 3007$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3008set X $ac_compile 3009ac_compiler=$2 3010for ac_option in --version -v -V -qversion; do 3011 { { ac_try="$ac_compiler $ac_option >&5" 3012case "(($ac_try" in 3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3014 *) ac_try_echo=$ac_try;; 3015esac 3016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3017$as_echo "$ac_try_echo"; } >&5 3018 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3019 ac_status=$? 3020 if test -s conftest.err; then 3021 sed '10a\ 3022... rest of stderr output deleted ... 3023 10q' conftest.err >conftest.er1 3024 cat conftest.er1 >&5 3025 fi 3026 rm -f conftest.er1 conftest.err 3027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3028 test $ac_status = 0; } 3029done 3030 3031cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3032/* end confdefs.h. */ 3033 3034int 3035main () 3036{ 3037 3038 ; 3039 return 0; 3040} 3041_ACEOF 3042ac_clean_files_save=$ac_clean_files 3043ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3044# Try to create an executable without -o first, disregard a.out. 3045# It will help us diagnose broken compilers, and finding out an intuition 3046# of exeext. 3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3048$as_echo_n "checking whether the C compiler works... " >&6; } 3049ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3050 3051# The possible output files: 3052ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3053 3054ac_rmfiles= 3055for ac_file in $ac_files 3056do 3057 case $ac_file in 3058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3059 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3060 esac 3061done 3062rm -f $ac_rmfiles 3063 3064if { { ac_try="$ac_link_default" 3065case "(($ac_try" in 3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3067 *) ac_try_echo=$ac_try;; 3068esac 3069eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3070$as_echo "$ac_try_echo"; } >&5 3071 (eval "$ac_link_default") 2>&5 3072 ac_status=$? 3073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3074 test $ac_status = 0; }; then : 3075 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3076# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3077# in a Makefile. We should not override ac_cv_exeext if it was cached, 3078# so that the user can short-circuit this test for compilers unknown to 3079# Autoconf. 3080for ac_file in $ac_files '' 3081do 3082 test -f "$ac_file" || continue 3083 case $ac_file in 3084 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3085 ;; 3086 [ab].out ) 3087 # We found the default executable, but exeext='' is most 3088 # certainly right. 3089 break;; 3090 *.* ) 3091 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3092 then :; else 3093 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3094 fi 3095 # We set ac_cv_exeext here because the later test for it is not 3096 # safe: cross compilers may not add the suffix if given an `-o' 3097 # argument, so we may need to know it at that point already. 3098 # Even if this section looks crufty: it has the advantage of 3099 # actually working. 3100 break;; 3101 * ) 3102 break;; 3103 esac 3104done 3105test "$ac_cv_exeext" = no && ac_cv_exeext= 3106 3107else 3108 ac_file='' 3109fi 3110if test -z "$ac_file"; then : 3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3112$as_echo "no" >&6; } 3113$as_echo "$as_me: failed program was:" >&5 3114sed 's/^/| /' conftest.$ac_ext >&5 3115 3116{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3117$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3118as_fn_error 77 "C compiler cannot create executables 3119See \`config.log' for more details" "$LINENO" 5; } 3120else 3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3122$as_echo "yes" >&6; } 3123fi 3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3125$as_echo_n "checking for C compiler default output file name... " >&6; } 3126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3127$as_echo "$ac_file" >&6; } 3128ac_exeext=$ac_cv_exeext 3129 3130rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3131ac_clean_files=$ac_clean_files_save 3132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3133$as_echo_n "checking for suffix of executables... " >&6; } 3134if { { ac_try="$ac_link" 3135case "(($ac_try" in 3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3137 *) ac_try_echo=$ac_try;; 3138esac 3139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3140$as_echo "$ac_try_echo"; } >&5 3141 (eval "$ac_link") 2>&5 3142 ac_status=$? 3143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3144 test $ac_status = 0; }; then : 3145 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3146# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3147# work properly (i.e., refer to `conftest.exe'), while it won't with 3148# `rm'. 3149for ac_file in conftest.exe conftest conftest.*; do 3150 test -f "$ac_file" || continue 3151 case $ac_file in 3152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3153 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3154 break;; 3155 * ) break;; 3156 esac 3157done 3158else 3159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3161as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3162See \`config.log' for more details" "$LINENO" 5; } 3163fi 3164rm -f conftest conftest$ac_cv_exeext 3165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3166$as_echo "$ac_cv_exeext" >&6; } 3167 3168rm -f conftest.$ac_ext 3169EXEEXT=$ac_cv_exeext 3170ac_exeext=$EXEEXT 3171cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3172/* end confdefs.h. */ 3173#include <stdio.h> 3174int 3175main () 3176{ 3177FILE *f = fopen ("conftest.out", "w"); 3178 return ferror (f) || fclose (f) != 0; 3179 3180 ; 3181 return 0; 3182} 3183_ACEOF 3184ac_clean_files="$ac_clean_files conftest.out" 3185# Check that the compiler produces executables we can run. If not, either 3186# the compiler is broken, or we cross compile. 3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3188$as_echo_n "checking whether we are cross compiling... " >&6; } 3189if test "$cross_compiling" != yes; then 3190 { { ac_try="$ac_link" 3191case "(($ac_try" in 3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3193 *) ac_try_echo=$ac_try;; 3194esac 3195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3196$as_echo "$ac_try_echo"; } >&5 3197 (eval "$ac_link") 2>&5 3198 ac_status=$? 3199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3200 test $ac_status = 0; } 3201 if { ac_try='./conftest$ac_cv_exeext' 3202 { { case "(($ac_try" in 3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3204 *) ac_try_echo=$ac_try;; 3205esac 3206eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3207$as_echo "$ac_try_echo"; } >&5 3208 (eval "$ac_try") 2>&5 3209 ac_status=$? 3210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3211 test $ac_status = 0; }; }; then 3212 cross_compiling=no 3213 else 3214 if test "$cross_compiling" = maybe; then 3215 cross_compiling=yes 3216 else 3217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3219as_fn_error $? "cannot run C compiled programs. 3220If you meant to cross compile, use \`--host'. 3221See \`config.log' for more details" "$LINENO" 5; } 3222 fi 3223 fi 3224fi 3225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3226$as_echo "$cross_compiling" >&6; } 3227 3228rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3229ac_clean_files=$ac_clean_files_save 3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3231$as_echo_n "checking for suffix of object files... " >&6; } 3232if ${ac_cv_objext+:} false; then : 3233 $as_echo_n "(cached) " >&6 3234else 3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3236/* end confdefs.h. */ 3237 3238int 3239main () 3240{ 3241 3242 ; 3243 return 0; 3244} 3245_ACEOF 3246rm -f conftest.o conftest.obj 3247if { { ac_try="$ac_compile" 3248case "(($ac_try" in 3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3250 *) ac_try_echo=$ac_try;; 3251esac 3252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3253$as_echo "$ac_try_echo"; } >&5 3254 (eval "$ac_compile") 2>&5 3255 ac_status=$? 3256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3257 test $ac_status = 0; }; then : 3258 for ac_file in conftest.o conftest.obj conftest.*; do 3259 test -f "$ac_file" || continue; 3260 case $ac_file in 3261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3262 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3263 break;; 3264 esac 3265done 3266else 3267 $as_echo "$as_me: failed program was:" >&5 3268sed 's/^/| /' conftest.$ac_ext >&5 3269 3270{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3272as_fn_error $? "cannot compute suffix of object files: cannot compile 3273See \`config.log' for more details" "$LINENO" 5; } 3274fi 3275rm -f conftest.$ac_cv_objext conftest.$ac_ext 3276fi 3277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3278$as_echo "$ac_cv_objext" >&6; } 3279OBJEXT=$ac_cv_objext 3280ac_objext=$OBJEXT 3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3282$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3283if ${ac_cv_c_compiler_gnu+:} false; then : 3284 $as_echo_n "(cached) " >&6 3285else 3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3287/* end confdefs.h. */ 3288 3289int 3290main () 3291{ 3292#ifndef __GNUC__ 3293 choke me 3294#endif 3295 3296 ; 3297 return 0; 3298} 3299_ACEOF 3300if ac_fn_c_try_compile "$LINENO"; then : 3301 ac_compiler_gnu=yes 3302else 3303 ac_compiler_gnu=no 3304fi 3305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3306ac_cv_c_compiler_gnu=$ac_compiler_gnu 3307 3308fi 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3310$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3311if test $ac_compiler_gnu = yes; then 3312 GCC=yes 3313else 3314 GCC= 3315fi 3316ac_test_CFLAGS=${CFLAGS+set} 3317ac_save_CFLAGS=$CFLAGS 3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3319$as_echo_n "checking whether $CC accepts -g... " >&6; } 3320if ${ac_cv_prog_cc_g+:} false; then : 3321 $as_echo_n "(cached) " >&6 3322else 3323 ac_save_c_werror_flag=$ac_c_werror_flag 3324 ac_c_werror_flag=yes 3325 ac_cv_prog_cc_g=no 3326 CFLAGS="-g" 3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3328/* end confdefs.h. */ 3329 3330int 3331main () 3332{ 3333 3334 ; 3335 return 0; 3336} 3337_ACEOF 3338if ac_fn_c_try_compile "$LINENO"; then : 3339 ac_cv_prog_cc_g=yes 3340else 3341 CFLAGS="" 3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3343/* end confdefs.h. */ 3344 3345int 3346main () 3347{ 3348 3349 ; 3350 return 0; 3351} 3352_ACEOF 3353if ac_fn_c_try_compile "$LINENO"; then : 3354 3355else 3356 ac_c_werror_flag=$ac_save_c_werror_flag 3357 CFLAGS="-g" 3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3359/* end confdefs.h. */ 3360 3361int 3362main () 3363{ 3364 3365 ; 3366 return 0; 3367} 3368_ACEOF 3369if ac_fn_c_try_compile "$LINENO"; then : 3370 ac_cv_prog_cc_g=yes 3371fi 3372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3373fi 3374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3375fi 3376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3377 ac_c_werror_flag=$ac_save_c_werror_flag 3378fi 3379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3380$as_echo "$ac_cv_prog_cc_g" >&6; } 3381if test "$ac_test_CFLAGS" = set; then 3382 CFLAGS=$ac_save_CFLAGS 3383elif test $ac_cv_prog_cc_g = yes; then 3384 if test "$GCC" = yes; then 3385 CFLAGS="-g -O2" 3386 else 3387 CFLAGS="-g" 3388 fi 3389else 3390 if test "$GCC" = yes; then 3391 CFLAGS="-O2" 3392 else 3393 CFLAGS= 3394 fi 3395fi 3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3397$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3398if ${ac_cv_prog_cc_c89+:} false; then : 3399 $as_echo_n "(cached) " >&6 3400else 3401 ac_cv_prog_cc_c89=no 3402ac_save_CC=$CC 3403cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3404/* end confdefs.h. */ 3405#include <stdarg.h> 3406#include <stdio.h> 3407struct stat; 3408/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3409struct buf { int x; }; 3410FILE * (*rcsopen) (struct buf *, struct stat *, int); 3411static char *e (p, i) 3412 char **p; 3413 int i; 3414{ 3415 return p[i]; 3416} 3417static char *f (char * (*g) (char **, int), char **p, ...) 3418{ 3419 char *s; 3420 va_list v; 3421 va_start (v,p); 3422 s = g (p, va_arg (v,int)); 3423 va_end (v); 3424 return s; 3425} 3426 3427/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3428 function prototypes and stuff, but not '\xHH' hex character constants. 3429 These don't provoke an error unfortunately, instead are silently treated 3430 as 'x'. The following induces an error, until -std is added to get 3431 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3432 array size at least. It's necessary to write '\x00'==0 to get something 3433 that's true only with -std. */ 3434int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3435 3436/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3437 inside strings and character constants. */ 3438#define FOO(x) 'x' 3439int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3440 3441int test (int i, double x); 3442struct s1 {int (*f) (int a);}; 3443struct s2 {int (*f) (double a);}; 3444int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3445int argc; 3446char **argv; 3447int 3448main () 3449{ 3450return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3451 ; 3452 return 0; 3453} 3454_ACEOF 3455for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3456 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3457do 3458 CC="$ac_save_CC $ac_arg" 3459 if ac_fn_c_try_compile "$LINENO"; then : 3460 ac_cv_prog_cc_c89=$ac_arg 3461fi 3462rm -f core conftest.err conftest.$ac_objext 3463 test "x$ac_cv_prog_cc_c89" != "xno" && break 3464done 3465rm -f conftest.$ac_ext 3466CC=$ac_save_CC 3467 3468fi 3469# AC_CACHE_VAL 3470case "x$ac_cv_prog_cc_c89" in 3471 x) 3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3473$as_echo "none needed" >&6; } ;; 3474 xno) 3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3476$as_echo "unsupported" >&6; } ;; 3477 *) 3478 CC="$CC $ac_cv_prog_cc_c89" 3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3480$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3481esac 3482if test "x$ac_cv_prog_cc_c89" != xno; then : 3483 3484fi 3485 3486ac_ext=c 3487ac_cpp='$CPP $CPPFLAGS' 3488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3490ac_compiler_gnu=$ac_cv_c_compiler_gnu 3491 3492 3493ac_ext=c 3494ac_cpp='$CPP $CPPFLAGS' 3495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3497ac_compiler_gnu=$ac_cv_c_compiler_gnu 3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3499$as_echo_n "checking how to run the C preprocessor... " >&6; } 3500# On Suns, sometimes $CPP names a directory. 3501if test -n "$CPP" && test -d "$CPP"; then 3502 CPP= 3503fi 3504if test -z "$CPP"; then 3505 if ${ac_cv_prog_CPP+:} false; then : 3506 $as_echo_n "(cached) " >&6 3507else 3508 # Double quotes because CPP needs to be expanded 3509 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3510 do 3511 ac_preproc_ok=false 3512for ac_c_preproc_warn_flag in '' yes 3513do 3514 # Use a header file that comes with gcc, so configuring glibc 3515 # with a fresh cross-compiler works. 3516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3517 # <limits.h> exists even on freestanding compilers. 3518 # On the NeXT, cc -E runs the code through the compiler's parser, 3519 # not just through cpp. "Syntax error" is here to catch this case. 3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3521/* end confdefs.h. */ 3522#ifdef __STDC__ 3523# include <limits.h> 3524#else 3525# include <assert.h> 3526#endif 3527 Syntax error 3528_ACEOF 3529if ac_fn_c_try_cpp "$LINENO"; then : 3530 3531else 3532 # Broken: fails on valid input. 3533continue 3534fi 3535rm -f conftest.err conftest.i conftest.$ac_ext 3536 3537 # OK, works on sane cases. Now check whether nonexistent headers 3538 # can be detected and how. 3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3540/* end confdefs.h. */ 3541#include <ac_nonexistent.h> 3542_ACEOF 3543if ac_fn_c_try_cpp "$LINENO"; then : 3544 # Broken: success on invalid input. 3545continue 3546else 3547 # Passes both tests. 3548ac_preproc_ok=: 3549break 3550fi 3551rm -f conftest.err conftest.i conftest.$ac_ext 3552 3553done 3554# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3555rm -f conftest.i conftest.err conftest.$ac_ext 3556if $ac_preproc_ok; then : 3557 break 3558fi 3559 3560 done 3561 ac_cv_prog_CPP=$CPP 3562 3563fi 3564 CPP=$ac_cv_prog_CPP 3565else 3566 ac_cv_prog_CPP=$CPP 3567fi 3568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3569$as_echo "$CPP" >&6; } 3570ac_preproc_ok=false 3571for ac_c_preproc_warn_flag in '' yes 3572do 3573 # Use a header file that comes with gcc, so configuring glibc 3574 # with a fresh cross-compiler works. 3575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3576 # <limits.h> exists even on freestanding compilers. 3577 # On the NeXT, cc -E runs the code through the compiler's parser, 3578 # not just through cpp. "Syntax error" is here to catch this case. 3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3580/* end confdefs.h. */ 3581#ifdef __STDC__ 3582# include <limits.h> 3583#else 3584# include <assert.h> 3585#endif 3586 Syntax error 3587_ACEOF 3588if ac_fn_c_try_cpp "$LINENO"; then : 3589 3590else 3591 # Broken: fails on valid input. 3592continue 3593fi 3594rm -f conftest.err conftest.i conftest.$ac_ext 3595 3596 # OK, works on sane cases. Now check whether nonexistent headers 3597 # can be detected and how. 3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3599/* end confdefs.h. */ 3600#include <ac_nonexistent.h> 3601_ACEOF 3602if ac_fn_c_try_cpp "$LINENO"; then : 3603 # Broken: success on invalid input. 3604continue 3605else 3606 # Passes both tests. 3607ac_preproc_ok=: 3608break 3609fi 3610rm -f conftest.err conftest.i conftest.$ac_ext 3611 3612done 3613# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3614rm -f conftest.i conftest.err conftest.$ac_ext 3615if $ac_preproc_ok; then : 3616 3617else 3618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3620as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3621See \`config.log' for more details" "$LINENO" 5; } 3622fi 3623 3624ac_ext=c 3625ac_cpp='$CPP $CPPFLAGS' 3626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3628ac_compiler_gnu=$ac_cv_c_compiler_gnu 3629 3630 3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3632$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3633if ${ac_cv_path_GREP+:} false; then : 3634 $as_echo_n "(cached) " >&6 3635else 3636 if test -z "$GREP"; then 3637 ac_path_GREP_found=false 3638 # Loop through the user's path and test for each of PROGNAME-LIST 3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3640for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3641do 3642 IFS=$as_save_IFS 3643 test -z "$as_dir" && as_dir=. 3644 for ac_prog in grep ggrep; do 3645 for ac_exec_ext in '' $ac_executable_extensions; do 3646 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3647 as_fn_executable_p "$ac_path_GREP" || continue 3648# Check for GNU ac_path_GREP and select it if it is found. 3649 # Check for GNU $ac_path_GREP 3650case `"$ac_path_GREP" --version 2>&1` in 3651*GNU*) 3652 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3653*) 3654 ac_count=0 3655 $as_echo_n 0123456789 >"conftest.in" 3656 while : 3657 do 3658 cat "conftest.in" "conftest.in" >"conftest.tmp" 3659 mv "conftest.tmp" "conftest.in" 3660 cp "conftest.in" "conftest.nl" 3661 $as_echo 'GREP' >> "conftest.nl" 3662 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3663 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3664 as_fn_arith $ac_count + 1 && ac_count=$as_val 3665 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3666 # Best one so far, save it but keep looking for a better one 3667 ac_cv_path_GREP="$ac_path_GREP" 3668 ac_path_GREP_max=$ac_count 3669 fi 3670 # 10*(2^10) chars as input seems more than enough 3671 test $ac_count -gt 10 && break 3672 done 3673 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3674esac 3675 3676 $ac_path_GREP_found && break 3 3677 done 3678 done 3679 done 3680IFS=$as_save_IFS 3681 if test -z "$ac_cv_path_GREP"; then 3682 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3683 fi 3684else 3685 ac_cv_path_GREP=$GREP 3686fi 3687 3688fi 3689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3690$as_echo "$ac_cv_path_GREP" >&6; } 3691 GREP="$ac_cv_path_GREP" 3692 3693 3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3695$as_echo_n "checking for egrep... " >&6; } 3696if ${ac_cv_path_EGREP+:} false; then : 3697 $as_echo_n "(cached) " >&6 3698else 3699 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3700 then ac_cv_path_EGREP="$GREP -E" 3701 else 3702 if test -z "$EGREP"; then 3703 ac_path_EGREP_found=false 3704 # Loop through the user's path and test for each of PROGNAME-LIST 3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3706for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3707do 3708 IFS=$as_save_IFS 3709 test -z "$as_dir" && as_dir=. 3710 for ac_prog in egrep; do 3711 for ac_exec_ext in '' $ac_executable_extensions; do 3712 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3713 as_fn_executable_p "$ac_path_EGREP" || continue 3714# Check for GNU ac_path_EGREP and select it if it is found. 3715 # Check for GNU $ac_path_EGREP 3716case `"$ac_path_EGREP" --version 2>&1` in 3717*GNU*) 3718 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3719*) 3720 ac_count=0 3721 $as_echo_n 0123456789 >"conftest.in" 3722 while : 3723 do 3724 cat "conftest.in" "conftest.in" >"conftest.tmp" 3725 mv "conftest.tmp" "conftest.in" 3726 cp "conftest.in" "conftest.nl" 3727 $as_echo 'EGREP' >> "conftest.nl" 3728 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3729 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3730 as_fn_arith $ac_count + 1 && ac_count=$as_val 3731 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3732 # Best one so far, save it but keep looking for a better one 3733 ac_cv_path_EGREP="$ac_path_EGREP" 3734 ac_path_EGREP_max=$ac_count 3735 fi 3736 # 10*(2^10) chars as input seems more than enough 3737 test $ac_count -gt 10 && break 3738 done 3739 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3740esac 3741 3742 $ac_path_EGREP_found && break 3 3743 done 3744 done 3745 done 3746IFS=$as_save_IFS 3747 if test -z "$ac_cv_path_EGREP"; then 3748 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3749 fi 3750else 3751 ac_cv_path_EGREP=$EGREP 3752fi 3753 3754 fi 3755fi 3756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3757$as_echo "$ac_cv_path_EGREP" >&6; } 3758 EGREP="$ac_cv_path_EGREP" 3759 3760 3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3762$as_echo_n "checking for ANSI C header files... " >&6; } 3763if ${ac_cv_header_stdc+:} false; then : 3764 $as_echo_n "(cached) " >&6 3765else 3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3767/* end confdefs.h. */ 3768#include <stdlib.h> 3769#include <stdarg.h> 3770#include <string.h> 3771#include <float.h> 3772 3773int 3774main () 3775{ 3776 3777 ; 3778 return 0; 3779} 3780_ACEOF 3781if ac_fn_c_try_compile "$LINENO"; then : 3782 ac_cv_header_stdc=yes 3783else 3784 ac_cv_header_stdc=no 3785fi 3786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3787 3788if test $ac_cv_header_stdc = yes; then 3789 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3791/* end confdefs.h. */ 3792#include <string.h> 3793 3794_ACEOF 3795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3796 $EGREP "memchr" >/dev/null 2>&1; then : 3797 3798else 3799 ac_cv_header_stdc=no 3800fi 3801rm -f conftest* 3802 3803fi 3804 3805if test $ac_cv_header_stdc = yes; then 3806 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3808/* end confdefs.h. */ 3809#include <stdlib.h> 3810 3811_ACEOF 3812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3813 $EGREP "free" >/dev/null 2>&1; then : 3814 3815else 3816 ac_cv_header_stdc=no 3817fi 3818rm -f conftest* 3819 3820fi 3821 3822if test $ac_cv_header_stdc = yes; then 3823 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3824 if test "$cross_compiling" = yes; then : 3825 : 3826else 3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3828/* end confdefs.h. */ 3829#include <ctype.h> 3830#include <stdlib.h> 3831#if ((' ' & 0x0FF) == 0x020) 3832# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3833# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3834#else 3835# define ISLOWER(c) \ 3836 (('a' <= (c) && (c) <= 'i') \ 3837 || ('j' <= (c) && (c) <= 'r') \ 3838 || ('s' <= (c) && (c) <= 'z')) 3839# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3840#endif 3841 3842#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3843int 3844main () 3845{ 3846 int i; 3847 for (i = 0; i < 256; i++) 3848 if (XOR (islower (i), ISLOWER (i)) 3849 || toupper (i) != TOUPPER (i)) 3850 return 2; 3851 return 0; 3852} 3853_ACEOF 3854if ac_fn_c_try_run "$LINENO"; then : 3855 3856else 3857 ac_cv_header_stdc=no 3858fi 3859rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3860 conftest.$ac_objext conftest.beam conftest.$ac_ext 3861fi 3862 3863fi 3864fi 3865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3866$as_echo "$ac_cv_header_stdc" >&6; } 3867if test $ac_cv_header_stdc = yes; then 3868 3869$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3870 3871fi 3872 3873# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3874for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3875 inttypes.h stdint.h unistd.h 3876do : 3877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3878ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3879" 3880if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3881 cat >>confdefs.h <<_ACEOF 3882#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3883_ACEOF 3884 3885fi 3886 3887done 3888 3889 3890for ac_header in stdlib.h stdio.h string.h ctype.h errno.h 3891do : 3892 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3893ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 3894if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3895 cat >>confdefs.h <<_ACEOF 3896#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3897_ACEOF 3898 3899fi 3900 3901done 3902 3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 3904$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 3905if ${ac_cv_c_const+:} false; then : 3906 $as_echo_n "(cached) " >&6 3907else 3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3909/* end confdefs.h. */ 3910 3911int 3912main () 3913{ 3914 3915#ifndef __cplusplus 3916 /* Ultrix mips cc rejects this sort of thing. */ 3917 typedef int charset[2]; 3918 const charset cs = { 0, 0 }; 3919 /* SunOS 4.1.1 cc rejects this. */ 3920 char const *const *pcpcc; 3921 char **ppc; 3922 /* NEC SVR4.0.2 mips cc rejects this. */ 3923 struct point {int x, y;}; 3924 static struct point const zero = {0,0}; 3925 /* AIX XL C 1.02.0.0 rejects this. 3926 It does not let you subtract one const X* pointer from another in 3927 an arm of an if-expression whose if-part is not a constant 3928 expression */ 3929 const char *g = "string"; 3930 pcpcc = &g + (g ? g-g : 0); 3931 /* HPUX 7.0 cc rejects these. */ 3932 ++pcpcc; 3933 ppc = (char**) pcpcc; 3934 pcpcc = (char const *const *) ppc; 3935 { /* SCO 3.2v4 cc rejects this sort of thing. */ 3936 char tx; 3937 char *t = &tx; 3938 char const *s = 0 ? (char *) 0 : (char const *) 0; 3939 3940 *t++ = 0; 3941 if (s) return 0; 3942 } 3943 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3944 int x[] = {25, 17}; 3945 const int *foo = &x[0]; 3946 ++foo; 3947 } 3948 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3949 typedef const int *iptr; 3950 iptr p = 0; 3951 ++p; 3952 } 3953 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 3954 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3955 struct s { int j; const int *ap[3]; } bx; 3956 struct s *b = &bx; b->j = 5; 3957 } 3958 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3959 const int foo = 10; 3960 if (!foo) return 0; 3961 } 3962 return !cs[0] && !zero.x; 3963#endif 3964 3965 ; 3966 return 0; 3967} 3968_ACEOF 3969if ac_fn_c_try_compile "$LINENO"; then : 3970 ac_cv_c_const=yes 3971else 3972 ac_cv_c_const=no 3973fi 3974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3975fi 3976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 3977$as_echo "$ac_cv_c_const" >&6; } 3978if test $ac_cv_c_const = no; then 3979 3980$as_echo "#define const /**/" >>confdefs.h 3981 3982fi 3983 3984# The cast to long int works around a bug in the HP C Compiler 3985# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 3986# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 3987# This bug is HP SR number 8606223364. 3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 3989$as_echo_n "checking size of void *... " >&6; } 3990if ${ac_cv_sizeof_void_p+:} false; then : 3991 $as_echo_n "(cached) " >&6 3992else 3993 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 3994 3995else 3996 if test "$ac_cv_type_void_p" = yes; then 3997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3999as_fn_error 77 "cannot compute sizeof (void *) 4000See \`config.log' for more details" "$LINENO" 5; } 4001 else 4002 ac_cv_sizeof_void_p=0 4003 fi 4004fi 4005 4006fi 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 4008$as_echo "$ac_cv_sizeof_void_p" >&6; } 4009 4010 4011 4012cat >>confdefs.h <<_ACEOF 4013#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 4014_ACEOF 4015 4016 4017# The cast to long int works around a bug in the HP C Compiler 4018# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4019# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4020# This bug is HP SR number 8606223364. 4021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 4022$as_echo_n "checking size of int... " >&6; } 4023if ${ac_cv_sizeof_int+:} false; then : 4024 $as_echo_n "(cached) " >&6 4025else 4026 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 4027 4028else 4029 if test "$ac_cv_type_int" = yes; then 4030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4032as_fn_error 77 "cannot compute sizeof (int) 4033See \`config.log' for more details" "$LINENO" 5; } 4034 else 4035 ac_cv_sizeof_int=0 4036 fi 4037fi 4038 4039fi 4040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 4041$as_echo "$ac_cv_sizeof_int" >&6; } 4042 4043 4044 4045cat >>confdefs.h <<_ACEOF 4046#define SIZEOF_INT $ac_cv_sizeof_int 4047_ACEOF 4048 4049 4050# The cast to long int works around a bug in the HP C Compiler 4051# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4052# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4053# This bug is HP SR number 8606223364. 4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 4055$as_echo_n "checking size of long... " >&6; } 4056if ${ac_cv_sizeof_long+:} false; then : 4057 $as_echo_n "(cached) " >&6 4058else 4059 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 4060 4061else 4062 if test "$ac_cv_type_long" = yes; then 4063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4065as_fn_error 77 "cannot compute sizeof (long) 4066See \`config.log' for more details" "$LINENO" 5; } 4067 else 4068 ac_cv_sizeof_long=0 4069 fi 4070fi 4071 4072fi 4073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 4074$as_echo "$ac_cv_sizeof_long" >&6; } 4075 4076 4077 4078cat >>confdefs.h <<_ACEOF 4079#define SIZEOF_LONG $ac_cv_sizeof_long 4080_ACEOF 4081 4082 4083# The cast to long int works around a bug in the HP C Compiler 4084# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4085# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4086# This bug is HP SR number 8606223364. 4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 4088$as_echo_n "checking size of long long... " >&6; } 4089if ${ac_cv_sizeof_long_long+:} false; then : 4090 $as_echo_n "(cached) " >&6 4091else 4092 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 4093 4094else 4095 if test "$ac_cv_type_long_long" = yes; then 4096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4098as_fn_error 77 "cannot compute sizeof (long long) 4099See \`config.log' for more details" "$LINENO" 5; } 4100 else 4101 ac_cv_sizeof_long_long=0 4102 fi 4103fi 4104 4105fi 4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 4107$as_echo "$ac_cv_sizeof_long_long" >&6; } 4108 4109 4110 4111cat >>confdefs.h <<_ACEOF 4112#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 4113_ACEOF 4114 4115 4116# The cast to long int works around a bug in the HP C Compiler 4117# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4118# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4119# This bug is HP SR number 8606223364. 4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5 4121$as_echo_n "checking size of __int64... " >&6; } 4122if ${ac_cv_sizeof___int64+:} false; then : 4123 $as_echo_n "(cached) " >&6 4124else 4125 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then : 4126 4127else 4128 if test "$ac_cv_type___int64" = yes; then 4129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4131as_fn_error 77 "cannot compute sizeof (__int64) 4132See \`config.log' for more details" "$LINENO" 5; } 4133 else 4134 ac_cv_sizeof___int64=0 4135 fi 4136fi 4137 4138fi 4139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5 4140$as_echo "$ac_cv_sizeof___int64" >&6; } 4141 4142 4143 4144cat >>confdefs.h <<_ACEOF 4145#define SIZEOF___INT64 $ac_cv_sizeof___int64 4146_ACEOF 4147 4148 4149if test "$cross_compiling" = "yes" -o "$cross_compiling" = 1 ; then 4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte ordering" >&5 4151$as_echo_n "checking for byte ordering... " >&6; } 4152 if test "X$CROSS_BIGENDIAN" != "X" ; then 4153 if test "$CROSS_BIGENDIAN" = "true" \ 4154 -o "$CROSS_BIGENDIAN" = "false" ; then 4155 if test "$CROSS_BIGENDIAN" = "true" ; then 4156 4157$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 4158 4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defined to be big endian " >&5 4160$as_echo "defined to be big endian " >&6; } 4161 else 4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defined to be little endian " >&5 4163$as_echo "defined to be little endian " >&6; } 4164 fi 4165 else 4166 4167$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 4168 4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unknown CROSS_BIGENDIAN, $CROSS_BIGENDIAN! Assumed big endian " >&5 4170$as_echo "Unknown CROSS_BIGENDIAN, $CROSS_BIGENDIAN! Assumed big endian " >&6; } 4171 fi 4172 else 4173 4174$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 4175 4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Undefined CROSS_BIGENDIAN! Assumed big endian " >&5 4177$as_echo "Undefined CROSS_BIGENDIAN! Assumed big endian " >&6; } 4178 fi 4179else 4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 4181$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 4182if ${ac_cv_c_bigendian+:} false; then : 4183 $as_echo_n "(cached) " >&6 4184else 4185 ac_cv_c_bigendian=unknown 4186 # See if we're dealing with a universal compiler. 4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4188/* end confdefs.h. */ 4189#ifndef __APPLE_CC__ 4190 not a universal capable compiler 4191 #endif 4192 typedef int dummy; 4193 4194_ACEOF 4195if ac_fn_c_try_compile "$LINENO"; then : 4196 4197 # Check for potential -arch flags. It is not universal unless 4198 # there are at least two -arch flags with different values. 4199 ac_arch= 4200 ac_prev= 4201 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 4202 if test -n "$ac_prev"; then 4203 case $ac_word in 4204 i?86 | x86_64 | ppc | ppc64) 4205 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 4206 ac_arch=$ac_word 4207 else 4208 ac_cv_c_bigendian=universal 4209 break 4210 fi 4211 ;; 4212 esac 4213 ac_prev= 4214 elif test "x$ac_word" = "x-arch"; then 4215 ac_prev=arch 4216 fi 4217 done 4218fi 4219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4220 if test $ac_cv_c_bigendian = unknown; then 4221 # See if sys/param.h defines the BYTE_ORDER macro. 4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4223/* end confdefs.h. */ 4224#include <sys/types.h> 4225 #include <sys/param.h> 4226 4227int 4228main () 4229{ 4230#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 4231 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 4232 && LITTLE_ENDIAN) 4233 bogus endian macros 4234 #endif 4235 4236 ; 4237 return 0; 4238} 4239_ACEOF 4240if ac_fn_c_try_compile "$LINENO"; then : 4241 # It does; now see whether it defined to BIG_ENDIAN or not. 4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4243/* end confdefs.h. */ 4244#include <sys/types.h> 4245 #include <sys/param.h> 4246 4247int 4248main () 4249{ 4250#if BYTE_ORDER != BIG_ENDIAN 4251 not big endian 4252 #endif 4253 4254 ; 4255 return 0; 4256} 4257_ACEOF 4258if ac_fn_c_try_compile "$LINENO"; then : 4259 ac_cv_c_bigendian=yes 4260else 4261 ac_cv_c_bigendian=no 4262fi 4263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4264fi 4265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4266 fi 4267 if test $ac_cv_c_bigendian = unknown; then 4268 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4270/* end confdefs.h. */ 4271#include <limits.h> 4272 4273int 4274main () 4275{ 4276#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 4277 bogus endian macros 4278 #endif 4279 4280 ; 4281 return 0; 4282} 4283_ACEOF 4284if ac_fn_c_try_compile "$LINENO"; then : 4285 # It does; now see whether it defined to _BIG_ENDIAN or not. 4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4287/* end confdefs.h. */ 4288#include <limits.h> 4289 4290int 4291main () 4292{ 4293#ifndef _BIG_ENDIAN 4294 not big endian 4295 #endif 4296 4297 ; 4298 return 0; 4299} 4300_ACEOF 4301if ac_fn_c_try_compile "$LINENO"; then : 4302 ac_cv_c_bigendian=yes 4303else 4304 ac_cv_c_bigendian=no 4305fi 4306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4307fi 4308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4309 fi 4310 if test $ac_cv_c_bigendian = unknown; then 4311 # Compile a test program. 4312 if test "$cross_compiling" = yes; then : 4313 # Try to guess by grepping values from an object file. 4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4315/* end confdefs.h. */ 4316short int ascii_mm[] = 4317 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4318 short int ascii_ii[] = 4319 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4320 int use_ascii (int i) { 4321 return ascii_mm[i] + ascii_ii[i]; 4322 } 4323 short int ebcdic_ii[] = 4324 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4325 short int ebcdic_mm[] = 4326 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4327 int use_ebcdic (int i) { 4328 return ebcdic_mm[i] + ebcdic_ii[i]; 4329 } 4330 extern int foo; 4331 4332int 4333main () 4334{ 4335return use_ascii (foo) == use_ebcdic (foo); 4336 ; 4337 return 0; 4338} 4339_ACEOF 4340if ac_fn_c_try_compile "$LINENO"; then : 4341 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 4342 ac_cv_c_bigendian=yes 4343 fi 4344 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4345 if test "$ac_cv_c_bigendian" = unknown; then 4346 ac_cv_c_bigendian=no 4347 else 4348 # finding both strings is unlikely to happen, but who knows? 4349 ac_cv_c_bigendian=unknown 4350 fi 4351 fi 4352fi 4353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4354else 4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4356/* end confdefs.h. */ 4357$ac_includes_default 4358int 4359main () 4360{ 4361 4362 /* Are we little or big endian? From Harbison&Steele. */ 4363 union 4364 { 4365 long int l; 4366 char c[sizeof (long int)]; 4367 } u; 4368 u.l = 1; 4369 return u.c[sizeof (long int) - 1] == 1; 4370 4371 ; 4372 return 0; 4373} 4374_ACEOF 4375if ac_fn_c_try_run "$LINENO"; then : 4376 ac_cv_c_bigendian=no 4377else 4378 ac_cv_c_bigendian=yes 4379fi 4380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4381 conftest.$ac_objext conftest.beam conftest.$ac_ext 4382fi 4383 4384 fi 4385fi 4386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 4387$as_echo "$ac_cv_c_bigendian" >&6; } 4388 case $ac_cv_c_bigendian in #( 4389 yes) 4390 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 4391;; #( 4392 no) 4393 ;; #( 4394 universal) 4395 4396$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 4397 4398 ;; #( 4399 *) 4400 as_fn_error $? "unknown endianness 4401 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 4402 esac 4403 4404fi 4405 4406LIBSO_PREFIX="lib" 4407# Make sure we can run config.sub. 4408$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4409 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4410 4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4412$as_echo_n "checking build system type... " >&6; } 4413if ${ac_cv_build+:} false; then : 4414 $as_echo_n "(cached) " >&6 4415else 4416 ac_build_alias=$build_alias 4417test "x$ac_build_alias" = x && 4418 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4419test "x$ac_build_alias" = x && 4420 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4421ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4422 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4423 4424fi 4425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4426$as_echo "$ac_cv_build" >&6; } 4427case $ac_cv_build in 4428*-*-*) ;; 4429*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4430esac 4431build=$ac_cv_build 4432ac_save_IFS=$IFS; IFS='-' 4433set x $ac_cv_build 4434shift 4435build_cpu=$1 4436build_vendor=$2 4437shift; shift 4438# Remember, the first character of IFS is used to create $*, 4439# except with old shells: 4440build_os=$* 4441IFS=$ac_save_IFS 4442case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4443 4444 4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4446$as_echo_n "checking host system type... " >&6; } 4447if ${ac_cv_host+:} false; then : 4448 $as_echo_n "(cached) " >&6 4449else 4450 if test "x$host_alias" = x; then 4451 ac_cv_host=$ac_cv_build 4452else 4453 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4454 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4455fi 4456 4457fi 4458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4459$as_echo "$ac_cv_host" >&6; } 4460case $ac_cv_host in 4461*-*-*) ;; 4462*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4463esac 4464host=$ac_cv_host 4465ac_save_IFS=$IFS; IFS='-' 4466set x $ac_cv_host 4467shift 4468host_cpu=$1 4469host_vendor=$2 4470shift; shift 4471# Remember, the first character of IFS is used to create $*, 4472# except with old shells: 4473host_os=$* 4474IFS=$ac_save_IFS 4475case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4476 4477 4478case "$host_os" in 4479 aix4* | aix5* ) 4480 LIBSO_LDFLAGS="-brtl" 4481 ;; 4482 *darwin* ) 4483 LIBSO_LDFLAGS="-shrext .jnilib" 4484 ;; 4485 *cygwin* ) 4486 LIBSO_CFLAGS="-mno-cygwin" 4487 LIBSO_LDFLAGS="-Wl,--enable-stdcall-fixup" 4488 LIBSO_PREFIX="" 4489 ;; 4490esac 4491 4492 4493 4494 4495EXPORT_SYMBOLS=yes 4496case "$CC" in 4497 *icc* ) 4498 EXPORT_SYMBOLS=no 4499 ;; 4500 *pgcc ) 4501 ;; 4502esac 4503 4504 4505# Check whether --enable-static was given. 4506if test "${enable_static+set}" = set; then : 4507 enableval=$enable_static; p=${PACKAGE-default} 4508 case $enableval in 4509 yes) enable_static=yes ;; 4510 no) enable_static=no ;; 4511 *) 4512 enable_static=no 4513 # Look at the argument we got. We use all the common list separators. 4514 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4515 for pkg in $enableval; do 4516 IFS="$lt_save_ifs" 4517 if test "X$pkg" = "X$p"; then 4518 enable_static=yes 4519 fi 4520 done 4521 IFS="$lt_save_ifs" 4522 ;; 4523 esac 4524else 4525 enable_static=no 4526fi 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536enable_win32_dll=yes 4537 4538case $host in 4539*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 4540 if test -n "$ac_tool_prefix"; then 4541 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4542set dummy ${ac_tool_prefix}as; ac_word=$2 4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4544$as_echo_n "checking for $ac_word... " >&6; } 4545if ${ac_cv_prog_AS+:} false; then : 4546 $as_echo_n "(cached) " >&6 4547else 4548 if test -n "$AS"; then 4549 ac_cv_prog_AS="$AS" # Let the user override the test. 4550else 4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4552for as_dir in $PATH 4553do 4554 IFS=$as_save_IFS 4555 test -z "$as_dir" && as_dir=. 4556 for ac_exec_ext in '' $ac_executable_extensions; do 4557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4558 ac_cv_prog_AS="${ac_tool_prefix}as" 4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4560 break 2 4561 fi 4562done 4563 done 4564IFS=$as_save_IFS 4565 4566fi 4567fi 4568AS=$ac_cv_prog_AS 4569if test -n "$AS"; then 4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 4571$as_echo "$AS" >&6; } 4572else 4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4574$as_echo "no" >&6; } 4575fi 4576 4577 4578fi 4579if test -z "$ac_cv_prog_AS"; then 4580 ac_ct_AS=$AS 4581 # Extract the first word of "as", so it can be a program name with args. 4582set dummy as; ac_word=$2 4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4584$as_echo_n "checking for $ac_word... " >&6; } 4585if ${ac_cv_prog_ac_ct_AS+:} false; then : 4586 $as_echo_n "(cached) " >&6 4587else 4588 if test -n "$ac_ct_AS"; then 4589 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4590else 4591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4592for as_dir in $PATH 4593do 4594 IFS=$as_save_IFS 4595 test -z "$as_dir" && as_dir=. 4596 for ac_exec_ext in '' $ac_executable_extensions; do 4597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4598 ac_cv_prog_ac_ct_AS="as" 4599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4600 break 2 4601 fi 4602done 4603 done 4604IFS=$as_save_IFS 4605 4606fi 4607fi 4608ac_ct_AS=$ac_cv_prog_ac_ct_AS 4609if test -n "$ac_ct_AS"; then 4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 4611$as_echo "$ac_ct_AS" >&6; } 4612else 4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4614$as_echo "no" >&6; } 4615fi 4616 4617 if test "x$ac_ct_AS" = x; then 4618 AS="false" 4619 else 4620 case $cross_compiling:$ac_tool_warned in 4621yes:) 4622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4624ac_tool_warned=yes ;; 4625esac 4626 AS=$ac_ct_AS 4627 fi 4628else 4629 AS="$ac_cv_prog_AS" 4630fi 4631 4632 if test -n "$ac_tool_prefix"; then 4633 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4634set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4636$as_echo_n "checking for $ac_word... " >&6; } 4637if ${ac_cv_prog_DLLTOOL+:} false; then : 4638 $as_echo_n "(cached) " >&6 4639else 4640 if test -n "$DLLTOOL"; then 4641 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4642else 4643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4644for as_dir in $PATH 4645do 4646 IFS=$as_save_IFS 4647 test -z "$as_dir" && as_dir=. 4648 for ac_exec_ext in '' $ac_executable_extensions; do 4649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4650 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4652 break 2 4653 fi 4654done 4655 done 4656IFS=$as_save_IFS 4657 4658fi 4659fi 4660DLLTOOL=$ac_cv_prog_DLLTOOL 4661if test -n "$DLLTOOL"; then 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4663$as_echo "$DLLTOOL" >&6; } 4664else 4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4666$as_echo "no" >&6; } 4667fi 4668 4669 4670fi 4671if test -z "$ac_cv_prog_DLLTOOL"; then 4672 ac_ct_DLLTOOL=$DLLTOOL 4673 # Extract the first word of "dlltool", so it can be a program name with args. 4674set dummy dlltool; ac_word=$2 4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4676$as_echo_n "checking for $ac_word... " >&6; } 4677if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 4678 $as_echo_n "(cached) " >&6 4679else 4680 if test -n "$ac_ct_DLLTOOL"; then 4681 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4682else 4683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4684for as_dir in $PATH 4685do 4686 IFS=$as_save_IFS 4687 test -z "$as_dir" && as_dir=. 4688 for ac_exec_ext in '' $ac_executable_extensions; do 4689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4690 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4692 break 2 4693 fi 4694done 4695 done 4696IFS=$as_save_IFS 4697 4698fi 4699fi 4700ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4701if test -n "$ac_ct_DLLTOOL"; then 4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4703$as_echo "$ac_ct_DLLTOOL" >&6; } 4704else 4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4706$as_echo "no" >&6; } 4707fi 4708 4709 if test "x$ac_ct_DLLTOOL" = x; then 4710 DLLTOOL="false" 4711 else 4712 case $cross_compiling:$ac_tool_warned in 4713yes:) 4714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4716ac_tool_warned=yes ;; 4717esac 4718 DLLTOOL=$ac_ct_DLLTOOL 4719 fi 4720else 4721 DLLTOOL="$ac_cv_prog_DLLTOOL" 4722fi 4723 4724 if test -n "$ac_tool_prefix"; then 4725 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4726set dummy ${ac_tool_prefix}objdump; ac_word=$2 4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4728$as_echo_n "checking for $ac_word... " >&6; } 4729if ${ac_cv_prog_OBJDUMP+:} false; then : 4730 $as_echo_n "(cached) " >&6 4731else 4732 if test -n "$OBJDUMP"; then 4733 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4734else 4735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4736for as_dir in $PATH 4737do 4738 IFS=$as_save_IFS 4739 test -z "$as_dir" && as_dir=. 4740 for ac_exec_ext in '' $ac_executable_extensions; do 4741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4742 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4744 break 2 4745 fi 4746done 4747 done 4748IFS=$as_save_IFS 4749 4750fi 4751fi 4752OBJDUMP=$ac_cv_prog_OBJDUMP 4753if test -n "$OBJDUMP"; then 4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4755$as_echo "$OBJDUMP" >&6; } 4756else 4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4758$as_echo "no" >&6; } 4759fi 4760 4761 4762fi 4763if test -z "$ac_cv_prog_OBJDUMP"; then 4764 ac_ct_OBJDUMP=$OBJDUMP 4765 # Extract the first word of "objdump", so it can be a program name with args. 4766set dummy objdump; ac_word=$2 4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4768$as_echo_n "checking for $ac_word... " >&6; } 4769if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4770 $as_echo_n "(cached) " >&6 4771else 4772 if test -n "$ac_ct_OBJDUMP"; then 4773 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4774else 4775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4776for as_dir in $PATH 4777do 4778 IFS=$as_save_IFS 4779 test -z "$as_dir" && as_dir=. 4780 for ac_exec_ext in '' $ac_executable_extensions; do 4781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4782 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4784 break 2 4785 fi 4786done 4787 done 4788IFS=$as_save_IFS 4789 4790fi 4791fi 4792ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4793if test -n "$ac_ct_OBJDUMP"; then 4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4795$as_echo "$ac_ct_OBJDUMP" >&6; } 4796else 4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4798$as_echo "no" >&6; } 4799fi 4800 4801 if test "x$ac_ct_OBJDUMP" = x; then 4802 OBJDUMP="false" 4803 else 4804 case $cross_compiling:$ac_tool_warned in 4805yes:) 4806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4808ac_tool_warned=yes ;; 4809esac 4810 OBJDUMP=$ac_ct_OBJDUMP 4811 fi 4812else 4813 OBJDUMP="$ac_cv_prog_OBJDUMP" 4814fi 4815 4816 ;; 4817esac 4818 4819test -z "$AS" && AS=as 4820 4821 4822 4823 4824 4825test -z "$DLLTOOL" && DLLTOOL=dlltool 4826 4827 4828 4829 4830 4831test -z "$OBJDUMP" && OBJDUMP=objdump 4832 4833 4834 4835 4836 4837 4838 4839# Extract the first word of "sed", so it can be a program name with args. 4840set dummy sed; ac_word=$2 4841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4842$as_echo_n "checking for $ac_word... " >&6; } 4843if ${ac_cv_prog_SED+:} false; then : 4844 $as_echo_n "(cached) " >&6 4845else 4846 if test -n "$SED"; then 4847 ac_cv_prog_SED="$SED" # Let the user override the test. 4848else 4849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4850for as_dir in $PATH 4851do 4852 IFS=$as_save_IFS 4853 test -z "$as_dir" && as_dir=. 4854 for ac_exec_ext in '' $ac_executable_extensions; do 4855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4856 ac_cv_prog_SED="sed" 4857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4858 break 2 4859 fi 4860done 4861 done 4862IFS=$as_save_IFS 4863 4864 test -z "$ac_cv_prog_SED" && ac_cv_prog_SED=";" 4865fi 4866fi 4867SED=$ac_cv_prog_SED 4868if test -n "$SED"; then 4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 4870$as_echo "$SED" >&6; } 4871else 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4873$as_echo "no" >&6; } 4874fi 4875 4876 4877case `pwd` in 4878 *\ * | *\ *) 4879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4880$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4881esac 4882 4883 4884 4885macro_version='2.4.2' 4886macro_revision='1.3337' 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900ltmain="$ac_aux_dir/ltmain.sh" 4901 4902# Backslashify metacharacters that are still active within 4903# double-quoted strings. 4904sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4905 4906# Same as above, but do not quote variable references. 4907double_quote_subst='s/\(["`\\]\)/\\\1/g' 4908 4909# Sed substitution to delay expansion of an escaped shell variable in a 4910# double_quote_subst'ed string. 4911delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4912 4913# Sed substitution to delay expansion of an escaped single quote. 4914delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4915 4916# Sed substitution to avoid accidental globbing in evaled expressions 4917no_glob_subst='s/\*/\\\*/g' 4918 4919ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4920ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4921ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4922 4923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4924$as_echo_n "checking how to print strings... " >&6; } 4925# Test print first, because it will be a builtin if present. 4926if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4927 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4928 ECHO='print -r --' 4929elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4930 ECHO='printf %s\n' 4931else 4932 # Use this function as a fallback that always works. 4933 func_fallback_echo () 4934 { 4935 eval 'cat <<_LTECHO_EOF 4936$1 4937_LTECHO_EOF' 4938 } 4939 ECHO='func_fallback_echo' 4940fi 4941 4942# func_echo_all arg... 4943# Invoke $ECHO with all args, space-separated. 4944func_echo_all () 4945{ 4946 $ECHO "" 4947} 4948 4949case "$ECHO" in 4950 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4951$as_echo "printf" >&6; } ;; 4952 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4953$as_echo "print -r" >&6; } ;; 4954 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4955$as_echo "cat" >&6; } ;; 4956esac 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4972$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4973if ${ac_cv_path_SED+:} false; then : 4974 $as_echo_n "(cached) " >&6 4975else 4976 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4977 for ac_i in 1 2 3 4 5 6 7; do 4978 ac_script="$ac_script$as_nl$ac_script" 4979 done 4980 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4981 { ac_script=; unset ac_script;} 4982 if test -z "$SED"; then 4983 ac_path_SED_found=false 4984 # Loop through the user's path and test for each of PROGNAME-LIST 4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4986for as_dir in $PATH 4987do 4988 IFS=$as_save_IFS 4989 test -z "$as_dir" && as_dir=. 4990 for ac_prog in sed gsed; do 4991 for ac_exec_ext in '' $ac_executable_extensions; do 4992 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4993 as_fn_executable_p "$ac_path_SED" || continue 4994# Check for GNU ac_path_SED and select it if it is found. 4995 # Check for GNU $ac_path_SED 4996case `"$ac_path_SED" --version 2>&1` in 4997*GNU*) 4998 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4999*) 5000 ac_count=0 5001 $as_echo_n 0123456789 >"conftest.in" 5002 while : 5003 do 5004 cat "conftest.in" "conftest.in" >"conftest.tmp" 5005 mv "conftest.tmp" "conftest.in" 5006 cp "conftest.in" "conftest.nl" 5007 $as_echo '' >> "conftest.nl" 5008 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5010 as_fn_arith $ac_count + 1 && ac_count=$as_val 5011 if test $ac_count -gt ${ac_path_SED_max-0}; then 5012 # Best one so far, save it but keep looking for a better one 5013 ac_cv_path_SED="$ac_path_SED" 5014 ac_path_SED_max=$ac_count 5015 fi 5016 # 10*(2^10) chars as input seems more than enough 5017 test $ac_count -gt 10 && break 5018 done 5019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5020esac 5021 5022 $ac_path_SED_found && break 3 5023 done 5024 done 5025 done 5026IFS=$as_save_IFS 5027 if test -z "$ac_cv_path_SED"; then 5028 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5029 fi 5030else 5031 ac_cv_path_SED=$SED 5032fi 5033 5034fi 5035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5036$as_echo "$ac_cv_path_SED" >&6; } 5037 SED="$ac_cv_path_SED" 5038 rm -f conftest.sed 5039 5040test -z "$SED" && SED=sed 5041Xsed="$SED -e 1s/^X//" 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5054$as_echo_n "checking for fgrep... " >&6; } 5055if ${ac_cv_path_FGREP+:} false; then : 5056 $as_echo_n "(cached) " >&6 5057else 5058 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5059 then ac_cv_path_FGREP="$GREP -F" 5060 else 5061 if test -z "$FGREP"; then 5062 ac_path_FGREP_found=false 5063 # Loop through the user's path and test for each of PROGNAME-LIST 5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5065for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5066do 5067 IFS=$as_save_IFS 5068 test -z "$as_dir" && as_dir=. 5069 for ac_prog in fgrep; do 5070 for ac_exec_ext in '' $ac_executable_extensions; do 5071 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5072 as_fn_executable_p "$ac_path_FGREP" || continue 5073# Check for GNU ac_path_FGREP and select it if it is found. 5074 # Check for GNU $ac_path_FGREP 5075case `"$ac_path_FGREP" --version 2>&1` in 5076*GNU*) 5077 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5078*) 5079 ac_count=0 5080 $as_echo_n 0123456789 >"conftest.in" 5081 while : 5082 do 5083 cat "conftest.in" "conftest.in" >"conftest.tmp" 5084 mv "conftest.tmp" "conftest.in" 5085 cp "conftest.in" "conftest.nl" 5086 $as_echo 'FGREP' >> "conftest.nl" 5087 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5088 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5089 as_fn_arith $ac_count + 1 && ac_count=$as_val 5090 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5091 # Best one so far, save it but keep looking for a better one 5092 ac_cv_path_FGREP="$ac_path_FGREP" 5093 ac_path_FGREP_max=$ac_count 5094 fi 5095 # 10*(2^10) chars as input seems more than enough 5096 test $ac_count -gt 10 && break 5097 done 5098 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5099esac 5100 5101 $ac_path_FGREP_found && break 3 5102 done 5103 done 5104 done 5105IFS=$as_save_IFS 5106 if test -z "$ac_cv_path_FGREP"; then 5107 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5108 fi 5109else 5110 ac_cv_path_FGREP=$FGREP 5111fi 5112 5113 fi 5114fi 5115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5116$as_echo "$ac_cv_path_FGREP" >&6; } 5117 FGREP="$ac_cv_path_FGREP" 5118 5119 5120test -z "$GREP" && GREP=grep 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140# Check whether --with-gnu-ld was given. 5141if test "${with_gnu_ld+set}" = set; then : 5142 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5143else 5144 with_gnu_ld=no 5145fi 5146 5147ac_prog=ld 5148if test "$GCC" = yes; then 5149 # Check if gcc -print-prog-name=ld gives a path. 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5151$as_echo_n "checking for ld used by $CC... " >&6; } 5152 case $host in 5153 *-*-mingw*) 5154 # gcc leaves a trailing carriage return which upsets mingw 5155 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5156 *) 5157 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5158 esac 5159 case $ac_prog in 5160 # Accept absolute paths. 5161 [\\/]* | ?:[\\/]*) 5162 re_direlt='/[^/][^/]*/\.\./' 5163 # Canonicalize the pathname of ld 5164 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5165 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5166 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5167 done 5168 test -z "$LD" && LD="$ac_prog" 5169 ;; 5170 "") 5171 # If it fails, then pretend we aren't using GCC. 5172 ac_prog=ld 5173 ;; 5174 *) 5175 # If it is relative, then search for the first ld in PATH. 5176 with_gnu_ld=unknown 5177 ;; 5178 esac 5179elif test "$with_gnu_ld" = yes; then 5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5181$as_echo_n "checking for GNU ld... " >&6; } 5182else 5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5184$as_echo_n "checking for non-GNU ld... " >&6; } 5185fi 5186if ${lt_cv_path_LD+:} false; then : 5187 $as_echo_n "(cached) " >&6 5188else 5189 if test -z "$LD"; then 5190 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5191 for ac_dir in $PATH; do 5192 IFS="$lt_save_ifs" 5193 test -z "$ac_dir" && ac_dir=. 5194 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5195 lt_cv_path_LD="$ac_dir/$ac_prog" 5196 # Check to see if the program is GNU ld. I'd rather use --version, 5197 # but apparently some variants of GNU ld only accept -v. 5198 # Break only if it was the GNU/non-GNU ld that we prefer. 5199 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5200 *GNU* | *'with BFD'*) 5201 test "$with_gnu_ld" != no && break 5202 ;; 5203 *) 5204 test "$with_gnu_ld" != yes && break 5205 ;; 5206 esac 5207 fi 5208 done 5209 IFS="$lt_save_ifs" 5210else 5211 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5212fi 5213fi 5214 5215LD="$lt_cv_path_LD" 5216if test -n "$LD"; then 5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5218$as_echo "$LD" >&6; } 5219else 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5221$as_echo "no" >&6; } 5222fi 5223test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5225$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5226if ${lt_cv_prog_gnu_ld+:} false; then : 5227 $as_echo_n "(cached) " >&6 5228else 5229 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5230case `$LD -v 2>&1 </dev/null` in 5231*GNU* | *'with BFD'*) 5232 lt_cv_prog_gnu_ld=yes 5233 ;; 5234*) 5235 lt_cv_prog_gnu_ld=no 5236 ;; 5237esac 5238fi 5239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5240$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5241with_gnu_ld=$lt_cv_prog_gnu_ld 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5252$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5253if ${lt_cv_path_NM+:} false; then : 5254 $as_echo_n "(cached) " >&6 5255else 5256 if test -n "$NM"; then 5257 # Let the user override the test. 5258 lt_cv_path_NM="$NM" 5259else 5260 lt_nm_to_check="${ac_tool_prefix}nm" 5261 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5262 lt_nm_to_check="$lt_nm_to_check nm" 5263 fi 5264 for lt_tmp_nm in $lt_nm_to_check; do 5265 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5266 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5267 IFS="$lt_save_ifs" 5268 test -z "$ac_dir" && ac_dir=. 5269 tmp_nm="$ac_dir/$lt_tmp_nm" 5270 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5271 # Check to see if the nm accepts a BSD-compat flag. 5272 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5273 # nm: unknown option "B" ignored 5274 # Tru64's nm complains that /dev/null is an invalid object file 5275 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5276 */dev/null* | *'Invalid file or object type'*) 5277 lt_cv_path_NM="$tmp_nm -B" 5278 break 5279 ;; 5280 *) 5281 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5282 */dev/null*) 5283 lt_cv_path_NM="$tmp_nm -p" 5284 break 5285 ;; 5286 *) 5287 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5288 continue # so that we can try to find one that supports BSD flags 5289 ;; 5290 esac 5291 ;; 5292 esac 5293 fi 5294 done 5295 IFS="$lt_save_ifs" 5296 done 5297 : ${lt_cv_path_NM=no} 5298fi 5299fi 5300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5301$as_echo "$lt_cv_path_NM" >&6; } 5302if test "$lt_cv_path_NM" != "no"; then 5303 NM="$lt_cv_path_NM" 5304else 5305 # Didn't find any BSD compatible name lister, look for dumpbin. 5306 if test -n "$DUMPBIN"; then : 5307 # Let the user override the test. 5308 else 5309 if test -n "$ac_tool_prefix"; then 5310 for ac_prog in dumpbin "link -dump" 5311 do 5312 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5313set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5315$as_echo_n "checking for $ac_word... " >&6; } 5316if ${ac_cv_prog_DUMPBIN+:} false; then : 5317 $as_echo_n "(cached) " >&6 5318else 5319 if test -n "$DUMPBIN"; then 5320 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5321else 5322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5323for as_dir in $PATH 5324do 5325 IFS=$as_save_IFS 5326 test -z "$as_dir" && as_dir=. 5327 for ac_exec_ext in '' $ac_executable_extensions; do 5328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5329 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5331 break 2 5332 fi 5333done 5334 done 5335IFS=$as_save_IFS 5336 5337fi 5338fi 5339DUMPBIN=$ac_cv_prog_DUMPBIN 5340if test -n "$DUMPBIN"; then 5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5342$as_echo "$DUMPBIN" >&6; } 5343else 5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5345$as_echo "no" >&6; } 5346fi 5347 5348 5349 test -n "$DUMPBIN" && break 5350 done 5351fi 5352if test -z "$DUMPBIN"; then 5353 ac_ct_DUMPBIN=$DUMPBIN 5354 for ac_prog in dumpbin "link -dump" 5355do 5356 # Extract the first word of "$ac_prog", so it can be a program name with args. 5357set dummy $ac_prog; ac_word=$2 5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5359$as_echo_n "checking for $ac_word... " >&6; } 5360if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5361 $as_echo_n "(cached) " >&6 5362else 5363 if test -n "$ac_ct_DUMPBIN"; then 5364 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5365else 5366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5367for as_dir in $PATH 5368do 5369 IFS=$as_save_IFS 5370 test -z "$as_dir" && as_dir=. 5371 for ac_exec_ext in '' $ac_executable_extensions; do 5372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5373 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5375 break 2 5376 fi 5377done 5378 done 5379IFS=$as_save_IFS 5380 5381fi 5382fi 5383ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5384if test -n "$ac_ct_DUMPBIN"; then 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5386$as_echo "$ac_ct_DUMPBIN" >&6; } 5387else 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5389$as_echo "no" >&6; } 5390fi 5391 5392 5393 test -n "$ac_ct_DUMPBIN" && break 5394done 5395 5396 if test "x$ac_ct_DUMPBIN" = x; then 5397 DUMPBIN=":" 5398 else 5399 case $cross_compiling:$ac_tool_warned in 5400yes:) 5401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5403ac_tool_warned=yes ;; 5404esac 5405 DUMPBIN=$ac_ct_DUMPBIN 5406 fi 5407fi 5408 5409 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5410 *COFF*) 5411 DUMPBIN="$DUMPBIN -symbols" 5412 ;; 5413 *) 5414 DUMPBIN=: 5415 ;; 5416 esac 5417 fi 5418 5419 if test "$DUMPBIN" != ":"; then 5420 NM="$DUMPBIN" 5421 fi 5422fi 5423test -z "$NM" && NM=nm 5424 5425 5426 5427 5428 5429 5430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5431$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5432if ${lt_cv_nm_interface+:} false; then : 5433 $as_echo_n "(cached) " >&6 5434else 5435 lt_cv_nm_interface="BSD nm" 5436 echo "int some_variable = 0;" > conftest.$ac_ext 5437 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5438 (eval "$ac_compile" 2>conftest.err) 5439 cat conftest.err >&5 5440 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5441 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5442 cat conftest.err >&5 5443 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5444 cat conftest.out >&5 5445 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5446 lt_cv_nm_interface="MS dumpbin" 5447 fi 5448 rm -f conftest* 5449fi 5450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5451$as_echo "$lt_cv_nm_interface" >&6; } 5452 5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5454$as_echo_n "checking whether ln -s works... " >&6; } 5455LN_S=$as_ln_s 5456if test "$LN_S" = "ln -s"; then 5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5458$as_echo "yes" >&6; } 5459else 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5461$as_echo "no, using $LN_S" >&6; } 5462fi 5463 5464# find the maximum length of command line arguments 5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5466$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5467if ${lt_cv_sys_max_cmd_len+:} false; then : 5468 $as_echo_n "(cached) " >&6 5469else 5470 i=0 5471 teststring="ABCD" 5472 5473 case $build_os in 5474 msdosdjgpp*) 5475 # On DJGPP, this test can blow up pretty badly due to problems in libc 5476 # (any single argument exceeding 2000 bytes causes a buffer overrun 5477 # during glob expansion). Even if it were fixed, the result of this 5478 # check would be larger than it should be. 5479 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5480 ;; 5481 5482 gnu*) 5483 # Under GNU Hurd, this test is not required because there is 5484 # no limit to the length of command line arguments. 5485 # Libtool will interpret -1 as no limit whatsoever 5486 lt_cv_sys_max_cmd_len=-1; 5487 ;; 5488 5489 cygwin* | mingw* | cegcc*) 5490 # On Win9x/ME, this test blows up -- it succeeds, but takes 5491 # about 5 minutes as the teststring grows exponentially. 5492 # Worse, since 9x/ME are not pre-emptively multitasking, 5493 # you end up with a "frozen" computer, even though with patience 5494 # the test eventually succeeds (with a max line length of 256k). 5495 # Instead, let's just punt: use the minimum linelength reported by 5496 # all of the supported platforms: 8192 (on NT/2K/XP). 5497 lt_cv_sys_max_cmd_len=8192; 5498 ;; 5499 5500 mint*) 5501 # On MiNT this can take a long time and run out of memory. 5502 lt_cv_sys_max_cmd_len=8192; 5503 ;; 5504 5505 amigaos*) 5506 # On AmigaOS with pdksh, this test takes hours, literally. 5507 # So we just punt and use a minimum line length of 8192. 5508 lt_cv_sys_max_cmd_len=8192; 5509 ;; 5510 5511 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5512 # This has been around since 386BSD, at least. Likely further. 5513 if test -x /sbin/sysctl; then 5514 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5515 elif test -x /usr/sbin/sysctl; then 5516 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5517 else 5518 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5519 fi 5520 # And add a safety zone 5521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5523 ;; 5524 5525 interix*) 5526 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5527 lt_cv_sys_max_cmd_len=196608 5528 ;; 5529 5530 os2*) 5531 # The test takes a long time on OS/2. 5532 lt_cv_sys_max_cmd_len=8192 5533 ;; 5534 5535 osf*) 5536 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5537 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5538 # nice to cause kernel panics so lets avoid the loop below. 5539 # First set a reasonable default. 5540 lt_cv_sys_max_cmd_len=16384 5541 # 5542 if test -x /sbin/sysconfig; then 5543 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5544 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5545 esac 5546 fi 5547 ;; 5548 sco3.2v5*) 5549 lt_cv_sys_max_cmd_len=102400 5550 ;; 5551 sysv5* | sco5v6* | sysv4.2uw2*) 5552 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5553 if test -n "$kargmax"; then 5554 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5555 else 5556 lt_cv_sys_max_cmd_len=32768 5557 fi 5558 ;; 5559 *) 5560 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5561 if test -n "$lt_cv_sys_max_cmd_len"; then 5562 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5564 else 5565 # Make teststring a little bigger before we do anything with it. 5566 # a 1K string should be a reasonable start. 5567 for i in 1 2 3 4 5 6 7 8 ; do 5568 teststring=$teststring$teststring 5569 done 5570 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5571 # If test is not a shell built-in, we'll probably end up computing a 5572 # maximum length that is only half of the actual maximum length, but 5573 # we can't tell. 5574 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5575 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5576 test $i != 17 # 1/2 MB should be enough 5577 do 5578 i=`expr $i + 1` 5579 teststring=$teststring$teststring 5580 done 5581 # Only check the string length outside the loop. 5582 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5583 teststring= 5584 # Add a significant safety factor because C++ compilers can tack on 5585 # massive amounts of additional arguments before passing them to the 5586 # linker. It appears as though 1/2 is a usable value. 5587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5588 fi 5589 ;; 5590 esac 5591 5592fi 5593 5594if test -n $lt_cv_sys_max_cmd_len ; then 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5596$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5597else 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5599$as_echo "none" >&6; } 5600fi 5601max_cmd_len=$lt_cv_sys_max_cmd_len 5602 5603 5604 5605 5606 5607 5608: ${CP="cp -f"} 5609: ${MV="mv -f"} 5610: ${RM="rm -f"} 5611 5612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5613$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5614# Try some XSI features 5615xsi_shell=no 5616( _lt_dummy="a/b/c" 5617 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5618 = c,a/b,b/c, \ 5619 && eval 'test $(( 1 + 1 )) -eq 2 \ 5620 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5621 && xsi_shell=yes 5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5623$as_echo "$xsi_shell" >&6; } 5624 5625 5626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5627$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5628lt_shell_append=no 5629( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5630 >/dev/null 2>&1 \ 5631 && lt_shell_append=yes 5632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5633$as_echo "$lt_shell_append" >&6; } 5634 5635 5636if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5637 lt_unset=unset 5638else 5639 lt_unset=false 5640fi 5641 5642 5643 5644 5645 5646# test EBCDIC or ASCII 5647case `echo X|tr X '\101'` in 5648 A) # ASCII based system 5649 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5650 lt_SP2NL='tr \040 \012' 5651 lt_NL2SP='tr \015\012 \040\040' 5652 ;; 5653 *) # EBCDIC based system 5654 lt_SP2NL='tr \100 \n' 5655 lt_NL2SP='tr \r\n \100\100' 5656 ;; 5657esac 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5668$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5669if ${lt_cv_to_host_file_cmd+:} false; then : 5670 $as_echo_n "(cached) " >&6 5671else 5672 case $host in 5673 *-*-mingw* ) 5674 case $build in 5675 *-*-mingw* ) # actually msys 5676 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5677 ;; 5678 *-*-cygwin* ) 5679 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5680 ;; 5681 * ) # otherwise, assume *nix 5682 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5683 ;; 5684 esac 5685 ;; 5686 *-*-cygwin* ) 5687 case $build in 5688 *-*-mingw* ) # actually msys 5689 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5690 ;; 5691 *-*-cygwin* ) 5692 lt_cv_to_host_file_cmd=func_convert_file_noop 5693 ;; 5694 * ) # otherwise, assume *nix 5695 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5696 ;; 5697 esac 5698 ;; 5699 * ) # unhandled hosts (and "normal" native builds) 5700 lt_cv_to_host_file_cmd=func_convert_file_noop 5701 ;; 5702esac 5703 5704fi 5705 5706to_host_file_cmd=$lt_cv_to_host_file_cmd 5707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5708$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5709 5710 5711 5712 5713 5714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5715$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5716if ${lt_cv_to_tool_file_cmd+:} false; then : 5717 $as_echo_n "(cached) " >&6 5718else 5719 #assume ordinary cross tools, or native build. 5720lt_cv_to_tool_file_cmd=func_convert_file_noop 5721case $host in 5722 *-*-mingw* ) 5723 case $build in 5724 *-*-mingw* ) # actually msys 5725 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5726 ;; 5727 esac 5728 ;; 5729esac 5730 5731fi 5732 5733to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5735$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5736 5737 5738 5739 5740 5741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5742$as_echo_n "checking for $LD option to reload object files... " >&6; } 5743if ${lt_cv_ld_reload_flag+:} false; then : 5744 $as_echo_n "(cached) " >&6 5745else 5746 lt_cv_ld_reload_flag='-r' 5747fi 5748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5749$as_echo "$lt_cv_ld_reload_flag" >&6; } 5750reload_flag=$lt_cv_ld_reload_flag 5751case $reload_flag in 5752"" | " "*) ;; 5753*) reload_flag=" $reload_flag" ;; 5754esac 5755reload_cmds='$LD$reload_flag -o $output$reload_objs' 5756case $host_os in 5757 cygwin* | mingw* | pw32* | cegcc*) 5758 if test "$GCC" != yes; then 5759 reload_cmds=false 5760 fi 5761 ;; 5762 darwin*) 5763 if test "$GCC" = yes; then 5764 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5765 else 5766 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5767 fi 5768 ;; 5769esac 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779if test -n "$ac_tool_prefix"; then 5780 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5781set dummy ${ac_tool_prefix}objdump; ac_word=$2 5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5783$as_echo_n "checking for $ac_word... " >&6; } 5784if ${ac_cv_prog_OBJDUMP+:} false; then : 5785 $as_echo_n "(cached) " >&6 5786else 5787 if test -n "$OBJDUMP"; then 5788 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5789else 5790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5791for as_dir in $PATH 5792do 5793 IFS=$as_save_IFS 5794 test -z "$as_dir" && as_dir=. 5795 for ac_exec_ext in '' $ac_executable_extensions; do 5796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5797 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5799 break 2 5800 fi 5801done 5802 done 5803IFS=$as_save_IFS 5804 5805fi 5806fi 5807OBJDUMP=$ac_cv_prog_OBJDUMP 5808if test -n "$OBJDUMP"; then 5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5810$as_echo "$OBJDUMP" >&6; } 5811else 5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5813$as_echo "no" >&6; } 5814fi 5815 5816 5817fi 5818if test -z "$ac_cv_prog_OBJDUMP"; then 5819 ac_ct_OBJDUMP=$OBJDUMP 5820 # Extract the first word of "objdump", so it can be a program name with args. 5821set dummy objdump; ac_word=$2 5822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5823$as_echo_n "checking for $ac_word... " >&6; } 5824if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5825 $as_echo_n "(cached) " >&6 5826else 5827 if test -n "$ac_ct_OBJDUMP"; then 5828 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5829else 5830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5831for as_dir in $PATH 5832do 5833 IFS=$as_save_IFS 5834 test -z "$as_dir" && as_dir=. 5835 for ac_exec_ext in '' $ac_executable_extensions; do 5836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5837 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5839 break 2 5840 fi 5841done 5842 done 5843IFS=$as_save_IFS 5844 5845fi 5846fi 5847ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5848if test -n "$ac_ct_OBJDUMP"; then 5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5850$as_echo "$ac_ct_OBJDUMP" >&6; } 5851else 5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5853$as_echo "no" >&6; } 5854fi 5855 5856 if test "x$ac_ct_OBJDUMP" = x; then 5857 OBJDUMP="false" 5858 else 5859 case $cross_compiling:$ac_tool_warned in 5860yes:) 5861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5863ac_tool_warned=yes ;; 5864esac 5865 OBJDUMP=$ac_ct_OBJDUMP 5866 fi 5867else 5868 OBJDUMP="$ac_cv_prog_OBJDUMP" 5869fi 5870 5871test -z "$OBJDUMP" && OBJDUMP=objdump 5872 5873 5874 5875 5876 5877 5878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5879$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5880if ${lt_cv_deplibs_check_method+:} false; then : 5881 $as_echo_n "(cached) " >&6 5882else 5883 lt_cv_file_magic_cmd='$MAGIC_CMD' 5884lt_cv_file_magic_test_file= 5885lt_cv_deplibs_check_method='unknown' 5886# Need to set the preceding variable on all platforms that support 5887# interlibrary dependencies. 5888# 'none' -- dependencies not supported. 5889# `unknown' -- same as none, but documents that we really don't know. 5890# 'pass_all' -- all dependencies passed with no checks. 5891# 'test_compile' -- check by making test program. 5892# 'file_magic [[regex]]' -- check by looking for files in library path 5893# which responds to the $file_magic_cmd with a given extended regex. 5894# If you have `file' or equivalent on your system and you're not sure 5895# whether `pass_all' will *always* work, you probably want this one. 5896 5897case $host_os in 5898aix[4-9]*) 5899 lt_cv_deplibs_check_method=pass_all 5900 ;; 5901 5902beos*) 5903 lt_cv_deplibs_check_method=pass_all 5904 ;; 5905 5906bsdi[45]*) 5907 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5908 lt_cv_file_magic_cmd='/usr/bin/file -L' 5909 lt_cv_file_magic_test_file=/shlib/libc.so 5910 ;; 5911 5912cygwin*) 5913 # func_win32_libid is a shell function defined in ltmain.sh 5914 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5915 lt_cv_file_magic_cmd='func_win32_libid' 5916 ;; 5917 5918mingw* | pw32*) 5919 # Base MSYS/MinGW do not provide the 'file' command needed by 5920 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5921 # unless we find 'file', for example because we are cross-compiling. 5922 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5923 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5924 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5925 lt_cv_file_magic_cmd='func_win32_libid' 5926 else 5927 # Keep this pattern in sync with the one in func_win32_libid. 5928 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5929 lt_cv_file_magic_cmd='$OBJDUMP -f' 5930 fi 5931 ;; 5932 5933cegcc*) 5934 # use the weaker test based on 'objdump'. See mingw*. 5935 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5936 lt_cv_file_magic_cmd='$OBJDUMP -f' 5937 ;; 5938 5939darwin* | rhapsody*) 5940 lt_cv_deplibs_check_method=pass_all 5941 ;; 5942 5943freebsd* | dragonfly*) 5944 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5945 case $host_cpu in 5946 i*86 ) 5947 # Not sure whether the presence of OpenBSD here was a mistake. 5948 # Let's accept both of them until this is cleared up. 5949 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5950 lt_cv_file_magic_cmd=/usr/bin/file 5951 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5952 ;; 5953 esac 5954 else 5955 lt_cv_deplibs_check_method=pass_all 5956 fi 5957 ;; 5958 5959gnu*) 5960 lt_cv_deplibs_check_method=pass_all 5961 ;; 5962 5963haiku*) 5964 lt_cv_deplibs_check_method=pass_all 5965 ;; 5966 5967hpux10.20* | hpux11*) 5968 lt_cv_file_magic_cmd=/usr/bin/file 5969 case $host_cpu in 5970 ia64*) 5971 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5972 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5973 ;; 5974 hppa*64*) 5975 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]' 5976 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5977 ;; 5978 *) 5979 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5980 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5981 ;; 5982 esac 5983 ;; 5984 5985interix[3-9]*) 5986 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5988 ;; 5989 5990irix5* | irix6* | nonstopux*) 5991 case $LD in 5992 *-32|*"-32 ") libmagic=32-bit;; 5993 *-n32|*"-n32 ") libmagic=N32;; 5994 *-64|*"-64 ") libmagic=64-bit;; 5995 *) libmagic=never-match;; 5996 esac 5997 lt_cv_deplibs_check_method=pass_all 5998 ;; 5999 6000# This must be glibc/ELF. 6001linux* | k*bsd*-gnu | kopensolaris*-gnu) 6002 lt_cv_deplibs_check_method=pass_all 6003 ;; 6004 6005netbsd*) 6006 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6008 else 6009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6010 fi 6011 ;; 6012 6013newos6*) 6014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6015 lt_cv_file_magic_cmd=/usr/bin/file 6016 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6017 ;; 6018 6019*nto* | *qnx*) 6020 lt_cv_deplibs_check_method=pass_all 6021 ;; 6022 6023openbsd*) 6024 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6026 else 6027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6028 fi 6029 ;; 6030 6031osf3* | osf4* | osf5*) 6032 lt_cv_deplibs_check_method=pass_all 6033 ;; 6034 6035rdos*) 6036 lt_cv_deplibs_check_method=pass_all 6037 ;; 6038 6039solaris*) 6040 lt_cv_deplibs_check_method=pass_all 6041 ;; 6042 6043sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6044 lt_cv_deplibs_check_method=pass_all 6045 ;; 6046 6047sysv4 | sysv4.3*) 6048 case $host_vendor in 6049 motorola) 6050 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]' 6051 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6052 ;; 6053 ncr) 6054 lt_cv_deplibs_check_method=pass_all 6055 ;; 6056 sequent) 6057 lt_cv_file_magic_cmd='/bin/file' 6058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6059 ;; 6060 sni) 6061 lt_cv_file_magic_cmd='/bin/file' 6062 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6063 lt_cv_file_magic_test_file=/lib/libc.so 6064 ;; 6065 siemens) 6066 lt_cv_deplibs_check_method=pass_all 6067 ;; 6068 pc) 6069 lt_cv_deplibs_check_method=pass_all 6070 ;; 6071 esac 6072 ;; 6073 6074tpf*) 6075 lt_cv_deplibs_check_method=pass_all 6076 ;; 6077esac 6078 6079fi 6080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6081$as_echo "$lt_cv_deplibs_check_method" >&6; } 6082 6083file_magic_glob= 6084want_nocaseglob=no 6085if test "$build" = "$host"; then 6086 case $host_os in 6087 mingw* | pw32*) 6088 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6089 want_nocaseglob=yes 6090 else 6091 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6092 fi 6093 ;; 6094 esac 6095fi 6096 6097file_magic_cmd=$lt_cv_file_magic_cmd 6098deplibs_check_method=$lt_cv_deplibs_check_method 6099test -z "$deplibs_check_method" && deplibs_check_method=unknown 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122if test -n "$ac_tool_prefix"; then 6123 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6124set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6126$as_echo_n "checking for $ac_word... " >&6; } 6127if ${ac_cv_prog_DLLTOOL+:} false; then : 6128 $as_echo_n "(cached) " >&6 6129else 6130 if test -n "$DLLTOOL"; then 6131 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6132else 6133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6134for as_dir in $PATH 6135do 6136 IFS=$as_save_IFS 6137 test -z "$as_dir" && as_dir=. 6138 for ac_exec_ext in '' $ac_executable_extensions; do 6139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6140 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6142 break 2 6143 fi 6144done 6145 done 6146IFS=$as_save_IFS 6147 6148fi 6149fi 6150DLLTOOL=$ac_cv_prog_DLLTOOL 6151if test -n "$DLLTOOL"; then 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6153$as_echo "$DLLTOOL" >&6; } 6154else 6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6156$as_echo "no" >&6; } 6157fi 6158 6159 6160fi 6161if test -z "$ac_cv_prog_DLLTOOL"; then 6162 ac_ct_DLLTOOL=$DLLTOOL 6163 # Extract the first word of "dlltool", so it can be a program name with args. 6164set dummy dlltool; ac_word=$2 6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6166$as_echo_n "checking for $ac_word... " >&6; } 6167if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6168 $as_echo_n "(cached) " >&6 6169else 6170 if test -n "$ac_ct_DLLTOOL"; then 6171 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6172else 6173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6174for as_dir in $PATH 6175do 6176 IFS=$as_save_IFS 6177 test -z "$as_dir" && as_dir=. 6178 for ac_exec_ext in '' $ac_executable_extensions; do 6179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6180 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6182 break 2 6183 fi 6184done 6185 done 6186IFS=$as_save_IFS 6187 6188fi 6189fi 6190ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6191if test -n "$ac_ct_DLLTOOL"; then 6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6193$as_echo "$ac_ct_DLLTOOL" >&6; } 6194else 6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6196$as_echo "no" >&6; } 6197fi 6198 6199 if test "x$ac_ct_DLLTOOL" = x; then 6200 DLLTOOL="false" 6201 else 6202 case $cross_compiling:$ac_tool_warned in 6203yes:) 6204{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6205$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6206ac_tool_warned=yes ;; 6207esac 6208 DLLTOOL=$ac_ct_DLLTOOL 6209 fi 6210else 6211 DLLTOOL="$ac_cv_prog_DLLTOOL" 6212fi 6213 6214test -z "$DLLTOOL" && DLLTOOL=dlltool 6215 6216 6217 6218 6219 6220 6221 6222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6223$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6224if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6225 $as_echo_n "(cached) " >&6 6226else 6227 lt_cv_sharedlib_from_linklib_cmd='unknown' 6228 6229case $host_os in 6230cygwin* | mingw* | pw32* | cegcc*) 6231 # two different shell functions defined in ltmain.sh 6232 # decide which to use based on capabilities of $DLLTOOL 6233 case `$DLLTOOL --help 2>&1` in 6234 *--identify-strict*) 6235 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6236 ;; 6237 *) 6238 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6239 ;; 6240 esac 6241 ;; 6242*) 6243 # fallback: assume linklib IS sharedlib 6244 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6245 ;; 6246esac 6247 6248fi 6249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6250$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6251sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6252test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6253 6254 6255 6256 6257 6258 6259 6260if test -n "$ac_tool_prefix"; then 6261 for ac_prog in ar 6262 do 6263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6264set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6266$as_echo_n "checking for $ac_word... " >&6; } 6267if ${ac_cv_prog_AR+:} false; then : 6268 $as_echo_n "(cached) " >&6 6269else 6270 if test -n "$AR"; then 6271 ac_cv_prog_AR="$AR" # Let the user override the test. 6272else 6273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6274for as_dir in $PATH 6275do 6276 IFS=$as_save_IFS 6277 test -z "$as_dir" && as_dir=. 6278 for ac_exec_ext in '' $ac_executable_extensions; do 6279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6280 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6282 break 2 6283 fi 6284done 6285 done 6286IFS=$as_save_IFS 6287 6288fi 6289fi 6290AR=$ac_cv_prog_AR 6291if test -n "$AR"; then 6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6293$as_echo "$AR" >&6; } 6294else 6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6296$as_echo "no" >&6; } 6297fi 6298 6299 6300 test -n "$AR" && break 6301 done 6302fi 6303if test -z "$AR"; then 6304 ac_ct_AR=$AR 6305 for ac_prog in ar 6306do 6307 # Extract the first word of "$ac_prog", so it can be a program name with args. 6308set dummy $ac_prog; ac_word=$2 6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6310$as_echo_n "checking for $ac_word... " >&6; } 6311if ${ac_cv_prog_ac_ct_AR+:} false; then : 6312 $as_echo_n "(cached) " >&6 6313else 6314 if test -n "$ac_ct_AR"; then 6315 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6316else 6317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6318for as_dir in $PATH 6319do 6320 IFS=$as_save_IFS 6321 test -z "$as_dir" && as_dir=. 6322 for ac_exec_ext in '' $ac_executable_extensions; do 6323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6324 ac_cv_prog_ac_ct_AR="$ac_prog" 6325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6326 break 2 6327 fi 6328done 6329 done 6330IFS=$as_save_IFS 6331 6332fi 6333fi 6334ac_ct_AR=$ac_cv_prog_ac_ct_AR 6335if test -n "$ac_ct_AR"; then 6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6337$as_echo "$ac_ct_AR" >&6; } 6338else 6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6340$as_echo "no" >&6; } 6341fi 6342 6343 6344 test -n "$ac_ct_AR" && break 6345done 6346 6347 if test "x$ac_ct_AR" = x; then 6348 AR="false" 6349 else 6350 case $cross_compiling:$ac_tool_warned in 6351yes:) 6352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6354ac_tool_warned=yes ;; 6355esac 6356 AR=$ac_ct_AR 6357 fi 6358fi 6359 6360: ${AR=ar} 6361: ${AR_FLAGS=cru} 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6374$as_echo_n "checking for archiver @FILE support... " >&6; } 6375if ${lt_cv_ar_at_file+:} false; then : 6376 $as_echo_n "(cached) " >&6 6377else 6378 lt_cv_ar_at_file=no 6379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6380/* end confdefs.h. */ 6381 6382int 6383main () 6384{ 6385 6386 ; 6387 return 0; 6388} 6389_ACEOF 6390if ac_fn_c_try_compile "$LINENO"; then : 6391 echo conftest.$ac_objext > conftest.lst 6392 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6394 (eval $lt_ar_try) 2>&5 6395 ac_status=$? 6396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6397 test $ac_status = 0; } 6398 if test "$ac_status" -eq 0; then 6399 # Ensure the archiver fails upon bogus file names. 6400 rm -f conftest.$ac_objext libconftest.a 6401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6402 (eval $lt_ar_try) 2>&5 6403 ac_status=$? 6404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6405 test $ac_status = 0; } 6406 if test "$ac_status" -ne 0; then 6407 lt_cv_ar_at_file=@ 6408 fi 6409 fi 6410 rm -f conftest.* libconftest.a 6411 6412fi 6413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6414 6415fi 6416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6417$as_echo "$lt_cv_ar_at_file" >&6; } 6418 6419if test "x$lt_cv_ar_at_file" = xno; then 6420 archiver_list_spec= 6421else 6422 archiver_list_spec=$lt_cv_ar_at_file 6423fi 6424 6425 6426 6427 6428 6429 6430 6431if test -n "$ac_tool_prefix"; then 6432 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6433set dummy ${ac_tool_prefix}strip; ac_word=$2 6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6435$as_echo_n "checking for $ac_word... " >&6; } 6436if ${ac_cv_prog_STRIP+:} false; then : 6437 $as_echo_n "(cached) " >&6 6438else 6439 if test -n "$STRIP"; then 6440 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6441else 6442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6443for as_dir in $PATH 6444do 6445 IFS=$as_save_IFS 6446 test -z "$as_dir" && as_dir=. 6447 for ac_exec_ext in '' $ac_executable_extensions; do 6448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6449 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6451 break 2 6452 fi 6453done 6454 done 6455IFS=$as_save_IFS 6456 6457fi 6458fi 6459STRIP=$ac_cv_prog_STRIP 6460if test -n "$STRIP"; then 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6462$as_echo "$STRIP" >&6; } 6463else 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6465$as_echo "no" >&6; } 6466fi 6467 6468 6469fi 6470if test -z "$ac_cv_prog_STRIP"; then 6471 ac_ct_STRIP=$STRIP 6472 # Extract the first word of "strip", so it can be a program name with args. 6473set dummy strip; ac_word=$2 6474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6475$as_echo_n "checking for $ac_word... " >&6; } 6476if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6477 $as_echo_n "(cached) " >&6 6478else 6479 if test -n "$ac_ct_STRIP"; then 6480 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6481else 6482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6483for as_dir in $PATH 6484do 6485 IFS=$as_save_IFS 6486 test -z "$as_dir" && as_dir=. 6487 for ac_exec_ext in '' $ac_executable_extensions; do 6488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6489 ac_cv_prog_ac_ct_STRIP="strip" 6490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6491 break 2 6492 fi 6493done 6494 done 6495IFS=$as_save_IFS 6496 6497fi 6498fi 6499ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6500if test -n "$ac_ct_STRIP"; then 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6502$as_echo "$ac_ct_STRIP" >&6; } 6503else 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6505$as_echo "no" >&6; } 6506fi 6507 6508 if test "x$ac_ct_STRIP" = x; then 6509 STRIP=":" 6510 else 6511 case $cross_compiling:$ac_tool_warned in 6512yes:) 6513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6515ac_tool_warned=yes ;; 6516esac 6517 STRIP=$ac_ct_STRIP 6518 fi 6519else 6520 STRIP="$ac_cv_prog_STRIP" 6521fi 6522 6523test -z "$STRIP" && STRIP=: 6524 6525 6526 6527 6528 6529 6530if test -n "$ac_tool_prefix"; then 6531 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6532set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6534$as_echo_n "checking for $ac_word... " >&6; } 6535if ${ac_cv_prog_RANLIB+:} false; then : 6536 $as_echo_n "(cached) " >&6 6537else 6538 if test -n "$RANLIB"; then 6539 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6540else 6541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6542for as_dir in $PATH 6543do 6544 IFS=$as_save_IFS 6545 test -z "$as_dir" && as_dir=. 6546 for ac_exec_ext in '' $ac_executable_extensions; do 6547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6548 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6550 break 2 6551 fi 6552done 6553 done 6554IFS=$as_save_IFS 6555 6556fi 6557fi 6558RANLIB=$ac_cv_prog_RANLIB 6559if test -n "$RANLIB"; then 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6561$as_echo "$RANLIB" >&6; } 6562else 6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6564$as_echo "no" >&6; } 6565fi 6566 6567 6568fi 6569if test -z "$ac_cv_prog_RANLIB"; then 6570 ac_ct_RANLIB=$RANLIB 6571 # Extract the first word of "ranlib", so it can be a program name with args. 6572set dummy ranlib; ac_word=$2 6573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6574$as_echo_n "checking for $ac_word... " >&6; } 6575if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6576 $as_echo_n "(cached) " >&6 6577else 6578 if test -n "$ac_ct_RANLIB"; then 6579 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6580else 6581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6582for as_dir in $PATH 6583do 6584 IFS=$as_save_IFS 6585 test -z "$as_dir" && as_dir=. 6586 for ac_exec_ext in '' $ac_executable_extensions; do 6587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6588 ac_cv_prog_ac_ct_RANLIB="ranlib" 6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6590 break 2 6591 fi 6592done 6593 done 6594IFS=$as_save_IFS 6595 6596fi 6597fi 6598ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6599if test -n "$ac_ct_RANLIB"; then 6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6601$as_echo "$ac_ct_RANLIB" >&6; } 6602else 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6604$as_echo "no" >&6; } 6605fi 6606 6607 if test "x$ac_ct_RANLIB" = x; then 6608 RANLIB=":" 6609 else 6610 case $cross_compiling:$ac_tool_warned in 6611yes:) 6612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6614ac_tool_warned=yes ;; 6615esac 6616 RANLIB=$ac_ct_RANLIB 6617 fi 6618else 6619 RANLIB="$ac_cv_prog_RANLIB" 6620fi 6621 6622test -z "$RANLIB" && RANLIB=: 6623 6624 6625 6626 6627 6628 6629# Determine commands to create old-style static archives. 6630old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6631old_postinstall_cmds='chmod 644 $oldlib' 6632old_postuninstall_cmds= 6633 6634if test -n "$RANLIB"; then 6635 case $host_os in 6636 openbsd*) 6637 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6638 ;; 6639 *) 6640 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6641 ;; 6642 esac 6643 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6644fi 6645 6646case $host_os in 6647 darwin*) 6648 lock_old_archive_extraction=yes ;; 6649 *) 6650 lock_old_archive_extraction=no ;; 6651esac 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673for ac_prog in gawk mawk nawk awk 6674do 6675 # Extract the first word of "$ac_prog", so it can be a program name with args. 6676set dummy $ac_prog; ac_word=$2 6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6678$as_echo_n "checking for $ac_word... " >&6; } 6679if ${ac_cv_prog_AWK+:} false; then : 6680 $as_echo_n "(cached) " >&6 6681else 6682 if test -n "$AWK"; then 6683 ac_cv_prog_AWK="$AWK" # Let the user override the test. 6684else 6685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6686for as_dir in $PATH 6687do 6688 IFS=$as_save_IFS 6689 test -z "$as_dir" && as_dir=. 6690 for ac_exec_ext in '' $ac_executable_extensions; do 6691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6692 ac_cv_prog_AWK="$ac_prog" 6693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6694 break 2 6695 fi 6696done 6697 done 6698IFS=$as_save_IFS 6699 6700fi 6701fi 6702AWK=$ac_cv_prog_AWK 6703if test -n "$AWK"; then 6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 6705$as_echo "$AWK" >&6; } 6706else 6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6708$as_echo "no" >&6; } 6709fi 6710 6711 6712 test -n "$AWK" && break 6713done 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733# If no C compiler was specified, use CC. 6734LTCC=${LTCC-"$CC"} 6735 6736# If no C compiler flags were specified, use CFLAGS. 6737LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6738 6739# Allow CC to be a program name with arguments. 6740compiler=$CC 6741 6742 6743# Check for command to grab the raw symbol name followed by C symbol from nm. 6744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6745$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6746if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6747 $as_echo_n "(cached) " >&6 6748else 6749 6750# These are sane defaults that work on at least a few old systems. 6751# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6752 6753# Character class describing NM global symbol codes. 6754symcode='[BCDEGRST]' 6755 6756# Regexp to match symbols that can be accessed directly from C. 6757sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6758 6759# Define system-specific variables. 6760case $host_os in 6761aix*) 6762 symcode='[BCDT]' 6763 ;; 6764cygwin* | mingw* | pw32* | cegcc*) 6765 symcode='[ABCDGISTW]' 6766 ;; 6767hpux*) 6768 if test "$host_cpu" = ia64; then 6769 symcode='[ABCDEGRST]' 6770 fi 6771 ;; 6772irix* | nonstopux*) 6773 symcode='[BCDEGRST]' 6774 ;; 6775osf*) 6776 symcode='[BCDEGQRST]' 6777 ;; 6778solaris*) 6779 symcode='[BDRT]' 6780 ;; 6781sco3.2v5*) 6782 symcode='[DT]' 6783 ;; 6784sysv4.2uw2*) 6785 symcode='[DT]' 6786 ;; 6787sysv5* | sco5v6* | unixware* | OpenUNIX*) 6788 symcode='[ABDT]' 6789 ;; 6790sysv4) 6791 symcode='[DFNSTU]' 6792 ;; 6793esac 6794 6795# If we're using GNU nm, then use its standard symbol codes. 6796case `$NM -V 2>&1` in 6797*GNU* | *'with BFD'*) 6798 symcode='[ABCDGIRSTW]' ;; 6799esac 6800 6801# Transform an extracted symbol line into a proper C declaration. 6802# Some systems (esp. on ia64) link data and code symbols differently, 6803# so use this general approach. 6804lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6805 6806# Transform an extracted symbol line into symbol name and symbol address 6807lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6808lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6809 6810# Handle CRLF in mingw tool chain 6811opt_cr= 6812case $build_os in 6813mingw*) 6814 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6815 ;; 6816esac 6817 6818# Try without a prefix underscore, then with it. 6819for ac_symprfx in "" "_"; do 6820 6821 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6822 symxfrm="\\1 $ac_symprfx\\2 \\2" 6823 6824 # Write the raw and C identifiers. 6825 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6826 # Fake it for dumpbin and say T for any non-static function 6827 # and D for any global variable. 6828 # Also find C++ and __fastcall symbols from MSVC++, 6829 # which start with @ or ?. 6830 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6831" {last_section=section; section=\$ 3};"\ 6832" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6833" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6834" \$ 0!~/External *\|/{next};"\ 6835" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6836" {if(hide[section]) next};"\ 6837" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6838" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6839" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6840" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6841" ' prfx=^$ac_symprfx" 6842 else 6843 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6844 fi 6845 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6846 6847 # Check to see that the pipe works correctly. 6848 pipe_works=no 6849 6850 rm -f conftest* 6851 cat > conftest.$ac_ext <<_LT_EOF 6852#ifdef __cplusplus 6853extern "C" { 6854#endif 6855char nm_test_var; 6856void nm_test_func(void); 6857void nm_test_func(void){} 6858#ifdef __cplusplus 6859} 6860#endif 6861int main(){nm_test_var='a';nm_test_func();return(0);} 6862_LT_EOF 6863 6864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6865 (eval $ac_compile) 2>&5 6866 ac_status=$? 6867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6868 test $ac_status = 0; }; then 6869 # Now try to grab the symbols. 6870 nlist=conftest.nm 6871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6872 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6873 ac_status=$? 6874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6875 test $ac_status = 0; } && test -s "$nlist"; then 6876 # Try sorting and uniquifying the output. 6877 if sort "$nlist" | uniq > "$nlist"T; then 6878 mv -f "$nlist"T "$nlist" 6879 else 6880 rm -f "$nlist"T 6881 fi 6882 6883 # Make sure that we snagged all the symbols we need. 6884 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6885 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6886 cat <<_LT_EOF > conftest.$ac_ext 6887/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6888#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6889/* DATA imports from DLLs on WIN32 con't be const, because runtime 6890 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6891# define LT_DLSYM_CONST 6892#elif defined(__osf__) 6893/* This system does not cope well with relocations in const data. */ 6894# define LT_DLSYM_CONST 6895#else 6896# define LT_DLSYM_CONST const 6897#endif 6898 6899#ifdef __cplusplus 6900extern "C" { 6901#endif 6902 6903_LT_EOF 6904 # Now generate the symbol file. 6905 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6906 6907 cat <<_LT_EOF >> conftest.$ac_ext 6908 6909/* The mapping between symbol names and symbols. */ 6910LT_DLSYM_CONST struct { 6911 const char *name; 6912 void *address; 6913} 6914lt__PROGRAM__LTX_preloaded_symbols[] = 6915{ 6916 { "@PROGRAM@", (void *) 0 }, 6917_LT_EOF 6918 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6919 cat <<\_LT_EOF >> conftest.$ac_ext 6920 {0, (void *) 0} 6921}; 6922 6923/* This works around a problem in FreeBSD linker */ 6924#ifdef FREEBSD_WORKAROUND 6925static const void *lt_preloaded_setup() { 6926 return lt__PROGRAM__LTX_preloaded_symbols; 6927} 6928#endif 6929 6930#ifdef __cplusplus 6931} 6932#endif 6933_LT_EOF 6934 # Now try linking the two files. 6935 mv conftest.$ac_objext conftstm.$ac_objext 6936 lt_globsym_save_LIBS=$LIBS 6937 lt_globsym_save_CFLAGS=$CFLAGS 6938 LIBS="conftstm.$ac_objext" 6939 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6941 (eval $ac_link) 2>&5 6942 ac_status=$? 6943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6944 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6945 pipe_works=yes 6946 fi 6947 LIBS=$lt_globsym_save_LIBS 6948 CFLAGS=$lt_globsym_save_CFLAGS 6949 else 6950 echo "cannot find nm_test_func in $nlist" >&5 6951 fi 6952 else 6953 echo "cannot find nm_test_var in $nlist" >&5 6954 fi 6955 else 6956 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6957 fi 6958 else 6959 echo "$progname: failed program was:" >&5 6960 cat conftest.$ac_ext >&5 6961 fi 6962 rm -rf conftest* conftst* 6963 6964 # Do not use the global_symbol_pipe unless it works. 6965 if test "$pipe_works" = yes; then 6966 break 6967 else 6968 lt_cv_sys_global_symbol_pipe= 6969 fi 6970done 6971 6972fi 6973 6974if test -z "$lt_cv_sys_global_symbol_pipe"; then 6975 lt_cv_sys_global_symbol_to_cdecl= 6976fi 6977if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6979$as_echo "failed" >&6; } 6980else 6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6982$as_echo "ok" >&6; } 6983fi 6984 6985# Response file support. 6986if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6987 nm_file_list_spec='@' 6988elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6989 nm_file_list_spec='@' 6990fi 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7019$as_echo_n "checking for sysroot... " >&6; } 7020 7021# Check whether --with-sysroot was given. 7022if test "${with_sysroot+set}" = set; then : 7023 withval=$with_sysroot; 7024else 7025 with_sysroot=no 7026fi 7027 7028 7029lt_sysroot= 7030case ${with_sysroot} in #( 7031 yes) 7032 if test "$GCC" = yes; then 7033 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7034 fi 7035 ;; #( 7036 /*) 7037 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7038 ;; #( 7039 no|'') 7040 ;; #( 7041 *) 7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7043$as_echo "${with_sysroot}" >&6; } 7044 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7045 ;; 7046esac 7047 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7049$as_echo "${lt_sysroot:-no}" >&6; } 7050 7051 7052 7053 7054 7055# Check whether --enable-libtool-lock was given. 7056if test "${enable_libtool_lock+set}" = set; then : 7057 enableval=$enable_libtool_lock; 7058fi 7059 7060test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7061 7062# Some flags need to be propagated to the compiler or linker for good 7063# libtool support. 7064case $host in 7065ia64-*-hpux*) 7066 # Find out which ABI we are using. 7067 echo 'int i;' > conftest.$ac_ext 7068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7069 (eval $ac_compile) 2>&5 7070 ac_status=$? 7071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7072 test $ac_status = 0; }; then 7073 case `/usr/bin/file conftest.$ac_objext` in 7074 *ELF-32*) 7075 HPUX_IA64_MODE="32" 7076 ;; 7077 *ELF-64*) 7078 HPUX_IA64_MODE="64" 7079 ;; 7080 esac 7081 fi 7082 rm -rf conftest* 7083 ;; 7084*-*-irix6*) 7085 # Find out which ABI we are using. 7086 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7088 (eval $ac_compile) 2>&5 7089 ac_status=$? 7090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7091 test $ac_status = 0; }; then 7092 if test "$lt_cv_prog_gnu_ld" = yes; then 7093 case `/usr/bin/file conftest.$ac_objext` in 7094 *32-bit*) 7095 LD="${LD-ld} -melf32bsmip" 7096 ;; 7097 *N32*) 7098 LD="${LD-ld} -melf32bmipn32" 7099 ;; 7100 *64-bit*) 7101 LD="${LD-ld} -melf64bmip" 7102 ;; 7103 esac 7104 else 7105 case `/usr/bin/file conftest.$ac_objext` in 7106 *32-bit*) 7107 LD="${LD-ld} -32" 7108 ;; 7109 *N32*) 7110 LD="${LD-ld} -n32" 7111 ;; 7112 *64-bit*) 7113 LD="${LD-ld} -64" 7114 ;; 7115 esac 7116 fi 7117 fi 7118 rm -rf conftest* 7119 ;; 7120 7121x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7122s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7123 # Find out which ABI we are using. 7124 echo 'int i;' > conftest.$ac_ext 7125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7126 (eval $ac_compile) 2>&5 7127 ac_status=$? 7128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7129 test $ac_status = 0; }; then 7130 case `/usr/bin/file conftest.o` in 7131 *32-bit*) 7132 case $host in 7133 x86_64-*kfreebsd*-gnu) 7134 LD="${LD-ld} -m elf_i386_fbsd" 7135 ;; 7136 x86_64-*linux*) 7137 LD="${LD-ld} -m elf_i386" 7138 ;; 7139 ppc64-*linux*|powerpc64-*linux*) 7140 LD="${LD-ld} -m elf32ppclinux" 7141 ;; 7142 s390x-*linux*) 7143 LD="${LD-ld} -m elf_s390" 7144 ;; 7145 sparc64-*linux*) 7146 LD="${LD-ld} -m elf32_sparc" 7147 ;; 7148 esac 7149 ;; 7150 *64-bit*) 7151 case $host in 7152 x86_64-*kfreebsd*-gnu) 7153 LD="${LD-ld} -m elf_x86_64_fbsd" 7154 ;; 7155 x86_64-*linux*) 7156 LD="${LD-ld} -m elf_x86_64" 7157 ;; 7158 ppc*-*linux*|powerpc*-*linux*) 7159 LD="${LD-ld} -m elf64ppc" 7160 ;; 7161 s390*-*linux*|s390*-*tpf*) 7162 LD="${LD-ld} -m elf64_s390" 7163 ;; 7164 sparc*-*linux*) 7165 LD="${LD-ld} -m elf64_sparc" 7166 ;; 7167 esac 7168 ;; 7169 esac 7170 fi 7171 rm -rf conftest* 7172 ;; 7173 7174*-*-sco3.2v5*) 7175 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7176 SAVE_CFLAGS="$CFLAGS" 7177 CFLAGS="$CFLAGS -belf" 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7179$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7180if ${lt_cv_cc_needs_belf+:} false; then : 7181 $as_echo_n "(cached) " >&6 7182else 7183 ac_ext=c 7184ac_cpp='$CPP $CPPFLAGS' 7185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7187ac_compiler_gnu=$ac_cv_c_compiler_gnu 7188 7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7190/* end confdefs.h. */ 7191 7192int 7193main () 7194{ 7195 7196 ; 7197 return 0; 7198} 7199_ACEOF 7200if ac_fn_c_try_link "$LINENO"; then : 7201 lt_cv_cc_needs_belf=yes 7202else 7203 lt_cv_cc_needs_belf=no 7204fi 7205rm -f core conftest.err conftest.$ac_objext \ 7206 conftest$ac_exeext conftest.$ac_ext 7207 ac_ext=c 7208ac_cpp='$CPP $CPPFLAGS' 7209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7211ac_compiler_gnu=$ac_cv_c_compiler_gnu 7212 7213fi 7214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7215$as_echo "$lt_cv_cc_needs_belf" >&6; } 7216 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7217 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7218 CFLAGS="$SAVE_CFLAGS" 7219 fi 7220 ;; 7221*-*solaris*) 7222 # Find out which ABI we are using. 7223 echo 'int i;' > conftest.$ac_ext 7224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7225 (eval $ac_compile) 2>&5 7226 ac_status=$? 7227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7228 test $ac_status = 0; }; then 7229 case `/usr/bin/file conftest.o` in 7230 *64-bit*) 7231 case $lt_cv_prog_gnu_ld in 7232 yes*) 7233 case $host in 7234 i?86-*-solaris*) 7235 LD="${LD-ld} -m elf_x86_64" 7236 ;; 7237 sparc*-*-solaris*) 7238 LD="${LD-ld} -m elf64_sparc" 7239 ;; 7240 esac 7241 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7242 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7243 LD="${LD-ld}_sol2" 7244 fi 7245 ;; 7246 *) 7247 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7248 LD="${LD-ld} -64" 7249 fi 7250 ;; 7251 esac 7252 ;; 7253 esac 7254 fi 7255 rm -rf conftest* 7256 ;; 7257esac 7258 7259need_locks="$enable_libtool_lock" 7260 7261if test -n "$ac_tool_prefix"; then 7262 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7263set dummy ${ac_tool_prefix}mt; ac_word=$2 7264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7265$as_echo_n "checking for $ac_word... " >&6; } 7266if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7267 $as_echo_n "(cached) " >&6 7268else 7269 if test -n "$MANIFEST_TOOL"; then 7270 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7271else 7272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7273for as_dir in $PATH 7274do 7275 IFS=$as_save_IFS 7276 test -z "$as_dir" && as_dir=. 7277 for ac_exec_ext in '' $ac_executable_extensions; do 7278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7279 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7281 break 2 7282 fi 7283done 7284 done 7285IFS=$as_save_IFS 7286 7287fi 7288fi 7289MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7290if test -n "$MANIFEST_TOOL"; then 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7292$as_echo "$MANIFEST_TOOL" >&6; } 7293else 7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7295$as_echo "no" >&6; } 7296fi 7297 7298 7299fi 7300if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7301 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7302 # Extract the first word of "mt", so it can be a program name with args. 7303set dummy mt; ac_word=$2 7304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7305$as_echo_n "checking for $ac_word... " >&6; } 7306if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7307 $as_echo_n "(cached) " >&6 7308else 7309 if test -n "$ac_ct_MANIFEST_TOOL"; then 7310 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7311else 7312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7313for as_dir in $PATH 7314do 7315 IFS=$as_save_IFS 7316 test -z "$as_dir" && as_dir=. 7317 for ac_exec_ext in '' $ac_executable_extensions; do 7318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7319 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7321 break 2 7322 fi 7323done 7324 done 7325IFS=$as_save_IFS 7326 7327fi 7328fi 7329ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7330if test -n "$ac_ct_MANIFEST_TOOL"; then 7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7332$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7333else 7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7335$as_echo "no" >&6; } 7336fi 7337 7338 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7339 MANIFEST_TOOL=":" 7340 else 7341 case $cross_compiling:$ac_tool_warned in 7342yes:) 7343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7345ac_tool_warned=yes ;; 7346esac 7347 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7348 fi 7349else 7350 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7351fi 7352 7353test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7355$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7356if ${lt_cv_path_mainfest_tool+:} false; then : 7357 $as_echo_n "(cached) " >&6 7358else 7359 lt_cv_path_mainfest_tool=no 7360 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7361 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7362 cat conftest.err >&5 7363 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7364 lt_cv_path_mainfest_tool=yes 7365 fi 7366 rm -f conftest* 7367fi 7368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7369$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7370if test "x$lt_cv_path_mainfest_tool" != xyes; then 7371 MANIFEST_TOOL=: 7372fi 7373 7374 7375 7376 7377 7378 7379 case $host_os in 7380 rhapsody* | darwin*) 7381 if test -n "$ac_tool_prefix"; then 7382 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7383set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7385$as_echo_n "checking for $ac_word... " >&6; } 7386if ${ac_cv_prog_DSYMUTIL+:} false; then : 7387 $as_echo_n "(cached) " >&6 7388else 7389 if test -n "$DSYMUTIL"; then 7390 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7391else 7392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7393for as_dir in $PATH 7394do 7395 IFS=$as_save_IFS 7396 test -z "$as_dir" && as_dir=. 7397 for ac_exec_ext in '' $ac_executable_extensions; do 7398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7399 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7401 break 2 7402 fi 7403done 7404 done 7405IFS=$as_save_IFS 7406 7407fi 7408fi 7409DSYMUTIL=$ac_cv_prog_DSYMUTIL 7410if test -n "$DSYMUTIL"; then 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7412$as_echo "$DSYMUTIL" >&6; } 7413else 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7415$as_echo "no" >&6; } 7416fi 7417 7418 7419fi 7420if test -z "$ac_cv_prog_DSYMUTIL"; then 7421 ac_ct_DSYMUTIL=$DSYMUTIL 7422 # Extract the first word of "dsymutil", so it can be a program name with args. 7423set dummy dsymutil; ac_word=$2 7424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7425$as_echo_n "checking for $ac_word... " >&6; } 7426if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7427 $as_echo_n "(cached) " >&6 7428else 7429 if test -n "$ac_ct_DSYMUTIL"; then 7430 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7431else 7432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7433for as_dir in $PATH 7434do 7435 IFS=$as_save_IFS 7436 test -z "$as_dir" && as_dir=. 7437 for ac_exec_ext in '' $ac_executable_extensions; do 7438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7439 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7441 break 2 7442 fi 7443done 7444 done 7445IFS=$as_save_IFS 7446 7447fi 7448fi 7449ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7450if test -n "$ac_ct_DSYMUTIL"; then 7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7452$as_echo "$ac_ct_DSYMUTIL" >&6; } 7453else 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7455$as_echo "no" >&6; } 7456fi 7457 7458 if test "x$ac_ct_DSYMUTIL" = x; then 7459 DSYMUTIL=":" 7460 else 7461 case $cross_compiling:$ac_tool_warned in 7462yes:) 7463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7465ac_tool_warned=yes ;; 7466esac 7467 DSYMUTIL=$ac_ct_DSYMUTIL 7468 fi 7469else 7470 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7471fi 7472 7473 if test -n "$ac_tool_prefix"; then 7474 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7475set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7477$as_echo_n "checking for $ac_word... " >&6; } 7478if ${ac_cv_prog_NMEDIT+:} false; then : 7479 $as_echo_n "(cached) " >&6 7480else 7481 if test -n "$NMEDIT"; then 7482 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7483else 7484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7485for as_dir in $PATH 7486do 7487 IFS=$as_save_IFS 7488 test -z "$as_dir" && as_dir=. 7489 for ac_exec_ext in '' $ac_executable_extensions; do 7490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7491 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7493 break 2 7494 fi 7495done 7496 done 7497IFS=$as_save_IFS 7498 7499fi 7500fi 7501NMEDIT=$ac_cv_prog_NMEDIT 7502if test -n "$NMEDIT"; then 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7504$as_echo "$NMEDIT" >&6; } 7505else 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7507$as_echo "no" >&6; } 7508fi 7509 7510 7511fi 7512if test -z "$ac_cv_prog_NMEDIT"; then 7513 ac_ct_NMEDIT=$NMEDIT 7514 # Extract the first word of "nmedit", so it can be a program name with args. 7515set dummy nmedit; ac_word=$2 7516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7517$as_echo_n "checking for $ac_word... " >&6; } 7518if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7519 $as_echo_n "(cached) " >&6 7520else 7521 if test -n "$ac_ct_NMEDIT"; then 7522 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7523else 7524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7525for as_dir in $PATH 7526do 7527 IFS=$as_save_IFS 7528 test -z "$as_dir" && as_dir=. 7529 for ac_exec_ext in '' $ac_executable_extensions; do 7530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7531 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7533 break 2 7534 fi 7535done 7536 done 7537IFS=$as_save_IFS 7538 7539fi 7540fi 7541ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7542if test -n "$ac_ct_NMEDIT"; then 7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7544$as_echo "$ac_ct_NMEDIT" >&6; } 7545else 7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7547$as_echo "no" >&6; } 7548fi 7549 7550 if test "x$ac_ct_NMEDIT" = x; then 7551 NMEDIT=":" 7552 else 7553 case $cross_compiling:$ac_tool_warned in 7554yes:) 7555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7557ac_tool_warned=yes ;; 7558esac 7559 NMEDIT=$ac_ct_NMEDIT 7560 fi 7561else 7562 NMEDIT="$ac_cv_prog_NMEDIT" 7563fi 7564 7565 if test -n "$ac_tool_prefix"; then 7566 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7567set dummy ${ac_tool_prefix}lipo; ac_word=$2 7568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7569$as_echo_n "checking for $ac_word... " >&6; } 7570if ${ac_cv_prog_LIPO+:} false; then : 7571 $as_echo_n "(cached) " >&6 7572else 7573 if test -n "$LIPO"; then 7574 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7575else 7576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7577for as_dir in $PATH 7578do 7579 IFS=$as_save_IFS 7580 test -z "$as_dir" && as_dir=. 7581 for ac_exec_ext in '' $ac_executable_extensions; do 7582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7583 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7585 break 2 7586 fi 7587done 7588 done 7589IFS=$as_save_IFS 7590 7591fi 7592fi 7593LIPO=$ac_cv_prog_LIPO 7594if test -n "$LIPO"; then 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7596$as_echo "$LIPO" >&6; } 7597else 7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7599$as_echo "no" >&6; } 7600fi 7601 7602 7603fi 7604if test -z "$ac_cv_prog_LIPO"; then 7605 ac_ct_LIPO=$LIPO 7606 # Extract the first word of "lipo", so it can be a program name with args. 7607set dummy lipo; ac_word=$2 7608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7609$as_echo_n "checking for $ac_word... " >&6; } 7610if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7611 $as_echo_n "(cached) " >&6 7612else 7613 if test -n "$ac_ct_LIPO"; then 7614 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7615else 7616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7617for as_dir in $PATH 7618do 7619 IFS=$as_save_IFS 7620 test -z "$as_dir" && as_dir=. 7621 for ac_exec_ext in '' $ac_executable_extensions; do 7622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7623 ac_cv_prog_ac_ct_LIPO="lipo" 7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7625 break 2 7626 fi 7627done 7628 done 7629IFS=$as_save_IFS 7630 7631fi 7632fi 7633ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7634if test -n "$ac_ct_LIPO"; then 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7636$as_echo "$ac_ct_LIPO" >&6; } 7637else 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7639$as_echo "no" >&6; } 7640fi 7641 7642 if test "x$ac_ct_LIPO" = x; then 7643 LIPO=":" 7644 else 7645 case $cross_compiling:$ac_tool_warned in 7646yes:) 7647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7649ac_tool_warned=yes ;; 7650esac 7651 LIPO=$ac_ct_LIPO 7652 fi 7653else 7654 LIPO="$ac_cv_prog_LIPO" 7655fi 7656 7657 if test -n "$ac_tool_prefix"; then 7658 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7659set dummy ${ac_tool_prefix}otool; ac_word=$2 7660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7661$as_echo_n "checking for $ac_word... " >&6; } 7662if ${ac_cv_prog_OTOOL+:} false; then : 7663 $as_echo_n "(cached) " >&6 7664else 7665 if test -n "$OTOOL"; then 7666 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7667else 7668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7669for as_dir in $PATH 7670do 7671 IFS=$as_save_IFS 7672 test -z "$as_dir" && as_dir=. 7673 for ac_exec_ext in '' $ac_executable_extensions; do 7674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7675 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7677 break 2 7678 fi 7679done 7680 done 7681IFS=$as_save_IFS 7682 7683fi 7684fi 7685OTOOL=$ac_cv_prog_OTOOL 7686if test -n "$OTOOL"; then 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7688$as_echo "$OTOOL" >&6; } 7689else 7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7691$as_echo "no" >&6; } 7692fi 7693 7694 7695fi 7696if test -z "$ac_cv_prog_OTOOL"; then 7697 ac_ct_OTOOL=$OTOOL 7698 # Extract the first word of "otool", so it can be a program name with args. 7699set dummy otool; ac_word=$2 7700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7701$as_echo_n "checking for $ac_word... " >&6; } 7702if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7703 $as_echo_n "(cached) " >&6 7704else 7705 if test -n "$ac_ct_OTOOL"; then 7706 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7707else 7708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7709for as_dir in $PATH 7710do 7711 IFS=$as_save_IFS 7712 test -z "$as_dir" && as_dir=. 7713 for ac_exec_ext in '' $ac_executable_extensions; do 7714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7715 ac_cv_prog_ac_ct_OTOOL="otool" 7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7717 break 2 7718 fi 7719done 7720 done 7721IFS=$as_save_IFS 7722 7723fi 7724fi 7725ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7726if test -n "$ac_ct_OTOOL"; then 7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7728$as_echo "$ac_ct_OTOOL" >&6; } 7729else 7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7731$as_echo "no" >&6; } 7732fi 7733 7734 if test "x$ac_ct_OTOOL" = x; then 7735 OTOOL=":" 7736 else 7737 case $cross_compiling:$ac_tool_warned in 7738yes:) 7739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7741ac_tool_warned=yes ;; 7742esac 7743 OTOOL=$ac_ct_OTOOL 7744 fi 7745else 7746 OTOOL="$ac_cv_prog_OTOOL" 7747fi 7748 7749 if test -n "$ac_tool_prefix"; then 7750 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7751set dummy ${ac_tool_prefix}otool64; ac_word=$2 7752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7753$as_echo_n "checking for $ac_word... " >&6; } 7754if ${ac_cv_prog_OTOOL64+:} false; then : 7755 $as_echo_n "(cached) " >&6 7756else 7757 if test -n "$OTOOL64"; then 7758 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7759else 7760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7761for as_dir in $PATH 7762do 7763 IFS=$as_save_IFS 7764 test -z "$as_dir" && as_dir=. 7765 for ac_exec_ext in '' $ac_executable_extensions; do 7766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7767 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7769 break 2 7770 fi 7771done 7772 done 7773IFS=$as_save_IFS 7774 7775fi 7776fi 7777OTOOL64=$ac_cv_prog_OTOOL64 7778if test -n "$OTOOL64"; then 7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7780$as_echo "$OTOOL64" >&6; } 7781else 7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7783$as_echo "no" >&6; } 7784fi 7785 7786 7787fi 7788if test -z "$ac_cv_prog_OTOOL64"; then 7789 ac_ct_OTOOL64=$OTOOL64 7790 # Extract the first word of "otool64", so it can be a program name with args. 7791set dummy otool64; ac_word=$2 7792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7793$as_echo_n "checking for $ac_word... " >&6; } 7794if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7795 $as_echo_n "(cached) " >&6 7796else 7797 if test -n "$ac_ct_OTOOL64"; then 7798 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7799else 7800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7801for as_dir in $PATH 7802do 7803 IFS=$as_save_IFS 7804 test -z "$as_dir" && as_dir=. 7805 for ac_exec_ext in '' $ac_executable_extensions; do 7806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7807 ac_cv_prog_ac_ct_OTOOL64="otool64" 7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7809 break 2 7810 fi 7811done 7812 done 7813IFS=$as_save_IFS 7814 7815fi 7816fi 7817ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7818if test -n "$ac_ct_OTOOL64"; then 7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7820$as_echo "$ac_ct_OTOOL64" >&6; } 7821else 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7823$as_echo "no" >&6; } 7824fi 7825 7826 if test "x$ac_ct_OTOOL64" = x; then 7827 OTOOL64=":" 7828 else 7829 case $cross_compiling:$ac_tool_warned in 7830yes:) 7831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7833ac_tool_warned=yes ;; 7834esac 7835 OTOOL64=$ac_ct_OTOOL64 7836 fi 7837else 7838 OTOOL64="$ac_cv_prog_OTOOL64" 7839fi 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7868$as_echo_n "checking for -single_module linker flag... " >&6; } 7869if ${lt_cv_apple_cc_single_mod+:} false; then : 7870 $as_echo_n "(cached) " >&6 7871else 7872 lt_cv_apple_cc_single_mod=no 7873 if test -z "${LT_MULTI_MODULE}"; then 7874 # By default we will add the -single_module flag. You can override 7875 # by either setting the environment variable LT_MULTI_MODULE 7876 # non-empty at configure time, or by adding -multi_module to the 7877 # link flags. 7878 rm -rf libconftest.dylib* 7879 echo "int foo(void){return 1;}" > conftest.c 7880 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7881-dynamiclib -Wl,-single_module conftest.c" >&5 7882 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7883 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7884 _lt_result=$? 7885 # If there is a non-empty error log, and "single_module" 7886 # appears in it, assume the flag caused a linker warning 7887 if test -s conftest.err && $GREP single_module conftest.err; then 7888 cat conftest.err >&5 7889 # Otherwise, if the output was created with a 0 exit code from 7890 # the compiler, it worked. 7891 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7892 lt_cv_apple_cc_single_mod=yes 7893 else 7894 cat conftest.err >&5 7895 fi 7896 rm -rf libconftest.dylib* 7897 rm -f conftest.* 7898 fi 7899fi 7900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7901$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7902 7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7904$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7905if ${lt_cv_ld_exported_symbols_list+:} false; then : 7906 $as_echo_n "(cached) " >&6 7907else 7908 lt_cv_ld_exported_symbols_list=no 7909 save_LDFLAGS=$LDFLAGS 7910 echo "_main" > conftest.sym 7911 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7913/* end confdefs.h. */ 7914 7915int 7916main () 7917{ 7918 7919 ; 7920 return 0; 7921} 7922_ACEOF 7923if ac_fn_c_try_link "$LINENO"; then : 7924 lt_cv_ld_exported_symbols_list=yes 7925else 7926 lt_cv_ld_exported_symbols_list=no 7927fi 7928rm -f core conftest.err conftest.$ac_objext \ 7929 conftest$ac_exeext conftest.$ac_ext 7930 LDFLAGS="$save_LDFLAGS" 7931 7932fi 7933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7934$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7935 7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7937$as_echo_n "checking for -force_load linker flag... " >&6; } 7938if ${lt_cv_ld_force_load+:} false; then : 7939 $as_echo_n "(cached) " >&6 7940else 7941 lt_cv_ld_force_load=no 7942 cat > conftest.c << _LT_EOF 7943int forced_loaded() { return 2;} 7944_LT_EOF 7945 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7946 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7947 echo "$AR cru libconftest.a conftest.o" >&5 7948 $AR cru libconftest.a conftest.o 2>&5 7949 echo "$RANLIB libconftest.a" >&5 7950 $RANLIB libconftest.a 2>&5 7951 cat > conftest.c << _LT_EOF 7952int main() { return 0;} 7953_LT_EOF 7954 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7955 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7956 _lt_result=$? 7957 if test -s conftest.err && $GREP force_load conftest.err; then 7958 cat conftest.err >&5 7959 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7960 lt_cv_ld_force_load=yes 7961 else 7962 cat conftest.err >&5 7963 fi 7964 rm -f conftest.err libconftest.a conftest conftest.c 7965 rm -rf conftest.dSYM 7966 7967fi 7968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7969$as_echo "$lt_cv_ld_force_load" >&6; } 7970 case $host_os in 7971 rhapsody* | darwin1.[012]) 7972 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7973 darwin1.*) 7974 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7975 darwin*) # darwin 5.x on 7976 # if running on 10.5 or later, the deployment target defaults 7977 # to the OS version, if on x86, and 10.4, the deployment 7978 # target defaults to 10.4. Don't you love it? 7979 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7980 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7981 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7982 10.[012]*) 7983 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7984 10.*) 7985 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7986 esac 7987 ;; 7988 esac 7989 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7990 _lt_dar_single_mod='$single_module' 7991 fi 7992 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7993 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7994 else 7995 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7996 fi 7997 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7998 _lt_dsymutil='~$DSYMUTIL $lib || :' 7999 else 8000 _lt_dsymutil= 8001 fi 8002 ;; 8003 esac 8004 8005for ac_header in dlfcn.h 8006do : 8007 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8008" 8009if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8010 cat >>confdefs.h <<_ACEOF 8011#define HAVE_DLFCN_H 1 8012_ACEOF 8013 8014fi 8015 8016done 8017 8018 8019 8020 8021 8022# Set options 8023 8024 8025 8026 enable_dlopen=no 8027 8028 8029 8030 # Check whether --enable-shared was given. 8031if test "${enable_shared+set}" = set; then : 8032 enableval=$enable_shared; p=${PACKAGE-default} 8033 case $enableval in 8034 yes) enable_shared=yes ;; 8035 no) enable_shared=no ;; 8036 *) 8037 enable_shared=no 8038 # Look at the argument we got. We use all the common list separators. 8039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8040 for pkg in $enableval; do 8041 IFS="$lt_save_ifs" 8042 if test "X$pkg" = "X$p"; then 8043 enable_shared=yes 8044 fi 8045 done 8046 IFS="$lt_save_ifs" 8047 ;; 8048 esac 8049else 8050 enable_shared=yes 8051fi 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063# Check whether --with-pic was given. 8064if test "${with_pic+set}" = set; then : 8065 withval=$with_pic; lt_p=${PACKAGE-default} 8066 case $withval in 8067 yes|no) pic_mode=$withval ;; 8068 *) 8069 pic_mode=default 8070 # Look at the argument we got. We use all the common list separators. 8071 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8072 for lt_pkg in $withval; do 8073 IFS="$lt_save_ifs" 8074 if test "X$lt_pkg" = "X$lt_p"; then 8075 pic_mode=yes 8076 fi 8077 done 8078 IFS="$lt_save_ifs" 8079 ;; 8080 esac 8081else 8082 pic_mode=default 8083fi 8084 8085 8086test -z "$pic_mode" && pic_mode=default 8087 8088 8089 8090 8091 8092 8093 8094 # Check whether --enable-fast-install was given. 8095if test "${enable_fast_install+set}" = set; then : 8096 enableval=$enable_fast_install; p=${PACKAGE-default} 8097 case $enableval in 8098 yes) enable_fast_install=yes ;; 8099 no) enable_fast_install=no ;; 8100 *) 8101 enable_fast_install=no 8102 # Look at the argument we got. We use all the common list separators. 8103 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8104 for pkg in $enableval; do 8105 IFS="$lt_save_ifs" 8106 if test "X$pkg" = "X$p"; then 8107 enable_fast_install=yes 8108 fi 8109 done 8110 IFS="$lt_save_ifs" 8111 ;; 8112 esac 8113else 8114 enable_fast_install=yes 8115fi 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127# This can be used to rebuild libtool when needed 8128LIBTOOL_DEPS="$ltmain" 8129 8130# Always use our own libtool. 8131LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162test -z "$LN_S" && LN_S="ln -s" 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177if test -n "${ZSH_VERSION+set}" ; then 8178 setopt NO_GLOB_SUBST 8179fi 8180 8181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8182$as_echo_n "checking for objdir... " >&6; } 8183if ${lt_cv_objdir+:} false; then : 8184 $as_echo_n "(cached) " >&6 8185else 8186 rm -f .libs 2>/dev/null 8187mkdir .libs 2>/dev/null 8188if test -d .libs; then 8189 lt_cv_objdir=.libs 8190else 8191 # MS-DOS does not allow filenames that begin with a dot. 8192 lt_cv_objdir=_libs 8193fi 8194rmdir .libs 2>/dev/null 8195fi 8196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8197$as_echo "$lt_cv_objdir" >&6; } 8198objdir=$lt_cv_objdir 8199 8200 8201 8202 8203 8204cat >>confdefs.h <<_ACEOF 8205#define LT_OBJDIR "$lt_cv_objdir/" 8206_ACEOF 8207 8208 8209 8210 8211case $host_os in 8212aix3*) 8213 # AIX sometimes has problems with the GCC collect2 program. For some 8214 # reason, if we set the COLLECT_NAMES environment variable, the problems 8215 # vanish in a puff of smoke. 8216 if test "X${COLLECT_NAMES+set}" != Xset; then 8217 COLLECT_NAMES= 8218 export COLLECT_NAMES 8219 fi 8220 ;; 8221esac 8222 8223# Global variables: 8224ofile=libtool 8225can_build_shared=yes 8226 8227# All known linkers require a `.a' archive for static linking (except MSVC, 8228# which needs '.lib'). 8229libext=a 8230 8231with_gnu_ld="$lt_cv_prog_gnu_ld" 8232 8233old_CC="$CC" 8234old_CFLAGS="$CFLAGS" 8235 8236# Set sane defaults for various variables 8237test -z "$CC" && CC=cc 8238test -z "$LTCC" && LTCC=$CC 8239test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8240test -z "$LD" && LD=ld 8241test -z "$ac_objext" && ac_objext=o 8242 8243for cc_temp in $compiler""; do 8244 case $cc_temp in 8245 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8246 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8247 \-*) ;; 8248 *) break;; 8249 esac 8250done 8251cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8252 8253 8254# Only perform the check for file, if the check method requires it 8255test -z "$MAGIC_CMD" && MAGIC_CMD=file 8256case $deplibs_check_method in 8257file_magic*) 8258 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8260$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8261if ${lt_cv_path_MAGIC_CMD+:} false; then : 8262 $as_echo_n "(cached) " >&6 8263else 8264 case $MAGIC_CMD in 8265[\\/*] | ?:[\\/]*) 8266 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8267 ;; 8268*) 8269 lt_save_MAGIC_CMD="$MAGIC_CMD" 8270 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8271 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8272 for ac_dir in $ac_dummy; do 8273 IFS="$lt_save_ifs" 8274 test -z "$ac_dir" && ac_dir=. 8275 if test -f $ac_dir/${ac_tool_prefix}file; then 8276 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8277 if test -n "$file_magic_test_file"; then 8278 case $deplibs_check_method in 8279 "file_magic "*) 8280 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8281 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8282 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8283 $EGREP "$file_magic_regex" > /dev/null; then 8284 : 8285 else 8286 cat <<_LT_EOF 1>&2 8287 8288*** Warning: the command libtool uses to detect shared libraries, 8289*** $file_magic_cmd, produces output that libtool cannot recognize. 8290*** The result is that libtool may fail to recognize shared libraries 8291*** as such. This will affect the creation of libtool libraries that 8292*** depend on shared libraries, but programs linked with such libtool 8293*** libraries will work regardless of this problem. Nevertheless, you 8294*** may want to report the problem to your system manager and/or to 8295*** bug-libtool@gnu.org 8296 8297_LT_EOF 8298 fi ;; 8299 esac 8300 fi 8301 break 8302 fi 8303 done 8304 IFS="$lt_save_ifs" 8305 MAGIC_CMD="$lt_save_MAGIC_CMD" 8306 ;; 8307esac 8308fi 8309 8310MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8311if test -n "$MAGIC_CMD"; then 8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8313$as_echo "$MAGIC_CMD" >&6; } 8314else 8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8316$as_echo "no" >&6; } 8317fi 8318 8319 8320 8321 8322 8323if test -z "$lt_cv_path_MAGIC_CMD"; then 8324 if test -n "$ac_tool_prefix"; then 8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8326$as_echo_n "checking for file... " >&6; } 8327if ${lt_cv_path_MAGIC_CMD+:} false; then : 8328 $as_echo_n "(cached) " >&6 8329else 8330 case $MAGIC_CMD in 8331[\\/*] | ?:[\\/]*) 8332 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8333 ;; 8334*) 8335 lt_save_MAGIC_CMD="$MAGIC_CMD" 8336 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8337 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8338 for ac_dir in $ac_dummy; do 8339 IFS="$lt_save_ifs" 8340 test -z "$ac_dir" && ac_dir=. 8341 if test -f $ac_dir/file; then 8342 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8343 if test -n "$file_magic_test_file"; then 8344 case $deplibs_check_method in 8345 "file_magic "*) 8346 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8347 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8348 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8349 $EGREP "$file_magic_regex" > /dev/null; then 8350 : 8351 else 8352 cat <<_LT_EOF 1>&2 8353 8354*** Warning: the command libtool uses to detect shared libraries, 8355*** $file_magic_cmd, produces output that libtool cannot recognize. 8356*** The result is that libtool may fail to recognize shared libraries 8357*** as such. This will affect the creation of libtool libraries that 8358*** depend on shared libraries, but programs linked with such libtool 8359*** libraries will work regardless of this problem. Nevertheless, you 8360*** may want to report the problem to your system manager and/or to 8361*** bug-libtool@gnu.org 8362 8363_LT_EOF 8364 fi ;; 8365 esac 8366 fi 8367 break 8368 fi 8369 done 8370 IFS="$lt_save_ifs" 8371 MAGIC_CMD="$lt_save_MAGIC_CMD" 8372 ;; 8373esac 8374fi 8375 8376MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8377if test -n "$MAGIC_CMD"; then 8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8379$as_echo "$MAGIC_CMD" >&6; } 8380else 8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8382$as_echo "no" >&6; } 8383fi 8384 8385 8386 else 8387 MAGIC_CMD=: 8388 fi 8389fi 8390 8391 fi 8392 ;; 8393esac 8394 8395# Use C for the default configuration in the libtool script 8396 8397lt_save_CC="$CC" 8398ac_ext=c 8399ac_cpp='$CPP $CPPFLAGS' 8400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8402ac_compiler_gnu=$ac_cv_c_compiler_gnu 8403 8404 8405# Source file extension for C test sources. 8406ac_ext=c 8407 8408# Object file extension for compiled C test sources. 8409objext=o 8410objext=$objext 8411 8412# Code to be used in simple compile tests 8413lt_simple_compile_test_code="int some_variable = 0;" 8414 8415# Code to be used in simple link tests 8416lt_simple_link_test_code='int main(){return(0);}' 8417 8418 8419 8420 8421 8422 8423 8424# If no C compiler was specified, use CC. 8425LTCC=${LTCC-"$CC"} 8426 8427# If no C compiler flags were specified, use CFLAGS. 8428LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8429 8430# Allow CC to be a program name with arguments. 8431compiler=$CC 8432 8433# Save the default compiler, since it gets overwritten when the other 8434# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8435compiler_DEFAULT=$CC 8436 8437# save warnings/boilerplate of simple test code 8438ac_outfile=conftest.$ac_objext 8439echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8440eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8441_lt_compiler_boilerplate=`cat conftest.err` 8442$RM conftest* 8443 8444ac_outfile=conftest.$ac_objext 8445echo "$lt_simple_link_test_code" >conftest.$ac_ext 8446eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8447_lt_linker_boilerplate=`cat conftest.err` 8448$RM -r conftest* 8449 8450 8451## CAVEAT EMPTOR: 8452## There is no encapsulation within the following macros, do not change 8453## the running order or otherwise move them around unless you know exactly 8454## what you are doing... 8455if test -n "$compiler"; then 8456 8457lt_prog_compiler_no_builtin_flag= 8458 8459if test "$GCC" = yes; then 8460 case $cc_basename in 8461 nvcc*) 8462 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8463 *) 8464 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8465 esac 8466 8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8468$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8469if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8470 $as_echo_n "(cached) " >&6 8471else 8472 lt_cv_prog_compiler_rtti_exceptions=no 8473 ac_outfile=conftest.$ac_objext 8474 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8475 lt_compiler_flag="-fno-rtti -fno-exceptions" 8476 # Insert the option either (1) after the last *FLAGS variable, or 8477 # (2) before a word containing "conftest.", or (3) at the end. 8478 # Note that $ac_compile itself does not contain backslashes and begins 8479 # with a dollar sign (not a hyphen), so the echo should work correctly. 8480 # The option is referenced via a variable to avoid confusing sed. 8481 lt_compile=`echo "$ac_compile" | $SED \ 8482 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8484 -e 's:$: $lt_compiler_flag:'` 8485 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8486 (eval "$lt_compile" 2>conftest.err) 8487 ac_status=$? 8488 cat conftest.err >&5 8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8490 if (exit $ac_status) && test -s "$ac_outfile"; then 8491 # The compiler can only warn and ignore the option if not recognized 8492 # So say no if there are warnings other than the usual output. 8493 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8494 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8495 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8496 lt_cv_prog_compiler_rtti_exceptions=yes 8497 fi 8498 fi 8499 $RM conftest* 8500 8501fi 8502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8503$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8504 8505if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8506 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8507else 8508 : 8509fi 8510 8511fi 8512 8513 8514 8515 8516 8517 8518 lt_prog_compiler_wl= 8519lt_prog_compiler_pic= 8520lt_prog_compiler_static= 8521 8522 8523 if test "$GCC" = yes; then 8524 lt_prog_compiler_wl='-Wl,' 8525 lt_prog_compiler_static='-static' 8526 8527 case $host_os in 8528 aix*) 8529 # All AIX code is PIC. 8530 if test "$host_cpu" = ia64; then 8531 # AIX 5 now supports IA64 processor 8532 lt_prog_compiler_static='-Bstatic' 8533 fi 8534 ;; 8535 8536 amigaos*) 8537 case $host_cpu in 8538 powerpc) 8539 # see comment about AmigaOS4 .so support 8540 lt_prog_compiler_pic='-fPIC' 8541 ;; 8542 m68k) 8543 # FIXME: we need at least 68020 code to build shared libraries, but 8544 # adding the `-m68020' flag to GCC prevents building anything better, 8545 # like `-m68040'. 8546 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8547 ;; 8548 esac 8549 ;; 8550 8551 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8552 # PIC is the default for these OSes. 8553 ;; 8554 8555 mingw* | cygwin* | pw32* | os2* | cegcc*) 8556 # This hack is so that the source file can tell whether it is being 8557 # built for inclusion in a dll (and should export symbols for example). 8558 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8559 # (--disable-auto-import) libraries 8560 lt_prog_compiler_pic='-DDLL_EXPORT' 8561 ;; 8562 8563 darwin* | rhapsody*) 8564 # PIC is the default on this platform 8565 # Common symbols not allowed in MH_DYLIB files 8566 lt_prog_compiler_pic='-fno-common' 8567 ;; 8568 8569 haiku*) 8570 # PIC is the default for Haiku. 8571 # The "-static" flag exists, but is broken. 8572 lt_prog_compiler_static= 8573 ;; 8574 8575 hpux*) 8576 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8577 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8578 # sets the default TLS model and affects inlining. 8579 case $host_cpu in 8580 hppa*64*) 8581 # +Z the default 8582 ;; 8583 *) 8584 lt_prog_compiler_pic='-fPIC' 8585 ;; 8586 esac 8587 ;; 8588 8589 interix[3-9]*) 8590 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8591 # Instead, we relocate shared libraries at runtime. 8592 ;; 8593 8594 msdosdjgpp*) 8595 # Just because we use GCC doesn't mean we suddenly get shared libraries 8596 # on systems that don't support them. 8597 lt_prog_compiler_can_build_shared=no 8598 enable_shared=no 8599 ;; 8600 8601 *nto* | *qnx*) 8602 # QNX uses GNU C++, but need to define -shared option too, otherwise 8603 # it will coredump. 8604 lt_prog_compiler_pic='-fPIC -shared' 8605 ;; 8606 8607 sysv4*MP*) 8608 if test -d /usr/nec; then 8609 lt_prog_compiler_pic=-Kconform_pic 8610 fi 8611 ;; 8612 8613 *) 8614 lt_prog_compiler_pic='-fPIC' 8615 ;; 8616 esac 8617 8618 case $cc_basename in 8619 nvcc*) # Cuda Compiler Driver 2.2 8620 lt_prog_compiler_wl='-Xlinker ' 8621 if test -n "$lt_prog_compiler_pic"; then 8622 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8623 fi 8624 ;; 8625 esac 8626 else 8627 # PORTME Check for flag to pass linker flags through the system compiler. 8628 case $host_os in 8629 aix*) 8630 lt_prog_compiler_wl='-Wl,' 8631 if test "$host_cpu" = ia64; then 8632 # AIX 5 now supports IA64 processor 8633 lt_prog_compiler_static='-Bstatic' 8634 else 8635 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8636 fi 8637 ;; 8638 8639 mingw* | cygwin* | pw32* | os2* | cegcc*) 8640 # This hack is so that the source file can tell whether it is being 8641 # built for inclusion in a dll (and should export symbols for example). 8642 lt_prog_compiler_pic='-DDLL_EXPORT' 8643 ;; 8644 8645 hpux9* | hpux10* | hpux11*) 8646 lt_prog_compiler_wl='-Wl,' 8647 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8648 # not for PA HP-UX. 8649 case $host_cpu in 8650 hppa*64*|ia64*) 8651 # +Z the default 8652 ;; 8653 *) 8654 lt_prog_compiler_pic='+Z' 8655 ;; 8656 esac 8657 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8658 lt_prog_compiler_static='${wl}-a ${wl}archive' 8659 ;; 8660 8661 irix5* | irix6* | nonstopux*) 8662 lt_prog_compiler_wl='-Wl,' 8663 # PIC (with -KPIC) is the default. 8664 lt_prog_compiler_static='-non_shared' 8665 ;; 8666 8667 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8668 case $cc_basename in 8669 # old Intel for x86_64 which still supported -KPIC. 8670 ecc*) 8671 lt_prog_compiler_wl='-Wl,' 8672 lt_prog_compiler_pic='-KPIC' 8673 lt_prog_compiler_static='-static' 8674 ;; 8675 # icc used to be incompatible with GCC. 8676 # ICC 10 doesn't accept -KPIC any more. 8677 icc* | ifort*) 8678 lt_prog_compiler_wl='-Wl,' 8679 lt_prog_compiler_pic='-fPIC' 8680 lt_prog_compiler_static='-static' 8681 ;; 8682 # Lahey Fortran 8.1. 8683 lf95*) 8684 lt_prog_compiler_wl='-Wl,' 8685 lt_prog_compiler_pic='--shared' 8686 lt_prog_compiler_static='--static' 8687 ;; 8688 nagfor*) 8689 # NAG Fortran compiler 8690 lt_prog_compiler_wl='-Wl,-Wl,,' 8691 lt_prog_compiler_pic='-PIC' 8692 lt_prog_compiler_static='-Bstatic' 8693 ;; 8694 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8695 # Portland Group compilers (*not* the Pentium gcc compiler, 8696 # which looks to be a dead project) 8697 lt_prog_compiler_wl='-Wl,' 8698 lt_prog_compiler_pic='-fpic' 8699 lt_prog_compiler_static='-Bstatic' 8700 ;; 8701 ccc*) 8702 lt_prog_compiler_wl='-Wl,' 8703 # All Alpha code is PIC. 8704 lt_prog_compiler_static='-non_shared' 8705 ;; 8706 xl* | bgxl* | bgf* | mpixl*) 8707 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8708 lt_prog_compiler_wl='-Wl,' 8709 lt_prog_compiler_pic='-qpic' 8710 lt_prog_compiler_static='-qstaticlink' 8711 ;; 8712 *) 8713 case `$CC -V 2>&1 | sed 5q` in 8714 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8715 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8716 lt_prog_compiler_pic='-KPIC' 8717 lt_prog_compiler_static='-Bstatic' 8718 lt_prog_compiler_wl='' 8719 ;; 8720 *Sun\ F* | *Sun*Fortran*) 8721 lt_prog_compiler_pic='-KPIC' 8722 lt_prog_compiler_static='-Bstatic' 8723 lt_prog_compiler_wl='-Qoption ld ' 8724 ;; 8725 *Sun\ C*) 8726 # Sun C 5.9 8727 lt_prog_compiler_pic='-KPIC' 8728 lt_prog_compiler_static='-Bstatic' 8729 lt_prog_compiler_wl='-Wl,' 8730 ;; 8731 *Intel*\ [CF]*Compiler*) 8732 lt_prog_compiler_wl='-Wl,' 8733 lt_prog_compiler_pic='-fPIC' 8734 lt_prog_compiler_static='-static' 8735 ;; 8736 *Portland\ Group*) 8737 lt_prog_compiler_wl='-Wl,' 8738 lt_prog_compiler_pic='-fpic' 8739 lt_prog_compiler_static='-Bstatic' 8740 ;; 8741 esac 8742 ;; 8743 esac 8744 ;; 8745 8746 newsos6) 8747 lt_prog_compiler_pic='-KPIC' 8748 lt_prog_compiler_static='-Bstatic' 8749 ;; 8750 8751 *nto* | *qnx*) 8752 # QNX uses GNU C++, but need to define -shared option too, otherwise 8753 # it will coredump. 8754 lt_prog_compiler_pic='-fPIC -shared' 8755 ;; 8756 8757 osf3* | osf4* | osf5*) 8758 lt_prog_compiler_wl='-Wl,' 8759 # All OSF/1 code is PIC. 8760 lt_prog_compiler_static='-non_shared' 8761 ;; 8762 8763 rdos*) 8764 lt_prog_compiler_static='-non_shared' 8765 ;; 8766 8767 solaris*) 8768 lt_prog_compiler_pic='-KPIC' 8769 lt_prog_compiler_static='-Bstatic' 8770 case $cc_basename in 8771 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8772 lt_prog_compiler_wl='-Qoption ld ';; 8773 *) 8774 lt_prog_compiler_wl='-Wl,';; 8775 esac 8776 ;; 8777 8778 sunos4*) 8779 lt_prog_compiler_wl='-Qoption ld ' 8780 lt_prog_compiler_pic='-PIC' 8781 lt_prog_compiler_static='-Bstatic' 8782 ;; 8783 8784 sysv4 | sysv4.2uw2* | sysv4.3*) 8785 lt_prog_compiler_wl='-Wl,' 8786 lt_prog_compiler_pic='-KPIC' 8787 lt_prog_compiler_static='-Bstatic' 8788 ;; 8789 8790 sysv4*MP*) 8791 if test -d /usr/nec ;then 8792 lt_prog_compiler_pic='-Kconform_pic' 8793 lt_prog_compiler_static='-Bstatic' 8794 fi 8795 ;; 8796 8797 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8798 lt_prog_compiler_wl='-Wl,' 8799 lt_prog_compiler_pic='-KPIC' 8800 lt_prog_compiler_static='-Bstatic' 8801 ;; 8802 8803 unicos*) 8804 lt_prog_compiler_wl='-Wl,' 8805 lt_prog_compiler_can_build_shared=no 8806 ;; 8807 8808 uts4*) 8809 lt_prog_compiler_pic='-pic' 8810 lt_prog_compiler_static='-Bstatic' 8811 ;; 8812 8813 *) 8814 lt_prog_compiler_can_build_shared=no 8815 ;; 8816 esac 8817 fi 8818 8819case $host_os in 8820 # For platforms which do not support PIC, -DPIC is meaningless: 8821 *djgpp*) 8822 lt_prog_compiler_pic= 8823 ;; 8824 *) 8825 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8826 ;; 8827esac 8828 8829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8830$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8831if ${lt_cv_prog_compiler_pic+:} false; then : 8832 $as_echo_n "(cached) " >&6 8833else 8834 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8835fi 8836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8837$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8838lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8839 8840# 8841# Check to make sure the PIC flag actually works. 8842# 8843if test -n "$lt_prog_compiler_pic"; then 8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8845$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8846if ${lt_cv_prog_compiler_pic_works+:} false; then : 8847 $as_echo_n "(cached) " >&6 8848else 8849 lt_cv_prog_compiler_pic_works=no 8850 ac_outfile=conftest.$ac_objext 8851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8852 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8853 # Insert the option either (1) after the last *FLAGS variable, or 8854 # (2) before a word containing "conftest.", or (3) at the end. 8855 # Note that $ac_compile itself does not contain backslashes and begins 8856 # with a dollar sign (not a hyphen), so the echo should work correctly. 8857 # The option is referenced via a variable to avoid confusing sed. 8858 lt_compile=`echo "$ac_compile" | $SED \ 8859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8861 -e 's:$: $lt_compiler_flag:'` 8862 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8863 (eval "$lt_compile" 2>conftest.err) 8864 ac_status=$? 8865 cat conftest.err >&5 8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8867 if (exit $ac_status) && test -s "$ac_outfile"; then 8868 # The compiler can only warn and ignore the option if not recognized 8869 # So say no if there are warnings other than the usual output. 8870 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8871 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8872 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8873 lt_cv_prog_compiler_pic_works=yes 8874 fi 8875 fi 8876 $RM conftest* 8877 8878fi 8879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8880$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8881 8882if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8883 case $lt_prog_compiler_pic in 8884 "" | " "*) ;; 8885 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8886 esac 8887else 8888 lt_prog_compiler_pic= 8889 lt_prog_compiler_can_build_shared=no 8890fi 8891 8892fi 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904# 8905# Check to make sure the static flag actually works. 8906# 8907wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8909$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8910if ${lt_cv_prog_compiler_static_works+:} false; then : 8911 $as_echo_n "(cached) " >&6 8912else 8913 lt_cv_prog_compiler_static_works=no 8914 save_LDFLAGS="$LDFLAGS" 8915 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8916 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8917 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8918 # The linker can only warn and ignore the option if not recognized 8919 # So say no if there are warnings 8920 if test -s conftest.err; then 8921 # Append any errors to the config.log. 8922 cat conftest.err 1>&5 8923 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8924 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8925 if diff conftest.exp conftest.er2 >/dev/null; then 8926 lt_cv_prog_compiler_static_works=yes 8927 fi 8928 else 8929 lt_cv_prog_compiler_static_works=yes 8930 fi 8931 fi 8932 $RM -r conftest* 8933 LDFLAGS="$save_LDFLAGS" 8934 8935fi 8936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8937$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8938 8939if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8940 : 8941else 8942 lt_prog_compiler_static= 8943fi 8944 8945 8946 8947 8948 8949 8950 8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8952$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8953if ${lt_cv_prog_compiler_c_o+:} false; then : 8954 $as_echo_n "(cached) " >&6 8955else 8956 lt_cv_prog_compiler_c_o=no 8957 $RM -r conftest 2>/dev/null 8958 mkdir conftest 8959 cd conftest 8960 mkdir out 8961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8962 8963 lt_compiler_flag="-o out/conftest2.$ac_objext" 8964 # Insert the option either (1) after the last *FLAGS variable, or 8965 # (2) before a word containing "conftest.", or (3) at the end. 8966 # Note that $ac_compile itself does not contain backslashes and begins 8967 # with a dollar sign (not a hyphen), so the echo should work correctly. 8968 lt_compile=`echo "$ac_compile" | $SED \ 8969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8971 -e 's:$: $lt_compiler_flag:'` 8972 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8973 (eval "$lt_compile" 2>out/conftest.err) 8974 ac_status=$? 8975 cat out/conftest.err >&5 8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8977 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8978 then 8979 # The compiler can only warn and ignore the option if not recognized 8980 # So say no if there are warnings 8981 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8982 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8983 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8984 lt_cv_prog_compiler_c_o=yes 8985 fi 8986 fi 8987 chmod u+w . 2>&5 8988 $RM conftest* 8989 # SGI C++ compiler will create directory out/ii_files/ for 8990 # template instantiation 8991 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8992 $RM out/* && rmdir out 8993 cd .. 8994 $RM -r conftest 8995 $RM conftest* 8996 8997fi 8998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8999$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9000 9001 9002 9003 9004 9005 9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9007$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9008if ${lt_cv_prog_compiler_c_o+:} false; then : 9009 $as_echo_n "(cached) " >&6 9010else 9011 lt_cv_prog_compiler_c_o=no 9012 $RM -r conftest 2>/dev/null 9013 mkdir conftest 9014 cd conftest 9015 mkdir out 9016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9017 9018 lt_compiler_flag="-o out/conftest2.$ac_objext" 9019 # Insert the option either (1) after the last *FLAGS variable, or 9020 # (2) before a word containing "conftest.", or (3) at the end. 9021 # Note that $ac_compile itself does not contain backslashes and begins 9022 # with a dollar sign (not a hyphen), so the echo should work correctly. 9023 lt_compile=`echo "$ac_compile" | $SED \ 9024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9026 -e 's:$: $lt_compiler_flag:'` 9027 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9028 (eval "$lt_compile" 2>out/conftest.err) 9029 ac_status=$? 9030 cat out/conftest.err >&5 9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9032 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9033 then 9034 # The compiler can only warn and ignore the option if not recognized 9035 # So say no if there are warnings 9036 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9037 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9038 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9039 lt_cv_prog_compiler_c_o=yes 9040 fi 9041 fi 9042 chmod u+w . 2>&5 9043 $RM conftest* 9044 # SGI C++ compiler will create directory out/ii_files/ for 9045 # template instantiation 9046 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9047 $RM out/* && rmdir out 9048 cd .. 9049 $RM -r conftest 9050 $RM conftest* 9051 9052fi 9053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9054$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9055 9056 9057 9058 9059hard_links="nottested" 9060if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9061 # do not overwrite the value of need_locks provided by the user 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9063$as_echo_n "checking if we can lock with hard links... " >&6; } 9064 hard_links=yes 9065 $RM conftest* 9066 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9067 touch conftest.a 9068 ln conftest.a conftest.b 2>&5 || hard_links=no 9069 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9071$as_echo "$hard_links" >&6; } 9072 if test "$hard_links" = no; then 9073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9074$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9075 need_locks=warn 9076 fi 9077else 9078 need_locks=no 9079fi 9080 9081 9082 9083 9084 9085 9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9087$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9088 9089 runpath_var= 9090 allow_undefined_flag= 9091 always_export_symbols=no 9092 archive_cmds= 9093 archive_expsym_cmds= 9094 compiler_needs_object=no 9095 enable_shared_with_static_runtimes=no 9096 export_dynamic_flag_spec= 9097 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9098 hardcode_automatic=no 9099 hardcode_direct=no 9100 hardcode_direct_absolute=no 9101 hardcode_libdir_flag_spec= 9102 hardcode_libdir_separator= 9103 hardcode_minus_L=no 9104 hardcode_shlibpath_var=unsupported 9105 inherit_rpath=no 9106 link_all_deplibs=unknown 9107 module_cmds= 9108 module_expsym_cmds= 9109 old_archive_from_new_cmds= 9110 old_archive_from_expsyms_cmds= 9111 thread_safe_flag_spec= 9112 whole_archive_flag_spec= 9113 # include_expsyms should be a list of space-separated symbols to be *always* 9114 # included in the symbol list 9115 include_expsyms= 9116 # exclude_expsyms can be an extended regexp of symbols to exclude 9117 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9118 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9119 # as well as any symbol that contains `d'. 9120 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9121 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9122 # platforms (ab)use it in PIC code, but their linkers get confused if 9123 # the symbol is explicitly referenced. Since portable code cannot 9124 # rely on this symbol name, it's probably fine to never include it in 9125 # preloaded symbol tables. 9126 # Exclude shared library initialization/finalization symbols. 9127 extract_expsyms_cmds= 9128 9129 case $host_os in 9130 cygwin* | mingw* | pw32* | cegcc*) 9131 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9132 # When not using gcc, we currently assume that we are using 9133 # Microsoft Visual C++. 9134 if test "$GCC" != yes; then 9135 with_gnu_ld=no 9136 fi 9137 ;; 9138 interix*) 9139 # we just hope/assume this is gcc and not c89 (= MSVC++) 9140 with_gnu_ld=yes 9141 ;; 9142 openbsd*) 9143 with_gnu_ld=no 9144 ;; 9145 esac 9146 9147 ld_shlibs=yes 9148 9149 # On some targets, GNU ld is compatible enough with the native linker 9150 # that we're better off using the native interface for both. 9151 lt_use_gnu_ld_interface=no 9152 if test "$with_gnu_ld" = yes; then 9153 case $host_os in 9154 aix*) 9155 # The AIX port of GNU ld has always aspired to compatibility 9156 # with the native linker. However, as the warning in the GNU ld 9157 # block says, versions before 2.19.5* couldn't really create working 9158 # shared libraries, regardless of the interface used. 9159 case `$LD -v 2>&1` in 9160 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9161 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9162 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9163 *) 9164 lt_use_gnu_ld_interface=yes 9165 ;; 9166 esac 9167 ;; 9168 *) 9169 lt_use_gnu_ld_interface=yes 9170 ;; 9171 esac 9172 fi 9173 9174 if test "$lt_use_gnu_ld_interface" = yes; then 9175 # If archive_cmds runs LD, not CC, wlarc should be empty 9176 wlarc='${wl}' 9177 9178 # Set some defaults for GNU ld with shared library support. These 9179 # are reset later if shared libraries are not supported. Putting them 9180 # here allows them to be overridden if necessary. 9181 runpath_var=LD_RUN_PATH 9182 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9183 export_dynamic_flag_spec='${wl}--export-dynamic' 9184 # ancient GNU ld didn't support --whole-archive et. al. 9185 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9186 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9187 else 9188 whole_archive_flag_spec= 9189 fi 9190 supports_anon_versioning=no 9191 case `$LD -v 2>&1` in 9192 *GNU\ gold*) supports_anon_versioning=yes ;; 9193 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9194 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9195 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9196 *\ 2.11.*) ;; # other 2.11 versions 9197 *) supports_anon_versioning=yes ;; 9198 esac 9199 9200 # See if GNU ld supports shared libraries. 9201 case $host_os in 9202 aix[3-9]*) 9203 # On AIX/PPC, the GNU linker is very broken 9204 if test "$host_cpu" != ia64; then 9205 ld_shlibs=no 9206 cat <<_LT_EOF 1>&2 9207 9208*** Warning: the GNU linker, at least up to release 2.19, is reported 9209*** to be unable to reliably create shared libraries on AIX. 9210*** Therefore, libtool is disabling shared libraries support. If you 9211*** really care for shared libraries, you may want to install binutils 9212*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9213*** You will then need to restart the configuration process. 9214 9215_LT_EOF 9216 fi 9217 ;; 9218 9219 amigaos*) 9220 case $host_cpu in 9221 powerpc) 9222 # see comment about AmigaOS4 .so support 9223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9224 archive_expsym_cmds='' 9225 ;; 9226 m68k) 9227 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)' 9228 hardcode_libdir_flag_spec='-L$libdir' 9229 hardcode_minus_L=yes 9230 ;; 9231 esac 9232 ;; 9233 9234 beos*) 9235 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9236 allow_undefined_flag=unsupported 9237 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9238 # support --undefined. This deserves some investigation. FIXME 9239 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9240 else 9241 ld_shlibs=no 9242 fi 9243 ;; 9244 9245 cygwin* | mingw* | pw32* | cegcc*) 9246 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9247 # as there is no search path for DLLs. 9248 hardcode_libdir_flag_spec='-L$libdir' 9249 export_dynamic_flag_spec='${wl}--export-all-symbols' 9250 allow_undefined_flag=unsupported 9251 always_export_symbols=no 9252 enable_shared_with_static_runtimes=yes 9253 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' 9254 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9255 9256 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9258 # If the export-symbols file already is a .def file (1st line 9259 # is EXPORTS), use it as is; otherwise, prepend... 9260 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9261 cp $export_symbols $output_objdir/$soname.def; 9262 else 9263 echo EXPORTS > $output_objdir/$soname.def; 9264 cat $export_symbols >> $output_objdir/$soname.def; 9265 fi~ 9266 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9267 else 9268 ld_shlibs=no 9269 fi 9270 ;; 9271 9272 haiku*) 9273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9274 link_all_deplibs=yes 9275 ;; 9276 9277 interix[3-9]*) 9278 hardcode_direct=no 9279 hardcode_shlibpath_var=no 9280 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9281 export_dynamic_flag_spec='${wl}-E' 9282 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9283 # Instead, shared libraries are loaded at an image base (0x10000000 by 9284 # default) and relocated if they conflict, which is a slow very memory 9285 # consuming and fragmenting process. To avoid this, we pick a random, 9286 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9287 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9288 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9289 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' 9290 ;; 9291 9292 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9293 tmp_diet=no 9294 if test "$host_os" = linux-dietlibc; then 9295 case $cc_basename in 9296 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9297 esac 9298 fi 9299 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9300 && test "$tmp_diet" = no 9301 then 9302 tmp_addflag=' $pic_flag' 9303 tmp_sharedflag='-shared' 9304 case $cc_basename,$host_cpu in 9305 pgcc*) # Portland Group C compiler 9306 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' 9307 tmp_addflag=' $pic_flag' 9308 ;; 9309 pgf77* | pgf90* | pgf95* | pgfortran*) 9310 # Portland Group f77 and f90 compilers 9311 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' 9312 tmp_addflag=' $pic_flag -Mnomain' ;; 9313 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9314 tmp_addflag=' -i_dynamic' ;; 9315 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9316 tmp_addflag=' -i_dynamic -nofor_main' ;; 9317 ifc* | ifort*) # Intel Fortran compiler 9318 tmp_addflag=' -nofor_main' ;; 9319 lf95*) # Lahey Fortran 8.1 9320 whole_archive_flag_spec= 9321 tmp_sharedflag='--shared' ;; 9322 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9323 tmp_sharedflag='-qmkshrobj' 9324 tmp_addflag= ;; 9325 nvcc*) # Cuda Compiler Driver 2.2 9326 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' 9327 compiler_needs_object=yes 9328 ;; 9329 esac 9330 case `$CC -V 2>&1 | sed 5q` in 9331 *Sun\ C*) # Sun C 5.9 9332 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' 9333 compiler_needs_object=yes 9334 tmp_sharedflag='-G' ;; 9335 *Sun\ F*) # Sun Fortran 8.3 9336 tmp_sharedflag='-G' ;; 9337 esac 9338 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9339 9340 if test "x$supports_anon_versioning" = xyes; then 9341 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9342 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9343 echo "local: *; };" >> $output_objdir/$libname.ver~ 9344 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9345 fi 9346 9347 case $cc_basename in 9348 xlf* | bgf* | bgxlf* | mpixlf*) 9349 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9350 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9351 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9352 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9353 if test "x$supports_anon_versioning" = xyes; then 9354 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9355 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9356 echo "local: *; };" >> $output_objdir/$libname.ver~ 9357 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9358 fi 9359 ;; 9360 esac 9361 else 9362 ld_shlibs=no 9363 fi 9364 ;; 9365 9366 netbsd*) 9367 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9368 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9369 wlarc= 9370 else 9371 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9372 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9373 fi 9374 ;; 9375 9376 solaris*) 9377 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9378 ld_shlibs=no 9379 cat <<_LT_EOF 1>&2 9380 9381*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9382*** create shared libraries on Solaris systems. Therefore, libtool 9383*** is disabling shared libraries support. We urge you to upgrade GNU 9384*** binutils to release 2.9.1 or newer. Another option is to modify 9385*** your PATH or compiler configuration so that the native linker is 9386*** used, and then restart. 9387 9388_LT_EOF 9389 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9390 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9391 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9392 else 9393 ld_shlibs=no 9394 fi 9395 ;; 9396 9397 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9398 case `$LD -v 2>&1` in 9399 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9400 ld_shlibs=no 9401 cat <<_LT_EOF 1>&2 9402 9403*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9404*** reliably create shared libraries on SCO systems. Therefore, libtool 9405*** is disabling shared libraries support. We urge you to upgrade GNU 9406*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9407*** your PATH or compiler configuration so that the native linker is 9408*** used, and then restart. 9409 9410_LT_EOF 9411 ;; 9412 *) 9413 # For security reasons, it is highly recommended that you always 9414 # use absolute paths for naming shared libraries, and exclude the 9415 # DT_RUNPATH tag from executables and libraries. But doing so 9416 # requires that you compile everything twice, which is a pain. 9417 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9418 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9420 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9421 else 9422 ld_shlibs=no 9423 fi 9424 ;; 9425 esac 9426 ;; 9427 9428 sunos4*) 9429 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9430 wlarc= 9431 hardcode_direct=yes 9432 hardcode_shlibpath_var=no 9433 ;; 9434 9435 *) 9436 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9437 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9438 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9439 else 9440 ld_shlibs=no 9441 fi 9442 ;; 9443 esac 9444 9445 if test "$ld_shlibs" = no; then 9446 runpath_var= 9447 hardcode_libdir_flag_spec= 9448 export_dynamic_flag_spec= 9449 whole_archive_flag_spec= 9450 fi 9451 else 9452 # PORTME fill in a description of your system's linker (not GNU ld) 9453 case $host_os in 9454 aix3*) 9455 allow_undefined_flag=unsupported 9456 always_export_symbols=yes 9457 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' 9458 # Note: this linker hardcodes the directories in LIBPATH if there 9459 # are no directories specified by -L. 9460 hardcode_minus_L=yes 9461 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9462 # Neither direct hardcoding nor static linking is supported with a 9463 # broken collect2. 9464 hardcode_direct=unsupported 9465 fi 9466 ;; 9467 9468 aix[4-9]*) 9469 if test "$host_cpu" = ia64; then 9470 # On IA64, the linker does run time linking by default, so we don't 9471 # have to do anything special. 9472 aix_use_runtimelinking=no 9473 exp_sym_flag='-Bexport' 9474 no_entry_flag="" 9475 else 9476 # If we're using GNU nm, then we don't want the "-C" option. 9477 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9478 # Also, AIX nm treats weak defined symbols like other global 9479 # defined symbols, whereas GNU nm marks them as "W". 9480 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9481 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9482 else 9483 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9484 fi 9485 aix_use_runtimelinking=no 9486 9487 # Test if we are trying to use run time linking or normal 9488 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9489 # need to do runtime linking. 9490 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9491 for ld_flag in $LDFLAGS; do 9492 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9493 aix_use_runtimelinking=yes 9494 break 9495 fi 9496 done 9497 ;; 9498 esac 9499 9500 exp_sym_flag='-bexport' 9501 no_entry_flag='-bnoentry' 9502 fi 9503 9504 # When large executables or shared objects are built, AIX ld can 9505 # have problems creating the table of contents. If linking a library 9506 # or program results in "error TOC overflow" add -mminimal-toc to 9507 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9508 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9509 9510 archive_cmds='' 9511 hardcode_direct=yes 9512 hardcode_direct_absolute=yes 9513 hardcode_libdir_separator=':' 9514 link_all_deplibs=yes 9515 file_list_spec='${wl}-f,' 9516 9517 if test "$GCC" = yes; then 9518 case $host_os in aix4.[012]|aix4.[012].*) 9519 # We only want to do this on AIX 4.2 and lower, the check 9520 # below for broken collect2 doesn't work under 4.3+ 9521 collect2name=`${CC} -print-prog-name=collect2` 9522 if test -f "$collect2name" && 9523 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9524 then 9525 # We have reworked collect2 9526 : 9527 else 9528 # We have old collect2 9529 hardcode_direct=unsupported 9530 # It fails to find uninstalled libraries when the uninstalled 9531 # path is not listed in the libpath. Setting hardcode_minus_L 9532 # to unsupported forces relinking 9533 hardcode_minus_L=yes 9534 hardcode_libdir_flag_spec='-L$libdir' 9535 hardcode_libdir_separator= 9536 fi 9537 ;; 9538 esac 9539 shared_flag='-shared' 9540 if test "$aix_use_runtimelinking" = yes; then 9541 shared_flag="$shared_flag "'${wl}-G' 9542 fi 9543 else 9544 # not using gcc 9545 if test "$host_cpu" = ia64; then 9546 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9547 # chokes on -Wl,-G. The following line is correct: 9548 shared_flag='-G' 9549 else 9550 if test "$aix_use_runtimelinking" = yes; then 9551 shared_flag='${wl}-G' 9552 else 9553 shared_flag='${wl}-bM:SRE' 9554 fi 9555 fi 9556 fi 9557 9558 export_dynamic_flag_spec='${wl}-bexpall' 9559 # It seems that -bexpall does not export symbols beginning with 9560 # underscore (_), so it is better to generate a list of symbols to export. 9561 always_export_symbols=yes 9562 if test "$aix_use_runtimelinking" = yes; then 9563 # Warning - without using the other runtime loading flags (-brtl), 9564 # -berok will link without error, but may produce a broken library. 9565 allow_undefined_flag='-berok' 9566 # Determine the default libpath from the value encoded in an 9567 # empty executable. 9568 if test "${lt_cv_aix_libpath+set}" = set; then 9569 aix_libpath=$lt_cv_aix_libpath 9570else 9571 if ${lt_cv_aix_libpath_+:} false; then : 9572 $as_echo_n "(cached) " >&6 9573else 9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9575/* end confdefs.h. */ 9576 9577int 9578main () 9579{ 9580 9581 ; 9582 return 0; 9583} 9584_ACEOF 9585if ac_fn_c_try_link "$LINENO"; then : 9586 9587 lt_aix_libpath_sed=' 9588 /Import File Strings/,/^$/ { 9589 /^0/ { 9590 s/^0 *\([^ ]*\) *$/\1/ 9591 p 9592 } 9593 }' 9594 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9595 # Check for a 64-bit object if we didn't find anything. 9596 if test -z "$lt_cv_aix_libpath_"; then 9597 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9598 fi 9599fi 9600rm -f core conftest.err conftest.$ac_objext \ 9601 conftest$ac_exeext conftest.$ac_ext 9602 if test -z "$lt_cv_aix_libpath_"; then 9603 lt_cv_aix_libpath_="/usr/lib:/lib" 9604 fi 9605 9606fi 9607 9608 aix_libpath=$lt_cv_aix_libpath_ 9609fi 9610 9611 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9612 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9613 else 9614 if test "$host_cpu" = ia64; then 9615 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9616 allow_undefined_flag="-z nodefs" 9617 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" 9618 else 9619 # Determine the default libpath from the value encoded in an 9620 # empty executable. 9621 if test "${lt_cv_aix_libpath+set}" = set; then 9622 aix_libpath=$lt_cv_aix_libpath 9623else 9624 if ${lt_cv_aix_libpath_+:} false; then : 9625 $as_echo_n "(cached) " >&6 9626else 9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9628/* end confdefs.h. */ 9629 9630int 9631main () 9632{ 9633 9634 ; 9635 return 0; 9636} 9637_ACEOF 9638if ac_fn_c_try_link "$LINENO"; then : 9639 9640 lt_aix_libpath_sed=' 9641 /Import File Strings/,/^$/ { 9642 /^0/ { 9643 s/^0 *\([^ ]*\) *$/\1/ 9644 p 9645 } 9646 }' 9647 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9648 # Check for a 64-bit object if we didn't find anything. 9649 if test -z "$lt_cv_aix_libpath_"; then 9650 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9651 fi 9652fi 9653rm -f core conftest.err conftest.$ac_objext \ 9654 conftest$ac_exeext conftest.$ac_ext 9655 if test -z "$lt_cv_aix_libpath_"; then 9656 lt_cv_aix_libpath_="/usr/lib:/lib" 9657 fi 9658 9659fi 9660 9661 aix_libpath=$lt_cv_aix_libpath_ 9662fi 9663 9664 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9665 # Warning - without using the other run time loading flags, 9666 # -berok will link without error, but may produce a broken library. 9667 no_undefined_flag=' ${wl}-bernotok' 9668 allow_undefined_flag=' ${wl}-berok' 9669 if test "$with_gnu_ld" = yes; then 9670 # We only use this code for GNU lds that support --whole-archive. 9671 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9672 else 9673 # Exported symbols can be pulled into shared objects from archives 9674 whole_archive_flag_spec='$convenience' 9675 fi 9676 archive_cmds_need_lc=yes 9677 # This is similar to how AIX traditionally builds its shared libraries. 9678 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9679 fi 9680 fi 9681 ;; 9682 9683 amigaos*) 9684 case $host_cpu in 9685 powerpc) 9686 # see comment about AmigaOS4 .so support 9687 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9688 archive_expsym_cmds='' 9689 ;; 9690 m68k) 9691 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)' 9692 hardcode_libdir_flag_spec='-L$libdir' 9693 hardcode_minus_L=yes 9694 ;; 9695 esac 9696 ;; 9697 9698 bsdi[45]*) 9699 export_dynamic_flag_spec=-rdynamic 9700 ;; 9701 9702 cygwin* | mingw* | pw32* | cegcc*) 9703 # When not using gcc, we currently assume that we are using 9704 # Microsoft Visual C++. 9705 # hardcode_libdir_flag_spec is actually meaningless, as there is 9706 # no search path for DLLs. 9707 case $cc_basename in 9708 cl*) 9709 # Native MSVC 9710 hardcode_libdir_flag_spec=' ' 9711 allow_undefined_flag=unsupported 9712 always_export_symbols=yes 9713 file_list_spec='@' 9714 # Tell ltmain to make .lib files, not .a files. 9715 libext=lib 9716 # Tell ltmain to make .dll files, not .so files. 9717 shrext_cmds=".dll" 9718 # FIXME: Setting linknames here is a bad hack. 9719 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9720 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9721 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9722 else 9723 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9724 fi~ 9725 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9726 linknames=' 9727 # The linker will not automatically build a static lib if we build a DLL. 9728 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9729 enable_shared_with_static_runtimes=yes 9730 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9731 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9732 # Don't use ranlib 9733 old_postinstall_cmds='chmod 644 $oldlib' 9734 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9735 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9736 case $lt_outputfile in 9737 *.exe|*.EXE) ;; 9738 *) 9739 lt_outputfile="$lt_outputfile.exe" 9740 lt_tool_outputfile="$lt_tool_outputfile.exe" 9741 ;; 9742 esac~ 9743 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9744 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9745 $RM "$lt_outputfile.manifest"; 9746 fi' 9747 ;; 9748 *) 9749 # Assume MSVC wrapper 9750 hardcode_libdir_flag_spec=' ' 9751 allow_undefined_flag=unsupported 9752 # Tell ltmain to make .lib files, not .a files. 9753 libext=lib 9754 # Tell ltmain to make .dll files, not .so files. 9755 shrext_cmds=".dll" 9756 # FIXME: Setting linknames here is a bad hack. 9757 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9758 # The linker will automatically build a .lib file if we build a DLL. 9759 old_archive_from_new_cmds='true' 9760 # FIXME: Should let the user specify the lib program. 9761 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9762 enable_shared_with_static_runtimes=yes 9763 ;; 9764 esac 9765 ;; 9766 9767 darwin* | rhapsody*) 9768 9769 9770 archive_cmds_need_lc=no 9771 hardcode_direct=no 9772 hardcode_automatic=yes 9773 hardcode_shlibpath_var=unsupported 9774 if test "$lt_cv_ld_force_load" = "yes"; then 9775 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\"`' 9776 9777 else 9778 whole_archive_flag_spec='' 9779 fi 9780 link_all_deplibs=yes 9781 allow_undefined_flag="$_lt_dar_allow_undefined" 9782 case $cc_basename in 9783 ifort*) _lt_dar_can_shared=yes ;; 9784 *) _lt_dar_can_shared=$GCC ;; 9785 esac 9786 if test "$_lt_dar_can_shared" = "yes"; then 9787 output_verbose_link_cmd=func_echo_all 9788 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9789 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9790 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}" 9791 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}" 9792 9793 else 9794 ld_shlibs=no 9795 fi 9796 9797 ;; 9798 9799 dgux*) 9800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9801 hardcode_libdir_flag_spec='-L$libdir' 9802 hardcode_shlibpath_var=no 9803 ;; 9804 9805 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9806 # support. Future versions do this automatically, but an explicit c++rt0.o 9807 # does not break anything, and helps significantly (at the cost of a little 9808 # extra space). 9809 freebsd2.2*) 9810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9811 hardcode_libdir_flag_spec='-R$libdir' 9812 hardcode_direct=yes 9813 hardcode_shlibpath_var=no 9814 ;; 9815 9816 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9817 freebsd2.*) 9818 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9819 hardcode_direct=yes 9820 hardcode_minus_L=yes 9821 hardcode_shlibpath_var=no 9822 ;; 9823 9824 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9825 freebsd* | dragonfly*) 9826 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9827 hardcode_libdir_flag_spec='-R$libdir' 9828 hardcode_direct=yes 9829 hardcode_shlibpath_var=no 9830 ;; 9831 9832 hpux9*) 9833 if test "$GCC" = yes; then 9834 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9835 else 9836 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9837 fi 9838 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9839 hardcode_libdir_separator=: 9840 hardcode_direct=yes 9841 9842 # hardcode_minus_L: Not really in the search PATH, 9843 # but as the default location of the library. 9844 hardcode_minus_L=yes 9845 export_dynamic_flag_spec='${wl}-E' 9846 ;; 9847 9848 hpux10*) 9849 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9850 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9851 else 9852 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9853 fi 9854 if test "$with_gnu_ld" = no; then 9855 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9856 hardcode_libdir_separator=: 9857 hardcode_direct=yes 9858 hardcode_direct_absolute=yes 9859 export_dynamic_flag_spec='${wl}-E' 9860 # hardcode_minus_L: Not really in the search PATH, 9861 # but as the default location of the library. 9862 hardcode_minus_L=yes 9863 fi 9864 ;; 9865 9866 hpux11*) 9867 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9868 case $host_cpu in 9869 hppa*64*) 9870 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9871 ;; 9872 ia64*) 9873 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9874 ;; 9875 *) 9876 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9877 ;; 9878 esac 9879 else 9880 case $host_cpu in 9881 hppa*64*) 9882 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9883 ;; 9884 ia64*) 9885 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9886 ;; 9887 *) 9888 9889 # Older versions of the 11.00 compiler do not understand -b yet 9890 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9892$as_echo_n "checking if $CC understands -b... " >&6; } 9893if ${lt_cv_prog_compiler__b+:} false; then : 9894 $as_echo_n "(cached) " >&6 9895else 9896 lt_cv_prog_compiler__b=no 9897 save_LDFLAGS="$LDFLAGS" 9898 LDFLAGS="$LDFLAGS -b" 9899 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9900 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9901 # The linker can only warn and ignore the option if not recognized 9902 # So say no if there are warnings 9903 if test -s conftest.err; then 9904 # Append any errors to the config.log. 9905 cat conftest.err 1>&5 9906 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9907 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9908 if diff conftest.exp conftest.er2 >/dev/null; then 9909 lt_cv_prog_compiler__b=yes 9910 fi 9911 else 9912 lt_cv_prog_compiler__b=yes 9913 fi 9914 fi 9915 $RM -r conftest* 9916 LDFLAGS="$save_LDFLAGS" 9917 9918fi 9919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9920$as_echo "$lt_cv_prog_compiler__b" >&6; } 9921 9922if test x"$lt_cv_prog_compiler__b" = xyes; then 9923 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9924else 9925 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9926fi 9927 9928 ;; 9929 esac 9930 fi 9931 if test "$with_gnu_ld" = no; then 9932 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9933 hardcode_libdir_separator=: 9934 9935 case $host_cpu in 9936 hppa*64*|ia64*) 9937 hardcode_direct=no 9938 hardcode_shlibpath_var=no 9939 ;; 9940 *) 9941 hardcode_direct=yes 9942 hardcode_direct_absolute=yes 9943 export_dynamic_flag_spec='${wl}-E' 9944 9945 # hardcode_minus_L: Not really in the search PATH, 9946 # but as the default location of the library. 9947 hardcode_minus_L=yes 9948 ;; 9949 esac 9950 fi 9951 ;; 9952 9953 irix5* | irix6* | nonstopux*) 9954 if test "$GCC" = yes; then 9955 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' 9956 # Try to use the -exported_symbol ld option, if it does not 9957 # work, assume that -exports_file does not work either and 9958 # implicitly export all symbols. 9959 # This should be the same for all languages, so no per-tag cache variable. 9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9961$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9962if ${lt_cv_irix_exported_symbol+:} false; then : 9963 $as_echo_n "(cached) " >&6 9964else 9965 save_LDFLAGS="$LDFLAGS" 9966 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9968/* end confdefs.h. */ 9969int foo (void) { return 0; } 9970_ACEOF 9971if ac_fn_c_try_link "$LINENO"; then : 9972 lt_cv_irix_exported_symbol=yes 9973else 9974 lt_cv_irix_exported_symbol=no 9975fi 9976rm -f core conftest.err conftest.$ac_objext \ 9977 conftest$ac_exeext conftest.$ac_ext 9978 LDFLAGS="$save_LDFLAGS" 9979fi 9980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9981$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9982 if test "$lt_cv_irix_exported_symbol" = yes; then 9983 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' 9984 fi 9985 else 9986 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' 9987 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' 9988 fi 9989 archive_cmds_need_lc='no' 9990 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9991 hardcode_libdir_separator=: 9992 inherit_rpath=yes 9993 link_all_deplibs=yes 9994 ;; 9995 9996 netbsd*) 9997 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9998 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9999 else 10000 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10001 fi 10002 hardcode_libdir_flag_spec='-R$libdir' 10003 hardcode_direct=yes 10004 hardcode_shlibpath_var=no 10005 ;; 10006 10007 newsos6) 10008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10009 hardcode_direct=yes 10010 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10011 hardcode_libdir_separator=: 10012 hardcode_shlibpath_var=no 10013 ;; 10014 10015 *nto* | *qnx*) 10016 ;; 10017 10018 openbsd*) 10019 if test -f /usr/libexec/ld.so; then 10020 hardcode_direct=yes 10021 hardcode_shlibpath_var=no 10022 hardcode_direct_absolute=yes 10023 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10024 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10025 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10026 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10027 export_dynamic_flag_spec='${wl}-E' 10028 else 10029 case $host_os in 10030 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10031 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10032 hardcode_libdir_flag_spec='-R$libdir' 10033 ;; 10034 *) 10035 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10036 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10037 ;; 10038 esac 10039 fi 10040 else 10041 ld_shlibs=no 10042 fi 10043 ;; 10044 10045 os2*) 10046 hardcode_libdir_flag_spec='-L$libdir' 10047 hardcode_minus_L=yes 10048 allow_undefined_flag=unsupported 10049 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10050 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10051 ;; 10052 10053 osf3*) 10054 if test "$GCC" = yes; then 10055 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10056 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' 10057 else 10058 allow_undefined_flag=' -expect_unresolved \*' 10059 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' 10060 fi 10061 archive_cmds_need_lc='no' 10062 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10063 hardcode_libdir_separator=: 10064 ;; 10065 10066 osf4* | osf5*) # as osf3* with the addition of -msym flag 10067 if test "$GCC" = yes; then 10068 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10069 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' 10070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10071 else 10072 allow_undefined_flag=' -expect_unresolved \*' 10073 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' 10074 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~ 10075 $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' 10076 10077 # Both c and cxx compiler support -rpath directly 10078 hardcode_libdir_flag_spec='-rpath $libdir' 10079 fi 10080 archive_cmds_need_lc='no' 10081 hardcode_libdir_separator=: 10082 ;; 10083 10084 solaris*) 10085 no_undefined_flag=' -z defs' 10086 if test "$GCC" = yes; then 10087 wlarc='${wl}' 10088 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10089 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10090 $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' 10091 else 10092 case `$CC -V 2>&1` in 10093 *"Compilers 5.0"*) 10094 wlarc='' 10095 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10096 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10097 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10098 ;; 10099 *) 10100 wlarc='${wl}' 10101 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10102 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10103 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10104 ;; 10105 esac 10106 fi 10107 hardcode_libdir_flag_spec='-R$libdir' 10108 hardcode_shlibpath_var=no 10109 case $host_os in 10110 solaris2.[0-5] | solaris2.[0-5].*) ;; 10111 *) 10112 # The compiler driver will combine and reorder linker options, 10113 # but understands `-z linker_flag'. GCC discards it without `$wl', 10114 # but is careful enough not to reorder. 10115 # Supported since Solaris 2.6 (maybe 2.5.1?) 10116 if test "$GCC" = yes; then 10117 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10118 else 10119 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10120 fi 10121 ;; 10122 esac 10123 link_all_deplibs=yes 10124 ;; 10125 10126 sunos4*) 10127 if test "x$host_vendor" = xsequent; then 10128 # Use $CC to link under sequent, because it throws in some extra .o 10129 # files that make .init and .fini sections work. 10130 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10131 else 10132 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10133 fi 10134 hardcode_libdir_flag_spec='-L$libdir' 10135 hardcode_direct=yes 10136 hardcode_minus_L=yes 10137 hardcode_shlibpath_var=no 10138 ;; 10139 10140 sysv4) 10141 case $host_vendor in 10142 sni) 10143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10144 hardcode_direct=yes # is this really true??? 10145 ;; 10146 siemens) 10147 ## LD is ld it makes a PLAMLIB 10148 ## CC just makes a GrossModule. 10149 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10150 reload_cmds='$CC -r -o $output$reload_objs' 10151 hardcode_direct=no 10152 ;; 10153 motorola) 10154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10155 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10156 ;; 10157 esac 10158 runpath_var='LD_RUN_PATH' 10159 hardcode_shlibpath_var=no 10160 ;; 10161 10162 sysv4.3*) 10163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10164 hardcode_shlibpath_var=no 10165 export_dynamic_flag_spec='-Bexport' 10166 ;; 10167 10168 sysv4*MP*) 10169 if test -d /usr/nec; then 10170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10171 hardcode_shlibpath_var=no 10172 runpath_var=LD_RUN_PATH 10173 hardcode_runpath_var=yes 10174 ld_shlibs=yes 10175 fi 10176 ;; 10177 10178 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10179 no_undefined_flag='${wl}-z,text' 10180 archive_cmds_need_lc=no 10181 hardcode_shlibpath_var=no 10182 runpath_var='LD_RUN_PATH' 10183 10184 if test "$GCC" = yes; then 10185 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10186 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10187 else 10188 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10189 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10190 fi 10191 ;; 10192 10193 sysv5* | sco3.2v5* | sco5v6*) 10194 # Note: We can NOT use -z defs as we might desire, because we do not 10195 # link with -lc, and that would cause any symbols used from libc to 10196 # always be unresolved, which means just about no library would 10197 # ever link correctly. If we're not using GNU ld we use -z text 10198 # though, which does catch some bad symbols but isn't as heavy-handed 10199 # as -z defs. 10200 no_undefined_flag='${wl}-z,text' 10201 allow_undefined_flag='${wl}-z,nodefs' 10202 archive_cmds_need_lc=no 10203 hardcode_shlibpath_var=no 10204 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10205 hardcode_libdir_separator=':' 10206 link_all_deplibs=yes 10207 export_dynamic_flag_spec='${wl}-Bexport' 10208 runpath_var='LD_RUN_PATH' 10209 10210 if test "$GCC" = yes; then 10211 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10212 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10213 else 10214 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10215 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10216 fi 10217 ;; 10218 10219 uts4*) 10220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10221 hardcode_libdir_flag_spec='-L$libdir' 10222 hardcode_shlibpath_var=no 10223 ;; 10224 10225 *) 10226 ld_shlibs=no 10227 ;; 10228 esac 10229 10230 if test x$host_vendor = xsni; then 10231 case $host in 10232 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10233 export_dynamic_flag_spec='${wl}-Blargedynsym' 10234 ;; 10235 esac 10236 fi 10237 fi 10238 10239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10240$as_echo "$ld_shlibs" >&6; } 10241test "$ld_shlibs" = no && can_build_shared=no 10242 10243with_gnu_ld=$with_gnu_ld 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259# 10260# Do we need to explicitly link libc? 10261# 10262case "x$archive_cmds_need_lc" in 10263x|xyes) 10264 # Assume -lc should be added 10265 archive_cmds_need_lc=yes 10266 10267 if test "$enable_shared" = yes && test "$GCC" = yes; then 10268 case $archive_cmds in 10269 *'~'*) 10270 # FIXME: we may have to deal with multi-command sequences. 10271 ;; 10272 '$CC '*) 10273 # Test whether the compiler implicitly links with -lc since on some 10274 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10275 # to ld, don't add -lc before -lgcc. 10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10277$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10278if ${lt_cv_archive_cmds_need_lc+:} false; then : 10279 $as_echo_n "(cached) " >&6 10280else 10281 $RM conftest* 10282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10283 10284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10285 (eval $ac_compile) 2>&5 10286 ac_status=$? 10287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10288 test $ac_status = 0; } 2>conftest.err; then 10289 soname=conftest 10290 lib=conftest 10291 libobjs=conftest.$ac_objext 10292 deplibs= 10293 wl=$lt_prog_compiler_wl 10294 pic_flag=$lt_prog_compiler_pic 10295 compiler_flags=-v 10296 linker_flags=-v 10297 verstring= 10298 output_objdir=. 10299 libname=conftest 10300 lt_save_allow_undefined_flag=$allow_undefined_flag 10301 allow_undefined_flag= 10302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10303 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10304 ac_status=$? 10305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10306 test $ac_status = 0; } 10307 then 10308 lt_cv_archive_cmds_need_lc=no 10309 else 10310 lt_cv_archive_cmds_need_lc=yes 10311 fi 10312 allow_undefined_flag=$lt_save_allow_undefined_flag 10313 else 10314 cat conftest.err 1>&5 10315 fi 10316 $RM conftest* 10317 10318fi 10319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10320$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10321 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10322 ;; 10323 esac 10324 fi 10325 ;; 10326esac 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10480$as_echo_n "checking dynamic linker characteristics... " >&6; } 10481 10482if test "$GCC" = yes; then 10483 case $host_os in 10484 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10485 *) lt_awk_arg="/^libraries:/" ;; 10486 esac 10487 case $host_os in 10488 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10489 *) lt_sed_strip_eq="s,=/,/,g" ;; 10490 esac 10491 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10492 case $lt_search_path_spec in 10493 *\;*) 10494 # if the path contains ";" then we assume it to be the separator 10495 # otherwise default to the standard path separator (i.e. ":") - it is 10496 # assumed that no part of a normal pathname contains ";" but that should 10497 # okay in the real world where ";" in dirpaths is itself problematic. 10498 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10499 ;; 10500 *) 10501 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10502 ;; 10503 esac 10504 # Ok, now we have the path, separated by spaces, we can step through it 10505 # and add multilib dir if necessary. 10506 lt_tmp_lt_search_path_spec= 10507 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10508 for lt_sys_path in $lt_search_path_spec; do 10509 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10510 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10511 else 10512 test -d "$lt_sys_path" && \ 10513 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10514 fi 10515 done 10516 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10517BEGIN {RS=" "; FS="/|\n";} { 10518 lt_foo=""; 10519 lt_count=0; 10520 for (lt_i = NF; lt_i > 0; lt_i--) { 10521 if ($lt_i != "" && $lt_i != ".") { 10522 if ($lt_i == "..") { 10523 lt_count++; 10524 } else { 10525 if (lt_count == 0) { 10526 lt_foo="/" $lt_i lt_foo; 10527 } else { 10528 lt_count--; 10529 } 10530 } 10531 } 10532 } 10533 if (lt_foo != "") { lt_freq[lt_foo]++; } 10534 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10535}'` 10536 # AWK program above erroneously prepends '/' to C:/dos/paths 10537 # for these hosts. 10538 case $host_os in 10539 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10540 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10541 esac 10542 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10543else 10544 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10545fi 10546library_names_spec= 10547libname_spec='lib$name' 10548soname_spec= 10549shrext_cmds=".so" 10550postinstall_cmds= 10551postuninstall_cmds= 10552finish_cmds= 10553finish_eval= 10554shlibpath_var= 10555shlibpath_overrides_runpath=unknown 10556version_type=none 10557dynamic_linker="$host_os ld.so" 10558sys_lib_dlsearch_path_spec="/lib /usr/lib" 10559need_lib_prefix=unknown 10560hardcode_into_libs=no 10561 10562# when you set need_version to no, make sure it does not cause -set_version 10563# flags to be left without arguments 10564need_version=unknown 10565 10566case $host_os in 10567aix3*) 10568 version_type=linux # correct to gnu/linux during the next big refactor 10569 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10570 shlibpath_var=LIBPATH 10571 10572 # AIX 3 has no versioning support, so we append a major version to the name. 10573 soname_spec='${libname}${release}${shared_ext}$major' 10574 ;; 10575 10576aix[4-9]*) 10577 version_type=linux # correct to gnu/linux during the next big refactor 10578 need_lib_prefix=no 10579 need_version=no 10580 hardcode_into_libs=yes 10581 if test "$host_cpu" = ia64; then 10582 # AIX 5 supports IA64 10583 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10584 shlibpath_var=LD_LIBRARY_PATH 10585 else 10586 # With GCC up to 2.95.x, collect2 would create an import file 10587 # for dependence libraries. The import file would start with 10588 # the line `#! .'. This would cause the generated library to 10589 # depend on `.', always an invalid library. This was fixed in 10590 # development snapshots of GCC prior to 3.0. 10591 case $host_os in 10592 aix4 | aix4.[01] | aix4.[01].*) 10593 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10594 echo ' yes ' 10595 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10596 : 10597 else 10598 can_build_shared=no 10599 fi 10600 ;; 10601 esac 10602 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10603 # soname into executable. Probably we can add versioning support to 10604 # collect2, so additional links can be useful in future. 10605 if test "$aix_use_runtimelinking" = yes; then 10606 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10607 # instead of lib<name>.a to let people know that these are not 10608 # typical AIX shared libraries. 10609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10610 else 10611 # We preserve .a as extension for shared libraries through AIX4.2 10612 # and later when we are not doing run time linking. 10613 library_names_spec='${libname}${release}.a $libname.a' 10614 soname_spec='${libname}${release}${shared_ext}$major' 10615 fi 10616 shlibpath_var=LIBPATH 10617 fi 10618 ;; 10619 10620amigaos*) 10621 case $host_cpu in 10622 powerpc) 10623 # Since July 2007 AmigaOS4 officially supports .so libraries. 10624 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10626 ;; 10627 m68k) 10628 library_names_spec='$libname.ixlibrary $libname.a' 10629 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10630 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10631 ;; 10632 esac 10633 ;; 10634 10635beos*) 10636 library_names_spec='${libname}${shared_ext}' 10637 dynamic_linker="$host_os ld.so" 10638 shlibpath_var=LIBRARY_PATH 10639 ;; 10640 10641bsdi[45]*) 10642 version_type=linux # correct to gnu/linux during the next big refactor 10643 need_version=no 10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10645 soname_spec='${libname}${release}${shared_ext}$major' 10646 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10647 shlibpath_var=LD_LIBRARY_PATH 10648 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10649 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10650 # the default ld.so.conf also contains /usr/contrib/lib and 10651 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10652 # libtool to hard-code these into programs 10653 ;; 10654 10655cygwin* | mingw* | pw32* | cegcc*) 10656 version_type=windows 10657 shrext_cmds=".dll" 10658 need_version=no 10659 need_lib_prefix=no 10660 10661 case $GCC,$cc_basename in 10662 yes,*) 10663 # gcc 10664 library_names_spec='$libname.dll.a' 10665 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10666 postinstall_cmds='base_file=`basename \${file}`~ 10667 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10668 dldir=$destdir/`dirname \$dlpath`~ 10669 test -d \$dldir || mkdir -p \$dldir~ 10670 $install_prog $dir/$dlname \$dldir/$dlname~ 10671 chmod a+x \$dldir/$dlname~ 10672 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10673 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10674 fi' 10675 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10676 dlpath=$dir/\$dldll~ 10677 $RM \$dlpath' 10678 shlibpath_overrides_runpath=yes 10679 10680 case $host_os in 10681 cygwin*) 10682 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10683 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10684 10685 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10686 ;; 10687 mingw* | cegcc*) 10688 # MinGW DLLs use traditional 'lib' prefix 10689 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10690 ;; 10691 pw32*) 10692 # pw32 DLLs use 'pw' prefix rather than 'lib' 10693 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10694 ;; 10695 esac 10696 dynamic_linker='Win32 ld.exe' 10697 ;; 10698 10699 *,cl*) 10700 # Native MSVC 10701 libname_spec='$name' 10702 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10703 library_names_spec='${libname}.dll.lib' 10704 10705 case $build_os in 10706 mingw*) 10707 sys_lib_search_path_spec= 10708 lt_save_ifs=$IFS 10709 IFS=';' 10710 for lt_path in $LIB 10711 do 10712 IFS=$lt_save_ifs 10713 # Let DOS variable expansion print the short 8.3 style file name. 10714 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10715 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10716 done 10717 IFS=$lt_save_ifs 10718 # Convert to MSYS style. 10719 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10720 ;; 10721 cygwin*) 10722 # Convert to unix form, then to dos form, then back to unix form 10723 # but this time dos style (no spaces!) so that the unix form looks 10724 # like /cygdrive/c/PROGRA~1:/cygdr... 10725 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10726 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10727 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10728 ;; 10729 *) 10730 sys_lib_search_path_spec="$LIB" 10731 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10732 # It is most probably a Windows format PATH. 10733 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10734 else 10735 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10736 fi 10737 # FIXME: find the short name or the path components, as spaces are 10738 # common. (e.g. "Program Files" -> "PROGRA~1") 10739 ;; 10740 esac 10741 10742 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10743 postinstall_cmds='base_file=`basename \${file}`~ 10744 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10745 dldir=$destdir/`dirname \$dlpath`~ 10746 test -d \$dldir || mkdir -p \$dldir~ 10747 $install_prog $dir/$dlname \$dldir/$dlname' 10748 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10749 dlpath=$dir/\$dldll~ 10750 $RM \$dlpath' 10751 shlibpath_overrides_runpath=yes 10752 dynamic_linker='Win32 link.exe' 10753 ;; 10754 10755 *) 10756 # Assume MSVC wrapper 10757 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10758 dynamic_linker='Win32 ld.exe' 10759 ;; 10760 esac 10761 # FIXME: first we should search . and the directory the executable is in 10762 shlibpath_var=PATH 10763 ;; 10764 10765darwin* | rhapsody*) 10766 dynamic_linker="$host_os dyld" 10767 version_type=darwin 10768 need_lib_prefix=no 10769 need_version=no 10770 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10771 soname_spec='${libname}${release}${major}$shared_ext' 10772 shlibpath_overrides_runpath=yes 10773 shlibpath_var=DYLD_LIBRARY_PATH 10774 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10775 10776 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10777 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10778 ;; 10779 10780dgux*) 10781 version_type=linux # correct to gnu/linux during the next big refactor 10782 need_lib_prefix=no 10783 need_version=no 10784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10785 soname_spec='${libname}${release}${shared_ext}$major' 10786 shlibpath_var=LD_LIBRARY_PATH 10787 ;; 10788 10789freebsd* | dragonfly*) 10790 # DragonFly does not have aout. When/if they implement a new 10791 # versioning mechanism, adjust this. 10792 if test -x /usr/bin/objformat; then 10793 objformat=`/usr/bin/objformat` 10794 else 10795 case $host_os in 10796 freebsd[23].*) objformat=aout ;; 10797 *) objformat=elf ;; 10798 esac 10799 fi 10800 version_type=freebsd-$objformat 10801 case $version_type in 10802 freebsd-elf*) 10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10804 need_version=no 10805 need_lib_prefix=no 10806 ;; 10807 freebsd-*) 10808 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10809 need_version=yes 10810 ;; 10811 esac 10812 shlibpath_var=LD_LIBRARY_PATH 10813 case $host_os in 10814 freebsd2.*) 10815 shlibpath_overrides_runpath=yes 10816 ;; 10817 freebsd3.[01]* | freebsdelf3.[01]*) 10818 shlibpath_overrides_runpath=yes 10819 hardcode_into_libs=yes 10820 ;; 10821 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10822 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10823 shlibpath_overrides_runpath=no 10824 hardcode_into_libs=yes 10825 ;; 10826 *) # from 4.6 on, and DragonFly 10827 shlibpath_overrides_runpath=yes 10828 hardcode_into_libs=yes 10829 ;; 10830 esac 10831 ;; 10832 10833gnu*) 10834 version_type=linux # correct to gnu/linux during the next big refactor 10835 need_lib_prefix=no 10836 need_version=no 10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10838 soname_spec='${libname}${release}${shared_ext}$major' 10839 shlibpath_var=LD_LIBRARY_PATH 10840 shlibpath_overrides_runpath=no 10841 hardcode_into_libs=yes 10842 ;; 10843 10844haiku*) 10845 version_type=linux # correct to gnu/linux during the next big refactor 10846 need_lib_prefix=no 10847 need_version=no 10848 dynamic_linker="$host_os runtime_loader" 10849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10850 soname_spec='${libname}${release}${shared_ext}$major' 10851 shlibpath_var=LIBRARY_PATH 10852 shlibpath_overrides_runpath=yes 10853 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10854 hardcode_into_libs=yes 10855 ;; 10856 10857hpux9* | hpux10* | hpux11*) 10858 # Give a soname corresponding to the major version so that dld.sl refuses to 10859 # link against other versions. 10860 version_type=sunos 10861 need_lib_prefix=no 10862 need_version=no 10863 case $host_cpu in 10864 ia64*) 10865 shrext_cmds='.so' 10866 hardcode_into_libs=yes 10867 dynamic_linker="$host_os dld.so" 10868 shlibpath_var=LD_LIBRARY_PATH 10869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10871 soname_spec='${libname}${release}${shared_ext}$major' 10872 if test "X$HPUX_IA64_MODE" = X32; then 10873 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10874 else 10875 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10876 fi 10877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10878 ;; 10879 hppa*64*) 10880 shrext_cmds='.sl' 10881 hardcode_into_libs=yes 10882 dynamic_linker="$host_os dld.sl" 10883 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10884 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10886 soname_spec='${libname}${release}${shared_ext}$major' 10887 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10888 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10889 ;; 10890 *) 10891 shrext_cmds='.sl' 10892 dynamic_linker="$host_os dld.sl" 10893 shlibpath_var=SHLIB_PATH 10894 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10896 soname_spec='${libname}${release}${shared_ext}$major' 10897 ;; 10898 esac 10899 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10900 postinstall_cmds='chmod 555 $lib' 10901 # or fails outright, so override atomically: 10902 install_override_mode=555 10903 ;; 10904 10905interix[3-9]*) 10906 version_type=linux # correct to gnu/linux during the next big refactor 10907 need_lib_prefix=no 10908 need_version=no 10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10910 soname_spec='${libname}${release}${shared_ext}$major' 10911 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10912 shlibpath_var=LD_LIBRARY_PATH 10913 shlibpath_overrides_runpath=no 10914 hardcode_into_libs=yes 10915 ;; 10916 10917irix5* | irix6* | nonstopux*) 10918 case $host_os in 10919 nonstopux*) version_type=nonstopux ;; 10920 *) 10921 if test "$lt_cv_prog_gnu_ld" = yes; then 10922 version_type=linux # correct to gnu/linux during the next big refactor 10923 else 10924 version_type=irix 10925 fi ;; 10926 esac 10927 need_lib_prefix=no 10928 need_version=no 10929 soname_spec='${libname}${release}${shared_ext}$major' 10930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10931 case $host_os in 10932 irix5* | nonstopux*) 10933 libsuff= shlibsuff= 10934 ;; 10935 *) 10936 case $LD in # libtool.m4 will add one of these switches to LD 10937 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10938 libsuff= shlibsuff= libmagic=32-bit;; 10939 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10940 libsuff=32 shlibsuff=N32 libmagic=N32;; 10941 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10942 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10943 *) libsuff= shlibsuff= libmagic=never-match;; 10944 esac 10945 ;; 10946 esac 10947 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10948 shlibpath_overrides_runpath=no 10949 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10950 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10951 hardcode_into_libs=yes 10952 ;; 10953 10954# No shared lib support for Linux oldld, aout, or coff. 10955linux*oldld* | linux*aout* | linux*coff*) 10956 dynamic_linker=no 10957 ;; 10958 10959# This must be glibc/ELF. 10960linux* | k*bsd*-gnu | kopensolaris*-gnu) 10961 version_type=linux # correct to gnu/linux during the next big refactor 10962 need_lib_prefix=no 10963 need_version=no 10964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10965 soname_spec='${libname}${release}${shared_ext}$major' 10966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10967 shlibpath_var=LD_LIBRARY_PATH 10968 shlibpath_overrides_runpath=no 10969 10970 # Some binutils ld are patched to set DT_RUNPATH 10971 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10972 $as_echo_n "(cached) " >&6 10973else 10974 lt_cv_shlibpath_overrides_runpath=no 10975 save_LDFLAGS=$LDFLAGS 10976 save_libdir=$libdir 10977 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10978 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10980/* end confdefs.h. */ 10981 10982int 10983main () 10984{ 10985 10986 ; 10987 return 0; 10988} 10989_ACEOF 10990if ac_fn_c_try_link "$LINENO"; then : 10991 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10992 lt_cv_shlibpath_overrides_runpath=yes 10993fi 10994fi 10995rm -f core conftest.err conftest.$ac_objext \ 10996 conftest$ac_exeext conftest.$ac_ext 10997 LDFLAGS=$save_LDFLAGS 10998 libdir=$save_libdir 10999 11000fi 11001 11002 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11003 11004 # This implies no fast_install, which is unacceptable. 11005 # Some rework will be needed to allow for fast_install 11006 # before this can be enabled. 11007 hardcode_into_libs=yes 11008 11009 # Append ld.so.conf contents to the search path 11010 if test -f /etc/ld.so.conf; then 11011 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' ' '` 11012 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11013 fi 11014 11015 # We used to test for /lib/ld.so.1 and disable shared libraries on 11016 # powerpc, because MkLinux only supported shared libraries with the 11017 # GNU dynamic linker. Since this was broken with cross compilers, 11018 # most powerpc-linux boxes support dynamic linking these days and 11019 # people can always --disable-shared, the test was removed, and we 11020 # assume the GNU/Linux dynamic linker is in use. 11021 dynamic_linker='GNU/Linux ld.so' 11022 ;; 11023 11024netbsd*) 11025 version_type=sunos 11026 need_lib_prefix=no 11027 need_version=no 11028 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11031 dynamic_linker='NetBSD (a.out) ld.so' 11032 else 11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11034 soname_spec='${libname}${release}${shared_ext}$major' 11035 dynamic_linker='NetBSD ld.elf_so' 11036 fi 11037 shlibpath_var=LD_LIBRARY_PATH 11038 shlibpath_overrides_runpath=yes 11039 hardcode_into_libs=yes 11040 ;; 11041 11042newsos6) 11043 version_type=linux # correct to gnu/linux during the next big refactor 11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11045 shlibpath_var=LD_LIBRARY_PATH 11046 shlibpath_overrides_runpath=yes 11047 ;; 11048 11049*nto* | *qnx*) 11050 version_type=qnx 11051 need_lib_prefix=no 11052 need_version=no 11053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11054 soname_spec='${libname}${release}${shared_ext}$major' 11055 shlibpath_var=LD_LIBRARY_PATH 11056 shlibpath_overrides_runpath=no 11057 hardcode_into_libs=yes 11058 dynamic_linker='ldqnx.so' 11059 ;; 11060 11061openbsd*) 11062 version_type=sunos 11063 sys_lib_dlsearch_path_spec="/usr/lib" 11064 need_lib_prefix=no 11065 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11066 case $host_os in 11067 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11068 *) need_version=no ;; 11069 esac 11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11072 shlibpath_var=LD_LIBRARY_PATH 11073 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11074 case $host_os in 11075 openbsd2.[89] | openbsd2.[89].*) 11076 shlibpath_overrides_runpath=no 11077 ;; 11078 *) 11079 shlibpath_overrides_runpath=yes 11080 ;; 11081 esac 11082 else 11083 shlibpath_overrides_runpath=yes 11084 fi 11085 ;; 11086 11087os2*) 11088 libname_spec='$name' 11089 shrext_cmds=".dll" 11090 need_lib_prefix=no 11091 library_names_spec='$libname${shared_ext} $libname.a' 11092 dynamic_linker='OS/2 ld.exe' 11093 shlibpath_var=LIBPATH 11094 ;; 11095 11096osf3* | osf4* | osf5*) 11097 version_type=osf 11098 need_lib_prefix=no 11099 need_version=no 11100 soname_spec='${libname}${release}${shared_ext}$major' 11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11102 shlibpath_var=LD_LIBRARY_PATH 11103 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11104 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11105 ;; 11106 11107rdos*) 11108 dynamic_linker=no 11109 ;; 11110 11111solaris*) 11112 version_type=linux # correct to gnu/linux during the next big refactor 11113 need_lib_prefix=no 11114 need_version=no 11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11116 soname_spec='${libname}${release}${shared_ext}$major' 11117 shlibpath_var=LD_LIBRARY_PATH 11118 shlibpath_overrides_runpath=yes 11119 hardcode_into_libs=yes 11120 # ldd complains unless libraries are executable 11121 postinstall_cmds='chmod +x $lib' 11122 ;; 11123 11124sunos4*) 11125 version_type=sunos 11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11127 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11128 shlibpath_var=LD_LIBRARY_PATH 11129 shlibpath_overrides_runpath=yes 11130 if test "$with_gnu_ld" = yes; then 11131 need_lib_prefix=no 11132 fi 11133 need_version=yes 11134 ;; 11135 11136sysv4 | sysv4.3*) 11137 version_type=linux # correct to gnu/linux during the next big refactor 11138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11139 soname_spec='${libname}${release}${shared_ext}$major' 11140 shlibpath_var=LD_LIBRARY_PATH 11141 case $host_vendor in 11142 sni) 11143 shlibpath_overrides_runpath=no 11144 need_lib_prefix=no 11145 runpath_var=LD_RUN_PATH 11146 ;; 11147 siemens) 11148 need_lib_prefix=no 11149 ;; 11150 motorola) 11151 need_lib_prefix=no 11152 need_version=no 11153 shlibpath_overrides_runpath=no 11154 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11155 ;; 11156 esac 11157 ;; 11158 11159sysv4*MP*) 11160 if test -d /usr/nec ;then 11161 version_type=linux # correct to gnu/linux during the next big refactor 11162 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11163 soname_spec='$libname${shared_ext}.$major' 11164 shlibpath_var=LD_LIBRARY_PATH 11165 fi 11166 ;; 11167 11168sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11169 version_type=freebsd-elf 11170 need_lib_prefix=no 11171 need_version=no 11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11173 soname_spec='${libname}${release}${shared_ext}$major' 11174 shlibpath_var=LD_LIBRARY_PATH 11175 shlibpath_overrides_runpath=yes 11176 hardcode_into_libs=yes 11177 if test "$with_gnu_ld" = yes; then 11178 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11179 else 11180 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11181 case $host_os in 11182 sco3.2v5*) 11183 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11184 ;; 11185 esac 11186 fi 11187 sys_lib_dlsearch_path_spec='/usr/lib' 11188 ;; 11189 11190tpf*) 11191 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11192 version_type=linux # correct to gnu/linux during the next big refactor 11193 need_lib_prefix=no 11194 need_version=no 11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11196 shlibpath_var=LD_LIBRARY_PATH 11197 shlibpath_overrides_runpath=no 11198 hardcode_into_libs=yes 11199 ;; 11200 11201uts4*) 11202 version_type=linux # correct to gnu/linux during the next big refactor 11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11204 soname_spec='${libname}${release}${shared_ext}$major' 11205 shlibpath_var=LD_LIBRARY_PATH 11206 ;; 11207 11208*) 11209 dynamic_linker=no 11210 ;; 11211esac 11212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11213$as_echo "$dynamic_linker" >&6; } 11214test "$dynamic_linker" = no && can_build_shared=no 11215 11216variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11217if test "$GCC" = yes; then 11218 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11219fi 11220 11221if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11222 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11223fi 11224if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11225 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11226fi 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11320$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11321hardcode_action= 11322if test -n "$hardcode_libdir_flag_spec" || 11323 test -n "$runpath_var" || 11324 test "X$hardcode_automatic" = "Xyes" ; then 11325 11326 # We can hardcode non-existent directories. 11327 if test "$hardcode_direct" != no && 11328 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11329 # have to relink, otherwise we might link with an installed library 11330 # when we should be linking with a yet-to-be-installed one 11331 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11332 test "$hardcode_minus_L" != no; then 11333 # Linking always hardcodes the temporary library directory. 11334 hardcode_action=relink 11335 else 11336 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11337 hardcode_action=immediate 11338 fi 11339else 11340 # We cannot hardcode anything, or else we can only hardcode existing 11341 # directories. 11342 hardcode_action=unsupported 11343fi 11344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11345$as_echo "$hardcode_action" >&6; } 11346 11347if test "$hardcode_action" = relink || 11348 test "$inherit_rpath" = yes; then 11349 # Fast installation is not supported 11350 enable_fast_install=no 11351elif test "$shlibpath_overrides_runpath" = yes || 11352 test "$enable_shared" = no; then 11353 # Fast installation is not necessary 11354 enable_fast_install=needless 11355fi 11356 11357 11358 11359 11360 11361 11362 if test "x$enable_dlopen" != xyes; then 11363 enable_dlopen=unknown 11364 enable_dlopen_self=unknown 11365 enable_dlopen_self_static=unknown 11366else 11367 lt_cv_dlopen=no 11368 lt_cv_dlopen_libs= 11369 11370 case $host_os in 11371 beos*) 11372 lt_cv_dlopen="load_add_on" 11373 lt_cv_dlopen_libs= 11374 lt_cv_dlopen_self=yes 11375 ;; 11376 11377 mingw* | pw32* | cegcc*) 11378 lt_cv_dlopen="LoadLibrary" 11379 lt_cv_dlopen_libs= 11380 ;; 11381 11382 cygwin*) 11383 lt_cv_dlopen="dlopen" 11384 lt_cv_dlopen_libs= 11385 ;; 11386 11387 darwin*) 11388 # if libdl is installed we need to link against it 11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11390$as_echo_n "checking for dlopen in -ldl... " >&6; } 11391if ${ac_cv_lib_dl_dlopen+:} false; then : 11392 $as_echo_n "(cached) " >&6 11393else 11394 ac_check_lib_save_LIBS=$LIBS 11395LIBS="-ldl $LIBS" 11396cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11397/* end confdefs.h. */ 11398 11399/* Override any GCC internal prototype to avoid an error. 11400 Use char because int might match the return type of a GCC 11401 builtin and then its argument prototype would still apply. */ 11402#ifdef __cplusplus 11403extern "C" 11404#endif 11405char dlopen (); 11406int 11407main () 11408{ 11409return dlopen (); 11410 ; 11411 return 0; 11412} 11413_ACEOF 11414if ac_fn_c_try_link "$LINENO"; then : 11415 ac_cv_lib_dl_dlopen=yes 11416else 11417 ac_cv_lib_dl_dlopen=no 11418fi 11419rm -f core conftest.err conftest.$ac_objext \ 11420 conftest$ac_exeext conftest.$ac_ext 11421LIBS=$ac_check_lib_save_LIBS 11422fi 11423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11424$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11425if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11426 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11427else 11428 11429 lt_cv_dlopen="dyld" 11430 lt_cv_dlopen_libs= 11431 lt_cv_dlopen_self=yes 11432 11433fi 11434 11435 ;; 11436 11437 *) 11438 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11439if test "x$ac_cv_func_shl_load" = xyes; then : 11440 lt_cv_dlopen="shl_load" 11441else 11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11443$as_echo_n "checking for shl_load in -ldld... " >&6; } 11444if ${ac_cv_lib_dld_shl_load+:} false; then : 11445 $as_echo_n "(cached) " >&6 11446else 11447 ac_check_lib_save_LIBS=$LIBS 11448LIBS="-ldld $LIBS" 11449cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11450/* end confdefs.h. */ 11451 11452/* Override any GCC internal prototype to avoid an error. 11453 Use char because int might match the return type of a GCC 11454 builtin and then its argument prototype would still apply. */ 11455#ifdef __cplusplus 11456extern "C" 11457#endif 11458char shl_load (); 11459int 11460main () 11461{ 11462return shl_load (); 11463 ; 11464 return 0; 11465} 11466_ACEOF 11467if ac_fn_c_try_link "$LINENO"; then : 11468 ac_cv_lib_dld_shl_load=yes 11469else 11470 ac_cv_lib_dld_shl_load=no 11471fi 11472rm -f core conftest.err conftest.$ac_objext \ 11473 conftest$ac_exeext conftest.$ac_ext 11474LIBS=$ac_check_lib_save_LIBS 11475fi 11476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11477$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11478if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11479 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11480else 11481 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11482if test "x$ac_cv_func_dlopen" = xyes; then : 11483 lt_cv_dlopen="dlopen" 11484else 11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11486$as_echo_n "checking for dlopen in -ldl... " >&6; } 11487if ${ac_cv_lib_dl_dlopen+:} false; then : 11488 $as_echo_n "(cached) " >&6 11489else 11490 ac_check_lib_save_LIBS=$LIBS 11491LIBS="-ldl $LIBS" 11492cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11493/* end confdefs.h. */ 11494 11495/* Override any GCC internal prototype to avoid an error. 11496 Use char because int might match the return type of a GCC 11497 builtin and then its argument prototype would still apply. */ 11498#ifdef __cplusplus 11499extern "C" 11500#endif 11501char dlopen (); 11502int 11503main () 11504{ 11505return dlopen (); 11506 ; 11507 return 0; 11508} 11509_ACEOF 11510if ac_fn_c_try_link "$LINENO"; then : 11511 ac_cv_lib_dl_dlopen=yes 11512else 11513 ac_cv_lib_dl_dlopen=no 11514fi 11515rm -f core conftest.err conftest.$ac_objext \ 11516 conftest$ac_exeext conftest.$ac_ext 11517LIBS=$ac_check_lib_save_LIBS 11518fi 11519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11520$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11521if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11522 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11523else 11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11525$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11526if ${ac_cv_lib_svld_dlopen+:} false; then : 11527 $as_echo_n "(cached) " >&6 11528else 11529 ac_check_lib_save_LIBS=$LIBS 11530LIBS="-lsvld $LIBS" 11531cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11532/* end confdefs.h. */ 11533 11534/* Override any GCC internal prototype to avoid an error. 11535 Use char because int might match the return type of a GCC 11536 builtin and then its argument prototype would still apply. */ 11537#ifdef __cplusplus 11538extern "C" 11539#endif 11540char dlopen (); 11541int 11542main () 11543{ 11544return dlopen (); 11545 ; 11546 return 0; 11547} 11548_ACEOF 11549if ac_fn_c_try_link "$LINENO"; then : 11550 ac_cv_lib_svld_dlopen=yes 11551else 11552 ac_cv_lib_svld_dlopen=no 11553fi 11554rm -f core conftest.err conftest.$ac_objext \ 11555 conftest$ac_exeext conftest.$ac_ext 11556LIBS=$ac_check_lib_save_LIBS 11557fi 11558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11559$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11560if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11561 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11562else 11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11564$as_echo_n "checking for dld_link in -ldld... " >&6; } 11565if ${ac_cv_lib_dld_dld_link+:} false; then : 11566 $as_echo_n "(cached) " >&6 11567else 11568 ac_check_lib_save_LIBS=$LIBS 11569LIBS="-ldld $LIBS" 11570cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11571/* end confdefs.h. */ 11572 11573/* Override any GCC internal prototype to avoid an error. 11574 Use char because int might match the return type of a GCC 11575 builtin and then its argument prototype would still apply. */ 11576#ifdef __cplusplus 11577extern "C" 11578#endif 11579char dld_link (); 11580int 11581main () 11582{ 11583return dld_link (); 11584 ; 11585 return 0; 11586} 11587_ACEOF 11588if ac_fn_c_try_link "$LINENO"; then : 11589 ac_cv_lib_dld_dld_link=yes 11590else 11591 ac_cv_lib_dld_dld_link=no 11592fi 11593rm -f core conftest.err conftest.$ac_objext \ 11594 conftest$ac_exeext conftest.$ac_ext 11595LIBS=$ac_check_lib_save_LIBS 11596fi 11597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11598$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11599if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11600 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11601fi 11602 11603 11604fi 11605 11606 11607fi 11608 11609 11610fi 11611 11612 11613fi 11614 11615 11616fi 11617 11618 ;; 11619 esac 11620 11621 if test "x$lt_cv_dlopen" != xno; then 11622 enable_dlopen=yes 11623 else 11624 enable_dlopen=no 11625 fi 11626 11627 case $lt_cv_dlopen in 11628 dlopen) 11629 save_CPPFLAGS="$CPPFLAGS" 11630 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11631 11632 save_LDFLAGS="$LDFLAGS" 11633 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11634 11635 save_LIBS="$LIBS" 11636 LIBS="$lt_cv_dlopen_libs $LIBS" 11637 11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11639$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11640if ${lt_cv_dlopen_self+:} false; then : 11641 $as_echo_n "(cached) " >&6 11642else 11643 if test "$cross_compiling" = yes; then : 11644 lt_cv_dlopen_self=cross 11645else 11646 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11647 lt_status=$lt_dlunknown 11648 cat > conftest.$ac_ext <<_LT_EOF 11649#line $LINENO "configure" 11650#include "confdefs.h" 11651 11652#if HAVE_DLFCN_H 11653#include <dlfcn.h> 11654#endif 11655 11656#include <stdio.h> 11657 11658#ifdef RTLD_GLOBAL 11659# define LT_DLGLOBAL RTLD_GLOBAL 11660#else 11661# ifdef DL_GLOBAL 11662# define LT_DLGLOBAL DL_GLOBAL 11663# else 11664# define LT_DLGLOBAL 0 11665# endif 11666#endif 11667 11668/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11669 find out it does not work in some platform. */ 11670#ifndef LT_DLLAZY_OR_NOW 11671# ifdef RTLD_LAZY 11672# define LT_DLLAZY_OR_NOW RTLD_LAZY 11673# else 11674# ifdef DL_LAZY 11675# define LT_DLLAZY_OR_NOW DL_LAZY 11676# else 11677# ifdef RTLD_NOW 11678# define LT_DLLAZY_OR_NOW RTLD_NOW 11679# else 11680# ifdef DL_NOW 11681# define LT_DLLAZY_OR_NOW DL_NOW 11682# else 11683# define LT_DLLAZY_OR_NOW 0 11684# endif 11685# endif 11686# endif 11687# endif 11688#endif 11689 11690/* When -fvisbility=hidden is used, assume the code has been annotated 11691 correspondingly for the symbols needed. */ 11692#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11693int fnord () __attribute__((visibility("default"))); 11694#endif 11695 11696int fnord () { return 42; } 11697int main () 11698{ 11699 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11700 int status = $lt_dlunknown; 11701 11702 if (self) 11703 { 11704 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11705 else 11706 { 11707 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11708 else puts (dlerror ()); 11709 } 11710 /* dlclose (self); */ 11711 } 11712 else 11713 puts (dlerror ()); 11714 11715 return status; 11716} 11717_LT_EOF 11718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11719 (eval $ac_link) 2>&5 11720 ac_status=$? 11721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11722 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11723 (./conftest; exit; ) >&5 2>/dev/null 11724 lt_status=$? 11725 case x$lt_status in 11726 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11727 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11728 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11729 esac 11730 else : 11731 # compilation failed 11732 lt_cv_dlopen_self=no 11733 fi 11734fi 11735rm -fr conftest* 11736 11737 11738fi 11739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11740$as_echo "$lt_cv_dlopen_self" >&6; } 11741 11742 if test "x$lt_cv_dlopen_self" = xyes; then 11743 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11745$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11746if ${lt_cv_dlopen_self_static+:} false; then : 11747 $as_echo_n "(cached) " >&6 11748else 11749 if test "$cross_compiling" = yes; then : 11750 lt_cv_dlopen_self_static=cross 11751else 11752 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11753 lt_status=$lt_dlunknown 11754 cat > conftest.$ac_ext <<_LT_EOF 11755#line $LINENO "configure" 11756#include "confdefs.h" 11757 11758#if HAVE_DLFCN_H 11759#include <dlfcn.h> 11760#endif 11761 11762#include <stdio.h> 11763 11764#ifdef RTLD_GLOBAL 11765# define LT_DLGLOBAL RTLD_GLOBAL 11766#else 11767# ifdef DL_GLOBAL 11768# define LT_DLGLOBAL DL_GLOBAL 11769# else 11770# define LT_DLGLOBAL 0 11771# endif 11772#endif 11773 11774/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11775 find out it does not work in some platform. */ 11776#ifndef LT_DLLAZY_OR_NOW 11777# ifdef RTLD_LAZY 11778# define LT_DLLAZY_OR_NOW RTLD_LAZY 11779# else 11780# ifdef DL_LAZY 11781# define LT_DLLAZY_OR_NOW DL_LAZY 11782# else 11783# ifdef RTLD_NOW 11784# define LT_DLLAZY_OR_NOW RTLD_NOW 11785# else 11786# ifdef DL_NOW 11787# define LT_DLLAZY_OR_NOW DL_NOW 11788# else 11789# define LT_DLLAZY_OR_NOW 0 11790# endif 11791# endif 11792# endif 11793# endif 11794#endif 11795 11796/* When -fvisbility=hidden is used, assume the code has been annotated 11797 correspondingly for the symbols needed. */ 11798#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11799int fnord () __attribute__((visibility("default"))); 11800#endif 11801 11802int fnord () { return 42; } 11803int main () 11804{ 11805 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11806 int status = $lt_dlunknown; 11807 11808 if (self) 11809 { 11810 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11811 else 11812 { 11813 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11814 else puts (dlerror ()); 11815 } 11816 /* dlclose (self); */ 11817 } 11818 else 11819 puts (dlerror ()); 11820 11821 return status; 11822} 11823_LT_EOF 11824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11825 (eval $ac_link) 2>&5 11826 ac_status=$? 11827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11828 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11829 (./conftest; exit; ) >&5 2>/dev/null 11830 lt_status=$? 11831 case x$lt_status in 11832 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11833 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11834 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11835 esac 11836 else : 11837 # compilation failed 11838 lt_cv_dlopen_self_static=no 11839 fi 11840fi 11841rm -fr conftest* 11842 11843 11844fi 11845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11846$as_echo "$lt_cv_dlopen_self_static" >&6; } 11847 fi 11848 11849 CPPFLAGS="$save_CPPFLAGS" 11850 LDFLAGS="$save_LDFLAGS" 11851 LIBS="$save_LIBS" 11852 ;; 11853 esac 11854 11855 case $lt_cv_dlopen_self in 11856 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11857 *) enable_dlopen_self=unknown ;; 11858 esac 11859 11860 case $lt_cv_dlopen_self_static in 11861 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11862 *) enable_dlopen_self_static=unknown ;; 11863 esac 11864fi 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882striplib= 11883old_striplib= 11884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11885$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11886if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11887 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11888 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11890$as_echo "yes" >&6; } 11891else 11892# FIXME - insert some real tests, host_os isn't really good enough 11893 case $host_os in 11894 darwin*) 11895 if test -n "$STRIP" ; then 11896 striplib="$STRIP -x" 11897 old_striplib="$STRIP -S" 11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11899$as_echo "yes" >&6; } 11900 else 11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11902$as_echo "no" >&6; } 11903 fi 11904 ;; 11905 *) 11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11907$as_echo "no" >&6; } 11908 ;; 11909 esac 11910fi 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 # Report which library types will actually be built 11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11925$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11927$as_echo "$can_build_shared" >&6; } 11928 11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11930$as_echo_n "checking whether to build shared libraries... " >&6; } 11931 test "$can_build_shared" = "no" && enable_shared=no 11932 11933 # On AIX, shared libraries and static libraries use the same namespace, and 11934 # are all built from PIC. 11935 case $host_os in 11936 aix3*) 11937 test "$enable_shared" = yes && enable_static=no 11938 if test -n "$RANLIB"; then 11939 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11940 postinstall_cmds='$RANLIB $lib' 11941 fi 11942 ;; 11943 11944 aix[4-9]*) 11945 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11946 test "$enable_shared" = yes && enable_static=no 11947 fi 11948 ;; 11949 esac 11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11951$as_echo "$enable_shared" >&6; } 11952 11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11954$as_echo_n "checking whether to build static libraries... " >&6; } 11955 # Make sure either enable_shared or enable_static is yes. 11956 test "$enable_shared" = yes || enable_static=yes 11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11958$as_echo "$enable_static" >&6; } 11959 11960 11961 11962 11963fi 11964ac_ext=c 11965ac_cpp='$CPP $CPPFLAGS' 11966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11968ac_compiler_gnu=$ac_cv_c_compiler_gnu 11969 11970CC="$lt_save_CC" 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 ac_config_commands="$ac_config_commands libtool" 11987 11988 11989 11990 11991# Only expand once: 11992 11993 11994 11995 11996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5 11997$as_echo_n "checking for malloc in -lefence... " >&6; } 11998if ${ac_cv_lib_efence_malloc+:} false; then : 11999 $as_echo_n "(cached) " >&6 12000else 12001 ac_check_lib_save_LIBS=$LIBS 12002LIBS="-lefence $LIBS" 12003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12004/* end confdefs.h. */ 12005 12006/* Override any GCC internal prototype to avoid an error. 12007 Use char because int might match the return type of a GCC 12008 builtin and then its argument prototype would still apply. */ 12009#ifdef __cplusplus 12010extern "C" 12011#endif 12012char malloc (); 12013int 12014main () 12015{ 12016return malloc (); 12017 ; 12018 return 0; 12019} 12020_ACEOF 12021if ac_fn_c_try_link "$LINENO"; then : 12022 ac_cv_lib_efence_malloc=yes 12023else 12024 ac_cv_lib_efence_malloc=no 12025fi 12026rm -f core conftest.err conftest.$ac_objext \ 12027 conftest$ac_exeext conftest.$ac_ext 12028LIBS=$ac_check_lib_save_LIBS 12029fi 12030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5 12031$as_echo "$ac_cv_lib_efence_malloc" >&6; } 12032if test "x$ac_cv_lib_efence_malloc" = xyes; then : 12033 DEBUG_LIBS="-lefence"; 12034fi 12035 12036 12037for ac_func in strstr 12038do : 12039 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr" 12040if test "x$ac_cv_func_strstr" = xyes; then : 12041 cat >>confdefs.h <<_ACEOF 12042#define HAVE_STRSTR 1 12043_ACEOF 12044 12045fi 12046done 12047 12048 12049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 12050$as_echo_n "checking target system type... " >&6; } 12051if ${ac_cv_target+:} false; then : 12052 $as_echo_n "(cached) " >&6 12053else 12054 if test "x$target_alias" = x; then 12055 ac_cv_target=$ac_cv_host 12056else 12057 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 12058 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 12059fi 12060 12061fi 12062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 12063$as_echo "$ac_cv_target" >&6; } 12064case $ac_cv_target in 12065*-*-*) ;; 12066*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 12067esac 12068target=$ac_cv_target 12069ac_save_IFS=$IFS; IFS='-' 12070set x $ac_cv_target 12071shift 12072target_cpu=$1 12073target_vendor=$2 12074shift; shift 12075# Remember, the first character of IFS is used to create $*, 12076# except with old shells: 12077target_os=$* 12078IFS=$ac_save_IFS 12079case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 12080 12081 12082# The aliases save the names the user supplied, while $host etc. 12083# will get canonicalized. 12084test -n "$target_alias" && 12085 test "$program_prefix$program_suffix$program_transform_name" = \ 12086 NONENONEs,x,x, && 12087 program_prefix=${target_alias}- 12088 12089 12090is_jni_working=no 12091 12092 if test "x$JDK_TOPDIR" != "x" ; then 12093 jac_JDK_TOPDIR="$JDK_TOPDIR" 12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $jac_JDK_TOPDIR exists" >&5 12095$as_echo_n "checking if $jac_JDK_TOPDIR exists... " >&6; } 12096 if test -d "$jac_JDK_TOPDIR" ; then 12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12098$as_echo "yes" >&6; } 12099 jac_jni_working=yes 12100 else 12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12102$as_echo "no" >&6; } 12103 jac_jni_working=no 12104 fi 12105 12106 if test "$jac_jni_working" = "yes" ; then 12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <jni.h> include flag" >&5 12108$as_echo_n "checking for <jni.h> include flag... " >&6; } 12109 jac_JDK_INCDIR="$jac_JDK_TOPDIR/include" 12110 if test -d "$jac_JDK_INCDIR" -a -f "$jac_JDK_INCDIR/jni.h" ; then 12111 jac_JNI_INC="-I$jac_JDK_INCDIR" 12112 if test "$build_os" = "cygwin" ; then 12113 jac_JAVA_ARCH=win32 12114 else 12115 jac_JAVA_ARCH="`echo $build_os | sed -e 's%[-0-9].*%%'`" 12116 fi 12117 if test -d "$jac_JDK_INCDIR/$jac_JAVA_ARCH" ; then 12118 jac_JNI_INC="$jac_JNI_INC -I$jac_JDK_INCDIR/$jac_JAVA_ARCH" 12119 fi 12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $jac_JNI_INC" >&5 12121$as_echo "found $jac_JNI_INC" >&6; } 12122 jac_jni_working=yes 12123 else 12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12125$as_echo "not found" >&6; } 12126 jac_jni_working=no 12127 fi 12128 fi 12129 12130 if test "$jac_jni_working" = "yes" ; then 12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <jni.h> usability" >&5 12132$as_echo_n "checking for <jni.h> usability... " >&6; } 12133 jac_save_CPPFLAGS="$CPPFLAGS" 12134 CPPFLAGS="$jac_save_CPPFLAGS $jac_JNI_INC" 12135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12136/* end confdefs.h. */ 12137 12138#include <jni.h> 12139#if defined( STDC_HEADERS ) || defined( HAVE_STDIO_H ) 12140#include <stdio.h> 12141#endif 12142#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 12143#include <stdlib.h> 12144#endif 12145 12146int 12147main () 12148{ 12149 12150 JNIEnv *env; 12151 jobject obj; 12152 12153 ; 12154 return 0; 12155} 12156_ACEOF 12157if ac_fn_c_try_compile "$LINENO"; then : 12158 jac_jni_working=yes 12159else 12160 jac_jni_working=no 12161fi 12162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12163 CPPFLAGS="$jac_save_CPPFLAGS" 12164 if test "$jac_jni_working" = "yes" ; then 12165 JNI_INC="$jac_JNI_INC" 12166 JDK_TOPDIR="$jac_JDK_TOPDIR" 12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12168$as_echo "yes" >&6; } 12169 else 12170 JNI_INC="" 12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12172$as_echo "no" >&6; } 12173 fi 12174 fi 12175 12176 if test "$jac_jni_working" = "yes" ; then 12177 is_jni_working=yes 12178 else 12179 is_jni_working=no 12180 fi 12181 fi 12182 12183 12184if test "$is_jni_working" = "no" ; then 12185 12186 12187if test "x$JRE_TOPDIR" != "x" ; then 12188 jac_JH="$JRE_TOPDIR/bin/javah" 12189 is_prog_found=no 12190 if test -n "$jac_JH" -a -x "$jac_JH" ; then 12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user supplied javah" >&5 12192$as_echo_n "checking for user supplied javah... " >&6; } 12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $jac_JH" >&5 12194$as_echo "found $jac_JH" >&6; } 12195 is_prog_found=yes 12196 12197 12198 jac_JDK_TOPDIR="`echo $jac_JH | sed -e 's%\(.*\)/[^/]*/[^/]*$%\1%'`" 12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $jac_JDK_TOPDIR exists" >&5 12200$as_echo_n "checking if $jac_JDK_TOPDIR exists... " >&6; } 12201 if test "X$jac_JDK_TOPDIR" != "X" -a -d "$jac_JDK_TOPDIR" ; then 12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12203$as_echo "yes" >&6; } 12204 jac_jni_working=yes 12205 else 12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12207$as_echo "no" >&6; } 12208 jac_jni_working=no 12209 fi 12210 if test "$jac_jni_working" = "yes" ; then 12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <jni.h> include flag" >&5 12212$as_echo_n "checking for <jni.h> include flag... " >&6; } 12213 jac_JDK_INCDIR="$jac_JDK_TOPDIR/include" 12214 if test -d "$jac_JDK_INCDIR" -a -f "$jac_JDK_INCDIR/jni.h" ; then 12215 jac_JNI_INC="-I$jac_JDK_INCDIR" 12216 if test "$build_os" = "cygwin" ; then 12217 jac_JAVA_ARCH=win32 12218 else 12219 jac_JAVA_ARCH="`echo $build_os | sed -e 's%[-0-9].*%%'`" 12220 fi 12221 if test -d "$jac_JDK_INCDIR/$jac_JAVA_ARCH" ; then 12222 jac_JNI_INC="$jac_JNI_INC -I$jac_JDK_INCDIR/$jac_JAVA_ARCH" 12223 fi 12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $jac_JNI_INC" >&5 12225$as_echo "found $jac_JNI_INC" >&6; } 12226 jac_jni_working=yes 12227 else 12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12229$as_echo "no" >&6; } 12230 jac_jni_working=no 12231 fi 12232 fi 12233 if test "$jac_jni_working" = "yes" ; then 12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <jni.h> usability" >&5 12235$as_echo_n "checking for <jni.h> usability... " >&6; } 12236 jac_save_CPPFLAGS="$CPPFLAGS" 12237 CPPFLAGS="$jac_save_CPPFLAGS $jac_JNI_INC" 12238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12239/* end confdefs.h. */ 12240 12241#include <jni.h> 12242#if defined( STDC_HEADERS ) || defined( HAVE_STDIO_H ) 12243#include <stdio.h> 12244#endif 12245#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 12246#include <stdlib.h> 12247#endif 12248 12249int 12250main () 12251{ 12252 12253 JNIEnv *env; 12254 jobject obj; 12255 12256 ; 12257 return 0; 12258} 12259_ACEOF 12260if ac_fn_c_try_compile "$LINENO"; then : 12261 jac_jni_working=yes 12262else 12263 jac_jni_working=no 12264fi 12265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12266 CPPFLAGS="$jac_save_CPPFLAGS" 12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jac_jni_working" >&5 12268$as_echo "$jac_jni_working" >&6; } 12269 fi 12270 if test "$jac_jni_working" = "yes" ; then 12271 JNI_INC="$jac_JNI_INC" 12272 JDK_TOPDIR="$jac_JDK_TOPDIR" 12273 jac_prog_working=yes 12274 else 12275 JNI_INC="" 12276 jac_prog_working=no 12277 fi 12278 12279 if test "$jac_prog_working" != "yes" ; then 12280 jac_JH="" 12281 fi 12282 12283 fi 12284 if test -z "$jac_JH" -a "$is_prog_found" != "yes" ; then 12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user supplied javah" >&5 12286$as_echo_n "checking for user supplied javah... " >&6; } 12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12288$as_echo "not found" >&6; } 12289 fi 12290fi 12291 12292 12293if test "x$jac_JH" = "x" ; then 12294 12295if test -n "$PATH" ; then 12296 jac_JH="" 12297 is_prog_found=no 12298 jac_PATH=`echo $PATH | sed 's/:/ /g'` 12299 for dir in ${jac_PATH} ; do 12300 if test -d "$dir" -a -x "$dir/javah" ; then 12301 jac_JH="$dir/javah" 12302 # Not all releases work.Try tests defined in the 3rd argument 12303 if test -n "$jac_JH" ; then 12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in user's PATH" >&5 12305$as_echo_n "checking for javah in user's PATH... " >&6; } 12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $jac_JH" >&5 12307$as_echo "found $jac_JH" >&6; } 12308 is_prog_found=yes 12309 12310 12311 jac_JDK_TOPDIR="`echo $jac_JH | sed -e 's%\(.*\)/[^/]*/[^/]*$%\1%'`" 12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $jac_JDK_TOPDIR exists" >&5 12313$as_echo_n "checking if $jac_JDK_TOPDIR exists... " >&6; } 12314 if test "X$jac_JDK_TOPDIR" != "X" -a -d "$jac_JDK_TOPDIR" ; then 12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12316$as_echo "yes" >&6; } 12317 jac_jni_working=yes 12318 else 12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12320$as_echo "no" >&6; } 12321 jac_jni_working=no 12322 fi 12323 if test "$jac_jni_working" = "yes" ; then 12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <jni.h> include flag" >&5 12325$as_echo_n "checking for <jni.h> include flag... " >&6; } 12326 jac_JDK_INCDIR="$jac_JDK_TOPDIR/include" 12327 if test -d "$jac_JDK_INCDIR" -a -f "$jac_JDK_INCDIR/jni.h" ; then 12328 jac_JNI_INC="-I$jac_JDK_INCDIR" 12329 if test "$build_os" = "cygwin" ; then 12330 jac_JAVA_ARCH=win32 12331 else 12332 jac_JAVA_ARCH="`echo $build_os | sed -e 's%[-0-9].*%%'`" 12333 fi 12334 if test -d "$jac_JDK_INCDIR/$jac_JAVA_ARCH" ; then 12335 jac_JNI_INC="$jac_JNI_INC -I$jac_JDK_INCDIR/$jac_JAVA_ARCH" 12336 fi 12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $jac_JNI_INC" >&5 12338$as_echo "found $jac_JNI_INC" >&6; } 12339 jac_jni_working=yes 12340 else 12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12342$as_echo "no" >&6; } 12343 jac_jni_working=no 12344 fi 12345 fi 12346 if test "$jac_jni_working" = "yes" ; then 12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <jni.h> usability" >&5 12348$as_echo_n "checking for <jni.h> usability... " >&6; } 12349 jac_save_CPPFLAGS="$CPPFLAGS" 12350 CPPFLAGS="$jac_save_CPPFLAGS $jac_JNI_INC" 12351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12352/* end confdefs.h. */ 12353 12354#include <jni.h> 12355#if defined( STDC_HEADERS ) || defined( HAVE_STDIO_H ) 12356#include <stdio.h> 12357#endif 12358#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 12359#include <stdlib.h> 12360#endif 12361 12362int 12363main () 12364{ 12365 12366 JNIEnv *env; 12367 jobject obj; 12368 12369 ; 12370 return 0; 12371} 12372_ACEOF 12373if ac_fn_c_try_compile "$LINENO"; then : 12374 jac_jni_working=yes 12375else 12376 jac_jni_working=no 12377fi 12378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12379 CPPFLAGS="$jac_save_CPPFLAGS" 12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jac_jni_working" >&5 12381$as_echo "$jac_jni_working" >&6; } 12382 fi 12383 if test "$jac_jni_working" = "yes" ; then 12384 JNI_INC="$jac_JNI_INC" 12385 JDK_TOPDIR="$jac_JDK_TOPDIR" 12386 jac_prog_working=yes 12387 else 12388 JNI_INC="" 12389 jac_prog_working=no 12390 fi 12391 12392 if test "$jac_prog_working" = "yes" ; then 12393 break 12394 else 12395 jac_JH="" 12396 fi 12397 12398 fi 12399 fi 12400 done 12401 if test -z "$jac_JH" -a "$is_prog_found" != "yes" ; then 12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in user's PATH" >&5 12403$as_echo_n "checking for javah in user's PATH... " >&6; } 12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12405$as_echo "not found" >&6; } 12406 fi 12407fi 12408 12409 12410fi 12411if test "x$jac_JH" = "x" ; then 12412 12413jac_JH="" 12414# Determine the system type 12415 12416if test -d "/software/commmon" ; then 12417 subdir=/software/common 12418else 12419 subdir="" 12420fi 12421subdir_pfx="" 12422case "$host" in 12423 *irix*) 12424 subdir_pfx="irix" 12425 ;; 12426 *linux*) 12427 subdir_pfx="linux" 12428 ;; 12429 *solaris*) 12430 subdir_pfx="solaris" 12431 ;; 12432 *sun4*) 12433 subdir_pfx="sun4" 12434 ;; 12435 *aix*|*rs6000*) 12436 subdir_pfx="aix" 12437 ;; 12438 *freebsd*) 12439 subdir_pfx="freebsd" 12440esac 12441# 12442if test -n "$subdir_pfx" ; then 12443 for dir in /software/${subdir_pfx}* ; do 12444 test -d "$dir" && subdir=$dir 12445 done 12446fi 12447# 12448reverse_dirs="" 12449for dir in \ 12450 /usr \ 12451 /usr/jdk* \ 12452 /usr/j2sdk* \ 12453 /usr/java* \ 12454 /usr/java/jdk* \ 12455 /usr/java/j2sdk* \ 12456 /usr/local \ 12457 /usr/local/java* \ 12458 /usr/local/jdk* \ 12459 /usr/local/j2sdk* \ 12460 /usr/local/diablo-jdk* \ 12461 /usr/share \ 12462 /usr/share/java* \ 12463 /usr/share/jdk* \ 12464 /usr/share/j2sdk* \ 12465 /usr/contrib \ 12466 /usr/contrib/java* \ 12467 /usr/contrib/jdk* \ 12468 /usr/contrib/j2sdk* \ 12469 /usr/lib/jvm/java* \ 12470 /System/Library/Frameworks/JavaVM.framework/Versions/*/Home \ 12471 $HOME/java* \ 12472 $HOME/jdk* \ 12473 $HOME/j2sdk* \ 12474 /opt/jdk* \ 12475 /opt/j2sdk* \ 12476 /opt/java* \ 12477 /opt/local \ 12478 /opt/local/jdk* \ 12479 /opt/local/j2sdk* \ 12480 /opt/local/java* \ 12481 /Tools/jdk* \ 12482 /Tools/j2sdk* \ 12483 $subdir/apps/packages/java* \ 12484 $subdir/apps/packages/jdk* \ 12485 $subdir/apps/packages/j2sdk* \ 12486 $subdir/com/packages/java* \ 12487 $subdir/com/packages/jdk* \ 12488 $subdir/com/packages/j2sdk* \ 12489 /soft/apps/packages/java* \ 12490 /soft/apps/packages/jdk* \ 12491 /soft/apps/packages/j2sdk* \ 12492 /soft/com/packages/java* \ 12493 /soft/com/packages/jdk* \ 12494 /soft/com/packages/j2sdk* \ 12495 /local/encap/java* \ 12496 /local/encap/j2sdk* \ 12497 /local/encap/jdk* ; do 12498 if test -d $dir ; then 12499 reverse_dirs="$dir $reverse_dirs" 12500 fi 12501done 12502is_prog_found=no 12503for dir in $reverse_dirs ; do 12504 if test -d $dir ; then 12505 case "$dir" in 12506 *java-workshop* ) 12507 if test -d "$dir/JDK/bin" ; then 12508 if test -x "$dir/JDK/bin/javah" ; then 12509 jac_JH="$dir/JDK/bin/javah" 12510 fi 12511 fi 12512 ;; 12513 *) 12514 if test -x "$dir/bin/javah" ; then 12515 jac_JH="$dir/bin/javah" 12516 fi 12517 ;; 12518 esac 12519 # Not all releases work.Try tests defined in the 3rd argument 12520 if test -n "$jac_JH" ; then 12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in known path" >&5 12522$as_echo_n "checking for javah in known path... " >&6; } 12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $jac_JH" >&5 12524$as_echo "found $jac_JH" >&6; } 12525 is_prog_found=yes 12526 12527 12528 jac_JDK_TOPDIR="`echo $jac_JH | sed -e 's%\(.*\)/[^/]*/[^/]*$%\1%'`" 12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $jac_JDK_TOPDIR exists" >&5 12530$as_echo_n "checking if $jac_JDK_TOPDIR exists... " >&6; } 12531 if test "X$jac_JDK_TOPDIR" != "X" -a -d "$jac_JDK_TOPDIR" ; then 12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12533$as_echo "yes" >&6; } 12534 jac_jni_working=yes 12535 else 12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12537$as_echo "no" >&6; } 12538 jac_jni_working=no 12539 fi 12540 if test "$jac_jni_working" = "yes" ; then 12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <jni.h> include flag" >&5 12542$as_echo_n "checking for <jni.h> include flag... " >&6; } 12543 jac_JDK_INCDIR="$jac_JDK_TOPDIR/include" 12544 if test -d "$jac_JDK_INCDIR" -a -f "$jac_JDK_INCDIR/jni.h" ; then 12545 jac_JNI_INC="-I$jac_JDK_INCDIR" 12546 if test "$build_os" = "cygwin" ; then 12547 jac_JAVA_ARCH=win32 12548 else 12549 jac_JAVA_ARCH="`echo $build_os | sed -e 's%[-0-9].*%%'`" 12550 fi 12551 if test -d "$jac_JDK_INCDIR/$jac_JAVA_ARCH" ; then 12552 jac_JNI_INC="$jac_JNI_INC -I$jac_JDK_INCDIR/$jac_JAVA_ARCH" 12553 fi 12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $jac_JNI_INC" >&5 12555$as_echo "found $jac_JNI_INC" >&6; } 12556 jac_jni_working=yes 12557 else 12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12559$as_echo "no" >&6; } 12560 jac_jni_working=no 12561 fi 12562 fi 12563 if test "$jac_jni_working" = "yes" ; then 12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <jni.h> usability" >&5 12565$as_echo_n "checking for <jni.h> usability... " >&6; } 12566 jac_save_CPPFLAGS="$CPPFLAGS" 12567 CPPFLAGS="$jac_save_CPPFLAGS $jac_JNI_INC" 12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12569/* end confdefs.h. */ 12570 12571#include <jni.h> 12572#if defined( STDC_HEADERS ) || defined( HAVE_STDIO_H ) 12573#include <stdio.h> 12574#endif 12575#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 12576#include <stdlib.h> 12577#endif 12578 12579int 12580main () 12581{ 12582 12583 JNIEnv *env; 12584 jobject obj; 12585 12586 ; 12587 return 0; 12588} 12589_ACEOF 12590if ac_fn_c_try_compile "$LINENO"; then : 12591 jac_jni_working=yes 12592else 12593 jac_jni_working=no 12594fi 12595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12596 CPPFLAGS="$jac_save_CPPFLAGS" 12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jac_jni_working" >&5 12598$as_echo "$jac_jni_working" >&6; } 12599 fi 12600 if test "$jac_jni_working" = "yes" ; then 12601 JNI_INC="$jac_JNI_INC" 12602 JDK_TOPDIR="$jac_JDK_TOPDIR" 12603 jac_prog_working=yes 12604 else 12605 JNI_INC="" 12606 jac_prog_working=no 12607 fi 12608 12609 if test "$jac_prog_working" = "yes" ; then 12610 break 12611 else 12612 jac_JH="" 12613 fi 12614 12615 fi 12616 fi 12617done 12618if test -z "$jac_JH" -a "$is_prog_found" != "yes" ; then 12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in user's PATH" >&5 12620$as_echo_n "checking for javah in user's PATH... " >&6; } 12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12622$as_echo "not found" >&6; } 12623fi 12624 12625 12626fi 12627 12628fi 12629 12630if test "x$JNI_INC" = "x" ; then 12631 12632if test "$enable_softerror" = "yes" ; then 12633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid JNI include dir, exit! " >&5 12634$as_echo "$as_me: WARNING: Invalid JNI include dir, exit! " >&2;} 12635 exit 0 12636else 12637 as_fn_error $? " Invalid JNI include dir, exit! " "$LINENO" 5 12638fi 12639 12640fi 12641 12642$as_echo "#define HAVE_JNI_H 1" >>confdefs.h 12643 12644 12645 12646JVM="$JDK_TOPDIR/bin/java" 12647 12648 12649 12650 12651 12652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygpath" >&5 12653$as_echo_n "checking for cygpath... " >&6; } 12654jac_hasProg=no 12655IFS="${IFS= }"; pac_saved_ifs="$IFS"; IFS=":" 12656for path_elem in $PATH ; do 12657 if test -d "$path_elem" -a -x "$path_elem/cygpath" ; then 12658 jac_hasProg=yes 12659 break 12660 fi 12661done 12662IFS="$pac_saved_ifs" 12663if test "$jac_hasProg" = "yes" ; then 12664 JPATH_START="\`cygpath -w " 12665 JPATH_FINAL="\`" 12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12667$as_echo "yes" >&6; } 12668else 12669 JPATH_START="" 12670 JPATH_FINAL="" 12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12672$as_echo "no" >&6; } 12673fi 12674 12675 12676 12677 12678# Find a good install program. We prefer a C program (faster), 12679# so one script is as good as another. But avoid the broken or 12680# incompatible versions: 12681# SysV /etc/install, /usr/sbin/install 12682# SunOS /usr/etc/install 12683# IRIX /sbin/install 12684# AIX /bin/install 12685# AmigaOS /C/install, which installs bootblocks on floppy discs 12686# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 12687# AFS /usr/afsws/bin/install, which mishandles nonexistent args 12688# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 12689# OS/2's system install, which has a completely different semantic 12690# ./install, which can be erroneously created by make from ./install.sh. 12691# Reject install programs that cannot install multiple files. 12692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 12693$as_echo_n "checking for a BSD-compatible install... " >&6; } 12694if test -z "$INSTALL"; then 12695if ${ac_cv_path_install+:} false; then : 12696 $as_echo_n "(cached) " >&6 12697else 12698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12699for as_dir in $PATH 12700do 12701 IFS=$as_save_IFS 12702 test -z "$as_dir" && as_dir=. 12703 # Account for people who put trailing slashes in PATH elements. 12704case $as_dir/ in #(( 12705 ./ | .// | /[cC]/* | \ 12706 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 12707 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 12708 /usr/ucb/* ) ;; 12709 *) 12710 # OSF1 and SCO ODT 3.0 have their own names for install. 12711 # Don't use installbsd from OSF since it installs stuff as root 12712 # by default. 12713 for ac_prog in ginstall scoinst install; do 12714 for ac_exec_ext in '' $ac_executable_extensions; do 12715 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 12716 if test $ac_prog = install && 12717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 12718 # AIX install. It has an incompatible calling convention. 12719 : 12720 elif test $ac_prog = install && 12721 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 12722 # program-specific install script used by HP pwplus--don't use. 12723 : 12724 else 12725 rm -rf conftest.one conftest.two conftest.dir 12726 echo one > conftest.one 12727 echo two > conftest.two 12728 mkdir conftest.dir 12729 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 12730 test -s conftest.one && test -s conftest.two && 12731 test -s conftest.dir/conftest.one && 12732 test -s conftest.dir/conftest.two 12733 then 12734 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 12735 break 3 12736 fi 12737 fi 12738 fi 12739 done 12740 done 12741 ;; 12742esac 12743 12744 done 12745IFS=$as_save_IFS 12746 12747rm -rf conftest.one conftest.two conftest.dir 12748 12749fi 12750 if test "${ac_cv_path_install+set}" = set; then 12751 INSTALL=$ac_cv_path_install 12752 else 12753 # As a last resort, use the slow shell script. Don't cache a 12754 # value for INSTALL within a source directory, because that will 12755 # break other packages using the cache if that directory is 12756 # removed, or if the value is a relative name. 12757 INSTALL=$ac_install_sh 12758 fi 12759fi 12760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 12761$as_echo "$INSTALL" >&6; } 12762 12763# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 12764# It thinks the first close brace ends the variable substitution. 12765test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 12766 12767test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 12768 12769test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 12770 12771 12772if test -z "$INSTALL" ; then 12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: No install program available" >&5 12774$as_echo "No install program available" >&6; } 12775else 12776 # Check that this install really works 12777 rm -f conftest 12778 echo "Test file" > conftest 12779 if test ! -d .conftest ; then mkdir .conftest ; fi 12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether install works" >&5 12781$as_echo_n "checking whether install works... " >&6; } 12782 if $INSTALL conftest .conftest >/dev/null 2>&1 ; then 12783 installOk=yes 12784 else 12785 installOk=no 12786 fi 12787 rm -rf .conftest conftest 12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $installOk" >&5 12789$as_echo "$installOk" >&6; } 12790 if test "$installOk" = no ; then 12791 if test -n "$ac_install_sh" ; then 12792 INSTALL=$ac_install_sh 12793 else 12794 as_fn_error $? "Unable to find working install" "$LINENO" 5 12795 fi 12796 fi 12797fi 12798 12799if test -n "$ac_tool_prefix"; then 12800 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12801set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12803$as_echo_n "checking for $ac_word... " >&6; } 12804if ${ac_cv_prog_RANLIB+:} false; then : 12805 $as_echo_n "(cached) " >&6 12806else 12807 if test -n "$RANLIB"; then 12808 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12809else 12810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12811for as_dir in $PATH 12812do 12813 IFS=$as_save_IFS 12814 test -z "$as_dir" && as_dir=. 12815 for ac_exec_ext in '' $ac_executable_extensions; do 12816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12817 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12819 break 2 12820 fi 12821done 12822 done 12823IFS=$as_save_IFS 12824 12825fi 12826fi 12827RANLIB=$ac_cv_prog_RANLIB 12828if test -n "$RANLIB"; then 12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12830$as_echo "$RANLIB" >&6; } 12831else 12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12833$as_echo "no" >&6; } 12834fi 12835 12836 12837fi 12838if test -z "$ac_cv_prog_RANLIB"; then 12839 ac_ct_RANLIB=$RANLIB 12840 # Extract the first word of "ranlib", so it can be a program name with args. 12841set dummy ranlib; ac_word=$2 12842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12843$as_echo_n "checking for $ac_word... " >&6; } 12844if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12845 $as_echo_n "(cached) " >&6 12846else 12847 if test -n "$ac_ct_RANLIB"; then 12848 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12849else 12850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12851for as_dir in $PATH 12852do 12853 IFS=$as_save_IFS 12854 test -z "$as_dir" && as_dir=. 12855 for ac_exec_ext in '' $ac_executable_extensions; do 12856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12857 ac_cv_prog_ac_ct_RANLIB="ranlib" 12858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12859 break 2 12860 fi 12861done 12862 done 12863IFS=$as_save_IFS 12864 12865fi 12866fi 12867ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12868if test -n "$ac_ct_RANLIB"; then 12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12870$as_echo "$ac_ct_RANLIB" >&6; } 12871else 12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12873$as_echo "no" >&6; } 12874fi 12875 12876 if test "x$ac_ct_RANLIB" = x; then 12877 RANLIB=":" 12878 else 12879 case $cross_compiling:$ac_tool_warned in 12880yes:) 12881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12883ac_tool_warned=yes ;; 12884esac 12885 RANLIB=$ac_ct_RANLIB 12886 fi 12887else 12888 RANLIB="$ac_cv_prog_RANLIB" 12889fi 12890 12891 12892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether install breaks libraries" >&5 12893$as_echo_n "checking whether install breaks libraries... " >&6; } 12894if ${ac_cv_prog_install_breaks_libs+:} false; then : 12895 $as_echo_n "(cached) " >&6 12896else 12897 12898 12899 12900 12901ac_cv_prog_install_breaks_libs=yes 12902rm -f libconftest* conftest* 12903echo 'int foo(int);int foo(int a){return a;}' > conftest1.c 12904echo 'extern int foo(int); int main( int argc, char **argv){ return foo(0); }' > conftest2.c 12905if ${CC-cc} $CFLAGS -c conftest1.c >conftest.out 2>&1 ; then 12906 if ${AR-ar} cr libconftest.a conftest1.o >/dev/null 2>&1 ; then 12907 if ${RANLIB-:} libconftest.a >/dev/null 2>&1 ; then 12908 # Anything less than sleep 10, and Mac OS/X (Darwin) 12909 # will claim that install works because ranlib won't complain 12910 sleep 10 12911 libinstall="$INSTALL" 12912 eval "libinstall=\"$libinstall\"" 12913 if ${libinstall} libconftest.a libconftest1.a >/dev/null 2>&1 ; then 12914 if ${CC-cc} $CFLAGS -o conftest conftest2.c $LDFLAGS libconftest1.a >>conftest.out 2>&1 && test -x conftest ; then 12915 # Success! Install works 12916 ac_cv_prog_install_breaks_libs=no 12917 else 12918 # Failure! Does install -p work? 12919 rm -f libconftest1.a 12920 if ${libinstall} -p libconftest.a libconftest1.a >/dev/null 2>&1 ; then 12921 if ${CC-cc} $CFLAGS -o conftest conftest2.c $LDFLAGS libconftest1.a >>conftest.out 2>&1 && test -x conftest ; then 12922 # Success! Install works 12923 ac_cv_prog_install_breaks_libs="no, with -p" 12924 fi 12925 fi 12926 fi 12927 fi 12928 fi 12929 fi 12930fi 12931rm -f conftest* libconftest* 12932fi 12933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_install_breaks_libs" >&5 12934$as_echo "$ac_cv_prog_install_breaks_libs" >&6; } 12935 12936if test -z "$RANLIB_AFTER_INSTALL" ; then 12937 RANLIB_AFTER_INSTALL=no 12938fi 12939case "$ac_cv_prog_install_breaks_libs" in 12940 yes) 12941 RANLIB_AFTER_INSTALL=yes 12942 ;; 12943 "no, with -p") 12944 INSTALL="$INSTALL -p" 12945 ;; 12946 *) 12947 # Do nothing 12948 : 12949 ;; 12950esac 12951 12952 12953 12954CPRP=cp 12955RM="rm -f" 12956MV="mv -f" 12957MKDIR=mkdir 12958 12959 12960# 12961# libbuild_dir is used to build the libraries in before they are installed. 12962# binbuild_dir is for the scripts/programs 12963# includebuild_dir is for all user header files 12964# 12965rootbuild_dir=`pwd` 12966for dir in lib bin share sbin ; do 12967 dirname=${dir}build_dir 12968 eval dirvalue=\$"$dirname" 12969 eval $dirname=$rootbuild_dir/$dir 12970done 12971# echo "rootbuild_dir = $rootbuild_dir" 12972 12973gui_libbuild_dir="`echo $rootbuild_dir | sed -e 's%\(.*\)/[^/]*$%\1/lib%'`" 12974 12975# echo "gui_libbuild_dir = $gui_libbuild_dir" 12976 12977# VPATH build: Set the libbuild_dir 12978if test ! -d $libbuild_dir ; then 12979 { $as_echo "$as_me:${as_lineno-$LINENO}: creating directory $libbuild_dir" >&5 12980$as_echo "$as_me: creating directory $libbuild_dir" >&6;} 12981 $MKDIR $libbuild_dir 12982fi 12983 12984# VPATH build: Set the sharebuild_dir 12985if test ! -d $sharebuild_dir ; then 12986 { $as_echo "$as_me:${as_lineno-$LINENO}: creating directory $sharebuild_dir" >&5 12987$as_echo "$as_me: creating directory $sharebuild_dir" >&6;} 12988 $MKDIR $sharebuild_dir 12989fi 12990 12991logfilesbuild_dir="$sharebuild_dir/examples/logfiles" 12992if test ! -d $logfilesbuild_dir ; then 12993 { $as_echo "$as_me:${as_lineno-$LINENO}: creating directory $logfilesbuild_dir" >&5 12994$as_echo "$as_me: creating directory $logfilesbuild_dir" >&6;} 12995 as_dir=$logfilesbuild_dir; as_fn_mkdir_p 12996fi 12997 12998# Copying $srcdir/logfiles to logfilesbuild_dir 12999if test -d $srcdir/logfiles ; then 13000 { $as_echo "$as_me:${as_lineno-$LINENO}: creating sample logfiles from source" >&5 13001$as_echo "$as_me: creating sample logfiles from source" >&6;} 13002 $CPRP -pr $srcdir/logfiles/*.rlog $logfilesbuild_dir 13003fi 13004 13005 13006 13007 13008 13009 13010 13011 13012# Define bindir's executables, and pass them down to sbindir's install-package 13013OLD_EXEFILES="traceprint traceTOslog2" 13014 13015PATH_OLD_EXEFILES="sbin/install-package" 13016for exefile in $OLD_EXEFILES ; do 13017 PATH_OLD_EXEFILES="$PATH_OLD_EXEFILES bin/$exefile" 13018done 13019 13020TRACE_NAME=rlog 13021 13022 13023if test "X$TRACE_NAME" != "X" -a "$TRACE_NAME" != "trace" ; then 13024 for oldpgm in $OLD_EXEFILES ; do 13025 newpgm=$TRACE_NAME`echo $oldpgm | sed -e 's%trace%%'` 13026 EXEFILES="$EXEFILES $newpgm" 13027 done 13028fi 13029 13030 13031ac_config_files="$ac_config_files Makefile src/Makefile $PATH_OLD_EXEFILES" 13032 13033 13034 13035test "x$prefix" = xNONE && prefix=$ac_default_prefix 13036# Let make expand exec_prefix. 13037test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13038 13039DEFS=-DHAVE_CONFIG_H 13040 13041ac_libobjs= 13042ac_ltlibobjs= 13043U= 13044for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13045 # 1. Remove the extension, and $U if already installed. 13046 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13047 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13048 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13049 # will be set to the directory where LIBOBJS objects are built. 13050 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13051 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13052done 13053LIBOBJS=$ac_libobjs 13054 13055LTLIBOBJS=$ac_ltlibobjs 13056 13057 13058 13059 13060: "${CONFIG_STATUS=./config.status}" 13061ac_write_fail=0 13062ac_clean_files_save=$ac_clean_files 13063ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13064{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13065$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13066as_write_fail=0 13067cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13068#! $SHELL 13069# Generated by $as_me. 13070# Run this file to recreate the current configuration. 13071# Compiler output produced by configure, useful for debugging 13072# configure, is in config.log if it exists. 13073 13074debug=false 13075ac_cs_recheck=false 13076ac_cs_silent=false 13077 13078SHELL=\${CONFIG_SHELL-$SHELL} 13079export SHELL 13080_ASEOF 13081cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13082## -------------------- ## 13083## M4sh Initialization. ## 13084## -------------------- ## 13085 13086# Be more Bourne compatible 13087DUALCASE=1; export DUALCASE # for MKS sh 13088if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13089 emulate sh 13090 NULLCMD=: 13091 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13092 # is contrary to our usage. Disable this feature. 13093 alias -g '${1+"$@"}'='"$@"' 13094 setopt NO_GLOB_SUBST 13095else 13096 case `(set -o) 2>/dev/null` in #( 13097 *posix*) : 13098 set -o posix ;; #( 13099 *) : 13100 ;; 13101esac 13102fi 13103 13104 13105as_nl=' 13106' 13107export as_nl 13108# Printing a long string crashes Solaris 7 /usr/bin/printf. 13109as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13110as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13111as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13112# Prefer a ksh shell builtin over an external printf program on Solaris, 13113# but without wasting forks for bash or zsh. 13114if test -z "$BASH_VERSION$ZSH_VERSION" \ 13115 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13116 as_echo='print -r --' 13117 as_echo_n='print -rn --' 13118elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13119 as_echo='printf %s\n' 13120 as_echo_n='printf %s' 13121else 13122 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13123 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13124 as_echo_n='/usr/ucb/echo -n' 13125 else 13126 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13127 as_echo_n_body='eval 13128 arg=$1; 13129 case $arg in #( 13130 *"$as_nl"*) 13131 expr "X$arg" : "X\\(.*\\)$as_nl"; 13132 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13133 esac; 13134 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13135 ' 13136 export as_echo_n_body 13137 as_echo_n='sh -c $as_echo_n_body as_echo' 13138 fi 13139 export as_echo_body 13140 as_echo='sh -c $as_echo_body as_echo' 13141fi 13142 13143# The user is always right. 13144if test "${PATH_SEPARATOR+set}" != set; then 13145 PATH_SEPARATOR=: 13146 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13147 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13148 PATH_SEPARATOR=';' 13149 } 13150fi 13151 13152 13153# IFS 13154# We need space, tab and new line, in precisely that order. Quoting is 13155# there to prevent editors from complaining about space-tab. 13156# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13157# splitting by setting IFS to empty value.) 13158IFS=" "" $as_nl" 13159 13160# Find who we are. Look in the path if we contain no directory separator. 13161as_myself= 13162case $0 in #(( 13163 *[\\/]* ) as_myself=$0 ;; 13164 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13165for as_dir in $PATH 13166do 13167 IFS=$as_save_IFS 13168 test -z "$as_dir" && as_dir=. 13169 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13170 done 13171IFS=$as_save_IFS 13172 13173 ;; 13174esac 13175# We did not find ourselves, most probably we were run as `sh COMMAND' 13176# in which case we are not to be found in the path. 13177if test "x$as_myself" = x; then 13178 as_myself=$0 13179fi 13180if test ! -f "$as_myself"; then 13181 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13182 exit 1 13183fi 13184 13185# Unset variables that we do not need and which cause bugs (e.g. in 13186# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13187# suppresses any "Segmentation fault" message there. '((' could 13188# trigger a bug in pdksh 5.2.14. 13189for as_var in BASH_ENV ENV MAIL MAILPATH 13190do eval test x\${$as_var+set} = xset \ 13191 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13192done 13193PS1='$ ' 13194PS2='> ' 13195PS4='+ ' 13196 13197# NLS nuisances. 13198LC_ALL=C 13199export LC_ALL 13200LANGUAGE=C 13201export LANGUAGE 13202 13203# CDPATH. 13204(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13205 13206 13207# as_fn_error STATUS ERROR [LINENO LOG_FD] 13208# ---------------------------------------- 13209# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13210# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13211# script with STATUS, using 1 if that was 0. 13212as_fn_error () 13213{ 13214 as_status=$1; test $as_status -eq 0 && as_status=1 13215 if test "$4"; then 13216 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13217 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13218 fi 13219 $as_echo "$as_me: error: $2" >&2 13220 as_fn_exit $as_status 13221} # as_fn_error 13222 13223 13224# as_fn_set_status STATUS 13225# ----------------------- 13226# Set $? to STATUS, without forking. 13227as_fn_set_status () 13228{ 13229 return $1 13230} # as_fn_set_status 13231 13232# as_fn_exit STATUS 13233# ----------------- 13234# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13235as_fn_exit () 13236{ 13237 set +e 13238 as_fn_set_status $1 13239 exit $1 13240} # as_fn_exit 13241 13242# as_fn_unset VAR 13243# --------------- 13244# Portably unset VAR. 13245as_fn_unset () 13246{ 13247 { eval $1=; unset $1;} 13248} 13249as_unset=as_fn_unset 13250# as_fn_append VAR VALUE 13251# ---------------------- 13252# Append the text in VALUE to the end of the definition contained in VAR. Take 13253# advantage of any shell optimizations that allow amortized linear growth over 13254# repeated appends, instead of the typical quadratic growth present in naive 13255# implementations. 13256if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13257 eval 'as_fn_append () 13258 { 13259 eval $1+=\$2 13260 }' 13261else 13262 as_fn_append () 13263 { 13264 eval $1=\$$1\$2 13265 } 13266fi # as_fn_append 13267 13268# as_fn_arith ARG... 13269# ------------------ 13270# Perform arithmetic evaluation on the ARGs, and store the result in the 13271# global $as_val. Take advantage of shells that can avoid forks. The arguments 13272# must be portable across $(()) and expr. 13273if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13274 eval 'as_fn_arith () 13275 { 13276 as_val=$(( $* )) 13277 }' 13278else 13279 as_fn_arith () 13280 { 13281 as_val=`expr "$@" || test $? -eq 1` 13282 } 13283fi # as_fn_arith 13284 13285 13286if expr a : '\(a\)' >/dev/null 2>&1 && 13287 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13288 as_expr=expr 13289else 13290 as_expr=false 13291fi 13292 13293if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13294 as_basename=basename 13295else 13296 as_basename=false 13297fi 13298 13299if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13300 as_dirname=dirname 13301else 13302 as_dirname=false 13303fi 13304 13305as_me=`$as_basename -- "$0" || 13306$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13307 X"$0" : 'X\(//\)$' \| \ 13308 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13309$as_echo X/"$0" | 13310 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13311 s//\1/ 13312 q 13313 } 13314 /^X\/\(\/\/\)$/{ 13315 s//\1/ 13316 q 13317 } 13318 /^X\/\(\/\).*/{ 13319 s//\1/ 13320 q 13321 } 13322 s/.*/./; q'` 13323 13324# Avoid depending upon Character Ranges. 13325as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13326as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13327as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13328as_cr_digits='0123456789' 13329as_cr_alnum=$as_cr_Letters$as_cr_digits 13330 13331ECHO_C= ECHO_N= ECHO_T= 13332case `echo -n x` in #((((( 13333-n*) 13334 case `echo 'xy\c'` in 13335 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13336 xy) ECHO_C='\c';; 13337 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13338 ECHO_T=' ';; 13339 esac;; 13340*) 13341 ECHO_N='-n';; 13342esac 13343 13344rm -f conf$$ conf$$.exe conf$$.file 13345if test -d conf$$.dir; then 13346 rm -f conf$$.dir/conf$$.file 13347else 13348 rm -f conf$$.dir 13349 mkdir conf$$.dir 2>/dev/null 13350fi 13351if (echo >conf$$.file) 2>/dev/null; then 13352 if ln -s conf$$.file conf$$ 2>/dev/null; then 13353 as_ln_s='ln -s' 13354 # ... but there are two gotchas: 13355 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13356 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13357 # In both cases, we have to default to `cp -pR'. 13358 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13359 as_ln_s='cp -pR' 13360 elif ln conf$$.file conf$$ 2>/dev/null; then 13361 as_ln_s=ln 13362 else 13363 as_ln_s='cp -pR' 13364 fi 13365else 13366 as_ln_s='cp -pR' 13367fi 13368rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13369rmdir conf$$.dir 2>/dev/null 13370 13371 13372# as_fn_mkdir_p 13373# ------------- 13374# Create "$as_dir" as a directory, including parents if necessary. 13375as_fn_mkdir_p () 13376{ 13377 13378 case $as_dir in #( 13379 -*) as_dir=./$as_dir;; 13380 esac 13381 test -d "$as_dir" || eval $as_mkdir_p || { 13382 as_dirs= 13383 while :; do 13384 case $as_dir in #( 13385 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13386 *) as_qdir=$as_dir;; 13387 esac 13388 as_dirs="'$as_qdir' $as_dirs" 13389 as_dir=`$as_dirname -- "$as_dir" || 13390$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13391 X"$as_dir" : 'X\(//\)[^/]' \| \ 13392 X"$as_dir" : 'X\(//\)$' \| \ 13393 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13394$as_echo X"$as_dir" | 13395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13396 s//\1/ 13397 q 13398 } 13399 /^X\(\/\/\)[^/].*/{ 13400 s//\1/ 13401 q 13402 } 13403 /^X\(\/\/\)$/{ 13404 s//\1/ 13405 q 13406 } 13407 /^X\(\/\).*/{ 13408 s//\1/ 13409 q 13410 } 13411 s/.*/./; q'` 13412 test -d "$as_dir" && break 13413 done 13414 test -z "$as_dirs" || eval "mkdir $as_dirs" 13415 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13416 13417 13418} # as_fn_mkdir_p 13419if mkdir -p . 2>/dev/null; then 13420 as_mkdir_p='mkdir -p "$as_dir"' 13421else 13422 test -d ./-p && rmdir ./-p 13423 as_mkdir_p=false 13424fi 13425 13426 13427# as_fn_executable_p FILE 13428# ----------------------- 13429# Test if FILE is an executable regular file. 13430as_fn_executable_p () 13431{ 13432 test -f "$1" && test -x "$1" 13433} # as_fn_executable_p 13434as_test_x='test -x' 13435as_executable_p=as_fn_executable_p 13436 13437# Sed expression to map a string onto a valid CPP name. 13438as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13439 13440# Sed expression to map a string onto a valid variable name. 13441as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13442 13443 13444exec 6>&1 13445## ----------------------------------- ## 13446## Main body of $CONFIG_STATUS script. ## 13447## ----------------------------------- ## 13448_ASEOF 13449test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13450 13451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13452# Save the log message, to keep $0 and so on meaningful, and to 13453# report actual input values of CONFIG_FILES etc. instead of their 13454# values after options handling. 13455ac_log=" 13456This file was extended by $as_me, which was 13457generated by GNU Autoconf 2.69. Invocation command line was 13458 13459 CONFIG_FILES = $CONFIG_FILES 13460 CONFIG_HEADERS = $CONFIG_HEADERS 13461 CONFIG_LINKS = $CONFIG_LINKS 13462 CONFIG_COMMANDS = $CONFIG_COMMANDS 13463 $ $0 $@ 13464 13465on `(hostname || uname -n) 2>/dev/null | sed 1q` 13466" 13467 13468_ACEOF 13469 13470case $ac_config_files in *" 13471"*) set x $ac_config_files; shift; ac_config_files=$*;; 13472esac 13473 13474case $ac_config_headers in *" 13475"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13476esac 13477 13478 13479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13480# Files that config.status was made for. 13481config_files="$ac_config_files" 13482config_headers="$ac_config_headers" 13483config_commands="$ac_config_commands" 13484 13485_ACEOF 13486 13487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13488ac_cs_usage="\ 13489\`$as_me' instantiates files and other configuration actions 13490from templates according to the current configuration. Unless the files 13491and actions are specified as TAGs, all are instantiated by default. 13492 13493Usage: $0 [OPTION]... [TAG]... 13494 13495 -h, --help print this help, then exit 13496 -V, --version print version number and configuration settings, then exit 13497 --config print configuration, then exit 13498 -q, --quiet, --silent 13499 do not print progress messages 13500 -d, --debug don't remove temporary files 13501 --recheck update $as_me by reconfiguring in the same conditions 13502 --file=FILE[:TEMPLATE] 13503 instantiate the configuration file FILE 13504 --header=FILE[:TEMPLATE] 13505 instantiate the configuration header FILE 13506 13507Configuration files: 13508$config_files 13509 13510Configuration headers: 13511$config_headers 13512 13513Configuration commands: 13514$config_commands 13515 13516Report bugs to the package provider." 13517 13518_ACEOF 13519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13520ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13521ac_cs_version="\\ 13522config.status 13523configured by $0, generated by GNU Autoconf 2.69, 13524 with options \\"\$ac_cs_config\\" 13525 13526Copyright (C) 2012 Free Software Foundation, Inc. 13527This config.status script is free software; the Free Software Foundation 13528gives unlimited permission to copy, distribute and modify it." 13529 13530ac_pwd='$ac_pwd' 13531srcdir='$srcdir' 13532INSTALL='$INSTALL' 13533AWK='$AWK' 13534test -n "\$AWK" || AWK=awk 13535_ACEOF 13536 13537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13538# The default lists apply if the user does not specify any file. 13539ac_need_defaults=: 13540while test $# != 0 13541do 13542 case $1 in 13543 --*=?*) 13544 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13545 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13546 ac_shift=: 13547 ;; 13548 --*=) 13549 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13550 ac_optarg= 13551 ac_shift=: 13552 ;; 13553 *) 13554 ac_option=$1 13555 ac_optarg=$2 13556 ac_shift=shift 13557 ;; 13558 esac 13559 13560 case $ac_option in 13561 # Handling of the options. 13562 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13563 ac_cs_recheck=: ;; 13564 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13565 $as_echo "$ac_cs_version"; exit ;; 13566 --config | --confi | --conf | --con | --co | --c ) 13567 $as_echo "$ac_cs_config"; exit ;; 13568 --debug | --debu | --deb | --de | --d | -d ) 13569 debug=: ;; 13570 --file | --fil | --fi | --f ) 13571 $ac_shift 13572 case $ac_optarg in 13573 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13574 '') as_fn_error $? "missing file argument" ;; 13575 esac 13576 as_fn_append CONFIG_FILES " '$ac_optarg'" 13577 ac_need_defaults=false;; 13578 --header | --heade | --head | --hea ) 13579 $ac_shift 13580 case $ac_optarg in 13581 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13582 esac 13583 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13584 ac_need_defaults=false;; 13585 --he | --h) 13586 # Conflict between --help and --header 13587 as_fn_error $? "ambiguous option: \`$1' 13588Try \`$0 --help' for more information.";; 13589 --help | --hel | -h ) 13590 $as_echo "$ac_cs_usage"; exit ;; 13591 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13592 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13593 ac_cs_silent=: ;; 13594 13595 # This is an error. 13596 -*) as_fn_error $? "unrecognized option: \`$1' 13597Try \`$0 --help' for more information." ;; 13598 13599 *) as_fn_append ac_config_targets " $1" 13600 ac_need_defaults=false ;; 13601 13602 esac 13603 shift 13604done 13605 13606ac_configure_extra_args= 13607 13608if $ac_cs_silent; then 13609 exec 6>/dev/null 13610 ac_configure_extra_args="$ac_configure_extra_args --silent" 13611fi 13612 13613_ACEOF 13614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13615if \$ac_cs_recheck; then 13616 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13617 shift 13618 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13619 CONFIG_SHELL='$SHELL' 13620 export CONFIG_SHELL 13621 exec "\$@" 13622fi 13623 13624_ACEOF 13625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13626exec 5>>config.log 13627{ 13628 echo 13629 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13630## Running $as_me. ## 13631_ASBOX 13632 $as_echo "$ac_log" 13633} >&5 13634 13635_ACEOF 13636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13637# 13638# INIT-COMMANDS 13639# 13640 13641 13642# The HP-UX ksh and POSIX shell print the target directory to stdout 13643# if CDPATH is set. 13644(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13645 13646sed_quote_subst='$sed_quote_subst' 13647double_quote_subst='$double_quote_subst' 13648delay_variable_subst='$delay_variable_subst' 13649enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13650AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 13651DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13652OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13653macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13654macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13655enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13656pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13657enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13658SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13659ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13660PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13661host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13662host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13663host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13664build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13665build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13666build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13667SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13668Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13669GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13670EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13671FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13672LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13673NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13674LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13675max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13676ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13677exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13678lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13679lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13680lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13681lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13682lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13683reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13684reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13685deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13686file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13687file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13688want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13689sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13690AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13691AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13692archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13693STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13694RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13695old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13696old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13697old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13698lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13699CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13700CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13701compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13702GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13703lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13704lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13705lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13706lt_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"`' 13707nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13708lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13709objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13710MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13711lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13712lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13713lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13714lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13715lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13716need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13717MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13718DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13719NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13720LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13721OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13722OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13723libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13724shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13725extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13726archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13727enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13728export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13729whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13730compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13731old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13732old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13733archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13734archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13735module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13736module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13737with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13738allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13739no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13740hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13741hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13742hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13743hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13744hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13745hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13746hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13747inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13748link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13749always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13750export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13751exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13752include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13753prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13754postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13755file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13756variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13757need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13758need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13759version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13760runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13761shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13762shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13763libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13764library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13765soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13766install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13767postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13768postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13769finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13770finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13771hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13772sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13773sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 13774hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13775enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13776enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13777enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13778old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13779striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13780 13781LTCC='$LTCC' 13782LTCFLAGS='$LTCFLAGS' 13783compiler='$compiler_DEFAULT' 13784 13785# A function that is used when there is no print builtin or printf. 13786func_fallback_echo () 13787{ 13788 eval 'cat <<_LTECHO_EOF 13789\$1 13790_LTECHO_EOF' 13791} 13792 13793# Quote evaled strings. 13794for var in AS \ 13795DLLTOOL \ 13796OBJDUMP \ 13797SHELL \ 13798ECHO \ 13799PATH_SEPARATOR \ 13800SED \ 13801GREP \ 13802EGREP \ 13803FGREP \ 13804LD \ 13805NM \ 13806LN_S \ 13807lt_SP2NL \ 13808lt_NL2SP \ 13809reload_flag \ 13810deplibs_check_method \ 13811file_magic_cmd \ 13812file_magic_glob \ 13813want_nocaseglob \ 13814sharedlib_from_linklib_cmd \ 13815AR \ 13816AR_FLAGS \ 13817archiver_list_spec \ 13818STRIP \ 13819RANLIB \ 13820CC \ 13821CFLAGS \ 13822compiler \ 13823lt_cv_sys_global_symbol_pipe \ 13824lt_cv_sys_global_symbol_to_cdecl \ 13825lt_cv_sys_global_symbol_to_c_name_address \ 13826lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13827nm_file_list_spec \ 13828lt_prog_compiler_no_builtin_flag \ 13829lt_prog_compiler_pic \ 13830lt_prog_compiler_wl \ 13831lt_prog_compiler_static \ 13832lt_cv_prog_compiler_c_o \ 13833need_locks \ 13834MANIFEST_TOOL \ 13835DSYMUTIL \ 13836NMEDIT \ 13837LIPO \ 13838OTOOL \ 13839OTOOL64 \ 13840shrext_cmds \ 13841export_dynamic_flag_spec \ 13842whole_archive_flag_spec \ 13843compiler_needs_object \ 13844with_gnu_ld \ 13845allow_undefined_flag \ 13846no_undefined_flag \ 13847hardcode_libdir_flag_spec \ 13848hardcode_libdir_separator \ 13849exclude_expsyms \ 13850include_expsyms \ 13851file_list_spec \ 13852variables_saved_for_relink \ 13853libname_spec \ 13854library_names_spec \ 13855soname_spec \ 13856install_override_mode \ 13857finish_eval \ 13858old_striplib \ 13859striplib; do 13860 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13861 *[\\\\\\\`\\"\\\$]*) 13862 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13863 ;; 13864 *) 13865 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13866 ;; 13867 esac 13868done 13869 13870# Double-quote double-evaled strings. 13871for var in reload_cmds \ 13872old_postinstall_cmds \ 13873old_postuninstall_cmds \ 13874old_archive_cmds \ 13875extract_expsyms_cmds \ 13876old_archive_from_new_cmds \ 13877old_archive_from_expsyms_cmds \ 13878archive_cmds \ 13879archive_expsym_cmds \ 13880module_cmds \ 13881module_expsym_cmds \ 13882export_symbols_cmds \ 13883prelink_cmds \ 13884postlink_cmds \ 13885postinstall_cmds \ 13886postuninstall_cmds \ 13887finish_cmds \ 13888sys_lib_search_path_spec \ 13889sys_lib_dlsearch_path_spec; do 13890 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13891 *[\\\\\\\`\\"\\\$]*) 13892 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13893 ;; 13894 *) 13895 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13896 ;; 13897 esac 13898done 13899 13900ac_aux_dir='$ac_aux_dir' 13901xsi_shell='$xsi_shell' 13902lt_shell_append='$lt_shell_append' 13903 13904# See if we are running on zsh, and set the options which allow our 13905# commands through without removal of \ escapes INIT. 13906if test -n "\${ZSH_VERSION+set}" ; then 13907 setopt NO_GLOB_SUBST 13908fi 13909 13910 13911 PACKAGE='$PACKAGE' 13912 VERSION='$VERSION' 13913 TIMESTAMP='$TIMESTAMP' 13914 RM='$RM' 13915 ofile='$ofile' 13916 13917 13918 13919 13920_ACEOF 13921 13922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13923 13924# Handling of arguments. 13925for ac_config_target in $ac_config_targets 13926do 13927 case $ac_config_target in 13928 "trace_impl.h") CONFIG_HEADERS="$CONFIG_HEADERS trace_impl.h" ;; 13929 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13930 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13931 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13932 "$PATH_OLD_EXEFILES") CONFIG_FILES="$CONFIG_FILES $PATH_OLD_EXEFILES" ;; 13933 13934 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13935 esac 13936done 13937 13938 13939# If the user did not use the arguments to specify the items to instantiate, 13940# then the envvar interface is used. Set only those that are not. 13941# We use the long form for the default assignment because of an extremely 13942# bizarre bug on SunOS 4.1.3. 13943if $ac_need_defaults; then 13944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13946 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13947fi 13948 13949# Have a temporary directory for convenience. Make it in the build tree 13950# simply because there is no reason against having it here, and in addition, 13951# creating and moving files from /tmp can sometimes cause problems. 13952# Hook for its removal unless debugging. 13953# Note that there is a small window in which the directory will not be cleaned: 13954# after its creation but before its name has been assigned to `$tmp'. 13955$debug || 13956{ 13957 tmp= ac_tmp= 13958 trap 'exit_status=$? 13959 : "${ac_tmp:=$tmp}" 13960 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13961' 0 13962 trap 'as_fn_exit 1' 1 2 13 15 13963} 13964# Create a (secure) tmp directory for tmp files. 13965 13966{ 13967 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13968 test -d "$tmp" 13969} || 13970{ 13971 tmp=./conf$$-$RANDOM 13972 (umask 077 && mkdir "$tmp") 13973} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13974ac_tmp=$tmp 13975 13976# Set up the scripts for CONFIG_FILES section. 13977# No need to generate them if there are no CONFIG_FILES. 13978# This happens for instance with `./config.status config.h'. 13979if test -n "$CONFIG_FILES"; then 13980 13981 13982ac_cr=`echo X | tr X '\015'` 13983# On cygwin, bash can eat \r inside `` if the user requested igncr. 13984# But we know of no other shell where ac_cr would be empty at this 13985# point, so we can use a bashism as a fallback. 13986if test "x$ac_cr" = x; then 13987 eval ac_cr=\$\'\\r\' 13988fi 13989ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13990if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13991 ac_cs_awk_cr='\\r' 13992else 13993 ac_cs_awk_cr=$ac_cr 13994fi 13995 13996echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13997_ACEOF 13998 13999 14000{ 14001 echo "cat >conf$$subs.awk <<_ACEOF" && 14002 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14003 echo "_ACEOF" 14004} >conf$$subs.sh || 14005 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14006ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14007ac_delim='%!_!# ' 14008for ac_last_try in false false false false false :; do 14009 . ./conf$$subs.sh || 14010 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14011 14012 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14013 if test $ac_delim_n = $ac_delim_num; then 14014 break 14015 elif $ac_last_try; then 14016 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14017 else 14018 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14019 fi 14020done 14021rm -f conf$$subs.sh 14022 14023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14024cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14025_ACEOF 14026sed -n ' 14027h 14028s/^/S["/; s/!.*/"]=/ 14029p 14030g 14031s/^[^!]*!// 14032:repl 14033t repl 14034s/'"$ac_delim"'$// 14035t delim 14036:nl 14037h 14038s/\(.\{148\}\)..*/\1/ 14039t more1 14040s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14041p 14042n 14043b repl 14044:more1 14045s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14046p 14047g 14048s/.\{148\}// 14049t nl 14050:delim 14051h 14052s/\(.\{148\}\)..*/\1/ 14053t more2 14054s/["\\]/\\&/g; s/^/"/; s/$/"/ 14055p 14056b 14057:more2 14058s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14059p 14060g 14061s/.\{148\}// 14062t delim 14063' <conf$$subs.awk | sed ' 14064/^[^""]/{ 14065 N 14066 s/\n// 14067} 14068' >>$CONFIG_STATUS || ac_write_fail=1 14069rm -f conf$$subs.awk 14070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14071_ACAWK 14072cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14073 for (key in S) S_is_set[key] = 1 14074 FS = "" 14075 14076} 14077{ 14078 line = $ 0 14079 nfields = split(line, field, "@") 14080 substed = 0 14081 len = length(field[1]) 14082 for (i = 2; i < nfields; i++) { 14083 key = field[i] 14084 keylen = length(key) 14085 if (S_is_set[key]) { 14086 value = S[key] 14087 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14088 len += length(value) + length(field[++i]) 14089 substed = 1 14090 } else 14091 len += 1 + keylen 14092 } 14093 14094 print line 14095} 14096 14097_ACAWK 14098_ACEOF 14099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14100if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14101 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14102else 14103 cat 14104fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14105 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14106_ACEOF 14107 14108# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14109# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14110# trailing colons and then remove the whole line if VPATH becomes empty 14111# (actually we leave an empty line to preserve line numbers). 14112if test "x$srcdir" = x.; then 14113 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14114h 14115s/// 14116s/^/:/ 14117s/[ ]*$/:/ 14118s/:\$(srcdir):/:/g 14119s/:\${srcdir}:/:/g 14120s/:@srcdir@:/:/g 14121s/^:*// 14122s/:*$// 14123x 14124s/\(=[ ]*\).*/\1/ 14125G 14126s/\n// 14127s/^[^=]*=[ ]*$// 14128}' 14129fi 14130 14131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14132fi # test -n "$CONFIG_FILES" 14133 14134# Set up the scripts for CONFIG_HEADERS section. 14135# No need to generate them if there are no CONFIG_HEADERS. 14136# This happens for instance with `./config.status Makefile'. 14137if test -n "$CONFIG_HEADERS"; then 14138cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14139BEGIN { 14140_ACEOF 14141 14142# Transform confdefs.h into an awk script `defines.awk', embedded as 14143# here-document in config.status, that substitutes the proper values into 14144# config.h.in to produce config.h. 14145 14146# Create a delimiter string that does not exist in confdefs.h, to ease 14147# handling of long lines. 14148ac_delim='%!_!# ' 14149for ac_last_try in false false :; do 14150 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14151 if test -z "$ac_tt"; then 14152 break 14153 elif $ac_last_try; then 14154 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14155 else 14156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14157 fi 14158done 14159 14160# For the awk script, D is an array of macro values keyed by name, 14161# likewise P contains macro parameters if any. Preserve backslash 14162# newline sequences. 14163 14164ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14165sed -n ' 14166s/.\{148\}/&'"$ac_delim"'/g 14167t rset 14168:rset 14169s/^[ ]*#[ ]*define[ ][ ]*/ / 14170t def 14171d 14172:def 14173s/\\$// 14174t bsnl 14175s/["\\]/\\&/g 14176s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14177D["\1"]=" \3"/p 14178s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14179d 14180:bsnl 14181s/["\\]/\\&/g 14182s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14183D["\1"]=" \3\\\\\\n"\\/p 14184t cont 14185s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14186t cont 14187d 14188:cont 14189n 14190s/.\{148\}/&'"$ac_delim"'/g 14191t clear 14192:clear 14193s/\\$// 14194t bsnlc 14195s/["\\]/\\&/g; s/^/"/; s/$/"/p 14196d 14197:bsnlc 14198s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14199b cont 14200' <confdefs.h | sed ' 14201s/'"$ac_delim"'/"\\\ 14202"/g' >>$CONFIG_STATUS || ac_write_fail=1 14203 14204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14205 for (key in D) D_is_set[key] = 1 14206 FS = "" 14207} 14208/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14209 line = \$ 0 14210 split(line, arg, " ") 14211 if (arg[1] == "#") { 14212 defundef = arg[2] 14213 mac1 = arg[3] 14214 } else { 14215 defundef = substr(arg[1], 2) 14216 mac1 = arg[2] 14217 } 14218 split(mac1, mac2, "(") #) 14219 macro = mac2[1] 14220 prefix = substr(line, 1, index(line, defundef) - 1) 14221 if (D_is_set[macro]) { 14222 # Preserve the white space surrounding the "#". 14223 print prefix "define", macro P[macro] D[macro] 14224 next 14225 } else { 14226 # Replace #undef with comments. This is necessary, for example, 14227 # in the case of _POSIX_SOURCE, which is predefined and required 14228 # on some systems where configure will not decide to define it. 14229 if (defundef == "undef") { 14230 print "/*", prefix defundef, macro, "*/" 14231 next 14232 } 14233 } 14234} 14235{ print } 14236_ACAWK 14237_ACEOF 14238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14239 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14240fi # test -n "$CONFIG_HEADERS" 14241 14242 14243eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14244shift 14245for ac_tag 14246do 14247 case $ac_tag in 14248 :[FHLC]) ac_mode=$ac_tag; continue;; 14249 esac 14250 case $ac_mode$ac_tag in 14251 :[FHL]*:*);; 14252 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14253 :[FH]-) ac_tag=-:-;; 14254 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14255 esac 14256 ac_save_IFS=$IFS 14257 IFS=: 14258 set x $ac_tag 14259 IFS=$ac_save_IFS 14260 shift 14261 ac_file=$1 14262 shift 14263 14264 case $ac_mode in 14265 :L) ac_source=$1;; 14266 :[FH]) 14267 ac_file_inputs= 14268 for ac_f 14269 do 14270 case $ac_f in 14271 -) ac_f="$ac_tmp/stdin";; 14272 *) # Look for the file first in the build tree, then in the source tree 14273 # (if the path is not absolute). The absolute path cannot be DOS-style, 14274 # because $ac_f cannot contain `:'. 14275 test -f "$ac_f" || 14276 case $ac_f in 14277 [\\/$]*) false;; 14278 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14279 esac || 14280 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14281 esac 14282 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14283 as_fn_append ac_file_inputs " '$ac_f'" 14284 done 14285 14286 # Let's still pretend it is `configure' which instantiates (i.e., don't 14287 # use $as_me), people would be surprised to read: 14288 # /* config.h. Generated by config.status. */ 14289 configure_input='Generated from '` 14290 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14291 `' by configure.' 14292 if test x"$ac_file" != x-; then 14293 configure_input="$ac_file. $configure_input" 14294 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14295$as_echo "$as_me: creating $ac_file" >&6;} 14296 fi 14297 # Neutralize special characters interpreted by sed in replacement strings. 14298 case $configure_input in #( 14299 *\&* | *\|* | *\\* ) 14300 ac_sed_conf_input=`$as_echo "$configure_input" | 14301 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14302 *) ac_sed_conf_input=$configure_input;; 14303 esac 14304 14305 case $ac_tag in 14306 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14307 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14308 esac 14309 ;; 14310 esac 14311 14312 ac_dir=`$as_dirname -- "$ac_file" || 14313$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14314 X"$ac_file" : 'X\(//\)[^/]' \| \ 14315 X"$ac_file" : 'X\(//\)$' \| \ 14316 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14317$as_echo X"$ac_file" | 14318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14319 s//\1/ 14320 q 14321 } 14322 /^X\(\/\/\)[^/].*/{ 14323 s//\1/ 14324 q 14325 } 14326 /^X\(\/\/\)$/{ 14327 s//\1/ 14328 q 14329 } 14330 /^X\(\/\).*/{ 14331 s//\1/ 14332 q 14333 } 14334 s/.*/./; q'` 14335 as_dir="$ac_dir"; as_fn_mkdir_p 14336 ac_builddir=. 14337 14338case "$ac_dir" in 14339.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14340*) 14341 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14342 # A ".." for each directory in $ac_dir_suffix. 14343 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14344 case $ac_top_builddir_sub in 14345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14347 esac ;; 14348esac 14349ac_abs_top_builddir=$ac_pwd 14350ac_abs_builddir=$ac_pwd$ac_dir_suffix 14351# for backward compatibility: 14352ac_top_builddir=$ac_top_build_prefix 14353 14354case $srcdir in 14355 .) # We are building in place. 14356 ac_srcdir=. 14357 ac_top_srcdir=$ac_top_builddir_sub 14358 ac_abs_top_srcdir=$ac_pwd ;; 14359 [\\/]* | ?:[\\/]* ) # Absolute name. 14360 ac_srcdir=$srcdir$ac_dir_suffix; 14361 ac_top_srcdir=$srcdir 14362 ac_abs_top_srcdir=$srcdir ;; 14363 *) # Relative name. 14364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14365 ac_top_srcdir=$ac_top_build_prefix$srcdir 14366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14367esac 14368ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14369 14370 14371 case $ac_mode in 14372 :F) 14373 # 14374 # CONFIG_FILE 14375 # 14376 14377 case $INSTALL in 14378 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14379 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14380 esac 14381_ACEOF 14382 14383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14384# If the template does not know about datarootdir, expand it. 14385# FIXME: This hack should be removed a few years after 2.60. 14386ac_datarootdir_hack=; ac_datarootdir_seen= 14387ac_sed_dataroot=' 14388/datarootdir/ { 14389 p 14390 q 14391} 14392/@datadir@/p 14393/@docdir@/p 14394/@infodir@/p 14395/@localedir@/p 14396/@mandir@/p' 14397case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14398*datarootdir*) ac_datarootdir_seen=yes;; 14399*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14401$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14402_ACEOF 14403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14404 ac_datarootdir_hack=' 14405 s&@datadir@&$datadir&g 14406 s&@docdir@&$docdir&g 14407 s&@infodir@&$infodir&g 14408 s&@localedir@&$localedir&g 14409 s&@mandir@&$mandir&g 14410 s&\\\${datarootdir}&$datarootdir&g' ;; 14411esac 14412_ACEOF 14413 14414# Neutralize VPATH when `$srcdir' = `.'. 14415# Shell code in configure.ac might set extrasub. 14416# FIXME: do we really want to maintain this feature? 14417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14418ac_sed_extra="$ac_vpsub 14419$extrasub 14420_ACEOF 14421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14422:t 14423/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14424s|@configure_input@|$ac_sed_conf_input|;t t 14425s&@top_builddir@&$ac_top_builddir_sub&;t t 14426s&@top_build_prefix@&$ac_top_build_prefix&;t t 14427s&@srcdir@&$ac_srcdir&;t t 14428s&@abs_srcdir@&$ac_abs_srcdir&;t t 14429s&@top_srcdir@&$ac_top_srcdir&;t t 14430s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14431s&@builddir@&$ac_builddir&;t t 14432s&@abs_builddir@&$ac_abs_builddir&;t t 14433s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14434s&@INSTALL@&$ac_INSTALL&;t t 14435$ac_datarootdir_hack 14436" 14437eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14438 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14439 14440test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14441 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14442 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14443 "$ac_tmp/out"`; test -z "$ac_out"; } && 14444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14445which seems to be undefined. Please make sure it is defined" >&5 14446$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14447which seems to be undefined. Please make sure it is defined" >&2;} 14448 14449 rm -f "$ac_tmp/stdin" 14450 case $ac_file in 14451 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14452 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14453 esac \ 14454 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14455 ;; 14456 :H) 14457 # 14458 # CONFIG_HEADER 14459 # 14460 if test x"$ac_file" != x-; then 14461 { 14462 $as_echo "/* $configure_input */" \ 14463 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14464 } >"$ac_tmp/config.h" \ 14465 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14466 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14467 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14468$as_echo "$as_me: $ac_file is unchanged" >&6;} 14469 else 14470 rm -f "$ac_file" 14471 mv "$ac_tmp/config.h" "$ac_file" \ 14472 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14473 fi 14474 else 14475 $as_echo "/* $configure_input */" \ 14476 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14477 || as_fn_error $? "could not create -" "$LINENO" 5 14478 fi 14479 ;; 14480 14481 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14482$as_echo "$as_me: executing $ac_file commands" >&6;} 14483 ;; 14484 esac 14485 14486 14487 case $ac_file$ac_mode in 14488 "libtool":C) 14489 14490 # See if we are running on zsh, and set the options which allow our 14491 # commands through without removal of \ escapes. 14492 if test -n "${ZSH_VERSION+set}" ; then 14493 setopt NO_GLOB_SUBST 14494 fi 14495 14496 cfgfile="${ofile}T" 14497 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14498 $RM "$cfgfile" 14499 14500 cat <<_LT_EOF >> "$cfgfile" 14501#! $SHELL 14502 14503# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14504# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14505# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14506# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14507# 14508# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14509# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 14510# Foundation, Inc. 14511# Written by Gordon Matzigkeit, 1996 14512# 14513# This file is part of GNU Libtool. 14514# 14515# GNU Libtool is free software; you can redistribute it and/or 14516# modify it under the terms of the GNU General Public License as 14517# published by the Free Software Foundation; either version 2 of 14518# the License, or (at your option) any later version. 14519# 14520# As a special exception to the GNU General Public License, 14521# if you distribute this file as part of a program or library that 14522# is built using GNU Libtool, you may include this file under the 14523# same distribution terms that you use for the rest of that program. 14524# 14525# GNU Libtool is distributed in the hope that it will be useful, 14526# but WITHOUT ANY WARRANTY; without even the implied warranty of 14527# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14528# GNU General Public License for more details. 14529# 14530# You should have received a copy of the GNU General Public License 14531# along with GNU Libtool; see the file COPYING. If not, a copy 14532# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14533# obtained by writing to the Free Software Foundation, Inc., 14534# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14535 14536 14537# The names of the tagged configurations supported by this script. 14538available_tags="" 14539 14540# ### BEGIN LIBTOOL CONFIG 14541 14542# Whether or not to build static libraries. 14543build_old_libs=$enable_static 14544 14545# Assembler program. 14546AS=$lt_AS 14547 14548# DLL creation program. 14549DLLTOOL=$lt_DLLTOOL 14550 14551# Object dumper program. 14552OBJDUMP=$lt_OBJDUMP 14553 14554# Which release of libtool.m4 was used? 14555macro_version=$macro_version 14556macro_revision=$macro_revision 14557 14558# Whether or not to build shared libraries. 14559build_libtool_libs=$enable_shared 14560 14561# What type of objects to build. 14562pic_mode=$pic_mode 14563 14564# Whether or not to optimize for fast installation. 14565fast_install=$enable_fast_install 14566 14567# Shell to use when invoking shell scripts. 14568SHELL=$lt_SHELL 14569 14570# An echo program that protects backslashes. 14571ECHO=$lt_ECHO 14572 14573# The PATH separator for the build system. 14574PATH_SEPARATOR=$lt_PATH_SEPARATOR 14575 14576# The host system. 14577host_alias=$host_alias 14578host=$host 14579host_os=$host_os 14580 14581# The build system. 14582build_alias=$build_alias 14583build=$build 14584build_os=$build_os 14585 14586# A sed program that does not truncate output. 14587SED=$lt_SED 14588 14589# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14590Xsed="\$SED -e 1s/^X//" 14591 14592# A grep program that handles long lines. 14593GREP=$lt_GREP 14594 14595# An ERE matcher. 14596EGREP=$lt_EGREP 14597 14598# A literal string matcher. 14599FGREP=$lt_FGREP 14600 14601# A BSD- or MS-compatible name lister. 14602NM=$lt_NM 14603 14604# Whether we need soft or hard links. 14605LN_S=$lt_LN_S 14606 14607# What is the maximum length of a command? 14608max_cmd_len=$max_cmd_len 14609 14610# Object file suffix (normally "o"). 14611objext=$ac_objext 14612 14613# Executable file suffix (normally ""). 14614exeext=$exeext 14615 14616# whether the shell understands "unset". 14617lt_unset=$lt_unset 14618 14619# turn spaces into newlines. 14620SP2NL=$lt_lt_SP2NL 14621 14622# turn newlines into spaces. 14623NL2SP=$lt_lt_NL2SP 14624 14625# convert \$build file names to \$host format. 14626to_host_file_cmd=$lt_cv_to_host_file_cmd 14627 14628# convert \$build files to toolchain format. 14629to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14630 14631# Method to check whether dependent libraries are shared objects. 14632deplibs_check_method=$lt_deplibs_check_method 14633 14634# Command to use when deplibs_check_method = "file_magic". 14635file_magic_cmd=$lt_file_magic_cmd 14636 14637# How to find potential files when deplibs_check_method = "file_magic". 14638file_magic_glob=$lt_file_magic_glob 14639 14640# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14641want_nocaseglob=$lt_want_nocaseglob 14642 14643# Command to associate shared and link libraries. 14644sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14645 14646# The archiver. 14647AR=$lt_AR 14648 14649# Flags to create an archive. 14650AR_FLAGS=$lt_AR_FLAGS 14651 14652# How to feed a file listing to the archiver. 14653archiver_list_spec=$lt_archiver_list_spec 14654 14655# A symbol stripping program. 14656STRIP=$lt_STRIP 14657 14658# Commands used to install an old-style archive. 14659RANLIB=$lt_RANLIB 14660old_postinstall_cmds=$lt_old_postinstall_cmds 14661old_postuninstall_cmds=$lt_old_postuninstall_cmds 14662 14663# Whether to use a lock for old archive extraction. 14664lock_old_archive_extraction=$lock_old_archive_extraction 14665 14666# A C compiler. 14667LTCC=$lt_CC 14668 14669# LTCC compiler flags. 14670LTCFLAGS=$lt_CFLAGS 14671 14672# Take the output of nm and produce a listing of raw symbols and C names. 14673global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14674 14675# Transform the output of nm in a proper C declaration. 14676global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14677 14678# Transform the output of nm in a C name address pair. 14679global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14680 14681# Transform the output of nm in a C name address pair when lib prefix is needed. 14682global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14683 14684# Specify filename containing input files for \$NM. 14685nm_file_list_spec=$lt_nm_file_list_spec 14686 14687# The root where to search for dependent libraries,and in which our libraries should be installed. 14688lt_sysroot=$lt_sysroot 14689 14690# The name of the directory that contains temporary libtool files. 14691objdir=$objdir 14692 14693# Used to examine libraries when file_magic_cmd begins with "file". 14694MAGIC_CMD=$MAGIC_CMD 14695 14696# Must we lock files when doing compilation? 14697need_locks=$lt_need_locks 14698 14699# Manifest tool. 14700MANIFEST_TOOL=$lt_MANIFEST_TOOL 14701 14702# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14703DSYMUTIL=$lt_DSYMUTIL 14704 14705# Tool to change global to local symbols on Mac OS X. 14706NMEDIT=$lt_NMEDIT 14707 14708# Tool to manipulate fat objects and archives on Mac OS X. 14709LIPO=$lt_LIPO 14710 14711# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14712OTOOL=$lt_OTOOL 14713 14714# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14715OTOOL64=$lt_OTOOL64 14716 14717# Old archive suffix (normally "a"). 14718libext=$libext 14719 14720# Shared library suffix (normally ".so"). 14721shrext_cmds=$lt_shrext_cmds 14722 14723# The commands to extract the exported symbol list from a shared archive. 14724extract_expsyms_cmds=$lt_extract_expsyms_cmds 14725 14726# Variables whose values should be saved in libtool wrapper scripts and 14727# restored at link time. 14728variables_saved_for_relink=$lt_variables_saved_for_relink 14729 14730# Do we need the "lib" prefix for modules? 14731need_lib_prefix=$need_lib_prefix 14732 14733# Do we need a version for libraries? 14734need_version=$need_version 14735 14736# Library versioning type. 14737version_type=$version_type 14738 14739# Shared library runtime path variable. 14740runpath_var=$runpath_var 14741 14742# Shared library path variable. 14743shlibpath_var=$shlibpath_var 14744 14745# Is shlibpath searched before the hard-coded library search path? 14746shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14747 14748# Format of library name prefix. 14749libname_spec=$lt_libname_spec 14750 14751# List of archive names. First name is the real one, the rest are links. 14752# The last name is the one that the linker finds with -lNAME 14753library_names_spec=$lt_library_names_spec 14754 14755# The coded name of the library, if different from the real name. 14756soname_spec=$lt_soname_spec 14757 14758# Permission mode override for installation of shared libraries. 14759install_override_mode=$lt_install_override_mode 14760 14761# Command to use after installation of a shared archive. 14762postinstall_cmds=$lt_postinstall_cmds 14763 14764# Command to use after uninstallation of a shared archive. 14765postuninstall_cmds=$lt_postuninstall_cmds 14766 14767# Commands used to finish a libtool library installation in a directory. 14768finish_cmds=$lt_finish_cmds 14769 14770# As "finish_cmds", except a single script fragment to be evaled but 14771# not shown. 14772finish_eval=$lt_finish_eval 14773 14774# Whether we should hardcode library paths into libraries. 14775hardcode_into_libs=$hardcode_into_libs 14776 14777# Compile-time system search path for libraries. 14778sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14779 14780# Run-time system search path for libraries. 14781sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14782 14783# Whether dlopen is supported. 14784dlopen_support=$enable_dlopen 14785 14786# Whether dlopen of programs is supported. 14787dlopen_self=$enable_dlopen_self 14788 14789# Whether dlopen of statically linked programs is supported. 14790dlopen_self_static=$enable_dlopen_self_static 14791 14792# Commands to strip libraries. 14793old_striplib=$lt_old_striplib 14794striplib=$lt_striplib 14795 14796 14797# The linker used to build libraries. 14798LD=$lt_LD 14799 14800# How to create reloadable object files. 14801reload_flag=$lt_reload_flag 14802reload_cmds=$lt_reload_cmds 14803 14804# Commands used to build an old-style archive. 14805old_archive_cmds=$lt_old_archive_cmds 14806 14807# A language specific compiler. 14808CC=$lt_compiler 14809 14810# Is the compiler the GNU compiler? 14811with_gcc=$GCC 14812 14813# Compiler flag to turn off builtin functions. 14814no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14815 14816# Additional compiler flags for building library objects. 14817pic_flag=$lt_lt_prog_compiler_pic 14818 14819# How to pass a linker flag through the compiler. 14820wl=$lt_lt_prog_compiler_wl 14821 14822# Compiler flag to prevent dynamic linking. 14823link_static_flag=$lt_lt_prog_compiler_static 14824 14825# Does compiler simultaneously support -c and -o options? 14826compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14827 14828# Whether or not to add -lc for building shared libraries. 14829build_libtool_need_lc=$archive_cmds_need_lc 14830 14831# Whether or not to disallow shared libs when runtime libs are static. 14832allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14833 14834# Compiler flag to allow reflexive dlopens. 14835export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14836 14837# Compiler flag to generate shared objects directly from archives. 14838whole_archive_flag_spec=$lt_whole_archive_flag_spec 14839 14840# Whether the compiler copes with passing no objects directly. 14841compiler_needs_object=$lt_compiler_needs_object 14842 14843# Create an old-style archive from a shared archive. 14844old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14845 14846# Create a temporary old-style archive to link instead of a shared archive. 14847old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14848 14849# Commands used to build a shared archive. 14850archive_cmds=$lt_archive_cmds 14851archive_expsym_cmds=$lt_archive_expsym_cmds 14852 14853# Commands used to build a loadable module if different from building 14854# a shared archive. 14855module_cmds=$lt_module_cmds 14856module_expsym_cmds=$lt_module_expsym_cmds 14857 14858# Whether we are building with GNU ld or not. 14859with_gnu_ld=$lt_with_gnu_ld 14860 14861# Flag that allows shared libraries with undefined symbols to be built. 14862allow_undefined_flag=$lt_allow_undefined_flag 14863 14864# Flag that enforces no undefined symbols. 14865no_undefined_flag=$lt_no_undefined_flag 14866 14867# Flag to hardcode \$libdir into a binary during linking. 14868# This must work even if \$libdir does not exist 14869hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14870 14871# Whether we need a single "-rpath" flag with a separated argument. 14872hardcode_libdir_separator=$lt_hardcode_libdir_separator 14873 14874# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14875# DIR into the resulting binary. 14876hardcode_direct=$hardcode_direct 14877 14878# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14879# DIR into the resulting binary and the resulting library dependency is 14880# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14881# library is relocated. 14882hardcode_direct_absolute=$hardcode_direct_absolute 14883 14884# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14885# into the resulting binary. 14886hardcode_minus_L=$hardcode_minus_L 14887 14888# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14889# into the resulting binary. 14890hardcode_shlibpath_var=$hardcode_shlibpath_var 14891 14892# Set to "yes" if building a shared library automatically hardcodes DIR 14893# into the library and all subsequent libraries and executables linked 14894# against it. 14895hardcode_automatic=$hardcode_automatic 14896 14897# Set to yes if linker adds runtime paths of dependent libraries 14898# to runtime path list. 14899inherit_rpath=$inherit_rpath 14900 14901# Whether libtool must link a program against all its dependency libraries. 14902link_all_deplibs=$link_all_deplibs 14903 14904# Set to "yes" if exported symbols are required. 14905always_export_symbols=$always_export_symbols 14906 14907# The commands to list exported symbols. 14908export_symbols_cmds=$lt_export_symbols_cmds 14909 14910# Symbols that should not be listed in the preloaded symbols. 14911exclude_expsyms=$lt_exclude_expsyms 14912 14913# Symbols that must always be exported. 14914include_expsyms=$lt_include_expsyms 14915 14916# Commands necessary for linking programs (against libraries) with templates. 14917prelink_cmds=$lt_prelink_cmds 14918 14919# Commands necessary for finishing linking programs. 14920postlink_cmds=$lt_postlink_cmds 14921 14922# Specify filename containing input files. 14923file_list_spec=$lt_file_list_spec 14924 14925# How to hardcode a shared library path into an executable. 14926hardcode_action=$hardcode_action 14927 14928# ### END LIBTOOL CONFIG 14929 14930_LT_EOF 14931 14932 case $host_os in 14933 aix3*) 14934 cat <<\_LT_EOF >> "$cfgfile" 14935# AIX sometimes has problems with the GCC collect2 program. For some 14936# reason, if we set the COLLECT_NAMES environment variable, the problems 14937# vanish in a puff of smoke. 14938if test "X${COLLECT_NAMES+set}" != Xset; then 14939 COLLECT_NAMES= 14940 export COLLECT_NAMES 14941fi 14942_LT_EOF 14943 ;; 14944 esac 14945 14946 14947ltmain="$ac_aux_dir/ltmain.sh" 14948 14949 14950 # We use sed instead of cat because bash on DJGPP gets confused if 14951 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14952 # text mode, it properly converts lines to CR/LF. This bash problem 14953 # is reportedly fixed, but why not run on old versions too? 14954 sed '$q' "$ltmain" >> "$cfgfile" \ 14955 || (rm -f "$cfgfile"; exit 1) 14956 14957 if test x"$xsi_shell" = xyes; then 14958 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 14959func_dirname ()\ 14960{\ 14961\ case ${1} in\ 14962\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14963\ * ) func_dirname_result="${3}" ;;\ 14964\ esac\ 14965} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 14966 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14967 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14968test 0 -eq $? || _lt_function_replace_fail=: 14969 14970 14971 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 14972func_basename ()\ 14973{\ 14974\ func_basename_result="${1##*/}"\ 14975} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14976 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14977 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14978test 0 -eq $? || _lt_function_replace_fail=: 14979 14980 14981 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 14982func_dirname_and_basename ()\ 14983{\ 14984\ case ${1} in\ 14985\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14986\ * ) func_dirname_result="${3}" ;;\ 14987\ esac\ 14988\ func_basename_result="${1##*/}"\ 14989} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14990 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14991 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14992test 0 -eq $? || _lt_function_replace_fail=: 14993 14994 14995 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 14996func_stripname ()\ 14997{\ 14998\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 14999\ # positional parameters, so assign one to ordinary parameter first.\ 15000\ func_stripname_result=${3}\ 15001\ func_stripname_result=${func_stripname_result#"${1}"}\ 15002\ func_stripname_result=${func_stripname_result%"${2}"}\ 15003} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 15004 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15005 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15006test 0 -eq $? || _lt_function_replace_fail=: 15007 15008 15009 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 15010func_split_long_opt ()\ 15011{\ 15012\ func_split_long_opt_name=${1%%=*}\ 15013\ func_split_long_opt_arg=${1#*=}\ 15014} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 15015 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15016 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15017test 0 -eq $? || _lt_function_replace_fail=: 15018 15019 15020 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 15021func_split_short_opt ()\ 15022{\ 15023\ func_split_short_opt_arg=${1#??}\ 15024\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 15025} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 15026 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15027 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15028test 0 -eq $? || _lt_function_replace_fail=: 15029 15030 15031 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 15032func_lo2o ()\ 15033{\ 15034\ case ${1} in\ 15035\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 15036\ *) func_lo2o_result=${1} ;;\ 15037\ esac\ 15038} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 15039 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15040 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15041test 0 -eq $? || _lt_function_replace_fail=: 15042 15043 15044 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 15045func_xform ()\ 15046{\ 15047 func_xform_result=${1%.*}.lo\ 15048} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 15049 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15050 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15051test 0 -eq $? || _lt_function_replace_fail=: 15052 15053 15054 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 15055func_arith ()\ 15056{\ 15057 func_arith_result=$(( $* ))\ 15058} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 15059 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15060 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15061test 0 -eq $? || _lt_function_replace_fail=: 15062 15063 15064 sed -e '/^func_len ()$/,/^} # func_len /c\ 15065func_len ()\ 15066{\ 15067 func_len_result=${#1}\ 15068} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 15069 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15070 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15071test 0 -eq $? || _lt_function_replace_fail=: 15072 15073fi 15074 15075if test x"$lt_shell_append" = xyes; then 15076 sed -e '/^func_append ()$/,/^} # func_append /c\ 15077func_append ()\ 15078{\ 15079 eval "${1}+=\\${2}"\ 15080} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 15081 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15082 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15083test 0 -eq $? || _lt_function_replace_fail=: 15084 15085 15086 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 15087func_append_quoted ()\ 15088{\ 15089\ func_quote_for_eval "${2}"\ 15090\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 15091} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 15092 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15093 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15094test 0 -eq $? || _lt_function_replace_fail=: 15095 15096 15097 # Save a `func_append' function call where possible by direct use of '+=' 15098 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 15099 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15100 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15101 test 0 -eq $? || _lt_function_replace_fail=: 15102else 15103 # Save a `func_append' function call even when '+=' is not available 15104 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 15105 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15106 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15107 test 0 -eq $? || _lt_function_replace_fail=: 15108fi 15109 15110if test x"$_lt_function_replace_fail" = x":"; then 15111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 15112$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 15113fi 15114 15115 15116 mv -f "$cfgfile" "$ofile" || 15117 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15118 chmod +x "$ofile" 15119 15120 ;; 15121 15122 esac 15123done # for ac_tag 15124 15125 15126as_fn_exit 0 15127_ACEOF 15128ac_clean_files=$ac_clean_files_save 15129 15130test $ac_write_fail = 0 || 15131 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15132 15133 15134# configure is writing to config.log, and then calls config.status. 15135# config.status does its own redirection, appending to config.log. 15136# Unfortunately, on DOS this fails, as config.log is still kept open 15137# by configure, so config.status won't be able to write to it; its 15138# output is simply discarded. So we exec the FD to /dev/null, 15139# effectively closing config.log, so it can be properly (re)opened and 15140# appended to by config.status. When coming back to configure, we 15141# need to make the FD available again. 15142if test "$no_create" != yes; then 15143 ac_cs_success=: 15144 ac_config_status_args= 15145 test "$silent" = yes && 15146 ac_config_status_args="$ac_config_status_args --quiet" 15147 exec 5>/dev/null 15148 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15149 exec 5>>config.log 15150 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15151 # would make configure fail if this is the last instruction. 15152 $ac_cs_success || as_fn_exit 1 15153fi 15154if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15156$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15157fi 15158 15159 15160for script in $PATH_OLD_EXEFILES ; do 15161 if test -f "$script" ; then 15162 chmod a+x $script 15163 else 15164 15165if test "*** $script is not a valid file - check if $srcdir is a valid TRACE-API implementation." = "yes" ; then 15166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 15167$as_echo "$as_me: WARNING: " >&2;} 15168 exit 0 15169else 15170 as_fn_error $? " " "$LINENO" 5 15171fi 15172 15173 fi 15174done 15175 15176if test "X$TRACE_NAME" != "X" -a "$TRACE_NAME" != "trace" ; then 15177 for oldpgm in $OLD_EXEFILES ; do 15178 newpgm=$TRACE_NAME`echo $oldpgm | sed -e 's%trace%%'` 15179 $MV bin/$oldpgm bin/$newpgm 15180 done 15181fi 15182 15183if test -n "$TRACE_CC" ; then 15184 CC="$TRACE_ORIG_CC" 15185fi 15186if test -n "$TRACE_CFLAGS" ; then 15187 CFLAGS="$TRACE_ORIG_CFLAGS" 15188fi 15189