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 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME= 589PACKAGE_TARNAME= 590PACKAGE_VERSION= 591PACKAGE_STRING= 592PACKAGE_BUGREPORT= 593PACKAGE_URL= 594 595ac_unique_file="Makefile.in" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_header_list= 633ac_subst_vars='LTLIBOBJS 634FILEMAP_OBJ 635LIBOBJS 636INSTALL_DATA 637INSTALL_SCRIPT 638INSTALL_PROGRAM 639LIBAGE 640LIBREVISION 641LIBCURRENT 642EXPAT_EDIT 643EXPAT_MINOR_VERSION 644EXPAT_MAJOR_VERSION 645VERSION 646PACKAGE 647blddir 648CPP 649LT_SYS_LIBRARY_PATH 650OTOOL64 651OTOOL 652LIPO 653NMEDIT 654DSYMUTIL 655MANIFEST_TOOL 656AWK 657RANLIB 658STRIP 659ac_ct_AR 660AR 661LN_S 662NM 663ac_ct_DUMPBIN 664DUMPBIN 665LD 666FGREP 667EGREP 668GREP 669SED 670OBJEXT 671EXEEXT 672ac_ct_CC 673CPPFLAGS 674LDFLAGS 675CFLAGS 676CC 677LIBTOOL 678OBJDUMP 679DLLTOOL 680AS 681target_os 682target_vendor 683target_cpu 684target 685host_os 686host_vendor 687host_cpu 688host 689build_os 690build_vendor 691build_cpu 692build 693target_alias 694host_alias 695build_alias 696LIBS 697ECHO_T 698ECHO_N 699ECHO_C 700DEFS 701mandir 702localedir 703libdir 704psdir 705pdfdir 706dvidir 707htmldir 708infodir 709docdir 710oldincludedir 711includedir 712runstatedir 713localstatedir 714sharedstatedir 715sysconfdir 716datadir 717datarootdir 718libexecdir 719sbindir 720bindir 721program_transform_name 722prefix 723exec_prefix 724PACKAGE_URL 725PACKAGE_BUGREPORT 726PACKAGE_STRING 727PACKAGE_VERSION 728PACKAGE_TARNAME 729PACKAGE_NAME 730PATH_SEPARATOR 731SHELL' 732ac_subst_files='' 733ac_user_opts=' 734enable_option_checking 735enable_shared 736enable_static 737with_pic 738enable_fast_install 739with_aix_soname 740with_gnu_ld 741with_sysroot 742enable_libtool_lock 743' 744 ac_precious_vars='build_alias 745host_alias 746target_alias 747CC 748CFLAGS 749LDFLAGS 750LIBS 751CPPFLAGS 752LT_SYS_LIBRARY_PATH 753CPP' 754 755 756# Initialize some variables set by options. 757ac_init_help= 758ac_init_version=false 759ac_unrecognized_opts= 760ac_unrecognized_sep= 761# The variables have the same names as the options, with 762# dashes changed to underlines. 763cache_file=/dev/null 764exec_prefix=NONE 765no_create= 766no_recursion= 767prefix=NONE 768program_prefix=NONE 769program_suffix=NONE 770program_transform_name=s,x,x, 771silent= 772site= 773srcdir= 774verbose= 775x_includes=NONE 776x_libraries=NONE 777 778# Installation directory options. 779# These are left unexpanded so users can "make install exec_prefix=/foo" 780# and all the variables that are supposed to be based on exec_prefix 781# by default will actually change. 782# Use braces instead of parens because sh, perl, etc. also accept them. 783# (The list follows the same order as the GNU Coding Standards.) 784bindir='${exec_prefix}/bin' 785sbindir='${exec_prefix}/sbin' 786libexecdir='${exec_prefix}/libexec' 787datarootdir='${prefix}/share' 788datadir='${datarootdir}' 789sysconfdir='${prefix}/etc' 790sharedstatedir='${prefix}/com' 791localstatedir='${prefix}/var' 792runstatedir='${localstatedir}/run' 793includedir='${prefix}/include' 794oldincludedir='/usr/include' 795docdir='${datarootdir}/doc/${PACKAGE}' 796infodir='${datarootdir}/info' 797htmldir='${docdir}' 798dvidir='${docdir}' 799pdfdir='${docdir}' 800psdir='${docdir}' 801libdir='${exec_prefix}/lib' 802localedir='${datarootdir}/locale' 803mandir='${datarootdir}/man' 804 805ac_prev= 806ac_dashdash= 807for ac_option 808do 809 # If the previous option needs an argument, assign it. 810 if test -n "$ac_prev"; then 811 eval $ac_prev=\$ac_option 812 ac_prev= 813 continue 814 fi 815 816 case $ac_option in 817 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 818 *=) ac_optarg= ;; 819 *) ac_optarg=yes ;; 820 esac 821 822 # Accept the important Cygnus configure options, so we can diagnose typos. 823 824 case $ac_dashdash$ac_option in 825 --) 826 ac_dashdash=yes ;; 827 828 -bindir | --bindir | --bindi | --bind | --bin | --bi) 829 ac_prev=bindir ;; 830 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 831 bindir=$ac_optarg ;; 832 833 -build | --build | --buil | --bui | --bu) 834 ac_prev=build_alias ;; 835 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 836 build_alias=$ac_optarg ;; 837 838 -cache-file | --cache-file | --cache-fil | --cache-fi \ 839 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 840 ac_prev=cache_file ;; 841 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 842 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 843 cache_file=$ac_optarg ;; 844 845 --config-cache | -C) 846 cache_file=config.cache ;; 847 848 -datadir | --datadir | --datadi | --datad) 849 ac_prev=datadir ;; 850 -datadir=* | --datadir=* | --datadi=* | --datad=*) 851 datadir=$ac_optarg ;; 852 853 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 854 | --dataroo | --dataro | --datar) 855 ac_prev=datarootdir ;; 856 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 857 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 858 datarootdir=$ac_optarg ;; 859 860 -disable-* | --disable-*) 861 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 862 # Reject names that are not valid shell variable names. 863 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 864 as_fn_error $? "invalid feature name: $ac_useropt" 865 ac_useropt_orig=$ac_useropt 866 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 867 case $ac_user_opts in 868 *" 869"enable_$ac_useropt" 870"*) ;; 871 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 872 ac_unrecognized_sep=', ';; 873 esac 874 eval enable_$ac_useropt=no ;; 875 876 -docdir | --docdir | --docdi | --doc | --do) 877 ac_prev=docdir ;; 878 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 879 docdir=$ac_optarg ;; 880 881 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 882 ac_prev=dvidir ;; 883 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 884 dvidir=$ac_optarg ;; 885 886 -enable-* | --enable-*) 887 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 888 # Reject names that are not valid shell variable names. 889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 890 as_fn_error $? "invalid feature name: $ac_useropt" 891 ac_useropt_orig=$ac_useropt 892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 893 case $ac_user_opts in 894 *" 895"enable_$ac_useropt" 896"*) ;; 897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 898 ac_unrecognized_sep=', ';; 899 esac 900 eval enable_$ac_useropt=\$ac_optarg ;; 901 902 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 903 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 904 | --exec | --exe | --ex) 905 ac_prev=exec_prefix ;; 906 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 907 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 908 | --exec=* | --exe=* | --ex=*) 909 exec_prefix=$ac_optarg ;; 910 911 -gas | --gas | --ga | --g) 912 # Obsolete; use --with-gas. 913 with_gas=yes ;; 914 915 -help | --help | --hel | --he | -h) 916 ac_init_help=long ;; 917 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 918 ac_init_help=recursive ;; 919 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 920 ac_init_help=short ;; 921 922 -host | --host | --hos | --ho) 923 ac_prev=host_alias ;; 924 -host=* | --host=* | --hos=* | --ho=*) 925 host_alias=$ac_optarg ;; 926 927 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 928 ac_prev=htmldir ;; 929 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 930 | --ht=*) 931 htmldir=$ac_optarg ;; 932 933 -includedir | --includedir | --includedi | --included | --include \ 934 | --includ | --inclu | --incl | --inc) 935 ac_prev=includedir ;; 936 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 937 | --includ=* | --inclu=* | --incl=* | --inc=*) 938 includedir=$ac_optarg ;; 939 940 -infodir | --infodir | --infodi | --infod | --info | --inf) 941 ac_prev=infodir ;; 942 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 943 infodir=$ac_optarg ;; 944 945 -libdir | --libdir | --libdi | --libd) 946 ac_prev=libdir ;; 947 -libdir=* | --libdir=* | --libdi=* | --libd=*) 948 libdir=$ac_optarg ;; 949 950 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 951 | --libexe | --libex | --libe) 952 ac_prev=libexecdir ;; 953 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 954 | --libexe=* | --libex=* | --libe=*) 955 libexecdir=$ac_optarg ;; 956 957 -localedir | --localedir | --localedi | --localed | --locale) 958 ac_prev=localedir ;; 959 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 960 localedir=$ac_optarg ;; 961 962 -localstatedir | --localstatedir | --localstatedi | --localstated \ 963 | --localstate | --localstat | --localsta | --localst | --locals) 964 ac_prev=localstatedir ;; 965 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 966 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 967 localstatedir=$ac_optarg ;; 968 969 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 970 ac_prev=mandir ;; 971 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 972 mandir=$ac_optarg ;; 973 974 -nfp | --nfp | --nf) 975 # Obsolete; use --without-fp. 976 with_fp=no ;; 977 978 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 979 | --no-cr | --no-c | -n) 980 no_create=yes ;; 981 982 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 983 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 984 no_recursion=yes ;; 985 986 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 987 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 988 | --oldin | --oldi | --old | --ol | --o) 989 ac_prev=oldincludedir ;; 990 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 991 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 992 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 993 oldincludedir=$ac_optarg ;; 994 995 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 996 ac_prev=prefix ;; 997 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 998 prefix=$ac_optarg ;; 999 1000 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1001 | --program-pre | --program-pr | --program-p) 1002 ac_prev=program_prefix ;; 1003 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1004 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1005 program_prefix=$ac_optarg ;; 1006 1007 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1008 | --program-suf | --program-su | --program-s) 1009 ac_prev=program_suffix ;; 1010 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1011 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1012 program_suffix=$ac_optarg ;; 1013 1014 -program-transform-name | --program-transform-name \ 1015 | --program-transform-nam | --program-transform-na \ 1016 | --program-transform-n | --program-transform- \ 1017 | --program-transform | --program-transfor \ 1018 | --program-transfo | --program-transf \ 1019 | --program-trans | --program-tran \ 1020 | --progr-tra | --program-tr | --program-t) 1021 ac_prev=program_transform_name ;; 1022 -program-transform-name=* | --program-transform-name=* \ 1023 | --program-transform-nam=* | --program-transform-na=* \ 1024 | --program-transform-n=* | --program-transform-=* \ 1025 | --program-transform=* | --program-transfor=* \ 1026 | --program-transfo=* | --program-transf=* \ 1027 | --program-trans=* | --program-tran=* \ 1028 | --progr-tra=* | --program-tr=* | --program-t=*) 1029 program_transform_name=$ac_optarg ;; 1030 1031 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1032 ac_prev=pdfdir ;; 1033 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1034 pdfdir=$ac_optarg ;; 1035 1036 -psdir | --psdir | --psdi | --psd | --ps) 1037 ac_prev=psdir ;; 1038 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1039 psdir=$ac_optarg ;; 1040 1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1042 | -silent | --silent | --silen | --sile | --sil) 1043 silent=yes ;; 1044 1045 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1046 | --runstate | --runstat | --runsta | --runst | --runs \ 1047 | --run | --ru | --r) 1048 ac_prev=runstatedir ;; 1049 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1050 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1051 | --run=* | --ru=* | --r=*) 1052 runstatedir=$ac_optarg ;; 1053 1054 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1055 ac_prev=sbindir ;; 1056 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1057 | --sbi=* | --sb=*) 1058 sbindir=$ac_optarg ;; 1059 1060 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1061 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1062 | --sharedst | --shareds | --shared | --share | --shar \ 1063 | --sha | --sh) 1064 ac_prev=sharedstatedir ;; 1065 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1066 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1067 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1068 | --sha=* | --sh=*) 1069 sharedstatedir=$ac_optarg ;; 1070 1071 -site | --site | --sit) 1072 ac_prev=site ;; 1073 -site=* | --site=* | --sit=*) 1074 site=$ac_optarg ;; 1075 1076 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1077 ac_prev=srcdir ;; 1078 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1079 srcdir=$ac_optarg ;; 1080 1081 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1082 | --syscon | --sysco | --sysc | --sys | --sy) 1083 ac_prev=sysconfdir ;; 1084 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1085 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1086 sysconfdir=$ac_optarg ;; 1087 1088 -target | --target | --targe | --targ | --tar | --ta | --t) 1089 ac_prev=target_alias ;; 1090 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1091 target_alias=$ac_optarg ;; 1092 1093 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1094 verbose=yes ;; 1095 1096 -version | --version | --versio | --versi | --vers | -V) 1097 ac_init_version=: ;; 1098 1099 -with-* | --with-*) 1100 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1101 # Reject names that are not valid shell variable names. 1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1103 as_fn_error $? "invalid package name: $ac_useropt" 1104 ac_useropt_orig=$ac_useropt 1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1106 case $ac_user_opts in 1107 *" 1108"with_$ac_useropt" 1109"*) ;; 1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1111 ac_unrecognized_sep=', ';; 1112 esac 1113 eval with_$ac_useropt=\$ac_optarg ;; 1114 1115 -without-* | --without-*) 1116 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1117 # Reject names that are not valid shell variable names. 1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1119 as_fn_error $? "invalid package name: $ac_useropt" 1120 ac_useropt_orig=$ac_useropt 1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1122 case $ac_user_opts in 1123 *" 1124"with_$ac_useropt" 1125"*) ;; 1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1127 ac_unrecognized_sep=', ';; 1128 esac 1129 eval with_$ac_useropt=no ;; 1130 1131 --x) 1132 # Obsolete; use --with-x. 1133 with_x=yes ;; 1134 1135 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1136 | --x-incl | --x-inc | --x-in | --x-i) 1137 ac_prev=x_includes ;; 1138 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1139 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1140 x_includes=$ac_optarg ;; 1141 1142 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1143 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1144 ac_prev=x_libraries ;; 1145 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1146 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1147 x_libraries=$ac_optarg ;; 1148 1149 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1150Try \`$0 --help' for more information" 1151 ;; 1152 1153 *=*) 1154 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1155 # Reject names that are not valid shell variable names. 1156 case $ac_envvar in #( 1157 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1158 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1159 esac 1160 eval $ac_envvar=\$ac_optarg 1161 export $ac_envvar ;; 1162 1163 *) 1164 # FIXME: should be removed in autoconf 3.0. 1165 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1166 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1167 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1168 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1169 ;; 1170 1171 esac 1172done 1173 1174if test -n "$ac_prev"; then 1175 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1176 as_fn_error $? "missing argument to $ac_option" 1177fi 1178 1179if test -n "$ac_unrecognized_opts"; then 1180 case $enable_option_checking in 1181 no) ;; 1182 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1183 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1184 esac 1185fi 1186 1187# Check all directory arguments for consistency. 1188for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1189 datadir sysconfdir sharedstatedir localstatedir includedir \ 1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1191 libdir localedir mandir runstatedir 1192do 1193 eval ac_val=\$$ac_var 1194 # Remove trailing slashes. 1195 case $ac_val in 1196 */ ) 1197 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1198 eval $ac_var=\$ac_val;; 1199 esac 1200 # Be sure to have absolute directory names. 1201 case $ac_val in 1202 [\\/$]* | ?:[\\/]* ) continue;; 1203 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1204 esac 1205 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1206done 1207 1208# There might be people who depend on the old broken behavior: `$host' 1209# used to hold the argument of --host etc. 1210# FIXME: To remove some day. 1211build=$build_alias 1212host=$host_alias 1213target=$target_alias 1214 1215# FIXME: To remove some day. 1216if test "x$host_alias" != x; then 1217 if test "x$build_alias" = x; then 1218 cross_compiling=maybe 1219 elif test "x$build_alias" != "x$host_alias"; then 1220 cross_compiling=yes 1221 fi 1222fi 1223 1224ac_tool_prefix= 1225test -n "$host_alias" && ac_tool_prefix=$host_alias- 1226 1227test "$silent" = yes && exec 6>/dev/null 1228 1229 1230ac_pwd=`pwd` && test -n "$ac_pwd" && 1231ac_ls_di=`ls -di .` && 1232ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1233 as_fn_error $? "working directory cannot be determined" 1234test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1235 as_fn_error $? "pwd does not report name of working directory" 1236 1237 1238# Find the source files, if location was not specified. 1239if test -z "$srcdir"; then 1240 ac_srcdir_defaulted=yes 1241 # Try the directory containing this script, then the parent directory. 1242 ac_confdir=`$as_dirname -- "$as_myself" || 1243$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1244 X"$as_myself" : 'X\(//\)[^/]' \| \ 1245 X"$as_myself" : 'X\(//\)$' \| \ 1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1247$as_echo X"$as_myself" | 1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1249 s//\1/ 1250 q 1251 } 1252 /^X\(\/\/\)[^/].*/{ 1253 s//\1/ 1254 q 1255 } 1256 /^X\(\/\/\)$/{ 1257 s//\1/ 1258 q 1259 } 1260 /^X\(\/\).*/{ 1261 s//\1/ 1262 q 1263 } 1264 s/.*/./; q'` 1265 srcdir=$ac_confdir 1266 if test ! -r "$srcdir/$ac_unique_file"; then 1267 srcdir=.. 1268 fi 1269else 1270 ac_srcdir_defaulted=no 1271fi 1272if test ! -r "$srcdir/$ac_unique_file"; then 1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1274 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1275fi 1276ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1277ac_abs_confdir=`( 1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1279 pwd)` 1280# When building in place, set srcdir=. 1281if test "$ac_abs_confdir" = "$ac_pwd"; then 1282 srcdir=. 1283fi 1284# Remove unnecessary trailing slashes from srcdir. 1285# Double slashes in file names in object file debugging info 1286# mess up M-x gdb in Emacs. 1287case $srcdir in 1288*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1289esac 1290for ac_var in $ac_precious_vars; do 1291 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1292 eval ac_env_${ac_var}_value=\$${ac_var} 1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1294 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1295done 1296 1297# 1298# Report the --help message. 1299# 1300if test "$ac_init_help" = "long"; then 1301 # Omit some internal or obsolete options to make the list less imposing. 1302 # This message is too long to be a string in the A/UX 3.1 sh. 1303 cat <<_ACEOF 1304\`configure' configures this package to adapt to many kinds of systems. 1305 1306Usage: $0 [OPTION]... [VAR=VALUE]... 1307 1308To assign environment variables (e.g., CC, CFLAGS...), specify them as 1309VAR=VALUE. See below for descriptions of some of the useful variables. 1310 1311Defaults for the options are specified in brackets. 1312 1313Configuration: 1314 -h, --help display this help and exit 1315 --help=short display options specific to this package 1316 --help=recursive display the short help of all the included packages 1317 -V, --version display version information and exit 1318 -q, --quiet, --silent do not print \`checking ...' messages 1319 --cache-file=FILE cache test results in FILE [disabled] 1320 -C, --config-cache alias for \`--cache-file=config.cache' 1321 -n, --no-create do not create output files 1322 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1323 1324Installation directories: 1325 --prefix=PREFIX install architecture-independent files in PREFIX 1326 [$ac_default_prefix] 1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1328 [PREFIX] 1329 1330By default, \`make install' will install all the files in 1331\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1332an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1333for instance \`--prefix=\$HOME'. 1334 1335For better control, use the options below. 1336 1337Fine tuning of the installation directories: 1338 --bindir=DIR user executables [EPREFIX/bin] 1339 --sbindir=DIR system admin executables [EPREFIX/sbin] 1340 --libexecdir=DIR program executables [EPREFIX/libexec] 1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1344 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1345 --libdir=DIR object code libraries [EPREFIX/lib] 1346 --includedir=DIR C header files [PREFIX/include] 1347 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1348 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1349 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1350 --infodir=DIR info documentation [DATAROOTDIR/info] 1351 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1352 --mandir=DIR man documentation [DATAROOTDIR/man] 1353 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1354 --htmldir=DIR html documentation [DOCDIR] 1355 --dvidir=DIR dvi documentation [DOCDIR] 1356 --pdfdir=DIR pdf documentation [DOCDIR] 1357 --psdir=DIR ps documentation [DOCDIR] 1358_ACEOF 1359 1360 cat <<\_ACEOF 1361 1362System types: 1363 --build=BUILD configure for building on BUILD [guessed] 1364 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1365 --target=TARGET configure for building compilers for TARGET [HOST] 1366_ACEOF 1367fi 1368 1369if test -n "$ac_init_help"; then 1370 1371 cat <<\_ACEOF 1372 1373Optional Features: 1374 --disable-option-checking ignore unrecognized --enable/--with options 1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1377 --enable-shared[=PKGS] build shared libraries [default=yes] 1378 --enable-static[=PKGS] build static libraries [default=yes] 1379 --enable-fast-install[=PKGS] 1380 optimize for fast installation [default=yes] 1381 --disable-libtool-lock avoid locking (might break parallel builds) 1382 1383Optional Packages: 1384 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1385 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1386 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1387 both] 1388 --with-aix-soname=aix|svr4|both 1389 shared library versioning (aka "SONAME") variant to 1390 provide on AIX, [default=aix]. 1391 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1392 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1393 compiler's sysroot if not specified). 1394 1395Some influential environment variables: 1396 CC C compiler command 1397 CFLAGS C compiler flags 1398 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1399 nonstandard directory <lib dir> 1400 LIBS libraries to pass to the linker, e.g. -l<library> 1401 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1402 you have headers in a nonstandard directory <include dir> 1403 LT_SYS_LIBRARY_PATH 1404 User-defined run-time library search path. 1405 CPP C preprocessor 1406 1407Use these variables to override the choices made by `configure' or to help 1408it to find libraries and programs with nonstandard names/locations. 1409 1410Report bugs to the package provider. 1411_ACEOF 1412ac_status=$? 1413fi 1414 1415if test "$ac_init_help" = "recursive"; then 1416 # If there are subdirs, report their specific --help. 1417 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1418 test -d "$ac_dir" || 1419 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1420 continue 1421 ac_builddir=. 1422 1423case "$ac_dir" in 1424.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1425*) 1426 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1427 # A ".." for each directory in $ac_dir_suffix. 1428 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1429 case $ac_top_builddir_sub in 1430 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1431 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1432 esac ;; 1433esac 1434ac_abs_top_builddir=$ac_pwd 1435ac_abs_builddir=$ac_pwd$ac_dir_suffix 1436# for backward compatibility: 1437ac_top_builddir=$ac_top_build_prefix 1438 1439case $srcdir in 1440 .) # We are building in place. 1441 ac_srcdir=. 1442 ac_top_srcdir=$ac_top_builddir_sub 1443 ac_abs_top_srcdir=$ac_pwd ;; 1444 [\\/]* | ?:[\\/]* ) # Absolute name. 1445 ac_srcdir=$srcdir$ac_dir_suffix; 1446 ac_top_srcdir=$srcdir 1447 ac_abs_top_srcdir=$srcdir ;; 1448 *) # Relative name. 1449 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1450 ac_top_srcdir=$ac_top_build_prefix$srcdir 1451 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1452esac 1453ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1454 1455 cd "$ac_dir" || { ac_status=$?; continue; } 1456 # Check for guested configure. 1457 if test -f "$ac_srcdir/configure.gnu"; then 1458 echo && 1459 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1460 elif test -f "$ac_srcdir/configure"; then 1461 echo && 1462 $SHELL "$ac_srcdir/configure" --help=recursive 1463 else 1464 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1465 fi || ac_status=$? 1466 cd "$ac_pwd" || { ac_status=$?; break; } 1467 done 1468fi 1469 1470test -n "$ac_init_help" && exit $ac_status 1471if $ac_init_version; then 1472 cat <<\_ACEOF 1473configure 1474generated by GNU Autoconf 2.69 1475 1476Copyright (C) 2012 Free Software Foundation, Inc. 1477This configure script is free software; the Free Software Foundation 1478gives unlimited permission to copy, distribute and modify it. 1479_ACEOF 1480 exit 1481fi 1482 1483## ------------------------ ## 1484## Autoconf initialization. ## 1485## ------------------------ ## 1486 1487# ac_fn_c_try_compile LINENO 1488# -------------------------- 1489# Try to compile conftest.$ac_ext, and return whether this succeeded. 1490ac_fn_c_try_compile () 1491{ 1492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1493 rm -f conftest.$ac_objext 1494 if { { ac_try="$ac_compile" 1495case "(($ac_try" in 1496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1497 *) ac_try_echo=$ac_try;; 1498esac 1499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1500$as_echo "$ac_try_echo"; } >&5 1501 (eval "$ac_compile") 2>conftest.err 1502 ac_status=$? 1503 if test -s conftest.err; then 1504 grep -v '^ *+' conftest.err >conftest.er1 1505 cat conftest.er1 >&5 1506 mv -f conftest.er1 conftest.err 1507 fi 1508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1509 test $ac_status = 0; } && { 1510 test -z "$ac_c_werror_flag" || 1511 test ! -s conftest.err 1512 } && test -s conftest.$ac_objext; then : 1513 ac_retval=0 1514else 1515 $as_echo "$as_me: failed program was:" >&5 1516sed 's/^/| /' conftest.$ac_ext >&5 1517 1518 ac_retval=1 1519fi 1520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1521 as_fn_set_status $ac_retval 1522 1523} # ac_fn_c_try_compile 1524 1525# ac_fn_c_try_link LINENO 1526# ----------------------- 1527# Try to link conftest.$ac_ext, and return whether this succeeded. 1528ac_fn_c_try_link () 1529{ 1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1531 rm -f conftest.$ac_objext conftest$ac_exeext 1532 if { { ac_try="$ac_link" 1533case "(($ac_try" in 1534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1535 *) ac_try_echo=$ac_try;; 1536esac 1537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1538$as_echo "$ac_try_echo"; } >&5 1539 (eval "$ac_link") 2>conftest.err 1540 ac_status=$? 1541 if test -s conftest.err; then 1542 grep -v '^ *+' conftest.err >conftest.er1 1543 cat conftest.er1 >&5 1544 mv -f conftest.er1 conftest.err 1545 fi 1546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1547 test $ac_status = 0; } && { 1548 test -z "$ac_c_werror_flag" || 1549 test ! -s conftest.err 1550 } && test -s conftest$ac_exeext && { 1551 test "$cross_compiling" = yes || 1552 test -x conftest$ac_exeext 1553 }; then : 1554 ac_retval=0 1555else 1556 $as_echo "$as_me: failed program was:" >&5 1557sed 's/^/| /' conftest.$ac_ext >&5 1558 1559 ac_retval=1 1560fi 1561 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1562 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1563 # interfere with the next link command; also delete a directory that is 1564 # left behind by Apple's compiler. We do this before executing the actions. 1565 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1567 as_fn_set_status $ac_retval 1568 1569} # ac_fn_c_try_link 1570 1571# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1572# ------------------------------------------------------- 1573# Tests whether HEADER exists and can be compiled using the include files in 1574# INCLUDES, setting the cache variable VAR accordingly. 1575ac_fn_c_check_header_compile () 1576{ 1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1579$as_echo_n "checking for $2... " >&6; } 1580if eval \${$3+:} false; then : 1581 $as_echo_n "(cached) " >&6 1582else 1583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1584/* end confdefs.h. */ 1585$4 1586#include <$2> 1587_ACEOF 1588if ac_fn_c_try_compile "$LINENO"; then : 1589 eval "$3=yes" 1590else 1591 eval "$3=no" 1592fi 1593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1594fi 1595eval ac_res=\$$3 1596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1597$as_echo "$ac_res" >&6; } 1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1599 1600} # ac_fn_c_check_header_compile 1601 1602# ac_fn_c_try_cpp LINENO 1603# ---------------------- 1604# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1605ac_fn_c_try_cpp () 1606{ 1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1608 if { { ac_try="$ac_cpp conftest.$ac_ext" 1609case "(($ac_try" in 1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1611 *) ac_try_echo=$ac_try;; 1612esac 1613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1614$as_echo "$ac_try_echo"; } >&5 1615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1616 ac_status=$? 1617 if test -s conftest.err; then 1618 grep -v '^ *+' conftest.err >conftest.er1 1619 cat conftest.er1 >&5 1620 mv -f conftest.er1 conftest.err 1621 fi 1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1623 test $ac_status = 0; } > conftest.i && { 1624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1625 test ! -s conftest.err 1626 }; then : 1627 ac_retval=0 1628else 1629 $as_echo "$as_me: failed program was:" >&5 1630sed 's/^/| /' conftest.$ac_ext >&5 1631 1632 ac_retval=1 1633fi 1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1635 as_fn_set_status $ac_retval 1636 1637} # ac_fn_c_try_cpp 1638 1639# ac_fn_c_try_run LINENO 1640# ---------------------- 1641# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1642# that executables *can* be run. 1643ac_fn_c_try_run () 1644{ 1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1646 if { { ac_try="$ac_link" 1647case "(($ac_try" in 1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1649 *) ac_try_echo=$ac_try;; 1650esac 1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1652$as_echo "$ac_try_echo"; } >&5 1653 (eval "$ac_link") 2>&5 1654 ac_status=$? 1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1656 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1657 { { case "(($ac_try" in 1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1659 *) ac_try_echo=$ac_try;; 1660esac 1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1662$as_echo "$ac_try_echo"; } >&5 1663 (eval "$ac_try") 2>&5 1664 ac_status=$? 1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1666 test $ac_status = 0; }; }; then : 1667 ac_retval=0 1668else 1669 $as_echo "$as_me: program exited with status $ac_status" >&5 1670 $as_echo "$as_me: failed program was:" >&5 1671sed 's/^/| /' conftest.$ac_ext >&5 1672 1673 ac_retval=$ac_status 1674fi 1675 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1677 as_fn_set_status $ac_retval 1678 1679} # ac_fn_c_try_run 1680 1681# ac_fn_c_check_func LINENO FUNC VAR 1682# ---------------------------------- 1683# Tests whether FUNC exists, setting the cache variable VAR accordingly 1684ac_fn_c_check_func () 1685{ 1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1688$as_echo_n "checking for $2... " >&6; } 1689if eval \${$3+:} false; then : 1690 $as_echo_n "(cached) " >&6 1691else 1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1693/* end confdefs.h. */ 1694/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1695 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1696#define $2 innocuous_$2 1697 1698/* System header to define __stub macros and hopefully few prototypes, 1699 which can conflict with char $2 (); below. 1700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1701 <limits.h> exists even on freestanding compilers. */ 1702 1703#ifdef __STDC__ 1704# include <limits.h> 1705#else 1706# include <assert.h> 1707#endif 1708 1709#undef $2 1710 1711/* Override any GCC internal prototype to avoid an error. 1712 Use char because int might match the return type of a GCC 1713 builtin and then its argument prototype would still apply. */ 1714#ifdef __cplusplus 1715extern "C" 1716#endif 1717char $2 (); 1718/* The GNU C library defines this for functions which it implements 1719 to always fail with ENOSYS. Some functions are actually named 1720 something starting with __ and the normal name is an alias. */ 1721#if defined __stub_$2 || defined __stub___$2 1722choke me 1723#endif 1724 1725int 1726main () 1727{ 1728return $2 (); 1729 ; 1730 return 0; 1731} 1732_ACEOF 1733if ac_fn_c_try_link "$LINENO"; then : 1734 eval "$3=yes" 1735else 1736 eval "$3=no" 1737fi 1738rm -f core conftest.err conftest.$ac_objext \ 1739 conftest$ac_exeext conftest.$ac_ext 1740fi 1741eval ac_res=\$$3 1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1743$as_echo "$ac_res" >&6; } 1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1745 1746} # ac_fn_c_check_func 1747 1748# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1749# ------------------------------------------------------- 1750# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1751# the include files in INCLUDES and setting the cache variable VAR 1752# accordingly. 1753ac_fn_c_check_header_mongrel () 1754{ 1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1756 if eval \${$3+:} false; then : 1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1758$as_echo_n "checking for $2... " >&6; } 1759if eval \${$3+:} false; then : 1760 $as_echo_n "(cached) " >&6 1761fi 1762eval ac_res=\$$3 1763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1764$as_echo "$ac_res" >&6; } 1765else 1766 # Is the header compilable? 1767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1768$as_echo_n "checking $2 usability... " >&6; } 1769cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1770/* end confdefs.h. */ 1771$4 1772#include <$2> 1773_ACEOF 1774if ac_fn_c_try_compile "$LINENO"; then : 1775 ac_header_compiler=yes 1776else 1777 ac_header_compiler=no 1778fi 1779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1781$as_echo "$ac_header_compiler" >&6; } 1782 1783# Is the header present? 1784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1785$as_echo_n "checking $2 presence... " >&6; } 1786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1787/* end confdefs.h. */ 1788#include <$2> 1789_ACEOF 1790if ac_fn_c_try_cpp "$LINENO"; then : 1791 ac_header_preproc=yes 1792else 1793 ac_header_preproc=no 1794fi 1795rm -f conftest.err conftest.i conftest.$ac_ext 1796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1797$as_echo "$ac_header_preproc" >&6; } 1798 1799# So? What about this header? 1800case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1801 yes:no: ) 1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1803$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1805$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1806 ;; 1807 no:yes:* ) 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1809$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1811$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1813$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1815$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1817$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1818 ;; 1819esac 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1821$as_echo_n "checking for $2... " >&6; } 1822if eval \${$3+:} false; then : 1823 $as_echo_n "(cached) " >&6 1824else 1825 eval "$3=\$ac_header_compiler" 1826fi 1827eval ac_res=\$$3 1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1829$as_echo "$ac_res" >&6; } 1830fi 1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1832 1833} # ac_fn_c_check_header_mongrel 1834 1835# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1836# ------------------------------------------- 1837# Tests whether TYPE exists after having included INCLUDES, setting cache 1838# variable VAR accordingly. 1839ac_fn_c_check_type () 1840{ 1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1843$as_echo_n "checking for $2... " >&6; } 1844if eval \${$3+:} false; then : 1845 $as_echo_n "(cached) " >&6 1846else 1847 eval "$3=no" 1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1849/* end confdefs.h. */ 1850$4 1851int 1852main () 1853{ 1854if (sizeof ($2)) 1855 return 0; 1856 ; 1857 return 0; 1858} 1859_ACEOF 1860if ac_fn_c_try_compile "$LINENO"; then : 1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1862/* end confdefs.h. */ 1863$4 1864int 1865main () 1866{ 1867if (sizeof (($2))) 1868 return 0; 1869 ; 1870 return 0; 1871} 1872_ACEOF 1873if ac_fn_c_try_compile "$LINENO"; then : 1874 1875else 1876 eval "$3=yes" 1877fi 1878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1879fi 1880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1881fi 1882eval ac_res=\$$3 1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1884$as_echo "$ac_res" >&6; } 1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1886 1887} # ac_fn_c_check_type 1888cat >config.log <<_ACEOF 1889This file contains any messages produced by compilers while 1890running configure, to aid debugging if configure makes a mistake. 1891 1892It was created by $as_me, which was 1893generated by GNU Autoconf 2.69. Invocation command line was 1894 1895 $ $0 $@ 1896 1897_ACEOF 1898exec 5>>config.log 1899{ 1900cat <<_ASUNAME 1901## --------- ## 1902## Platform. ## 1903## --------- ## 1904 1905hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1906uname -m = `(uname -m) 2>/dev/null || echo unknown` 1907uname -r = `(uname -r) 2>/dev/null || echo unknown` 1908uname -s = `(uname -s) 2>/dev/null || echo unknown` 1909uname -v = `(uname -v) 2>/dev/null || echo unknown` 1910 1911/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1912/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1913 1914/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1915/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1916/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1917/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1918/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1919/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1920/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1921 1922_ASUNAME 1923 1924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1925for as_dir in $PATH 1926do 1927 IFS=$as_save_IFS 1928 test -z "$as_dir" && as_dir=. 1929 $as_echo "PATH: $as_dir" 1930 done 1931IFS=$as_save_IFS 1932 1933} >&5 1934 1935cat >&5 <<_ACEOF 1936 1937 1938## ----------- ## 1939## Core tests. ## 1940## ----------- ## 1941 1942_ACEOF 1943 1944 1945# Keep a trace of the command line. 1946# Strip out --no-create and --no-recursion so they do not pile up. 1947# Strip out --silent because we don't want to record it for future runs. 1948# Also quote any args containing shell meta-characters. 1949# Make two passes to allow for proper duplicate-argument suppression. 1950ac_configure_args= 1951ac_configure_args0= 1952ac_configure_args1= 1953ac_must_keep_next=false 1954for ac_pass in 1 2 1955do 1956 for ac_arg 1957 do 1958 case $ac_arg in 1959 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1961 | -silent | --silent | --silen | --sile | --sil) 1962 continue ;; 1963 *\'*) 1964 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1965 esac 1966 case $ac_pass in 1967 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1968 2) 1969 as_fn_append ac_configure_args1 " '$ac_arg'" 1970 if test $ac_must_keep_next = true; then 1971 ac_must_keep_next=false # Got value, back to normal. 1972 else 1973 case $ac_arg in 1974 *=* | --config-cache | -C | -disable-* | --disable-* \ 1975 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1976 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1977 | -with-* | --with-* | -without-* | --without-* | --x) 1978 case "$ac_configure_args0 " in 1979 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1980 esac 1981 ;; 1982 -* ) ac_must_keep_next=true ;; 1983 esac 1984 fi 1985 as_fn_append ac_configure_args " '$ac_arg'" 1986 ;; 1987 esac 1988 done 1989done 1990{ ac_configure_args0=; unset ac_configure_args0;} 1991{ ac_configure_args1=; unset ac_configure_args1;} 1992 1993# When interrupted or exit'd, cleanup temporary files, and complete 1994# config.log. We remove comments because anyway the quotes in there 1995# would cause problems or look ugly. 1996# WARNING: Use '\'' to represent an apostrophe within the trap. 1997# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1998trap 'exit_status=$? 1999 # Save into config.log some information that might help in debugging. 2000 { 2001 echo 2002 2003 $as_echo "## ---------------- ## 2004## Cache variables. ## 2005## ---------------- ##" 2006 echo 2007 # The following way of writing the cache mishandles newlines in values, 2008( 2009 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2010 eval ac_val=\$$ac_var 2011 case $ac_val in #( 2012 *${as_nl}*) 2013 case $ac_var in #( 2014 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2015$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2016 esac 2017 case $ac_var in #( 2018 _ | IFS | as_nl) ;; #( 2019 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2020 *) { eval $ac_var=; unset $ac_var;} ;; 2021 esac ;; 2022 esac 2023 done 2024 (set) 2>&1 | 2025 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2026 *${as_nl}ac_space=\ *) 2027 sed -n \ 2028 "s/'\''/'\''\\\\'\'''\''/g; 2029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2030 ;; #( 2031 *) 2032 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2033 ;; 2034 esac | 2035 sort 2036) 2037 echo 2038 2039 $as_echo "## ----------------- ## 2040## Output variables. ## 2041## ----------------- ##" 2042 echo 2043 for ac_var in $ac_subst_vars 2044 do 2045 eval ac_val=\$$ac_var 2046 case $ac_val in 2047 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2048 esac 2049 $as_echo "$ac_var='\''$ac_val'\''" 2050 done | sort 2051 echo 2052 2053 if test -n "$ac_subst_files"; then 2054 $as_echo "## ------------------- ## 2055## File substitutions. ## 2056## ------------------- ##" 2057 echo 2058 for ac_var in $ac_subst_files 2059 do 2060 eval ac_val=\$$ac_var 2061 case $ac_val in 2062 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2063 esac 2064 $as_echo "$ac_var='\''$ac_val'\''" 2065 done | sort 2066 echo 2067 fi 2068 2069 if test -s confdefs.h; then 2070 $as_echo "## ----------- ## 2071## confdefs.h. ## 2072## ----------- ##" 2073 echo 2074 cat confdefs.h 2075 echo 2076 fi 2077 test "$ac_signal" != 0 && 2078 $as_echo "$as_me: caught signal $ac_signal" 2079 $as_echo "$as_me: exit $exit_status" 2080 } >&5 2081 rm -f core *.core core.conftest.* && 2082 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2083 exit $exit_status 2084' 0 2085for ac_signal in 1 2 13 15; do 2086 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2087done 2088ac_signal=0 2089 2090# confdefs.h avoids OS command line length limits that DEFS can exceed. 2091rm -f -r conftest* confdefs.h 2092 2093$as_echo "/* confdefs.h */" > confdefs.h 2094 2095# Predefined preprocessor variables. 2096 2097cat >>confdefs.h <<_ACEOF 2098#define PACKAGE_NAME "$PACKAGE_NAME" 2099_ACEOF 2100 2101cat >>confdefs.h <<_ACEOF 2102#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2103_ACEOF 2104 2105cat >>confdefs.h <<_ACEOF 2106#define PACKAGE_VERSION "$PACKAGE_VERSION" 2107_ACEOF 2108 2109cat >>confdefs.h <<_ACEOF 2110#define PACKAGE_STRING "$PACKAGE_STRING" 2111_ACEOF 2112 2113cat >>confdefs.h <<_ACEOF 2114#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2115_ACEOF 2116 2117cat >>confdefs.h <<_ACEOF 2118#define PACKAGE_URL "$PACKAGE_URL" 2119_ACEOF 2120 2121 2122# Let the site file select an alternate cache file if it wants to. 2123# Prefer an explicitly selected file to automatically selected ones. 2124ac_site_file1=NONE 2125ac_site_file2=NONE 2126if test -n "$CONFIG_SITE"; then 2127 # We do not want a PATH search for config.site. 2128 case $CONFIG_SITE in #(( 2129 -*) ac_site_file1=./$CONFIG_SITE;; 2130 */*) ac_site_file1=$CONFIG_SITE;; 2131 *) ac_site_file1=./$CONFIG_SITE;; 2132 esac 2133elif test "x$prefix" != xNONE; then 2134 ac_site_file1=$prefix/share/config.site 2135 ac_site_file2=$prefix/etc/config.site 2136else 2137 ac_site_file1=$ac_default_prefix/share/config.site 2138 ac_site_file2=$ac_default_prefix/etc/config.site 2139fi 2140for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2141do 2142 test "x$ac_site_file" = xNONE && continue 2143 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2145$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2146 sed 's/^/| /' "$ac_site_file" >&5 2147 . "$ac_site_file" \ 2148 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2149$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2150as_fn_error $? "failed to load site script $ac_site_file 2151See \`config.log' for more details" "$LINENO" 5; } 2152 fi 2153done 2154 2155if test -r "$cache_file"; then 2156 # Some versions of bash will fail to source /dev/null (special files 2157 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2158 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2160$as_echo "$as_me: loading cache $cache_file" >&6;} 2161 case $cache_file in 2162 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2163 *) . "./$cache_file";; 2164 esac 2165 fi 2166else 2167 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2168$as_echo "$as_me: creating cache $cache_file" >&6;} 2169 >$cache_file 2170fi 2171 2172as_fn_append ac_header_list " stdlib.h" 2173as_fn_append ac_header_list " unistd.h" 2174as_fn_append ac_header_list " sys/param.h" 2175# Check that the precious variables saved in the cache have kept the same 2176# value. 2177ac_cache_corrupted=false 2178for ac_var in $ac_precious_vars; do 2179 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2180 eval ac_new_set=\$ac_env_${ac_var}_set 2181 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2182 eval ac_new_val=\$ac_env_${ac_var}_value 2183 case $ac_old_set,$ac_new_set in 2184 set,) 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2186$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2187 ac_cache_corrupted=: ;; 2188 ,set) 2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2190$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2191 ac_cache_corrupted=: ;; 2192 ,);; 2193 *) 2194 if test "x$ac_old_val" != "x$ac_new_val"; then 2195 # differences in whitespace do not lead to failure. 2196 ac_old_val_w=`echo x $ac_old_val` 2197 ac_new_val_w=`echo x $ac_new_val` 2198 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2200$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2201 ac_cache_corrupted=: 2202 else 2203 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2204$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2205 eval $ac_var=\$ac_old_val 2206 fi 2207 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2208$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2209 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2210$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2211 fi;; 2212 esac 2213 # Pass precious variables to config.status. 2214 if test "$ac_new_set" = set; then 2215 case $ac_new_val in 2216 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2217 *) ac_arg=$ac_var=$ac_new_val ;; 2218 esac 2219 case " $ac_configure_args " in 2220 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2221 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2222 esac 2223 fi 2224done 2225if $ac_cache_corrupted; then 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2229$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2230 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2231fi 2232## -------------------- ## 2233## Main body of script. ## 2234## -------------------- ## 2235 2236ac_ext=c 2237ac_cpp='$CPP $CPPFLAGS' 2238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2240ac_compiler_gnu=$ac_cv_c_compiler_gnu 2241 2242 2243ac_aux_dir= 2244for ac_dir in conftools "$srcdir"/conftools; do 2245 if test -f "$ac_dir/install-sh"; then 2246 ac_aux_dir=$ac_dir 2247 ac_install_sh="$ac_aux_dir/install-sh -c" 2248 break 2249 elif test -f "$ac_dir/install.sh"; then 2250 ac_aux_dir=$ac_dir 2251 ac_install_sh="$ac_aux_dir/install.sh -c" 2252 break 2253 elif test -f "$ac_dir/shtool"; then 2254 ac_aux_dir=$ac_dir 2255 ac_install_sh="$ac_aux_dir/shtool install -c" 2256 break 2257 fi 2258done 2259if test -z "$ac_aux_dir"; then 2260 as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5 2261fi 2262 2263# These three variables are undocumented and unsupported, 2264# and are intended to be withdrawn in a future Autoconf release. 2265# They can cause serious problems if a builder's source tree is in a directory 2266# whose full name contains unusual characters. 2267ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2268ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2269ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2270 2271 2272 2273 2274 2275EXPAT_MAJOR_VERSION=1 2276EXPAT_MINOR_VERSION=95 2277EXPAT_EDIT=2 2278 2279EXPAT_VERSION=$EXPAT_MAJOR_VERSION.$EXPAT_MINOR_VERSION.$EXPAT_EDIT 2280VERSION=$EXPAT_VERSION 2281PACKAGE=expat 2282 2283 2284LIBCURRENT=1 2285LIBREVISION=0 2286LIBAGE=1 2287 2288ac_config_headers="$ac_config_headers config.h" 2289 2290 2291# Make sure we can run config.sub. 2292$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2293 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2294 2295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2296$as_echo_n "checking build system type... " >&6; } 2297if ${ac_cv_build+:} false; then : 2298 $as_echo_n "(cached) " >&6 2299else 2300 ac_build_alias=$build_alias 2301test "x$ac_build_alias" = x && 2302 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2303test "x$ac_build_alias" = x && 2304 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2305ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2306 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2307 2308fi 2309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2310$as_echo "$ac_cv_build" >&6; } 2311case $ac_cv_build in 2312*-*-*) ;; 2313*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2314esac 2315build=$ac_cv_build 2316ac_save_IFS=$IFS; IFS='-' 2317set x $ac_cv_build 2318shift 2319build_cpu=$1 2320build_vendor=$2 2321shift; shift 2322# Remember, the first character of IFS is used to create $*, 2323# except with old shells: 2324build_os=$* 2325IFS=$ac_save_IFS 2326case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2327 2328 2329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2330$as_echo_n "checking host system type... " >&6; } 2331if ${ac_cv_host+:} false; then : 2332 $as_echo_n "(cached) " >&6 2333else 2334 if test "x$host_alias" = x; then 2335 ac_cv_host=$ac_cv_build 2336else 2337 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2338 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2339fi 2340 2341fi 2342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2343$as_echo "$ac_cv_host" >&6; } 2344case $ac_cv_host in 2345*-*-*) ;; 2346*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2347esac 2348host=$ac_cv_host 2349ac_save_IFS=$IFS; IFS='-' 2350set x $ac_cv_host 2351shift 2352host_cpu=$1 2353host_vendor=$2 2354shift; shift 2355# Remember, the first character of IFS is used to create $*, 2356# except with old shells: 2357host_os=$* 2358IFS=$ac_save_IFS 2359case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2360 2361 2362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2363$as_echo_n "checking target system type... " >&6; } 2364if ${ac_cv_target+:} false; then : 2365 $as_echo_n "(cached) " >&6 2366else 2367 if test "x$target_alias" = x; then 2368 ac_cv_target=$ac_cv_host 2369else 2370 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2371 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2372fi 2373 2374fi 2375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2376$as_echo "$ac_cv_target" >&6; } 2377case $ac_cv_target in 2378*-*-*) ;; 2379*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2380esac 2381target=$ac_cv_target 2382ac_save_IFS=$IFS; IFS='-' 2383set x $ac_cv_target 2384shift 2385target_cpu=$1 2386target_vendor=$2 2387shift; shift 2388# Remember, the first character of IFS is used to create $*, 2389# except with old shells: 2390target_os=$* 2391IFS=$ac_save_IFS 2392case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2393 2394 2395# The aliases save the names the user supplied, while $host etc. 2396# will get canonicalized. 2397test -n "$target_alias" && 2398 test "$program_prefix$program_suffix$program_transform_name" = \ 2399 NONENONEs,x,x, && 2400 program_prefix=${target_alias}- 2401 2402case "$host_os" in 2403*os2*) 2404 # Use a custom made libtool replacement 2405 echo Using aplibtool 2406 LIBTOOL="$srcdir/../../../apr/build/aplibtool" 2407 ;; 2408*) 2409 enable_win32_dll=yes 2410 2411case $host in 2412*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 2413 if test -n "$ac_tool_prefix"; then 2414 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 2415set dummy ${ac_tool_prefix}as; ac_word=$2 2416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2417$as_echo_n "checking for $ac_word... " >&6; } 2418if ${ac_cv_prog_AS+:} false; then : 2419 $as_echo_n "(cached) " >&6 2420else 2421 if test -n "$AS"; then 2422 ac_cv_prog_AS="$AS" # Let the user override the test. 2423else 2424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2425for as_dir in $PATH 2426do 2427 IFS=$as_save_IFS 2428 test -z "$as_dir" && as_dir=. 2429 for ac_exec_ext in '' $ac_executable_extensions; do 2430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2431 ac_cv_prog_AS="${ac_tool_prefix}as" 2432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2433 break 2 2434 fi 2435done 2436 done 2437IFS=$as_save_IFS 2438 2439fi 2440fi 2441AS=$ac_cv_prog_AS 2442if test -n "$AS"; then 2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 2444$as_echo "$AS" >&6; } 2445else 2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2447$as_echo "no" >&6; } 2448fi 2449 2450 2451fi 2452if test -z "$ac_cv_prog_AS"; then 2453 ac_ct_AS=$AS 2454 # Extract the first word of "as", so it can be a program name with args. 2455set dummy as; ac_word=$2 2456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2457$as_echo_n "checking for $ac_word... " >&6; } 2458if ${ac_cv_prog_ac_ct_AS+:} false; then : 2459 $as_echo_n "(cached) " >&6 2460else 2461 if test -n "$ac_ct_AS"; then 2462 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 2463else 2464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2465for as_dir in $PATH 2466do 2467 IFS=$as_save_IFS 2468 test -z "$as_dir" && as_dir=. 2469 for ac_exec_ext in '' $ac_executable_extensions; do 2470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2471 ac_cv_prog_ac_ct_AS="as" 2472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2473 break 2 2474 fi 2475done 2476 done 2477IFS=$as_save_IFS 2478 2479fi 2480fi 2481ac_ct_AS=$ac_cv_prog_ac_ct_AS 2482if test -n "$ac_ct_AS"; then 2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 2484$as_echo "$ac_ct_AS" >&6; } 2485else 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2487$as_echo "no" >&6; } 2488fi 2489 2490 if test "x$ac_ct_AS" = x; then 2491 AS="false" 2492 else 2493 case $cross_compiling:$ac_tool_warned in 2494yes:) 2495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2497ac_tool_warned=yes ;; 2498esac 2499 AS=$ac_ct_AS 2500 fi 2501else 2502 AS="$ac_cv_prog_AS" 2503fi 2504 2505 if test -n "$ac_tool_prefix"; then 2506 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 2507set dummy ${ac_tool_prefix}dlltool; ac_word=$2 2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2509$as_echo_n "checking for $ac_word... " >&6; } 2510if ${ac_cv_prog_DLLTOOL+:} false; then : 2511 $as_echo_n "(cached) " >&6 2512else 2513 if test -n "$DLLTOOL"; then 2514 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 2515else 2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2517for as_dir in $PATH 2518do 2519 IFS=$as_save_IFS 2520 test -z "$as_dir" && as_dir=. 2521 for ac_exec_ext in '' $ac_executable_extensions; do 2522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2523 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 2524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2525 break 2 2526 fi 2527done 2528 done 2529IFS=$as_save_IFS 2530 2531fi 2532fi 2533DLLTOOL=$ac_cv_prog_DLLTOOL 2534if test -n "$DLLTOOL"; then 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 2536$as_echo "$DLLTOOL" >&6; } 2537else 2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2539$as_echo "no" >&6; } 2540fi 2541 2542 2543fi 2544if test -z "$ac_cv_prog_DLLTOOL"; then 2545 ac_ct_DLLTOOL=$DLLTOOL 2546 # Extract the first word of "dlltool", so it can be a program name with args. 2547set dummy dlltool; ac_word=$2 2548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2549$as_echo_n "checking for $ac_word... " >&6; } 2550if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 2551 $as_echo_n "(cached) " >&6 2552else 2553 if test -n "$ac_ct_DLLTOOL"; then 2554 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 2555else 2556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2557for as_dir in $PATH 2558do 2559 IFS=$as_save_IFS 2560 test -z "$as_dir" && as_dir=. 2561 for ac_exec_ext in '' $ac_executable_extensions; do 2562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2563 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 2564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2565 break 2 2566 fi 2567done 2568 done 2569IFS=$as_save_IFS 2570 2571fi 2572fi 2573ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 2574if test -n "$ac_ct_DLLTOOL"; then 2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 2576$as_echo "$ac_ct_DLLTOOL" >&6; } 2577else 2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2579$as_echo "no" >&6; } 2580fi 2581 2582 if test "x$ac_ct_DLLTOOL" = x; then 2583 DLLTOOL="false" 2584 else 2585 case $cross_compiling:$ac_tool_warned in 2586yes:) 2587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2589ac_tool_warned=yes ;; 2590esac 2591 DLLTOOL=$ac_ct_DLLTOOL 2592 fi 2593else 2594 DLLTOOL="$ac_cv_prog_DLLTOOL" 2595fi 2596 2597 if test -n "$ac_tool_prefix"; then 2598 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 2599set dummy ${ac_tool_prefix}objdump; ac_word=$2 2600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2601$as_echo_n "checking for $ac_word... " >&6; } 2602if ${ac_cv_prog_OBJDUMP+:} false; then : 2603 $as_echo_n "(cached) " >&6 2604else 2605 if test -n "$OBJDUMP"; then 2606 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 2607else 2608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2609for as_dir in $PATH 2610do 2611 IFS=$as_save_IFS 2612 test -z "$as_dir" && as_dir=. 2613 for ac_exec_ext in '' $ac_executable_extensions; do 2614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2615 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 2616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2617 break 2 2618 fi 2619done 2620 done 2621IFS=$as_save_IFS 2622 2623fi 2624fi 2625OBJDUMP=$ac_cv_prog_OBJDUMP 2626if test -n "$OBJDUMP"; then 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 2628$as_echo "$OBJDUMP" >&6; } 2629else 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2631$as_echo "no" >&6; } 2632fi 2633 2634 2635fi 2636if test -z "$ac_cv_prog_OBJDUMP"; then 2637 ac_ct_OBJDUMP=$OBJDUMP 2638 # Extract the first word of "objdump", so it can be a program name with args. 2639set dummy objdump; ac_word=$2 2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2641$as_echo_n "checking for $ac_word... " >&6; } 2642if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 2643 $as_echo_n "(cached) " >&6 2644else 2645 if test -n "$ac_ct_OBJDUMP"; then 2646 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 2647else 2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2649for as_dir in $PATH 2650do 2651 IFS=$as_save_IFS 2652 test -z "$as_dir" && as_dir=. 2653 for ac_exec_ext in '' $ac_executable_extensions; do 2654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2655 ac_cv_prog_ac_ct_OBJDUMP="objdump" 2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2657 break 2 2658 fi 2659done 2660 done 2661IFS=$as_save_IFS 2662 2663fi 2664fi 2665ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 2666if test -n "$ac_ct_OBJDUMP"; then 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 2668$as_echo "$ac_ct_OBJDUMP" >&6; } 2669else 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2671$as_echo "no" >&6; } 2672fi 2673 2674 if test "x$ac_ct_OBJDUMP" = x; then 2675 OBJDUMP="false" 2676 else 2677 case $cross_compiling:$ac_tool_warned in 2678yes:) 2679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2681ac_tool_warned=yes ;; 2682esac 2683 OBJDUMP=$ac_ct_OBJDUMP 2684 fi 2685else 2686 OBJDUMP="$ac_cv_prog_OBJDUMP" 2687fi 2688 2689 ;; 2690esac 2691 2692test -z "$AS" && AS=as 2693 2694 2695 2696 2697 2698test -z "$DLLTOOL" && DLLTOOL=dlltool 2699 2700 2701 2702 2703 2704test -z "$OBJDUMP" && OBJDUMP=objdump 2705 2706 2707 2708 2709 2710 2711 2712case `pwd` in 2713 *\ * | *\ *) 2714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2715$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2716esac 2717 2718 2719 2720macro_version='2.4.6' 2721macro_revision='2.4.6' 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735ltmain=$ac_aux_dir/ltmain.sh 2736 2737# Backslashify metacharacters that are still active within 2738# double-quoted strings. 2739sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2740 2741# Same as above, but do not quote variable references. 2742double_quote_subst='s/\(["`\\]\)/\\\1/g' 2743 2744# Sed substitution to delay expansion of an escaped shell variable in a 2745# double_quote_subst'ed string. 2746delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2747 2748# Sed substitution to delay expansion of an escaped single quote. 2749delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2750 2751# Sed substitution to avoid accidental globbing in evaled expressions 2752no_glob_subst='s/\*/\\\*/g' 2753 2754ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2755ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2756ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2757 2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2759$as_echo_n "checking how to print strings... " >&6; } 2760# Test print first, because it will be a builtin if present. 2761if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2762 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2763 ECHO='print -r --' 2764elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2765 ECHO='printf %s\n' 2766else 2767 # Use this function as a fallback that always works. 2768 func_fallback_echo () 2769 { 2770 eval 'cat <<_LTECHO_EOF 2771$1 2772_LTECHO_EOF' 2773 } 2774 ECHO='func_fallback_echo' 2775fi 2776 2777# func_echo_all arg... 2778# Invoke $ECHO with all args, space-separated. 2779func_echo_all () 2780{ 2781 $ECHO "" 2782} 2783 2784case $ECHO in 2785 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2786$as_echo "printf" >&6; } ;; 2787 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2788$as_echo "print -r" >&6; } ;; 2789 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2790$as_echo "cat" >&6; } ;; 2791esac 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806ac_ext=c 2807ac_cpp='$CPP $CPPFLAGS' 2808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2810ac_compiler_gnu=$ac_cv_c_compiler_gnu 2811if test -n "$ac_tool_prefix"; then 2812 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2813set dummy ${ac_tool_prefix}gcc; ac_word=$2 2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2815$as_echo_n "checking for $ac_word... " >&6; } 2816if ${ac_cv_prog_CC+:} false; then : 2817 $as_echo_n "(cached) " >&6 2818else 2819 if test -n "$CC"; then 2820 ac_cv_prog_CC="$CC" # Let the user override the test. 2821else 2822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2823for as_dir in $PATH 2824do 2825 IFS=$as_save_IFS 2826 test -z "$as_dir" && as_dir=. 2827 for ac_exec_ext in '' $ac_executable_extensions; do 2828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2829 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2831 break 2 2832 fi 2833done 2834 done 2835IFS=$as_save_IFS 2836 2837fi 2838fi 2839CC=$ac_cv_prog_CC 2840if test -n "$CC"; then 2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2842$as_echo "$CC" >&6; } 2843else 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2845$as_echo "no" >&6; } 2846fi 2847 2848 2849fi 2850if test -z "$ac_cv_prog_CC"; then 2851 ac_ct_CC=$CC 2852 # Extract the first word of "gcc", so it can be a program name with args. 2853set dummy gcc; ac_word=$2 2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2855$as_echo_n "checking for $ac_word... " >&6; } 2856if ${ac_cv_prog_ac_ct_CC+:} false; then : 2857 $as_echo_n "(cached) " >&6 2858else 2859 if test -n "$ac_ct_CC"; then 2860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2861else 2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2863for as_dir in $PATH 2864do 2865 IFS=$as_save_IFS 2866 test -z "$as_dir" && as_dir=. 2867 for ac_exec_ext in '' $ac_executable_extensions; do 2868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2869 ac_cv_prog_ac_ct_CC="gcc" 2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2871 break 2 2872 fi 2873done 2874 done 2875IFS=$as_save_IFS 2876 2877fi 2878fi 2879ac_ct_CC=$ac_cv_prog_ac_ct_CC 2880if test -n "$ac_ct_CC"; then 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2882$as_echo "$ac_ct_CC" >&6; } 2883else 2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2885$as_echo "no" >&6; } 2886fi 2887 2888 if test "x$ac_ct_CC" = x; then 2889 CC="" 2890 else 2891 case $cross_compiling:$ac_tool_warned in 2892yes:) 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2895ac_tool_warned=yes ;; 2896esac 2897 CC=$ac_ct_CC 2898 fi 2899else 2900 CC="$ac_cv_prog_CC" 2901fi 2902 2903if test -z "$CC"; then 2904 if test -n "$ac_tool_prefix"; then 2905 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2906set dummy ${ac_tool_prefix}cc; ac_word=$2 2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2908$as_echo_n "checking for $ac_word... " >&6; } 2909if ${ac_cv_prog_CC+:} false; then : 2910 $as_echo_n "(cached) " >&6 2911else 2912 if test -n "$CC"; then 2913 ac_cv_prog_CC="$CC" # Let the user override the test. 2914else 2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2916for as_dir in $PATH 2917do 2918 IFS=$as_save_IFS 2919 test -z "$as_dir" && as_dir=. 2920 for ac_exec_ext in '' $ac_executable_extensions; do 2921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2922 ac_cv_prog_CC="${ac_tool_prefix}cc" 2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2924 break 2 2925 fi 2926done 2927 done 2928IFS=$as_save_IFS 2929 2930fi 2931fi 2932CC=$ac_cv_prog_CC 2933if test -n "$CC"; then 2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2935$as_echo "$CC" >&6; } 2936else 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2938$as_echo "no" >&6; } 2939fi 2940 2941 2942 fi 2943fi 2944if test -z "$CC"; then 2945 # Extract the first word of "cc", so it can be a program name with args. 2946set dummy cc; 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_CC+:} false; then : 2950 $as_echo_n "(cached) " >&6 2951else 2952 if test -n "$CC"; then 2953 ac_cv_prog_CC="$CC" # Let the user override the test. 2954else 2955 ac_prog_rejected=no 2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2957for as_dir in $PATH 2958do 2959 IFS=$as_save_IFS 2960 test -z "$as_dir" && as_dir=. 2961 for ac_exec_ext in '' $ac_executable_extensions; do 2962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2963 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2964 ac_prog_rejected=yes 2965 continue 2966 fi 2967 ac_cv_prog_CC="cc" 2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2969 break 2 2970 fi 2971done 2972 done 2973IFS=$as_save_IFS 2974 2975if test $ac_prog_rejected = yes; then 2976 # We found a bogon in the path, so make sure we never use it. 2977 set dummy $ac_cv_prog_CC 2978 shift 2979 if test $# != 0; then 2980 # We chose a different compiler from the bogus one. 2981 # However, it has the same basename, so the bogon will be chosen 2982 # first if we set CC to just the basename; use the full file name. 2983 shift 2984 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2985 fi 2986fi 2987fi 2988fi 2989CC=$ac_cv_prog_CC 2990if test -n "$CC"; then 2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2992$as_echo "$CC" >&6; } 2993else 2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2995$as_echo "no" >&6; } 2996fi 2997 2998 2999fi 3000if test -z "$CC"; then 3001 if test -n "$ac_tool_prefix"; then 3002 for ac_prog in cl.exe 3003 do 3004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3005set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3007$as_echo_n "checking for $ac_word... " >&6; } 3008if ${ac_cv_prog_CC+:} false; then : 3009 $as_echo_n "(cached) " >&6 3010else 3011 if test -n "$CC"; then 3012 ac_cv_prog_CC="$CC" # Let the user override the test. 3013else 3014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3015for as_dir in $PATH 3016do 3017 IFS=$as_save_IFS 3018 test -z "$as_dir" && as_dir=. 3019 for ac_exec_ext in '' $ac_executable_extensions; do 3020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3021 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3023 break 2 3024 fi 3025done 3026 done 3027IFS=$as_save_IFS 3028 3029fi 3030fi 3031CC=$ac_cv_prog_CC 3032if test -n "$CC"; then 3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3034$as_echo "$CC" >&6; } 3035else 3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3037$as_echo "no" >&6; } 3038fi 3039 3040 3041 test -n "$CC" && break 3042 done 3043fi 3044if test -z "$CC"; then 3045 ac_ct_CC=$CC 3046 for ac_prog in cl.exe 3047do 3048 # Extract the first word of "$ac_prog", so it can be a program name with args. 3049set dummy $ac_prog; ac_word=$2 3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3051$as_echo_n "checking for $ac_word... " >&6; } 3052if ${ac_cv_prog_ac_ct_CC+:} false; then : 3053 $as_echo_n "(cached) " >&6 3054else 3055 if test -n "$ac_ct_CC"; then 3056 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3057else 3058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3059for as_dir in $PATH 3060do 3061 IFS=$as_save_IFS 3062 test -z "$as_dir" && as_dir=. 3063 for ac_exec_ext in '' $ac_executable_extensions; do 3064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3065 ac_cv_prog_ac_ct_CC="$ac_prog" 3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3067 break 2 3068 fi 3069done 3070 done 3071IFS=$as_save_IFS 3072 3073fi 3074fi 3075ac_ct_CC=$ac_cv_prog_ac_ct_CC 3076if test -n "$ac_ct_CC"; then 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3078$as_echo "$ac_ct_CC" >&6; } 3079else 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3081$as_echo "no" >&6; } 3082fi 3083 3084 3085 test -n "$ac_ct_CC" && break 3086done 3087 3088 if test "x$ac_ct_CC" = x; then 3089 CC="" 3090 else 3091 case $cross_compiling:$ac_tool_warned in 3092yes:) 3093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3095ac_tool_warned=yes ;; 3096esac 3097 CC=$ac_ct_CC 3098 fi 3099fi 3100 3101fi 3102 3103 3104test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3106as_fn_error $? "no acceptable C compiler found in \$PATH 3107See \`config.log' for more details" "$LINENO" 5; } 3108 3109# Provide some information about the compiler. 3110$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3111set X $ac_compile 3112ac_compiler=$2 3113for ac_option in --version -v -V -qversion; do 3114 { { ac_try="$ac_compiler $ac_option >&5" 3115case "(($ac_try" in 3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3117 *) ac_try_echo=$ac_try;; 3118esac 3119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3120$as_echo "$ac_try_echo"; } >&5 3121 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3122 ac_status=$? 3123 if test -s conftest.err; then 3124 sed '10a\ 3125... rest of stderr output deleted ... 3126 10q' conftest.err >conftest.er1 3127 cat conftest.er1 >&5 3128 fi 3129 rm -f conftest.er1 conftest.err 3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3131 test $ac_status = 0; } 3132done 3133 3134cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3135/* end confdefs.h. */ 3136 3137int 3138main () 3139{ 3140 3141 ; 3142 return 0; 3143} 3144_ACEOF 3145ac_clean_files_save=$ac_clean_files 3146ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3147# Try to create an executable without -o first, disregard a.out. 3148# It will help us diagnose broken compilers, and finding out an intuition 3149# of exeext. 3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3151$as_echo_n "checking whether the C compiler works... " >&6; } 3152ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3153 3154# The possible output files: 3155ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3156 3157ac_rmfiles= 3158for ac_file in $ac_files 3159do 3160 case $ac_file in 3161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3162 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3163 esac 3164done 3165rm -f $ac_rmfiles 3166 3167if { { ac_try="$ac_link_default" 3168case "(($ac_try" in 3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3170 *) ac_try_echo=$ac_try;; 3171esac 3172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3173$as_echo "$ac_try_echo"; } >&5 3174 (eval "$ac_link_default") 2>&5 3175 ac_status=$? 3176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3177 test $ac_status = 0; }; then : 3178 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3179# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3180# in a Makefile. We should not override ac_cv_exeext if it was cached, 3181# so that the user can short-circuit this test for compilers unknown to 3182# Autoconf. 3183for ac_file in $ac_files '' 3184do 3185 test -f "$ac_file" || continue 3186 case $ac_file in 3187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3188 ;; 3189 [ab].out ) 3190 # We found the default executable, but exeext='' is most 3191 # certainly right. 3192 break;; 3193 *.* ) 3194 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3195 then :; else 3196 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3197 fi 3198 # We set ac_cv_exeext here because the later test for it is not 3199 # safe: cross compilers may not add the suffix if given an `-o' 3200 # argument, so we may need to know it at that point already. 3201 # Even if this section looks crufty: it has the advantage of 3202 # actually working. 3203 break;; 3204 * ) 3205 break;; 3206 esac 3207done 3208test "$ac_cv_exeext" = no && ac_cv_exeext= 3209 3210else 3211 ac_file='' 3212fi 3213if test -z "$ac_file"; then : 3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3215$as_echo "no" >&6; } 3216$as_echo "$as_me: failed program was:" >&5 3217sed 's/^/| /' conftest.$ac_ext >&5 3218 3219{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3221as_fn_error 77 "C compiler cannot create executables 3222See \`config.log' for more details" "$LINENO" 5; } 3223else 3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3225$as_echo "yes" >&6; } 3226fi 3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3228$as_echo_n "checking for C compiler default output file name... " >&6; } 3229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3230$as_echo "$ac_file" >&6; } 3231ac_exeext=$ac_cv_exeext 3232 3233rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3234ac_clean_files=$ac_clean_files_save 3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3236$as_echo_n "checking for suffix of executables... " >&6; } 3237if { { ac_try="$ac_link" 3238case "(($ac_try" in 3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3240 *) ac_try_echo=$ac_try;; 3241esac 3242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3243$as_echo "$ac_try_echo"; } >&5 3244 (eval "$ac_link") 2>&5 3245 ac_status=$? 3246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3247 test $ac_status = 0; }; then : 3248 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3249# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3250# work properly (i.e., refer to `conftest.exe'), while it won't with 3251# `rm'. 3252for ac_file in conftest.exe conftest conftest.*; do 3253 test -f "$ac_file" || continue 3254 case $ac_file in 3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3256 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3257 break;; 3258 * ) break;; 3259 esac 3260done 3261else 3262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3264as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3265See \`config.log' for more details" "$LINENO" 5; } 3266fi 3267rm -f conftest conftest$ac_cv_exeext 3268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3269$as_echo "$ac_cv_exeext" >&6; } 3270 3271rm -f conftest.$ac_ext 3272EXEEXT=$ac_cv_exeext 3273ac_exeext=$EXEEXT 3274cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3275/* end confdefs.h. */ 3276#include <stdio.h> 3277int 3278main () 3279{ 3280FILE *f = fopen ("conftest.out", "w"); 3281 return ferror (f) || fclose (f) != 0; 3282 3283 ; 3284 return 0; 3285} 3286_ACEOF 3287ac_clean_files="$ac_clean_files conftest.out" 3288# Check that the compiler produces executables we can run. If not, either 3289# the compiler is broken, or we cross compile. 3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3291$as_echo_n "checking whether we are cross compiling... " >&6; } 3292if test "$cross_compiling" != yes; then 3293 { { ac_try="$ac_link" 3294case "(($ac_try" in 3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3296 *) ac_try_echo=$ac_try;; 3297esac 3298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3299$as_echo "$ac_try_echo"; } >&5 3300 (eval "$ac_link") 2>&5 3301 ac_status=$? 3302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3303 test $ac_status = 0; } 3304 if { ac_try='./conftest$ac_cv_exeext' 3305 { { case "(($ac_try" in 3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3307 *) ac_try_echo=$ac_try;; 3308esac 3309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3310$as_echo "$ac_try_echo"; } >&5 3311 (eval "$ac_try") 2>&5 3312 ac_status=$? 3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3314 test $ac_status = 0; }; }; then 3315 cross_compiling=no 3316 else 3317 if test "$cross_compiling" = maybe; then 3318 cross_compiling=yes 3319 else 3320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3322as_fn_error $? "cannot run C compiled programs. 3323If you meant to cross compile, use \`--host'. 3324See \`config.log' for more details" "$LINENO" 5; } 3325 fi 3326 fi 3327fi 3328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3329$as_echo "$cross_compiling" >&6; } 3330 3331rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3332ac_clean_files=$ac_clean_files_save 3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3334$as_echo_n "checking for suffix of object files... " >&6; } 3335if ${ac_cv_objext+:} false; then : 3336 $as_echo_n "(cached) " >&6 3337else 3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3339/* end confdefs.h. */ 3340 3341int 3342main () 3343{ 3344 3345 ; 3346 return 0; 3347} 3348_ACEOF 3349rm -f conftest.o conftest.obj 3350if { { ac_try="$ac_compile" 3351case "(($ac_try" in 3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3353 *) ac_try_echo=$ac_try;; 3354esac 3355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3356$as_echo "$ac_try_echo"; } >&5 3357 (eval "$ac_compile") 2>&5 3358 ac_status=$? 3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3360 test $ac_status = 0; }; then : 3361 for ac_file in conftest.o conftest.obj conftest.*; do 3362 test -f "$ac_file" || continue; 3363 case $ac_file in 3364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3365 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3366 break;; 3367 esac 3368done 3369else 3370 $as_echo "$as_me: failed program was:" >&5 3371sed 's/^/| /' conftest.$ac_ext >&5 3372 3373{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3375as_fn_error $? "cannot compute suffix of object files: cannot compile 3376See \`config.log' for more details" "$LINENO" 5; } 3377fi 3378rm -f conftest.$ac_cv_objext conftest.$ac_ext 3379fi 3380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3381$as_echo "$ac_cv_objext" >&6; } 3382OBJEXT=$ac_cv_objext 3383ac_objext=$OBJEXT 3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3385$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3386if ${ac_cv_c_compiler_gnu+:} false; then : 3387 $as_echo_n "(cached) " >&6 3388else 3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3390/* end confdefs.h. */ 3391 3392int 3393main () 3394{ 3395#ifndef __GNUC__ 3396 choke me 3397#endif 3398 3399 ; 3400 return 0; 3401} 3402_ACEOF 3403if ac_fn_c_try_compile "$LINENO"; then : 3404 ac_compiler_gnu=yes 3405else 3406 ac_compiler_gnu=no 3407fi 3408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3409ac_cv_c_compiler_gnu=$ac_compiler_gnu 3410 3411fi 3412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3413$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3414if test $ac_compiler_gnu = yes; then 3415 GCC=yes 3416else 3417 GCC= 3418fi 3419ac_test_CFLAGS=${CFLAGS+set} 3420ac_save_CFLAGS=$CFLAGS 3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3422$as_echo_n "checking whether $CC accepts -g... " >&6; } 3423if ${ac_cv_prog_cc_g+:} false; then : 3424 $as_echo_n "(cached) " >&6 3425else 3426 ac_save_c_werror_flag=$ac_c_werror_flag 3427 ac_c_werror_flag=yes 3428 ac_cv_prog_cc_g=no 3429 CFLAGS="-g" 3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3431/* end confdefs.h. */ 3432 3433int 3434main () 3435{ 3436 3437 ; 3438 return 0; 3439} 3440_ACEOF 3441if ac_fn_c_try_compile "$LINENO"; then : 3442 ac_cv_prog_cc_g=yes 3443else 3444 CFLAGS="" 3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3446/* end confdefs.h. */ 3447 3448int 3449main () 3450{ 3451 3452 ; 3453 return 0; 3454} 3455_ACEOF 3456if ac_fn_c_try_compile "$LINENO"; then : 3457 3458else 3459 ac_c_werror_flag=$ac_save_c_werror_flag 3460 CFLAGS="-g" 3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3462/* end confdefs.h. */ 3463 3464int 3465main () 3466{ 3467 3468 ; 3469 return 0; 3470} 3471_ACEOF 3472if ac_fn_c_try_compile "$LINENO"; then : 3473 ac_cv_prog_cc_g=yes 3474fi 3475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3476fi 3477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3478fi 3479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3480 ac_c_werror_flag=$ac_save_c_werror_flag 3481fi 3482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3483$as_echo "$ac_cv_prog_cc_g" >&6; } 3484if test "$ac_test_CFLAGS" = set; then 3485 CFLAGS=$ac_save_CFLAGS 3486elif test $ac_cv_prog_cc_g = yes; then 3487 if test "$GCC" = yes; then 3488 CFLAGS="-g -O2" 3489 else 3490 CFLAGS="-g" 3491 fi 3492else 3493 if test "$GCC" = yes; then 3494 CFLAGS="-O2" 3495 else 3496 CFLAGS= 3497 fi 3498fi 3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3500$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3501if ${ac_cv_prog_cc_c89+:} false; then : 3502 $as_echo_n "(cached) " >&6 3503else 3504 ac_cv_prog_cc_c89=no 3505ac_save_CC=$CC 3506cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3507/* end confdefs.h. */ 3508#include <stdarg.h> 3509#include <stdio.h> 3510struct stat; 3511/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3512struct buf { int x; }; 3513FILE * (*rcsopen) (struct buf *, struct stat *, int); 3514static char *e (p, i) 3515 char **p; 3516 int i; 3517{ 3518 return p[i]; 3519} 3520static char *f (char * (*g) (char **, int), char **p, ...) 3521{ 3522 char *s; 3523 va_list v; 3524 va_start (v,p); 3525 s = g (p, va_arg (v,int)); 3526 va_end (v); 3527 return s; 3528} 3529 3530/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3531 function prototypes and stuff, but not '\xHH' hex character constants. 3532 These don't provoke an error unfortunately, instead are silently treated 3533 as 'x'. The following induces an error, until -std is added to get 3534 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3535 array size at least. It's necessary to write '\x00'==0 to get something 3536 that's true only with -std. */ 3537int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3538 3539/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3540 inside strings and character constants. */ 3541#define FOO(x) 'x' 3542int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3543 3544int test (int i, double x); 3545struct s1 {int (*f) (int a);}; 3546struct s2 {int (*f) (double a);}; 3547int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3548int argc; 3549char **argv; 3550int 3551main () 3552{ 3553return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3554 ; 3555 return 0; 3556} 3557_ACEOF 3558for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3559 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3560do 3561 CC="$ac_save_CC $ac_arg" 3562 if ac_fn_c_try_compile "$LINENO"; then : 3563 ac_cv_prog_cc_c89=$ac_arg 3564fi 3565rm -f core conftest.err conftest.$ac_objext 3566 test "x$ac_cv_prog_cc_c89" != "xno" && break 3567done 3568rm -f conftest.$ac_ext 3569CC=$ac_save_CC 3570 3571fi 3572# AC_CACHE_VAL 3573case "x$ac_cv_prog_cc_c89" in 3574 x) 3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3576$as_echo "none needed" >&6; } ;; 3577 xno) 3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3579$as_echo "unsupported" >&6; } ;; 3580 *) 3581 CC="$CC $ac_cv_prog_cc_c89" 3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3583$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3584esac 3585if test "x$ac_cv_prog_cc_c89" != xno; then : 3586 3587fi 3588 3589ac_ext=c 3590ac_cpp='$CPP $CPPFLAGS' 3591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3593ac_compiler_gnu=$ac_cv_c_compiler_gnu 3594 3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3596$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3597if ${ac_cv_path_SED+:} false; then : 3598 $as_echo_n "(cached) " >&6 3599else 3600 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3601 for ac_i in 1 2 3 4 5 6 7; do 3602 ac_script="$ac_script$as_nl$ac_script" 3603 done 3604 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3605 { ac_script=; unset ac_script;} 3606 if test -z "$SED"; then 3607 ac_path_SED_found=false 3608 # Loop through the user's path and test for each of PROGNAME-LIST 3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3610for as_dir in $PATH 3611do 3612 IFS=$as_save_IFS 3613 test -z "$as_dir" && as_dir=. 3614 for ac_prog in sed gsed; do 3615 for ac_exec_ext in '' $ac_executable_extensions; do 3616 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3617 as_fn_executable_p "$ac_path_SED" || continue 3618# Check for GNU ac_path_SED and select it if it is found. 3619 # Check for GNU $ac_path_SED 3620case `"$ac_path_SED" --version 2>&1` in 3621*GNU*) 3622 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3623*) 3624 ac_count=0 3625 $as_echo_n 0123456789 >"conftest.in" 3626 while : 3627 do 3628 cat "conftest.in" "conftest.in" >"conftest.tmp" 3629 mv "conftest.tmp" "conftest.in" 3630 cp "conftest.in" "conftest.nl" 3631 $as_echo '' >> "conftest.nl" 3632 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3633 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3634 as_fn_arith $ac_count + 1 && ac_count=$as_val 3635 if test $ac_count -gt ${ac_path_SED_max-0}; then 3636 # Best one so far, save it but keep looking for a better one 3637 ac_cv_path_SED="$ac_path_SED" 3638 ac_path_SED_max=$ac_count 3639 fi 3640 # 10*(2^10) chars as input seems more than enough 3641 test $ac_count -gt 10 && break 3642 done 3643 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3644esac 3645 3646 $ac_path_SED_found && break 3 3647 done 3648 done 3649 done 3650IFS=$as_save_IFS 3651 if test -z "$ac_cv_path_SED"; then 3652 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3653 fi 3654else 3655 ac_cv_path_SED=$SED 3656fi 3657 3658fi 3659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3660$as_echo "$ac_cv_path_SED" >&6; } 3661 SED="$ac_cv_path_SED" 3662 rm -f conftest.sed 3663 3664test -z "$SED" && SED=sed 3665Xsed="$SED -e 1s/^X//" 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3678$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3679if ${ac_cv_path_GREP+:} false; then : 3680 $as_echo_n "(cached) " >&6 3681else 3682 if test -z "$GREP"; then 3683 ac_path_GREP_found=false 3684 # Loop through the user's path and test for each of PROGNAME-LIST 3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3686for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3687do 3688 IFS=$as_save_IFS 3689 test -z "$as_dir" && as_dir=. 3690 for ac_prog in grep ggrep; do 3691 for ac_exec_ext in '' $ac_executable_extensions; do 3692 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3693 as_fn_executable_p "$ac_path_GREP" || continue 3694# Check for GNU ac_path_GREP and select it if it is found. 3695 # Check for GNU $ac_path_GREP 3696case `"$ac_path_GREP" --version 2>&1` in 3697*GNU*) 3698 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3699*) 3700 ac_count=0 3701 $as_echo_n 0123456789 >"conftest.in" 3702 while : 3703 do 3704 cat "conftest.in" "conftest.in" >"conftest.tmp" 3705 mv "conftest.tmp" "conftest.in" 3706 cp "conftest.in" "conftest.nl" 3707 $as_echo 'GREP' >> "conftest.nl" 3708 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3709 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3710 as_fn_arith $ac_count + 1 && ac_count=$as_val 3711 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3712 # Best one so far, save it but keep looking for a better one 3713 ac_cv_path_GREP="$ac_path_GREP" 3714 ac_path_GREP_max=$ac_count 3715 fi 3716 # 10*(2^10) chars as input seems more than enough 3717 test $ac_count -gt 10 && break 3718 done 3719 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3720esac 3721 3722 $ac_path_GREP_found && break 3 3723 done 3724 done 3725 done 3726IFS=$as_save_IFS 3727 if test -z "$ac_cv_path_GREP"; then 3728 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3729 fi 3730else 3731 ac_cv_path_GREP=$GREP 3732fi 3733 3734fi 3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3736$as_echo "$ac_cv_path_GREP" >&6; } 3737 GREP="$ac_cv_path_GREP" 3738 3739 3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3741$as_echo_n "checking for egrep... " >&6; } 3742if ${ac_cv_path_EGREP+:} false; then : 3743 $as_echo_n "(cached) " >&6 3744else 3745 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3746 then ac_cv_path_EGREP="$GREP -E" 3747 else 3748 if test -z "$EGREP"; then 3749 ac_path_EGREP_found=false 3750 # Loop through the user's path and test for each of PROGNAME-LIST 3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3752for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3753do 3754 IFS=$as_save_IFS 3755 test -z "$as_dir" && as_dir=. 3756 for ac_prog in egrep; do 3757 for ac_exec_ext in '' $ac_executable_extensions; do 3758 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3759 as_fn_executable_p "$ac_path_EGREP" || continue 3760# Check for GNU ac_path_EGREP and select it if it is found. 3761 # Check for GNU $ac_path_EGREP 3762case `"$ac_path_EGREP" --version 2>&1` in 3763*GNU*) 3764 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3765*) 3766 ac_count=0 3767 $as_echo_n 0123456789 >"conftest.in" 3768 while : 3769 do 3770 cat "conftest.in" "conftest.in" >"conftest.tmp" 3771 mv "conftest.tmp" "conftest.in" 3772 cp "conftest.in" "conftest.nl" 3773 $as_echo 'EGREP' >> "conftest.nl" 3774 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3775 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3776 as_fn_arith $ac_count + 1 && ac_count=$as_val 3777 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3778 # Best one so far, save it but keep looking for a better one 3779 ac_cv_path_EGREP="$ac_path_EGREP" 3780 ac_path_EGREP_max=$ac_count 3781 fi 3782 # 10*(2^10) chars as input seems more than enough 3783 test $ac_count -gt 10 && break 3784 done 3785 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3786esac 3787 3788 $ac_path_EGREP_found && break 3 3789 done 3790 done 3791 done 3792IFS=$as_save_IFS 3793 if test -z "$ac_cv_path_EGREP"; then 3794 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3795 fi 3796else 3797 ac_cv_path_EGREP=$EGREP 3798fi 3799 3800 fi 3801fi 3802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3803$as_echo "$ac_cv_path_EGREP" >&6; } 3804 EGREP="$ac_cv_path_EGREP" 3805 3806 3807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3808$as_echo_n "checking for fgrep... " >&6; } 3809if ${ac_cv_path_FGREP+:} false; then : 3810 $as_echo_n "(cached) " >&6 3811else 3812 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3813 then ac_cv_path_FGREP="$GREP -F" 3814 else 3815 if test -z "$FGREP"; then 3816 ac_path_FGREP_found=false 3817 # Loop through the user's path and test for each of PROGNAME-LIST 3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3819for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3820do 3821 IFS=$as_save_IFS 3822 test -z "$as_dir" && as_dir=. 3823 for ac_prog in fgrep; do 3824 for ac_exec_ext in '' $ac_executable_extensions; do 3825 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3826 as_fn_executable_p "$ac_path_FGREP" || continue 3827# Check for GNU ac_path_FGREP and select it if it is found. 3828 # Check for GNU $ac_path_FGREP 3829case `"$ac_path_FGREP" --version 2>&1` in 3830*GNU*) 3831 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3832*) 3833 ac_count=0 3834 $as_echo_n 0123456789 >"conftest.in" 3835 while : 3836 do 3837 cat "conftest.in" "conftest.in" >"conftest.tmp" 3838 mv "conftest.tmp" "conftest.in" 3839 cp "conftest.in" "conftest.nl" 3840 $as_echo 'FGREP' >> "conftest.nl" 3841 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3842 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3843 as_fn_arith $ac_count + 1 && ac_count=$as_val 3844 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3845 # Best one so far, save it but keep looking for a better one 3846 ac_cv_path_FGREP="$ac_path_FGREP" 3847 ac_path_FGREP_max=$ac_count 3848 fi 3849 # 10*(2^10) chars as input seems more than enough 3850 test $ac_count -gt 10 && break 3851 done 3852 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3853esac 3854 3855 $ac_path_FGREP_found && break 3 3856 done 3857 done 3858 done 3859IFS=$as_save_IFS 3860 if test -z "$ac_cv_path_FGREP"; then 3861 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3862 fi 3863else 3864 ac_cv_path_FGREP=$FGREP 3865fi 3866 3867 fi 3868fi 3869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3870$as_echo "$ac_cv_path_FGREP" >&6; } 3871 FGREP="$ac_cv_path_FGREP" 3872 3873 3874test -z "$GREP" && GREP=grep 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894# Check whether --with-gnu-ld was given. 3895if test "${with_gnu_ld+set}" = set; then : 3896 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 3897else 3898 with_gnu_ld=no 3899fi 3900 3901ac_prog=ld 3902if test yes = "$GCC"; then 3903 # Check if gcc -print-prog-name=ld gives a path. 3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 3905$as_echo_n "checking for ld used by $CC... " >&6; } 3906 case $host in 3907 *-*-mingw*) 3908 # gcc leaves a trailing carriage return, which upsets mingw 3909 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3910 *) 3911 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3912 esac 3913 case $ac_prog in 3914 # Accept absolute paths. 3915 [\\/]* | ?:[\\/]*) 3916 re_direlt='/[^/][^/]*/\.\./' 3917 # Canonicalize the pathname of ld 3918 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3919 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3920 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3921 done 3922 test -z "$LD" && LD=$ac_prog 3923 ;; 3924 "") 3925 # If it fails, then pretend we aren't using GCC. 3926 ac_prog=ld 3927 ;; 3928 *) 3929 # If it is relative, then search for the first ld in PATH. 3930 with_gnu_ld=unknown 3931 ;; 3932 esac 3933elif test yes = "$with_gnu_ld"; then 3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 3935$as_echo_n "checking for GNU ld... " >&6; } 3936else 3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 3938$as_echo_n "checking for non-GNU ld... " >&6; } 3939fi 3940if ${lt_cv_path_LD+:} false; then : 3941 $as_echo_n "(cached) " >&6 3942else 3943 if test -z "$LD"; then 3944 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 3945 for ac_dir in $PATH; do 3946 IFS=$lt_save_ifs 3947 test -z "$ac_dir" && ac_dir=. 3948 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3949 lt_cv_path_LD=$ac_dir/$ac_prog 3950 # Check to see if the program is GNU ld. I'd rather use --version, 3951 # but apparently some variants of GNU ld only accept -v. 3952 # Break only if it was the GNU/non-GNU ld that we prefer. 3953 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3954 *GNU* | *'with BFD'*) 3955 test no != "$with_gnu_ld" && break 3956 ;; 3957 *) 3958 test yes != "$with_gnu_ld" && break 3959 ;; 3960 esac 3961 fi 3962 done 3963 IFS=$lt_save_ifs 3964else 3965 lt_cv_path_LD=$LD # Let the user override the test with a path. 3966fi 3967fi 3968 3969LD=$lt_cv_path_LD 3970if test -n "$LD"; then 3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 3972$as_echo "$LD" >&6; } 3973else 3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3975$as_echo "no" >&6; } 3976fi 3977test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 3979$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 3980if ${lt_cv_prog_gnu_ld+:} false; then : 3981 $as_echo_n "(cached) " >&6 3982else 3983 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3984case `$LD -v 2>&1 </dev/null` in 3985*GNU* | *'with BFD'*) 3986 lt_cv_prog_gnu_ld=yes 3987 ;; 3988*) 3989 lt_cv_prog_gnu_ld=no 3990 ;; 3991esac 3992fi 3993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 3994$as_echo "$lt_cv_prog_gnu_ld" >&6; } 3995with_gnu_ld=$lt_cv_prog_gnu_ld 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4006$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4007if ${lt_cv_path_NM+:} false; then : 4008 $as_echo_n "(cached) " >&6 4009else 4010 if test -n "$NM"; then 4011 # Let the user override the test. 4012 lt_cv_path_NM=$NM 4013else 4014 lt_nm_to_check=${ac_tool_prefix}nm 4015 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4016 lt_nm_to_check="$lt_nm_to_check nm" 4017 fi 4018 for lt_tmp_nm in $lt_nm_to_check; do 4019 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4020 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4021 IFS=$lt_save_ifs 4022 test -z "$ac_dir" && ac_dir=. 4023 tmp_nm=$ac_dir/$lt_tmp_nm 4024 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4025 # Check to see if the nm accepts a BSD-compat flag. 4026 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4027 # nm: unknown option "B" ignored 4028 # Tru64's nm complains that /dev/null is an invalid object file 4029 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4030 case $build_os in 4031 mingw*) lt_bad_file=conftest.nm/nofile ;; 4032 *) lt_bad_file=/dev/null ;; 4033 esac 4034 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4035 *$lt_bad_file* | *'Invalid file or object type'*) 4036 lt_cv_path_NM="$tmp_nm -B" 4037 break 2 4038 ;; 4039 *) 4040 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4041 */dev/null*) 4042 lt_cv_path_NM="$tmp_nm -p" 4043 break 2 4044 ;; 4045 *) 4046 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4047 continue # so that we can try to find one that supports BSD flags 4048 ;; 4049 esac 4050 ;; 4051 esac 4052 fi 4053 done 4054 IFS=$lt_save_ifs 4055 done 4056 : ${lt_cv_path_NM=no} 4057fi 4058fi 4059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4060$as_echo "$lt_cv_path_NM" >&6; } 4061if test no != "$lt_cv_path_NM"; then 4062 NM=$lt_cv_path_NM 4063else 4064 # Didn't find any BSD compatible name lister, look for dumpbin. 4065 if test -n "$DUMPBIN"; then : 4066 # Let the user override the test. 4067 else 4068 if test -n "$ac_tool_prefix"; then 4069 for ac_prog in dumpbin "link -dump" 4070 do 4071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4072set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4074$as_echo_n "checking for $ac_word... " >&6; } 4075if ${ac_cv_prog_DUMPBIN+:} false; then : 4076 $as_echo_n "(cached) " >&6 4077else 4078 if test -n "$DUMPBIN"; then 4079 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4080else 4081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4082for as_dir in $PATH 4083do 4084 IFS=$as_save_IFS 4085 test -z "$as_dir" && as_dir=. 4086 for ac_exec_ext in '' $ac_executable_extensions; do 4087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4088 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4090 break 2 4091 fi 4092done 4093 done 4094IFS=$as_save_IFS 4095 4096fi 4097fi 4098DUMPBIN=$ac_cv_prog_DUMPBIN 4099if test -n "$DUMPBIN"; then 4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4101$as_echo "$DUMPBIN" >&6; } 4102else 4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4104$as_echo "no" >&6; } 4105fi 4106 4107 4108 test -n "$DUMPBIN" && break 4109 done 4110fi 4111if test -z "$DUMPBIN"; then 4112 ac_ct_DUMPBIN=$DUMPBIN 4113 for ac_prog in dumpbin "link -dump" 4114do 4115 # Extract the first word of "$ac_prog", so it can be a program name with args. 4116set dummy $ac_prog; ac_word=$2 4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4118$as_echo_n "checking for $ac_word... " >&6; } 4119if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4120 $as_echo_n "(cached) " >&6 4121else 4122 if test -n "$ac_ct_DUMPBIN"; then 4123 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4124else 4125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4126for as_dir in $PATH 4127do 4128 IFS=$as_save_IFS 4129 test -z "$as_dir" && as_dir=. 4130 for ac_exec_ext in '' $ac_executable_extensions; do 4131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4132 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4134 break 2 4135 fi 4136done 4137 done 4138IFS=$as_save_IFS 4139 4140fi 4141fi 4142ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4143if test -n "$ac_ct_DUMPBIN"; then 4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4145$as_echo "$ac_ct_DUMPBIN" >&6; } 4146else 4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4148$as_echo "no" >&6; } 4149fi 4150 4151 4152 test -n "$ac_ct_DUMPBIN" && break 4153done 4154 4155 if test "x$ac_ct_DUMPBIN" = x; then 4156 DUMPBIN=":" 4157 else 4158 case $cross_compiling:$ac_tool_warned in 4159yes:) 4160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4162ac_tool_warned=yes ;; 4163esac 4164 DUMPBIN=$ac_ct_DUMPBIN 4165 fi 4166fi 4167 4168 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4169 *COFF*) 4170 DUMPBIN="$DUMPBIN -symbols -headers" 4171 ;; 4172 *) 4173 DUMPBIN=: 4174 ;; 4175 esac 4176 fi 4177 4178 if test : != "$DUMPBIN"; then 4179 NM=$DUMPBIN 4180 fi 4181fi 4182test -z "$NM" && NM=nm 4183 4184 4185 4186 4187 4188 4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4190$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4191if ${lt_cv_nm_interface+:} false; then : 4192 $as_echo_n "(cached) " >&6 4193else 4194 lt_cv_nm_interface="BSD nm" 4195 echo "int some_variable = 0;" > conftest.$ac_ext 4196 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4197 (eval "$ac_compile" 2>conftest.err) 4198 cat conftest.err >&5 4199 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4200 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4201 cat conftest.err >&5 4202 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4203 cat conftest.out >&5 4204 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4205 lt_cv_nm_interface="MS dumpbin" 4206 fi 4207 rm -f conftest* 4208fi 4209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4210$as_echo "$lt_cv_nm_interface" >&6; } 4211 4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4213$as_echo_n "checking whether ln -s works... " >&6; } 4214LN_S=$as_ln_s 4215if test "$LN_S" = "ln -s"; then 4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4217$as_echo "yes" >&6; } 4218else 4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4220$as_echo "no, using $LN_S" >&6; } 4221fi 4222 4223# find the maximum length of command line arguments 4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4225$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4226if ${lt_cv_sys_max_cmd_len+:} false; then : 4227 $as_echo_n "(cached) " >&6 4228else 4229 i=0 4230 teststring=ABCD 4231 4232 case $build_os in 4233 msdosdjgpp*) 4234 # On DJGPP, this test can blow up pretty badly due to problems in libc 4235 # (any single argument exceeding 2000 bytes causes a buffer overrun 4236 # during glob expansion). Even if it were fixed, the result of this 4237 # check would be larger than it should be. 4238 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4239 ;; 4240 4241 gnu*) 4242 # Under GNU Hurd, this test is not required because there is 4243 # no limit to the length of command line arguments. 4244 # Libtool will interpret -1 as no limit whatsoever 4245 lt_cv_sys_max_cmd_len=-1; 4246 ;; 4247 4248 cygwin* | mingw* | cegcc*) 4249 # On Win9x/ME, this test blows up -- it succeeds, but takes 4250 # about 5 minutes as the teststring grows exponentially. 4251 # Worse, since 9x/ME are not pre-emptively multitasking, 4252 # you end up with a "frozen" computer, even though with patience 4253 # the test eventually succeeds (with a max line length of 256k). 4254 # Instead, let's just punt: use the minimum linelength reported by 4255 # all of the supported platforms: 8192 (on NT/2K/XP). 4256 lt_cv_sys_max_cmd_len=8192; 4257 ;; 4258 4259 mint*) 4260 # On MiNT this can take a long time and run out of memory. 4261 lt_cv_sys_max_cmd_len=8192; 4262 ;; 4263 4264 amigaos*) 4265 # On AmigaOS with pdksh, this test takes hours, literally. 4266 # So we just punt and use a minimum line length of 8192. 4267 lt_cv_sys_max_cmd_len=8192; 4268 ;; 4269 4270 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4271 # This has been around since 386BSD, at least. Likely further. 4272 if test -x /sbin/sysctl; then 4273 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4274 elif test -x /usr/sbin/sysctl; then 4275 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4276 else 4277 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4278 fi 4279 # And add a safety zone 4280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4282 ;; 4283 4284 interix*) 4285 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4286 lt_cv_sys_max_cmd_len=196608 4287 ;; 4288 4289 os2*) 4290 # The test takes a long time on OS/2. 4291 lt_cv_sys_max_cmd_len=8192 4292 ;; 4293 4294 osf*) 4295 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4296 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4297 # nice to cause kernel panics so lets avoid the loop below. 4298 # First set a reasonable default. 4299 lt_cv_sys_max_cmd_len=16384 4300 # 4301 if test -x /sbin/sysconfig; then 4302 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4303 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4304 esac 4305 fi 4306 ;; 4307 sco3.2v5*) 4308 lt_cv_sys_max_cmd_len=102400 4309 ;; 4310 sysv5* | sco5v6* | sysv4.2uw2*) 4311 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4312 if test -n "$kargmax"; then 4313 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4314 else 4315 lt_cv_sys_max_cmd_len=32768 4316 fi 4317 ;; 4318 *) 4319 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4320 if test -n "$lt_cv_sys_max_cmd_len" && \ 4321 test undefined != "$lt_cv_sys_max_cmd_len"; then 4322 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4324 else 4325 # Make teststring a little bigger before we do anything with it. 4326 # a 1K string should be a reasonable start. 4327 for i in 1 2 3 4 5 6 7 8; do 4328 teststring=$teststring$teststring 4329 done 4330 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4331 # If test is not a shell built-in, we'll probably end up computing a 4332 # maximum length that is only half of the actual maximum length, but 4333 # we can't tell. 4334 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4335 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4336 test 17 != "$i" # 1/2 MB should be enough 4337 do 4338 i=`expr $i + 1` 4339 teststring=$teststring$teststring 4340 done 4341 # Only check the string length outside the loop. 4342 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4343 teststring= 4344 # Add a significant safety factor because C++ compilers can tack on 4345 # massive amounts of additional arguments before passing them to the 4346 # linker. It appears as though 1/2 is a usable value. 4347 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4348 fi 4349 ;; 4350 esac 4351 4352fi 4353 4354if test -n "$lt_cv_sys_max_cmd_len"; then 4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4356$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4357else 4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4359$as_echo "none" >&6; } 4360fi 4361max_cmd_len=$lt_cv_sys_max_cmd_len 4362 4363 4364 4365 4366 4367 4368: ${CP="cp -f"} 4369: ${MV="mv -f"} 4370: ${RM="rm -f"} 4371 4372if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4373 lt_unset=unset 4374else 4375 lt_unset=false 4376fi 4377 4378 4379 4380 4381 4382# test EBCDIC or ASCII 4383case `echo X|tr X '\101'` in 4384 A) # ASCII based system 4385 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4386 lt_SP2NL='tr \040 \012' 4387 lt_NL2SP='tr \015\012 \040\040' 4388 ;; 4389 *) # EBCDIC based system 4390 lt_SP2NL='tr \100 \n' 4391 lt_NL2SP='tr \r\n \100\100' 4392 ;; 4393esac 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4404$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4405if ${lt_cv_to_host_file_cmd+:} false; then : 4406 $as_echo_n "(cached) " >&6 4407else 4408 case $host in 4409 *-*-mingw* ) 4410 case $build in 4411 *-*-mingw* ) # actually msys 4412 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4413 ;; 4414 *-*-cygwin* ) 4415 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4416 ;; 4417 * ) # otherwise, assume *nix 4418 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4419 ;; 4420 esac 4421 ;; 4422 *-*-cygwin* ) 4423 case $build in 4424 *-*-mingw* ) # actually msys 4425 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4426 ;; 4427 *-*-cygwin* ) 4428 lt_cv_to_host_file_cmd=func_convert_file_noop 4429 ;; 4430 * ) # otherwise, assume *nix 4431 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4432 ;; 4433 esac 4434 ;; 4435 * ) # unhandled hosts (and "normal" native builds) 4436 lt_cv_to_host_file_cmd=func_convert_file_noop 4437 ;; 4438esac 4439 4440fi 4441 4442to_host_file_cmd=$lt_cv_to_host_file_cmd 4443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4444$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4445 4446 4447 4448 4449 4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4451$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4452if ${lt_cv_to_tool_file_cmd+:} false; then : 4453 $as_echo_n "(cached) " >&6 4454else 4455 #assume ordinary cross tools, or native build. 4456lt_cv_to_tool_file_cmd=func_convert_file_noop 4457case $host in 4458 *-*-mingw* ) 4459 case $build in 4460 *-*-mingw* ) # actually msys 4461 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4462 ;; 4463 esac 4464 ;; 4465esac 4466 4467fi 4468 4469to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4471$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4472 4473 4474 4475 4476 4477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4478$as_echo_n "checking for $LD option to reload object files... " >&6; } 4479if ${lt_cv_ld_reload_flag+:} false; then : 4480 $as_echo_n "(cached) " >&6 4481else 4482 lt_cv_ld_reload_flag='-r' 4483fi 4484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4485$as_echo "$lt_cv_ld_reload_flag" >&6; } 4486reload_flag=$lt_cv_ld_reload_flag 4487case $reload_flag in 4488"" | " "*) ;; 4489*) reload_flag=" $reload_flag" ;; 4490esac 4491reload_cmds='$LD$reload_flag -o $output$reload_objs' 4492case $host_os in 4493 cygwin* | mingw* | pw32* | cegcc*) 4494 if test yes != "$GCC"; then 4495 reload_cmds=false 4496 fi 4497 ;; 4498 darwin*) 4499 if test yes = "$GCC"; then 4500 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 4501 else 4502 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4503 fi 4504 ;; 4505esac 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515if test -n "$ac_tool_prefix"; then 4516 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4517set dummy ${ac_tool_prefix}objdump; ac_word=$2 4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4519$as_echo_n "checking for $ac_word... " >&6; } 4520if ${ac_cv_prog_OBJDUMP+:} false; then : 4521 $as_echo_n "(cached) " >&6 4522else 4523 if test -n "$OBJDUMP"; then 4524 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4525else 4526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4527for as_dir in $PATH 4528do 4529 IFS=$as_save_IFS 4530 test -z "$as_dir" && as_dir=. 4531 for ac_exec_ext in '' $ac_executable_extensions; do 4532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4533 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4535 break 2 4536 fi 4537done 4538 done 4539IFS=$as_save_IFS 4540 4541fi 4542fi 4543OBJDUMP=$ac_cv_prog_OBJDUMP 4544if test -n "$OBJDUMP"; then 4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4546$as_echo "$OBJDUMP" >&6; } 4547else 4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4549$as_echo "no" >&6; } 4550fi 4551 4552 4553fi 4554if test -z "$ac_cv_prog_OBJDUMP"; then 4555 ac_ct_OBJDUMP=$OBJDUMP 4556 # Extract the first word of "objdump", so it can be a program name with args. 4557set dummy objdump; ac_word=$2 4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4559$as_echo_n "checking for $ac_word... " >&6; } 4560if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4561 $as_echo_n "(cached) " >&6 4562else 4563 if test -n "$ac_ct_OBJDUMP"; then 4564 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4565else 4566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4567for as_dir in $PATH 4568do 4569 IFS=$as_save_IFS 4570 test -z "$as_dir" && as_dir=. 4571 for ac_exec_ext in '' $ac_executable_extensions; do 4572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4573 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4575 break 2 4576 fi 4577done 4578 done 4579IFS=$as_save_IFS 4580 4581fi 4582fi 4583ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4584if test -n "$ac_ct_OBJDUMP"; then 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4586$as_echo "$ac_ct_OBJDUMP" >&6; } 4587else 4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4589$as_echo "no" >&6; } 4590fi 4591 4592 if test "x$ac_ct_OBJDUMP" = x; then 4593 OBJDUMP="false" 4594 else 4595 case $cross_compiling:$ac_tool_warned in 4596yes:) 4597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4599ac_tool_warned=yes ;; 4600esac 4601 OBJDUMP=$ac_ct_OBJDUMP 4602 fi 4603else 4604 OBJDUMP="$ac_cv_prog_OBJDUMP" 4605fi 4606 4607test -z "$OBJDUMP" && OBJDUMP=objdump 4608 4609 4610 4611 4612 4613 4614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4615$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4616if ${lt_cv_deplibs_check_method+:} false; then : 4617 $as_echo_n "(cached) " >&6 4618else 4619 lt_cv_file_magic_cmd='$MAGIC_CMD' 4620lt_cv_file_magic_test_file= 4621lt_cv_deplibs_check_method='unknown' 4622# Need to set the preceding variable on all platforms that support 4623# interlibrary dependencies. 4624# 'none' -- dependencies not supported. 4625# 'unknown' -- same as none, but documents that we really don't know. 4626# 'pass_all' -- all dependencies passed with no checks. 4627# 'test_compile' -- check by making test program. 4628# 'file_magic [[regex]]' -- check by looking for files in library path 4629# that responds to the $file_magic_cmd with a given extended regex. 4630# If you have 'file' or equivalent on your system and you're not sure 4631# whether 'pass_all' will *always* work, you probably want this one. 4632 4633case $host_os in 4634aix[4-9]*) 4635 lt_cv_deplibs_check_method=pass_all 4636 ;; 4637 4638beos*) 4639 lt_cv_deplibs_check_method=pass_all 4640 ;; 4641 4642bsdi[45]*) 4643 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4644 lt_cv_file_magic_cmd='/usr/bin/file -L' 4645 lt_cv_file_magic_test_file=/shlib/libc.so 4646 ;; 4647 4648cygwin*) 4649 # func_win32_libid is a shell function defined in ltmain.sh 4650 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4651 lt_cv_file_magic_cmd='func_win32_libid' 4652 ;; 4653 4654mingw* | pw32*) 4655 # Base MSYS/MinGW do not provide the 'file' command needed by 4656 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4657 # unless we find 'file', for example because we are cross-compiling. 4658 if ( file / ) >/dev/null 2>&1; then 4659 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4660 lt_cv_file_magic_cmd='func_win32_libid' 4661 else 4662 # Keep this pattern in sync with the one in func_win32_libid. 4663 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4664 lt_cv_file_magic_cmd='$OBJDUMP -f' 4665 fi 4666 ;; 4667 4668cegcc*) 4669 # use the weaker test based on 'objdump'. See mingw*. 4670 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4671 lt_cv_file_magic_cmd='$OBJDUMP -f' 4672 ;; 4673 4674darwin* | rhapsody*) 4675 lt_cv_deplibs_check_method=pass_all 4676 ;; 4677 4678freebsd* | dragonfly*) 4679 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4680 case $host_cpu in 4681 i*86 ) 4682 # Not sure whether the presence of OpenBSD here was a mistake. 4683 # Let's accept both of them until this is cleared up. 4684 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4685 lt_cv_file_magic_cmd=/usr/bin/file 4686 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4687 ;; 4688 esac 4689 else 4690 lt_cv_deplibs_check_method=pass_all 4691 fi 4692 ;; 4693 4694haiku*) 4695 lt_cv_deplibs_check_method=pass_all 4696 ;; 4697 4698hpux10.20* | hpux11*) 4699 lt_cv_file_magic_cmd=/usr/bin/file 4700 case $host_cpu in 4701 ia64*) 4702 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4703 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4704 ;; 4705 hppa*64*) 4706 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]' 4707 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4708 ;; 4709 *) 4710 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 4711 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4712 ;; 4713 esac 4714 ;; 4715 4716interix[3-9]*) 4717 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4718 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4719 ;; 4720 4721irix5* | irix6* | nonstopux*) 4722 case $LD in 4723 *-32|*"-32 ") libmagic=32-bit;; 4724 *-n32|*"-n32 ") libmagic=N32;; 4725 *-64|*"-64 ") libmagic=64-bit;; 4726 *) libmagic=never-match;; 4727 esac 4728 lt_cv_deplibs_check_method=pass_all 4729 ;; 4730 4731# This must be glibc/ELF. 4732linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 4733 lt_cv_deplibs_check_method=pass_all 4734 ;; 4735 4736netbsd* | netbsdelf*-gnu) 4737 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4738 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4739 else 4740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4741 fi 4742 ;; 4743 4744newos6*) 4745 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4746 lt_cv_file_magic_cmd=/usr/bin/file 4747 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4748 ;; 4749 4750*nto* | *qnx*) 4751 lt_cv_deplibs_check_method=pass_all 4752 ;; 4753 4754openbsd* | bitrig*) 4755 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 4756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4757 else 4758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4759 fi 4760 ;; 4761 4762osf3* | osf4* | osf5*) 4763 lt_cv_deplibs_check_method=pass_all 4764 ;; 4765 4766rdos*) 4767 lt_cv_deplibs_check_method=pass_all 4768 ;; 4769 4770solaris*) 4771 lt_cv_deplibs_check_method=pass_all 4772 ;; 4773 4774sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4775 lt_cv_deplibs_check_method=pass_all 4776 ;; 4777 4778sysv4 | sysv4.3*) 4779 case $host_vendor in 4780 motorola) 4781 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]' 4782 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4783 ;; 4784 ncr) 4785 lt_cv_deplibs_check_method=pass_all 4786 ;; 4787 sequent) 4788 lt_cv_file_magic_cmd='/bin/file' 4789 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4790 ;; 4791 sni) 4792 lt_cv_file_magic_cmd='/bin/file' 4793 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4794 lt_cv_file_magic_test_file=/lib/libc.so 4795 ;; 4796 siemens) 4797 lt_cv_deplibs_check_method=pass_all 4798 ;; 4799 pc) 4800 lt_cv_deplibs_check_method=pass_all 4801 ;; 4802 esac 4803 ;; 4804 4805tpf*) 4806 lt_cv_deplibs_check_method=pass_all 4807 ;; 4808os2*) 4809 lt_cv_deplibs_check_method=pass_all 4810 ;; 4811esac 4812 4813fi 4814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 4815$as_echo "$lt_cv_deplibs_check_method" >&6; } 4816 4817file_magic_glob= 4818want_nocaseglob=no 4819if test "$build" = "$host"; then 4820 case $host_os in 4821 mingw* | pw32*) 4822 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 4823 want_nocaseglob=yes 4824 else 4825 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 4826 fi 4827 ;; 4828 esac 4829fi 4830 4831file_magic_cmd=$lt_cv_file_magic_cmd 4832deplibs_check_method=$lt_cv_deplibs_check_method 4833test -z "$deplibs_check_method" && deplibs_check_method=unknown 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856if test -n "$ac_tool_prefix"; then 4857 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4858set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4860$as_echo_n "checking for $ac_word... " >&6; } 4861if ${ac_cv_prog_DLLTOOL+:} false; then : 4862 $as_echo_n "(cached) " >&6 4863else 4864 if test -n "$DLLTOOL"; then 4865 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4866else 4867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4868for as_dir in $PATH 4869do 4870 IFS=$as_save_IFS 4871 test -z "$as_dir" && as_dir=. 4872 for ac_exec_ext in '' $ac_executable_extensions; do 4873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4874 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4876 break 2 4877 fi 4878done 4879 done 4880IFS=$as_save_IFS 4881 4882fi 4883fi 4884DLLTOOL=$ac_cv_prog_DLLTOOL 4885if test -n "$DLLTOOL"; then 4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4887$as_echo "$DLLTOOL" >&6; } 4888else 4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4890$as_echo "no" >&6; } 4891fi 4892 4893 4894fi 4895if test -z "$ac_cv_prog_DLLTOOL"; then 4896 ac_ct_DLLTOOL=$DLLTOOL 4897 # Extract the first word of "dlltool", so it can be a program name with args. 4898set dummy dlltool; ac_word=$2 4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4900$as_echo_n "checking for $ac_word... " >&6; } 4901if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 4902 $as_echo_n "(cached) " >&6 4903else 4904 if test -n "$ac_ct_DLLTOOL"; then 4905 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4906else 4907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4908for as_dir in $PATH 4909do 4910 IFS=$as_save_IFS 4911 test -z "$as_dir" && as_dir=. 4912 for ac_exec_ext in '' $ac_executable_extensions; do 4913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4914 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4916 break 2 4917 fi 4918done 4919 done 4920IFS=$as_save_IFS 4921 4922fi 4923fi 4924ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4925if test -n "$ac_ct_DLLTOOL"; then 4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4927$as_echo "$ac_ct_DLLTOOL" >&6; } 4928else 4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4930$as_echo "no" >&6; } 4931fi 4932 4933 if test "x$ac_ct_DLLTOOL" = x; then 4934 DLLTOOL="false" 4935 else 4936 case $cross_compiling:$ac_tool_warned in 4937yes:) 4938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4940ac_tool_warned=yes ;; 4941esac 4942 DLLTOOL=$ac_ct_DLLTOOL 4943 fi 4944else 4945 DLLTOOL="$ac_cv_prog_DLLTOOL" 4946fi 4947 4948test -z "$DLLTOOL" && DLLTOOL=dlltool 4949 4950 4951 4952 4953 4954 4955 4956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 4957$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 4958if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 4959 $as_echo_n "(cached) " >&6 4960else 4961 lt_cv_sharedlib_from_linklib_cmd='unknown' 4962 4963case $host_os in 4964cygwin* | mingw* | pw32* | cegcc*) 4965 # two different shell functions defined in ltmain.sh; 4966 # decide which one to use based on capabilities of $DLLTOOL 4967 case `$DLLTOOL --help 2>&1` in 4968 *--identify-strict*) 4969 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 4970 ;; 4971 *) 4972 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 4973 ;; 4974 esac 4975 ;; 4976*) 4977 # fallback: assume linklib IS sharedlib 4978 lt_cv_sharedlib_from_linklib_cmd=$ECHO 4979 ;; 4980esac 4981 4982fi 4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 4984$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 4985sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 4986test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 4987 4988 4989 4990 4991 4992 4993 4994 4995if test -n "$ac_tool_prefix"; then 4996 for ac_prog in ar 4997 do 4998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4999set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5001$as_echo_n "checking for $ac_word... " >&6; } 5002if ${ac_cv_prog_AR+:} false; then : 5003 $as_echo_n "(cached) " >&6 5004else 5005 if test -n "$AR"; then 5006 ac_cv_prog_AR="$AR" # Let the user override the test. 5007else 5008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5009for as_dir in $PATH 5010do 5011 IFS=$as_save_IFS 5012 test -z "$as_dir" && as_dir=. 5013 for ac_exec_ext in '' $ac_executable_extensions; do 5014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5015 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5017 break 2 5018 fi 5019done 5020 done 5021IFS=$as_save_IFS 5022 5023fi 5024fi 5025AR=$ac_cv_prog_AR 5026if test -n "$AR"; then 5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5028$as_echo "$AR" >&6; } 5029else 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5031$as_echo "no" >&6; } 5032fi 5033 5034 5035 test -n "$AR" && break 5036 done 5037fi 5038if test -z "$AR"; then 5039 ac_ct_AR=$AR 5040 for ac_prog in ar 5041do 5042 # Extract the first word of "$ac_prog", so it can be a program name with args. 5043set dummy $ac_prog; ac_word=$2 5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5045$as_echo_n "checking for $ac_word... " >&6; } 5046if ${ac_cv_prog_ac_ct_AR+:} false; then : 5047 $as_echo_n "(cached) " >&6 5048else 5049 if test -n "$ac_ct_AR"; then 5050 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5051else 5052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5053for as_dir in $PATH 5054do 5055 IFS=$as_save_IFS 5056 test -z "$as_dir" && as_dir=. 5057 for ac_exec_ext in '' $ac_executable_extensions; do 5058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5059 ac_cv_prog_ac_ct_AR="$ac_prog" 5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5061 break 2 5062 fi 5063done 5064 done 5065IFS=$as_save_IFS 5066 5067fi 5068fi 5069ac_ct_AR=$ac_cv_prog_ac_ct_AR 5070if test -n "$ac_ct_AR"; then 5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5072$as_echo "$ac_ct_AR" >&6; } 5073else 5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5075$as_echo "no" >&6; } 5076fi 5077 5078 5079 test -n "$ac_ct_AR" && break 5080done 5081 5082 if test "x$ac_ct_AR" = x; then 5083 AR="false" 5084 else 5085 case $cross_compiling:$ac_tool_warned in 5086yes:) 5087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5089ac_tool_warned=yes ;; 5090esac 5091 AR=$ac_ct_AR 5092 fi 5093fi 5094 5095: ${AR=ar} 5096: ${AR_FLAGS=cru} 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5109$as_echo_n "checking for archiver @FILE support... " >&6; } 5110if ${lt_cv_ar_at_file+:} false; then : 5111 $as_echo_n "(cached) " >&6 5112else 5113 lt_cv_ar_at_file=no 5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5115/* end confdefs.h. */ 5116 5117int 5118main () 5119{ 5120 5121 ; 5122 return 0; 5123} 5124_ACEOF 5125if ac_fn_c_try_compile "$LINENO"; then : 5126 echo conftest.$ac_objext > conftest.lst 5127 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5129 (eval $lt_ar_try) 2>&5 5130 ac_status=$? 5131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5132 test $ac_status = 0; } 5133 if test 0 -eq "$ac_status"; then 5134 # Ensure the archiver fails upon bogus file names. 5135 rm -f conftest.$ac_objext libconftest.a 5136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5137 (eval $lt_ar_try) 2>&5 5138 ac_status=$? 5139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5140 test $ac_status = 0; } 5141 if test 0 -ne "$ac_status"; then 5142 lt_cv_ar_at_file=@ 5143 fi 5144 fi 5145 rm -f conftest.* libconftest.a 5146 5147fi 5148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5149 5150fi 5151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5152$as_echo "$lt_cv_ar_at_file" >&6; } 5153 5154if test no = "$lt_cv_ar_at_file"; then 5155 archiver_list_spec= 5156else 5157 archiver_list_spec=$lt_cv_ar_at_file 5158fi 5159 5160 5161 5162 5163 5164 5165 5166if test -n "$ac_tool_prefix"; then 5167 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5168set dummy ${ac_tool_prefix}strip; ac_word=$2 5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5170$as_echo_n "checking for $ac_word... " >&6; } 5171if ${ac_cv_prog_STRIP+:} false; then : 5172 $as_echo_n "(cached) " >&6 5173else 5174 if test -n "$STRIP"; then 5175 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5176else 5177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5178for as_dir in $PATH 5179do 5180 IFS=$as_save_IFS 5181 test -z "$as_dir" && as_dir=. 5182 for ac_exec_ext in '' $ac_executable_extensions; do 5183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5184 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5186 break 2 5187 fi 5188done 5189 done 5190IFS=$as_save_IFS 5191 5192fi 5193fi 5194STRIP=$ac_cv_prog_STRIP 5195if test -n "$STRIP"; then 5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5197$as_echo "$STRIP" >&6; } 5198else 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5200$as_echo "no" >&6; } 5201fi 5202 5203 5204fi 5205if test -z "$ac_cv_prog_STRIP"; then 5206 ac_ct_STRIP=$STRIP 5207 # Extract the first word of "strip", so it can be a program name with args. 5208set dummy strip; ac_word=$2 5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5210$as_echo_n "checking for $ac_word... " >&6; } 5211if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5212 $as_echo_n "(cached) " >&6 5213else 5214 if test -n "$ac_ct_STRIP"; then 5215 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5216else 5217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5218for as_dir in $PATH 5219do 5220 IFS=$as_save_IFS 5221 test -z "$as_dir" && as_dir=. 5222 for ac_exec_ext in '' $ac_executable_extensions; do 5223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5224 ac_cv_prog_ac_ct_STRIP="strip" 5225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5226 break 2 5227 fi 5228done 5229 done 5230IFS=$as_save_IFS 5231 5232fi 5233fi 5234ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5235if test -n "$ac_ct_STRIP"; then 5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5237$as_echo "$ac_ct_STRIP" >&6; } 5238else 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5240$as_echo "no" >&6; } 5241fi 5242 5243 if test "x$ac_ct_STRIP" = x; then 5244 STRIP=":" 5245 else 5246 case $cross_compiling:$ac_tool_warned in 5247yes:) 5248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5250ac_tool_warned=yes ;; 5251esac 5252 STRIP=$ac_ct_STRIP 5253 fi 5254else 5255 STRIP="$ac_cv_prog_STRIP" 5256fi 5257 5258test -z "$STRIP" && STRIP=: 5259 5260 5261 5262 5263 5264 5265if test -n "$ac_tool_prefix"; then 5266 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5267set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5269$as_echo_n "checking for $ac_word... " >&6; } 5270if ${ac_cv_prog_RANLIB+:} false; then : 5271 $as_echo_n "(cached) " >&6 5272else 5273 if test -n "$RANLIB"; then 5274 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5275else 5276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5277for as_dir in $PATH 5278do 5279 IFS=$as_save_IFS 5280 test -z "$as_dir" && as_dir=. 5281 for ac_exec_ext in '' $ac_executable_extensions; do 5282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5283 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5285 break 2 5286 fi 5287done 5288 done 5289IFS=$as_save_IFS 5290 5291fi 5292fi 5293RANLIB=$ac_cv_prog_RANLIB 5294if test -n "$RANLIB"; then 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5296$as_echo "$RANLIB" >&6; } 5297else 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5299$as_echo "no" >&6; } 5300fi 5301 5302 5303fi 5304if test -z "$ac_cv_prog_RANLIB"; then 5305 ac_ct_RANLIB=$RANLIB 5306 # Extract the first word of "ranlib", so it can be a program name with args. 5307set dummy ranlib; ac_word=$2 5308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5309$as_echo_n "checking for $ac_word... " >&6; } 5310if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5311 $as_echo_n "(cached) " >&6 5312else 5313 if test -n "$ac_ct_RANLIB"; then 5314 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5315else 5316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5317for as_dir in $PATH 5318do 5319 IFS=$as_save_IFS 5320 test -z "$as_dir" && as_dir=. 5321 for ac_exec_ext in '' $ac_executable_extensions; do 5322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5323 ac_cv_prog_ac_ct_RANLIB="ranlib" 5324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5325 break 2 5326 fi 5327done 5328 done 5329IFS=$as_save_IFS 5330 5331fi 5332fi 5333ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5334if test -n "$ac_ct_RANLIB"; then 5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5336$as_echo "$ac_ct_RANLIB" >&6; } 5337else 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5339$as_echo "no" >&6; } 5340fi 5341 5342 if test "x$ac_ct_RANLIB" = x; then 5343 RANLIB=":" 5344 else 5345 case $cross_compiling:$ac_tool_warned in 5346yes:) 5347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5349ac_tool_warned=yes ;; 5350esac 5351 RANLIB=$ac_ct_RANLIB 5352 fi 5353else 5354 RANLIB="$ac_cv_prog_RANLIB" 5355fi 5356 5357test -z "$RANLIB" && RANLIB=: 5358 5359 5360 5361 5362 5363 5364# Determine commands to create old-style static archives. 5365old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5366old_postinstall_cmds='chmod 644 $oldlib' 5367old_postuninstall_cmds= 5368 5369if test -n "$RANLIB"; then 5370 case $host_os in 5371 bitrig* | openbsd*) 5372 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5373 ;; 5374 *) 5375 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5376 ;; 5377 esac 5378 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5379fi 5380 5381case $host_os in 5382 darwin*) 5383 lock_old_archive_extraction=yes ;; 5384 *) 5385 lock_old_archive_extraction=no ;; 5386esac 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408for ac_prog in gawk mawk nawk awk 5409do 5410 # Extract the first word of "$ac_prog", so it can be a program name with args. 5411set dummy $ac_prog; ac_word=$2 5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5413$as_echo_n "checking for $ac_word... " >&6; } 5414if ${ac_cv_prog_AWK+:} false; then : 5415 $as_echo_n "(cached) " >&6 5416else 5417 if test -n "$AWK"; then 5418 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5419else 5420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5421for as_dir in $PATH 5422do 5423 IFS=$as_save_IFS 5424 test -z "$as_dir" && as_dir=. 5425 for ac_exec_ext in '' $ac_executable_extensions; do 5426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5427 ac_cv_prog_AWK="$ac_prog" 5428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5429 break 2 5430 fi 5431done 5432 done 5433IFS=$as_save_IFS 5434 5435fi 5436fi 5437AWK=$ac_cv_prog_AWK 5438if test -n "$AWK"; then 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5440$as_echo "$AWK" >&6; } 5441else 5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5443$as_echo "no" >&6; } 5444fi 5445 5446 5447 test -n "$AWK" && break 5448done 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468# If no C compiler was specified, use CC. 5469LTCC=${LTCC-"$CC"} 5470 5471# If no C compiler flags were specified, use CFLAGS. 5472LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5473 5474# Allow CC to be a program name with arguments. 5475compiler=$CC 5476 5477 5478# Check for command to grab the raw symbol name followed by C symbol from nm. 5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5480$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5481if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5482 $as_echo_n "(cached) " >&6 5483else 5484 5485# These are sane defaults that work on at least a few old systems. 5486# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5487 5488# Character class describing NM global symbol codes. 5489symcode='[BCDEGRST]' 5490 5491# Regexp to match symbols that can be accessed directly from C. 5492sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5493 5494# Define system-specific variables. 5495case $host_os in 5496aix*) 5497 symcode='[BCDT]' 5498 ;; 5499cygwin* | mingw* | pw32* | cegcc*) 5500 symcode='[ABCDGISTW]' 5501 ;; 5502hpux*) 5503 if test ia64 = "$host_cpu"; then 5504 symcode='[ABCDEGRST]' 5505 fi 5506 ;; 5507irix* | nonstopux*) 5508 symcode='[BCDEGRST]' 5509 ;; 5510osf*) 5511 symcode='[BCDEGQRST]' 5512 ;; 5513solaris*) 5514 symcode='[BDRT]' 5515 ;; 5516sco3.2v5*) 5517 symcode='[DT]' 5518 ;; 5519sysv4.2uw2*) 5520 symcode='[DT]' 5521 ;; 5522sysv5* | sco5v6* | unixware* | OpenUNIX*) 5523 symcode='[ABDT]' 5524 ;; 5525sysv4) 5526 symcode='[DFNSTU]' 5527 ;; 5528esac 5529 5530# If we're using GNU nm, then use its standard symbol codes. 5531case `$NM -V 2>&1` in 5532*GNU* | *'with BFD'*) 5533 symcode='[ABCDGIRSTW]' ;; 5534esac 5535 5536if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5537 # Gets list of data symbols to import. 5538 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 5539 # Adjust the below global symbol transforms to fixup imported variables. 5540 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 5541 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 5542 lt_c_name_lib_hook="\ 5543 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 5544 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 5545else 5546 # Disable hooks by default. 5547 lt_cv_sys_global_symbol_to_import= 5548 lt_cdecl_hook= 5549 lt_c_name_hook= 5550 lt_c_name_lib_hook= 5551fi 5552 5553# Transform an extracted symbol line into a proper C declaration. 5554# Some systems (esp. on ia64) link data and code symbols differently, 5555# so use this general approach. 5556lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 5557$lt_cdecl_hook\ 5558" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 5559" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 5560 5561# Transform an extracted symbol line into symbol name and symbol address 5562lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 5563$lt_c_name_hook\ 5564" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 5565" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 5566 5567# Transform an extracted symbol line into symbol name with lib prefix and 5568# symbol address. 5569lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 5570$lt_c_name_lib_hook\ 5571" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 5572" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 5573" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 5574 5575# Handle CRLF in mingw tool chain 5576opt_cr= 5577case $build_os in 5578mingw*) 5579 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5580 ;; 5581esac 5582 5583# Try without a prefix underscore, then with it. 5584for ac_symprfx in "" "_"; do 5585 5586 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5587 symxfrm="\\1 $ac_symprfx\\2 \\2" 5588 5589 # Write the raw and C identifiers. 5590 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5591 # Fake it for dumpbin and say T for any non-static function, 5592 # D for any global variable and I for any imported variable. 5593 # Also find C++ and __fastcall symbols from MSVC++, 5594 # which start with @ or ?. 5595 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5596" {last_section=section; section=\$ 3};"\ 5597" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5598" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5599" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 5600" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 5601" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 5602" \$ 0!~/External *\|/{next};"\ 5603" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5604" {if(hide[section]) next};"\ 5605" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 5606" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 5607" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 5608" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 5609" ' prfx=^$ac_symprfx" 5610 else 5611 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5612 fi 5613 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5614 5615 # Check to see that the pipe works correctly. 5616 pipe_works=no 5617 5618 rm -f conftest* 5619 cat > conftest.$ac_ext <<_LT_EOF 5620#ifdef __cplusplus 5621extern "C" { 5622#endif 5623char nm_test_var; 5624void nm_test_func(void); 5625void nm_test_func(void){} 5626#ifdef __cplusplus 5627} 5628#endif 5629int main(){nm_test_var='a';nm_test_func();return(0);} 5630_LT_EOF 5631 5632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5633 (eval $ac_compile) 2>&5 5634 ac_status=$? 5635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5636 test $ac_status = 0; }; then 5637 # Now try to grab the symbols. 5638 nlist=conftest.nm 5639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5640 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5641 ac_status=$? 5642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5643 test $ac_status = 0; } && test -s "$nlist"; then 5644 # Try sorting and uniquifying the output. 5645 if sort "$nlist" | uniq > "$nlist"T; then 5646 mv -f "$nlist"T "$nlist" 5647 else 5648 rm -f "$nlist"T 5649 fi 5650 5651 # Make sure that we snagged all the symbols we need. 5652 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5653 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5654 cat <<_LT_EOF > conftest.$ac_ext 5655/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5656#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 5657/* DATA imports from DLLs on WIN32 can't be const, because runtime 5658 relocations are performed -- see ld's documentation on pseudo-relocs. */ 5659# define LT_DLSYM_CONST 5660#elif defined __osf__ 5661/* This system does not cope well with relocations in const data. */ 5662# define LT_DLSYM_CONST 5663#else 5664# define LT_DLSYM_CONST const 5665#endif 5666 5667#ifdef __cplusplus 5668extern "C" { 5669#endif 5670 5671_LT_EOF 5672 # Now generate the symbol file. 5673 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5674 5675 cat <<_LT_EOF >> conftest.$ac_ext 5676 5677/* The mapping between symbol names and symbols. */ 5678LT_DLSYM_CONST struct { 5679 const char *name; 5680 void *address; 5681} 5682lt__PROGRAM__LTX_preloaded_symbols[] = 5683{ 5684 { "@PROGRAM@", (void *) 0 }, 5685_LT_EOF 5686 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5687 cat <<\_LT_EOF >> conftest.$ac_ext 5688 {0, (void *) 0} 5689}; 5690 5691/* This works around a problem in FreeBSD linker */ 5692#ifdef FREEBSD_WORKAROUND 5693static const void *lt_preloaded_setup() { 5694 return lt__PROGRAM__LTX_preloaded_symbols; 5695} 5696#endif 5697 5698#ifdef __cplusplus 5699} 5700#endif 5701_LT_EOF 5702 # Now try linking the two files. 5703 mv conftest.$ac_objext conftstm.$ac_objext 5704 lt_globsym_save_LIBS=$LIBS 5705 lt_globsym_save_CFLAGS=$CFLAGS 5706 LIBS=conftstm.$ac_objext 5707 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5709 (eval $ac_link) 2>&5 5710 ac_status=$? 5711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5712 test $ac_status = 0; } && test -s conftest$ac_exeext; then 5713 pipe_works=yes 5714 fi 5715 LIBS=$lt_globsym_save_LIBS 5716 CFLAGS=$lt_globsym_save_CFLAGS 5717 else 5718 echo "cannot find nm_test_func in $nlist" >&5 5719 fi 5720 else 5721 echo "cannot find nm_test_var in $nlist" >&5 5722 fi 5723 else 5724 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5725 fi 5726 else 5727 echo "$progname: failed program was:" >&5 5728 cat conftest.$ac_ext >&5 5729 fi 5730 rm -rf conftest* conftst* 5731 5732 # Do not use the global_symbol_pipe unless it works. 5733 if test yes = "$pipe_works"; then 5734 break 5735 else 5736 lt_cv_sys_global_symbol_pipe= 5737 fi 5738done 5739 5740fi 5741 5742if test -z "$lt_cv_sys_global_symbol_pipe"; then 5743 lt_cv_sys_global_symbol_to_cdecl= 5744fi 5745if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5747$as_echo "failed" >&6; } 5748else 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5750$as_echo "ok" >&6; } 5751fi 5752 5753# Response file support. 5754if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5755 nm_file_list_spec='@' 5756elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 5757 nm_file_list_spec='@' 5758fi 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 5797$as_echo_n "checking for sysroot... " >&6; } 5798 5799# Check whether --with-sysroot was given. 5800if test "${with_sysroot+set}" = set; then : 5801 withval=$with_sysroot; 5802else 5803 with_sysroot=no 5804fi 5805 5806 5807lt_sysroot= 5808case $with_sysroot in #( 5809 yes) 5810 if test yes = "$GCC"; then 5811 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 5812 fi 5813 ;; #( 5814 /*) 5815 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 5816 ;; #( 5817 no|'') 5818 ;; #( 5819 *) 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 5821$as_echo "$with_sysroot" >&6; } 5822 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 5823 ;; 5824esac 5825 5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 5827$as_echo "${lt_sysroot:-no}" >&6; } 5828 5829 5830 5831 5832 5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 5834$as_echo_n "checking for a working dd... " >&6; } 5835if ${ac_cv_path_lt_DD+:} false; then : 5836 $as_echo_n "(cached) " >&6 5837else 5838 printf 0123456789abcdef0123456789abcdef >conftest.i 5839cat conftest.i conftest.i >conftest2.i 5840: ${lt_DD:=$DD} 5841if test -z "$lt_DD"; then 5842 ac_path_lt_DD_found=false 5843 # Loop through the user's path and test for each of PROGNAME-LIST 5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5845for as_dir in $PATH 5846do 5847 IFS=$as_save_IFS 5848 test -z "$as_dir" && as_dir=. 5849 for ac_prog in dd; do 5850 for ac_exec_ext in '' $ac_executable_extensions; do 5851 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 5852 as_fn_executable_p "$ac_path_lt_DD" || continue 5853if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 5854 cmp -s conftest.i conftest.out \ 5855 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 5856fi 5857 $ac_path_lt_DD_found && break 3 5858 done 5859 done 5860 done 5861IFS=$as_save_IFS 5862 if test -z "$ac_cv_path_lt_DD"; then 5863 : 5864 fi 5865else 5866 ac_cv_path_lt_DD=$lt_DD 5867fi 5868 5869rm -f conftest.i conftest2.i conftest.out 5870fi 5871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 5872$as_echo "$ac_cv_path_lt_DD" >&6; } 5873 5874 5875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 5876$as_echo_n "checking how to truncate binary pipes... " >&6; } 5877if ${lt_cv_truncate_bin+:} false; then : 5878 $as_echo_n "(cached) " >&6 5879else 5880 printf 0123456789abcdef0123456789abcdef >conftest.i 5881cat conftest.i conftest.i >conftest2.i 5882lt_cv_truncate_bin= 5883if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 5884 cmp -s conftest.i conftest.out \ 5885 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 5886fi 5887rm -f conftest.i conftest2.i conftest.out 5888test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 5889fi 5890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 5891$as_echo "$lt_cv_truncate_bin" >&6; } 5892 5893 5894 5895 5896 5897 5898 5899# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 5900func_cc_basename () 5901{ 5902 for cc_temp in $*""; do 5903 case $cc_temp in 5904 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 5905 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 5906 \-*) ;; 5907 *) break;; 5908 esac 5909 done 5910 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 5911} 5912 5913# Check whether --enable-libtool-lock was given. 5914if test "${enable_libtool_lock+set}" = set; then : 5915 enableval=$enable_libtool_lock; 5916fi 5917 5918test no = "$enable_libtool_lock" || enable_libtool_lock=yes 5919 5920# Some flags need to be propagated to the compiler or linker for good 5921# libtool support. 5922case $host in 5923ia64-*-hpux*) 5924 # Find out what ABI is being produced by ac_compile, and set mode 5925 # options accordingly. 5926 echo 'int i;' > conftest.$ac_ext 5927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5928 (eval $ac_compile) 2>&5 5929 ac_status=$? 5930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5931 test $ac_status = 0; }; then 5932 case `/usr/bin/file conftest.$ac_objext` in 5933 *ELF-32*) 5934 HPUX_IA64_MODE=32 5935 ;; 5936 *ELF-64*) 5937 HPUX_IA64_MODE=64 5938 ;; 5939 esac 5940 fi 5941 rm -rf conftest* 5942 ;; 5943*-*-irix6*) 5944 # Find out what ABI is being produced by ac_compile, and set linker 5945 # options accordingly. 5946 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 5947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5948 (eval $ac_compile) 2>&5 5949 ac_status=$? 5950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5951 test $ac_status = 0; }; then 5952 if test yes = "$lt_cv_prog_gnu_ld"; then 5953 case `/usr/bin/file conftest.$ac_objext` in 5954 *32-bit*) 5955 LD="${LD-ld} -melf32bsmip" 5956 ;; 5957 *N32*) 5958 LD="${LD-ld} -melf32bmipn32" 5959 ;; 5960 *64-bit*) 5961 LD="${LD-ld} -melf64bmip" 5962 ;; 5963 esac 5964 else 5965 case `/usr/bin/file conftest.$ac_objext` in 5966 *32-bit*) 5967 LD="${LD-ld} -32" 5968 ;; 5969 *N32*) 5970 LD="${LD-ld} -n32" 5971 ;; 5972 *64-bit*) 5973 LD="${LD-ld} -64" 5974 ;; 5975 esac 5976 fi 5977 fi 5978 rm -rf conftest* 5979 ;; 5980 5981mips64*-*linux*) 5982 # Find out what ABI is being produced by ac_compile, and set linker 5983 # options accordingly. 5984 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 5985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5986 (eval $ac_compile) 2>&5 5987 ac_status=$? 5988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5989 test $ac_status = 0; }; then 5990 emul=elf 5991 case `/usr/bin/file conftest.$ac_objext` in 5992 *32-bit*) 5993 emul="${emul}32" 5994 ;; 5995 *64-bit*) 5996 emul="${emul}64" 5997 ;; 5998 esac 5999 case `/usr/bin/file conftest.$ac_objext` in 6000 *MSB*) 6001 emul="${emul}btsmip" 6002 ;; 6003 *LSB*) 6004 emul="${emul}ltsmip" 6005 ;; 6006 esac 6007 case `/usr/bin/file conftest.$ac_objext` in 6008 *N32*) 6009 emul="${emul}n32" 6010 ;; 6011 esac 6012 LD="${LD-ld} -m $emul" 6013 fi 6014 rm -rf conftest* 6015 ;; 6016 6017x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6018s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6019 # Find out what ABI is being produced by ac_compile, and set linker 6020 # options accordingly. Note that the listed cases only cover the 6021 # situations where additional linker options are needed (such as when 6022 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6023 # vice versa); the common cases where no linker options are needed do 6024 # not appear in the list. 6025 echo 'int i;' > conftest.$ac_ext 6026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6027 (eval $ac_compile) 2>&5 6028 ac_status=$? 6029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6030 test $ac_status = 0; }; then 6031 case `/usr/bin/file conftest.o` in 6032 *32-bit*) 6033 case $host in 6034 x86_64-*kfreebsd*-gnu) 6035 LD="${LD-ld} -m elf_i386_fbsd" 6036 ;; 6037 x86_64-*linux*) 6038 case `/usr/bin/file conftest.o` in 6039 *x86-64*) 6040 LD="${LD-ld} -m elf32_x86_64" 6041 ;; 6042 *) 6043 LD="${LD-ld} -m elf_i386" 6044 ;; 6045 esac 6046 ;; 6047 powerpc64le-*linux*) 6048 LD="${LD-ld} -m elf32lppclinux" 6049 ;; 6050 powerpc64-*linux*) 6051 LD="${LD-ld} -m elf32ppclinux" 6052 ;; 6053 s390x-*linux*) 6054 LD="${LD-ld} -m elf_s390" 6055 ;; 6056 sparc64-*linux*) 6057 LD="${LD-ld} -m elf32_sparc" 6058 ;; 6059 esac 6060 ;; 6061 *64-bit*) 6062 case $host in 6063 x86_64-*kfreebsd*-gnu) 6064 LD="${LD-ld} -m elf_x86_64_fbsd" 6065 ;; 6066 x86_64-*linux*) 6067 LD="${LD-ld} -m elf_x86_64" 6068 ;; 6069 powerpcle-*linux*) 6070 LD="${LD-ld} -m elf64lppc" 6071 ;; 6072 powerpc-*linux*) 6073 LD="${LD-ld} -m elf64ppc" 6074 ;; 6075 s390*-*linux*|s390*-*tpf*) 6076 LD="${LD-ld} -m elf64_s390" 6077 ;; 6078 sparc*-*linux*) 6079 LD="${LD-ld} -m elf64_sparc" 6080 ;; 6081 esac 6082 ;; 6083 esac 6084 fi 6085 rm -rf conftest* 6086 ;; 6087 6088*-*-sco3.2v5*) 6089 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6090 SAVE_CFLAGS=$CFLAGS 6091 CFLAGS="$CFLAGS -belf" 6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6093$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6094if ${lt_cv_cc_needs_belf+:} false; then : 6095 $as_echo_n "(cached) " >&6 6096else 6097 ac_ext=c 6098ac_cpp='$CPP $CPPFLAGS' 6099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6101ac_compiler_gnu=$ac_cv_c_compiler_gnu 6102 6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6104/* end confdefs.h. */ 6105 6106int 6107main () 6108{ 6109 6110 ; 6111 return 0; 6112} 6113_ACEOF 6114if ac_fn_c_try_link "$LINENO"; then : 6115 lt_cv_cc_needs_belf=yes 6116else 6117 lt_cv_cc_needs_belf=no 6118fi 6119rm -f core conftest.err conftest.$ac_objext \ 6120 conftest$ac_exeext conftest.$ac_ext 6121 ac_ext=c 6122ac_cpp='$CPP $CPPFLAGS' 6123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6125ac_compiler_gnu=$ac_cv_c_compiler_gnu 6126 6127fi 6128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6129$as_echo "$lt_cv_cc_needs_belf" >&6; } 6130 if test yes != "$lt_cv_cc_needs_belf"; then 6131 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6132 CFLAGS=$SAVE_CFLAGS 6133 fi 6134 ;; 6135*-*solaris*) 6136 # Find out what ABI is being produced by ac_compile, and set linker 6137 # options accordingly. 6138 echo 'int i;' > conftest.$ac_ext 6139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6140 (eval $ac_compile) 2>&5 6141 ac_status=$? 6142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6143 test $ac_status = 0; }; then 6144 case `/usr/bin/file conftest.o` in 6145 *64-bit*) 6146 case $lt_cv_prog_gnu_ld in 6147 yes*) 6148 case $host in 6149 i?86-*-solaris*|x86_64-*-solaris*) 6150 LD="${LD-ld} -m elf_x86_64" 6151 ;; 6152 sparc*-*-solaris*) 6153 LD="${LD-ld} -m elf64_sparc" 6154 ;; 6155 esac 6156 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6157 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6158 LD=${LD-ld}_sol2 6159 fi 6160 ;; 6161 *) 6162 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6163 LD="${LD-ld} -64" 6164 fi 6165 ;; 6166 esac 6167 ;; 6168 esac 6169 fi 6170 rm -rf conftest* 6171 ;; 6172esac 6173 6174need_locks=$enable_libtool_lock 6175 6176if test -n "$ac_tool_prefix"; then 6177 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6178set dummy ${ac_tool_prefix}mt; ac_word=$2 6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6180$as_echo_n "checking for $ac_word... " >&6; } 6181if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6182 $as_echo_n "(cached) " >&6 6183else 6184 if test -n "$MANIFEST_TOOL"; then 6185 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6186else 6187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6188for as_dir in $PATH 6189do 6190 IFS=$as_save_IFS 6191 test -z "$as_dir" && as_dir=. 6192 for ac_exec_ext in '' $ac_executable_extensions; do 6193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6194 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6196 break 2 6197 fi 6198done 6199 done 6200IFS=$as_save_IFS 6201 6202fi 6203fi 6204MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6205if test -n "$MANIFEST_TOOL"; then 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6207$as_echo "$MANIFEST_TOOL" >&6; } 6208else 6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6210$as_echo "no" >&6; } 6211fi 6212 6213 6214fi 6215if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6216 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6217 # Extract the first word of "mt", so it can be a program name with args. 6218set dummy mt; ac_word=$2 6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6220$as_echo_n "checking for $ac_word... " >&6; } 6221if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6222 $as_echo_n "(cached) " >&6 6223else 6224 if test -n "$ac_ct_MANIFEST_TOOL"; then 6225 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6226else 6227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6228for as_dir in $PATH 6229do 6230 IFS=$as_save_IFS 6231 test -z "$as_dir" && as_dir=. 6232 for ac_exec_ext in '' $ac_executable_extensions; do 6233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6234 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6236 break 2 6237 fi 6238done 6239 done 6240IFS=$as_save_IFS 6241 6242fi 6243fi 6244ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6245if test -n "$ac_ct_MANIFEST_TOOL"; then 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6247$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6248else 6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6250$as_echo "no" >&6; } 6251fi 6252 6253 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6254 MANIFEST_TOOL=":" 6255 else 6256 case $cross_compiling:$ac_tool_warned in 6257yes:) 6258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6260ac_tool_warned=yes ;; 6261esac 6262 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6263 fi 6264else 6265 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6266fi 6267 6268test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6270$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6271if ${lt_cv_path_mainfest_tool+:} false; then : 6272 $as_echo_n "(cached) " >&6 6273else 6274 lt_cv_path_mainfest_tool=no 6275 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6276 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6277 cat conftest.err >&5 6278 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6279 lt_cv_path_mainfest_tool=yes 6280 fi 6281 rm -f conftest* 6282fi 6283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6284$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6285if test yes != "$lt_cv_path_mainfest_tool"; then 6286 MANIFEST_TOOL=: 6287fi 6288 6289 6290 6291 6292 6293 6294 case $host_os in 6295 rhapsody* | darwin*) 6296 if test -n "$ac_tool_prefix"; then 6297 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6298set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6300$as_echo_n "checking for $ac_word... " >&6; } 6301if ${ac_cv_prog_DSYMUTIL+:} false; then : 6302 $as_echo_n "(cached) " >&6 6303else 6304 if test -n "$DSYMUTIL"; then 6305 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6306else 6307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6308for as_dir in $PATH 6309do 6310 IFS=$as_save_IFS 6311 test -z "$as_dir" && as_dir=. 6312 for ac_exec_ext in '' $ac_executable_extensions; do 6313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6314 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6316 break 2 6317 fi 6318done 6319 done 6320IFS=$as_save_IFS 6321 6322fi 6323fi 6324DSYMUTIL=$ac_cv_prog_DSYMUTIL 6325if test -n "$DSYMUTIL"; then 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6327$as_echo "$DSYMUTIL" >&6; } 6328else 6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6330$as_echo "no" >&6; } 6331fi 6332 6333 6334fi 6335if test -z "$ac_cv_prog_DSYMUTIL"; then 6336 ac_ct_DSYMUTIL=$DSYMUTIL 6337 # Extract the first word of "dsymutil", so it can be a program name with args. 6338set dummy dsymutil; ac_word=$2 6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6340$as_echo_n "checking for $ac_word... " >&6; } 6341if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6342 $as_echo_n "(cached) " >&6 6343else 6344 if test -n "$ac_ct_DSYMUTIL"; then 6345 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6346else 6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6348for as_dir in $PATH 6349do 6350 IFS=$as_save_IFS 6351 test -z "$as_dir" && as_dir=. 6352 for ac_exec_ext in '' $ac_executable_extensions; do 6353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6354 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6356 break 2 6357 fi 6358done 6359 done 6360IFS=$as_save_IFS 6361 6362fi 6363fi 6364ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6365if test -n "$ac_ct_DSYMUTIL"; then 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6367$as_echo "$ac_ct_DSYMUTIL" >&6; } 6368else 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6370$as_echo "no" >&6; } 6371fi 6372 6373 if test "x$ac_ct_DSYMUTIL" = x; then 6374 DSYMUTIL=":" 6375 else 6376 case $cross_compiling:$ac_tool_warned in 6377yes:) 6378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6380ac_tool_warned=yes ;; 6381esac 6382 DSYMUTIL=$ac_ct_DSYMUTIL 6383 fi 6384else 6385 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6386fi 6387 6388 if test -n "$ac_tool_prefix"; then 6389 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6390set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6392$as_echo_n "checking for $ac_word... " >&6; } 6393if ${ac_cv_prog_NMEDIT+:} false; then : 6394 $as_echo_n "(cached) " >&6 6395else 6396 if test -n "$NMEDIT"; then 6397 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6398else 6399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6400for as_dir in $PATH 6401do 6402 IFS=$as_save_IFS 6403 test -z "$as_dir" && as_dir=. 6404 for ac_exec_ext in '' $ac_executable_extensions; do 6405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6406 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6408 break 2 6409 fi 6410done 6411 done 6412IFS=$as_save_IFS 6413 6414fi 6415fi 6416NMEDIT=$ac_cv_prog_NMEDIT 6417if test -n "$NMEDIT"; then 6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6419$as_echo "$NMEDIT" >&6; } 6420else 6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6422$as_echo "no" >&6; } 6423fi 6424 6425 6426fi 6427if test -z "$ac_cv_prog_NMEDIT"; then 6428 ac_ct_NMEDIT=$NMEDIT 6429 # Extract the first word of "nmedit", so it can be a program name with args. 6430set dummy nmedit; ac_word=$2 6431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6432$as_echo_n "checking for $ac_word... " >&6; } 6433if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6434 $as_echo_n "(cached) " >&6 6435else 6436 if test -n "$ac_ct_NMEDIT"; then 6437 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6438else 6439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6440for as_dir in $PATH 6441do 6442 IFS=$as_save_IFS 6443 test -z "$as_dir" && as_dir=. 6444 for ac_exec_ext in '' $ac_executable_extensions; do 6445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6446 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6448 break 2 6449 fi 6450done 6451 done 6452IFS=$as_save_IFS 6453 6454fi 6455fi 6456ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6457if test -n "$ac_ct_NMEDIT"; then 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6459$as_echo "$ac_ct_NMEDIT" >&6; } 6460else 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6462$as_echo "no" >&6; } 6463fi 6464 6465 if test "x$ac_ct_NMEDIT" = x; then 6466 NMEDIT=":" 6467 else 6468 case $cross_compiling:$ac_tool_warned in 6469yes:) 6470{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6471$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6472ac_tool_warned=yes ;; 6473esac 6474 NMEDIT=$ac_ct_NMEDIT 6475 fi 6476else 6477 NMEDIT="$ac_cv_prog_NMEDIT" 6478fi 6479 6480 if test -n "$ac_tool_prefix"; then 6481 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6482set dummy ${ac_tool_prefix}lipo; ac_word=$2 6483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6484$as_echo_n "checking for $ac_word... " >&6; } 6485if ${ac_cv_prog_LIPO+:} false; then : 6486 $as_echo_n "(cached) " >&6 6487else 6488 if test -n "$LIPO"; then 6489 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6490else 6491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6492for as_dir in $PATH 6493do 6494 IFS=$as_save_IFS 6495 test -z "$as_dir" && as_dir=. 6496 for ac_exec_ext in '' $ac_executable_extensions; do 6497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6498 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6500 break 2 6501 fi 6502done 6503 done 6504IFS=$as_save_IFS 6505 6506fi 6507fi 6508LIPO=$ac_cv_prog_LIPO 6509if test -n "$LIPO"; then 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6511$as_echo "$LIPO" >&6; } 6512else 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6514$as_echo "no" >&6; } 6515fi 6516 6517 6518fi 6519if test -z "$ac_cv_prog_LIPO"; then 6520 ac_ct_LIPO=$LIPO 6521 # Extract the first word of "lipo", so it can be a program name with args. 6522set dummy lipo; ac_word=$2 6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6524$as_echo_n "checking for $ac_word... " >&6; } 6525if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6526 $as_echo_n "(cached) " >&6 6527else 6528 if test -n "$ac_ct_LIPO"; then 6529 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6530else 6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6532for as_dir in $PATH 6533do 6534 IFS=$as_save_IFS 6535 test -z "$as_dir" && as_dir=. 6536 for ac_exec_ext in '' $ac_executable_extensions; do 6537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6538 ac_cv_prog_ac_ct_LIPO="lipo" 6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6540 break 2 6541 fi 6542done 6543 done 6544IFS=$as_save_IFS 6545 6546fi 6547fi 6548ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6549if test -n "$ac_ct_LIPO"; then 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6551$as_echo "$ac_ct_LIPO" >&6; } 6552else 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6554$as_echo "no" >&6; } 6555fi 6556 6557 if test "x$ac_ct_LIPO" = x; then 6558 LIPO=":" 6559 else 6560 case $cross_compiling:$ac_tool_warned in 6561yes:) 6562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6564ac_tool_warned=yes ;; 6565esac 6566 LIPO=$ac_ct_LIPO 6567 fi 6568else 6569 LIPO="$ac_cv_prog_LIPO" 6570fi 6571 6572 if test -n "$ac_tool_prefix"; then 6573 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6574set dummy ${ac_tool_prefix}otool; ac_word=$2 6575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6576$as_echo_n "checking for $ac_word... " >&6; } 6577if ${ac_cv_prog_OTOOL+:} false; then : 6578 $as_echo_n "(cached) " >&6 6579else 6580 if test -n "$OTOOL"; then 6581 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6582else 6583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6584for as_dir in $PATH 6585do 6586 IFS=$as_save_IFS 6587 test -z "$as_dir" && as_dir=. 6588 for ac_exec_ext in '' $ac_executable_extensions; do 6589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6590 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6592 break 2 6593 fi 6594done 6595 done 6596IFS=$as_save_IFS 6597 6598fi 6599fi 6600OTOOL=$ac_cv_prog_OTOOL 6601if test -n "$OTOOL"; then 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6603$as_echo "$OTOOL" >&6; } 6604else 6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6606$as_echo "no" >&6; } 6607fi 6608 6609 6610fi 6611if test -z "$ac_cv_prog_OTOOL"; then 6612 ac_ct_OTOOL=$OTOOL 6613 # Extract the first word of "otool", so it can be a program name with args. 6614set dummy otool; ac_word=$2 6615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6616$as_echo_n "checking for $ac_word... " >&6; } 6617if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6618 $as_echo_n "(cached) " >&6 6619else 6620 if test -n "$ac_ct_OTOOL"; then 6621 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6622else 6623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6624for as_dir in $PATH 6625do 6626 IFS=$as_save_IFS 6627 test -z "$as_dir" && as_dir=. 6628 for ac_exec_ext in '' $ac_executable_extensions; do 6629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6630 ac_cv_prog_ac_ct_OTOOL="otool" 6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6632 break 2 6633 fi 6634done 6635 done 6636IFS=$as_save_IFS 6637 6638fi 6639fi 6640ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6641if test -n "$ac_ct_OTOOL"; then 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6643$as_echo "$ac_ct_OTOOL" >&6; } 6644else 6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6646$as_echo "no" >&6; } 6647fi 6648 6649 if test "x$ac_ct_OTOOL" = x; then 6650 OTOOL=":" 6651 else 6652 case $cross_compiling:$ac_tool_warned in 6653yes:) 6654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6656ac_tool_warned=yes ;; 6657esac 6658 OTOOL=$ac_ct_OTOOL 6659 fi 6660else 6661 OTOOL="$ac_cv_prog_OTOOL" 6662fi 6663 6664 if test -n "$ac_tool_prefix"; then 6665 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6666set dummy ${ac_tool_prefix}otool64; ac_word=$2 6667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6668$as_echo_n "checking for $ac_word... " >&6; } 6669if ${ac_cv_prog_OTOOL64+:} false; then : 6670 $as_echo_n "(cached) " >&6 6671else 6672 if test -n "$OTOOL64"; then 6673 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6674else 6675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6676for as_dir in $PATH 6677do 6678 IFS=$as_save_IFS 6679 test -z "$as_dir" && as_dir=. 6680 for ac_exec_ext in '' $ac_executable_extensions; do 6681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6682 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6684 break 2 6685 fi 6686done 6687 done 6688IFS=$as_save_IFS 6689 6690fi 6691fi 6692OTOOL64=$ac_cv_prog_OTOOL64 6693if test -n "$OTOOL64"; then 6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6695$as_echo "$OTOOL64" >&6; } 6696else 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6698$as_echo "no" >&6; } 6699fi 6700 6701 6702fi 6703if test -z "$ac_cv_prog_OTOOL64"; then 6704 ac_ct_OTOOL64=$OTOOL64 6705 # Extract the first word of "otool64", so it can be a program name with args. 6706set dummy otool64; ac_word=$2 6707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6708$as_echo_n "checking for $ac_word... " >&6; } 6709if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6710 $as_echo_n "(cached) " >&6 6711else 6712 if test -n "$ac_ct_OTOOL64"; then 6713 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6714else 6715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6716for as_dir in $PATH 6717do 6718 IFS=$as_save_IFS 6719 test -z "$as_dir" && as_dir=. 6720 for ac_exec_ext in '' $ac_executable_extensions; do 6721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6722 ac_cv_prog_ac_ct_OTOOL64="otool64" 6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6724 break 2 6725 fi 6726done 6727 done 6728IFS=$as_save_IFS 6729 6730fi 6731fi 6732ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6733if test -n "$ac_ct_OTOOL64"; then 6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6735$as_echo "$ac_ct_OTOOL64" >&6; } 6736else 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6738$as_echo "no" >&6; } 6739fi 6740 6741 if test "x$ac_ct_OTOOL64" = x; then 6742 OTOOL64=":" 6743 else 6744 case $cross_compiling:$ac_tool_warned in 6745yes:) 6746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6748ac_tool_warned=yes ;; 6749esac 6750 OTOOL64=$ac_ct_OTOOL64 6751 fi 6752else 6753 OTOOL64="$ac_cv_prog_OTOOL64" 6754fi 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6783$as_echo_n "checking for -single_module linker flag... " >&6; } 6784if ${lt_cv_apple_cc_single_mod+:} false; then : 6785 $as_echo_n "(cached) " >&6 6786else 6787 lt_cv_apple_cc_single_mod=no 6788 if test -z "$LT_MULTI_MODULE"; then 6789 # By default we will add the -single_module flag. You can override 6790 # by either setting the environment variable LT_MULTI_MODULE 6791 # non-empty at configure time, or by adding -multi_module to the 6792 # link flags. 6793 rm -rf libconftest.dylib* 6794 echo "int foo(void){return 1;}" > conftest.c 6795 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6796-dynamiclib -Wl,-single_module conftest.c" >&5 6797 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6798 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6799 _lt_result=$? 6800 # If there is a non-empty error log, and "single_module" 6801 # appears in it, assume the flag caused a linker warning 6802 if test -s conftest.err && $GREP single_module conftest.err; then 6803 cat conftest.err >&5 6804 # Otherwise, if the output was created with a 0 exit code from 6805 # the compiler, it worked. 6806 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 6807 lt_cv_apple_cc_single_mod=yes 6808 else 6809 cat conftest.err >&5 6810 fi 6811 rm -rf libconftest.dylib* 6812 rm -f conftest.* 6813 fi 6814fi 6815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6816$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6817 6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6819$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6820if ${lt_cv_ld_exported_symbols_list+:} false; then : 6821 $as_echo_n "(cached) " >&6 6822else 6823 lt_cv_ld_exported_symbols_list=no 6824 save_LDFLAGS=$LDFLAGS 6825 echo "_main" > conftest.sym 6826 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6828/* end confdefs.h. */ 6829 6830int 6831main () 6832{ 6833 6834 ; 6835 return 0; 6836} 6837_ACEOF 6838if ac_fn_c_try_link "$LINENO"; then : 6839 lt_cv_ld_exported_symbols_list=yes 6840else 6841 lt_cv_ld_exported_symbols_list=no 6842fi 6843rm -f core conftest.err conftest.$ac_objext \ 6844 conftest$ac_exeext conftest.$ac_ext 6845 LDFLAGS=$save_LDFLAGS 6846 6847fi 6848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6849$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6850 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6852$as_echo_n "checking for -force_load linker flag... " >&6; } 6853if ${lt_cv_ld_force_load+:} false; then : 6854 $as_echo_n "(cached) " >&6 6855else 6856 lt_cv_ld_force_load=no 6857 cat > conftest.c << _LT_EOF 6858int forced_loaded() { return 2;} 6859_LT_EOF 6860 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6861 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6862 echo "$AR cru libconftest.a conftest.o" >&5 6863 $AR cru libconftest.a conftest.o 2>&5 6864 echo "$RANLIB libconftest.a" >&5 6865 $RANLIB libconftest.a 2>&5 6866 cat > conftest.c << _LT_EOF 6867int main() { return 0;} 6868_LT_EOF 6869 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6870 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6871 _lt_result=$? 6872 if test -s conftest.err && $GREP force_load conftest.err; then 6873 cat conftest.err >&5 6874 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 6875 lt_cv_ld_force_load=yes 6876 else 6877 cat conftest.err >&5 6878 fi 6879 rm -f conftest.err libconftest.a conftest conftest.c 6880 rm -rf conftest.dSYM 6881 6882fi 6883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6884$as_echo "$lt_cv_ld_force_load" >&6; } 6885 case $host_os in 6886 rhapsody* | darwin1.[012]) 6887 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 6888 darwin1.*) 6889 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 6890 darwin*) # darwin 5.x on 6891 # if running on 10.5 or later, the deployment target defaults 6892 # to the OS version, if on x86, and 10.4, the deployment 6893 # target defaults to 10.4. Don't you love it? 6894 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6895 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6896 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 6897 10.[012][,.]*) 6898 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 6899 10.*) 6900 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 6901 esac 6902 ;; 6903 esac 6904 if test yes = "$lt_cv_apple_cc_single_mod"; then 6905 _lt_dar_single_mod='$single_module' 6906 fi 6907 if test yes = "$lt_cv_ld_exported_symbols_list"; then 6908 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 6909 else 6910 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 6911 fi 6912 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 6913 _lt_dsymutil='~$DSYMUTIL $lib || :' 6914 else 6915 _lt_dsymutil= 6916 fi 6917 ;; 6918 esac 6919 6920# func_munge_path_list VARIABLE PATH 6921# ----------------------------------- 6922# VARIABLE is name of variable containing _space_ separated list of 6923# directories to be munged by the contents of PATH, which is string 6924# having a format: 6925# "DIR[:DIR]:" 6926# string "DIR[ DIR]" will be prepended to VARIABLE 6927# ":DIR[:DIR]" 6928# string "DIR[ DIR]" will be appended to VARIABLE 6929# "DIRP[:DIRP]::[DIRA:]DIRA" 6930# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 6931# "DIRA[ DIRA]" will be appended to VARIABLE 6932# "DIR[:DIR]" 6933# VARIABLE will be replaced by "DIR[ DIR]" 6934func_munge_path_list () 6935{ 6936 case x$2 in 6937 x) 6938 ;; 6939 *:) 6940 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 6941 ;; 6942 x:*) 6943 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 6944 ;; 6945 *::*) 6946 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 6947 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 6948 ;; 6949 *) 6950 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 6951 ;; 6952 esac 6953} 6954 6955ac_ext=c 6956ac_cpp='$CPP $CPPFLAGS' 6957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6959ac_compiler_gnu=$ac_cv_c_compiler_gnu 6960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6961$as_echo_n "checking how to run the C preprocessor... " >&6; } 6962# On Suns, sometimes $CPP names a directory. 6963if test -n "$CPP" && test -d "$CPP"; then 6964 CPP= 6965fi 6966if test -z "$CPP"; then 6967 if ${ac_cv_prog_CPP+:} false; then : 6968 $as_echo_n "(cached) " >&6 6969else 6970 # Double quotes because CPP needs to be expanded 6971 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6972 do 6973 ac_preproc_ok=false 6974for ac_c_preproc_warn_flag in '' yes 6975do 6976 # Use a header file that comes with gcc, so configuring glibc 6977 # with a fresh cross-compiler works. 6978 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6979 # <limits.h> exists even on freestanding compilers. 6980 # On the NeXT, cc -E runs the code through the compiler's parser, 6981 # not just through cpp. "Syntax error" is here to catch this case. 6982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6983/* end confdefs.h. */ 6984#ifdef __STDC__ 6985# include <limits.h> 6986#else 6987# include <assert.h> 6988#endif 6989 Syntax error 6990_ACEOF 6991if ac_fn_c_try_cpp "$LINENO"; then : 6992 6993else 6994 # Broken: fails on valid input. 6995continue 6996fi 6997rm -f conftest.err conftest.i conftest.$ac_ext 6998 6999 # OK, works on sane cases. Now check whether nonexistent headers 7000 # can be detected and how. 7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7002/* end confdefs.h. */ 7003#include <ac_nonexistent.h> 7004_ACEOF 7005if ac_fn_c_try_cpp "$LINENO"; then : 7006 # Broken: success on invalid input. 7007continue 7008else 7009 # Passes both tests. 7010ac_preproc_ok=: 7011break 7012fi 7013rm -f conftest.err conftest.i conftest.$ac_ext 7014 7015done 7016# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7017rm -f conftest.i conftest.err conftest.$ac_ext 7018if $ac_preproc_ok; then : 7019 break 7020fi 7021 7022 done 7023 ac_cv_prog_CPP=$CPP 7024 7025fi 7026 CPP=$ac_cv_prog_CPP 7027else 7028 ac_cv_prog_CPP=$CPP 7029fi 7030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7031$as_echo "$CPP" >&6; } 7032ac_preproc_ok=false 7033for ac_c_preproc_warn_flag in '' yes 7034do 7035 # Use a header file that comes with gcc, so configuring glibc 7036 # with a fresh cross-compiler works. 7037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7038 # <limits.h> exists even on freestanding compilers. 7039 # On the NeXT, cc -E runs the code through the compiler's parser, 7040 # not just through cpp. "Syntax error" is here to catch this case. 7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7042/* end confdefs.h. */ 7043#ifdef __STDC__ 7044# include <limits.h> 7045#else 7046# include <assert.h> 7047#endif 7048 Syntax error 7049_ACEOF 7050if ac_fn_c_try_cpp "$LINENO"; then : 7051 7052else 7053 # Broken: fails on valid input. 7054continue 7055fi 7056rm -f conftest.err conftest.i conftest.$ac_ext 7057 7058 # OK, works on sane cases. Now check whether nonexistent headers 7059 # can be detected and how. 7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7061/* end confdefs.h. */ 7062#include <ac_nonexistent.h> 7063_ACEOF 7064if ac_fn_c_try_cpp "$LINENO"; then : 7065 # Broken: success on invalid input. 7066continue 7067else 7068 # Passes both tests. 7069ac_preproc_ok=: 7070break 7071fi 7072rm -f conftest.err conftest.i conftest.$ac_ext 7073 7074done 7075# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7076rm -f conftest.i conftest.err conftest.$ac_ext 7077if $ac_preproc_ok; then : 7078 7079else 7080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7082as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7083See \`config.log' for more details" "$LINENO" 5; } 7084fi 7085 7086ac_ext=c 7087ac_cpp='$CPP $CPPFLAGS' 7088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7090ac_compiler_gnu=$ac_cv_c_compiler_gnu 7091 7092 7093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7094$as_echo_n "checking for ANSI C header files... " >&6; } 7095if ${ac_cv_header_stdc+:} false; then : 7096 $as_echo_n "(cached) " >&6 7097else 7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7099/* end confdefs.h. */ 7100#include <stdlib.h> 7101#include <stdarg.h> 7102#include <string.h> 7103#include <float.h> 7104 7105int 7106main () 7107{ 7108 7109 ; 7110 return 0; 7111} 7112_ACEOF 7113if ac_fn_c_try_compile "$LINENO"; then : 7114 ac_cv_header_stdc=yes 7115else 7116 ac_cv_header_stdc=no 7117fi 7118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7119 7120if test $ac_cv_header_stdc = yes; then 7121 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7123/* end confdefs.h. */ 7124#include <string.h> 7125 7126_ACEOF 7127if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7128 $EGREP "memchr" >/dev/null 2>&1; then : 7129 7130else 7131 ac_cv_header_stdc=no 7132fi 7133rm -f conftest* 7134 7135fi 7136 7137if test $ac_cv_header_stdc = yes; then 7138 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7140/* end confdefs.h. */ 7141#include <stdlib.h> 7142 7143_ACEOF 7144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7145 $EGREP "free" >/dev/null 2>&1; then : 7146 7147else 7148 ac_cv_header_stdc=no 7149fi 7150rm -f conftest* 7151 7152fi 7153 7154if test $ac_cv_header_stdc = yes; then 7155 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7156 if test "$cross_compiling" = yes; then : 7157 : 7158else 7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7160/* end confdefs.h. */ 7161#include <ctype.h> 7162#include <stdlib.h> 7163#if ((' ' & 0x0FF) == 0x020) 7164# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7165# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7166#else 7167# define ISLOWER(c) \ 7168 (('a' <= (c) && (c) <= 'i') \ 7169 || ('j' <= (c) && (c) <= 'r') \ 7170 || ('s' <= (c) && (c) <= 'z')) 7171# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7172#endif 7173 7174#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7175int 7176main () 7177{ 7178 int i; 7179 for (i = 0; i < 256; i++) 7180 if (XOR (islower (i), ISLOWER (i)) 7181 || toupper (i) != TOUPPER (i)) 7182 return 2; 7183 return 0; 7184} 7185_ACEOF 7186if ac_fn_c_try_run "$LINENO"; then : 7187 7188else 7189 ac_cv_header_stdc=no 7190fi 7191rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7192 conftest.$ac_objext conftest.beam conftest.$ac_ext 7193fi 7194 7195fi 7196fi 7197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7198$as_echo "$ac_cv_header_stdc" >&6; } 7199if test $ac_cv_header_stdc = yes; then 7200 7201$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7202 7203fi 7204 7205# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7206for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7207 inttypes.h stdint.h unistd.h 7208do : 7209 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7210ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7211" 7212if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7213 cat >>confdefs.h <<_ACEOF 7214#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7215_ACEOF 7216 7217fi 7218 7219done 7220 7221 7222for ac_header in dlfcn.h 7223do : 7224 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7225" 7226if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7227 cat >>confdefs.h <<_ACEOF 7228#define HAVE_DLFCN_H 1 7229_ACEOF 7230 7231fi 7232 7233done 7234 7235 7236 7237 7238 7239# Set options 7240 7241 7242 7243 enable_dlopen=no 7244 7245 7246 7247 # Check whether --enable-shared was given. 7248if test "${enable_shared+set}" = set; then : 7249 enableval=$enable_shared; p=${PACKAGE-default} 7250 case $enableval in 7251 yes) enable_shared=yes ;; 7252 no) enable_shared=no ;; 7253 *) 7254 enable_shared=no 7255 # Look at the argument we got. We use all the common list separators. 7256 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7257 for pkg in $enableval; do 7258 IFS=$lt_save_ifs 7259 if test "X$pkg" = "X$p"; then 7260 enable_shared=yes 7261 fi 7262 done 7263 IFS=$lt_save_ifs 7264 ;; 7265 esac 7266else 7267 enable_shared=yes 7268fi 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 # Check whether --enable-static was given. 7279if test "${enable_static+set}" = set; then : 7280 enableval=$enable_static; p=${PACKAGE-default} 7281 case $enableval in 7282 yes) enable_static=yes ;; 7283 no) enable_static=no ;; 7284 *) 7285 enable_static=no 7286 # Look at the argument we got. We use all the common list separators. 7287 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7288 for pkg in $enableval; do 7289 IFS=$lt_save_ifs 7290 if test "X$pkg" = "X$p"; then 7291 enable_static=yes 7292 fi 7293 done 7294 IFS=$lt_save_ifs 7295 ;; 7296 esac 7297else 7298 enable_static=yes 7299fi 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310# Check whether --with-pic was given. 7311if test "${with_pic+set}" = set; then : 7312 withval=$with_pic; lt_p=${PACKAGE-default} 7313 case $withval in 7314 yes|no) pic_mode=$withval ;; 7315 *) 7316 pic_mode=default 7317 # Look at the argument we got. We use all the common list separators. 7318 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7319 for lt_pkg in $withval; do 7320 IFS=$lt_save_ifs 7321 if test "X$lt_pkg" = "X$lt_p"; then 7322 pic_mode=yes 7323 fi 7324 done 7325 IFS=$lt_save_ifs 7326 ;; 7327 esac 7328else 7329 pic_mode=default 7330fi 7331 7332 7333 7334 7335 7336 7337 7338 7339 # Check whether --enable-fast-install was given. 7340if test "${enable_fast_install+set}" = set; then : 7341 enableval=$enable_fast_install; p=${PACKAGE-default} 7342 case $enableval in 7343 yes) enable_fast_install=yes ;; 7344 no) enable_fast_install=no ;; 7345 *) 7346 enable_fast_install=no 7347 # Look at the argument we got. We use all the common list separators. 7348 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7349 for pkg in $enableval; do 7350 IFS=$lt_save_ifs 7351 if test "X$pkg" = "X$p"; then 7352 enable_fast_install=yes 7353 fi 7354 done 7355 IFS=$lt_save_ifs 7356 ;; 7357 esac 7358else 7359 enable_fast_install=yes 7360fi 7361 7362 7363 7364 7365 7366 7367 7368 7369 shared_archive_member_spec= 7370case $host,$enable_shared in 7371power*-*-aix[5-9]*,yes) 7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7373$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7374 7375# Check whether --with-aix-soname was given. 7376if test "${with_aix_soname+set}" = set; then : 7377 withval=$with_aix_soname; case $withval in 7378 aix|svr4|both) 7379 ;; 7380 *) 7381 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7382 ;; 7383 esac 7384 lt_cv_with_aix_soname=$with_aix_soname 7385else 7386 if ${lt_cv_with_aix_soname+:} false; then : 7387 $as_echo_n "(cached) " >&6 7388else 7389 lt_cv_with_aix_soname=aix 7390fi 7391 7392 with_aix_soname=$lt_cv_with_aix_soname 7393fi 7394 7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7396$as_echo "$with_aix_soname" >&6; } 7397 if test aix != "$with_aix_soname"; then 7398 # For the AIX way of multilib, we name the shared archive member 7399 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7400 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7401 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7402 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7403 if test 64 = "${OBJECT_MODE-32}"; then 7404 shared_archive_member_spec=shr_64 7405 else 7406 shared_archive_member_spec=shr 7407 fi 7408 fi 7409 ;; 7410*) 7411 with_aix_soname=aix 7412 ;; 7413esac 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424# This can be used to rebuild libtool when needed 7425LIBTOOL_DEPS=$ltmain 7426 7427# Always use our own libtool. 7428LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459test -z "$LN_S" && LN_S="ln -s" 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474if test -n "${ZSH_VERSION+set}"; then 7475 setopt NO_GLOB_SUBST 7476fi 7477 7478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7479$as_echo_n "checking for objdir... " >&6; } 7480if ${lt_cv_objdir+:} false; then : 7481 $as_echo_n "(cached) " >&6 7482else 7483 rm -f .libs 2>/dev/null 7484mkdir .libs 2>/dev/null 7485if test -d .libs; then 7486 lt_cv_objdir=.libs 7487else 7488 # MS-DOS does not allow filenames that begin with a dot. 7489 lt_cv_objdir=_libs 7490fi 7491rmdir .libs 2>/dev/null 7492fi 7493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7494$as_echo "$lt_cv_objdir" >&6; } 7495objdir=$lt_cv_objdir 7496 7497 7498 7499 7500 7501cat >>confdefs.h <<_ACEOF 7502#define LT_OBJDIR "$lt_cv_objdir/" 7503_ACEOF 7504 7505 7506 7507 7508case $host_os in 7509aix3*) 7510 # AIX sometimes has problems with the GCC collect2 program. For some 7511 # reason, if we set the COLLECT_NAMES environment variable, the problems 7512 # vanish in a puff of smoke. 7513 if test set != "${COLLECT_NAMES+set}"; then 7514 COLLECT_NAMES= 7515 export COLLECT_NAMES 7516 fi 7517 ;; 7518esac 7519 7520# Global variables: 7521ofile=libtool 7522can_build_shared=yes 7523 7524# All known linkers require a '.a' archive for static linking (except MSVC, 7525# which needs '.lib'). 7526libext=a 7527 7528with_gnu_ld=$lt_cv_prog_gnu_ld 7529 7530old_CC=$CC 7531old_CFLAGS=$CFLAGS 7532 7533# Set sane defaults for various variables 7534test -z "$CC" && CC=cc 7535test -z "$LTCC" && LTCC=$CC 7536test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7537test -z "$LD" && LD=ld 7538test -z "$ac_objext" && ac_objext=o 7539 7540func_cc_basename $compiler 7541cc_basename=$func_cc_basename_result 7542 7543 7544# Only perform the check for file, if the check method requires it 7545test -z "$MAGIC_CMD" && MAGIC_CMD=file 7546case $deplibs_check_method in 7547file_magic*) 7548 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7550$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7551if ${lt_cv_path_MAGIC_CMD+:} false; then : 7552 $as_echo_n "(cached) " >&6 7553else 7554 case $MAGIC_CMD in 7555[\\/*] | ?:[\\/]*) 7556 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 7557 ;; 7558*) 7559 lt_save_MAGIC_CMD=$MAGIC_CMD 7560 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7561 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7562 for ac_dir in $ac_dummy; do 7563 IFS=$lt_save_ifs 7564 test -z "$ac_dir" && ac_dir=. 7565 if test -f "$ac_dir/${ac_tool_prefix}file"; then 7566 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 7567 if test -n "$file_magic_test_file"; then 7568 case $deplibs_check_method in 7569 "file_magic "*) 7570 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7571 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7572 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7573 $EGREP "$file_magic_regex" > /dev/null; then 7574 : 7575 else 7576 cat <<_LT_EOF 1>&2 7577 7578*** Warning: the command libtool uses to detect shared libraries, 7579*** $file_magic_cmd, produces output that libtool cannot recognize. 7580*** The result is that libtool may fail to recognize shared libraries 7581*** as such. This will affect the creation of libtool libraries that 7582*** depend on shared libraries, but programs linked with such libtool 7583*** libraries will work regardless of this problem. Nevertheless, you 7584*** may want to report the problem to your system manager and/or to 7585*** bug-libtool@gnu.org 7586 7587_LT_EOF 7588 fi ;; 7589 esac 7590 fi 7591 break 7592 fi 7593 done 7594 IFS=$lt_save_ifs 7595 MAGIC_CMD=$lt_save_MAGIC_CMD 7596 ;; 7597esac 7598fi 7599 7600MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7601if test -n "$MAGIC_CMD"; then 7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7603$as_echo "$MAGIC_CMD" >&6; } 7604else 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7606$as_echo "no" >&6; } 7607fi 7608 7609 7610 7611 7612 7613if test -z "$lt_cv_path_MAGIC_CMD"; then 7614 if test -n "$ac_tool_prefix"; then 7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7616$as_echo_n "checking for file... " >&6; } 7617if ${lt_cv_path_MAGIC_CMD+:} false; then : 7618 $as_echo_n "(cached) " >&6 7619else 7620 case $MAGIC_CMD in 7621[\\/*] | ?:[\\/]*) 7622 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 7623 ;; 7624*) 7625 lt_save_MAGIC_CMD=$MAGIC_CMD 7626 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7627 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7628 for ac_dir in $ac_dummy; do 7629 IFS=$lt_save_ifs 7630 test -z "$ac_dir" && ac_dir=. 7631 if test -f "$ac_dir/file"; then 7632 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 7633 if test -n "$file_magic_test_file"; then 7634 case $deplibs_check_method in 7635 "file_magic "*) 7636 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7637 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7638 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7639 $EGREP "$file_magic_regex" > /dev/null; then 7640 : 7641 else 7642 cat <<_LT_EOF 1>&2 7643 7644*** Warning: the command libtool uses to detect shared libraries, 7645*** $file_magic_cmd, produces output that libtool cannot recognize. 7646*** The result is that libtool may fail to recognize shared libraries 7647*** as such. This will affect the creation of libtool libraries that 7648*** depend on shared libraries, but programs linked with such libtool 7649*** libraries will work regardless of this problem. Nevertheless, you 7650*** may want to report the problem to your system manager and/or to 7651*** bug-libtool@gnu.org 7652 7653_LT_EOF 7654 fi ;; 7655 esac 7656 fi 7657 break 7658 fi 7659 done 7660 IFS=$lt_save_ifs 7661 MAGIC_CMD=$lt_save_MAGIC_CMD 7662 ;; 7663esac 7664fi 7665 7666MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7667if test -n "$MAGIC_CMD"; then 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7669$as_echo "$MAGIC_CMD" >&6; } 7670else 7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7672$as_echo "no" >&6; } 7673fi 7674 7675 7676 else 7677 MAGIC_CMD=: 7678 fi 7679fi 7680 7681 fi 7682 ;; 7683esac 7684 7685# Use C for the default configuration in the libtool script 7686 7687lt_save_CC=$CC 7688ac_ext=c 7689ac_cpp='$CPP $CPPFLAGS' 7690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7692ac_compiler_gnu=$ac_cv_c_compiler_gnu 7693 7694 7695# Source file extension for C test sources. 7696ac_ext=c 7697 7698# Object file extension for compiled C test sources. 7699objext=o 7700objext=$objext 7701 7702# Code to be used in simple compile tests 7703lt_simple_compile_test_code="int some_variable = 0;" 7704 7705# Code to be used in simple link tests 7706lt_simple_link_test_code='int main(){return(0);}' 7707 7708 7709 7710 7711 7712 7713 7714# If no C compiler was specified, use CC. 7715LTCC=${LTCC-"$CC"} 7716 7717# If no C compiler flags were specified, use CFLAGS. 7718LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7719 7720# Allow CC to be a program name with arguments. 7721compiler=$CC 7722 7723# Save the default compiler, since it gets overwritten when the other 7724# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7725compiler_DEFAULT=$CC 7726 7727# save warnings/boilerplate of simple test code 7728ac_outfile=conftest.$ac_objext 7729echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7730eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7731_lt_compiler_boilerplate=`cat conftest.err` 7732$RM conftest* 7733 7734ac_outfile=conftest.$ac_objext 7735echo "$lt_simple_link_test_code" >conftest.$ac_ext 7736eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7737_lt_linker_boilerplate=`cat conftest.err` 7738$RM -r conftest* 7739 7740 7741if test -n "$compiler"; then 7742 7743lt_prog_compiler_no_builtin_flag= 7744 7745if test yes = "$GCC"; then 7746 case $cc_basename in 7747 nvcc*) 7748 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7749 *) 7750 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7751 esac 7752 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7754$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7755if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7756 $as_echo_n "(cached) " >&6 7757else 7758 lt_cv_prog_compiler_rtti_exceptions=no 7759 ac_outfile=conftest.$ac_objext 7760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7761 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 7762 # Insert the option either (1) after the last *FLAGS variable, or 7763 # (2) before a word containing "conftest.", or (3) at the end. 7764 # Note that $ac_compile itself does not contain backslashes and begins 7765 # with a dollar sign (not a hyphen), so the echo should work correctly. 7766 # The option is referenced via a variable to avoid confusing sed. 7767 lt_compile=`echo "$ac_compile" | $SED \ 7768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7770 -e 's:$: $lt_compiler_flag:'` 7771 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7772 (eval "$lt_compile" 2>conftest.err) 7773 ac_status=$? 7774 cat conftest.err >&5 7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7776 if (exit $ac_status) && test -s "$ac_outfile"; then 7777 # The compiler can only warn and ignore the option if not recognized 7778 # So say no if there are warnings other than the usual output. 7779 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7781 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7782 lt_cv_prog_compiler_rtti_exceptions=yes 7783 fi 7784 fi 7785 $RM conftest* 7786 7787fi 7788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7789$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7790 7791if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 7792 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7793else 7794 : 7795fi 7796 7797fi 7798 7799 7800 7801 7802 7803 7804 lt_prog_compiler_wl= 7805lt_prog_compiler_pic= 7806lt_prog_compiler_static= 7807 7808 7809 if test yes = "$GCC"; then 7810 lt_prog_compiler_wl='-Wl,' 7811 lt_prog_compiler_static='-static' 7812 7813 case $host_os in 7814 aix*) 7815 # All AIX code is PIC. 7816 if test ia64 = "$host_cpu"; then 7817 # AIX 5 now supports IA64 processor 7818 lt_prog_compiler_static='-Bstatic' 7819 fi 7820 lt_prog_compiler_pic='-fPIC' 7821 ;; 7822 7823 amigaos*) 7824 case $host_cpu in 7825 powerpc) 7826 # see comment about AmigaOS4 .so support 7827 lt_prog_compiler_pic='-fPIC' 7828 ;; 7829 m68k) 7830 # FIXME: we need at least 68020 code to build shared libraries, but 7831 # adding the '-m68020' flag to GCC prevents building anything better, 7832 # like '-m68040'. 7833 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7834 ;; 7835 esac 7836 ;; 7837 7838 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7839 # PIC is the default for these OSes. 7840 ;; 7841 7842 mingw* | cygwin* | pw32* | os2* | cegcc*) 7843 # This hack is so that the source file can tell whether it is being 7844 # built for inclusion in a dll (and should export symbols for example). 7845 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7846 # (--disable-auto-import) libraries 7847 lt_prog_compiler_pic='-DDLL_EXPORT' 7848 case $host_os in 7849 os2*) 7850 lt_prog_compiler_static='$wl-static' 7851 ;; 7852 esac 7853 ;; 7854 7855 darwin* | rhapsody*) 7856 # PIC is the default on this platform 7857 # Common symbols not allowed in MH_DYLIB files 7858 lt_prog_compiler_pic='-fno-common' 7859 ;; 7860 7861 haiku*) 7862 # PIC is the default for Haiku. 7863 # The "-static" flag exists, but is broken. 7864 lt_prog_compiler_static= 7865 ;; 7866 7867 hpux*) 7868 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7869 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7870 # sets the default TLS model and affects inlining. 7871 case $host_cpu in 7872 hppa*64*) 7873 # +Z the default 7874 ;; 7875 *) 7876 lt_prog_compiler_pic='-fPIC' 7877 ;; 7878 esac 7879 ;; 7880 7881 interix[3-9]*) 7882 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7883 # Instead, we relocate shared libraries at runtime. 7884 ;; 7885 7886 msdosdjgpp*) 7887 # Just because we use GCC doesn't mean we suddenly get shared libraries 7888 # on systems that don't support them. 7889 lt_prog_compiler_can_build_shared=no 7890 enable_shared=no 7891 ;; 7892 7893 *nto* | *qnx*) 7894 # QNX uses GNU C++, but need to define -shared option too, otherwise 7895 # it will coredump. 7896 lt_prog_compiler_pic='-fPIC -shared' 7897 ;; 7898 7899 sysv4*MP*) 7900 if test -d /usr/nec; then 7901 lt_prog_compiler_pic=-Kconform_pic 7902 fi 7903 ;; 7904 7905 *) 7906 lt_prog_compiler_pic='-fPIC' 7907 ;; 7908 esac 7909 7910 case $cc_basename in 7911 nvcc*) # Cuda Compiler Driver 2.2 7912 lt_prog_compiler_wl='-Xlinker ' 7913 if test -n "$lt_prog_compiler_pic"; then 7914 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 7915 fi 7916 ;; 7917 esac 7918 else 7919 # PORTME Check for flag to pass linker flags through the system compiler. 7920 case $host_os in 7921 aix*) 7922 lt_prog_compiler_wl='-Wl,' 7923 if test ia64 = "$host_cpu"; then 7924 # AIX 5 now supports IA64 processor 7925 lt_prog_compiler_static='-Bstatic' 7926 else 7927 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7928 fi 7929 ;; 7930 7931 darwin* | rhapsody*) 7932 # PIC is the default on this platform 7933 # Common symbols not allowed in MH_DYLIB files 7934 lt_prog_compiler_pic='-fno-common' 7935 case $cc_basename in 7936 nagfor*) 7937 # NAG Fortran compiler 7938 lt_prog_compiler_wl='-Wl,-Wl,,' 7939 lt_prog_compiler_pic='-PIC' 7940 lt_prog_compiler_static='-Bstatic' 7941 ;; 7942 esac 7943 ;; 7944 7945 mingw* | cygwin* | pw32* | os2* | cegcc*) 7946 # This hack is so that the source file can tell whether it is being 7947 # built for inclusion in a dll (and should export symbols for example). 7948 lt_prog_compiler_pic='-DDLL_EXPORT' 7949 case $host_os in 7950 os2*) 7951 lt_prog_compiler_static='$wl-static' 7952 ;; 7953 esac 7954 ;; 7955 7956 hpux9* | hpux10* | hpux11*) 7957 lt_prog_compiler_wl='-Wl,' 7958 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7959 # not for PA HP-UX. 7960 case $host_cpu in 7961 hppa*64*|ia64*) 7962 # +Z the default 7963 ;; 7964 *) 7965 lt_prog_compiler_pic='+Z' 7966 ;; 7967 esac 7968 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7969 lt_prog_compiler_static='$wl-a ${wl}archive' 7970 ;; 7971 7972 irix5* | irix6* | nonstopux*) 7973 lt_prog_compiler_wl='-Wl,' 7974 # PIC (with -KPIC) is the default. 7975 lt_prog_compiler_static='-non_shared' 7976 ;; 7977 7978 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7979 case $cc_basename in 7980 # old Intel for x86_64, which still supported -KPIC. 7981 ecc*) 7982 lt_prog_compiler_wl='-Wl,' 7983 lt_prog_compiler_pic='-KPIC' 7984 lt_prog_compiler_static='-static' 7985 ;; 7986 # icc used to be incompatible with GCC. 7987 # ICC 10 doesn't accept -KPIC any more. 7988 icc* | ifort*) 7989 lt_prog_compiler_wl='-Wl,' 7990 lt_prog_compiler_pic='-fPIC' 7991 lt_prog_compiler_static='-static' 7992 ;; 7993 # Lahey Fortran 8.1. 7994 lf95*) 7995 lt_prog_compiler_wl='-Wl,' 7996 lt_prog_compiler_pic='--shared' 7997 lt_prog_compiler_static='--static' 7998 ;; 7999 nagfor*) 8000 # NAG Fortran compiler 8001 lt_prog_compiler_wl='-Wl,-Wl,,' 8002 lt_prog_compiler_pic='-PIC' 8003 lt_prog_compiler_static='-Bstatic' 8004 ;; 8005 tcc*) 8006 # Fabrice Bellard et al's Tiny C Compiler 8007 lt_prog_compiler_wl='-Wl,' 8008 lt_prog_compiler_pic='-fPIC' 8009 lt_prog_compiler_static='-static' 8010 ;; 8011 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8012 # Portland Group compilers (*not* the Pentium gcc compiler, 8013 # which looks to be a dead project) 8014 lt_prog_compiler_wl='-Wl,' 8015 lt_prog_compiler_pic='-fpic' 8016 lt_prog_compiler_static='-Bstatic' 8017 ;; 8018 ccc*) 8019 lt_prog_compiler_wl='-Wl,' 8020 # All Alpha code is PIC. 8021 lt_prog_compiler_static='-non_shared' 8022 ;; 8023 xl* | bgxl* | bgf* | mpixl*) 8024 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8025 lt_prog_compiler_wl='-Wl,' 8026 lt_prog_compiler_pic='-qpic' 8027 lt_prog_compiler_static='-qstaticlink' 8028 ;; 8029 *) 8030 case `$CC -V 2>&1 | sed 5q` in 8031 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8032 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8033 lt_prog_compiler_pic='-KPIC' 8034 lt_prog_compiler_static='-Bstatic' 8035 lt_prog_compiler_wl='' 8036 ;; 8037 *Sun\ F* | *Sun*Fortran*) 8038 lt_prog_compiler_pic='-KPIC' 8039 lt_prog_compiler_static='-Bstatic' 8040 lt_prog_compiler_wl='-Qoption ld ' 8041 ;; 8042 *Sun\ C*) 8043 # Sun C 5.9 8044 lt_prog_compiler_pic='-KPIC' 8045 lt_prog_compiler_static='-Bstatic' 8046 lt_prog_compiler_wl='-Wl,' 8047 ;; 8048 *Intel*\ [CF]*Compiler*) 8049 lt_prog_compiler_wl='-Wl,' 8050 lt_prog_compiler_pic='-fPIC' 8051 lt_prog_compiler_static='-static' 8052 ;; 8053 *Portland\ Group*) 8054 lt_prog_compiler_wl='-Wl,' 8055 lt_prog_compiler_pic='-fpic' 8056 lt_prog_compiler_static='-Bstatic' 8057 ;; 8058 esac 8059 ;; 8060 esac 8061 ;; 8062 8063 newsos6) 8064 lt_prog_compiler_pic='-KPIC' 8065 lt_prog_compiler_static='-Bstatic' 8066 ;; 8067 8068 *nto* | *qnx*) 8069 # QNX uses GNU C++, but need to define -shared option too, otherwise 8070 # it will coredump. 8071 lt_prog_compiler_pic='-fPIC -shared' 8072 ;; 8073 8074 osf3* | osf4* | osf5*) 8075 lt_prog_compiler_wl='-Wl,' 8076 # All OSF/1 code is PIC. 8077 lt_prog_compiler_static='-non_shared' 8078 ;; 8079 8080 rdos*) 8081 lt_prog_compiler_static='-non_shared' 8082 ;; 8083 8084 solaris*) 8085 lt_prog_compiler_pic='-KPIC' 8086 lt_prog_compiler_static='-Bstatic' 8087 case $cc_basename in 8088 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8089 lt_prog_compiler_wl='-Qoption ld ';; 8090 *) 8091 lt_prog_compiler_wl='-Wl,';; 8092 esac 8093 ;; 8094 8095 sunos4*) 8096 lt_prog_compiler_wl='-Qoption ld ' 8097 lt_prog_compiler_pic='-PIC' 8098 lt_prog_compiler_static='-Bstatic' 8099 ;; 8100 8101 sysv4 | sysv4.2uw2* | sysv4.3*) 8102 lt_prog_compiler_wl='-Wl,' 8103 lt_prog_compiler_pic='-KPIC' 8104 lt_prog_compiler_static='-Bstatic' 8105 ;; 8106 8107 sysv4*MP*) 8108 if test -d /usr/nec; then 8109 lt_prog_compiler_pic='-Kconform_pic' 8110 lt_prog_compiler_static='-Bstatic' 8111 fi 8112 ;; 8113 8114 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8115 lt_prog_compiler_wl='-Wl,' 8116 lt_prog_compiler_pic='-KPIC' 8117 lt_prog_compiler_static='-Bstatic' 8118 ;; 8119 8120 unicos*) 8121 lt_prog_compiler_wl='-Wl,' 8122 lt_prog_compiler_can_build_shared=no 8123 ;; 8124 8125 uts4*) 8126 lt_prog_compiler_pic='-pic' 8127 lt_prog_compiler_static='-Bstatic' 8128 ;; 8129 8130 *) 8131 lt_prog_compiler_can_build_shared=no 8132 ;; 8133 esac 8134 fi 8135 8136case $host_os in 8137 # For platforms that do not support PIC, -DPIC is meaningless: 8138 *djgpp*) 8139 lt_prog_compiler_pic= 8140 ;; 8141 *) 8142 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8143 ;; 8144esac 8145 8146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8147$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8148if ${lt_cv_prog_compiler_pic+:} false; then : 8149 $as_echo_n "(cached) " >&6 8150else 8151 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8152fi 8153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8154$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8155lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8156 8157# 8158# Check to make sure the PIC flag actually works. 8159# 8160if test -n "$lt_prog_compiler_pic"; then 8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8162$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8163if ${lt_cv_prog_compiler_pic_works+:} false; then : 8164 $as_echo_n "(cached) " >&6 8165else 8166 lt_cv_prog_compiler_pic_works=no 8167 ac_outfile=conftest.$ac_objext 8168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8169 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8170 # Insert the option either (1) after the last *FLAGS variable, or 8171 # (2) before a word containing "conftest.", or (3) at the end. 8172 # Note that $ac_compile itself does not contain backslashes and begins 8173 # with a dollar sign (not a hyphen), so the echo should work correctly. 8174 # The option is referenced via a variable to avoid confusing sed. 8175 lt_compile=`echo "$ac_compile" | $SED \ 8176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8178 -e 's:$: $lt_compiler_flag:'` 8179 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8180 (eval "$lt_compile" 2>conftest.err) 8181 ac_status=$? 8182 cat conftest.err >&5 8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8184 if (exit $ac_status) && test -s "$ac_outfile"; then 8185 # The compiler can only warn and ignore the option if not recognized 8186 # So say no if there are warnings other than the usual output. 8187 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8189 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8190 lt_cv_prog_compiler_pic_works=yes 8191 fi 8192 fi 8193 $RM conftest* 8194 8195fi 8196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8197$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8198 8199if test yes = "$lt_cv_prog_compiler_pic_works"; then 8200 case $lt_prog_compiler_pic in 8201 "" | " "*) ;; 8202 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8203 esac 8204else 8205 lt_prog_compiler_pic= 8206 lt_prog_compiler_can_build_shared=no 8207fi 8208 8209fi 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221# 8222# Check to make sure the static flag actually works. 8223# 8224wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8226$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8227if ${lt_cv_prog_compiler_static_works+:} false; then : 8228 $as_echo_n "(cached) " >&6 8229else 8230 lt_cv_prog_compiler_static_works=no 8231 save_LDFLAGS=$LDFLAGS 8232 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8233 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8234 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8235 # The linker can only warn and ignore the option if not recognized 8236 # So say no if there are warnings 8237 if test -s conftest.err; then 8238 # Append any errors to the config.log. 8239 cat conftest.err 1>&5 8240 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8241 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8242 if diff conftest.exp conftest.er2 >/dev/null; then 8243 lt_cv_prog_compiler_static_works=yes 8244 fi 8245 else 8246 lt_cv_prog_compiler_static_works=yes 8247 fi 8248 fi 8249 $RM -r conftest* 8250 LDFLAGS=$save_LDFLAGS 8251 8252fi 8253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8254$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8255 8256if test yes = "$lt_cv_prog_compiler_static_works"; then 8257 : 8258else 8259 lt_prog_compiler_static= 8260fi 8261 8262 8263 8264 8265 8266 8267 8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8269$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8270if ${lt_cv_prog_compiler_c_o+:} false; then : 8271 $as_echo_n "(cached) " >&6 8272else 8273 lt_cv_prog_compiler_c_o=no 8274 $RM -r conftest 2>/dev/null 8275 mkdir conftest 8276 cd conftest 8277 mkdir out 8278 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8279 8280 lt_compiler_flag="-o out/conftest2.$ac_objext" 8281 # Insert the option either (1) after the last *FLAGS variable, or 8282 # (2) before a word containing "conftest.", or (3) at the end. 8283 # Note that $ac_compile itself does not contain backslashes and begins 8284 # with a dollar sign (not a hyphen), so the echo should work correctly. 8285 lt_compile=`echo "$ac_compile" | $SED \ 8286 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8288 -e 's:$: $lt_compiler_flag:'` 8289 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8290 (eval "$lt_compile" 2>out/conftest.err) 8291 ac_status=$? 8292 cat out/conftest.err >&5 8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8294 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8295 then 8296 # The compiler can only warn and ignore the option if not recognized 8297 # So say no if there are warnings 8298 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8299 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8300 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8301 lt_cv_prog_compiler_c_o=yes 8302 fi 8303 fi 8304 chmod u+w . 2>&5 8305 $RM conftest* 8306 # SGI C++ compiler will create directory out/ii_files/ for 8307 # template instantiation 8308 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8309 $RM out/* && rmdir out 8310 cd .. 8311 $RM -r conftest 8312 $RM conftest* 8313 8314fi 8315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8316$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8317 8318 8319 8320 8321 8322 8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8324$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8325if ${lt_cv_prog_compiler_c_o+:} false; then : 8326 $as_echo_n "(cached) " >&6 8327else 8328 lt_cv_prog_compiler_c_o=no 8329 $RM -r conftest 2>/dev/null 8330 mkdir conftest 8331 cd conftest 8332 mkdir out 8333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8334 8335 lt_compiler_flag="-o out/conftest2.$ac_objext" 8336 # Insert the option either (1) after the last *FLAGS variable, or 8337 # (2) before a word containing "conftest.", or (3) at the end. 8338 # Note that $ac_compile itself does not contain backslashes and begins 8339 # with a dollar sign (not a hyphen), so the echo should work correctly. 8340 lt_compile=`echo "$ac_compile" | $SED \ 8341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8343 -e 's:$: $lt_compiler_flag:'` 8344 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8345 (eval "$lt_compile" 2>out/conftest.err) 8346 ac_status=$? 8347 cat out/conftest.err >&5 8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8349 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8350 then 8351 # The compiler can only warn and ignore the option if not recognized 8352 # So say no if there are warnings 8353 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8354 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8355 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8356 lt_cv_prog_compiler_c_o=yes 8357 fi 8358 fi 8359 chmod u+w . 2>&5 8360 $RM conftest* 8361 # SGI C++ compiler will create directory out/ii_files/ for 8362 # template instantiation 8363 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8364 $RM out/* && rmdir out 8365 cd .. 8366 $RM -r conftest 8367 $RM conftest* 8368 8369fi 8370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8371$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8372 8373 8374 8375 8376hard_links=nottested 8377if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8378 # do not overwrite the value of need_locks provided by the user 8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8380$as_echo_n "checking if we can lock with hard links... " >&6; } 8381 hard_links=yes 8382 $RM conftest* 8383 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8384 touch conftest.a 8385 ln conftest.a conftest.b 2>&5 || hard_links=no 8386 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8388$as_echo "$hard_links" >&6; } 8389 if test no = "$hard_links"; then 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8391$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8392 need_locks=warn 8393 fi 8394else 8395 need_locks=no 8396fi 8397 8398 8399 8400 8401 8402 8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8404$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8405 8406 runpath_var= 8407 allow_undefined_flag= 8408 always_export_symbols=no 8409 archive_cmds= 8410 archive_expsym_cmds= 8411 compiler_needs_object=no 8412 enable_shared_with_static_runtimes=no 8413 export_dynamic_flag_spec= 8414 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8415 hardcode_automatic=no 8416 hardcode_direct=no 8417 hardcode_direct_absolute=no 8418 hardcode_libdir_flag_spec= 8419 hardcode_libdir_separator= 8420 hardcode_minus_L=no 8421 hardcode_shlibpath_var=unsupported 8422 inherit_rpath=no 8423 link_all_deplibs=unknown 8424 module_cmds= 8425 module_expsym_cmds= 8426 old_archive_from_new_cmds= 8427 old_archive_from_expsyms_cmds= 8428 thread_safe_flag_spec= 8429 whole_archive_flag_spec= 8430 # include_expsyms should be a list of space-separated symbols to be *always* 8431 # included in the symbol list 8432 include_expsyms= 8433 # exclude_expsyms can be an extended regexp of symbols to exclude 8434 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8435 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8436 # as well as any symbol that contains 'd'. 8437 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8438 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8439 # platforms (ab)use it in PIC code, but their linkers get confused if 8440 # the symbol is explicitly referenced. Since portable code cannot 8441 # rely on this symbol name, it's probably fine to never include it in 8442 # preloaded symbol tables. 8443 # Exclude shared library initialization/finalization symbols. 8444 extract_expsyms_cmds= 8445 8446 case $host_os in 8447 cygwin* | mingw* | pw32* | cegcc*) 8448 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8449 # When not using gcc, we currently assume that we are using 8450 # Microsoft Visual C++. 8451 if test yes != "$GCC"; then 8452 with_gnu_ld=no 8453 fi 8454 ;; 8455 interix*) 8456 # we just hope/assume this is gcc and not c89 (= MSVC++) 8457 with_gnu_ld=yes 8458 ;; 8459 openbsd* | bitrig*) 8460 with_gnu_ld=no 8461 ;; 8462 linux* | k*bsd*-gnu | gnu*) 8463 link_all_deplibs=no 8464 ;; 8465 esac 8466 8467 ld_shlibs=yes 8468 8469 # On some targets, GNU ld is compatible enough with the native linker 8470 # that we're better off using the native interface for both. 8471 lt_use_gnu_ld_interface=no 8472 if test yes = "$with_gnu_ld"; then 8473 case $host_os in 8474 aix*) 8475 # The AIX port of GNU ld has always aspired to compatibility 8476 # with the native linker. However, as the warning in the GNU ld 8477 # block says, versions before 2.19.5* couldn't really create working 8478 # shared libraries, regardless of the interface used. 8479 case `$LD -v 2>&1` in 8480 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8481 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8482 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8483 *) 8484 lt_use_gnu_ld_interface=yes 8485 ;; 8486 esac 8487 ;; 8488 *) 8489 lt_use_gnu_ld_interface=yes 8490 ;; 8491 esac 8492 fi 8493 8494 if test yes = "$lt_use_gnu_ld_interface"; then 8495 # If archive_cmds runs LD, not CC, wlarc should be empty 8496 wlarc='$wl' 8497 8498 # Set some defaults for GNU ld with shared library support. These 8499 # are reset later if shared libraries are not supported. Putting them 8500 # here allows them to be overridden if necessary. 8501 runpath_var=LD_RUN_PATH 8502 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 8503 export_dynamic_flag_spec='$wl--export-dynamic' 8504 # ancient GNU ld didn't support --whole-archive et. al. 8505 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8506 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 8507 else 8508 whole_archive_flag_spec= 8509 fi 8510 supports_anon_versioning=no 8511 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 8512 *GNU\ gold*) supports_anon_versioning=yes ;; 8513 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8514 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8515 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8516 *\ 2.11.*) ;; # other 2.11 versions 8517 *) supports_anon_versioning=yes ;; 8518 esac 8519 8520 # See if GNU ld supports shared libraries. 8521 case $host_os in 8522 aix[3-9]*) 8523 # On AIX/PPC, the GNU linker is very broken 8524 if test ia64 != "$host_cpu"; then 8525 ld_shlibs=no 8526 cat <<_LT_EOF 1>&2 8527 8528*** Warning: the GNU linker, at least up to release 2.19, is reported 8529*** to be unable to reliably create shared libraries on AIX. 8530*** Therefore, libtool is disabling shared libraries support. If you 8531*** really care for shared libraries, you may want to install binutils 8532*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8533*** You will then need to restart the configuration process. 8534 8535_LT_EOF 8536 fi 8537 ;; 8538 8539 amigaos*) 8540 case $host_cpu in 8541 powerpc) 8542 # see comment about AmigaOS4 .so support 8543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8544 archive_expsym_cmds='' 8545 ;; 8546 m68k) 8547 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)' 8548 hardcode_libdir_flag_spec='-L$libdir' 8549 hardcode_minus_L=yes 8550 ;; 8551 esac 8552 ;; 8553 8554 beos*) 8555 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8556 allow_undefined_flag=unsupported 8557 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8558 # support --undefined. This deserves some investigation. FIXME 8559 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8560 else 8561 ld_shlibs=no 8562 fi 8563 ;; 8564 8565 cygwin* | mingw* | pw32* | cegcc*) 8566 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8567 # as there is no search path for DLLs. 8568 hardcode_libdir_flag_spec='-L$libdir' 8569 export_dynamic_flag_spec='$wl--export-all-symbols' 8570 allow_undefined_flag=unsupported 8571 always_export_symbols=no 8572 enable_shared_with_static_runtimes=yes 8573 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' 8574 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8575 8576 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8578 # If the export-symbols file already is a .def file, use it as 8579 # is; otherwise, prepend EXPORTS... 8580 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 8581 cp $export_symbols $output_objdir/$soname.def; 8582 else 8583 echo EXPORTS > $output_objdir/$soname.def; 8584 cat $export_symbols >> $output_objdir/$soname.def; 8585 fi~ 8586 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8587 else 8588 ld_shlibs=no 8589 fi 8590 ;; 8591 8592 haiku*) 8593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8594 link_all_deplibs=yes 8595 ;; 8596 8597 os2*) 8598 hardcode_libdir_flag_spec='-L$libdir' 8599 hardcode_minus_L=yes 8600 allow_undefined_flag=unsupported 8601 shrext_cmds=.dll 8602 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 8603 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 8604 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 8605 $ECHO EXPORTS >> $output_objdir/$libname.def~ 8606 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 8607 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 8608 emximp -o $lib $output_objdir/$libname.def' 8609 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 8610 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 8611 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 8612 $ECHO EXPORTS >> $output_objdir/$libname.def~ 8613 prefix_cmds="$SED"~ 8614 if test EXPORTS = "`$SED 1q $export_symbols`"; then 8615 prefix_cmds="$prefix_cmds -e 1d"; 8616 fi~ 8617 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 8618 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 8619 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 8620 emximp -o $lib $output_objdir/$libname.def' 8621 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 8622 enable_shared_with_static_runtimes=yes 8623 ;; 8624 8625 interix[3-9]*) 8626 hardcode_direct=no 8627 hardcode_shlibpath_var=no 8628 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 8629 export_dynamic_flag_spec='$wl-E' 8630 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8631 # Instead, shared libraries are loaded at an image base (0x10000000 by 8632 # default) and relocated if they conflict, which is a slow very memory 8633 # consuming and fragmenting process. To avoid this, we pick a random, 8634 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8635 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8636 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8637 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' 8638 ;; 8639 8640 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8641 tmp_diet=no 8642 if test linux-dietlibc = "$host_os"; then 8643 case $cc_basename in 8644 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8645 esac 8646 fi 8647 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8648 && test no = "$tmp_diet" 8649 then 8650 tmp_addflag=' $pic_flag' 8651 tmp_sharedflag='-shared' 8652 case $cc_basename,$host_cpu in 8653 pgcc*) # Portland Group C compiler 8654 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' 8655 tmp_addflag=' $pic_flag' 8656 ;; 8657 pgf77* | pgf90* | pgf95* | pgfortran*) 8658 # Portland Group f77 and f90 compilers 8659 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' 8660 tmp_addflag=' $pic_flag -Mnomain' ;; 8661 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8662 tmp_addflag=' -i_dynamic' ;; 8663 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8664 tmp_addflag=' -i_dynamic -nofor_main' ;; 8665 ifc* | ifort*) # Intel Fortran compiler 8666 tmp_addflag=' -nofor_main' ;; 8667 lf95*) # Lahey Fortran 8.1 8668 whole_archive_flag_spec= 8669 tmp_sharedflag='--shared' ;; 8670 nagfor*) # NAGFOR 5.3 8671 tmp_sharedflag='-Wl,-shared' ;; 8672 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8673 tmp_sharedflag='-qmkshrobj' 8674 tmp_addflag= ;; 8675 nvcc*) # Cuda Compiler Driver 2.2 8676 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' 8677 compiler_needs_object=yes 8678 ;; 8679 esac 8680 case `$CC -V 2>&1 | sed 5q` in 8681 *Sun\ C*) # Sun C 5.9 8682 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' 8683 compiler_needs_object=yes 8684 tmp_sharedflag='-G' ;; 8685 *Sun\ F*) # Sun Fortran 8.3 8686 tmp_sharedflag='-G' ;; 8687 esac 8688 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8689 8690 if test yes = "$supports_anon_versioning"; then 8691 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8692 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8693 echo "local: *; };" >> $output_objdir/$libname.ver~ 8694 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 8695 fi 8696 8697 case $cc_basename in 8698 tcc*) 8699 export_dynamic_flag_spec='-rdynamic' 8700 ;; 8701 xlf* | bgf* | bgxlf* | mpixlf*) 8702 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8703 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8704 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 8705 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8706 if test yes = "$supports_anon_versioning"; then 8707 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8708 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8709 echo "local: *; };" >> $output_objdir/$libname.ver~ 8710 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8711 fi 8712 ;; 8713 esac 8714 else 8715 ld_shlibs=no 8716 fi 8717 ;; 8718 8719 netbsd* | netbsdelf*-gnu) 8720 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8721 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8722 wlarc= 8723 else 8724 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8725 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 8726 fi 8727 ;; 8728 8729 solaris*) 8730 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8731 ld_shlibs=no 8732 cat <<_LT_EOF 1>&2 8733 8734*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8735*** create shared libraries on Solaris systems. Therefore, libtool 8736*** is disabling shared libraries support. We urge you to upgrade GNU 8737*** binutils to release 2.9.1 or newer. Another option is to modify 8738*** your PATH or compiler configuration so that the native linker is 8739*** used, and then restart. 8740 8741_LT_EOF 8742 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8743 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8744 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 8745 else 8746 ld_shlibs=no 8747 fi 8748 ;; 8749 8750 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8751 case `$LD -v 2>&1` in 8752 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8753 ld_shlibs=no 8754 cat <<_LT_EOF 1>&2 8755 8756*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 8757*** reliably create shared libraries on SCO systems. Therefore, libtool 8758*** is disabling shared libraries support. We urge you to upgrade GNU 8759*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8760*** your PATH or compiler configuration so that the native linker is 8761*** used, and then restart. 8762 8763_LT_EOF 8764 ;; 8765 *) 8766 # For security reasons, it is highly recommended that you always 8767 # use absolute paths for naming shared libraries, and exclude the 8768 # DT_RUNPATH tag from executables and libraries. But doing so 8769 # requires that you compile everything twice, which is a pain. 8770 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8771 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 8772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8773 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 8774 else 8775 ld_shlibs=no 8776 fi 8777 ;; 8778 esac 8779 ;; 8780 8781 sunos4*) 8782 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8783 wlarc= 8784 hardcode_direct=yes 8785 hardcode_shlibpath_var=no 8786 ;; 8787 8788 *) 8789 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8790 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8791 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 8792 else 8793 ld_shlibs=no 8794 fi 8795 ;; 8796 esac 8797 8798 if test no = "$ld_shlibs"; then 8799 runpath_var= 8800 hardcode_libdir_flag_spec= 8801 export_dynamic_flag_spec= 8802 whole_archive_flag_spec= 8803 fi 8804 else 8805 # PORTME fill in a description of your system's linker (not GNU ld) 8806 case $host_os in 8807 aix3*) 8808 allow_undefined_flag=unsupported 8809 always_export_symbols=yes 8810 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' 8811 # Note: this linker hardcodes the directories in LIBPATH if there 8812 # are no directories specified by -L. 8813 hardcode_minus_L=yes 8814 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 8815 # Neither direct hardcoding nor static linking is supported with a 8816 # broken collect2. 8817 hardcode_direct=unsupported 8818 fi 8819 ;; 8820 8821 aix[4-9]*) 8822 if test ia64 = "$host_cpu"; then 8823 # On IA64, the linker does run time linking by default, so we don't 8824 # have to do anything special. 8825 aix_use_runtimelinking=no 8826 exp_sym_flag='-Bexport' 8827 no_entry_flag= 8828 else 8829 # If we're using GNU nm, then we don't want the "-C" option. 8830 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 8831 # Without the "-l" option, or with the "-B" option, AIX nm treats 8832 # weak defined symbols like other global defined symbols, whereas 8833 # GNU nm marks them as "W". 8834 # While the 'weak' keyword is ignored in the Export File, we need 8835 # it in the Import File for the 'aix-soname' feature, so we have 8836 # to replace the "-B" option with "-P" for AIX nm. 8837 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8838 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 8839 else 8840 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 8841 fi 8842 aix_use_runtimelinking=no 8843 8844 # Test if we are trying to use run time linking or normal 8845 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8846 # have runtime linking enabled, and use it for executables. 8847 # For shared libraries, we enable/disable runtime linking 8848 # depending on the kind of the shared library created - 8849 # when "with_aix_soname,aix_use_runtimelinking" is: 8850 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 8851 # "aix,yes" lib.so shared, rtl:yes, for executables 8852 # lib.a static archive 8853 # "both,no" lib.so.V(shr.o) shared, rtl:yes 8854 # lib.a(lib.so.V) shared, rtl:no, for executables 8855 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 8856 # lib.a(lib.so.V) shared, rtl:no 8857 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 8858 # lib.a static archive 8859 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8860 for ld_flag in $LDFLAGS; do 8861 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 8862 aix_use_runtimelinking=yes 8863 break 8864 fi 8865 done 8866 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 8867 # With aix-soname=svr4, we create the lib.so.V shared archives only, 8868 # so we don't have lib.a shared libs to link our executables. 8869 # We have to force runtime linking in this case. 8870 aix_use_runtimelinking=yes 8871 LDFLAGS="$LDFLAGS -Wl,-brtl" 8872 fi 8873 ;; 8874 esac 8875 8876 exp_sym_flag='-bexport' 8877 no_entry_flag='-bnoentry' 8878 fi 8879 8880 # When large executables or shared objects are built, AIX ld can 8881 # have problems creating the table of contents. If linking a library 8882 # or program results in "error TOC overflow" add -mminimal-toc to 8883 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8884 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8885 8886 archive_cmds='' 8887 hardcode_direct=yes 8888 hardcode_direct_absolute=yes 8889 hardcode_libdir_separator=':' 8890 link_all_deplibs=yes 8891 file_list_spec='$wl-f,' 8892 case $with_aix_soname,$aix_use_runtimelinking in 8893 aix,*) ;; # traditional, no import file 8894 svr4,* | *,yes) # use import file 8895 # The Import File defines what to hardcode. 8896 hardcode_direct=no 8897 hardcode_direct_absolute=no 8898 ;; 8899 esac 8900 8901 if test yes = "$GCC"; then 8902 case $host_os in aix4.[012]|aix4.[012].*) 8903 # We only want to do this on AIX 4.2 and lower, the check 8904 # below for broken collect2 doesn't work under 4.3+ 8905 collect2name=`$CC -print-prog-name=collect2` 8906 if test -f "$collect2name" && 8907 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8908 then 8909 # We have reworked collect2 8910 : 8911 else 8912 # We have old collect2 8913 hardcode_direct=unsupported 8914 # It fails to find uninstalled libraries when the uninstalled 8915 # path is not listed in the libpath. Setting hardcode_minus_L 8916 # to unsupported forces relinking 8917 hardcode_minus_L=yes 8918 hardcode_libdir_flag_spec='-L$libdir' 8919 hardcode_libdir_separator= 8920 fi 8921 ;; 8922 esac 8923 shared_flag='-shared' 8924 if test yes = "$aix_use_runtimelinking"; then 8925 shared_flag="$shared_flag "'$wl-G' 8926 fi 8927 # Need to ensure runtime linking is disabled for the traditional 8928 # shared library, or the linker may eventually find shared libraries 8929 # /with/ Import File - we do not want to mix them. 8930 shared_flag_aix='-shared' 8931 shared_flag_svr4='-shared $wl-G' 8932 else 8933 # not using gcc 8934 if test ia64 = "$host_cpu"; then 8935 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8936 # chokes on -Wl,-G. The following line is correct: 8937 shared_flag='-G' 8938 else 8939 if test yes = "$aix_use_runtimelinking"; then 8940 shared_flag='$wl-G' 8941 else 8942 shared_flag='$wl-bM:SRE' 8943 fi 8944 shared_flag_aix='$wl-bM:SRE' 8945 shared_flag_svr4='$wl-G' 8946 fi 8947 fi 8948 8949 export_dynamic_flag_spec='$wl-bexpall' 8950 # It seems that -bexpall does not export symbols beginning with 8951 # underscore (_), so it is better to generate a list of symbols to export. 8952 always_export_symbols=yes 8953 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 8954 # Warning - without using the other runtime loading flags (-brtl), 8955 # -berok will link without error, but may produce a broken library. 8956 allow_undefined_flag='-berok' 8957 # Determine the default libpath from the value encoded in an 8958 # empty executable. 8959 if test set = "${lt_cv_aix_libpath+set}"; then 8960 aix_libpath=$lt_cv_aix_libpath 8961else 8962 if ${lt_cv_aix_libpath_+:} false; then : 8963 $as_echo_n "(cached) " >&6 8964else 8965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8966/* end confdefs.h. */ 8967 8968int 8969main () 8970{ 8971 8972 ; 8973 return 0; 8974} 8975_ACEOF 8976if ac_fn_c_try_link "$LINENO"; then : 8977 8978 lt_aix_libpath_sed=' 8979 /Import File Strings/,/^$/ { 8980 /^0/ { 8981 s/^0 *\([^ ]*\) *$/\1/ 8982 p 8983 } 8984 }' 8985 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8986 # Check for a 64-bit object if we didn't find anything. 8987 if test -z "$lt_cv_aix_libpath_"; then 8988 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8989 fi 8990fi 8991rm -f core conftest.err conftest.$ac_objext \ 8992 conftest$ac_exeext conftest.$ac_ext 8993 if test -z "$lt_cv_aix_libpath_"; then 8994 lt_cv_aix_libpath_=/usr/lib:/lib 8995 fi 8996 8997fi 8998 8999 aix_libpath=$lt_cv_aix_libpath_ 9000fi 9001 9002 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9003 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9004 else 9005 if test ia64 = "$host_cpu"; then 9006 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9007 allow_undefined_flag="-z nodefs" 9008 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" 9009 else 9010 # Determine the default libpath from the value encoded in an 9011 # empty executable. 9012 if test set = "${lt_cv_aix_libpath+set}"; then 9013 aix_libpath=$lt_cv_aix_libpath 9014else 9015 if ${lt_cv_aix_libpath_+:} false; then : 9016 $as_echo_n "(cached) " >&6 9017else 9018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9019/* end confdefs.h. */ 9020 9021int 9022main () 9023{ 9024 9025 ; 9026 return 0; 9027} 9028_ACEOF 9029if ac_fn_c_try_link "$LINENO"; then : 9030 9031 lt_aix_libpath_sed=' 9032 /Import File Strings/,/^$/ { 9033 /^0/ { 9034 s/^0 *\([^ ]*\) *$/\1/ 9035 p 9036 } 9037 }' 9038 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9039 # Check for a 64-bit object if we didn't find anything. 9040 if test -z "$lt_cv_aix_libpath_"; then 9041 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9042 fi 9043fi 9044rm -f core conftest.err conftest.$ac_objext \ 9045 conftest$ac_exeext conftest.$ac_ext 9046 if test -z "$lt_cv_aix_libpath_"; then 9047 lt_cv_aix_libpath_=/usr/lib:/lib 9048 fi 9049 9050fi 9051 9052 aix_libpath=$lt_cv_aix_libpath_ 9053fi 9054 9055 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9056 # Warning - without using the other run time loading flags, 9057 # -berok will link without error, but may produce a broken library. 9058 no_undefined_flag=' $wl-bernotok' 9059 allow_undefined_flag=' $wl-berok' 9060 if test yes = "$with_gnu_ld"; then 9061 # We only use this code for GNU lds that support --whole-archive. 9062 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9063 else 9064 # Exported symbols can be pulled into shared objects from archives 9065 whole_archive_flag_spec='$convenience' 9066 fi 9067 archive_cmds_need_lc=yes 9068 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9069 # -brtl affects multiple linker settings, -berok does not and is overridden later 9070 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9071 if test svr4 != "$with_aix_soname"; then 9072 # This is similar to how AIX traditionally builds its shared libraries. 9073 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9074 fi 9075 if test aix != "$with_aix_soname"; then 9076 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9077 else 9078 # used by -dlpreopen to get the symbols 9079 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9080 fi 9081 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9082 fi 9083 fi 9084 ;; 9085 9086 amigaos*) 9087 case $host_cpu in 9088 powerpc) 9089 # see comment about AmigaOS4 .so support 9090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9091 archive_expsym_cmds='' 9092 ;; 9093 m68k) 9094 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)' 9095 hardcode_libdir_flag_spec='-L$libdir' 9096 hardcode_minus_L=yes 9097 ;; 9098 esac 9099 ;; 9100 9101 bsdi[45]*) 9102 export_dynamic_flag_spec=-rdynamic 9103 ;; 9104 9105 cygwin* | mingw* | pw32* | cegcc*) 9106 # When not using gcc, we currently assume that we are using 9107 # Microsoft Visual C++. 9108 # hardcode_libdir_flag_spec is actually meaningless, as there is 9109 # no search path for DLLs. 9110 case $cc_basename in 9111 cl*) 9112 # Native MSVC 9113 hardcode_libdir_flag_spec=' ' 9114 allow_undefined_flag=unsupported 9115 always_export_symbols=yes 9116 file_list_spec='@' 9117 # Tell ltmain to make .lib files, not .a files. 9118 libext=lib 9119 # Tell ltmain to make .dll files, not .so files. 9120 shrext_cmds=.dll 9121 # FIXME: Setting linknames here is a bad hack. 9122 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9123 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9124 cp "$export_symbols" "$output_objdir/$soname.def"; 9125 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9126 else 9127 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9128 fi~ 9129 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9130 linknames=' 9131 # The linker will not automatically build a static lib if we build a DLL. 9132 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9133 enable_shared_with_static_runtimes=yes 9134 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9135 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9136 # Don't use ranlib 9137 old_postinstall_cmds='chmod 644 $oldlib' 9138 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9139 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9140 case $lt_outputfile in 9141 *.exe|*.EXE) ;; 9142 *) 9143 lt_outputfile=$lt_outputfile.exe 9144 lt_tool_outputfile=$lt_tool_outputfile.exe 9145 ;; 9146 esac~ 9147 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9148 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9149 $RM "$lt_outputfile.manifest"; 9150 fi' 9151 ;; 9152 *) 9153 # Assume MSVC wrapper 9154 hardcode_libdir_flag_spec=' ' 9155 allow_undefined_flag=unsupported 9156 # Tell ltmain to make .lib files, not .a files. 9157 libext=lib 9158 # Tell ltmain to make .dll files, not .so files. 9159 shrext_cmds=.dll 9160 # FIXME: Setting linknames here is a bad hack. 9161 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9162 # The linker will automatically build a .lib file if we build a DLL. 9163 old_archive_from_new_cmds='true' 9164 # FIXME: Should let the user specify the lib program. 9165 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9166 enable_shared_with_static_runtimes=yes 9167 ;; 9168 esac 9169 ;; 9170 9171 darwin* | rhapsody*) 9172 9173 9174 archive_cmds_need_lc=no 9175 hardcode_direct=no 9176 hardcode_automatic=yes 9177 hardcode_shlibpath_var=unsupported 9178 if test yes = "$lt_cv_ld_force_load"; then 9179 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\"`' 9180 9181 else 9182 whole_archive_flag_spec='' 9183 fi 9184 link_all_deplibs=yes 9185 allow_undefined_flag=$_lt_dar_allow_undefined 9186 case $cc_basename in 9187 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9188 *) _lt_dar_can_shared=$GCC ;; 9189 esac 9190 if test yes = "$_lt_dar_can_shared"; then 9191 output_verbose_link_cmd=func_echo_all 9192 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9193 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9194 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" 9195 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" 9196 9197 else 9198 ld_shlibs=no 9199 fi 9200 9201 ;; 9202 9203 dgux*) 9204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9205 hardcode_libdir_flag_spec='-L$libdir' 9206 hardcode_shlibpath_var=no 9207 ;; 9208 9209 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9210 # support. Future versions do this automatically, but an explicit c++rt0.o 9211 # does not break anything, and helps significantly (at the cost of a little 9212 # extra space). 9213 freebsd2.2*) 9214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9215 hardcode_libdir_flag_spec='-R$libdir' 9216 hardcode_direct=yes 9217 hardcode_shlibpath_var=no 9218 ;; 9219 9220 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9221 freebsd2.*) 9222 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9223 hardcode_direct=yes 9224 hardcode_minus_L=yes 9225 hardcode_shlibpath_var=no 9226 ;; 9227 9228 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9229 freebsd* | dragonfly*) 9230 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9231 hardcode_libdir_flag_spec='-R$libdir' 9232 hardcode_direct=yes 9233 hardcode_shlibpath_var=no 9234 ;; 9235 9236 hpux9*) 9237 if test yes = "$GCC"; then 9238 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9239 else 9240 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9241 fi 9242 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9243 hardcode_libdir_separator=: 9244 hardcode_direct=yes 9245 9246 # hardcode_minus_L: Not really in the search PATH, 9247 # but as the default location of the library. 9248 hardcode_minus_L=yes 9249 export_dynamic_flag_spec='$wl-E' 9250 ;; 9251 9252 hpux10*) 9253 if test yes,no = "$GCC,$with_gnu_ld"; then 9254 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9255 else 9256 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9257 fi 9258 if test no = "$with_gnu_ld"; then 9259 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9260 hardcode_libdir_separator=: 9261 hardcode_direct=yes 9262 hardcode_direct_absolute=yes 9263 export_dynamic_flag_spec='$wl-E' 9264 # hardcode_minus_L: Not really in the search PATH, 9265 # but as the default location of the library. 9266 hardcode_minus_L=yes 9267 fi 9268 ;; 9269 9270 hpux11*) 9271 if test yes,no = "$GCC,$with_gnu_ld"; then 9272 case $host_cpu in 9273 hppa*64*) 9274 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9275 ;; 9276 ia64*) 9277 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9278 ;; 9279 *) 9280 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9281 ;; 9282 esac 9283 else 9284 case $host_cpu in 9285 hppa*64*) 9286 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9287 ;; 9288 ia64*) 9289 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9290 ;; 9291 *) 9292 9293 # Older versions of the 11.00 compiler do not understand -b yet 9294 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9296$as_echo_n "checking if $CC understands -b... " >&6; } 9297if ${lt_cv_prog_compiler__b+:} false; then : 9298 $as_echo_n "(cached) " >&6 9299else 9300 lt_cv_prog_compiler__b=no 9301 save_LDFLAGS=$LDFLAGS 9302 LDFLAGS="$LDFLAGS -b" 9303 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9304 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9305 # The linker can only warn and ignore the option if not recognized 9306 # So say no if there are warnings 9307 if test -s conftest.err; then 9308 # Append any errors to the config.log. 9309 cat conftest.err 1>&5 9310 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9311 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9312 if diff conftest.exp conftest.er2 >/dev/null; then 9313 lt_cv_prog_compiler__b=yes 9314 fi 9315 else 9316 lt_cv_prog_compiler__b=yes 9317 fi 9318 fi 9319 $RM -r conftest* 9320 LDFLAGS=$save_LDFLAGS 9321 9322fi 9323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9324$as_echo "$lt_cv_prog_compiler__b" >&6; } 9325 9326if test yes = "$lt_cv_prog_compiler__b"; then 9327 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9328else 9329 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9330fi 9331 9332 ;; 9333 esac 9334 fi 9335 if test no = "$with_gnu_ld"; then 9336 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9337 hardcode_libdir_separator=: 9338 9339 case $host_cpu in 9340 hppa*64*|ia64*) 9341 hardcode_direct=no 9342 hardcode_shlibpath_var=no 9343 ;; 9344 *) 9345 hardcode_direct=yes 9346 hardcode_direct_absolute=yes 9347 export_dynamic_flag_spec='$wl-E' 9348 9349 # hardcode_minus_L: Not really in the search PATH, 9350 # but as the default location of the library. 9351 hardcode_minus_L=yes 9352 ;; 9353 esac 9354 fi 9355 ;; 9356 9357 irix5* | irix6* | nonstopux*) 9358 if test yes = "$GCC"; then 9359 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' 9360 # Try to use the -exported_symbol ld option, if it does not 9361 # work, assume that -exports_file does not work either and 9362 # implicitly export all symbols. 9363 # This should be the same for all languages, so no per-tag cache variable. 9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9365$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9366if ${lt_cv_irix_exported_symbol+:} false; then : 9367 $as_echo_n "(cached) " >&6 9368else 9369 save_LDFLAGS=$LDFLAGS 9370 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9372/* end confdefs.h. */ 9373int foo (void) { return 0; } 9374_ACEOF 9375if ac_fn_c_try_link "$LINENO"; then : 9376 lt_cv_irix_exported_symbol=yes 9377else 9378 lt_cv_irix_exported_symbol=no 9379fi 9380rm -f core conftest.err conftest.$ac_objext \ 9381 conftest$ac_exeext conftest.$ac_ext 9382 LDFLAGS=$save_LDFLAGS 9383fi 9384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9385$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9386 if test yes = "$lt_cv_irix_exported_symbol"; then 9387 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' 9388 fi 9389 link_all_deplibs=no 9390 else 9391 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' 9392 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' 9393 fi 9394 archive_cmds_need_lc='no' 9395 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9396 hardcode_libdir_separator=: 9397 inherit_rpath=yes 9398 link_all_deplibs=yes 9399 ;; 9400 9401 linux*) 9402 case $cc_basename in 9403 tcc*) 9404 # Fabrice Bellard et al's Tiny C Compiler 9405 ld_shlibs=yes 9406 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9407 ;; 9408 esac 9409 ;; 9410 9411 netbsd* | netbsdelf*-gnu) 9412 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9413 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9414 else 9415 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9416 fi 9417 hardcode_libdir_flag_spec='-R$libdir' 9418 hardcode_direct=yes 9419 hardcode_shlibpath_var=no 9420 ;; 9421 9422 newsos6) 9423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9424 hardcode_direct=yes 9425 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9426 hardcode_libdir_separator=: 9427 hardcode_shlibpath_var=no 9428 ;; 9429 9430 *nto* | *qnx*) 9431 ;; 9432 9433 openbsd* | bitrig*) 9434 if test -f /usr/libexec/ld.so; then 9435 hardcode_direct=yes 9436 hardcode_shlibpath_var=no 9437 hardcode_direct_absolute=yes 9438 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9439 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9440 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9441 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9442 export_dynamic_flag_spec='$wl-E' 9443 else 9444 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9445 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9446 fi 9447 else 9448 ld_shlibs=no 9449 fi 9450 ;; 9451 9452 os2*) 9453 hardcode_libdir_flag_spec='-L$libdir' 9454 hardcode_minus_L=yes 9455 allow_undefined_flag=unsupported 9456 shrext_cmds=.dll 9457 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9458 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9459 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9460 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9461 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9462 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9463 emximp -o $lib $output_objdir/$libname.def' 9464 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9465 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9466 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9467 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9468 prefix_cmds="$SED"~ 9469 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9470 prefix_cmds="$prefix_cmds -e 1d"; 9471 fi~ 9472 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9473 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9474 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9475 emximp -o $lib $output_objdir/$libname.def' 9476 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9477 enable_shared_with_static_runtimes=yes 9478 ;; 9479 9480 osf3*) 9481 if test yes = "$GCC"; then 9482 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9483 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' 9484 else 9485 allow_undefined_flag=' -expect_unresolved \*' 9486 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' 9487 fi 9488 archive_cmds_need_lc='no' 9489 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9490 hardcode_libdir_separator=: 9491 ;; 9492 9493 osf4* | osf5*) # as osf3* with the addition of -msym flag 9494 if test yes = "$GCC"; then 9495 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9496 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' 9497 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9498 else 9499 allow_undefined_flag=' -expect_unresolved \*' 9500 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' 9501 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~ 9502 $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' 9503 9504 # Both c and cxx compiler support -rpath directly 9505 hardcode_libdir_flag_spec='-rpath $libdir' 9506 fi 9507 archive_cmds_need_lc='no' 9508 hardcode_libdir_separator=: 9509 ;; 9510 9511 solaris*) 9512 no_undefined_flag=' -z defs' 9513 if test yes = "$GCC"; then 9514 wlarc='$wl' 9515 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9516 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9517 $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' 9518 else 9519 case `$CC -V 2>&1` in 9520 *"Compilers 5.0"*) 9521 wlarc='' 9522 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 9523 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9524 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9525 ;; 9526 *) 9527 wlarc='$wl' 9528 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9529 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9530 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9531 ;; 9532 esac 9533 fi 9534 hardcode_libdir_flag_spec='-R$libdir' 9535 hardcode_shlibpath_var=no 9536 case $host_os in 9537 solaris2.[0-5] | solaris2.[0-5].*) ;; 9538 *) 9539 # The compiler driver will combine and reorder linker options, 9540 # but understands '-z linker_flag'. GCC discards it without '$wl', 9541 # but is careful enough not to reorder. 9542 # Supported since Solaris 2.6 (maybe 2.5.1?) 9543 if test yes = "$GCC"; then 9544 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 9545 else 9546 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9547 fi 9548 ;; 9549 esac 9550 link_all_deplibs=yes 9551 ;; 9552 9553 sunos4*) 9554 if test sequent = "$host_vendor"; then 9555 # Use $CC to link under sequent, because it throws in some extra .o 9556 # files that make .init and .fini sections work. 9557 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9558 else 9559 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9560 fi 9561 hardcode_libdir_flag_spec='-L$libdir' 9562 hardcode_direct=yes 9563 hardcode_minus_L=yes 9564 hardcode_shlibpath_var=no 9565 ;; 9566 9567 sysv4) 9568 case $host_vendor in 9569 sni) 9570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9571 hardcode_direct=yes # is this really true??? 9572 ;; 9573 siemens) 9574 ## LD is ld it makes a PLAMLIB 9575 ## CC just makes a GrossModule. 9576 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9577 reload_cmds='$CC -r -o $output$reload_objs' 9578 hardcode_direct=no 9579 ;; 9580 motorola) 9581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9582 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9583 ;; 9584 esac 9585 runpath_var='LD_RUN_PATH' 9586 hardcode_shlibpath_var=no 9587 ;; 9588 9589 sysv4.3*) 9590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9591 hardcode_shlibpath_var=no 9592 export_dynamic_flag_spec='-Bexport' 9593 ;; 9594 9595 sysv4*MP*) 9596 if test -d /usr/nec; then 9597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9598 hardcode_shlibpath_var=no 9599 runpath_var=LD_RUN_PATH 9600 hardcode_runpath_var=yes 9601 ld_shlibs=yes 9602 fi 9603 ;; 9604 9605 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9606 no_undefined_flag='$wl-z,text' 9607 archive_cmds_need_lc=no 9608 hardcode_shlibpath_var=no 9609 runpath_var='LD_RUN_PATH' 9610 9611 if test yes = "$GCC"; then 9612 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9613 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9614 else 9615 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9616 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9617 fi 9618 ;; 9619 9620 sysv5* | sco3.2v5* | sco5v6*) 9621 # Note: We CANNOT use -z defs as we might desire, because we do not 9622 # link with -lc, and that would cause any symbols used from libc to 9623 # always be unresolved, which means just about no library would 9624 # ever link correctly. If we're not using GNU ld we use -z text 9625 # though, which does catch some bad symbols but isn't as heavy-handed 9626 # as -z defs. 9627 no_undefined_flag='$wl-z,text' 9628 allow_undefined_flag='$wl-z,nodefs' 9629 archive_cmds_need_lc=no 9630 hardcode_shlibpath_var=no 9631 hardcode_libdir_flag_spec='$wl-R,$libdir' 9632 hardcode_libdir_separator=':' 9633 link_all_deplibs=yes 9634 export_dynamic_flag_spec='$wl-Bexport' 9635 runpath_var='LD_RUN_PATH' 9636 9637 if test yes = "$GCC"; then 9638 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9639 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9640 else 9641 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9642 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9643 fi 9644 ;; 9645 9646 uts4*) 9647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9648 hardcode_libdir_flag_spec='-L$libdir' 9649 hardcode_shlibpath_var=no 9650 ;; 9651 9652 *) 9653 ld_shlibs=no 9654 ;; 9655 esac 9656 9657 if test sni = "$host_vendor"; then 9658 case $host in 9659 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9660 export_dynamic_flag_spec='$wl-Blargedynsym' 9661 ;; 9662 esac 9663 fi 9664 fi 9665 9666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9667$as_echo "$ld_shlibs" >&6; } 9668test no = "$ld_shlibs" && can_build_shared=no 9669 9670with_gnu_ld=$with_gnu_ld 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686# 9687# Do we need to explicitly link libc? 9688# 9689case "x$archive_cmds_need_lc" in 9690x|xyes) 9691 # Assume -lc should be added 9692 archive_cmds_need_lc=yes 9693 9694 if test yes,yes = "$GCC,$enable_shared"; then 9695 case $archive_cmds in 9696 *'~'*) 9697 # FIXME: we may have to deal with multi-command sequences. 9698 ;; 9699 '$CC '*) 9700 # Test whether the compiler implicitly links with -lc since on some 9701 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9702 # to ld, don't add -lc before -lgcc. 9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9704$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9705if ${lt_cv_archive_cmds_need_lc+:} false; then : 9706 $as_echo_n "(cached) " >&6 9707else 9708 $RM conftest* 9709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9710 9711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9712 (eval $ac_compile) 2>&5 9713 ac_status=$? 9714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9715 test $ac_status = 0; } 2>conftest.err; then 9716 soname=conftest 9717 lib=conftest 9718 libobjs=conftest.$ac_objext 9719 deplibs= 9720 wl=$lt_prog_compiler_wl 9721 pic_flag=$lt_prog_compiler_pic 9722 compiler_flags=-v 9723 linker_flags=-v 9724 verstring= 9725 output_objdir=. 9726 libname=conftest 9727 lt_save_allow_undefined_flag=$allow_undefined_flag 9728 allow_undefined_flag= 9729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9730 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9731 ac_status=$? 9732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9733 test $ac_status = 0; } 9734 then 9735 lt_cv_archive_cmds_need_lc=no 9736 else 9737 lt_cv_archive_cmds_need_lc=yes 9738 fi 9739 allow_undefined_flag=$lt_save_allow_undefined_flag 9740 else 9741 cat conftest.err 1>&5 9742 fi 9743 $RM conftest* 9744 9745fi 9746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9747$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9748 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9749 ;; 9750 esac 9751 fi 9752 ;; 9753esac 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9907$as_echo_n "checking dynamic linker characteristics... " >&6; } 9908 9909if test yes = "$GCC"; then 9910 case $host_os in 9911 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 9912 *) lt_awk_arg='/^libraries:/' ;; 9913 esac 9914 case $host_os in 9915 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 9916 *) lt_sed_strip_eq='s|=/|/|g' ;; 9917 esac 9918 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9919 case $lt_search_path_spec in 9920 *\;*) 9921 # if the path contains ";" then we assume it to be the separator 9922 # otherwise default to the standard path separator (i.e. ":") - it is 9923 # assumed that no part of a normal pathname contains ";" but that should 9924 # okay in the real world where ";" in dirpaths is itself problematic. 9925 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9926 ;; 9927 *) 9928 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9929 ;; 9930 esac 9931 # Ok, now we have the path, separated by spaces, we can step through it 9932 # and add multilib dir if necessary... 9933 lt_tmp_lt_search_path_spec= 9934 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9935 # ...but if some path component already ends with the multilib dir we assume 9936 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 9937 case "$lt_multi_os_dir; $lt_search_path_spec " in 9938 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 9939 lt_multi_os_dir= 9940 ;; 9941 esac 9942 for lt_sys_path in $lt_search_path_spec; do 9943 if test -d "$lt_sys_path$lt_multi_os_dir"; then 9944 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 9945 elif test -n "$lt_multi_os_dir"; then 9946 test -d "$lt_sys_path" && \ 9947 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9948 fi 9949 done 9950 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9951BEGIN {RS = " "; FS = "/|\n";} { 9952 lt_foo = ""; 9953 lt_count = 0; 9954 for (lt_i = NF; lt_i > 0; lt_i--) { 9955 if ($lt_i != "" && $lt_i != ".") { 9956 if ($lt_i == "..") { 9957 lt_count++; 9958 } else { 9959 if (lt_count == 0) { 9960 lt_foo = "/" $lt_i lt_foo; 9961 } else { 9962 lt_count--; 9963 } 9964 } 9965 } 9966 } 9967 if (lt_foo != "") { lt_freq[lt_foo]++; } 9968 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9969}'` 9970 # AWK program above erroneously prepends '/' to C:/dos/paths 9971 # for these hosts. 9972 case $host_os in 9973 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9974 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 9975 esac 9976 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9977else 9978 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9979fi 9980library_names_spec= 9981libname_spec='lib$name' 9982soname_spec= 9983shrext_cmds=.so 9984postinstall_cmds= 9985postuninstall_cmds= 9986finish_cmds= 9987finish_eval= 9988shlibpath_var= 9989shlibpath_overrides_runpath=unknown 9990version_type=none 9991dynamic_linker="$host_os ld.so" 9992sys_lib_dlsearch_path_spec="/lib /usr/lib" 9993need_lib_prefix=unknown 9994hardcode_into_libs=no 9995 9996# when you set need_version to no, make sure it does not cause -set_version 9997# flags to be left without arguments 9998need_version=unknown 9999 10000 10001 10002case $host_os in 10003aix3*) 10004 version_type=linux # correct to gnu/linux during the next big refactor 10005 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10006 shlibpath_var=LIBPATH 10007 10008 # AIX 3 has no versioning support, so we append a major version to the name. 10009 soname_spec='$libname$release$shared_ext$major' 10010 ;; 10011 10012aix[4-9]*) 10013 version_type=linux # correct to gnu/linux during the next big refactor 10014 need_lib_prefix=no 10015 need_version=no 10016 hardcode_into_libs=yes 10017 if test ia64 = "$host_cpu"; then 10018 # AIX 5 supports IA64 10019 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10020 shlibpath_var=LD_LIBRARY_PATH 10021 else 10022 # With GCC up to 2.95.x, collect2 would create an import file 10023 # for dependence libraries. The import file would start with 10024 # the line '#! .'. This would cause the generated library to 10025 # depend on '.', always an invalid library. This was fixed in 10026 # development snapshots of GCC prior to 3.0. 10027 case $host_os in 10028 aix4 | aix4.[01] | aix4.[01].*) 10029 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10030 echo ' yes ' 10031 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10032 : 10033 else 10034 can_build_shared=no 10035 fi 10036 ;; 10037 esac 10038 # Using Import Files as archive members, it is possible to support 10039 # filename-based versioning of shared library archives on AIX. While 10040 # this would work for both with and without runtime linking, it will 10041 # prevent static linking of such archives. So we do filename-based 10042 # shared library versioning with .so extension only, which is used 10043 # when both runtime linking and shared linking is enabled. 10044 # Unfortunately, runtime linking may impact performance, so we do 10045 # not want this to be the default eventually. Also, we use the 10046 # versioned .so libs for executables only if there is the -brtl 10047 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10048 # To allow for filename-based versioning support, we need to create 10049 # libNAME.so.V as an archive file, containing: 10050 # *) an Import File, referring to the versioned filename of the 10051 # archive as well as the shared archive member, telling the 10052 # bitwidth (32 or 64) of that shared object, and providing the 10053 # list of exported symbols of that shared object, eventually 10054 # decorated with the 'weak' keyword 10055 # *) the shared object with the F_LOADONLY flag set, to really avoid 10056 # it being seen by the linker. 10057 # At run time we better use the real file rather than another symlink, 10058 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10059 10060 case $with_aix_soname,$aix_use_runtimelinking in 10061 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10062 # soname into executable. Probably we can add versioning support to 10063 # collect2, so additional links can be useful in future. 10064 aix,yes) # traditional libtool 10065 dynamic_linker='AIX unversionable lib.so' 10066 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10067 # instead of lib<name>.a to let people know that these are not 10068 # typical AIX shared libraries. 10069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10070 ;; 10071 aix,no) # traditional AIX only 10072 dynamic_linker='AIX lib.a(lib.so.V)' 10073 # We preserve .a as extension for shared libraries through AIX4.2 10074 # and later when we are not doing run time linking. 10075 library_names_spec='$libname$release.a $libname.a' 10076 soname_spec='$libname$release$shared_ext$major' 10077 ;; 10078 svr4,*) # full svr4 only 10079 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10080 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10081 # We do not specify a path in Import Files, so LIBPATH fires. 10082 shlibpath_overrides_runpath=yes 10083 ;; 10084 *,yes) # both, prefer svr4 10085 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10086 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10087 # unpreferred sharedlib libNAME.a needs extra handling 10088 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10089 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10090 # We do not specify a path in Import Files, so LIBPATH fires. 10091 shlibpath_overrides_runpath=yes 10092 ;; 10093 *,no) # both, prefer aix 10094 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10095 library_names_spec='$libname$release.a $libname.a' 10096 soname_spec='$libname$release$shared_ext$major' 10097 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10098 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10099 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10100 ;; 10101 esac 10102 shlibpath_var=LIBPATH 10103 fi 10104 ;; 10105 10106amigaos*) 10107 case $host_cpu in 10108 powerpc) 10109 # Since July 2007 AmigaOS4 officially supports .so libraries. 10110 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10112 ;; 10113 m68k) 10114 library_names_spec='$libname.ixlibrary $libname.a' 10115 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10116 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10117 ;; 10118 esac 10119 ;; 10120 10121beos*) 10122 library_names_spec='$libname$shared_ext' 10123 dynamic_linker="$host_os ld.so" 10124 shlibpath_var=LIBRARY_PATH 10125 ;; 10126 10127bsdi[45]*) 10128 version_type=linux # correct to gnu/linux during the next big refactor 10129 need_version=no 10130 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10131 soname_spec='$libname$release$shared_ext$major' 10132 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10133 shlibpath_var=LD_LIBRARY_PATH 10134 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10135 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10136 # the default ld.so.conf also contains /usr/contrib/lib and 10137 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10138 # libtool to hard-code these into programs 10139 ;; 10140 10141cygwin* | mingw* | pw32* | cegcc*) 10142 version_type=windows 10143 shrext_cmds=.dll 10144 need_version=no 10145 need_lib_prefix=no 10146 10147 case $GCC,$cc_basename in 10148 yes,*) 10149 # gcc 10150 library_names_spec='$libname.dll.a' 10151 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10152 postinstall_cmds='base_file=`basename \$file`~ 10153 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10154 dldir=$destdir/`dirname \$dlpath`~ 10155 test -d \$dldir || mkdir -p \$dldir~ 10156 $install_prog $dir/$dlname \$dldir/$dlname~ 10157 chmod a+x \$dldir/$dlname~ 10158 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10159 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10160 fi' 10161 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10162 dlpath=$dir/\$dldll~ 10163 $RM \$dlpath' 10164 shlibpath_overrides_runpath=yes 10165 10166 case $host_os in 10167 cygwin*) 10168 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10169 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10170 10171 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10172 ;; 10173 mingw* | cegcc*) 10174 # MinGW DLLs use traditional 'lib' prefix 10175 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10176 ;; 10177 pw32*) 10178 # pw32 DLLs use 'pw' prefix rather than 'lib' 10179 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10180 ;; 10181 esac 10182 dynamic_linker='Win32 ld.exe' 10183 ;; 10184 10185 *,cl*) 10186 # Native MSVC 10187 libname_spec='$name' 10188 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10189 library_names_spec='$libname.dll.lib' 10190 10191 case $build_os in 10192 mingw*) 10193 sys_lib_search_path_spec= 10194 lt_save_ifs=$IFS 10195 IFS=';' 10196 for lt_path in $LIB 10197 do 10198 IFS=$lt_save_ifs 10199 # Let DOS variable expansion print the short 8.3 style file name. 10200 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10201 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10202 done 10203 IFS=$lt_save_ifs 10204 # Convert to MSYS style. 10205 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10206 ;; 10207 cygwin*) 10208 # Convert to unix form, then to dos form, then back to unix form 10209 # but this time dos style (no spaces!) so that the unix form looks 10210 # like /cygdrive/c/PROGRA~1:/cygdr... 10211 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10212 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10213 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10214 ;; 10215 *) 10216 sys_lib_search_path_spec=$LIB 10217 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10218 # It is most probably a Windows format PATH. 10219 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10220 else 10221 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10222 fi 10223 # FIXME: find the short name or the path components, as spaces are 10224 # common. (e.g. "Program Files" -> "PROGRA~1") 10225 ;; 10226 esac 10227 10228 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10229 postinstall_cmds='base_file=`basename \$file`~ 10230 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10231 dldir=$destdir/`dirname \$dlpath`~ 10232 test -d \$dldir || mkdir -p \$dldir~ 10233 $install_prog $dir/$dlname \$dldir/$dlname' 10234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10235 dlpath=$dir/\$dldll~ 10236 $RM \$dlpath' 10237 shlibpath_overrides_runpath=yes 10238 dynamic_linker='Win32 link.exe' 10239 ;; 10240 10241 *) 10242 # Assume MSVC wrapper 10243 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10244 dynamic_linker='Win32 ld.exe' 10245 ;; 10246 esac 10247 # FIXME: first we should search . and the directory the executable is in 10248 shlibpath_var=PATH 10249 ;; 10250 10251darwin* | rhapsody*) 10252 dynamic_linker="$host_os dyld" 10253 version_type=darwin 10254 need_lib_prefix=no 10255 need_version=no 10256 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10257 soname_spec='$libname$release$major$shared_ext' 10258 shlibpath_overrides_runpath=yes 10259 shlibpath_var=DYLD_LIBRARY_PATH 10260 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10261 10262 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10263 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10264 ;; 10265 10266dgux*) 10267 version_type=linux # correct to gnu/linux during the next big refactor 10268 need_lib_prefix=no 10269 need_version=no 10270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10271 soname_spec='$libname$release$shared_ext$major' 10272 shlibpath_var=LD_LIBRARY_PATH 10273 ;; 10274 10275freebsd* | dragonfly*) 10276 # DragonFly does not have aout. When/if they implement a new 10277 # versioning mechanism, adjust this. 10278 if test -x /usr/bin/objformat; then 10279 objformat=`/usr/bin/objformat` 10280 else 10281 case $host_os in 10282 freebsd[23].*) objformat=aout ;; 10283 *) objformat=elf ;; 10284 esac 10285 fi 10286 version_type=freebsd-$objformat 10287 case $version_type in 10288 freebsd-elf*) 10289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10290 soname_spec='$libname$release$shared_ext$major' 10291 need_version=no 10292 need_lib_prefix=no 10293 ;; 10294 freebsd-*) 10295 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10296 need_version=yes 10297 ;; 10298 esac 10299 shlibpath_var=LD_LIBRARY_PATH 10300 case $host_os in 10301 freebsd2.*) 10302 shlibpath_overrides_runpath=yes 10303 ;; 10304 freebsd3.[01]* | freebsdelf3.[01]*) 10305 shlibpath_overrides_runpath=yes 10306 hardcode_into_libs=yes 10307 ;; 10308 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10309 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10310 shlibpath_overrides_runpath=no 10311 hardcode_into_libs=yes 10312 ;; 10313 *) # from 4.6 on, and DragonFly 10314 shlibpath_overrides_runpath=yes 10315 hardcode_into_libs=yes 10316 ;; 10317 esac 10318 ;; 10319 10320haiku*) 10321 version_type=linux # correct to gnu/linux during the next big refactor 10322 need_lib_prefix=no 10323 need_version=no 10324 dynamic_linker="$host_os runtime_loader" 10325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10326 soname_spec='$libname$release$shared_ext$major' 10327 shlibpath_var=LIBRARY_PATH 10328 shlibpath_overrides_runpath=no 10329 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10330 hardcode_into_libs=yes 10331 ;; 10332 10333hpux9* | hpux10* | hpux11*) 10334 # Give a soname corresponding to the major version so that dld.sl refuses to 10335 # link against other versions. 10336 version_type=sunos 10337 need_lib_prefix=no 10338 need_version=no 10339 case $host_cpu in 10340 ia64*) 10341 shrext_cmds='.so' 10342 hardcode_into_libs=yes 10343 dynamic_linker="$host_os dld.so" 10344 shlibpath_var=LD_LIBRARY_PATH 10345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10347 soname_spec='$libname$release$shared_ext$major' 10348 if test 32 = "$HPUX_IA64_MODE"; then 10349 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10350 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10351 else 10352 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10353 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10354 fi 10355 ;; 10356 hppa*64*) 10357 shrext_cmds='.sl' 10358 hardcode_into_libs=yes 10359 dynamic_linker="$host_os dld.sl" 10360 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10363 soname_spec='$libname$release$shared_ext$major' 10364 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10366 ;; 10367 *) 10368 shrext_cmds='.sl' 10369 dynamic_linker="$host_os dld.sl" 10370 shlibpath_var=SHLIB_PATH 10371 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10372 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10373 soname_spec='$libname$release$shared_ext$major' 10374 ;; 10375 esac 10376 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10377 postinstall_cmds='chmod 555 $lib' 10378 # or fails outright, so override atomically: 10379 install_override_mode=555 10380 ;; 10381 10382interix[3-9]*) 10383 version_type=linux # correct to gnu/linux during the next big refactor 10384 need_lib_prefix=no 10385 need_version=no 10386 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10387 soname_spec='$libname$release$shared_ext$major' 10388 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10389 shlibpath_var=LD_LIBRARY_PATH 10390 shlibpath_overrides_runpath=no 10391 hardcode_into_libs=yes 10392 ;; 10393 10394irix5* | irix6* | nonstopux*) 10395 case $host_os in 10396 nonstopux*) version_type=nonstopux ;; 10397 *) 10398 if test yes = "$lt_cv_prog_gnu_ld"; then 10399 version_type=linux # correct to gnu/linux during the next big refactor 10400 else 10401 version_type=irix 10402 fi ;; 10403 esac 10404 need_lib_prefix=no 10405 need_version=no 10406 soname_spec='$libname$release$shared_ext$major' 10407 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10408 case $host_os in 10409 irix5* | nonstopux*) 10410 libsuff= shlibsuff= 10411 ;; 10412 *) 10413 case $LD in # libtool.m4 will add one of these switches to LD 10414 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10415 libsuff= shlibsuff= libmagic=32-bit;; 10416 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10417 libsuff=32 shlibsuff=N32 libmagic=N32;; 10418 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10419 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10420 *) libsuff= shlibsuff= libmagic=never-match;; 10421 esac 10422 ;; 10423 esac 10424 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10425 shlibpath_overrides_runpath=no 10426 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10427 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10428 hardcode_into_libs=yes 10429 ;; 10430 10431# No shared lib support for Linux oldld, aout, or coff. 10432linux*oldld* | linux*aout* | linux*coff*) 10433 dynamic_linker=no 10434 ;; 10435 10436linux*android*) 10437 version_type=none # Android doesn't support versioned libraries. 10438 need_lib_prefix=no 10439 need_version=no 10440 library_names_spec='$libname$release$shared_ext' 10441 soname_spec='$libname$release$shared_ext' 10442 finish_cmds= 10443 shlibpath_var=LD_LIBRARY_PATH 10444 shlibpath_overrides_runpath=yes 10445 10446 # This implies no fast_install, which is unacceptable. 10447 # Some rework will be needed to allow for fast_install 10448 # before this can be enabled. 10449 hardcode_into_libs=yes 10450 10451 dynamic_linker='Android linker' 10452 # Don't embed -rpath directories since the linker doesn't support them. 10453 hardcode_libdir_flag_spec='-L$libdir' 10454 ;; 10455 10456# This must be glibc/ELF. 10457linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10458 version_type=linux # correct to gnu/linux during the next big refactor 10459 need_lib_prefix=no 10460 need_version=no 10461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10462 soname_spec='$libname$release$shared_ext$major' 10463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10464 shlibpath_var=LD_LIBRARY_PATH 10465 shlibpath_overrides_runpath=no 10466 10467 # Some binutils ld are patched to set DT_RUNPATH 10468 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10469 $as_echo_n "(cached) " >&6 10470else 10471 lt_cv_shlibpath_overrides_runpath=no 10472 save_LDFLAGS=$LDFLAGS 10473 save_libdir=$libdir 10474 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10475 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10477/* end confdefs.h. */ 10478 10479int 10480main () 10481{ 10482 10483 ; 10484 return 0; 10485} 10486_ACEOF 10487if ac_fn_c_try_link "$LINENO"; then : 10488 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10489 lt_cv_shlibpath_overrides_runpath=yes 10490fi 10491fi 10492rm -f core conftest.err conftest.$ac_objext \ 10493 conftest$ac_exeext conftest.$ac_ext 10494 LDFLAGS=$save_LDFLAGS 10495 libdir=$save_libdir 10496 10497fi 10498 10499 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10500 10501 # This implies no fast_install, which is unacceptable. 10502 # Some rework will be needed to allow for fast_install 10503 # before this can be enabled. 10504 hardcode_into_libs=yes 10505 10506 # Ideally, we could use ldconfig to report *all* directores which are 10507 # searched for libraries, however this is still not possible. Aside from not 10508 # being certain /sbin/ldconfig is available, command 10509 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 10510 # even though it is searched at run-time. Try to do the best guess by 10511 # appending ld.so.conf contents (and includes) to the search path. 10512 if test -f /etc/ld.so.conf; then 10513 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' ' '` 10514 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10515 fi 10516 10517 # We used to test for /lib/ld.so.1 and disable shared libraries on 10518 # powerpc, because MkLinux only supported shared libraries with the 10519 # GNU dynamic linker. Since this was broken with cross compilers, 10520 # most powerpc-linux boxes support dynamic linking these days and 10521 # people can always --disable-shared, the test was removed, and we 10522 # assume the GNU/Linux dynamic linker is in use. 10523 dynamic_linker='GNU/Linux ld.so' 10524 ;; 10525 10526netbsdelf*-gnu) 10527 version_type=linux 10528 need_lib_prefix=no 10529 need_version=no 10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10531 soname_spec='${libname}${release}${shared_ext}$major' 10532 shlibpath_var=LD_LIBRARY_PATH 10533 shlibpath_overrides_runpath=no 10534 hardcode_into_libs=yes 10535 dynamic_linker='NetBSD ld.elf_so' 10536 ;; 10537 10538netbsd*) 10539 version_type=sunos 10540 need_lib_prefix=no 10541 need_version=no 10542 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10543 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10545 dynamic_linker='NetBSD (a.out) ld.so' 10546 else 10547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10548 soname_spec='$libname$release$shared_ext$major' 10549 dynamic_linker='NetBSD ld.elf_so' 10550 fi 10551 shlibpath_var=LD_LIBRARY_PATH 10552 shlibpath_overrides_runpath=yes 10553 hardcode_into_libs=yes 10554 ;; 10555 10556newsos6) 10557 version_type=linux # correct to gnu/linux during the next big refactor 10558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10559 shlibpath_var=LD_LIBRARY_PATH 10560 shlibpath_overrides_runpath=yes 10561 ;; 10562 10563*nto* | *qnx*) 10564 version_type=qnx 10565 need_lib_prefix=no 10566 need_version=no 10567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10568 soname_spec='$libname$release$shared_ext$major' 10569 shlibpath_var=LD_LIBRARY_PATH 10570 shlibpath_overrides_runpath=no 10571 hardcode_into_libs=yes 10572 dynamic_linker='ldqnx.so' 10573 ;; 10574 10575openbsd* | bitrig*) 10576 version_type=sunos 10577 sys_lib_dlsearch_path_spec=/usr/lib 10578 need_lib_prefix=no 10579 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10580 need_version=no 10581 else 10582 need_version=yes 10583 fi 10584 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10585 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10586 shlibpath_var=LD_LIBRARY_PATH 10587 shlibpath_overrides_runpath=yes 10588 ;; 10589 10590os2*) 10591 libname_spec='$name' 10592 version_type=windows 10593 shrext_cmds=.dll 10594 need_version=no 10595 need_lib_prefix=no 10596 # OS/2 can only load a DLL with a base name of 8 characters or less. 10597 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 10598 v=$($ECHO $release$versuffix | tr -d .-); 10599 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 10600 $ECHO $n$v`$shared_ext' 10601 library_names_spec='${libname}_dll.$libext' 10602 dynamic_linker='OS/2 ld.exe' 10603 shlibpath_var=BEGINLIBPATH 10604 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10606 postinstall_cmds='base_file=`basename \$file`~ 10607 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 10608 dldir=$destdir/`dirname \$dlpath`~ 10609 test -d \$dldir || mkdir -p \$dldir~ 10610 $install_prog $dir/$dlname \$dldir/$dlname~ 10611 chmod a+x \$dldir/$dlname~ 10612 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10613 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10614 fi' 10615 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 10616 dlpath=$dir/\$dldll~ 10617 $RM \$dlpath' 10618 ;; 10619 10620osf3* | osf4* | osf5*) 10621 version_type=osf 10622 need_lib_prefix=no 10623 need_version=no 10624 soname_spec='$libname$release$shared_ext$major' 10625 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10626 shlibpath_var=LD_LIBRARY_PATH 10627 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10628 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10629 ;; 10630 10631rdos*) 10632 dynamic_linker=no 10633 ;; 10634 10635solaris*) 10636 version_type=linux # correct to gnu/linux during the next big refactor 10637 need_lib_prefix=no 10638 need_version=no 10639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10640 soname_spec='$libname$release$shared_ext$major' 10641 shlibpath_var=LD_LIBRARY_PATH 10642 shlibpath_overrides_runpath=yes 10643 hardcode_into_libs=yes 10644 # ldd complains unless libraries are executable 10645 postinstall_cmds='chmod +x $lib' 10646 ;; 10647 10648sunos4*) 10649 version_type=sunos 10650 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10651 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10652 shlibpath_var=LD_LIBRARY_PATH 10653 shlibpath_overrides_runpath=yes 10654 if test yes = "$with_gnu_ld"; then 10655 need_lib_prefix=no 10656 fi 10657 need_version=yes 10658 ;; 10659 10660sysv4 | sysv4.3*) 10661 version_type=linux # correct to gnu/linux during the next big refactor 10662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10663 soname_spec='$libname$release$shared_ext$major' 10664 shlibpath_var=LD_LIBRARY_PATH 10665 case $host_vendor in 10666 sni) 10667 shlibpath_overrides_runpath=no 10668 need_lib_prefix=no 10669 runpath_var=LD_RUN_PATH 10670 ;; 10671 siemens) 10672 need_lib_prefix=no 10673 ;; 10674 motorola) 10675 need_lib_prefix=no 10676 need_version=no 10677 shlibpath_overrides_runpath=no 10678 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10679 ;; 10680 esac 10681 ;; 10682 10683sysv4*MP*) 10684 if test -d /usr/nec; then 10685 version_type=linux # correct to gnu/linux during the next big refactor 10686 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 10687 soname_spec='$libname$shared_ext.$major' 10688 shlibpath_var=LD_LIBRARY_PATH 10689 fi 10690 ;; 10691 10692sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10693 version_type=sco 10694 need_lib_prefix=no 10695 need_version=no 10696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 10697 soname_spec='$libname$release$shared_ext$major' 10698 shlibpath_var=LD_LIBRARY_PATH 10699 shlibpath_overrides_runpath=yes 10700 hardcode_into_libs=yes 10701 if test yes = "$with_gnu_ld"; then 10702 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10703 else 10704 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10705 case $host_os in 10706 sco3.2v5*) 10707 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10708 ;; 10709 esac 10710 fi 10711 sys_lib_dlsearch_path_spec='/usr/lib' 10712 ;; 10713 10714tpf*) 10715 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10716 version_type=linux # correct to gnu/linux during the next big refactor 10717 need_lib_prefix=no 10718 need_version=no 10719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10720 shlibpath_var=LD_LIBRARY_PATH 10721 shlibpath_overrides_runpath=no 10722 hardcode_into_libs=yes 10723 ;; 10724 10725uts4*) 10726 version_type=linux # correct to gnu/linux during the next big refactor 10727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10728 soname_spec='$libname$release$shared_ext$major' 10729 shlibpath_var=LD_LIBRARY_PATH 10730 ;; 10731 10732*) 10733 dynamic_linker=no 10734 ;; 10735esac 10736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10737$as_echo "$dynamic_linker" >&6; } 10738test no = "$dynamic_linker" && can_build_shared=no 10739 10740variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10741if test yes = "$GCC"; then 10742 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10743fi 10744 10745if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 10746 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 10747fi 10748 10749if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 10750 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 10751fi 10752 10753# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 10754configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 10755 10756# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 10757func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 10758 10759# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 10760configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10859$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10860hardcode_action= 10861if test -n "$hardcode_libdir_flag_spec" || 10862 test -n "$runpath_var" || 10863 test yes = "$hardcode_automatic"; then 10864 10865 # We can hardcode non-existent directories. 10866 if test no != "$hardcode_direct" && 10867 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10868 # have to relink, otherwise we might link with an installed library 10869 # when we should be linking with a yet-to-be-installed one 10870 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 10871 test no != "$hardcode_minus_L"; then 10872 # Linking always hardcodes the temporary library directory. 10873 hardcode_action=relink 10874 else 10875 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10876 hardcode_action=immediate 10877 fi 10878else 10879 # We cannot hardcode anything, or else we can only hardcode existing 10880 # directories. 10881 hardcode_action=unsupported 10882fi 10883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10884$as_echo "$hardcode_action" >&6; } 10885 10886if test relink = "$hardcode_action" || 10887 test yes = "$inherit_rpath"; then 10888 # Fast installation is not supported 10889 enable_fast_install=no 10890elif test yes = "$shlibpath_overrides_runpath" || 10891 test no = "$enable_shared"; then 10892 # Fast installation is not necessary 10893 enable_fast_install=needless 10894fi 10895 10896 10897 10898 10899 10900 10901 if test yes != "$enable_dlopen"; then 10902 enable_dlopen=unknown 10903 enable_dlopen_self=unknown 10904 enable_dlopen_self_static=unknown 10905else 10906 lt_cv_dlopen=no 10907 lt_cv_dlopen_libs= 10908 10909 case $host_os in 10910 beos*) 10911 lt_cv_dlopen=load_add_on 10912 lt_cv_dlopen_libs= 10913 lt_cv_dlopen_self=yes 10914 ;; 10915 10916 mingw* | pw32* | cegcc*) 10917 lt_cv_dlopen=LoadLibrary 10918 lt_cv_dlopen_libs= 10919 ;; 10920 10921 cygwin*) 10922 lt_cv_dlopen=dlopen 10923 lt_cv_dlopen_libs= 10924 ;; 10925 10926 darwin*) 10927 # if libdl is installed we need to link against it 10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10929$as_echo_n "checking for dlopen in -ldl... " >&6; } 10930if ${ac_cv_lib_dl_dlopen+:} false; then : 10931 $as_echo_n "(cached) " >&6 10932else 10933 ac_check_lib_save_LIBS=$LIBS 10934LIBS="-ldl $LIBS" 10935cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10936/* end confdefs.h. */ 10937 10938/* Override any GCC internal prototype to avoid an error. 10939 Use char because int might match the return type of a GCC 10940 builtin and then its argument prototype would still apply. */ 10941#ifdef __cplusplus 10942extern "C" 10943#endif 10944char dlopen (); 10945int 10946main () 10947{ 10948return dlopen (); 10949 ; 10950 return 0; 10951} 10952_ACEOF 10953if ac_fn_c_try_link "$LINENO"; then : 10954 ac_cv_lib_dl_dlopen=yes 10955else 10956 ac_cv_lib_dl_dlopen=no 10957fi 10958rm -f core conftest.err conftest.$ac_objext \ 10959 conftest$ac_exeext conftest.$ac_ext 10960LIBS=$ac_check_lib_save_LIBS 10961fi 10962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10963$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10964if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10965 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 10966else 10967 10968 lt_cv_dlopen=dyld 10969 lt_cv_dlopen_libs= 10970 lt_cv_dlopen_self=yes 10971 10972fi 10973 10974 ;; 10975 10976 tpf*) 10977 # Don't try to run any link tests for TPF. We know it's impossible 10978 # because TPF is a cross-compiler, and we know how we open DSOs. 10979 lt_cv_dlopen=dlopen 10980 lt_cv_dlopen_libs= 10981 lt_cv_dlopen_self=no 10982 ;; 10983 10984 *) 10985 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10986if test "x$ac_cv_func_shl_load" = xyes; then : 10987 lt_cv_dlopen=shl_load 10988else 10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10990$as_echo_n "checking for shl_load in -ldld... " >&6; } 10991if ${ac_cv_lib_dld_shl_load+:} false; then : 10992 $as_echo_n "(cached) " >&6 10993else 10994 ac_check_lib_save_LIBS=$LIBS 10995LIBS="-ldld $LIBS" 10996cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10997/* end confdefs.h. */ 10998 10999/* Override any GCC internal prototype to avoid an error. 11000 Use char because int might match the return type of a GCC 11001 builtin and then its argument prototype would still apply. */ 11002#ifdef __cplusplus 11003extern "C" 11004#endif 11005char shl_load (); 11006int 11007main () 11008{ 11009return shl_load (); 11010 ; 11011 return 0; 11012} 11013_ACEOF 11014if ac_fn_c_try_link "$LINENO"; then : 11015 ac_cv_lib_dld_shl_load=yes 11016else 11017 ac_cv_lib_dld_shl_load=no 11018fi 11019rm -f core conftest.err conftest.$ac_objext \ 11020 conftest$ac_exeext conftest.$ac_ext 11021LIBS=$ac_check_lib_save_LIBS 11022fi 11023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11024$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11025if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11026 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11027else 11028 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11029if test "x$ac_cv_func_dlopen" = xyes; then : 11030 lt_cv_dlopen=dlopen 11031else 11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11033$as_echo_n "checking for dlopen in -ldl... " >&6; } 11034if ${ac_cv_lib_dl_dlopen+:} false; then : 11035 $as_echo_n "(cached) " >&6 11036else 11037 ac_check_lib_save_LIBS=$LIBS 11038LIBS="-ldl $LIBS" 11039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11040/* end confdefs.h. */ 11041 11042/* Override any GCC internal prototype to avoid an error. 11043 Use char because int might match the return type of a GCC 11044 builtin and then its argument prototype would still apply. */ 11045#ifdef __cplusplus 11046extern "C" 11047#endif 11048char dlopen (); 11049int 11050main () 11051{ 11052return dlopen (); 11053 ; 11054 return 0; 11055} 11056_ACEOF 11057if ac_fn_c_try_link "$LINENO"; then : 11058 ac_cv_lib_dl_dlopen=yes 11059else 11060 ac_cv_lib_dl_dlopen=no 11061fi 11062rm -f core conftest.err conftest.$ac_objext \ 11063 conftest$ac_exeext conftest.$ac_ext 11064LIBS=$ac_check_lib_save_LIBS 11065fi 11066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11067$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11068if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11069 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11070else 11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11072$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11073if ${ac_cv_lib_svld_dlopen+:} false; then : 11074 $as_echo_n "(cached) " >&6 11075else 11076 ac_check_lib_save_LIBS=$LIBS 11077LIBS="-lsvld $LIBS" 11078cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11079/* end confdefs.h. */ 11080 11081/* Override any GCC internal prototype to avoid an error. 11082 Use char because int might match the return type of a GCC 11083 builtin and then its argument prototype would still apply. */ 11084#ifdef __cplusplus 11085extern "C" 11086#endif 11087char dlopen (); 11088int 11089main () 11090{ 11091return dlopen (); 11092 ; 11093 return 0; 11094} 11095_ACEOF 11096if ac_fn_c_try_link "$LINENO"; then : 11097 ac_cv_lib_svld_dlopen=yes 11098else 11099 ac_cv_lib_svld_dlopen=no 11100fi 11101rm -f core conftest.err conftest.$ac_objext \ 11102 conftest$ac_exeext conftest.$ac_ext 11103LIBS=$ac_check_lib_save_LIBS 11104fi 11105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11106$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11107if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11108 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11109else 11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11111$as_echo_n "checking for dld_link in -ldld... " >&6; } 11112if ${ac_cv_lib_dld_dld_link+:} false; then : 11113 $as_echo_n "(cached) " >&6 11114else 11115 ac_check_lib_save_LIBS=$LIBS 11116LIBS="-ldld $LIBS" 11117cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11118/* end confdefs.h. */ 11119 11120/* Override any GCC internal prototype to avoid an error. 11121 Use char because int might match the return type of a GCC 11122 builtin and then its argument prototype would still apply. */ 11123#ifdef __cplusplus 11124extern "C" 11125#endif 11126char dld_link (); 11127int 11128main () 11129{ 11130return dld_link (); 11131 ; 11132 return 0; 11133} 11134_ACEOF 11135if ac_fn_c_try_link "$LINENO"; then : 11136 ac_cv_lib_dld_dld_link=yes 11137else 11138 ac_cv_lib_dld_dld_link=no 11139fi 11140rm -f core conftest.err conftest.$ac_objext \ 11141 conftest$ac_exeext conftest.$ac_ext 11142LIBS=$ac_check_lib_save_LIBS 11143fi 11144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11145$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11146if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11147 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11148fi 11149 11150 11151fi 11152 11153 11154fi 11155 11156 11157fi 11158 11159 11160fi 11161 11162 11163fi 11164 11165 ;; 11166 esac 11167 11168 if test no = "$lt_cv_dlopen"; then 11169 enable_dlopen=no 11170 else 11171 enable_dlopen=yes 11172 fi 11173 11174 case $lt_cv_dlopen in 11175 dlopen) 11176 save_CPPFLAGS=$CPPFLAGS 11177 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11178 11179 save_LDFLAGS=$LDFLAGS 11180 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11181 11182 save_LIBS=$LIBS 11183 LIBS="$lt_cv_dlopen_libs $LIBS" 11184 11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11186$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11187if ${lt_cv_dlopen_self+:} false; then : 11188 $as_echo_n "(cached) " >&6 11189else 11190 if test yes = "$cross_compiling"; then : 11191 lt_cv_dlopen_self=cross 11192else 11193 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11194 lt_status=$lt_dlunknown 11195 cat > conftest.$ac_ext <<_LT_EOF 11196#line $LINENO "configure" 11197#include "confdefs.h" 11198 11199#if HAVE_DLFCN_H 11200#include <dlfcn.h> 11201#endif 11202 11203#include <stdio.h> 11204 11205#ifdef RTLD_GLOBAL 11206# define LT_DLGLOBAL RTLD_GLOBAL 11207#else 11208# ifdef DL_GLOBAL 11209# define LT_DLGLOBAL DL_GLOBAL 11210# else 11211# define LT_DLGLOBAL 0 11212# endif 11213#endif 11214 11215/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11216 find out it does not work in some platform. */ 11217#ifndef LT_DLLAZY_OR_NOW 11218# ifdef RTLD_LAZY 11219# define LT_DLLAZY_OR_NOW RTLD_LAZY 11220# else 11221# ifdef DL_LAZY 11222# define LT_DLLAZY_OR_NOW DL_LAZY 11223# else 11224# ifdef RTLD_NOW 11225# define LT_DLLAZY_OR_NOW RTLD_NOW 11226# else 11227# ifdef DL_NOW 11228# define LT_DLLAZY_OR_NOW DL_NOW 11229# else 11230# define LT_DLLAZY_OR_NOW 0 11231# endif 11232# endif 11233# endif 11234# endif 11235#endif 11236 11237/* When -fvisibility=hidden is used, assume the code has been annotated 11238 correspondingly for the symbols needed. */ 11239#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11240int fnord () __attribute__((visibility("default"))); 11241#endif 11242 11243int fnord () { return 42; } 11244int main () 11245{ 11246 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11247 int status = $lt_dlunknown; 11248 11249 if (self) 11250 { 11251 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11252 else 11253 { 11254 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11255 else puts (dlerror ()); 11256 } 11257 /* dlclose (self); */ 11258 } 11259 else 11260 puts (dlerror ()); 11261 11262 return status; 11263} 11264_LT_EOF 11265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11266 (eval $ac_link) 2>&5 11267 ac_status=$? 11268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11269 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11270 (./conftest; exit; ) >&5 2>/dev/null 11271 lt_status=$? 11272 case x$lt_status in 11273 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11274 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11275 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11276 esac 11277 else : 11278 # compilation failed 11279 lt_cv_dlopen_self=no 11280 fi 11281fi 11282rm -fr conftest* 11283 11284 11285fi 11286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11287$as_echo "$lt_cv_dlopen_self" >&6; } 11288 11289 if test yes = "$lt_cv_dlopen_self"; then 11290 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11292$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11293if ${lt_cv_dlopen_self_static+:} false; then : 11294 $as_echo_n "(cached) " >&6 11295else 11296 if test yes = "$cross_compiling"; then : 11297 lt_cv_dlopen_self_static=cross 11298else 11299 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11300 lt_status=$lt_dlunknown 11301 cat > conftest.$ac_ext <<_LT_EOF 11302#line $LINENO "configure" 11303#include "confdefs.h" 11304 11305#if HAVE_DLFCN_H 11306#include <dlfcn.h> 11307#endif 11308 11309#include <stdio.h> 11310 11311#ifdef RTLD_GLOBAL 11312# define LT_DLGLOBAL RTLD_GLOBAL 11313#else 11314# ifdef DL_GLOBAL 11315# define LT_DLGLOBAL DL_GLOBAL 11316# else 11317# define LT_DLGLOBAL 0 11318# endif 11319#endif 11320 11321/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11322 find out it does not work in some platform. */ 11323#ifndef LT_DLLAZY_OR_NOW 11324# ifdef RTLD_LAZY 11325# define LT_DLLAZY_OR_NOW RTLD_LAZY 11326# else 11327# ifdef DL_LAZY 11328# define LT_DLLAZY_OR_NOW DL_LAZY 11329# else 11330# ifdef RTLD_NOW 11331# define LT_DLLAZY_OR_NOW RTLD_NOW 11332# else 11333# ifdef DL_NOW 11334# define LT_DLLAZY_OR_NOW DL_NOW 11335# else 11336# define LT_DLLAZY_OR_NOW 0 11337# endif 11338# endif 11339# endif 11340# endif 11341#endif 11342 11343/* When -fvisibility=hidden is used, assume the code has been annotated 11344 correspondingly for the symbols needed. */ 11345#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11346int fnord () __attribute__((visibility("default"))); 11347#endif 11348 11349int fnord () { return 42; } 11350int main () 11351{ 11352 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11353 int status = $lt_dlunknown; 11354 11355 if (self) 11356 { 11357 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11358 else 11359 { 11360 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11361 else puts (dlerror ()); 11362 } 11363 /* dlclose (self); */ 11364 } 11365 else 11366 puts (dlerror ()); 11367 11368 return status; 11369} 11370_LT_EOF 11371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11372 (eval $ac_link) 2>&5 11373 ac_status=$? 11374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11375 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11376 (./conftest; exit; ) >&5 2>/dev/null 11377 lt_status=$? 11378 case x$lt_status in 11379 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11380 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11381 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11382 esac 11383 else : 11384 # compilation failed 11385 lt_cv_dlopen_self_static=no 11386 fi 11387fi 11388rm -fr conftest* 11389 11390 11391fi 11392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11393$as_echo "$lt_cv_dlopen_self_static" >&6; } 11394 fi 11395 11396 CPPFLAGS=$save_CPPFLAGS 11397 LDFLAGS=$save_LDFLAGS 11398 LIBS=$save_LIBS 11399 ;; 11400 esac 11401 11402 case $lt_cv_dlopen_self in 11403 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11404 *) enable_dlopen_self=unknown ;; 11405 esac 11406 11407 case $lt_cv_dlopen_self_static in 11408 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11409 *) enable_dlopen_self_static=unknown ;; 11410 esac 11411fi 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429striplib= 11430old_striplib= 11431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11432$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11433if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11434 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11435 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11437$as_echo "yes" >&6; } 11438else 11439# FIXME - insert some real tests, host_os isn't really good enough 11440 case $host_os in 11441 darwin*) 11442 if test -n "$STRIP"; then 11443 striplib="$STRIP -x" 11444 old_striplib="$STRIP -S" 11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11446$as_echo "yes" >&6; } 11447 else 11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11449$as_echo "no" >&6; } 11450 fi 11451 ;; 11452 *) 11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11454$as_echo "no" >&6; } 11455 ;; 11456 esac 11457fi 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 # Report what library types will actually be built 11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11472$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11474$as_echo "$can_build_shared" >&6; } 11475 11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11477$as_echo_n "checking whether to build shared libraries... " >&6; } 11478 test no = "$can_build_shared" && enable_shared=no 11479 11480 # On AIX, shared libraries and static libraries use the same namespace, and 11481 # are all built from PIC. 11482 case $host_os in 11483 aix3*) 11484 test yes = "$enable_shared" && enable_static=no 11485 if test -n "$RANLIB"; then 11486 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11487 postinstall_cmds='$RANLIB $lib' 11488 fi 11489 ;; 11490 11491 aix[4-9]*) 11492 if test ia64 != "$host_cpu"; then 11493 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 11494 yes,aix,yes) ;; # shared object as lib.so file only 11495 yes,svr4,*) ;; # shared object as lib.so archive member only 11496 yes,*) enable_static=no ;; # shared object in lib.a archive as well 11497 esac 11498 fi 11499 ;; 11500 esac 11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11502$as_echo "$enable_shared" >&6; } 11503 11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11505$as_echo_n "checking whether to build static libraries... " >&6; } 11506 # Make sure either enable_shared or enable_static is yes. 11507 test yes = "$enable_shared" || enable_static=yes 11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11509$as_echo "$enable_static" >&6; } 11510 11511 11512 11513 11514fi 11515ac_ext=c 11516ac_cpp='$CPP $CPPFLAGS' 11517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11519ac_compiler_gnu=$ac_cv_c_compiler_gnu 11520 11521CC=$lt_save_CC 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 ac_config_commands="$ac_config_commands libtool" 11538 11539 11540 11541 11542# Only expand once: 11543 11544 11545 ;; 11546esac 11547 11548blddir=`pwd` 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561ac_ext=c 11562ac_cpp='$CPP $CPPFLAGS' 11563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11565ac_compiler_gnu=$ac_cv_c_compiler_gnu 11566if test -n "$ac_tool_prefix"; then 11567 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11568set dummy ${ac_tool_prefix}gcc; ac_word=$2 11569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11570$as_echo_n "checking for $ac_word... " >&6; } 11571if ${ac_cv_prog_CC+:} false; then : 11572 $as_echo_n "(cached) " >&6 11573else 11574 if test -n "$CC"; then 11575 ac_cv_prog_CC="$CC" # Let the user override the test. 11576else 11577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11578for as_dir in $PATH 11579do 11580 IFS=$as_save_IFS 11581 test -z "$as_dir" && as_dir=. 11582 for ac_exec_ext in '' $ac_executable_extensions; do 11583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11584 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11586 break 2 11587 fi 11588done 11589 done 11590IFS=$as_save_IFS 11591 11592fi 11593fi 11594CC=$ac_cv_prog_CC 11595if test -n "$CC"; then 11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11597$as_echo "$CC" >&6; } 11598else 11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11600$as_echo "no" >&6; } 11601fi 11602 11603 11604fi 11605if test -z "$ac_cv_prog_CC"; then 11606 ac_ct_CC=$CC 11607 # Extract the first word of "gcc", so it can be a program name with args. 11608set dummy gcc; ac_word=$2 11609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11610$as_echo_n "checking for $ac_word... " >&6; } 11611if ${ac_cv_prog_ac_ct_CC+:} false; then : 11612 $as_echo_n "(cached) " >&6 11613else 11614 if test -n "$ac_ct_CC"; then 11615 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11616else 11617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11618for as_dir in $PATH 11619do 11620 IFS=$as_save_IFS 11621 test -z "$as_dir" && as_dir=. 11622 for ac_exec_ext in '' $ac_executable_extensions; do 11623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11624 ac_cv_prog_ac_ct_CC="gcc" 11625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11626 break 2 11627 fi 11628done 11629 done 11630IFS=$as_save_IFS 11631 11632fi 11633fi 11634ac_ct_CC=$ac_cv_prog_ac_ct_CC 11635if test -n "$ac_ct_CC"; then 11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11637$as_echo "$ac_ct_CC" >&6; } 11638else 11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11640$as_echo "no" >&6; } 11641fi 11642 11643 if test "x$ac_ct_CC" = x; then 11644 CC="" 11645 else 11646 case $cross_compiling:$ac_tool_warned in 11647yes:) 11648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11650ac_tool_warned=yes ;; 11651esac 11652 CC=$ac_ct_CC 11653 fi 11654else 11655 CC="$ac_cv_prog_CC" 11656fi 11657 11658if test -z "$CC"; then 11659 if test -n "$ac_tool_prefix"; then 11660 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11661set dummy ${ac_tool_prefix}cc; ac_word=$2 11662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11663$as_echo_n "checking for $ac_word... " >&6; } 11664if ${ac_cv_prog_CC+:} false; then : 11665 $as_echo_n "(cached) " >&6 11666else 11667 if test -n "$CC"; then 11668 ac_cv_prog_CC="$CC" # Let the user override the test. 11669else 11670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11671for as_dir in $PATH 11672do 11673 IFS=$as_save_IFS 11674 test -z "$as_dir" && as_dir=. 11675 for ac_exec_ext in '' $ac_executable_extensions; do 11676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11677 ac_cv_prog_CC="${ac_tool_prefix}cc" 11678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11679 break 2 11680 fi 11681done 11682 done 11683IFS=$as_save_IFS 11684 11685fi 11686fi 11687CC=$ac_cv_prog_CC 11688if test -n "$CC"; then 11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11690$as_echo "$CC" >&6; } 11691else 11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11693$as_echo "no" >&6; } 11694fi 11695 11696 11697 fi 11698fi 11699if test -z "$CC"; then 11700 # Extract the first word of "cc", so it can be a program name with args. 11701set dummy cc; ac_word=$2 11702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11703$as_echo_n "checking for $ac_word... " >&6; } 11704if ${ac_cv_prog_CC+:} false; then : 11705 $as_echo_n "(cached) " >&6 11706else 11707 if test -n "$CC"; then 11708 ac_cv_prog_CC="$CC" # Let the user override the test. 11709else 11710 ac_prog_rejected=no 11711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11712for as_dir in $PATH 11713do 11714 IFS=$as_save_IFS 11715 test -z "$as_dir" && as_dir=. 11716 for ac_exec_ext in '' $ac_executable_extensions; do 11717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11718 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11719 ac_prog_rejected=yes 11720 continue 11721 fi 11722 ac_cv_prog_CC="cc" 11723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11724 break 2 11725 fi 11726done 11727 done 11728IFS=$as_save_IFS 11729 11730if test $ac_prog_rejected = yes; then 11731 # We found a bogon in the path, so make sure we never use it. 11732 set dummy $ac_cv_prog_CC 11733 shift 11734 if test $# != 0; then 11735 # We chose a different compiler from the bogus one. 11736 # However, it has the same basename, so the bogon will be chosen 11737 # first if we set CC to just the basename; use the full file name. 11738 shift 11739 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11740 fi 11741fi 11742fi 11743fi 11744CC=$ac_cv_prog_CC 11745if test -n "$CC"; then 11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11747$as_echo "$CC" >&6; } 11748else 11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11750$as_echo "no" >&6; } 11751fi 11752 11753 11754fi 11755if test -z "$CC"; then 11756 if test -n "$ac_tool_prefix"; then 11757 for ac_prog in cl.exe 11758 do 11759 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11760set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11762$as_echo_n "checking for $ac_word... " >&6; } 11763if ${ac_cv_prog_CC+:} false; then : 11764 $as_echo_n "(cached) " >&6 11765else 11766 if test -n "$CC"; then 11767 ac_cv_prog_CC="$CC" # Let the user override the test. 11768else 11769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11770for as_dir in $PATH 11771do 11772 IFS=$as_save_IFS 11773 test -z "$as_dir" && as_dir=. 11774 for ac_exec_ext in '' $ac_executable_extensions; do 11775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11776 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11778 break 2 11779 fi 11780done 11781 done 11782IFS=$as_save_IFS 11783 11784fi 11785fi 11786CC=$ac_cv_prog_CC 11787if test -n "$CC"; then 11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11789$as_echo "$CC" >&6; } 11790else 11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11792$as_echo "no" >&6; } 11793fi 11794 11795 11796 test -n "$CC" && break 11797 done 11798fi 11799if test -z "$CC"; then 11800 ac_ct_CC=$CC 11801 for ac_prog in cl.exe 11802do 11803 # Extract the first word of "$ac_prog", so it can be a program name with args. 11804set dummy $ac_prog; ac_word=$2 11805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11806$as_echo_n "checking for $ac_word... " >&6; } 11807if ${ac_cv_prog_ac_ct_CC+:} false; then : 11808 $as_echo_n "(cached) " >&6 11809else 11810 if test -n "$ac_ct_CC"; then 11811 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11812else 11813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11814for as_dir in $PATH 11815do 11816 IFS=$as_save_IFS 11817 test -z "$as_dir" && as_dir=. 11818 for ac_exec_ext in '' $ac_executable_extensions; do 11819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11820 ac_cv_prog_ac_ct_CC="$ac_prog" 11821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11822 break 2 11823 fi 11824done 11825 done 11826IFS=$as_save_IFS 11827 11828fi 11829fi 11830ac_ct_CC=$ac_cv_prog_ac_ct_CC 11831if test -n "$ac_ct_CC"; then 11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11833$as_echo "$ac_ct_CC" >&6; } 11834else 11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11836$as_echo "no" >&6; } 11837fi 11838 11839 11840 test -n "$ac_ct_CC" && break 11841done 11842 11843 if test "x$ac_ct_CC" = x; then 11844 CC="" 11845 else 11846 case $cross_compiling:$ac_tool_warned in 11847yes:) 11848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11850ac_tool_warned=yes ;; 11851esac 11852 CC=$ac_ct_CC 11853 fi 11854fi 11855 11856fi 11857 11858 11859test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11861as_fn_error $? "no acceptable C compiler found in \$PATH 11862See \`config.log' for more details" "$LINENO" 5; } 11863 11864# Provide some information about the compiler. 11865$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 11866set X $ac_compile 11867ac_compiler=$2 11868for ac_option in --version -v -V -qversion; do 11869 { { ac_try="$ac_compiler $ac_option >&5" 11870case "(($ac_try" in 11871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11872 *) ac_try_echo=$ac_try;; 11873esac 11874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11875$as_echo "$ac_try_echo"; } >&5 11876 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11877 ac_status=$? 11878 if test -s conftest.err; then 11879 sed '10a\ 11880... rest of stderr output deleted ... 11881 10q' conftest.err >conftest.er1 11882 cat conftest.er1 >&5 11883 fi 11884 rm -f conftest.er1 conftest.err 11885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11886 test $ac_status = 0; } 11887done 11888 11889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 11890$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11891if ${ac_cv_c_compiler_gnu+:} false; then : 11892 $as_echo_n "(cached) " >&6 11893else 11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11895/* end confdefs.h. */ 11896 11897int 11898main () 11899{ 11900#ifndef __GNUC__ 11901 choke me 11902#endif 11903 11904 ; 11905 return 0; 11906} 11907_ACEOF 11908if ac_fn_c_try_compile "$LINENO"; then : 11909 ac_compiler_gnu=yes 11910else 11911 ac_compiler_gnu=no 11912fi 11913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11914ac_cv_c_compiler_gnu=$ac_compiler_gnu 11915 11916fi 11917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 11918$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11919if test $ac_compiler_gnu = yes; then 11920 GCC=yes 11921else 11922 GCC= 11923fi 11924ac_test_CFLAGS=${CFLAGS+set} 11925ac_save_CFLAGS=$CFLAGS 11926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 11927$as_echo_n "checking whether $CC accepts -g... " >&6; } 11928if ${ac_cv_prog_cc_g+:} false; then : 11929 $as_echo_n "(cached) " >&6 11930else 11931 ac_save_c_werror_flag=$ac_c_werror_flag 11932 ac_c_werror_flag=yes 11933 ac_cv_prog_cc_g=no 11934 CFLAGS="-g" 11935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11936/* end confdefs.h. */ 11937 11938int 11939main () 11940{ 11941 11942 ; 11943 return 0; 11944} 11945_ACEOF 11946if ac_fn_c_try_compile "$LINENO"; then : 11947 ac_cv_prog_cc_g=yes 11948else 11949 CFLAGS="" 11950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11951/* end confdefs.h. */ 11952 11953int 11954main () 11955{ 11956 11957 ; 11958 return 0; 11959} 11960_ACEOF 11961if ac_fn_c_try_compile "$LINENO"; then : 11962 11963else 11964 ac_c_werror_flag=$ac_save_c_werror_flag 11965 CFLAGS="-g" 11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11967/* end confdefs.h. */ 11968 11969int 11970main () 11971{ 11972 11973 ; 11974 return 0; 11975} 11976_ACEOF 11977if ac_fn_c_try_compile "$LINENO"; then : 11978 ac_cv_prog_cc_g=yes 11979fi 11980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11981fi 11982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11983fi 11984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11985 ac_c_werror_flag=$ac_save_c_werror_flag 11986fi 11987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 11988$as_echo "$ac_cv_prog_cc_g" >&6; } 11989if test "$ac_test_CFLAGS" = set; then 11990 CFLAGS=$ac_save_CFLAGS 11991elif test $ac_cv_prog_cc_g = yes; then 11992 if test "$GCC" = yes; then 11993 CFLAGS="-g -O2" 11994 else 11995 CFLAGS="-g" 11996 fi 11997else 11998 if test "$GCC" = yes; then 11999 CFLAGS="-O2" 12000 else 12001 CFLAGS= 12002 fi 12003fi 12004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12005$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12006if ${ac_cv_prog_cc_c89+:} false; then : 12007 $as_echo_n "(cached) " >&6 12008else 12009 ac_cv_prog_cc_c89=no 12010ac_save_CC=$CC 12011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12012/* end confdefs.h. */ 12013#include <stdarg.h> 12014#include <stdio.h> 12015struct stat; 12016/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12017struct buf { int x; }; 12018FILE * (*rcsopen) (struct buf *, struct stat *, int); 12019static char *e (p, i) 12020 char **p; 12021 int i; 12022{ 12023 return p[i]; 12024} 12025static char *f (char * (*g) (char **, int), char **p, ...) 12026{ 12027 char *s; 12028 va_list v; 12029 va_start (v,p); 12030 s = g (p, va_arg (v,int)); 12031 va_end (v); 12032 return s; 12033} 12034 12035/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12036 function prototypes and stuff, but not '\xHH' hex character constants. 12037 These don't provoke an error unfortunately, instead are silently treated 12038 as 'x'. The following induces an error, until -std is added to get 12039 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12040 array size at least. It's necessary to write '\x00'==0 to get something 12041 that's true only with -std. */ 12042int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12043 12044/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12045 inside strings and character constants. */ 12046#define FOO(x) 'x' 12047int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12048 12049int test (int i, double x); 12050struct s1 {int (*f) (int a);}; 12051struct s2 {int (*f) (double a);}; 12052int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12053int argc; 12054char **argv; 12055int 12056main () 12057{ 12058return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12059 ; 12060 return 0; 12061} 12062_ACEOF 12063for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12064 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12065do 12066 CC="$ac_save_CC $ac_arg" 12067 if ac_fn_c_try_compile "$LINENO"; then : 12068 ac_cv_prog_cc_c89=$ac_arg 12069fi 12070rm -f core conftest.err conftest.$ac_objext 12071 test "x$ac_cv_prog_cc_c89" != "xno" && break 12072done 12073rm -f conftest.$ac_ext 12074CC=$ac_save_CC 12075 12076fi 12077# AC_CACHE_VAL 12078case "x$ac_cv_prog_cc_c89" in 12079 x) 12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12081$as_echo "none needed" >&6; } ;; 12082 xno) 12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12084$as_echo "unsupported" >&6; } ;; 12085 *) 12086 CC="$CC $ac_cv_prog_cc_c89" 12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12088$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12089esac 12090if test "x$ac_cv_prog_cc_c89" != xno; then : 12091 12092fi 12093 12094ac_ext=c 12095ac_cpp='$CPP $CPPFLAGS' 12096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12098ac_compiler_gnu=$ac_cv_c_compiler_gnu 12099 12100# Find a good install program. We prefer a C program (faster), 12101# so one script is as good as another. But avoid the broken or 12102# incompatible versions: 12103# SysV /etc/install, /usr/sbin/install 12104# SunOS /usr/etc/install 12105# IRIX /sbin/install 12106# AIX /bin/install 12107# AmigaOS /C/install, which installs bootblocks on floppy discs 12108# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 12109# AFS /usr/afsws/bin/install, which mishandles nonexistent args 12110# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 12111# OS/2's system install, which has a completely different semantic 12112# ./install, which can be erroneously created by make from ./install.sh. 12113# Reject install programs that cannot install multiple files. 12114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 12115$as_echo_n "checking for a BSD-compatible install... " >&6; } 12116if test -z "$INSTALL"; then 12117if ${ac_cv_path_install+:} false; then : 12118 $as_echo_n "(cached) " >&6 12119else 12120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12121for as_dir in $PATH 12122do 12123 IFS=$as_save_IFS 12124 test -z "$as_dir" && as_dir=. 12125 # Account for people who put trailing slashes in PATH elements. 12126case $as_dir/ in #(( 12127 ./ | .// | /[cC]/* | \ 12128 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 12129 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 12130 /usr/ucb/* ) ;; 12131 *) 12132 # OSF1 and SCO ODT 3.0 have their own names for install. 12133 # Don't use installbsd from OSF since it installs stuff as root 12134 # by default. 12135 for ac_prog in ginstall scoinst install; do 12136 for ac_exec_ext in '' $ac_executable_extensions; do 12137 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 12138 if test $ac_prog = install && 12139 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 12140 # AIX install. It has an incompatible calling convention. 12141 : 12142 elif test $ac_prog = install && 12143 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 12144 # program-specific install script used by HP pwplus--don't use. 12145 : 12146 else 12147 rm -rf conftest.one conftest.two conftest.dir 12148 echo one > conftest.one 12149 echo two > conftest.two 12150 mkdir conftest.dir 12151 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 12152 test -s conftest.one && test -s conftest.two && 12153 test -s conftest.dir/conftest.one && 12154 test -s conftest.dir/conftest.two 12155 then 12156 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 12157 break 3 12158 fi 12159 fi 12160 fi 12161 done 12162 done 12163 ;; 12164esac 12165 12166 done 12167IFS=$as_save_IFS 12168 12169rm -rf conftest.one conftest.two conftest.dir 12170 12171fi 12172 if test "${ac_cv_path_install+set}" = set; then 12173 INSTALL=$ac_cv_path_install 12174 else 12175 # As a last resort, use the slow shell script. Don't cache a 12176 # value for INSTALL within a source directory, because that will 12177 # break other packages using the cache if that directory is 12178 # removed, or if the value is a relative name. 12179 INSTALL=$ac_install_sh 12180 fi 12181fi 12182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 12183$as_echo "$INSTALL" >&6; } 12184 12185# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 12186# It thinks the first close brace ends the variable substitution. 12187test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 12188 12189test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 12190 12191test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 12192 12193 12194 12195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12196$as_echo_n "checking for ANSI C header files... " >&6; } 12197if ${ac_cv_header_stdc+:} false; then : 12198 $as_echo_n "(cached) " >&6 12199else 12200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12201/* end confdefs.h. */ 12202#include <stdlib.h> 12203#include <stdarg.h> 12204#include <string.h> 12205#include <float.h> 12206 12207int 12208main () 12209{ 12210 12211 ; 12212 return 0; 12213} 12214_ACEOF 12215if ac_fn_c_try_compile "$LINENO"; then : 12216 ac_cv_header_stdc=yes 12217else 12218 ac_cv_header_stdc=no 12219fi 12220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12221 12222if test $ac_cv_header_stdc = yes; then 12223 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12225/* end confdefs.h. */ 12226#include <string.h> 12227 12228_ACEOF 12229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12230 $EGREP "memchr" >/dev/null 2>&1; then : 12231 12232else 12233 ac_cv_header_stdc=no 12234fi 12235rm -f conftest* 12236 12237fi 12238 12239if test $ac_cv_header_stdc = yes; then 12240 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12242/* end confdefs.h. */ 12243#include <stdlib.h> 12244 12245_ACEOF 12246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12247 $EGREP "free" >/dev/null 2>&1; then : 12248 12249else 12250 ac_cv_header_stdc=no 12251fi 12252rm -f conftest* 12253 12254fi 12255 12256if test $ac_cv_header_stdc = yes; then 12257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12258 if test "$cross_compiling" = yes; then : 12259 : 12260else 12261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12262/* end confdefs.h. */ 12263#include <ctype.h> 12264#include <stdlib.h> 12265#if ((' ' & 0x0FF) == 0x020) 12266# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12267# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12268#else 12269# define ISLOWER(c) \ 12270 (('a' <= (c) && (c) <= 'i') \ 12271 || ('j' <= (c) && (c) <= 'r') \ 12272 || ('s' <= (c) && (c) <= 'z')) 12273# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12274#endif 12275 12276#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12277int 12278main () 12279{ 12280 int i; 12281 for (i = 0; i < 256; i++) 12282 if (XOR (islower (i), ISLOWER (i)) 12283 || toupper (i) != TOUPPER (i)) 12284 return 2; 12285 return 0; 12286} 12287_ACEOF 12288if ac_fn_c_try_run "$LINENO"; then : 12289 12290else 12291 ac_cv_header_stdc=no 12292fi 12293rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12294 conftest.$ac_objext conftest.beam conftest.$ac_ext 12295fi 12296 12297fi 12298fi 12299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12300$as_echo "$ac_cv_header_stdc" >&6; } 12301if test $ac_cv_header_stdc = yes; then 12302 12303$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12304 12305fi 12306 12307for ac_header in fcntl.h unistd.h string.h 12308do : 12309 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12310ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12311if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12312 cat >>confdefs.h <<_ACEOF 12313#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12314_ACEOF 12315 12316fi 12317 12318done 12319 12320 12321if test "$cross_compiling" = "no"; then 12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 12323$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 12324if ${ac_cv_c_bigendian+:} false; then : 12325 $as_echo_n "(cached) " >&6 12326else 12327 ac_cv_c_bigendian=unknown 12328 # See if we're dealing with a universal compiler. 12329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12330/* end confdefs.h. */ 12331#ifndef __APPLE_CC__ 12332 not a universal capable compiler 12333 #endif 12334 typedef int dummy; 12335 12336_ACEOF 12337if ac_fn_c_try_compile "$LINENO"; then : 12338 12339 # Check for potential -arch flags. It is not universal unless 12340 # there are at least two -arch flags with different values. 12341 ac_arch= 12342 ac_prev= 12343 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 12344 if test -n "$ac_prev"; then 12345 case $ac_word in 12346 i?86 | x86_64 | ppc | ppc64) 12347 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 12348 ac_arch=$ac_word 12349 else 12350 ac_cv_c_bigendian=universal 12351 break 12352 fi 12353 ;; 12354 esac 12355 ac_prev= 12356 elif test "x$ac_word" = "x-arch"; then 12357 ac_prev=arch 12358 fi 12359 done 12360fi 12361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12362 if test $ac_cv_c_bigendian = unknown; then 12363 # See if sys/param.h defines the BYTE_ORDER macro. 12364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12365/* end confdefs.h. */ 12366#include <sys/types.h> 12367 #include <sys/param.h> 12368 12369int 12370main () 12371{ 12372#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 12373 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 12374 && LITTLE_ENDIAN) 12375 bogus endian macros 12376 #endif 12377 12378 ; 12379 return 0; 12380} 12381_ACEOF 12382if ac_fn_c_try_compile "$LINENO"; then : 12383 # It does; now see whether it defined to BIG_ENDIAN or not. 12384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12385/* end confdefs.h. */ 12386#include <sys/types.h> 12387 #include <sys/param.h> 12388 12389int 12390main () 12391{ 12392#if BYTE_ORDER != BIG_ENDIAN 12393 not big endian 12394 #endif 12395 12396 ; 12397 return 0; 12398} 12399_ACEOF 12400if ac_fn_c_try_compile "$LINENO"; then : 12401 ac_cv_c_bigendian=yes 12402else 12403 ac_cv_c_bigendian=no 12404fi 12405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12406fi 12407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12408 fi 12409 if test $ac_cv_c_bigendian = unknown; then 12410 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 12411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12412/* end confdefs.h. */ 12413#include <limits.h> 12414 12415int 12416main () 12417{ 12418#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 12419 bogus endian macros 12420 #endif 12421 12422 ; 12423 return 0; 12424} 12425_ACEOF 12426if ac_fn_c_try_compile "$LINENO"; then : 12427 # It does; now see whether it defined to _BIG_ENDIAN or not. 12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12429/* end confdefs.h. */ 12430#include <limits.h> 12431 12432int 12433main () 12434{ 12435#ifndef _BIG_ENDIAN 12436 not big endian 12437 #endif 12438 12439 ; 12440 return 0; 12441} 12442_ACEOF 12443if ac_fn_c_try_compile "$LINENO"; then : 12444 ac_cv_c_bigendian=yes 12445else 12446 ac_cv_c_bigendian=no 12447fi 12448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12449fi 12450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12451 fi 12452 if test $ac_cv_c_bigendian = unknown; then 12453 # Compile a test program. 12454 if test "$cross_compiling" = yes; then : 12455 # Try to guess by grepping values from an object file. 12456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12457/* end confdefs.h. */ 12458short int ascii_mm[] = 12459 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 12460 short int ascii_ii[] = 12461 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 12462 int use_ascii (int i) { 12463 return ascii_mm[i] + ascii_ii[i]; 12464 } 12465 short int ebcdic_ii[] = 12466 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 12467 short int ebcdic_mm[] = 12468 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 12469 int use_ebcdic (int i) { 12470 return ebcdic_mm[i] + ebcdic_ii[i]; 12471 } 12472 extern int foo; 12473 12474int 12475main () 12476{ 12477return use_ascii (foo) == use_ebcdic (foo); 12478 ; 12479 return 0; 12480} 12481_ACEOF 12482if ac_fn_c_try_compile "$LINENO"; then : 12483 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 12484 ac_cv_c_bigendian=yes 12485 fi 12486 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 12487 if test "$ac_cv_c_bigendian" = unknown; then 12488 ac_cv_c_bigendian=no 12489 else 12490 # finding both strings is unlikely to happen, but who knows? 12491 ac_cv_c_bigendian=unknown 12492 fi 12493 fi 12494fi 12495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12496else 12497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12498/* end confdefs.h. */ 12499$ac_includes_default 12500int 12501main () 12502{ 12503 12504 /* Are we little or big endian? From Harbison&Steele. */ 12505 union 12506 { 12507 long int l; 12508 char c[sizeof (long int)]; 12509 } u; 12510 u.l = 1; 12511 return u.c[sizeof (long int) - 1] == 1; 12512 12513 ; 12514 return 0; 12515} 12516_ACEOF 12517if ac_fn_c_try_run "$LINENO"; then : 12518 ac_cv_c_bigendian=no 12519else 12520 ac_cv_c_bigendian=yes 12521fi 12522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12523 conftest.$ac_objext conftest.beam conftest.$ac_ext 12524fi 12525 12526 fi 12527fi 12528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 12529$as_echo "$ac_cv_c_bigendian" >&6; } 12530 case $ac_cv_c_bigendian in #( 12531 yes) 12532 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 12533;; #( 12534 no) 12535 ;; #( 12536 universal) 12537 12538$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 12539 12540 ;; #( 12541 *) 12542 as_fn_error $? "unknown endianness 12543 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 12544 esac 12545 12546else 12547 12548$as_echo "#define AP_UNKNOWN_BYTE_ORDER 1" >>confdefs.h 12549 12550fi 12551 12552if test "$ac_cv_c_bigendian" = "yes"; then 12553 12554$as_echo "#define XML_BYTE_ORDER 21" >>confdefs.h 12555 12556else 12557 12558$as_echo "#define XML_BYTE_ORDER 12" >>confdefs.h 12559 12560fi 12561 12562 12563$as_echo "#define XML_NS /**/" >>confdefs.h 12564 12565 12566$as_echo "#define XML_DTD /**/" >>confdefs.h 12567 12568 12569$as_echo "#define XML_CONTEXT_BYTES 1024" >>confdefs.h 12570 12571 12572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12573$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12574if ${ac_cv_c_const+:} false; then : 12575 $as_echo_n "(cached) " >&6 12576else 12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12578/* end confdefs.h. */ 12579 12580int 12581main () 12582{ 12583 12584#ifndef __cplusplus 12585 /* Ultrix mips cc rejects this sort of thing. */ 12586 typedef int charset[2]; 12587 const charset cs = { 0, 0 }; 12588 /* SunOS 4.1.1 cc rejects this. */ 12589 char const *const *pcpcc; 12590 char **ppc; 12591 /* NEC SVR4.0.2 mips cc rejects this. */ 12592 struct point {int x, y;}; 12593 static struct point const zero = {0,0}; 12594 /* AIX XL C 1.02.0.0 rejects this. 12595 It does not let you subtract one const X* pointer from another in 12596 an arm of an if-expression whose if-part is not a constant 12597 expression */ 12598 const char *g = "string"; 12599 pcpcc = &g + (g ? g-g : 0); 12600 /* HPUX 7.0 cc rejects these. */ 12601 ++pcpcc; 12602 ppc = (char**) pcpcc; 12603 pcpcc = (char const *const *) ppc; 12604 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12605 char tx; 12606 char *t = &tx; 12607 char const *s = 0 ? (char *) 0 : (char const *) 0; 12608 12609 *t++ = 0; 12610 if (s) return 0; 12611 } 12612 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12613 int x[] = {25, 17}; 12614 const int *foo = &x[0]; 12615 ++foo; 12616 } 12617 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12618 typedef const int *iptr; 12619 iptr p = 0; 12620 ++p; 12621 } 12622 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12623 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12624 struct s { int j; const int *ap[3]; } bx; 12625 struct s *b = &bx; b->j = 5; 12626 } 12627 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12628 const int foo = 10; 12629 if (!foo) return 0; 12630 } 12631 return !cs[0] && !zero.x; 12632#endif 12633 12634 ; 12635 return 0; 12636} 12637_ACEOF 12638if ac_fn_c_try_compile "$LINENO"; then : 12639 ac_cv_c_const=yes 12640else 12641 ac_cv_c_const=no 12642fi 12643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12644fi 12645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12646$as_echo "$ac_cv_c_const" >&6; } 12647if test $ac_cv_c_const = no; then 12648 12649$as_echo "#define const /**/" >>confdefs.h 12650 12651fi 12652 12653ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 12654if test "x$ac_cv_type_off_t" = xyes; then : 12655 12656else 12657 12658cat >>confdefs.h <<_ACEOF 12659#define off_t long int 12660_ACEOF 12661 12662fi 12663 12664ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12665if test "x$ac_cv_type_size_t" = xyes; then : 12666 12667else 12668 12669cat >>confdefs.h <<_ACEOF 12670#define size_t unsigned int 12671_ACEOF 12672 12673fi 12674 12675 12676 12677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 12678$as_echo_n "checking for working memcmp... " >&6; } 12679if ${ac_cv_func_memcmp_working+:} false; then : 12680 $as_echo_n "(cached) " >&6 12681else 12682 if test "$cross_compiling" = yes; then : 12683 ac_cv_func_memcmp_working=no 12684else 12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12686/* end confdefs.h. */ 12687$ac_includes_default 12688int 12689main () 12690{ 12691 12692 /* Some versions of memcmp are not 8-bit clean. */ 12693 char c0 = '\100', c1 = '\200', c2 = '\201'; 12694 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 12695 return 1; 12696 12697 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 12698 or more and with at least one buffer not starting on a 4-byte boundary. 12699 William Lewis provided this test program. */ 12700 { 12701 char foo[21]; 12702 char bar[21]; 12703 int i; 12704 for (i = 0; i < 4; i++) 12705 { 12706 char *a = foo + i; 12707 char *b = bar + i; 12708 strcpy (a, "--------01111111"); 12709 strcpy (b, "--------10000000"); 12710 if (memcmp (a, b, 16) >= 0) 12711 return 1; 12712 } 12713 return 0; 12714 } 12715 12716 ; 12717 return 0; 12718} 12719_ACEOF 12720if ac_fn_c_try_run "$LINENO"; then : 12721 ac_cv_func_memcmp_working=yes 12722else 12723 ac_cv_func_memcmp_working=no 12724fi 12725rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12726 conftest.$ac_objext conftest.beam conftest.$ac_ext 12727fi 12728 12729fi 12730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 12731$as_echo "$ac_cv_func_memcmp_working" >&6; } 12732test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 12733 *" memcmp.$ac_objext "* ) ;; 12734 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 12735 ;; 12736esac 12737 12738 12739 12740 12741 12742 for ac_header in $ac_header_list 12743do : 12744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12745ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 12746" 12747if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12748 cat >>confdefs.h <<_ACEOF 12749#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12750_ACEOF 12751 12752fi 12753 12754done 12755 12756 12757 12758 12759 12760 12761 12762 12763for ac_func in getpagesize 12764do : 12765 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 12766if test "x$ac_cv_func_getpagesize" = xyes; then : 12767 cat >>confdefs.h <<_ACEOF 12768#define HAVE_GETPAGESIZE 1 12769_ACEOF 12770 12771fi 12772done 12773 12774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 12775$as_echo_n "checking for working mmap... " >&6; } 12776if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 12777 $as_echo_n "(cached) " >&6 12778else 12779 if test "$cross_compiling" = yes; then : 12780 ac_cv_func_mmap_fixed_mapped=no 12781else 12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12783/* end confdefs.h. */ 12784$ac_includes_default 12785/* malloc might have been renamed as rpl_malloc. */ 12786#undef malloc 12787 12788/* Thanks to Mike Haertel and Jim Avera for this test. 12789 Here is a matrix of mmap possibilities: 12790 mmap private not fixed 12791 mmap private fixed at somewhere currently unmapped 12792 mmap private fixed at somewhere already mapped 12793 mmap shared not fixed 12794 mmap shared fixed at somewhere currently unmapped 12795 mmap shared fixed at somewhere already mapped 12796 For private mappings, we should verify that changes cannot be read() 12797 back from the file, nor mmap's back from the file at a different 12798 address. (There have been systems where private was not correctly 12799 implemented like the infamous i386 svr4.0, and systems where the 12800 VM page cache was not coherent with the file system buffer cache 12801 like early versions of FreeBSD and possibly contemporary NetBSD.) 12802 For shared mappings, we should conversely verify that changes get 12803 propagated back to all the places they're supposed to be. 12804 12805 Grep wants private fixed already mapped. 12806 The main things grep needs to know about mmap are: 12807 * does it exist and is it safe to write into the mmap'd area 12808 * how to use it (BSD variants) */ 12809 12810#include <fcntl.h> 12811#include <sys/mman.h> 12812 12813#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 12814char *malloc (); 12815#endif 12816 12817/* This mess was copied from the GNU getpagesize.h. */ 12818#ifndef HAVE_GETPAGESIZE 12819# ifdef _SC_PAGESIZE 12820# define getpagesize() sysconf(_SC_PAGESIZE) 12821# else /* no _SC_PAGESIZE */ 12822# ifdef HAVE_SYS_PARAM_H 12823# include <sys/param.h> 12824# ifdef EXEC_PAGESIZE 12825# define getpagesize() EXEC_PAGESIZE 12826# else /* no EXEC_PAGESIZE */ 12827# ifdef NBPG 12828# define getpagesize() NBPG * CLSIZE 12829# ifndef CLSIZE 12830# define CLSIZE 1 12831# endif /* no CLSIZE */ 12832# else /* no NBPG */ 12833# ifdef NBPC 12834# define getpagesize() NBPC 12835# else /* no NBPC */ 12836# ifdef PAGESIZE 12837# define getpagesize() PAGESIZE 12838# endif /* PAGESIZE */ 12839# endif /* no NBPC */ 12840# endif /* no NBPG */ 12841# endif /* no EXEC_PAGESIZE */ 12842# else /* no HAVE_SYS_PARAM_H */ 12843# define getpagesize() 8192 /* punt totally */ 12844# endif /* no HAVE_SYS_PARAM_H */ 12845# endif /* no _SC_PAGESIZE */ 12846 12847#endif /* no HAVE_GETPAGESIZE */ 12848 12849int 12850main () 12851{ 12852 char *data, *data2, *data3; 12853 const char *cdata2; 12854 int i, pagesize; 12855 int fd, fd2; 12856 12857 pagesize = getpagesize (); 12858 12859 /* First, make a file with some known garbage in it. */ 12860 data = (char *) malloc (pagesize); 12861 if (!data) 12862 return 1; 12863 for (i = 0; i < pagesize; ++i) 12864 *(data + i) = rand (); 12865 umask (0); 12866 fd = creat ("conftest.mmap", 0600); 12867 if (fd < 0) 12868 return 2; 12869 if (write (fd, data, pagesize) != pagesize) 12870 return 3; 12871 close (fd); 12872 12873 /* Next, check that the tail of a page is zero-filled. File must have 12874 non-zero length, otherwise we risk SIGBUS for entire page. */ 12875 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 12876 if (fd2 < 0) 12877 return 4; 12878 cdata2 = ""; 12879 if (write (fd2, cdata2, 1) != 1) 12880 return 5; 12881 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 12882 if (data2 == MAP_FAILED) 12883 return 6; 12884 for (i = 0; i < pagesize; ++i) 12885 if (*(data2 + i)) 12886 return 7; 12887 close (fd2); 12888 if (munmap (data2, pagesize)) 12889 return 8; 12890 12891 /* Next, try to mmap the file at a fixed address which already has 12892 something else allocated at it. If we can, also make sure that 12893 we see the same garbage. */ 12894 fd = open ("conftest.mmap", O_RDWR); 12895 if (fd < 0) 12896 return 9; 12897 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 12898 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 12899 return 10; 12900 for (i = 0; i < pagesize; ++i) 12901 if (*(data + i) != *(data2 + i)) 12902 return 11; 12903 12904 /* Finally, make sure that changes to the mapped area do not 12905 percolate back to the file as seen by read(). (This is a bug on 12906 some variants of i386 svr4.0.) */ 12907 for (i = 0; i < pagesize; ++i) 12908 *(data2 + i) = *(data2 + i) + 1; 12909 data3 = (char *) malloc (pagesize); 12910 if (!data3) 12911 return 12; 12912 if (read (fd, data3, pagesize) != pagesize) 12913 return 13; 12914 for (i = 0; i < pagesize; ++i) 12915 if (*(data + i) != *(data3 + i)) 12916 return 14; 12917 close (fd); 12918 return 0; 12919} 12920_ACEOF 12921if ac_fn_c_try_run "$LINENO"; then : 12922 ac_cv_func_mmap_fixed_mapped=yes 12923else 12924 ac_cv_func_mmap_fixed_mapped=no 12925fi 12926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12927 conftest.$ac_objext conftest.beam conftest.$ac_ext 12928fi 12929 12930fi 12931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 12932$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 12933if test $ac_cv_func_mmap_fixed_mapped = yes; then 12934 12935$as_echo "#define HAVE_MMAP 1" >>confdefs.h 12936 12937fi 12938rm -f conftest.mmap conftest.txt 12939 12940 12941if test -z "$HAVE_MMAP"; then 12942FILEMAP_OBJ=unixfilemap.o 12943else 12944FILEMAP_OBJ=readfilemap.o 12945fi 12946 12947for ac_func in memmove bcopy 12948do : 12949 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12950ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12951if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12952 cat >>confdefs.h <<_ACEOF 12953#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12954_ACEOF 12955 12956fi 12957done 12958 12959 12960ac_config_files="$ac_config_files Makefile lib/Makefile lib/expat.h" 12961 12962cat >confcache <<\_ACEOF 12963# This file is a shell script that caches the results of configure 12964# tests run on this system so they can be shared between configure 12965# scripts and configure runs, see configure's option --config-cache. 12966# It is not useful on other systems. If it contains results you don't 12967# want to keep, you may remove or edit it. 12968# 12969# config.status only pays attention to the cache file if you give it 12970# the --recheck option to rerun configure. 12971# 12972# `ac_cv_env_foo' variables (set or unset) will be overridden when 12973# loading this file, other *unset* `ac_cv_foo' will be assigned the 12974# following values. 12975 12976_ACEOF 12977 12978# The following way of writing the cache mishandles newlines in values, 12979# but we know of no workaround that is simple, portable, and efficient. 12980# So, we kill variables containing newlines. 12981# Ultrix sh set writes to stderr and can't be redirected directly, 12982# and sets the high bit in the cache file unless we assign to the vars. 12983( 12984 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12985 eval ac_val=\$$ac_var 12986 case $ac_val in #( 12987 *${as_nl}*) 12988 case $ac_var in #( 12989 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12990$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12991 esac 12992 case $ac_var in #( 12993 _ | IFS | as_nl) ;; #( 12994 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12995 *) { eval $ac_var=; unset $ac_var;} ;; 12996 esac ;; 12997 esac 12998 done 12999 13000 (set) 2>&1 | 13001 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13002 *${as_nl}ac_space=\ *) 13003 # `set' does not quote correctly, so add quotes: double-quote 13004 # substitution turns \\\\ into \\, and sed turns \\ into \. 13005 sed -n \ 13006 "s/'/'\\\\''/g; 13007 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13008 ;; #( 13009 *) 13010 # `set' quotes correctly as required by POSIX, so do not add quotes. 13011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13012 ;; 13013 esac | 13014 sort 13015) | 13016 sed ' 13017 /^ac_cv_env_/b end 13018 t clear 13019 :clear 13020 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13021 t end 13022 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13023 :end' >>confcache 13024if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13025 if test -w "$cache_file"; then 13026 if test "x$cache_file" != "x/dev/null"; then 13027 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13028$as_echo "$as_me: updating cache $cache_file" >&6;} 13029 if test ! -f "$cache_file" || test -h "$cache_file"; then 13030 cat confcache >"$cache_file" 13031 else 13032 case $cache_file in #( 13033 */* | ?:*) 13034 mv -f confcache "$cache_file"$$ && 13035 mv -f "$cache_file"$$ "$cache_file" ;; #( 13036 *) 13037 mv -f confcache "$cache_file" ;; 13038 esac 13039 fi 13040 fi 13041 else 13042 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13043$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13044 fi 13045fi 13046rm -f confcache 13047 13048test "x$prefix" = xNONE && prefix=$ac_default_prefix 13049# Let make expand exec_prefix. 13050test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13051 13052DEFS=-DHAVE_CONFIG_H 13053 13054ac_libobjs= 13055ac_ltlibobjs= 13056U= 13057for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13058 # 1. Remove the extension, and $U if already installed. 13059 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13060 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13061 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13062 # will be set to the directory where LIBOBJS objects are built. 13063 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13064 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13065done 13066LIBOBJS=$ac_libobjs 13067 13068LTLIBOBJS=$ac_ltlibobjs 13069 13070 13071 13072 13073: "${CONFIG_STATUS=./config.status}" 13074ac_write_fail=0 13075ac_clean_files_save=$ac_clean_files 13076ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13077{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13078$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13079as_write_fail=0 13080cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13081#! $SHELL 13082# Generated by $as_me. 13083# Run this file to recreate the current configuration. 13084# Compiler output produced by configure, useful for debugging 13085# configure, is in config.log if it exists. 13086 13087debug=false 13088ac_cs_recheck=false 13089ac_cs_silent=false 13090 13091SHELL=\${CONFIG_SHELL-$SHELL} 13092export SHELL 13093_ASEOF 13094cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13095## -------------------- ## 13096## M4sh Initialization. ## 13097## -------------------- ## 13098 13099# Be more Bourne compatible 13100DUALCASE=1; export DUALCASE # for MKS sh 13101if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13102 emulate sh 13103 NULLCMD=: 13104 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13105 # is contrary to our usage. Disable this feature. 13106 alias -g '${1+"$@"}'='"$@"' 13107 setopt NO_GLOB_SUBST 13108else 13109 case `(set -o) 2>/dev/null` in #( 13110 *posix*) : 13111 set -o posix ;; #( 13112 *) : 13113 ;; 13114esac 13115fi 13116 13117 13118as_nl=' 13119' 13120export as_nl 13121# Printing a long string crashes Solaris 7 /usr/bin/printf. 13122as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13123as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13124as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13125# Prefer a ksh shell builtin over an external printf program on Solaris, 13126# but without wasting forks for bash or zsh. 13127if test -z "$BASH_VERSION$ZSH_VERSION" \ 13128 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13129 as_echo='print -r --' 13130 as_echo_n='print -rn --' 13131elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13132 as_echo='printf %s\n' 13133 as_echo_n='printf %s' 13134else 13135 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13136 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13137 as_echo_n='/usr/ucb/echo -n' 13138 else 13139 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13140 as_echo_n_body='eval 13141 arg=$1; 13142 case $arg in #( 13143 *"$as_nl"*) 13144 expr "X$arg" : "X\\(.*\\)$as_nl"; 13145 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13146 esac; 13147 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13148 ' 13149 export as_echo_n_body 13150 as_echo_n='sh -c $as_echo_n_body as_echo' 13151 fi 13152 export as_echo_body 13153 as_echo='sh -c $as_echo_body as_echo' 13154fi 13155 13156# The user is always right. 13157if test "${PATH_SEPARATOR+set}" != set; then 13158 PATH_SEPARATOR=: 13159 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13160 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13161 PATH_SEPARATOR=';' 13162 } 13163fi 13164 13165 13166# IFS 13167# We need space, tab and new line, in precisely that order. Quoting is 13168# there to prevent editors from complaining about space-tab. 13169# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13170# splitting by setting IFS to empty value.) 13171IFS=" "" $as_nl" 13172 13173# Find who we are. Look in the path if we contain no directory separator. 13174as_myself= 13175case $0 in #(( 13176 *[\\/]* ) as_myself=$0 ;; 13177 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13178for as_dir in $PATH 13179do 13180 IFS=$as_save_IFS 13181 test -z "$as_dir" && as_dir=. 13182 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13183 done 13184IFS=$as_save_IFS 13185 13186 ;; 13187esac 13188# We did not find ourselves, most probably we were run as `sh COMMAND' 13189# in which case we are not to be found in the path. 13190if test "x$as_myself" = x; then 13191 as_myself=$0 13192fi 13193if test ! -f "$as_myself"; then 13194 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13195 exit 1 13196fi 13197 13198# Unset variables that we do not need and which cause bugs (e.g. in 13199# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13200# suppresses any "Segmentation fault" message there. '((' could 13201# trigger a bug in pdksh 5.2.14. 13202for as_var in BASH_ENV ENV MAIL MAILPATH 13203do eval test x\${$as_var+set} = xset \ 13204 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13205done 13206PS1='$ ' 13207PS2='> ' 13208PS4='+ ' 13209 13210# NLS nuisances. 13211LC_ALL=C 13212export LC_ALL 13213LANGUAGE=C 13214export LANGUAGE 13215 13216# CDPATH. 13217(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13218 13219 13220# as_fn_error STATUS ERROR [LINENO LOG_FD] 13221# ---------------------------------------- 13222# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13223# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13224# script with STATUS, using 1 if that was 0. 13225as_fn_error () 13226{ 13227 as_status=$1; test $as_status -eq 0 && as_status=1 13228 if test "$4"; then 13229 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13230 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13231 fi 13232 $as_echo "$as_me: error: $2" >&2 13233 as_fn_exit $as_status 13234} # as_fn_error 13235 13236 13237# as_fn_set_status STATUS 13238# ----------------------- 13239# Set $? to STATUS, without forking. 13240as_fn_set_status () 13241{ 13242 return $1 13243} # as_fn_set_status 13244 13245# as_fn_exit STATUS 13246# ----------------- 13247# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13248as_fn_exit () 13249{ 13250 set +e 13251 as_fn_set_status $1 13252 exit $1 13253} # as_fn_exit 13254 13255# as_fn_unset VAR 13256# --------------- 13257# Portably unset VAR. 13258as_fn_unset () 13259{ 13260 { eval $1=; unset $1;} 13261} 13262as_unset=as_fn_unset 13263# as_fn_append VAR VALUE 13264# ---------------------- 13265# Append the text in VALUE to the end of the definition contained in VAR. Take 13266# advantage of any shell optimizations that allow amortized linear growth over 13267# repeated appends, instead of the typical quadratic growth present in naive 13268# implementations. 13269if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13270 eval 'as_fn_append () 13271 { 13272 eval $1+=\$2 13273 }' 13274else 13275 as_fn_append () 13276 { 13277 eval $1=\$$1\$2 13278 } 13279fi # as_fn_append 13280 13281# as_fn_arith ARG... 13282# ------------------ 13283# Perform arithmetic evaluation on the ARGs, and store the result in the 13284# global $as_val. Take advantage of shells that can avoid forks. The arguments 13285# must be portable across $(()) and expr. 13286if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13287 eval 'as_fn_arith () 13288 { 13289 as_val=$(( $* )) 13290 }' 13291else 13292 as_fn_arith () 13293 { 13294 as_val=`expr "$@" || test $? -eq 1` 13295 } 13296fi # as_fn_arith 13297 13298 13299if expr a : '\(a\)' >/dev/null 2>&1 && 13300 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13301 as_expr=expr 13302else 13303 as_expr=false 13304fi 13305 13306if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13307 as_basename=basename 13308else 13309 as_basename=false 13310fi 13311 13312if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13313 as_dirname=dirname 13314else 13315 as_dirname=false 13316fi 13317 13318as_me=`$as_basename -- "$0" || 13319$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13320 X"$0" : 'X\(//\)$' \| \ 13321 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13322$as_echo X/"$0" | 13323 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13324 s//\1/ 13325 q 13326 } 13327 /^X\/\(\/\/\)$/{ 13328 s//\1/ 13329 q 13330 } 13331 /^X\/\(\/\).*/{ 13332 s//\1/ 13333 q 13334 } 13335 s/.*/./; q'` 13336 13337# Avoid depending upon Character Ranges. 13338as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13339as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13340as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13341as_cr_digits='0123456789' 13342as_cr_alnum=$as_cr_Letters$as_cr_digits 13343 13344ECHO_C= ECHO_N= ECHO_T= 13345case `echo -n x` in #((((( 13346-n*) 13347 case `echo 'xy\c'` in 13348 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13349 xy) ECHO_C='\c';; 13350 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13351 ECHO_T=' ';; 13352 esac;; 13353*) 13354 ECHO_N='-n';; 13355esac 13356 13357rm -f conf$$ conf$$.exe conf$$.file 13358if test -d conf$$.dir; then 13359 rm -f conf$$.dir/conf$$.file 13360else 13361 rm -f conf$$.dir 13362 mkdir conf$$.dir 2>/dev/null 13363fi 13364if (echo >conf$$.file) 2>/dev/null; then 13365 if ln -s conf$$.file conf$$ 2>/dev/null; then 13366 as_ln_s='ln -s' 13367 # ... but there are two gotchas: 13368 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13369 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13370 # In both cases, we have to default to `cp -pR'. 13371 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13372 as_ln_s='cp -pR' 13373 elif ln conf$$.file conf$$ 2>/dev/null; then 13374 as_ln_s=ln 13375 else 13376 as_ln_s='cp -pR' 13377 fi 13378else 13379 as_ln_s='cp -pR' 13380fi 13381rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13382rmdir conf$$.dir 2>/dev/null 13383 13384 13385# as_fn_mkdir_p 13386# ------------- 13387# Create "$as_dir" as a directory, including parents if necessary. 13388as_fn_mkdir_p () 13389{ 13390 13391 case $as_dir in #( 13392 -*) as_dir=./$as_dir;; 13393 esac 13394 test -d "$as_dir" || eval $as_mkdir_p || { 13395 as_dirs= 13396 while :; do 13397 case $as_dir in #( 13398 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13399 *) as_qdir=$as_dir;; 13400 esac 13401 as_dirs="'$as_qdir' $as_dirs" 13402 as_dir=`$as_dirname -- "$as_dir" || 13403$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13404 X"$as_dir" : 'X\(//\)[^/]' \| \ 13405 X"$as_dir" : 'X\(//\)$' \| \ 13406 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13407$as_echo X"$as_dir" | 13408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13409 s//\1/ 13410 q 13411 } 13412 /^X\(\/\/\)[^/].*/{ 13413 s//\1/ 13414 q 13415 } 13416 /^X\(\/\/\)$/{ 13417 s//\1/ 13418 q 13419 } 13420 /^X\(\/\).*/{ 13421 s//\1/ 13422 q 13423 } 13424 s/.*/./; q'` 13425 test -d "$as_dir" && break 13426 done 13427 test -z "$as_dirs" || eval "mkdir $as_dirs" 13428 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13429 13430 13431} # as_fn_mkdir_p 13432if mkdir -p . 2>/dev/null; then 13433 as_mkdir_p='mkdir -p "$as_dir"' 13434else 13435 test -d ./-p && rmdir ./-p 13436 as_mkdir_p=false 13437fi 13438 13439 13440# as_fn_executable_p FILE 13441# ----------------------- 13442# Test if FILE is an executable regular file. 13443as_fn_executable_p () 13444{ 13445 test -f "$1" && test -x "$1" 13446} # as_fn_executable_p 13447as_test_x='test -x' 13448as_executable_p=as_fn_executable_p 13449 13450# Sed expression to map a string onto a valid CPP name. 13451as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13452 13453# Sed expression to map a string onto a valid variable name. 13454as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13455 13456 13457exec 6>&1 13458## ----------------------------------- ## 13459## Main body of $CONFIG_STATUS script. ## 13460## ----------------------------------- ## 13461_ASEOF 13462test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13463 13464cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13465# Save the log message, to keep $0 and so on meaningful, and to 13466# report actual input values of CONFIG_FILES etc. instead of their 13467# values after options handling. 13468ac_log=" 13469This file was extended by $as_me, which was 13470generated by GNU Autoconf 2.69. Invocation command line was 13471 13472 CONFIG_FILES = $CONFIG_FILES 13473 CONFIG_HEADERS = $CONFIG_HEADERS 13474 CONFIG_LINKS = $CONFIG_LINKS 13475 CONFIG_COMMANDS = $CONFIG_COMMANDS 13476 $ $0 $@ 13477 13478on `(hostname || uname -n) 2>/dev/null | sed 1q` 13479" 13480 13481_ACEOF 13482 13483case $ac_config_files in *" 13484"*) set x $ac_config_files; shift; ac_config_files=$*;; 13485esac 13486 13487case $ac_config_headers in *" 13488"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13489esac 13490 13491 13492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13493# Files that config.status was made for. 13494config_files="$ac_config_files" 13495config_headers="$ac_config_headers" 13496config_commands="$ac_config_commands" 13497 13498_ACEOF 13499 13500cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13501ac_cs_usage="\ 13502\`$as_me' instantiates files and other configuration actions 13503from templates according to the current configuration. Unless the files 13504and actions are specified as TAGs, all are instantiated by default. 13505 13506Usage: $0 [OPTION]... [TAG]... 13507 13508 -h, --help print this help, then exit 13509 -V, --version print version number and configuration settings, then exit 13510 --config print configuration, then exit 13511 -q, --quiet, --silent 13512 do not print progress messages 13513 -d, --debug don't remove temporary files 13514 --recheck update $as_me by reconfiguring in the same conditions 13515 --file=FILE[:TEMPLATE] 13516 instantiate the configuration file FILE 13517 --header=FILE[:TEMPLATE] 13518 instantiate the configuration header FILE 13519 13520Configuration files: 13521$config_files 13522 13523Configuration headers: 13524$config_headers 13525 13526Configuration commands: 13527$config_commands 13528 13529Report bugs to the package provider." 13530 13531_ACEOF 13532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13533ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13534ac_cs_version="\\ 13535config.status 13536configured by $0, generated by GNU Autoconf 2.69, 13537 with options \\"\$ac_cs_config\\" 13538 13539Copyright (C) 2012 Free Software Foundation, Inc. 13540This config.status script is free software; the Free Software Foundation 13541gives unlimited permission to copy, distribute and modify it." 13542 13543ac_pwd='$ac_pwd' 13544srcdir='$srcdir' 13545INSTALL='$INSTALL' 13546AWK='$AWK' 13547test -n "\$AWK" || AWK=awk 13548_ACEOF 13549 13550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13551# The default lists apply if the user does not specify any file. 13552ac_need_defaults=: 13553while test $# != 0 13554do 13555 case $1 in 13556 --*=?*) 13557 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13558 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13559 ac_shift=: 13560 ;; 13561 --*=) 13562 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13563 ac_optarg= 13564 ac_shift=: 13565 ;; 13566 *) 13567 ac_option=$1 13568 ac_optarg=$2 13569 ac_shift=shift 13570 ;; 13571 esac 13572 13573 case $ac_option in 13574 # Handling of the options. 13575 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13576 ac_cs_recheck=: ;; 13577 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13578 $as_echo "$ac_cs_version"; exit ;; 13579 --config | --confi | --conf | --con | --co | --c ) 13580 $as_echo "$ac_cs_config"; exit ;; 13581 --debug | --debu | --deb | --de | --d | -d ) 13582 debug=: ;; 13583 --file | --fil | --fi | --f ) 13584 $ac_shift 13585 case $ac_optarg in 13586 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13587 '') as_fn_error $? "missing file argument" ;; 13588 esac 13589 as_fn_append CONFIG_FILES " '$ac_optarg'" 13590 ac_need_defaults=false;; 13591 --header | --heade | --head | --hea ) 13592 $ac_shift 13593 case $ac_optarg in 13594 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13595 esac 13596 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13597 ac_need_defaults=false;; 13598 --he | --h) 13599 # Conflict between --help and --header 13600 as_fn_error $? "ambiguous option: \`$1' 13601Try \`$0 --help' for more information.";; 13602 --help | --hel | -h ) 13603 $as_echo "$ac_cs_usage"; exit ;; 13604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13605 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13606 ac_cs_silent=: ;; 13607 13608 # This is an error. 13609 -*) as_fn_error $? "unrecognized option: \`$1' 13610Try \`$0 --help' for more information." ;; 13611 13612 *) as_fn_append ac_config_targets " $1" 13613 ac_need_defaults=false ;; 13614 13615 esac 13616 shift 13617done 13618 13619ac_configure_extra_args= 13620 13621if $ac_cs_silent; then 13622 exec 6>/dev/null 13623 ac_configure_extra_args="$ac_configure_extra_args --silent" 13624fi 13625 13626_ACEOF 13627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13628if \$ac_cs_recheck; then 13629 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13630 shift 13631 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13632 CONFIG_SHELL='$SHELL' 13633 export CONFIG_SHELL 13634 exec "\$@" 13635fi 13636 13637_ACEOF 13638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13639exec 5>>config.log 13640{ 13641 echo 13642 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13643## Running $as_me. ## 13644_ASBOX 13645 $as_echo "$ac_log" 13646} >&5 13647 13648_ACEOF 13649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13650# 13651# INIT-COMMANDS 13652# 13653 13654 13655# The HP-UX ksh and POSIX shell print the target directory to stdout 13656# if CDPATH is set. 13657(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13658 13659sed_quote_subst='$sed_quote_subst' 13660double_quote_subst='$double_quote_subst' 13661delay_variable_subst='$delay_variable_subst' 13662AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 13663DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13664OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13665macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13666macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13667enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13668enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13669pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13670enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13671shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 13672SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13673ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13674PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13675host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13676host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13677host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13678build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13679build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13680build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13681SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13682Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13683GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13684EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13685FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13686LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13687NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13688LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13689max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13690ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13691exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13692lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13693lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13694lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13695lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13696lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13697reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13698reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13699deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13700file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13701file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13702want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13703sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13704AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13705AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13706archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13707STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13708RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13709old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13710old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13711old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13712lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13713CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13714CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13715compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13716GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13717lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13718lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13719lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 13720lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13721lt_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"`' 13722lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 13723nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13724lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13725lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 13726objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13727MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13728lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13729lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13730lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13731lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13732lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13733need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13734MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13735DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13736NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13737LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13738OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13739OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13740libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13741shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13742extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13743archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13744enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13745export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13746whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13747compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13748old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13749old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13750archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13751archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13752module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13753module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13754with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13755allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13756no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13757hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13758hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13759hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13760hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13761hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13762hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13763hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13764inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13765link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13766always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13767export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13768exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13769include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13770prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13771postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13772file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13773variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13774need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13775need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13776version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13777runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13778shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13779shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13780libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13781library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13782soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13783install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13784postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13785postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13786finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13787finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13788hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13789sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13790configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 13791configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 13792hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13793enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13794enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13795enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13796old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13797striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13798 13799LTCC='$LTCC' 13800LTCFLAGS='$LTCFLAGS' 13801compiler='$compiler_DEFAULT' 13802 13803# A function that is used when there is no print builtin or printf. 13804func_fallback_echo () 13805{ 13806 eval 'cat <<_LTECHO_EOF 13807\$1 13808_LTECHO_EOF' 13809} 13810 13811# Quote evaled strings. 13812for var in AS \ 13813DLLTOOL \ 13814OBJDUMP \ 13815SHELL \ 13816ECHO \ 13817PATH_SEPARATOR \ 13818SED \ 13819GREP \ 13820EGREP \ 13821FGREP \ 13822LD \ 13823NM \ 13824LN_S \ 13825lt_SP2NL \ 13826lt_NL2SP \ 13827reload_flag \ 13828deplibs_check_method \ 13829file_magic_cmd \ 13830file_magic_glob \ 13831want_nocaseglob \ 13832sharedlib_from_linklib_cmd \ 13833AR \ 13834AR_FLAGS \ 13835archiver_list_spec \ 13836STRIP \ 13837RANLIB \ 13838CC \ 13839CFLAGS \ 13840compiler \ 13841lt_cv_sys_global_symbol_pipe \ 13842lt_cv_sys_global_symbol_to_cdecl \ 13843lt_cv_sys_global_symbol_to_import \ 13844lt_cv_sys_global_symbol_to_c_name_address \ 13845lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13846lt_cv_nm_interface \ 13847nm_file_list_spec \ 13848lt_cv_truncate_bin \ 13849lt_prog_compiler_no_builtin_flag \ 13850lt_prog_compiler_pic \ 13851lt_prog_compiler_wl \ 13852lt_prog_compiler_static \ 13853lt_cv_prog_compiler_c_o \ 13854need_locks \ 13855MANIFEST_TOOL \ 13856DSYMUTIL \ 13857NMEDIT \ 13858LIPO \ 13859OTOOL \ 13860OTOOL64 \ 13861shrext_cmds \ 13862export_dynamic_flag_spec \ 13863whole_archive_flag_spec \ 13864compiler_needs_object \ 13865with_gnu_ld \ 13866allow_undefined_flag \ 13867no_undefined_flag \ 13868hardcode_libdir_flag_spec \ 13869hardcode_libdir_separator \ 13870exclude_expsyms \ 13871include_expsyms \ 13872file_list_spec \ 13873variables_saved_for_relink \ 13874libname_spec \ 13875library_names_spec \ 13876soname_spec \ 13877install_override_mode \ 13878finish_eval \ 13879old_striplib \ 13880striplib; do 13881 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13882 *[\\\\\\\`\\"\\\$]*) 13883 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13884 ;; 13885 *) 13886 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13887 ;; 13888 esac 13889done 13890 13891# Double-quote double-evaled strings. 13892for var in reload_cmds \ 13893old_postinstall_cmds \ 13894old_postuninstall_cmds \ 13895old_archive_cmds \ 13896extract_expsyms_cmds \ 13897old_archive_from_new_cmds \ 13898old_archive_from_expsyms_cmds \ 13899archive_cmds \ 13900archive_expsym_cmds \ 13901module_cmds \ 13902module_expsym_cmds \ 13903export_symbols_cmds \ 13904prelink_cmds \ 13905postlink_cmds \ 13906postinstall_cmds \ 13907postuninstall_cmds \ 13908finish_cmds \ 13909sys_lib_search_path_spec \ 13910configure_time_dlsearch_path \ 13911configure_time_lt_sys_library_path; do 13912 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13913 *[\\\\\\\`\\"\\\$]*) 13914 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13915 ;; 13916 *) 13917 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13918 ;; 13919 esac 13920done 13921 13922ac_aux_dir='$ac_aux_dir' 13923 13924# See if we are running on zsh, and set the options that allow our 13925# commands through without removal of \ escapes INIT. 13926if test -n "\${ZSH_VERSION+set}"; then 13927 setopt NO_GLOB_SUBST 13928fi 13929 13930 13931 PACKAGE='$PACKAGE' 13932 VERSION='$VERSION' 13933 RM='$RM' 13934 ofile='$ofile' 13935 13936 13937 13938 13939_ACEOF 13940 13941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13942 13943# Handling of arguments. 13944for ac_config_target in $ac_config_targets 13945do 13946 case $ac_config_target in 13947 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13948 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13949 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13950 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 13951 "lib/expat.h") CONFIG_FILES="$CONFIG_FILES lib/expat.h" ;; 13952 13953 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13954 esac 13955done 13956 13957 13958# If the user did not use the arguments to specify the items to instantiate, 13959# then the envvar interface is used. Set only those that are not. 13960# We use the long form for the default assignment because of an extremely 13961# bizarre bug on SunOS 4.1.3. 13962if $ac_need_defaults; then 13963 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13964 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13965 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13966fi 13967 13968# Have a temporary directory for convenience. Make it in the build tree 13969# simply because there is no reason against having it here, and in addition, 13970# creating and moving files from /tmp can sometimes cause problems. 13971# Hook for its removal unless debugging. 13972# Note that there is a small window in which the directory will not be cleaned: 13973# after its creation but before its name has been assigned to `$tmp'. 13974$debug || 13975{ 13976 tmp= ac_tmp= 13977 trap 'exit_status=$? 13978 : "${ac_tmp:=$tmp}" 13979 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13980' 0 13981 trap 'as_fn_exit 1' 1 2 13 15 13982} 13983# Create a (secure) tmp directory for tmp files. 13984 13985{ 13986 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13987 test -d "$tmp" 13988} || 13989{ 13990 tmp=./conf$$-$RANDOM 13991 (umask 077 && mkdir "$tmp") 13992} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13993ac_tmp=$tmp 13994 13995# Set up the scripts for CONFIG_FILES section. 13996# No need to generate them if there are no CONFIG_FILES. 13997# This happens for instance with `./config.status config.h'. 13998if test -n "$CONFIG_FILES"; then 13999 14000 14001ac_cr=`echo X | tr X '\015'` 14002# On cygwin, bash can eat \r inside `` if the user requested igncr. 14003# But we know of no other shell where ac_cr would be empty at this 14004# point, so we can use a bashism as a fallback. 14005if test "x$ac_cr" = x; then 14006 eval ac_cr=\$\'\\r\' 14007fi 14008ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14009if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14010 ac_cs_awk_cr='\\r' 14011else 14012 ac_cs_awk_cr=$ac_cr 14013fi 14014 14015echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14016_ACEOF 14017 14018 14019{ 14020 echo "cat >conf$$subs.awk <<_ACEOF" && 14021 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14022 echo "_ACEOF" 14023} >conf$$subs.sh || 14024 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14025ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14026ac_delim='%!_!# ' 14027for ac_last_try in false false false false false :; do 14028 . ./conf$$subs.sh || 14029 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14030 14031 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14032 if test $ac_delim_n = $ac_delim_num; then 14033 break 14034 elif $ac_last_try; then 14035 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14036 else 14037 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14038 fi 14039done 14040rm -f conf$$subs.sh 14041 14042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14043cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14044_ACEOF 14045sed -n ' 14046h 14047s/^/S["/; s/!.*/"]=/ 14048p 14049g 14050s/^[^!]*!// 14051:repl 14052t repl 14053s/'"$ac_delim"'$// 14054t delim 14055:nl 14056h 14057s/\(.\{148\}\)..*/\1/ 14058t more1 14059s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14060p 14061n 14062b repl 14063:more1 14064s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14065p 14066g 14067s/.\{148\}// 14068t nl 14069:delim 14070h 14071s/\(.\{148\}\)..*/\1/ 14072t more2 14073s/["\\]/\\&/g; s/^/"/; s/$/"/ 14074p 14075b 14076:more2 14077s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14078p 14079g 14080s/.\{148\}// 14081t delim 14082' <conf$$subs.awk | sed ' 14083/^[^""]/{ 14084 N 14085 s/\n// 14086} 14087' >>$CONFIG_STATUS || ac_write_fail=1 14088rm -f conf$$subs.awk 14089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14090_ACAWK 14091cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14092 for (key in S) S_is_set[key] = 1 14093 FS = "" 14094 14095} 14096{ 14097 line = $ 0 14098 nfields = split(line, field, "@") 14099 substed = 0 14100 len = length(field[1]) 14101 for (i = 2; i < nfields; i++) { 14102 key = field[i] 14103 keylen = length(key) 14104 if (S_is_set[key]) { 14105 value = S[key] 14106 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14107 len += length(value) + length(field[++i]) 14108 substed = 1 14109 } else 14110 len += 1 + keylen 14111 } 14112 14113 print line 14114} 14115 14116_ACAWK 14117_ACEOF 14118cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14119if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14120 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14121else 14122 cat 14123fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14124 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14125_ACEOF 14126 14127# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14128# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14129# trailing colons and then remove the whole line if VPATH becomes empty 14130# (actually we leave an empty line to preserve line numbers). 14131if test "x$srcdir" = x.; then 14132 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14133h 14134s/// 14135s/^/:/ 14136s/[ ]*$/:/ 14137s/:\$(srcdir):/:/g 14138s/:\${srcdir}:/:/g 14139s/:@srcdir@:/:/g 14140s/^:*// 14141s/:*$// 14142x 14143s/\(=[ ]*\).*/\1/ 14144G 14145s/\n// 14146s/^[^=]*=[ ]*$// 14147}' 14148fi 14149 14150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14151fi # test -n "$CONFIG_FILES" 14152 14153# Set up the scripts for CONFIG_HEADERS section. 14154# No need to generate them if there are no CONFIG_HEADERS. 14155# This happens for instance with `./config.status Makefile'. 14156if test -n "$CONFIG_HEADERS"; then 14157cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14158BEGIN { 14159_ACEOF 14160 14161# Transform confdefs.h into an awk script `defines.awk', embedded as 14162# here-document in config.status, that substitutes the proper values into 14163# config.h.in to produce config.h. 14164 14165# Create a delimiter string that does not exist in confdefs.h, to ease 14166# handling of long lines. 14167ac_delim='%!_!# ' 14168for ac_last_try in false false :; do 14169 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14170 if test -z "$ac_tt"; then 14171 break 14172 elif $ac_last_try; then 14173 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14174 else 14175 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14176 fi 14177done 14178 14179# For the awk script, D is an array of macro values keyed by name, 14180# likewise P contains macro parameters if any. Preserve backslash 14181# newline sequences. 14182 14183ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14184sed -n ' 14185s/.\{148\}/&'"$ac_delim"'/g 14186t rset 14187:rset 14188s/^[ ]*#[ ]*define[ ][ ]*/ / 14189t def 14190d 14191:def 14192s/\\$// 14193t bsnl 14194s/["\\]/\\&/g 14195s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14196D["\1"]=" \3"/p 14197s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14198d 14199:bsnl 14200s/["\\]/\\&/g 14201s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14202D["\1"]=" \3\\\\\\n"\\/p 14203t cont 14204s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14205t cont 14206d 14207:cont 14208n 14209s/.\{148\}/&'"$ac_delim"'/g 14210t clear 14211:clear 14212s/\\$// 14213t bsnlc 14214s/["\\]/\\&/g; s/^/"/; s/$/"/p 14215d 14216:bsnlc 14217s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14218b cont 14219' <confdefs.h | sed ' 14220s/'"$ac_delim"'/"\\\ 14221"/g' >>$CONFIG_STATUS || ac_write_fail=1 14222 14223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14224 for (key in D) D_is_set[key] = 1 14225 FS = "" 14226} 14227/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14228 line = \$ 0 14229 split(line, arg, " ") 14230 if (arg[1] == "#") { 14231 defundef = arg[2] 14232 mac1 = arg[3] 14233 } else { 14234 defundef = substr(arg[1], 2) 14235 mac1 = arg[2] 14236 } 14237 split(mac1, mac2, "(") #) 14238 macro = mac2[1] 14239 prefix = substr(line, 1, index(line, defundef) - 1) 14240 if (D_is_set[macro]) { 14241 # Preserve the white space surrounding the "#". 14242 print prefix "define", macro P[macro] D[macro] 14243 next 14244 } else { 14245 # Replace #undef with comments. This is necessary, for example, 14246 # in the case of _POSIX_SOURCE, which is predefined and required 14247 # on some systems where configure will not decide to define it. 14248 if (defundef == "undef") { 14249 print "/*", prefix defundef, macro, "*/" 14250 next 14251 } 14252 } 14253} 14254{ print } 14255_ACAWK 14256_ACEOF 14257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14258 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14259fi # test -n "$CONFIG_HEADERS" 14260 14261 14262eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14263shift 14264for ac_tag 14265do 14266 case $ac_tag in 14267 :[FHLC]) ac_mode=$ac_tag; continue;; 14268 esac 14269 case $ac_mode$ac_tag in 14270 :[FHL]*:*);; 14271 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14272 :[FH]-) ac_tag=-:-;; 14273 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14274 esac 14275 ac_save_IFS=$IFS 14276 IFS=: 14277 set x $ac_tag 14278 IFS=$ac_save_IFS 14279 shift 14280 ac_file=$1 14281 shift 14282 14283 case $ac_mode in 14284 :L) ac_source=$1;; 14285 :[FH]) 14286 ac_file_inputs= 14287 for ac_f 14288 do 14289 case $ac_f in 14290 -) ac_f="$ac_tmp/stdin";; 14291 *) # Look for the file first in the build tree, then in the source tree 14292 # (if the path is not absolute). The absolute path cannot be DOS-style, 14293 # because $ac_f cannot contain `:'. 14294 test -f "$ac_f" || 14295 case $ac_f in 14296 [\\/$]*) false;; 14297 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14298 esac || 14299 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14300 esac 14301 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14302 as_fn_append ac_file_inputs " '$ac_f'" 14303 done 14304 14305 # Let's still pretend it is `configure' which instantiates (i.e., don't 14306 # use $as_me), people would be surprised to read: 14307 # /* config.h. Generated by config.status. */ 14308 configure_input='Generated from '` 14309 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14310 `' by configure.' 14311 if test x"$ac_file" != x-; then 14312 configure_input="$ac_file. $configure_input" 14313 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14314$as_echo "$as_me: creating $ac_file" >&6;} 14315 fi 14316 # Neutralize special characters interpreted by sed in replacement strings. 14317 case $configure_input in #( 14318 *\&* | *\|* | *\\* ) 14319 ac_sed_conf_input=`$as_echo "$configure_input" | 14320 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14321 *) ac_sed_conf_input=$configure_input;; 14322 esac 14323 14324 case $ac_tag in 14325 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14326 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14327 esac 14328 ;; 14329 esac 14330 14331 ac_dir=`$as_dirname -- "$ac_file" || 14332$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14333 X"$ac_file" : 'X\(//\)[^/]' \| \ 14334 X"$ac_file" : 'X\(//\)$' \| \ 14335 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14336$as_echo X"$ac_file" | 14337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14338 s//\1/ 14339 q 14340 } 14341 /^X\(\/\/\)[^/].*/{ 14342 s//\1/ 14343 q 14344 } 14345 /^X\(\/\/\)$/{ 14346 s//\1/ 14347 q 14348 } 14349 /^X\(\/\).*/{ 14350 s//\1/ 14351 q 14352 } 14353 s/.*/./; q'` 14354 as_dir="$ac_dir"; as_fn_mkdir_p 14355 ac_builddir=. 14356 14357case "$ac_dir" in 14358.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14359*) 14360 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14361 # A ".." for each directory in $ac_dir_suffix. 14362 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14363 case $ac_top_builddir_sub in 14364 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14365 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14366 esac ;; 14367esac 14368ac_abs_top_builddir=$ac_pwd 14369ac_abs_builddir=$ac_pwd$ac_dir_suffix 14370# for backward compatibility: 14371ac_top_builddir=$ac_top_build_prefix 14372 14373case $srcdir in 14374 .) # We are building in place. 14375 ac_srcdir=. 14376 ac_top_srcdir=$ac_top_builddir_sub 14377 ac_abs_top_srcdir=$ac_pwd ;; 14378 [\\/]* | ?:[\\/]* ) # Absolute name. 14379 ac_srcdir=$srcdir$ac_dir_suffix; 14380 ac_top_srcdir=$srcdir 14381 ac_abs_top_srcdir=$srcdir ;; 14382 *) # Relative name. 14383 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14384 ac_top_srcdir=$ac_top_build_prefix$srcdir 14385 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14386esac 14387ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14388 14389 14390 case $ac_mode in 14391 :F) 14392 # 14393 # CONFIG_FILE 14394 # 14395 14396 case $INSTALL in 14397 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14398 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14399 esac 14400_ACEOF 14401 14402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14403# If the template does not know about datarootdir, expand it. 14404# FIXME: This hack should be removed a few years after 2.60. 14405ac_datarootdir_hack=; ac_datarootdir_seen= 14406ac_sed_dataroot=' 14407/datarootdir/ { 14408 p 14409 q 14410} 14411/@datadir@/p 14412/@docdir@/p 14413/@infodir@/p 14414/@localedir@/p 14415/@mandir@/p' 14416case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14417*datarootdir*) ac_datarootdir_seen=yes;; 14418*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14420$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14421_ACEOF 14422cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14423 ac_datarootdir_hack=' 14424 s&@datadir@&$datadir&g 14425 s&@docdir@&$docdir&g 14426 s&@infodir@&$infodir&g 14427 s&@localedir@&$localedir&g 14428 s&@mandir@&$mandir&g 14429 s&\\\${datarootdir}&$datarootdir&g' ;; 14430esac 14431_ACEOF 14432 14433# Neutralize VPATH when `$srcdir' = `.'. 14434# Shell code in configure.ac might set extrasub. 14435# FIXME: do we really want to maintain this feature? 14436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14437ac_sed_extra="$ac_vpsub 14438$extrasub 14439_ACEOF 14440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14441:t 14442/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14443s|@configure_input@|$ac_sed_conf_input|;t t 14444s&@top_builddir@&$ac_top_builddir_sub&;t t 14445s&@top_build_prefix@&$ac_top_build_prefix&;t t 14446s&@srcdir@&$ac_srcdir&;t t 14447s&@abs_srcdir@&$ac_abs_srcdir&;t t 14448s&@top_srcdir@&$ac_top_srcdir&;t t 14449s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14450s&@builddir@&$ac_builddir&;t t 14451s&@abs_builddir@&$ac_abs_builddir&;t t 14452s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14453s&@INSTALL@&$ac_INSTALL&;t t 14454$ac_datarootdir_hack 14455" 14456eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14457 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14458 14459test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14460 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14461 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14462 "$ac_tmp/out"`; test -z "$ac_out"; } && 14463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14464which seems to be undefined. Please make sure it is defined" >&5 14465$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14466which seems to be undefined. Please make sure it is defined" >&2;} 14467 14468 rm -f "$ac_tmp/stdin" 14469 case $ac_file in 14470 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14471 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14472 esac \ 14473 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14474 ;; 14475 :H) 14476 # 14477 # CONFIG_HEADER 14478 # 14479 if test x"$ac_file" != x-; then 14480 { 14481 $as_echo "/* $configure_input */" \ 14482 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14483 } >"$ac_tmp/config.h" \ 14484 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14485 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14486 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14487$as_echo "$as_me: $ac_file is unchanged" >&6;} 14488 else 14489 rm -f "$ac_file" 14490 mv "$ac_tmp/config.h" "$ac_file" \ 14491 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14492 fi 14493 else 14494 $as_echo "/* $configure_input */" \ 14495 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14496 || as_fn_error $? "could not create -" "$LINENO" 5 14497 fi 14498 ;; 14499 14500 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14501$as_echo "$as_me: executing $ac_file commands" >&6;} 14502 ;; 14503 esac 14504 14505 14506 case $ac_file$ac_mode in 14507 "libtool":C) 14508 14509 # See if we are running on zsh, and set the options that allow our 14510 # commands through without removal of \ escapes. 14511 if test -n "${ZSH_VERSION+set}"; then 14512 setopt NO_GLOB_SUBST 14513 fi 14514 14515 cfgfile=${ofile}T 14516 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14517 $RM "$cfgfile" 14518 14519 cat <<_LT_EOF >> "$cfgfile" 14520#! $SHELL 14521# Generated automatically by $as_me ($PACKAGE) $VERSION 14522# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14523 14524# Provide generalized library-building support services. 14525# Written by Gordon Matzigkeit, 1996 14526 14527# Copyright (C) 2014 Free Software Foundation, Inc. 14528# This is free software; see the source for copying conditions. There is NO 14529# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14530 14531# GNU Libtool is free software; you can redistribute it and/or modify 14532# it under the terms of the GNU General Public License as published by 14533# the Free Software Foundation; either version 2 of of the License, or 14534# (at your option) any later version. 14535# 14536# As a special exception to the GNU General Public License, if you 14537# distribute this file as part of a program or library that is built 14538# using GNU Libtool, you may include this file under the same 14539# distribution terms that you use for the rest of that program. 14540# 14541# GNU Libtool is distributed in the hope that it will be useful, but 14542# WITHOUT ANY WARRANTY; without even the implied warranty of 14543# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14544# GNU General Public License for more details. 14545# 14546# You should have received a copy of the GNU General Public License 14547# along with this program. If not, see <http://www.gnu.org/licenses/>. 14548 14549 14550# The names of the tagged configurations supported by this script. 14551available_tags='' 14552 14553# Configured defaults for sys_lib_dlsearch_path munging. 14554: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 14555 14556# ### BEGIN LIBTOOL CONFIG 14557 14558# Assembler program. 14559AS=$lt_AS 14560 14561# DLL creation program. 14562DLLTOOL=$lt_DLLTOOL 14563 14564# Object dumper program. 14565OBJDUMP=$lt_OBJDUMP 14566 14567# Which release of libtool.m4 was used? 14568macro_version=$macro_version 14569macro_revision=$macro_revision 14570 14571# Whether or not to build shared libraries. 14572build_libtool_libs=$enable_shared 14573 14574# Whether or not to build static libraries. 14575build_old_libs=$enable_static 14576 14577# What type of objects to build. 14578pic_mode=$pic_mode 14579 14580# Whether or not to optimize for fast installation. 14581fast_install=$enable_fast_install 14582 14583# Shared archive member basename,for filename based shared library versioning on AIX. 14584shared_archive_member_spec=$shared_archive_member_spec 14585 14586# Shell to use when invoking shell scripts. 14587SHELL=$lt_SHELL 14588 14589# An echo program that protects backslashes. 14590ECHO=$lt_ECHO 14591 14592# The PATH separator for the build system. 14593PATH_SEPARATOR=$lt_PATH_SEPARATOR 14594 14595# The host system. 14596host_alias=$host_alias 14597host=$host 14598host_os=$host_os 14599 14600# The build system. 14601build_alias=$build_alias 14602build=$build 14603build_os=$build_os 14604 14605# A sed program that does not truncate output. 14606SED=$lt_SED 14607 14608# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14609Xsed="\$SED -e 1s/^X//" 14610 14611# A grep program that handles long lines. 14612GREP=$lt_GREP 14613 14614# An ERE matcher. 14615EGREP=$lt_EGREP 14616 14617# A literal string matcher. 14618FGREP=$lt_FGREP 14619 14620# A BSD- or MS-compatible name lister. 14621NM=$lt_NM 14622 14623# Whether we need soft or hard links. 14624LN_S=$lt_LN_S 14625 14626# What is the maximum length of a command? 14627max_cmd_len=$max_cmd_len 14628 14629# Object file suffix (normally "o"). 14630objext=$ac_objext 14631 14632# Executable file suffix (normally ""). 14633exeext=$exeext 14634 14635# whether the shell understands "unset". 14636lt_unset=$lt_unset 14637 14638# turn spaces into newlines. 14639SP2NL=$lt_lt_SP2NL 14640 14641# turn newlines into spaces. 14642NL2SP=$lt_lt_NL2SP 14643 14644# convert \$build file names to \$host format. 14645to_host_file_cmd=$lt_cv_to_host_file_cmd 14646 14647# convert \$build files to toolchain format. 14648to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14649 14650# Method to check whether dependent libraries are shared objects. 14651deplibs_check_method=$lt_deplibs_check_method 14652 14653# Command to use when deplibs_check_method = "file_magic". 14654file_magic_cmd=$lt_file_magic_cmd 14655 14656# How to find potential files when deplibs_check_method = "file_magic". 14657file_magic_glob=$lt_file_magic_glob 14658 14659# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14660want_nocaseglob=$lt_want_nocaseglob 14661 14662# Command to associate shared and link libraries. 14663sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14664 14665# The archiver. 14666AR=$lt_AR 14667 14668# Flags to create an archive. 14669AR_FLAGS=$lt_AR_FLAGS 14670 14671# How to feed a file listing to the archiver. 14672archiver_list_spec=$lt_archiver_list_spec 14673 14674# A symbol stripping program. 14675STRIP=$lt_STRIP 14676 14677# Commands used to install an old-style archive. 14678RANLIB=$lt_RANLIB 14679old_postinstall_cmds=$lt_old_postinstall_cmds 14680old_postuninstall_cmds=$lt_old_postuninstall_cmds 14681 14682# Whether to use a lock for old archive extraction. 14683lock_old_archive_extraction=$lock_old_archive_extraction 14684 14685# A C compiler. 14686LTCC=$lt_CC 14687 14688# LTCC compiler flags. 14689LTCFLAGS=$lt_CFLAGS 14690 14691# Take the output of nm and produce a listing of raw symbols and C names. 14692global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14693 14694# Transform the output of nm in a proper C declaration. 14695global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14696 14697# Transform the output of nm into a list of symbols to manually relocate. 14698global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 14699 14700# Transform the output of nm in a C name address pair. 14701global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14702 14703# Transform the output of nm in a C name address pair when lib prefix is needed. 14704global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14705 14706# The name lister interface. 14707nm_interface=$lt_lt_cv_nm_interface 14708 14709# Specify filename containing input files for \$NM. 14710nm_file_list_spec=$lt_nm_file_list_spec 14711 14712# The root where to search for dependent libraries,and where our libraries should be installed. 14713lt_sysroot=$lt_sysroot 14714 14715# Command to truncate a binary pipe. 14716lt_truncate_bin=$lt_lt_cv_truncate_bin 14717 14718# The name of the directory that contains temporary libtool files. 14719objdir=$objdir 14720 14721# Used to examine libraries when file_magic_cmd begins with "file". 14722MAGIC_CMD=$MAGIC_CMD 14723 14724# Must we lock files when doing compilation? 14725need_locks=$lt_need_locks 14726 14727# Manifest tool. 14728MANIFEST_TOOL=$lt_MANIFEST_TOOL 14729 14730# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14731DSYMUTIL=$lt_DSYMUTIL 14732 14733# Tool to change global to local symbols on Mac OS X. 14734NMEDIT=$lt_NMEDIT 14735 14736# Tool to manipulate fat objects and archives on Mac OS X. 14737LIPO=$lt_LIPO 14738 14739# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14740OTOOL=$lt_OTOOL 14741 14742# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14743OTOOL64=$lt_OTOOL64 14744 14745# Old archive suffix (normally "a"). 14746libext=$libext 14747 14748# Shared library suffix (normally ".so"). 14749shrext_cmds=$lt_shrext_cmds 14750 14751# The commands to extract the exported symbol list from a shared archive. 14752extract_expsyms_cmds=$lt_extract_expsyms_cmds 14753 14754# Variables whose values should be saved in libtool wrapper scripts and 14755# restored at link time. 14756variables_saved_for_relink=$lt_variables_saved_for_relink 14757 14758# Do we need the "lib" prefix for modules? 14759need_lib_prefix=$need_lib_prefix 14760 14761# Do we need a version for libraries? 14762need_version=$need_version 14763 14764# Library versioning type. 14765version_type=$version_type 14766 14767# Shared library runtime path variable. 14768runpath_var=$runpath_var 14769 14770# Shared library path variable. 14771shlibpath_var=$shlibpath_var 14772 14773# Is shlibpath searched before the hard-coded library search path? 14774shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14775 14776# Format of library name prefix. 14777libname_spec=$lt_libname_spec 14778 14779# List of archive names. First name is the real one, the rest are links. 14780# The last name is the one that the linker finds with -lNAME 14781library_names_spec=$lt_library_names_spec 14782 14783# The coded name of the library, if different from the real name. 14784soname_spec=$lt_soname_spec 14785 14786# Permission mode override for installation of shared libraries. 14787install_override_mode=$lt_install_override_mode 14788 14789# Command to use after installation of a shared archive. 14790postinstall_cmds=$lt_postinstall_cmds 14791 14792# Command to use after uninstallation of a shared archive. 14793postuninstall_cmds=$lt_postuninstall_cmds 14794 14795# Commands used to finish a libtool library installation in a directory. 14796finish_cmds=$lt_finish_cmds 14797 14798# As "finish_cmds", except a single script fragment to be evaled but 14799# not shown. 14800finish_eval=$lt_finish_eval 14801 14802# Whether we should hardcode library paths into libraries. 14803hardcode_into_libs=$hardcode_into_libs 14804 14805# Compile-time system search path for libraries. 14806sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14807 14808# Detected run-time system search path for libraries. 14809sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 14810 14811# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 14812configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 14813 14814# Whether dlopen is supported. 14815dlopen_support=$enable_dlopen 14816 14817# Whether dlopen of programs is supported. 14818dlopen_self=$enable_dlopen_self 14819 14820# Whether dlopen of statically linked programs is supported. 14821dlopen_self_static=$enable_dlopen_self_static 14822 14823# Commands to strip libraries. 14824old_striplib=$lt_old_striplib 14825striplib=$lt_striplib 14826 14827 14828# The linker used to build libraries. 14829LD=$lt_LD 14830 14831# How to create reloadable object files. 14832reload_flag=$lt_reload_flag 14833reload_cmds=$lt_reload_cmds 14834 14835# Commands used to build an old-style archive. 14836old_archive_cmds=$lt_old_archive_cmds 14837 14838# A language specific compiler. 14839CC=$lt_compiler 14840 14841# Is the compiler the GNU compiler? 14842with_gcc=$GCC 14843 14844# Compiler flag to turn off builtin functions. 14845no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14846 14847# Additional compiler flags for building library objects. 14848pic_flag=$lt_lt_prog_compiler_pic 14849 14850# How to pass a linker flag through the compiler. 14851wl=$lt_lt_prog_compiler_wl 14852 14853# Compiler flag to prevent dynamic linking. 14854link_static_flag=$lt_lt_prog_compiler_static 14855 14856# Does compiler simultaneously support -c and -o options? 14857compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14858 14859# Whether or not to add -lc for building shared libraries. 14860build_libtool_need_lc=$archive_cmds_need_lc 14861 14862# Whether or not to disallow shared libs when runtime libs are static. 14863allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14864 14865# Compiler flag to allow reflexive dlopens. 14866export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14867 14868# Compiler flag to generate shared objects directly from archives. 14869whole_archive_flag_spec=$lt_whole_archive_flag_spec 14870 14871# Whether the compiler copes with passing no objects directly. 14872compiler_needs_object=$lt_compiler_needs_object 14873 14874# Create an old-style archive from a shared archive. 14875old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14876 14877# Create a temporary old-style archive to link instead of a shared archive. 14878old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14879 14880# Commands used to build a shared archive. 14881archive_cmds=$lt_archive_cmds 14882archive_expsym_cmds=$lt_archive_expsym_cmds 14883 14884# Commands used to build a loadable module if different from building 14885# a shared archive. 14886module_cmds=$lt_module_cmds 14887module_expsym_cmds=$lt_module_expsym_cmds 14888 14889# Whether we are building with GNU ld or not. 14890with_gnu_ld=$lt_with_gnu_ld 14891 14892# Flag that allows shared libraries with undefined symbols to be built. 14893allow_undefined_flag=$lt_allow_undefined_flag 14894 14895# Flag that enforces no undefined symbols. 14896no_undefined_flag=$lt_no_undefined_flag 14897 14898# Flag to hardcode \$libdir into a binary during linking. 14899# This must work even if \$libdir does not exist 14900hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14901 14902# Whether we need a single "-rpath" flag with a separated argument. 14903hardcode_libdir_separator=$lt_hardcode_libdir_separator 14904 14905# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 14906# DIR into the resulting binary. 14907hardcode_direct=$hardcode_direct 14908 14909# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 14910# DIR into the resulting binary and the resulting library dependency is 14911# "absolute",i.e impossible to change by setting \$shlibpath_var if the 14912# library is relocated. 14913hardcode_direct_absolute=$hardcode_direct_absolute 14914 14915# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14916# into the resulting binary. 14917hardcode_minus_L=$hardcode_minus_L 14918 14919# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14920# into the resulting binary. 14921hardcode_shlibpath_var=$hardcode_shlibpath_var 14922 14923# Set to "yes" if building a shared library automatically hardcodes DIR 14924# into the library and all subsequent libraries and executables linked 14925# against it. 14926hardcode_automatic=$hardcode_automatic 14927 14928# Set to yes if linker adds runtime paths of dependent libraries 14929# to runtime path list. 14930inherit_rpath=$inherit_rpath 14931 14932# Whether libtool must link a program against all its dependency libraries. 14933link_all_deplibs=$link_all_deplibs 14934 14935# Set to "yes" if exported symbols are required. 14936always_export_symbols=$always_export_symbols 14937 14938# The commands to list exported symbols. 14939export_symbols_cmds=$lt_export_symbols_cmds 14940 14941# Symbols that should not be listed in the preloaded symbols. 14942exclude_expsyms=$lt_exclude_expsyms 14943 14944# Symbols that must always be exported. 14945include_expsyms=$lt_include_expsyms 14946 14947# Commands necessary for linking programs (against libraries) with templates. 14948prelink_cmds=$lt_prelink_cmds 14949 14950# Commands necessary for finishing linking programs. 14951postlink_cmds=$lt_postlink_cmds 14952 14953# Specify filename containing input files. 14954file_list_spec=$lt_file_list_spec 14955 14956# How to hardcode a shared library path into an executable. 14957hardcode_action=$hardcode_action 14958 14959# ### END LIBTOOL CONFIG 14960 14961_LT_EOF 14962 14963 cat <<'_LT_EOF' >> "$cfgfile" 14964 14965# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 14966 14967# func_munge_path_list VARIABLE PATH 14968# ----------------------------------- 14969# VARIABLE is name of variable containing _space_ separated list of 14970# directories to be munged by the contents of PATH, which is string 14971# having a format: 14972# "DIR[:DIR]:" 14973# string "DIR[ DIR]" will be prepended to VARIABLE 14974# ":DIR[:DIR]" 14975# string "DIR[ DIR]" will be appended to VARIABLE 14976# "DIRP[:DIRP]::[DIRA:]DIRA" 14977# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14978# "DIRA[ DIRA]" will be appended to VARIABLE 14979# "DIR[:DIR]" 14980# VARIABLE will be replaced by "DIR[ DIR]" 14981func_munge_path_list () 14982{ 14983 case x$2 in 14984 x) 14985 ;; 14986 *:) 14987 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14988 ;; 14989 x:*) 14990 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14991 ;; 14992 *::*) 14993 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14994 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14995 ;; 14996 *) 14997 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14998 ;; 14999 esac 15000} 15001 15002 15003# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15004func_cc_basename () 15005{ 15006 for cc_temp in $*""; do 15007 case $cc_temp in 15008 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15009 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15010 \-*) ;; 15011 *) break;; 15012 esac 15013 done 15014 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15015} 15016 15017 15018# ### END FUNCTIONS SHARED WITH CONFIGURE 15019 15020_LT_EOF 15021 15022 case $host_os in 15023 aix3*) 15024 cat <<\_LT_EOF >> "$cfgfile" 15025# AIX sometimes has problems with the GCC collect2 program. For some 15026# reason, if we set the COLLECT_NAMES environment variable, the problems 15027# vanish in a puff of smoke. 15028if test set != "${COLLECT_NAMES+set}"; then 15029 COLLECT_NAMES= 15030 export COLLECT_NAMES 15031fi 15032_LT_EOF 15033 ;; 15034 esac 15035 15036 15037ltmain=$ac_aux_dir/ltmain.sh 15038 15039 15040 # We use sed instead of cat because bash on DJGPP gets confused if 15041 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15042 # text mode, it properly converts lines to CR/LF. This bash problem 15043 # is reportedly fixed, but why not run on old versions too? 15044 sed '$q' "$ltmain" >> "$cfgfile" \ 15045 || (rm -f "$cfgfile"; exit 1) 15046 15047 mv -f "$cfgfile" "$ofile" || 15048 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15049 chmod +x "$ofile" 15050 15051 ;; 15052 15053 esac 15054done # for ac_tag 15055 15056 15057as_fn_exit 0 15058_ACEOF 15059ac_clean_files=$ac_clean_files_save 15060 15061test $ac_write_fail = 0 || 15062 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15063 15064 15065# configure is writing to config.log, and then calls config.status. 15066# config.status does its own redirection, appending to config.log. 15067# Unfortunately, on DOS this fails, as config.log is still kept open 15068# by configure, so config.status won't be able to write to it; its 15069# output is simply discarded. So we exec the FD to /dev/null, 15070# effectively closing config.log, so it can be properly (re)opened and 15071# appended to by config.status. When coming back to configure, we 15072# need to make the FD available again. 15073if test "$no_create" != yes; then 15074 ac_cs_success=: 15075 ac_config_status_args= 15076 test "$silent" = yes && 15077 ac_config_status_args="$ac_config_status_args --quiet" 15078 exec 5>/dev/null 15079 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15080 exec 5>>config.log 15081 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15082 # would make configure fail if this is the last instruction. 15083 $ac_cs_success || as_fn_exit 1 15084fi 15085if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15087$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15088fi 15089 15090