1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.64 for package-unused version-unused. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 7# Foundation, Inc. 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. 90case $0 in #(( 91 *[\\/]* ) as_myself=$0 ;; 92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 93for as_dir in $PATH 94do 95 IFS=$as_save_IFS 96 test -z "$as_dir" && as_dir=. 97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 98 done 99IFS=$as_save_IFS 100 101 ;; 102esac 103# We did not find ourselves, most probably we were run as `sh COMMAND' 104# in which case we are not to be found in the path. 105if test "x$as_myself" = x; then 106 as_myself=$0 107fi 108if test ! -f "$as_myself"; then 109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 110 exit 1 111fi 112 113# Unset variables that we do not need and which cause bugs (e.g. in 114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 115# suppresses any "Segmentation fault" message there. '((' could 116# trigger a bug in pdksh 5.2.14. 117for as_var in BASH_ENV ENV MAIL MAILPATH 118do eval test x\${$as_var+set} = xset \ 119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 120done 121PS1='$ ' 122PS2='> ' 123PS4='+ ' 124 125# NLS nuisances. 126LC_ALL=C 127export LC_ALL 128LANGUAGE=C 129export LANGUAGE 130 131# CDPATH. 132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 133 134if test "x$CONFIG_SHELL" = x; then 135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 136 emulate sh 137 NULLCMD=: 138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 139 # is contrary to our usage. Disable this feature. 140 alias -g '\${1+\"\$@\"}'='\"\$@\"' 141 setopt NO_GLOB_SUBST 142else 143 case \`(set -o) 2>/dev/null\` in #( 144 *posix*) : 145 set -o posix ;; #( 146 *) : 147 ;; 148esac 149fi 150" 151 as_required="as_fn_return () { (exit \$1); } 152as_fn_success () { as_fn_return 0; } 153as_fn_failure () { as_fn_return 1; } 154as_fn_ret_success () { return 0; } 155as_fn_ret_failure () { return 1; } 156 157exitcode=0 158as_fn_success || { exitcode=1; echo as_fn_success failed.; } 159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 163 164else 165 exitcode=1; echo positional parameters were not saved. 166fi 167test x\$exitcode = x0 || exit 1" 168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 172 173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 177 PATH=/empty FPATH=/empty; export PATH FPATH 178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 180test \$(( 1 + 1 )) = 2 || exit 1" 181 if (eval "$as_required") 2>/dev/null; then : 182 as_have_required=yes 183else 184 as_have_required=no 185fi 186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 187 188else 189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 190as_found=false 191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 192do 193 IFS=$as_save_IFS 194 test -z "$as_dir" && as_dir=. 195 as_found=: 196 case $as_dir in #( 197 /*) 198 for as_base in sh bash ksh sh5; do 199 # Try only shells that exist, to save several forks. 200 as_shell=$as_dir/$as_base 201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 203 CONFIG_SHELL=$as_shell as_have_required=yes 204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 205 break 2 206fi 207fi 208 done;; 209 esac 210 as_found=false 211done 212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 214 CONFIG_SHELL=$SHELL as_have_required=yes 215fi; } 216IFS=$as_save_IFS 217 218 219 if test "x$CONFIG_SHELL" != x; then : 220 # We cannot yet assume a decent shell, so we have to provide a 221 # neutralization value for shells without unset; and this also 222 # works around shells that cannot unset nonexistent variables. 223 BASH_ENV=/dev/null 224 ENV=/dev/null 225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 226 export CONFIG_SHELL 227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 228fi 229 230 if test x$as_have_required = xno; then : 231 $as_echo "$0: This script requires a shell more modern than all" 232 $as_echo "$0: the shells that I found on your system." 233 if test x${ZSH_VERSION+set} = xset ; then 234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 235 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 236 else 237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 238$0: including any error possibly output before this 239$0: message. Then install a modern shell, or manually run 240$0: the script under such a shell if you do have one." 241 fi 242 exit 1 243fi 244fi 245fi 246SHELL=${CONFIG_SHELL-/bin/sh} 247export SHELL 248# Unset more variables known to interfere with behavior of common tools. 249CLICOLOR_FORCE= GREP_OPTIONS= 250unset CLICOLOR_FORCE GREP_OPTIONS 251 252## --------------------- ## 253## M4sh Shell Functions. ## 254## --------------------- ## 255# as_fn_unset VAR 256# --------------- 257# Portably unset VAR. 258as_fn_unset () 259{ 260 { eval $1=; unset $1;} 261} 262as_unset=as_fn_unset 263 264# as_fn_set_status STATUS 265# ----------------------- 266# Set $? to STATUS, without forking. 267as_fn_set_status () 268{ 269 return $1 270} # as_fn_set_status 271 272# as_fn_exit STATUS 273# ----------------- 274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 275as_fn_exit () 276{ 277 set +e 278 as_fn_set_status $1 279 exit $1 280} # as_fn_exit 281 282# as_fn_mkdir_p 283# ------------- 284# Create "$as_dir" as a directory, including parents if necessary. 285as_fn_mkdir_p () 286{ 287 288 case $as_dir in #( 289 -*) as_dir=./$as_dir;; 290 esac 291 test -d "$as_dir" || eval $as_mkdir_p || { 292 as_dirs= 293 while :; do 294 case $as_dir in #( 295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 296 *) as_qdir=$as_dir;; 297 esac 298 as_dirs="'$as_qdir' $as_dirs" 299 as_dir=`$as_dirname -- "$as_dir" || 300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 301 X"$as_dir" : 'X\(//\)[^/]' \| \ 302 X"$as_dir" : 'X\(//\)$' \| \ 303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 304$as_echo X"$as_dir" | 305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 306 s//\1/ 307 q 308 } 309 /^X\(\/\/\)[^/].*/{ 310 s//\1/ 311 q 312 } 313 /^X\(\/\/\)$/{ 314 s//\1/ 315 q 316 } 317 /^X\(\/\).*/{ 318 s//\1/ 319 q 320 } 321 s/.*/./; q'` 322 test -d "$as_dir" && break 323 done 324 test -z "$as_dirs" || eval "mkdir $as_dirs" 325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 326 327 328} # as_fn_mkdir_p 329# as_fn_append VAR VALUE 330# ---------------------- 331# Append the text in VALUE to the end of the definition contained in VAR. Take 332# advantage of any shell optimizations that allow amortized linear growth over 333# repeated appends, instead of the typical quadratic growth present in naive 334# implementations. 335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 336 eval 'as_fn_append () 337 { 338 eval $1+=\$2 339 }' 340else 341 as_fn_append () 342 { 343 eval $1=\$$1\$2 344 } 345fi # as_fn_append 346 347# as_fn_arith ARG... 348# ------------------ 349# Perform arithmetic evaluation on the ARGs, and store the result in the 350# global $as_val. Take advantage of shells that can avoid forks. The arguments 351# must be portable across $(()) and expr. 352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 353 eval 'as_fn_arith () 354 { 355 as_val=$(( $* )) 356 }' 357else 358 as_fn_arith () 359 { 360 as_val=`expr "$@" || test $? -eq 1` 361 } 362fi # as_fn_arith 363 364 365# as_fn_error ERROR [LINENO LOG_FD] 366# --------------------------------- 367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 369# script with status $?, using 1 if that was 0. 370as_fn_error () 371{ 372 as_status=$?; test $as_status -eq 0 && as_status=1 373 if test "$3"; then 374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 376 fi 377 $as_echo "$as_me: error: $1" >&2 378 as_fn_exit $as_status 379} # as_fn_error 380 381if expr a : '\(a\)' >/dev/null 2>&1 && 382 test "X`expr 00001 : '.*\(...\)'`" = X001; then 383 as_expr=expr 384else 385 as_expr=false 386fi 387 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 389 as_basename=basename 390else 391 as_basename=false 392fi 393 394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 395 as_dirname=dirname 396else 397 as_dirname=false 398fi 399 400as_me=`$as_basename -- "$0" || 401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 402 X"$0" : 'X\(//\)$' \| \ 403 X"$0" : 'X\(/\)' \| . 2>/dev/null || 404$as_echo X/"$0" | 405 sed '/^.*\/\([^/][^/]*\)\/*$/{ 406 s//\1/ 407 q 408 } 409 /^X\/\(\/\/\)$/{ 410 s//\1/ 411 q 412 } 413 /^X\/\(\/\).*/{ 414 s//\1/ 415 q 416 } 417 s/.*/./; q'` 418 419# Avoid depending upon Character Ranges. 420as_cr_letters='abcdefghijklmnopqrstuvwxyz' 421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 422as_cr_Letters=$as_cr_letters$as_cr_LETTERS 423as_cr_digits='0123456789' 424as_cr_alnum=$as_cr_Letters$as_cr_digits 425 426 427 as_lineno_1=$LINENO as_lineno_1a=$LINENO 428 as_lineno_2=$LINENO as_lineno_2a=$LINENO 429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 432 sed -n ' 433 p 434 /[$]LINENO/= 435 ' <$as_myself | 436 sed ' 437 s/[$]LINENO.*/&-/ 438 t lineno 439 b 440 :lineno 441 N 442 :loop 443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 444 t loop 445 s/-\n.*// 446 ' >$as_me.lineno && 447 chmod +x "$as_me.lineno" || 448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 449 450 # Don't try to exec as it changes $[0], causing all sort of problems 451 # (the dirname of $[0] is not the place where we might find the 452 # original and so on. Autoconf is especially sensitive to this). 453 . "./$as_me.lineno" 454 # Exit status is that of the last command. 455 exit 456} 457 458ECHO_C= ECHO_N= ECHO_T= 459case `echo -n x` in #((((( 460-n*) 461 case `echo 'xy\c'` in 462 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 463 xy) ECHO_C='\c';; 464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 465 ECHO_T=' ';; 466 esac;; 467*) 468 ECHO_N='-n';; 469esac 470 471rm -f conf$$ conf$$.exe conf$$.file 472if test -d conf$$.dir; then 473 rm -f conf$$.dir/conf$$.file 474else 475 rm -f conf$$.dir 476 mkdir conf$$.dir 2>/dev/null 477fi 478if (echo >conf$$.file) 2>/dev/null; then 479 if ln -s conf$$.file conf$$ 2>/dev/null; then 480 as_ln_s='ln -s' 481 # ... but there are two gotchas: 482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 484 # In both cases, we have to default to `cp -p'. 485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 486 as_ln_s='cp -p' 487 elif ln conf$$.file conf$$ 2>/dev/null; then 488 as_ln_s=ln 489 else 490 as_ln_s='cp -p' 491 fi 492else 493 as_ln_s='cp -p' 494fi 495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 496rmdir conf$$.dir 2>/dev/null 497 498if mkdir -p . 2>/dev/null; then 499 as_mkdir_p='mkdir -p "$as_dir"' 500else 501 test -d ./-p && rmdir ./-p 502 as_mkdir_p=false 503fi 504 505if test -x / >/dev/null 2>&1; then 506 as_test_x='test -x' 507else 508 if ls -dL / >/dev/null 2>&1; then 509 as_ls_L_option=L 510 else 511 as_ls_L_option= 512 fi 513 as_test_x=' 514 eval sh -c '\'' 515 if test -d "$1"; then 516 test -d "$1/."; 517 else 518 case $1 in #( 519 -*)set "./$1";; 520 esac; 521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 522 ???[sx]*):;;*)false;;esac;fi 523 '\'' sh 524 ' 525fi 526as_executable_p=$as_test_x 527 528# Sed expression to map a string onto a valid CPP name. 529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 530 531# Sed expression to map a string onto a valid variable name. 532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 533 534SHELL=${CONFIG_SHELL-/bin/sh} 535 536 537exec 7<&0 </dev/null 6>&1 538 539# Name of the host. 540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 541# so uname gets run too. 542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 543 544# 545# Initializations. 546# 547ac_default_prefix=/usr/local 548ac_clean_files= 549ac_config_libobj_dir=. 550LIBOBJS= 551cross_compiling=no 552subdirs= 553MFLAGS= 554MAKEFLAGS= 555 556# Identity of this package. 557PACKAGE_NAME='package-unused' 558PACKAGE_TARNAME='libobjc' 559PACKAGE_VERSION='version-unused' 560PACKAGE_STRING='package-unused version-unused' 561PACKAGE_BUGREPORT='' 562PACKAGE_URL='' 563 564ac_unique_file="objc/objc.h" 565# Factoring default headers for most tests. 566ac_includes_default="\ 567#include <stdio.h> 568#ifdef HAVE_SYS_TYPES_H 569# include <sys/types.h> 570#endif 571#ifdef HAVE_SYS_STAT_H 572# include <sys/stat.h> 573#endif 574#ifdef STDC_HEADERS 575# include <stdlib.h> 576# include <stddef.h> 577#else 578# ifdef HAVE_STDLIB_H 579# include <stdlib.h> 580# endif 581#endif 582#ifdef HAVE_STRING_H 583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 584# include <memory.h> 585# endif 586# include <string.h> 587#endif 588#ifdef HAVE_STRINGS_H 589# include <strings.h> 590#endif 591#ifdef HAVE_INTTYPES_H 592# include <inttypes.h> 593#endif 594#ifdef HAVE_STDINT_H 595# include <stdint.h> 596#endif 597#ifdef HAVE_UNISTD_H 598# include <unistd.h> 599#endif" 600 601ac_subst_vars='LTLIBOBJS 602LIBOBJS 603get_gcc_base_ver 604OBJC_BOEHM_GC_LIBS 605OBJC_BOEHM_GC_INCLUDES 606OBJC_BOEHM_GC 607OBJC_GCFLAGS 608SET_MAKE 609CPP 610OTOOL64 611OTOOL 612LIPO 613NMEDIT 614DSYMUTIL 615AWK 616STRIP 617LN_S 618NM 619ac_ct_DUMPBIN 620DUMPBIN 621LD 622FGREP 623EGREP 624GREP 625SED 626LIBTOOL 627OBJDUMP 628DLLTOOL 629MAINT 630MAINTAINER_MODE_FALSE 631MAINTAINER_MODE_TRUE 632INSTALL_DATA 633INSTALL_SCRIPT 634INSTALL_PROGRAM 635RANLIB 636AR 637AS 638XCFLAGS 639extra_ldflags_libobjc 640lt_host_flags 641OBJEXT 642EXEEXT 643ac_ct_CC 644CPPFLAGS 645LDFLAGS 646CFLAGS 647CC 648libsuffix 649includedirname 650toolexeclibdir 651toolexecdir 652glibcpp_srcdir 653target_noncanonical 654target_os 655target_vendor 656target_cpu 657target 658host_os 659host_vendor 660host_cpu 661host 662multi_basedir 663VERSION 664target_subdir 665host_subdir 666build_subdir 667build_libsubdir 668build_os 669build_vendor 670build_cpu 671build 672target_alias 673host_alias 674build_alias 675LIBS 676ECHO_T 677ECHO_N 678ECHO_C 679DEFS 680mandir 681localedir 682libdir 683psdir 684pdfdir 685dvidir 686htmldir 687infodir 688docdir 689oldincludedir 690includedir 691localstatedir 692sharedstatedir 693sysconfdir 694datadir 695datarootdir 696libexecdir 697sbindir 698bindir 699program_transform_name 700prefix 701exec_prefix 702PACKAGE_URL 703PACKAGE_BUGREPORT 704PACKAGE_STRING 705PACKAGE_VERSION 706PACKAGE_TARNAME 707PACKAGE_NAME 708PATH_SEPARATOR 709SHELL' 710ac_subst_files='' 711ac_user_opts=' 712enable_option_checking 713with_build_libsubdir 714with_target_subdir 715with_cross_host 716enable_version_specific_runtime_libs 717enable_multilib 718enable_cet 719enable_maintainer_mode 720enable_shared 721enable_static 722with_pic 723enable_fast_install 724with_gnu_ld 725enable_libtool_lock 726enable_tls 727enable_objc_gc 728with_target_bdw_gc 729with_target_bdw_gc_include 730with_target_bdw_gc_lib 731with_gcc_major_version_only 732' 733 ac_precious_vars='build_alias 734host_alias 735target_alias 736CPP 737CPPFLAGS' 738 739 740# Initialize some variables set by options. 741ac_init_help= 742ac_init_version=false 743ac_unrecognized_opts= 744ac_unrecognized_sep= 745# The variables have the same names as the options, with 746# dashes changed to underlines. 747cache_file=/dev/null 748exec_prefix=NONE 749no_create= 750no_recursion= 751prefix=NONE 752program_prefix=NONE 753program_suffix=NONE 754program_transform_name=s,x,x, 755silent= 756site= 757srcdir= 758verbose= 759x_includes=NONE 760x_libraries=NONE 761 762# Installation directory options. 763# These are left unexpanded so users can "make install exec_prefix=/foo" 764# and all the variables that are supposed to be based on exec_prefix 765# by default will actually change. 766# Use braces instead of parens because sh, perl, etc. also accept them. 767# (The list follows the same order as the GNU Coding Standards.) 768bindir='${exec_prefix}/bin' 769sbindir='${exec_prefix}/sbin' 770libexecdir='${exec_prefix}/libexec' 771datarootdir='${prefix}/share' 772datadir='${datarootdir}' 773sysconfdir='${prefix}/etc' 774sharedstatedir='${prefix}/com' 775localstatedir='${prefix}/var' 776includedir='${prefix}/include' 777oldincludedir='/usr/include' 778docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 779infodir='${datarootdir}/info' 780htmldir='${docdir}' 781dvidir='${docdir}' 782pdfdir='${docdir}' 783psdir='${docdir}' 784libdir='${exec_prefix}/lib' 785localedir='${datarootdir}/locale' 786mandir='${datarootdir}/man' 787 788ac_prev= 789ac_dashdash= 790for ac_option 791do 792 # If the previous option needs an argument, assign it. 793 if test -n "$ac_prev"; then 794 eval $ac_prev=\$ac_option 795 ac_prev= 796 continue 797 fi 798 799 case $ac_option in 800 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 801 *) ac_optarg=yes ;; 802 esac 803 804 # Accept the important Cygnus configure options, so we can diagnose typos. 805 806 case $ac_dashdash$ac_option in 807 --) 808 ac_dashdash=yes ;; 809 810 -bindir | --bindir | --bindi | --bind | --bin | --bi) 811 ac_prev=bindir ;; 812 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 813 bindir=$ac_optarg ;; 814 815 -build | --build | --buil | --bui | --bu) 816 ac_prev=build_alias ;; 817 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 818 build_alias=$ac_optarg ;; 819 820 -cache-file | --cache-file | --cache-fil | --cache-fi \ 821 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 822 ac_prev=cache_file ;; 823 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 824 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 825 cache_file=$ac_optarg ;; 826 827 --config-cache | -C) 828 cache_file=config.cache ;; 829 830 -datadir | --datadir | --datadi | --datad) 831 ac_prev=datadir ;; 832 -datadir=* | --datadir=* | --datadi=* | --datad=*) 833 datadir=$ac_optarg ;; 834 835 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 836 | --dataroo | --dataro | --datar) 837 ac_prev=datarootdir ;; 838 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 839 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 840 datarootdir=$ac_optarg ;; 841 842 -disable-* | --disable-*) 843 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 844 # Reject names that are not valid shell variable names. 845 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 846 as_fn_error "invalid feature name: $ac_useropt" 847 ac_useropt_orig=$ac_useropt 848 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 849 case $ac_user_opts in 850 *" 851"enable_$ac_useropt" 852"*) ;; 853 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 854 ac_unrecognized_sep=', ';; 855 esac 856 eval enable_$ac_useropt=no ;; 857 858 -docdir | --docdir | --docdi | --doc | --do) 859 ac_prev=docdir ;; 860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 861 docdir=$ac_optarg ;; 862 863 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 864 ac_prev=dvidir ;; 865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 866 dvidir=$ac_optarg ;; 867 868 -enable-* | --enable-*) 869 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 870 # Reject names that are not valid shell variable names. 871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 872 as_fn_error "invalid feature name: $ac_useropt" 873 ac_useropt_orig=$ac_useropt 874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 875 case $ac_user_opts in 876 *" 877"enable_$ac_useropt" 878"*) ;; 879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 880 ac_unrecognized_sep=', ';; 881 esac 882 eval enable_$ac_useropt=\$ac_optarg ;; 883 884 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 885 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 886 | --exec | --exe | --ex) 887 ac_prev=exec_prefix ;; 888 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 889 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 890 | --exec=* | --exe=* | --ex=*) 891 exec_prefix=$ac_optarg ;; 892 893 -gas | --gas | --ga | --g) 894 # Obsolete; use --with-gas. 895 with_gas=yes ;; 896 897 -help | --help | --hel | --he | -h) 898 ac_init_help=long ;; 899 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 900 ac_init_help=recursive ;; 901 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 902 ac_init_help=short ;; 903 904 -host | --host | --hos | --ho) 905 ac_prev=host_alias ;; 906 -host=* | --host=* | --hos=* | --ho=*) 907 host_alias=$ac_optarg ;; 908 909 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 910 ac_prev=htmldir ;; 911 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 912 | --ht=*) 913 htmldir=$ac_optarg ;; 914 915 -includedir | --includedir | --includedi | --included | --include \ 916 | --includ | --inclu | --incl | --inc) 917 ac_prev=includedir ;; 918 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 919 | --includ=* | --inclu=* | --incl=* | --inc=*) 920 includedir=$ac_optarg ;; 921 922 -infodir | --infodir | --infodi | --infod | --info | --inf) 923 ac_prev=infodir ;; 924 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 925 infodir=$ac_optarg ;; 926 927 -libdir | --libdir | --libdi | --libd) 928 ac_prev=libdir ;; 929 -libdir=* | --libdir=* | --libdi=* | --libd=*) 930 libdir=$ac_optarg ;; 931 932 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 933 | --libexe | --libex | --libe) 934 ac_prev=libexecdir ;; 935 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 936 | --libexe=* | --libex=* | --libe=*) 937 libexecdir=$ac_optarg ;; 938 939 -localedir | --localedir | --localedi | --localed | --locale) 940 ac_prev=localedir ;; 941 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 942 localedir=$ac_optarg ;; 943 944 -localstatedir | --localstatedir | --localstatedi | --localstated \ 945 | --localstate | --localstat | --localsta | --localst | --locals) 946 ac_prev=localstatedir ;; 947 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 948 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 949 localstatedir=$ac_optarg ;; 950 951 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 952 ac_prev=mandir ;; 953 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 954 mandir=$ac_optarg ;; 955 956 -nfp | --nfp | --nf) 957 # Obsolete; use --without-fp. 958 with_fp=no ;; 959 960 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 961 | --no-cr | --no-c | -n) 962 no_create=yes ;; 963 964 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 965 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 966 no_recursion=yes ;; 967 968 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 969 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 970 | --oldin | --oldi | --old | --ol | --o) 971 ac_prev=oldincludedir ;; 972 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 973 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 974 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 975 oldincludedir=$ac_optarg ;; 976 977 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 978 ac_prev=prefix ;; 979 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 980 prefix=$ac_optarg ;; 981 982 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 983 | --program-pre | --program-pr | --program-p) 984 ac_prev=program_prefix ;; 985 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 986 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 987 program_prefix=$ac_optarg ;; 988 989 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 990 | --program-suf | --program-su | --program-s) 991 ac_prev=program_suffix ;; 992 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 993 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 994 program_suffix=$ac_optarg ;; 995 996 -program-transform-name | --program-transform-name \ 997 | --program-transform-nam | --program-transform-na \ 998 | --program-transform-n | --program-transform- \ 999 | --program-transform | --program-transfor \ 1000 | --program-transfo | --program-transf \ 1001 | --program-trans | --program-tran \ 1002 | --progr-tra | --program-tr | --program-t) 1003 ac_prev=program_transform_name ;; 1004 -program-transform-name=* | --program-transform-name=* \ 1005 | --program-transform-nam=* | --program-transform-na=* \ 1006 | --program-transform-n=* | --program-transform-=* \ 1007 | --program-transform=* | --program-transfor=* \ 1008 | --program-transfo=* | --program-transf=* \ 1009 | --program-trans=* | --program-tran=* \ 1010 | --progr-tra=* | --program-tr=* | --program-t=*) 1011 program_transform_name=$ac_optarg ;; 1012 1013 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1014 ac_prev=pdfdir ;; 1015 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1016 pdfdir=$ac_optarg ;; 1017 1018 -psdir | --psdir | --psdi | --psd | --ps) 1019 ac_prev=psdir ;; 1020 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1021 psdir=$ac_optarg ;; 1022 1023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1024 | -silent | --silent | --silen | --sile | --sil) 1025 silent=yes ;; 1026 1027 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1028 ac_prev=sbindir ;; 1029 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1030 | --sbi=* | --sb=*) 1031 sbindir=$ac_optarg ;; 1032 1033 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1034 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1035 | --sharedst | --shareds | --shared | --share | --shar \ 1036 | --sha | --sh) 1037 ac_prev=sharedstatedir ;; 1038 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1039 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1040 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1041 | --sha=* | --sh=*) 1042 sharedstatedir=$ac_optarg ;; 1043 1044 -site | --site | --sit) 1045 ac_prev=site ;; 1046 -site=* | --site=* | --sit=*) 1047 site=$ac_optarg ;; 1048 1049 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1050 ac_prev=srcdir ;; 1051 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1052 srcdir=$ac_optarg ;; 1053 1054 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1055 | --syscon | --sysco | --sysc | --sys | --sy) 1056 ac_prev=sysconfdir ;; 1057 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1058 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1059 sysconfdir=$ac_optarg ;; 1060 1061 -target | --target | --targe | --targ | --tar | --ta | --t) 1062 ac_prev=target_alias ;; 1063 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1064 target_alias=$ac_optarg ;; 1065 1066 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1067 verbose=yes ;; 1068 1069 -version | --version | --versio | --versi | --vers | -V) 1070 ac_init_version=: ;; 1071 1072 -with-* | --with-*) 1073 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1074 # Reject names that are not valid shell variable names. 1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1076 as_fn_error "invalid package name: $ac_useropt" 1077 ac_useropt_orig=$ac_useropt 1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1079 case $ac_user_opts in 1080 *" 1081"with_$ac_useropt" 1082"*) ;; 1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1084 ac_unrecognized_sep=', ';; 1085 esac 1086 eval with_$ac_useropt=\$ac_optarg ;; 1087 1088 -without-* | --without-*) 1089 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1090 # Reject names that are not valid shell variable names. 1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1092 as_fn_error "invalid package name: $ac_useropt" 1093 ac_useropt_orig=$ac_useropt 1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1095 case $ac_user_opts in 1096 *" 1097"with_$ac_useropt" 1098"*) ;; 1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1100 ac_unrecognized_sep=', ';; 1101 esac 1102 eval with_$ac_useropt=no ;; 1103 1104 --x) 1105 # Obsolete; use --with-x. 1106 with_x=yes ;; 1107 1108 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1109 | --x-incl | --x-inc | --x-in | --x-i) 1110 ac_prev=x_includes ;; 1111 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1112 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1113 x_includes=$ac_optarg ;; 1114 1115 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1116 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1117 ac_prev=x_libraries ;; 1118 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1119 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1120 x_libraries=$ac_optarg ;; 1121 1122 -*) as_fn_error "unrecognized option: \`$ac_option' 1123Try \`$0 --help' for more information." 1124 ;; 1125 1126 *=*) 1127 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1128 # Reject names that are not valid shell variable names. 1129 case $ac_envvar in #( 1130 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1131 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1132 esac 1133 eval $ac_envvar=\$ac_optarg 1134 export $ac_envvar ;; 1135 1136 *) 1137 # FIXME: should be removed in autoconf 3.0. 1138 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1139 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1140 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1141 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1142 ;; 1143 1144 esac 1145done 1146 1147if test -n "$ac_prev"; then 1148 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1149 as_fn_error "missing argument to $ac_option" 1150fi 1151 1152if test -n "$ac_unrecognized_opts"; then 1153 case $enable_option_checking in 1154 no) ;; 1155 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1156 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1157 esac 1158fi 1159 1160# Check all directory arguments for consistency. 1161for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1162 datadir sysconfdir sharedstatedir localstatedir includedir \ 1163 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1164 libdir localedir mandir 1165do 1166 eval ac_val=\$$ac_var 1167 # Remove trailing slashes. 1168 case $ac_val in 1169 */ ) 1170 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1171 eval $ac_var=\$ac_val;; 1172 esac 1173 # Be sure to have absolute directory names. 1174 case $ac_val in 1175 [\\/$]* | ?:[\\/]* ) continue;; 1176 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1177 esac 1178 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1179done 1180 1181# There might be people who depend on the old broken behavior: `$host' 1182# used to hold the argument of --host etc. 1183# FIXME: To remove some day. 1184build=$build_alias 1185host=$host_alias 1186target=$target_alias 1187 1188# FIXME: To remove some day. 1189if test "x$host_alias" != x; then 1190 if test "x$build_alias" = x; then 1191 cross_compiling=maybe 1192 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1193 If a cross compiler is detected then cross compile mode will be used." >&2 1194 elif test "x$build_alias" != "x$host_alias"; then 1195 cross_compiling=yes 1196 fi 1197fi 1198 1199ac_tool_prefix= 1200test -n "$host_alias" && ac_tool_prefix=$host_alias- 1201 1202test "$silent" = yes && exec 6>/dev/null 1203 1204 1205ac_pwd=`pwd` && test -n "$ac_pwd" && 1206ac_ls_di=`ls -di .` && 1207ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1208 as_fn_error "working directory cannot be determined" 1209test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1210 as_fn_error "pwd does not report name of working directory" 1211 1212 1213# Find the source files, if location was not specified. 1214if test -z "$srcdir"; then 1215 ac_srcdir_defaulted=yes 1216 # Try the directory containing this script, then the parent directory. 1217 ac_confdir=`$as_dirname -- "$as_myself" || 1218$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1219 X"$as_myself" : 'X\(//\)[^/]' \| \ 1220 X"$as_myself" : 'X\(//\)$' \| \ 1221 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1222$as_echo X"$as_myself" | 1223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1224 s//\1/ 1225 q 1226 } 1227 /^X\(\/\/\)[^/].*/{ 1228 s//\1/ 1229 q 1230 } 1231 /^X\(\/\/\)$/{ 1232 s//\1/ 1233 q 1234 } 1235 /^X\(\/\).*/{ 1236 s//\1/ 1237 q 1238 } 1239 s/.*/./; q'` 1240 srcdir=$ac_confdir 1241 if test ! -r "$srcdir/$ac_unique_file"; then 1242 srcdir=.. 1243 fi 1244else 1245 ac_srcdir_defaulted=no 1246fi 1247if test ! -r "$srcdir/$ac_unique_file"; then 1248 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1249 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1250fi 1251ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1252ac_abs_confdir=`( 1253 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1254 pwd)` 1255# When building in place, set srcdir=. 1256if test "$ac_abs_confdir" = "$ac_pwd"; then 1257 srcdir=. 1258fi 1259# Remove unnecessary trailing slashes from srcdir. 1260# Double slashes in file names in object file debugging info 1261# mess up M-x gdb in Emacs. 1262case $srcdir in 1263*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1264esac 1265for ac_var in $ac_precious_vars; do 1266 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1267 eval ac_env_${ac_var}_value=\$${ac_var} 1268 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1269 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1270done 1271 1272# 1273# Report the --help message. 1274# 1275if test "$ac_init_help" = "long"; then 1276 # Omit some internal or obsolete options to make the list less imposing. 1277 # This message is too long to be a string in the A/UX 3.1 sh. 1278 cat <<_ACEOF 1279\`configure' configures package-unused version-unused to adapt to many kinds of systems. 1280 1281Usage: $0 [OPTION]... [VAR=VALUE]... 1282 1283To assign environment variables (e.g., CC, CFLAGS...), specify them as 1284VAR=VALUE. See below for descriptions of some of the useful variables. 1285 1286Defaults for the options are specified in brackets. 1287 1288Configuration: 1289 -h, --help display this help and exit 1290 --help=short display options specific to this package 1291 --help=recursive display the short help of all the included packages 1292 -V, --version display version information and exit 1293 -q, --quiet, --silent do not print \`checking...' messages 1294 --cache-file=FILE cache test results in FILE [disabled] 1295 -C, --config-cache alias for \`--cache-file=config.cache' 1296 -n, --no-create do not create output files 1297 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1298 1299Installation directories: 1300 --prefix=PREFIX install architecture-independent files in PREFIX 1301 [$ac_default_prefix] 1302 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1303 [PREFIX] 1304 1305By default, \`make install' will install all the files in 1306\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1307an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1308for instance \`--prefix=\$HOME'. 1309 1310For better control, use the options below. 1311 1312Fine tuning of the installation directories: 1313 --bindir=DIR user executables [EPREFIX/bin] 1314 --sbindir=DIR system admin executables [EPREFIX/sbin] 1315 --libexecdir=DIR program executables [EPREFIX/libexec] 1316 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1317 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1318 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1319 --libdir=DIR object code libraries [EPREFIX/lib] 1320 --includedir=DIR C header files [PREFIX/include] 1321 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1322 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1323 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1324 --infodir=DIR info documentation [DATAROOTDIR/info] 1325 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1326 --mandir=DIR man documentation [DATAROOTDIR/man] 1327 --docdir=DIR documentation root [DATAROOTDIR/doc/libobjc] 1328 --htmldir=DIR html documentation [DOCDIR] 1329 --dvidir=DIR dvi documentation [DOCDIR] 1330 --pdfdir=DIR pdf documentation [DOCDIR] 1331 --psdir=DIR ps documentation [DOCDIR] 1332_ACEOF 1333 1334 cat <<\_ACEOF 1335 1336System types: 1337 --build=BUILD configure for building on BUILD [guessed] 1338 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1339 --target=TARGET configure for building compilers for TARGET [HOST] 1340_ACEOF 1341fi 1342 1343if test -n "$ac_init_help"; then 1344 case $ac_init_help in 1345 short | recursive ) echo "Configuration of package-unused version-unused:";; 1346 esac 1347 cat <<\_ACEOF 1348 1349Optional Features: 1350 --disable-option-checking ignore unrecognized --enable/--with options 1351 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1352 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1353 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory 1354 --enable-multilib build many library versions (default) 1355 --enable-cet enable Intel CET in target libraries [default=no] 1356 --enable-maintainer-mode enable make rules and dependencies not useful 1357 (and sometimes confusing) to the casual installer 1358 --enable-shared[=PKGS] build shared libraries [default=yes] 1359 --enable-static[=PKGS] build static libraries [default=yes] 1360 --enable-fast-install[=PKGS] 1361 optimize for fast installation [default=yes] 1362 --disable-libtool-lock avoid locking (might break parallel builds) 1363 --enable-tls Use thread-local storage [default=yes] 1364 --enable-objc-gc enable use of Boehm's garbage collector with the GNU 1365 Objective-C runtime 1366 1367Optional Packages: 1368 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1369 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1370 --with-build-libsubdir=DIR Directory where to find libraries for build system 1371 --with-target-subdir=SUBDIR 1372 configuring in a subdirectory 1373 --with-cross-host=HOST configuring with a cross compiler 1374 --with-pic try to use only PIC/non-PIC objects [default=use 1375 both] 1376 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1377 --with-target-bdw-gc=PATHLIST 1378 specify prefix directory for installed bdw-gc 1379 package. Equivalent to 1380 --with-target-bdw-gc-include=PATH/include plus 1381 --with-target-bdw-gc-lib=PATH/lib 1382 --with-target-bdw-gc-include=PATHLIST 1383 specify directories for installed bdw-gc include 1384 files 1385 --with-target-bdw-gc-lib=PATHLIST 1386 specify directories for installed bdw-gc library 1387 --with-gcc-major-version-only 1388 use only GCC major number in filesystem paths 1389 1390Some influential environment variables: 1391 CC C compiler command 1392 CFLAGS C compiler flags 1393 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1394 nonstandard directory <lib dir> 1395 LIBS libraries to pass to the linker, e.g. -l<library> 1396 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1397 you have headers in a nonstandard directory <include dir> 1398 CPP C preprocessor 1399 1400Use these variables to override the choices made by `configure' or to help 1401it to find libraries and programs with nonstandard names/locations. 1402 1403Report bugs to the package provider. 1404_ACEOF 1405ac_status=$? 1406fi 1407 1408if test "$ac_init_help" = "recursive"; then 1409 # If there are subdirs, report their specific --help. 1410 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1411 test -d "$ac_dir" || 1412 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1413 continue 1414 ac_builddir=. 1415 1416case "$ac_dir" in 1417.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1418*) 1419 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1420 # A ".." for each directory in $ac_dir_suffix. 1421 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1422 case $ac_top_builddir_sub in 1423 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1424 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1425 esac ;; 1426esac 1427ac_abs_top_builddir=$ac_pwd 1428ac_abs_builddir=$ac_pwd$ac_dir_suffix 1429# for backward compatibility: 1430ac_top_builddir=$ac_top_build_prefix 1431 1432case $srcdir in 1433 .) # We are building in place. 1434 ac_srcdir=. 1435 ac_top_srcdir=$ac_top_builddir_sub 1436 ac_abs_top_srcdir=$ac_pwd ;; 1437 [\\/]* | ?:[\\/]* ) # Absolute name. 1438 ac_srcdir=$srcdir$ac_dir_suffix; 1439 ac_top_srcdir=$srcdir 1440 ac_abs_top_srcdir=$srcdir ;; 1441 *) # Relative name. 1442 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1443 ac_top_srcdir=$ac_top_build_prefix$srcdir 1444 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1445esac 1446ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1447 1448 cd "$ac_dir" || { ac_status=$?; continue; } 1449 # Check for guested configure. 1450 if test -f "$ac_srcdir/configure.gnu"; then 1451 echo && 1452 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1453 elif test -f "$ac_srcdir/configure"; then 1454 echo && 1455 $SHELL "$ac_srcdir/configure" --help=recursive 1456 else 1457 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1458 fi || ac_status=$? 1459 cd "$ac_pwd" || { ac_status=$?; break; } 1460 done 1461fi 1462 1463test -n "$ac_init_help" && exit $ac_status 1464if $ac_init_version; then 1465 cat <<\_ACEOF 1466package-unused configure version-unused 1467generated by GNU Autoconf 2.64 1468 1469Copyright (C) 2009 Free Software Foundation, Inc. 1470This configure script is free software; the Free Software Foundation 1471gives unlimited permission to copy, distribute and modify it. 1472_ACEOF 1473 exit 1474fi 1475 1476## ------------------------ ## 1477## Autoconf initialization. ## 1478## ------------------------ ## 1479 1480# ac_fn_c_try_compile LINENO 1481# -------------------------- 1482# Try to compile conftest.$ac_ext, and return whether this succeeded. 1483ac_fn_c_try_compile () 1484{ 1485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1486 rm -f conftest.$ac_objext 1487 if { { ac_try="$ac_compile" 1488case "(($ac_try" in 1489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1490 *) ac_try_echo=$ac_try;; 1491esac 1492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1493$as_echo "$ac_try_echo"; } >&5 1494 (eval "$ac_compile") 2>conftest.err 1495 ac_status=$? 1496 if test -s conftest.err; then 1497 grep -v '^ *+' conftest.err >conftest.er1 1498 cat conftest.er1 >&5 1499 mv -f conftest.er1 conftest.err 1500 fi 1501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1502 test $ac_status = 0; } && { 1503 test -z "$ac_c_werror_flag" || 1504 test ! -s conftest.err 1505 } && test -s conftest.$ac_objext; then : 1506 ac_retval=0 1507else 1508 $as_echo "$as_me: failed program was:" >&5 1509sed 's/^/| /' conftest.$ac_ext >&5 1510 1511 ac_retval=1 1512fi 1513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1514 return $ac_retval 1515 1516} # ac_fn_c_try_compile 1517 1518# ac_fn_c_try_link LINENO 1519# ----------------------- 1520# Try to link conftest.$ac_ext, and return whether this succeeded. 1521ac_fn_c_try_link () 1522{ 1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1524 rm -f conftest.$ac_objext conftest$ac_exeext 1525 if { { ac_try="$ac_link" 1526case "(($ac_try" in 1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1528 *) ac_try_echo=$ac_try;; 1529esac 1530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1531$as_echo "$ac_try_echo"; } >&5 1532 (eval "$ac_link") 2>conftest.err 1533 ac_status=$? 1534 if test -s conftest.err; then 1535 grep -v '^ *+' conftest.err >conftest.er1 1536 cat conftest.er1 >&5 1537 mv -f conftest.er1 conftest.err 1538 fi 1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1540 test $ac_status = 0; } && { 1541 test -z "$ac_c_werror_flag" || 1542 test ! -s conftest.err 1543 } && test -s conftest$ac_exeext && { 1544 test "$cross_compiling" = yes || 1545 $as_test_x conftest$ac_exeext 1546 }; then : 1547 ac_retval=0 1548else 1549 $as_echo "$as_me: failed program was:" >&5 1550sed 's/^/| /' conftest.$ac_ext >&5 1551 1552 ac_retval=1 1553fi 1554 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1555 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1556 # interfere with the next link command; also delete a directory that is 1557 # left behind by Apple's compiler. We do this before executing the actions. 1558 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1560 return $ac_retval 1561 1562} # ac_fn_c_try_link 1563 1564# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1565# ------------------------------------------------------- 1566# Tests whether HEADER exists and can be compiled using the include files in 1567# INCLUDES, setting the cache variable VAR accordingly. 1568ac_fn_c_check_header_compile () 1569{ 1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1572$as_echo_n "checking for $2... " >&6; } 1573if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1574 $as_echo_n "(cached) " >&6 1575else 1576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1577/* end confdefs.h. */ 1578$4 1579#include <$2> 1580_ACEOF 1581if ac_fn_c_try_compile "$LINENO"; then : 1582 eval "$3=yes" 1583else 1584 eval "$3=no" 1585fi 1586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1587fi 1588eval ac_res=\$$3 1589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1590$as_echo "$ac_res" >&6; } 1591 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1592 1593} # ac_fn_c_check_header_compile 1594 1595# ac_fn_c_try_cpp LINENO 1596# ---------------------- 1597# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1598ac_fn_c_try_cpp () 1599{ 1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1601 if { { ac_try="$ac_cpp conftest.$ac_ext" 1602case "(($ac_try" in 1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1604 *) ac_try_echo=$ac_try;; 1605esac 1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1607$as_echo "$ac_try_echo"; } >&5 1608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1609 ac_status=$? 1610 if test -s conftest.err; then 1611 grep -v '^ *+' conftest.err >conftest.er1 1612 cat conftest.er1 >&5 1613 mv -f conftest.er1 conftest.err 1614 fi 1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1616 test $ac_status = 0; } >/dev/null && { 1617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1618 test ! -s conftest.err 1619 }; then : 1620 ac_retval=0 1621else 1622 $as_echo "$as_me: failed program was:" >&5 1623sed 's/^/| /' conftest.$ac_ext >&5 1624 1625 ac_retval=1 1626fi 1627 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1628 return $ac_retval 1629 1630} # ac_fn_c_try_cpp 1631 1632# ac_fn_c_try_run LINENO 1633# ---------------------- 1634# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1635# that executables *can* be run. 1636ac_fn_c_try_run () 1637{ 1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639 if { { ac_try="$ac_link" 1640case "(($ac_try" in 1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1642 *) ac_try_echo=$ac_try;; 1643esac 1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1645$as_echo "$ac_try_echo"; } >&5 1646 (eval "$ac_link") 2>&5 1647 ac_status=$? 1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1649 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1650 { { case "(($ac_try" in 1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1652 *) ac_try_echo=$ac_try;; 1653esac 1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1655$as_echo "$ac_try_echo"; } >&5 1656 (eval "$ac_try") 2>&5 1657 ac_status=$? 1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1659 test $ac_status = 0; }; }; then : 1660 ac_retval=0 1661else 1662 $as_echo "$as_me: program exited with status $ac_status" >&5 1663 $as_echo "$as_me: failed program was:" >&5 1664sed 's/^/| /' conftest.$ac_ext >&5 1665 1666 ac_retval=$ac_status 1667fi 1668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1669 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1670 return $ac_retval 1671 1672} # ac_fn_c_try_run 1673 1674# ac_fn_c_check_func LINENO FUNC VAR 1675# ---------------------------------- 1676# Tests whether FUNC exists, setting the cache variable VAR accordingly 1677ac_fn_c_check_func () 1678{ 1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1681$as_echo_n "checking for $2... " >&6; } 1682if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1683 $as_echo_n "(cached) " >&6 1684else 1685 if test x$gcc_no_link = xyes; then 1686 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 1687fi 1688cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1689/* end confdefs.h. */ 1690/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1691 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1692#define $2 innocuous_$2 1693 1694/* System header to define __stub macros and hopefully few prototypes, 1695 which can conflict with char $2 (); below. 1696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1697 <limits.h> exists even on freestanding compilers. */ 1698 1699#ifdef __STDC__ 1700# include <limits.h> 1701#else 1702# include <assert.h> 1703#endif 1704 1705#undef $2 1706 1707/* Override any GCC internal prototype to avoid an error. 1708 Use char because int might match the return type of a GCC 1709 builtin and then its argument prototype would still apply. */ 1710#ifdef __cplusplus 1711extern "C" 1712#endif 1713char $2 (); 1714/* The GNU C library defines this for functions which it implements 1715 to always fail with ENOSYS. Some functions are actually named 1716 something starting with __ and the normal name is an alias. */ 1717#if defined __stub_$2 || defined __stub___$2 1718choke me 1719#endif 1720 1721int 1722main () 1723{ 1724return $2 (); 1725 ; 1726 return 0; 1727} 1728_ACEOF 1729if ac_fn_c_try_link "$LINENO"; then : 1730 eval "$3=yes" 1731else 1732 eval "$3=no" 1733fi 1734rm -f core conftest.err conftest.$ac_objext \ 1735 conftest$ac_exeext conftest.$ac_ext 1736fi 1737eval ac_res=\$$3 1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1739$as_echo "$ac_res" >&6; } 1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1741 1742} # ac_fn_c_check_func 1743 1744# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1745# ------------------------------------------------------- 1746# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1747# the include files in INCLUDES and setting the cache variable VAR 1748# accordingly. 1749ac_fn_c_check_header_mongrel () 1750{ 1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1752 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1754$as_echo_n "checking for $2... " >&6; } 1755if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1756 $as_echo_n "(cached) " >&6 1757fi 1758eval ac_res=\$$3 1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1760$as_echo "$ac_res" >&6; } 1761else 1762 # Is the header compilable? 1763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1764$as_echo_n "checking $2 usability... " >&6; } 1765cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1766/* end confdefs.h. */ 1767$4 1768#include <$2> 1769_ACEOF 1770if ac_fn_c_try_compile "$LINENO"; then : 1771 ac_header_compiler=yes 1772else 1773 ac_header_compiler=no 1774fi 1775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1777$as_echo "$ac_header_compiler" >&6; } 1778 1779# Is the header present? 1780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1781$as_echo_n "checking $2 presence... " >&6; } 1782cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1783/* end confdefs.h. */ 1784#include <$2> 1785_ACEOF 1786if ac_fn_c_try_cpp "$LINENO"; then : 1787 ac_header_preproc=yes 1788else 1789 ac_header_preproc=no 1790fi 1791rm -f conftest.err conftest.$ac_ext 1792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1793$as_echo "$ac_header_preproc" >&6; } 1794 1795# So? What about this header? 1796case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1797 yes:no: ) 1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1799$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1801$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1802 ;; 1803 no:yes:* ) 1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1805$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1807$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1809$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1811$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1813$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1814 ;; 1815esac 1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1817$as_echo_n "checking for $2... " >&6; } 1818if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1819 $as_echo_n "(cached) " >&6 1820else 1821 eval "$3=\$ac_header_compiler" 1822fi 1823eval ac_res=\$$3 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1825$as_echo "$ac_res" >&6; } 1826fi 1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1828 1829} # ac_fn_c_check_header_mongrel 1830cat >config.log <<_ACEOF 1831This file contains any messages produced by compilers while 1832running configure, to aid debugging if configure makes a mistake. 1833 1834It was created by package-unused $as_me version-unused, which was 1835generated by GNU Autoconf 2.64. Invocation command line was 1836 1837 $ $0 $@ 1838 1839_ACEOF 1840exec 5>>config.log 1841{ 1842cat <<_ASUNAME 1843## --------- ## 1844## Platform. ## 1845## --------- ## 1846 1847hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1848uname -m = `(uname -m) 2>/dev/null || echo unknown` 1849uname -r = `(uname -r) 2>/dev/null || echo unknown` 1850uname -s = `(uname -s) 2>/dev/null || echo unknown` 1851uname -v = `(uname -v) 2>/dev/null || echo unknown` 1852 1853/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1854/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1855 1856/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1857/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1858/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1859/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1860/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1861/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1862/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1863 1864_ASUNAME 1865 1866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1867for as_dir in $PATH 1868do 1869 IFS=$as_save_IFS 1870 test -z "$as_dir" && as_dir=. 1871 $as_echo "PATH: $as_dir" 1872 done 1873IFS=$as_save_IFS 1874 1875} >&5 1876 1877cat >&5 <<_ACEOF 1878 1879 1880## ----------- ## 1881## Core tests. ## 1882## ----------- ## 1883 1884_ACEOF 1885 1886 1887# Keep a trace of the command line. 1888# Strip out --no-create and --no-recursion so they do not pile up. 1889# Strip out --silent because we don't want to record it for future runs. 1890# Also quote any args containing shell meta-characters. 1891# Make two passes to allow for proper duplicate-argument suppression. 1892ac_configure_args= 1893ac_configure_args0= 1894ac_configure_args1= 1895ac_must_keep_next=false 1896for ac_pass in 1 2 1897do 1898 for ac_arg 1899 do 1900 case $ac_arg in 1901 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1903 | -silent | --silent | --silen | --sile | --sil) 1904 continue ;; 1905 *\'*) 1906 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1907 esac 1908 case $ac_pass in 1909 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1910 2) 1911 as_fn_append ac_configure_args1 " '$ac_arg'" 1912 if test $ac_must_keep_next = true; then 1913 ac_must_keep_next=false # Got value, back to normal. 1914 else 1915 case $ac_arg in 1916 *=* | --config-cache | -C | -disable-* | --disable-* \ 1917 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1918 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1919 | -with-* | --with-* | -without-* | --without-* | --x) 1920 case "$ac_configure_args0 " in 1921 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1922 esac 1923 ;; 1924 -* ) ac_must_keep_next=true ;; 1925 esac 1926 fi 1927 as_fn_append ac_configure_args " '$ac_arg'" 1928 ;; 1929 esac 1930 done 1931done 1932{ ac_configure_args0=; unset ac_configure_args0;} 1933{ ac_configure_args1=; unset ac_configure_args1;} 1934 1935# When interrupted or exit'd, cleanup temporary files, and complete 1936# config.log. We remove comments because anyway the quotes in there 1937# would cause problems or look ugly. 1938# WARNING: Use '\'' to represent an apostrophe within the trap. 1939# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1940trap 'exit_status=$? 1941 # Save into config.log some information that might help in debugging. 1942 { 1943 echo 1944 1945 cat <<\_ASBOX 1946## ---------------- ## 1947## Cache variables. ## 1948## ---------------- ## 1949_ASBOX 1950 echo 1951 # The following way of writing the cache mishandles newlines in values, 1952( 1953 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1954 eval ac_val=\$$ac_var 1955 case $ac_val in #( 1956 *${as_nl}*) 1957 case $ac_var in #( 1958 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1959$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1960 esac 1961 case $ac_var in #( 1962 _ | IFS | as_nl) ;; #( 1963 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1964 *) { eval $ac_var=; unset $ac_var;} ;; 1965 esac ;; 1966 esac 1967 done 1968 (set) 2>&1 | 1969 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1970 *${as_nl}ac_space=\ *) 1971 sed -n \ 1972 "s/'\''/'\''\\\\'\'''\''/g; 1973 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1974 ;; #( 1975 *) 1976 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1977 ;; 1978 esac | 1979 sort 1980) 1981 echo 1982 1983 cat <<\_ASBOX 1984## ----------------- ## 1985## Output variables. ## 1986## ----------------- ## 1987_ASBOX 1988 echo 1989 for ac_var in $ac_subst_vars 1990 do 1991 eval ac_val=\$$ac_var 1992 case $ac_val in 1993 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1994 esac 1995 $as_echo "$ac_var='\''$ac_val'\''" 1996 done | sort 1997 echo 1998 1999 if test -n "$ac_subst_files"; then 2000 cat <<\_ASBOX 2001## ------------------- ## 2002## File substitutions. ## 2003## ------------------- ## 2004_ASBOX 2005 echo 2006 for ac_var in $ac_subst_files 2007 do 2008 eval ac_val=\$$ac_var 2009 case $ac_val in 2010 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2011 esac 2012 $as_echo "$ac_var='\''$ac_val'\''" 2013 done | sort 2014 echo 2015 fi 2016 2017 if test -s confdefs.h; then 2018 cat <<\_ASBOX 2019## ----------- ## 2020## confdefs.h. ## 2021## ----------- ## 2022_ASBOX 2023 echo 2024 cat confdefs.h 2025 echo 2026 fi 2027 test "$ac_signal" != 0 && 2028 $as_echo "$as_me: caught signal $ac_signal" 2029 $as_echo "$as_me: exit $exit_status" 2030 } >&5 2031 rm -f core *.core core.conftest.* && 2032 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2033 exit $exit_status 2034' 0 2035for ac_signal in 1 2 13 15; do 2036 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2037done 2038ac_signal=0 2039 2040# confdefs.h avoids OS command line length limits that DEFS can exceed. 2041rm -f -r conftest* confdefs.h 2042 2043$as_echo "/* confdefs.h */" > confdefs.h 2044 2045# Predefined preprocessor variables. 2046 2047cat >>confdefs.h <<_ACEOF 2048#define PACKAGE_NAME "$PACKAGE_NAME" 2049_ACEOF 2050 2051cat >>confdefs.h <<_ACEOF 2052#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2053_ACEOF 2054 2055cat >>confdefs.h <<_ACEOF 2056#define PACKAGE_VERSION "$PACKAGE_VERSION" 2057_ACEOF 2058 2059cat >>confdefs.h <<_ACEOF 2060#define PACKAGE_STRING "$PACKAGE_STRING" 2061_ACEOF 2062 2063cat >>confdefs.h <<_ACEOF 2064#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2065_ACEOF 2066 2067cat >>confdefs.h <<_ACEOF 2068#define PACKAGE_URL "$PACKAGE_URL" 2069_ACEOF 2070 2071 2072# Let the site file select an alternate cache file if it wants to. 2073# Prefer an explicitly selected file to automatically selected ones. 2074ac_site_file1=NONE 2075ac_site_file2=NONE 2076if test -n "$CONFIG_SITE"; then 2077 ac_site_file1=$CONFIG_SITE 2078elif test "x$prefix" != xNONE; then 2079 ac_site_file1=$prefix/share/config.site 2080 ac_site_file2=$prefix/etc/config.site 2081else 2082 ac_site_file1=$ac_default_prefix/share/config.site 2083 ac_site_file2=$ac_default_prefix/etc/config.site 2084fi 2085for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2086do 2087 test "x$ac_site_file" = xNONE && continue 2088 if test -r "$ac_site_file"; then 2089 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2090$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2091 sed 's/^/| /' "$ac_site_file" >&5 2092 . "$ac_site_file" 2093 fi 2094done 2095 2096if test -r "$cache_file"; then 2097 # Some versions of bash will fail to source /dev/null (special 2098 # files actually), so we avoid doing that. 2099 if test -f "$cache_file"; then 2100 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2101$as_echo "$as_me: loading cache $cache_file" >&6;} 2102 case $cache_file in 2103 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2104 *) . "./$cache_file";; 2105 esac 2106 fi 2107else 2108 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2109$as_echo "$as_me: creating cache $cache_file" >&6;} 2110 >$cache_file 2111fi 2112 2113# Check that the precious variables saved in the cache have kept the same 2114# value. 2115ac_cache_corrupted=false 2116for ac_var in $ac_precious_vars; do 2117 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2118 eval ac_new_set=\$ac_env_${ac_var}_set 2119 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2120 eval ac_new_val=\$ac_env_${ac_var}_value 2121 case $ac_old_set,$ac_new_set in 2122 set,) 2123 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2124$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2125 ac_cache_corrupted=: ;; 2126 ,set) 2127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2128$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2129 ac_cache_corrupted=: ;; 2130 ,);; 2131 *) 2132 if test "x$ac_old_val" != "x$ac_new_val"; then 2133 # differences in whitespace do not lead to failure. 2134 ac_old_val_w=`echo x $ac_old_val` 2135 ac_new_val_w=`echo x $ac_new_val` 2136 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2138$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2139 ac_cache_corrupted=: 2140 else 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2142$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2143 eval $ac_var=\$ac_old_val 2144 fi 2145 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2146$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2147 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2148$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2149 fi;; 2150 esac 2151 # Pass precious variables to config.status. 2152 if test "$ac_new_set" = set; then 2153 case $ac_new_val in 2154 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2155 *) ac_arg=$ac_var=$ac_new_val ;; 2156 esac 2157 case " $ac_configure_args " in 2158 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2159 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2160 esac 2161 fi 2162done 2163if $ac_cache_corrupted; then 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2167$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2168 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2169fi 2170## -------------------- ## 2171## Main body of script. ## 2172## -------------------- ## 2173 2174ac_ext=c 2175ac_cpp='$CPP $CPPFLAGS' 2176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2178ac_compiler_gnu=$ac_cv_c_compiler_gnu 2179 2180 2181 2182 2183 2184 2185ac_aux_dir= 2186for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2187 for ac_t in install-sh install.sh shtool; do 2188 if test -f "$ac_dir/$ac_t"; then 2189 ac_aux_dir=$ac_dir 2190 ac_install_sh="$ac_aux_dir/$ac_t -c" 2191 break 2 2192 fi 2193 done 2194done 2195if test -z "$ac_aux_dir"; then 2196 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2197fi 2198 2199# These three variables are undocumented and unsupported, 2200# and are intended to be withdrawn in a future Autoconf release. 2201# They can cause serious problems if a builder's source tree is in a directory 2202# whose full name contains unusual characters. 2203ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2204ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2205ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2206 2207 2208# Make sure we can run config.sub. 2209$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2210 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2211 2212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2213$as_echo_n "checking build system type... " >&6; } 2214if test "${ac_cv_build+set}" = set; then : 2215 $as_echo_n "(cached) " >&6 2216else 2217 ac_build_alias=$build_alias 2218test "x$ac_build_alias" = x && 2219 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2220test "x$ac_build_alias" = x && 2221 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2222ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2223 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2224 2225fi 2226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2227$as_echo "$ac_cv_build" >&6; } 2228case $ac_cv_build in 2229*-*-*) ;; 2230*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2231esac 2232build=$ac_cv_build 2233ac_save_IFS=$IFS; IFS='-' 2234set x $ac_cv_build 2235shift 2236build_cpu=$1 2237build_vendor=$2 2238shift; shift 2239# Remember, the first character of IFS is used to create $*, 2240# except with old shells: 2241build_os=$* 2242IFS=$ac_save_IFS 2243case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2244 2245 2246 case ${build_alias} in 2247 "") build_noncanonical=${build} ;; 2248 *) build_noncanonical=${build_alias} ;; 2249esac 2250 2251 case ${host_alias} in 2252 "") host_noncanonical=${build_noncanonical} ;; 2253 *) host_noncanonical=${host_alias} ;; 2254esac 2255 2256 case ${target_alias} in 2257 "") target_noncanonical=${host_noncanonical} ;; 2258 *) target_noncanonical=${target_alias} ;; 2259esac 2260 2261 2262# post-stage1 host modules use a different CC_FOR_BUILD so, in order to 2263# have matching libraries, they should use host libraries: Makefile.tpl 2264# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). 2265# However, they still use the build modules, because the corresponding 2266# host modules (e.g. bison) are only built for the host when bootstrap 2267# finishes. So: 2268# - build_subdir is where we find build modules, and never changes. 2269# - build_libsubdir is where we find build libraries, and can be overridden. 2270 2271# Prefix 'build-' so this never conflicts with target_subdir. 2272build_subdir="build-${build_noncanonical}" 2273 2274# Check whether --with-build-libsubdir was given. 2275if test "${with_build_libsubdir+set}" = set; then : 2276 withval=$with_build_libsubdir; build_libsubdir="$withval" 2277else 2278 build_libsubdir="$build_subdir" 2279fi 2280 2281# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories 2282if ( test $srcdir = . && test -d gcc ) \ 2283 || test -d $srcdir/../host-${host_noncanonical}; then 2284 host_subdir="host-${host_noncanonical}" 2285else 2286 host_subdir=. 2287fi 2288# No prefix. 2289target_subdir=${target_noncanonical} 2290 2291 2292# We need the following definitions because AC_PROG_LIBTOOL relies on them 2293PACKAGE=libobjc 2294# Version is pulled out to make it a bit easier to change using sed. 2295VERSION=4:0:0 2296 2297 2298# This works around the fact that libtool configuration may change LD 2299# for this particular configuration, but some shells, instead of 2300# keeping the changes in LD private, export them just because LD is 2301# exported. 2302ORIGINAL_LD_FOR_MULTILIBS=$LD 2303 2304# ------- 2305# Options 2306# ------- 2307 2308# We use these options to decide which functions to include. 2309 2310# Check whether --with-target-subdir was given. 2311if test "${with_target_subdir+set}" = set; then : 2312 withval=$with_target_subdir; 2313fi 2314 2315 2316# Check whether --with-cross-host was given. 2317if test "${with_cross_host+set}" = set; then : 2318 withval=$with_cross_host; 2319fi 2320 2321 2322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 2323$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } 2324# Check whether --enable-version-specific-runtime-libs was given. 2325if test "${enable_version_specific_runtime_libs+set}" = set; then : 2326 enableval=$enable_version_specific_runtime_libs; case "$enableval" in 2327 yes) version_specific_libs=yes ;; 2328 no) version_specific_libs=no ;; 2329 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; 2330 esac 2331else 2332 version_specific_libs=no 2333fi 2334 2335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 2336$as_echo "$version_specific_libs" >&6; } 2337 2338# ----------- 2339# Directories 2340# ----------- 2341 2342# Find the rest of the source tree framework. 2343# Default to --enable-multilib 2344# Check whether --enable-multilib was given. 2345if test "${enable_multilib+set}" = set; then : 2346 enableval=$enable_multilib; case "$enableval" in 2347 yes) multilib=yes ;; 2348 no) multilib=no ;; 2349 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; 2350 esac 2351else 2352 multilib=yes 2353fi 2354 2355 2356# We may get other options which we leave undocumented: 2357# --with-target-subdir, --with-multisrctop, --with-multisubdir 2358# See config-ml.in if you want the gory details. 2359 2360if test "$srcdir" = "."; then 2361 if test "$with_target_subdir" != "."; then 2362 multi_basedir="$srcdir/$with_multisrctop../.." 2363 else 2364 multi_basedir="$srcdir/$with_multisrctop.." 2365 fi 2366else 2367 multi_basedir="$srcdir/.." 2368fi 2369 2370 2371# Even if the default multilib is not a cross compilation, 2372# it may be that some of the other multilibs are. 2373if test $cross_compiling = no && test $multilib = yes \ 2374 && test "x${with_multisubdir}" != x ; then 2375 cross_compiling=maybe 2376fi 2377 2378ac_config_commands="$ac_config_commands default-1" 2379 2380 2381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2382$as_echo_n "checking host system type... " >&6; } 2383if test "${ac_cv_host+set}" = set; then : 2384 $as_echo_n "(cached) " >&6 2385else 2386 if test "x$host_alias" = x; then 2387 ac_cv_host=$ac_cv_build 2388else 2389 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2390 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2391fi 2392 2393fi 2394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2395$as_echo "$ac_cv_host" >&6; } 2396case $ac_cv_host in 2397*-*-*) ;; 2398*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2399esac 2400host=$ac_cv_host 2401ac_save_IFS=$IFS; IFS='-' 2402set x $ac_cv_host 2403shift 2404host_cpu=$1 2405host_vendor=$2 2406shift; shift 2407# Remember, the first character of IFS is used to create $*, 2408# except with old shells: 2409host_os=$* 2410IFS=$ac_save_IFS 2411case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2412 2413 2414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2415$as_echo_n "checking target system type... " >&6; } 2416if test "${ac_cv_target+set}" = set; then : 2417 $as_echo_n "(cached) " >&6 2418else 2419 if test "x$target_alias" = x; then 2420 ac_cv_target=$ac_cv_host 2421else 2422 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2423 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2424fi 2425 2426fi 2427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2428$as_echo "$ac_cv_target" >&6; } 2429case $ac_cv_target in 2430*-*-*) ;; 2431*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2432esac 2433target=$ac_cv_target 2434ac_save_IFS=$IFS; IFS='-' 2435set x $ac_cv_target 2436shift 2437target_cpu=$1 2438target_vendor=$2 2439shift; shift 2440# Remember, the first character of IFS is used to create $*, 2441# except with old shells: 2442target_os=$* 2443IFS=$ac_save_IFS 2444case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2445 2446 2447# The aliases save the names the user supplied, while $host etc. 2448# will get canonicalized. 2449test -n "$target_alias" && 2450 test "$program_prefix$program_suffix$program_transform_name" = \ 2451 NONENONEs,x,x, && 2452 program_prefix=${target_alias}- 2453 2454 2455 2456 2457# Export source directory. 2458# These need to be absolute paths, yet at the same time need to 2459# canonicalize only relative paths, because then amd will not unmount 2460# drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd. 2461case $srcdir in 2462 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;; 2463 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;; 2464esac 2465 2466 2467# Calculate toolexeclibdir 2468# Also toolexecdir, though it's only used in toolexeclibdir 2469case ${version_specific_libs} in 2470 yes) 2471 # Need the gcc compiler version to know where to install libraries 2472 # and header files if --enable-version-specific-runtime-libs option 2473 # is selected. 2474 toolexecdir='$(libdir)/gcc/$(target_noncanonical)' 2475 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' 2476 ;; 2477 no) 2478 if test -n "$with_cross_host" && 2479 test x"$with_cross_host" != x"no"; then 2480 # Install a library built with a cross compiler in tooldir, not libdir. 2481 toolexecdir='$(exec_prefix)/$(target_noncanonical)' 2482 toolexeclibdir='$(toolexecdir)/lib' 2483 else 2484 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)' 2485 toolexeclibdir='$(libdir)' 2486 fi 2487 multi_os_directory=`$CC -print-multi-os-directory` 2488 case $multi_os_directory in 2489 .) ;; # Avoid trailing /. 2490 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; 2491 esac 2492 ;; 2493esac 2494 2495 2496 2497# Figure out if we want to name the include directory and the 2498# library name changes differently. 2499includedirname=include 2500libsuffix= 2501case "${host}" in 2502 *-darwin*) 2503 # Darwin is the only target so far that needs a different include directory. 2504 includedirname=include-gnu-runtime 2505 libsuffix=-gnu 2506 ;; 2507esac 2508 2509 2510 2511ac_config_headers="$ac_config_headers config.h" 2512 2513 2514# -------- 2515# Programs 2516# -------- 2517 2518 2519 2520# We must force CC to /not/ be a precious variable; otherwise 2521# the wrong, non-multilib-adjusted value will be used in multilibs. 2522# As a side effect, we have to subst CFLAGS ourselves. 2523 2524 2525ac_ext=c 2526ac_cpp='$CPP $CPPFLAGS' 2527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2529ac_compiler_gnu=$ac_cv_c_compiler_gnu 2530if test -n "$ac_tool_prefix"; then 2531 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2532set dummy ${ac_tool_prefix}gcc; ac_word=$2 2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2534$as_echo_n "checking for $ac_word... " >&6; } 2535if test "${ac_cv_prog_CC+set}" = set; then : 2536 $as_echo_n "(cached) " >&6 2537else 2538 if test -n "$CC"; then 2539 ac_cv_prog_CC="$CC" # Let the user override the test. 2540else 2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2542for as_dir in $PATH 2543do 2544 IFS=$as_save_IFS 2545 test -z "$as_dir" && as_dir=. 2546 for ac_exec_ext in '' $ac_executable_extensions; do 2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2548 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2550 break 2 2551 fi 2552done 2553 done 2554IFS=$as_save_IFS 2555 2556fi 2557fi 2558CC=$ac_cv_prog_CC 2559if test -n "$CC"; then 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2561$as_echo "$CC" >&6; } 2562else 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2564$as_echo "no" >&6; } 2565fi 2566 2567 2568fi 2569if test -z "$ac_cv_prog_CC"; then 2570 ac_ct_CC=$CC 2571 # Extract the first word of "gcc", so it can be a program name with args. 2572set dummy gcc; ac_word=$2 2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2574$as_echo_n "checking for $ac_word... " >&6; } 2575if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2576 $as_echo_n "(cached) " >&6 2577else 2578 if test -n "$ac_ct_CC"; then 2579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2580else 2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2582for as_dir in $PATH 2583do 2584 IFS=$as_save_IFS 2585 test -z "$as_dir" && as_dir=. 2586 for ac_exec_ext in '' $ac_executable_extensions; do 2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2588 ac_cv_prog_ac_ct_CC="gcc" 2589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2590 break 2 2591 fi 2592done 2593 done 2594IFS=$as_save_IFS 2595 2596fi 2597fi 2598ac_ct_CC=$ac_cv_prog_ac_ct_CC 2599if test -n "$ac_ct_CC"; then 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2601$as_echo "$ac_ct_CC" >&6; } 2602else 2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2604$as_echo "no" >&6; } 2605fi 2606 2607 if test "x$ac_ct_CC" = x; then 2608 CC="" 2609 else 2610 case $cross_compiling:$ac_tool_warned in 2611yes:) 2612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2614ac_tool_warned=yes ;; 2615esac 2616 CC=$ac_ct_CC 2617 fi 2618else 2619 CC="$ac_cv_prog_CC" 2620fi 2621 2622if test -z "$CC"; then 2623 if test -n "$ac_tool_prefix"; then 2624 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2625set dummy ${ac_tool_prefix}cc; ac_word=$2 2626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2627$as_echo_n "checking for $ac_word... " >&6; } 2628if test "${ac_cv_prog_CC+set}" = set; then : 2629 $as_echo_n "(cached) " >&6 2630else 2631 if test -n "$CC"; then 2632 ac_cv_prog_CC="$CC" # Let the user override the test. 2633else 2634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2635for as_dir in $PATH 2636do 2637 IFS=$as_save_IFS 2638 test -z "$as_dir" && as_dir=. 2639 for ac_exec_ext in '' $ac_executable_extensions; do 2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2641 ac_cv_prog_CC="${ac_tool_prefix}cc" 2642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2643 break 2 2644 fi 2645done 2646 done 2647IFS=$as_save_IFS 2648 2649fi 2650fi 2651CC=$ac_cv_prog_CC 2652if test -n "$CC"; then 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2654$as_echo "$CC" >&6; } 2655else 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2657$as_echo "no" >&6; } 2658fi 2659 2660 2661 fi 2662fi 2663if test -z "$CC"; then 2664 # Extract the first word of "cc", so it can be a program name with args. 2665set dummy cc; ac_word=$2 2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2667$as_echo_n "checking for $ac_word... " >&6; } 2668if test "${ac_cv_prog_CC+set}" = set; then : 2669 $as_echo_n "(cached) " >&6 2670else 2671 if test -n "$CC"; then 2672 ac_cv_prog_CC="$CC" # Let the user override the test. 2673else 2674 ac_prog_rejected=no 2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2676for as_dir in $PATH 2677do 2678 IFS=$as_save_IFS 2679 test -z "$as_dir" && as_dir=. 2680 for ac_exec_ext in '' $ac_executable_extensions; do 2681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2682 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2683 ac_prog_rejected=yes 2684 continue 2685 fi 2686 ac_cv_prog_CC="cc" 2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2688 break 2 2689 fi 2690done 2691 done 2692IFS=$as_save_IFS 2693 2694if test $ac_prog_rejected = yes; then 2695 # We found a bogon in the path, so make sure we never use it. 2696 set dummy $ac_cv_prog_CC 2697 shift 2698 if test $# != 0; then 2699 # We chose a different compiler from the bogus one. 2700 # However, it has the same basename, so the bogon will be chosen 2701 # first if we set CC to just the basename; use the full file name. 2702 shift 2703 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2704 fi 2705fi 2706fi 2707fi 2708CC=$ac_cv_prog_CC 2709if test -n "$CC"; then 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2711$as_echo "$CC" >&6; } 2712else 2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2714$as_echo "no" >&6; } 2715fi 2716 2717 2718fi 2719if test -z "$CC"; then 2720 if test -n "$ac_tool_prefix"; then 2721 for ac_prog in cl.exe 2722 do 2723 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2724set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2726$as_echo_n "checking for $ac_word... " >&6; } 2727if test "${ac_cv_prog_CC+set}" = set; then : 2728 $as_echo_n "(cached) " >&6 2729else 2730 if test -n "$CC"; then 2731 ac_cv_prog_CC="$CC" # Let the user override the test. 2732else 2733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2734for as_dir in $PATH 2735do 2736 IFS=$as_save_IFS 2737 test -z "$as_dir" && as_dir=. 2738 for ac_exec_ext in '' $ac_executable_extensions; do 2739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2740 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2742 break 2 2743 fi 2744done 2745 done 2746IFS=$as_save_IFS 2747 2748fi 2749fi 2750CC=$ac_cv_prog_CC 2751if test -n "$CC"; then 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2753$as_echo "$CC" >&6; } 2754else 2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2756$as_echo "no" >&6; } 2757fi 2758 2759 2760 test -n "$CC" && break 2761 done 2762fi 2763if test -z "$CC"; then 2764 ac_ct_CC=$CC 2765 for ac_prog in cl.exe 2766do 2767 # Extract the first word of "$ac_prog", so it can be a program name with args. 2768set dummy $ac_prog; ac_word=$2 2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2770$as_echo_n "checking for $ac_word... " >&6; } 2771if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2772 $as_echo_n "(cached) " >&6 2773else 2774 if test -n "$ac_ct_CC"; then 2775 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2776else 2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2778for as_dir in $PATH 2779do 2780 IFS=$as_save_IFS 2781 test -z "$as_dir" && as_dir=. 2782 for ac_exec_ext in '' $ac_executable_extensions; do 2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2784 ac_cv_prog_ac_ct_CC="$ac_prog" 2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2786 break 2 2787 fi 2788done 2789 done 2790IFS=$as_save_IFS 2791 2792fi 2793fi 2794ac_ct_CC=$ac_cv_prog_ac_ct_CC 2795if test -n "$ac_ct_CC"; then 2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2797$as_echo "$ac_ct_CC" >&6; } 2798else 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2800$as_echo "no" >&6; } 2801fi 2802 2803 2804 test -n "$ac_ct_CC" && break 2805done 2806 2807 if test "x$ac_ct_CC" = x; then 2808 CC="" 2809 else 2810 case $cross_compiling:$ac_tool_warned in 2811yes:) 2812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2814ac_tool_warned=yes ;; 2815esac 2816 CC=$ac_ct_CC 2817 fi 2818fi 2819 2820fi 2821 2822 2823test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2825as_fn_error "no acceptable C compiler found in \$PATH 2826See \`config.log' for more details." "$LINENO" 5; } 2827 2828# Provide some information about the compiler. 2829$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2830set X $ac_compile 2831ac_compiler=$2 2832for ac_option in --version -v -V -qversion; do 2833 { { ac_try="$ac_compiler $ac_option >&5" 2834case "(($ac_try" in 2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2836 *) ac_try_echo=$ac_try;; 2837esac 2838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2839$as_echo "$ac_try_echo"; } >&5 2840 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2841 ac_status=$? 2842 if test -s conftest.err; then 2843 sed '10a\ 2844... rest of stderr output deleted ... 2845 10q' conftest.err >conftest.er1 2846 cat conftest.er1 >&5 2847 rm -f conftest.er1 conftest.err 2848 fi 2849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2850 test $ac_status = 0; } 2851done 2852 2853cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2854/* end confdefs.h. */ 2855 2856int 2857main () 2858{ 2859 2860 ; 2861 return 0; 2862} 2863_ACEOF 2864# FIXME: Cleanup? 2865if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 2866 (eval $ac_link) 2>&5 2867 ac_status=$? 2868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2869 test $ac_status = 0; }; then : 2870 gcc_no_link=no 2871else 2872 gcc_no_link=yes 2873fi 2874if test x$gcc_no_link = xyes; then 2875 # Setting cross_compile will disable run tests; it will 2876 # also disable AC_CHECK_FILE but that's generally 2877 # correct if we can't link. 2878 cross_compiling=yes 2879 EXEEXT= 2880else 2881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2882/* end confdefs.h. */ 2883 2884int 2885main () 2886{ 2887 2888 ; 2889 return 0; 2890} 2891_ACEOF 2892ac_clean_files_save=$ac_clean_files 2893ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 2894# Try to create an executable without -o first, disregard a.out. 2895# It will help us diagnose broken compilers, and finding out an intuition 2896# of exeext. 2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2898$as_echo_n "checking for C compiler default output file name... " >&6; } 2899ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2900 2901# The possible output files: 2902ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2903 2904ac_rmfiles= 2905for ac_file in $ac_files 2906do 2907 case $ac_file in 2908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2909 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2910 esac 2911done 2912rm -f $ac_rmfiles 2913 2914if { { ac_try="$ac_link_default" 2915case "(($ac_try" in 2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2917 *) ac_try_echo=$ac_try;; 2918esac 2919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2920$as_echo "$ac_try_echo"; } >&5 2921 (eval "$ac_link_default") 2>&5 2922 ac_status=$? 2923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2924 test $ac_status = 0; }; then : 2925 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2926# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2927# in a Makefile. We should not override ac_cv_exeext if it was cached, 2928# so that the user can short-circuit this test for compilers unknown to 2929# Autoconf. 2930for ac_file in $ac_files '' 2931do 2932 test -f "$ac_file" || continue 2933 case $ac_file in 2934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2935 ;; 2936 [ab].out ) 2937 # We found the default executable, but exeext='' is most 2938 # certainly right. 2939 break;; 2940 *.* ) 2941 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2942 then :; else 2943 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2944 fi 2945 # We set ac_cv_exeext here because the later test for it is not 2946 # safe: cross compilers may not add the suffix if given an `-o' 2947 # argument, so we may need to know it at that point already. 2948 # Even if this section looks crufty: it has the advantage of 2949 # actually working. 2950 break;; 2951 * ) 2952 break;; 2953 esac 2954done 2955test "$ac_cv_exeext" = no && ac_cv_exeext= 2956 2957else 2958 ac_file='' 2959fi 2960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2961$as_echo "$ac_file" >&6; } 2962if test -z "$ac_file"; then : 2963 $as_echo "$as_me: failed program was:" >&5 2964sed 's/^/| /' conftest.$ac_ext >&5 2965 2966{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2968{ as_fn_set_status 77 2969as_fn_error "C compiler cannot create executables 2970See \`config.log' for more details." "$LINENO" 5; }; } 2971fi 2972ac_exeext=$ac_cv_exeext 2973 2974# Check that the compiler produces executables we can run. If not, either 2975# the compiler is broken, or we cross compile. 2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2977$as_echo_n "checking whether the C compiler works... " >&6; } 2978# If not cross compiling, check that we can run a simple program. 2979if test "$cross_compiling" != yes; then 2980 if { ac_try='./$ac_file' 2981 { { case "(($ac_try" in 2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2983 *) ac_try_echo=$ac_try;; 2984esac 2985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2986$as_echo "$ac_try_echo"; } >&5 2987 (eval "$ac_try") 2>&5 2988 ac_status=$? 2989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2990 test $ac_status = 0; }; }; then 2991 cross_compiling=no 2992 else 2993 if test "$cross_compiling" = maybe; then 2994 cross_compiling=yes 2995 else 2996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2998as_fn_error "cannot run C compiled programs. 2999If you meant to cross compile, use \`--host'. 3000See \`config.log' for more details." "$LINENO" 5; } 3001 fi 3002 fi 3003fi 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3005$as_echo "yes" >&6; } 3006 3007rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3008ac_clean_files=$ac_clean_files_save 3009# Check that the compiler produces executables we can run. If not, either 3010# the compiler is broken, or we cross compile. 3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3012$as_echo_n "checking whether we are cross compiling... " >&6; } 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3014$as_echo "$cross_compiling" >&6; } 3015 3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3017$as_echo_n "checking for suffix of executables... " >&6; } 3018if { { ac_try="$ac_link" 3019case "(($ac_try" in 3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3021 *) ac_try_echo=$ac_try;; 3022esac 3023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3024$as_echo "$ac_try_echo"; } >&5 3025 (eval "$ac_link") 2>&5 3026 ac_status=$? 3027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3028 test $ac_status = 0; }; then : 3029 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3030# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3031# work properly (i.e., refer to `conftest.exe'), while it won't with 3032# `rm'. 3033for ac_file in conftest.exe conftest conftest.*; do 3034 test -f "$ac_file" || continue 3035 case $ac_file in 3036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3037 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3038 break;; 3039 * ) break;; 3040 esac 3041done 3042else 3043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3045as_fn_error "cannot compute suffix of executables: cannot compile and link 3046See \`config.log' for more details." "$LINENO" 5; } 3047fi 3048rm -f conftest$ac_cv_exeext 3049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3050$as_echo "$ac_cv_exeext" >&6; } 3051 3052rm -f conftest.$ac_ext 3053EXEEXT=$ac_cv_exeext 3054ac_exeext=$EXEEXT 3055fi 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3057$as_echo_n "checking for suffix of object files... " >&6; } 3058if test "${ac_cv_objext+set}" = set; then : 3059 $as_echo_n "(cached) " >&6 3060else 3061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3062/* end confdefs.h. */ 3063 3064int 3065main () 3066{ 3067 3068 ; 3069 return 0; 3070} 3071_ACEOF 3072rm -f conftest.o conftest.obj 3073if { { ac_try="$ac_compile" 3074case "(($ac_try" in 3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3076 *) ac_try_echo=$ac_try;; 3077esac 3078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3079$as_echo "$ac_try_echo"; } >&5 3080 (eval "$ac_compile") 2>&5 3081 ac_status=$? 3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3083 test $ac_status = 0; }; then : 3084 for ac_file in conftest.o conftest.obj conftest.*; do 3085 test -f "$ac_file" || continue; 3086 case $ac_file in 3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3088 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3089 break;; 3090 esac 3091done 3092else 3093 $as_echo "$as_me: failed program was:" >&5 3094sed 's/^/| /' conftest.$ac_ext >&5 3095 3096{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3098as_fn_error "cannot compute suffix of object files: cannot compile 3099See \`config.log' for more details." "$LINENO" 5; } 3100fi 3101rm -f conftest.$ac_cv_objext conftest.$ac_ext 3102fi 3103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3104$as_echo "$ac_cv_objext" >&6; } 3105OBJEXT=$ac_cv_objext 3106ac_objext=$OBJEXT 3107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3108$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3109if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3110 $as_echo_n "(cached) " >&6 3111else 3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3113/* end confdefs.h. */ 3114 3115int 3116main () 3117{ 3118#ifndef __GNUC__ 3119 choke me 3120#endif 3121 3122 ; 3123 return 0; 3124} 3125_ACEOF 3126if ac_fn_c_try_compile "$LINENO"; then : 3127 ac_compiler_gnu=yes 3128else 3129 ac_compiler_gnu=no 3130fi 3131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3132ac_cv_c_compiler_gnu=$ac_compiler_gnu 3133 3134fi 3135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3136$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3137if test $ac_compiler_gnu = yes; then 3138 GCC=yes 3139else 3140 GCC= 3141fi 3142ac_test_CFLAGS=${CFLAGS+set} 3143ac_save_CFLAGS=$CFLAGS 3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3145$as_echo_n "checking whether $CC accepts -g... " >&6; } 3146if test "${ac_cv_prog_cc_g+set}" = set; then : 3147 $as_echo_n "(cached) " >&6 3148else 3149 ac_save_c_werror_flag=$ac_c_werror_flag 3150 ac_c_werror_flag=yes 3151 ac_cv_prog_cc_g=no 3152 CFLAGS="-g" 3153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3154/* end confdefs.h. */ 3155 3156int 3157main () 3158{ 3159 3160 ; 3161 return 0; 3162} 3163_ACEOF 3164if ac_fn_c_try_compile "$LINENO"; then : 3165 ac_cv_prog_cc_g=yes 3166else 3167 CFLAGS="" 3168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3169/* end confdefs.h. */ 3170 3171int 3172main () 3173{ 3174 3175 ; 3176 return 0; 3177} 3178_ACEOF 3179if ac_fn_c_try_compile "$LINENO"; then : 3180 3181else 3182 ac_c_werror_flag=$ac_save_c_werror_flag 3183 CFLAGS="-g" 3184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3185/* end confdefs.h. */ 3186 3187int 3188main () 3189{ 3190 3191 ; 3192 return 0; 3193} 3194_ACEOF 3195if ac_fn_c_try_compile "$LINENO"; then : 3196 ac_cv_prog_cc_g=yes 3197fi 3198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3199fi 3200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3201fi 3202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3203 ac_c_werror_flag=$ac_save_c_werror_flag 3204fi 3205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3206$as_echo "$ac_cv_prog_cc_g" >&6; } 3207if test "$ac_test_CFLAGS" = set; then 3208 CFLAGS=$ac_save_CFLAGS 3209elif test $ac_cv_prog_cc_g = yes; then 3210 if test "$GCC" = yes; then 3211 CFLAGS="-g -O2" 3212 else 3213 CFLAGS="-g" 3214 fi 3215else 3216 if test "$GCC" = yes; then 3217 CFLAGS="-O2" 3218 else 3219 CFLAGS= 3220 fi 3221fi 3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3223$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3224if test "${ac_cv_prog_cc_c89+set}" = set; then : 3225 $as_echo_n "(cached) " >&6 3226else 3227 ac_cv_prog_cc_c89=no 3228ac_save_CC=$CC 3229cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3230/* end confdefs.h. */ 3231#include <stdarg.h> 3232#include <stdio.h> 3233#include <sys/types.h> 3234#include <sys/stat.h> 3235/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3236struct buf { int x; }; 3237FILE * (*rcsopen) (struct buf *, struct stat *, int); 3238static char *e (p, i) 3239 char **p; 3240 int i; 3241{ 3242 return p[i]; 3243} 3244static char *f (char * (*g) (char **, int), char **p, ...) 3245{ 3246 char *s; 3247 va_list v; 3248 va_start (v,p); 3249 s = g (p, va_arg (v,int)); 3250 va_end (v); 3251 return s; 3252} 3253 3254/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3255 function prototypes and stuff, but not '\xHH' hex character constants. 3256 These don't provoke an error unfortunately, instead are silently treated 3257 as 'x'. The following induces an error, until -std is added to get 3258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3259 array size at least. It's necessary to write '\x00'==0 to get something 3260 that's true only with -std. */ 3261int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3262 3263/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3264 inside strings and character constants. */ 3265#define FOO(x) 'x' 3266int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3267 3268int test (int i, double x); 3269struct s1 {int (*f) (int a);}; 3270struct s2 {int (*f) (double a);}; 3271int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3272int argc; 3273char **argv; 3274int 3275main () 3276{ 3277return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3278 ; 3279 return 0; 3280} 3281_ACEOF 3282for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3284do 3285 CC="$ac_save_CC $ac_arg" 3286 if ac_fn_c_try_compile "$LINENO"; then : 3287 ac_cv_prog_cc_c89=$ac_arg 3288fi 3289rm -f core conftest.err conftest.$ac_objext 3290 test "x$ac_cv_prog_cc_c89" != "xno" && break 3291done 3292rm -f conftest.$ac_ext 3293CC=$ac_save_CC 3294 3295fi 3296# AC_CACHE_VAL 3297case "x$ac_cv_prog_cc_c89" in 3298 x) 3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3300$as_echo "none needed" >&6; } ;; 3301 xno) 3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3303$as_echo "unsupported" >&6; } ;; 3304 *) 3305 CC="$CC $ac_cv_prog_cc_c89" 3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3307$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3308esac 3309if test "x$ac_cv_prog_cc_c89" != xno; then : 3310 3311fi 3312 3313ac_ext=c 3314ac_cpp='$CPP $CPPFLAGS' 3315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3317ac_compiler_gnu=$ac_cv_c_compiler_gnu 3318 3319 3320 3321# extra LD Flags which are required for targets 3322 3323 3324 3325case $host in 3326 *-cygwin* | *-mingw*) 3327 # 'host' will be top-level target in the case of a target lib, 3328 # we must compare to with_cross_host to decide if this is a native 3329 # or cross-compiler and select where to install dlls appropriately. 3330 if test -n "$with_cross_host" && 3331 test x"$with_cross_host" != x"no"; then 3332 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; 3333 else 3334 lt_host_flags='-no-undefined -bindir "$(bindir)"'; 3335 fi 3336 ;; 3337 *) 3338 lt_host_flags= 3339 ;; 3340esac 3341 3342 3343 3344case "${host}" in 3345 *-darwin*) 3346 # Darwin needs -single_module when linking libobjc 3347 extra_ldflags_libobjc='$(lt_host_flags) -Wl,-single_module' 3348 ;; 3349 *-cygwin*|*-mingw*) 3350 # Tell libtool to build DLLs on Windows 3351 extra_ldflags_libobjc='$(lt_host_flags)' 3352 ;; 3353esac 3354 3355 3356# Add CET specific flags if CET is enabled 3357 3358 # Check whether --enable-cet was given. 3359if test "${enable_cet+set}" = set; then : 3360 enableval=$enable_cet; 3361 case "$enableval" in 3362 yes|no|auto) ;; 3363 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;; 3364 esac 3365 3366else 3367 enable_cet=no 3368fi 3369 3370 3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 3372$as_echo_n "checking for CET support... " >&6; } 3373 3374case "$host" in 3375 i[34567]86-*-linux* | x86_64-*-linux*) 3376 case "$enable_cet" in 3377 auto) 3378 # Check if target supports multi-byte NOPs 3379 # and if assembler supports CET insn. 3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3381/* end confdefs.h. */ 3382 3383int 3384main () 3385{ 3386 3387#if !defined(__SSE2__) 3388#error target does not support multi-byte NOPs 3389#else 3390asm ("setssbsy"); 3391#endif 3392 3393 ; 3394 return 0; 3395} 3396_ACEOF 3397if ac_fn_c_try_compile "$LINENO"; then : 3398 enable_cet=yes 3399else 3400 enable_cet=no 3401fi 3402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3403 ;; 3404 yes) 3405 # Check if assembler supports CET. 3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3407/* end confdefs.h. */ 3408 3409int 3410main () 3411{ 3412asm ("setssbsy"); 3413 ; 3414 return 0; 3415} 3416_ACEOF 3417if ac_fn_c_try_compile "$LINENO"; then : 3418 3419else 3420 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5 3421fi 3422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3423 ;; 3424 esac 3425 ;; 3426 *) 3427 enable_cet=no 3428 ;; 3429esac 3430if test x$enable_cet = xyes; then 3431 CET_FLAGS="-fcf-protection -mshstk" 3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3433$as_echo "yes" >&6; } 3434else 3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3436$as_echo "no" >&6; } 3437fi 3438 3439XCFLAGS="$XCFLAGS $CET_FLAGS" 3440 3441 3442 3443 3444if test -n "$ac_tool_prefix"; then 3445 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 3446set dummy ${ac_tool_prefix}as; ac_word=$2 3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3448$as_echo_n "checking for $ac_word... " >&6; } 3449if test "${ac_cv_prog_AS+set}" = set; then : 3450 $as_echo_n "(cached) " >&6 3451else 3452 if test -n "$AS"; then 3453 ac_cv_prog_AS="$AS" # Let the user override the test. 3454else 3455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3456for as_dir in $PATH 3457do 3458 IFS=$as_save_IFS 3459 test -z "$as_dir" && as_dir=. 3460 for ac_exec_ext in '' $ac_executable_extensions; do 3461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3462 ac_cv_prog_AS="${ac_tool_prefix}as" 3463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3464 break 2 3465 fi 3466done 3467 done 3468IFS=$as_save_IFS 3469 3470fi 3471fi 3472AS=$ac_cv_prog_AS 3473if test -n "$AS"; then 3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 3475$as_echo "$AS" >&6; } 3476else 3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3478$as_echo "no" >&6; } 3479fi 3480 3481 3482fi 3483if test -z "$ac_cv_prog_AS"; then 3484 ac_ct_AS=$AS 3485 # Extract the first word of "as", so it can be a program name with args. 3486set dummy as; ac_word=$2 3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3488$as_echo_n "checking for $ac_word... " >&6; } 3489if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : 3490 $as_echo_n "(cached) " >&6 3491else 3492 if test -n "$ac_ct_AS"; then 3493 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 3494else 3495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3496for as_dir in $PATH 3497do 3498 IFS=$as_save_IFS 3499 test -z "$as_dir" && as_dir=. 3500 for ac_exec_ext in '' $ac_executable_extensions; do 3501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3502 ac_cv_prog_ac_ct_AS="as" 3503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3504 break 2 3505 fi 3506done 3507 done 3508IFS=$as_save_IFS 3509 3510fi 3511fi 3512ac_ct_AS=$ac_cv_prog_ac_ct_AS 3513if test -n "$ac_ct_AS"; then 3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 3515$as_echo "$ac_ct_AS" >&6; } 3516else 3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3518$as_echo "no" >&6; } 3519fi 3520 3521 if test "x$ac_ct_AS" = x; then 3522 AS="" 3523 else 3524 case $cross_compiling:$ac_tool_warned in 3525yes:) 3526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3528ac_tool_warned=yes ;; 3529esac 3530 AS=$ac_ct_AS 3531 fi 3532else 3533 AS="$ac_cv_prog_AS" 3534fi 3535 3536if test -n "$ac_tool_prefix"; then 3537 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 3538set dummy ${ac_tool_prefix}ar; ac_word=$2 3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3540$as_echo_n "checking for $ac_word... " >&6; } 3541if test "${ac_cv_prog_AR+set}" = set; then : 3542 $as_echo_n "(cached) " >&6 3543else 3544 if test -n "$AR"; then 3545 ac_cv_prog_AR="$AR" # Let the user override the test. 3546else 3547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3548for as_dir in $PATH 3549do 3550 IFS=$as_save_IFS 3551 test -z "$as_dir" && as_dir=. 3552 for ac_exec_ext in '' $ac_executable_extensions; do 3553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3554 ac_cv_prog_AR="${ac_tool_prefix}ar" 3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3556 break 2 3557 fi 3558done 3559 done 3560IFS=$as_save_IFS 3561 3562fi 3563fi 3564AR=$ac_cv_prog_AR 3565if test -n "$AR"; then 3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 3567$as_echo "$AR" >&6; } 3568else 3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3570$as_echo "no" >&6; } 3571fi 3572 3573 3574fi 3575if test -z "$ac_cv_prog_AR"; then 3576 ac_ct_AR=$AR 3577 # Extract the first word of "ar", so it can be a program name with args. 3578set dummy ar; ac_word=$2 3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3580$as_echo_n "checking for $ac_word... " >&6; } 3581if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 3582 $as_echo_n "(cached) " >&6 3583else 3584 if test -n "$ac_ct_AR"; then 3585 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 3586else 3587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3588for as_dir in $PATH 3589do 3590 IFS=$as_save_IFS 3591 test -z "$as_dir" && as_dir=. 3592 for ac_exec_ext in '' $ac_executable_extensions; do 3593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3594 ac_cv_prog_ac_ct_AR="ar" 3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3596 break 2 3597 fi 3598done 3599 done 3600IFS=$as_save_IFS 3601 3602fi 3603fi 3604ac_ct_AR=$ac_cv_prog_ac_ct_AR 3605if test -n "$ac_ct_AR"; then 3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 3607$as_echo "$ac_ct_AR" >&6; } 3608else 3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3610$as_echo "no" >&6; } 3611fi 3612 3613 if test "x$ac_ct_AR" = x; then 3614 AR="" 3615 else 3616 case $cross_compiling:$ac_tool_warned in 3617yes:) 3618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3620ac_tool_warned=yes ;; 3621esac 3622 AR=$ac_ct_AR 3623 fi 3624else 3625 AR="$ac_cv_prog_AR" 3626fi 3627 3628if test -n "$ac_tool_prefix"; then 3629 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3630set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3632$as_echo_n "checking for $ac_word... " >&6; } 3633if test "${ac_cv_prog_RANLIB+set}" = set; then : 3634 $as_echo_n "(cached) " >&6 3635else 3636 if test -n "$RANLIB"; then 3637 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3638else 3639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3640for as_dir in $PATH 3641do 3642 IFS=$as_save_IFS 3643 test -z "$as_dir" && as_dir=. 3644 for ac_exec_ext in '' $ac_executable_extensions; do 3645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3646 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3648 break 2 3649 fi 3650done 3651 done 3652IFS=$as_save_IFS 3653 3654fi 3655fi 3656RANLIB=$ac_cv_prog_RANLIB 3657if test -n "$RANLIB"; then 3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 3659$as_echo "$RANLIB" >&6; } 3660else 3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3662$as_echo "no" >&6; } 3663fi 3664 3665 3666fi 3667if test -z "$ac_cv_prog_RANLIB"; then 3668 ac_ct_RANLIB=$RANLIB 3669 # Extract the first word of "ranlib", so it can be a program name with args. 3670set dummy ranlib; ac_word=$2 3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3672$as_echo_n "checking for $ac_word... " >&6; } 3673if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 3674 $as_echo_n "(cached) " >&6 3675else 3676 if test -n "$ac_ct_RANLIB"; then 3677 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3678else 3679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3680for as_dir in $PATH 3681do 3682 IFS=$as_save_IFS 3683 test -z "$as_dir" && as_dir=. 3684 for ac_exec_ext in '' $ac_executable_extensions; do 3685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3686 ac_cv_prog_ac_ct_RANLIB="ranlib" 3687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3688 break 2 3689 fi 3690done 3691 done 3692IFS=$as_save_IFS 3693 3694fi 3695fi 3696ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3697if test -n "$ac_ct_RANLIB"; then 3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 3699$as_echo "$ac_ct_RANLIB" >&6; } 3700else 3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3702$as_echo "no" >&6; } 3703fi 3704 3705 if test "x$ac_ct_RANLIB" = x; then 3706 RANLIB=":" 3707 else 3708 case $cross_compiling:$ac_tool_warned in 3709yes:) 3710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3712ac_tool_warned=yes ;; 3713esac 3714 RANLIB=$ac_ct_RANLIB 3715 fi 3716else 3717 RANLIB="$ac_cv_prog_RANLIB" 3718fi 3719 3720# Find a good install program. We prefer a C program (faster), 3721# so one script is as good as another. But avoid the broken or 3722# incompatible versions: 3723# SysV /etc/install, /usr/sbin/install 3724# SunOS /usr/etc/install 3725# IRIX /sbin/install 3726# AIX /bin/install 3727# AmigaOS /C/install, which installs bootblocks on floppy discs 3728# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3729# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3730# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3731# OS/2's system install, which has a completely different semantic 3732# ./install, which can be erroneously created by make from ./install.sh. 3733# Reject install programs that cannot install multiple files. 3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3735$as_echo_n "checking for a BSD-compatible install... " >&6; } 3736if test -z "$INSTALL"; then 3737if test "${ac_cv_path_install+set}" = set; then : 3738 $as_echo_n "(cached) " >&6 3739else 3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3741for as_dir in $PATH 3742do 3743 IFS=$as_save_IFS 3744 test -z "$as_dir" && as_dir=. 3745 # Account for people who put trailing slashes in PATH elements. 3746case $as_dir/ in #(( 3747 ./ | .// | /[cC]/* | \ 3748 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3749 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3750 /usr/ucb/* ) ;; 3751 *) 3752 # OSF1 and SCO ODT 3.0 have their own names for install. 3753 # Don't use installbsd from OSF since it installs stuff as root 3754 # by default. 3755 for ac_prog in ginstall scoinst install; do 3756 for ac_exec_ext in '' $ac_executable_extensions; do 3757 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3758 if test $ac_prog = install && 3759 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3760 # AIX install. It has an incompatible calling convention. 3761 : 3762 elif test $ac_prog = install && 3763 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3764 # program-specific install script used by HP pwplus--don't use. 3765 : 3766 else 3767 rm -rf conftest.one conftest.two conftest.dir 3768 echo one > conftest.one 3769 echo two > conftest.two 3770 mkdir conftest.dir 3771 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3772 test -s conftest.one && test -s conftest.two && 3773 test -s conftest.dir/conftest.one && 3774 test -s conftest.dir/conftest.two 3775 then 3776 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3777 break 3 3778 fi 3779 fi 3780 fi 3781 done 3782 done 3783 ;; 3784esac 3785 3786 done 3787IFS=$as_save_IFS 3788 3789rm -rf conftest.one conftest.two conftest.dir 3790 3791fi 3792 if test "${ac_cv_path_install+set}" = set; then 3793 INSTALL=$ac_cv_path_install 3794 else 3795 # As a last resort, use the slow shell script. Don't cache a 3796 # value for INSTALL within a source directory, because that will 3797 # break other packages using the cache if that directory is 3798 # removed, or if the value is a relative name. 3799 INSTALL=$ac_install_sh 3800 fi 3801fi 3802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3803$as_echo "$INSTALL" >&6; } 3804 3805# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3806# It thinks the first close brace ends the variable substitution. 3807test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3808 3809test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3810 3811test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3812 3813 3814 3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3816$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3817 # Check whether --enable-maintainer-mode was given. 3818if test "${enable_maintainer_mode+set}" = set; then : 3819 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3820else 3821 USE_MAINTAINER_MODE=no 3822fi 3823 3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3825$as_echo "$USE_MAINTAINER_MODE" >&6; } 3826 if test $USE_MAINTAINER_MODE = yes; then 3827 MAINTAINER_MODE_TRUE= 3828 MAINTAINER_MODE_FALSE='#' 3829else 3830 MAINTAINER_MODE_TRUE='#' 3831 MAINTAINER_MODE_FALSE= 3832fi 3833 3834 MAINT=$MAINTAINER_MODE_TRUE 3835 3836 3837 3838# Enable Win32 DLL on MS Windows - FIXME 3839enable_win32_dll=yes 3840 3841case $host in 3842*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 3843 if test -n "$ac_tool_prefix"; then 3844 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 3845set dummy ${ac_tool_prefix}as; ac_word=$2 3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3847$as_echo_n "checking for $ac_word... " >&6; } 3848if test "${ac_cv_prog_AS+set}" = set; then : 3849 $as_echo_n "(cached) " >&6 3850else 3851 if test -n "$AS"; then 3852 ac_cv_prog_AS="$AS" # Let the user override the test. 3853else 3854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3855for as_dir in $PATH 3856do 3857 IFS=$as_save_IFS 3858 test -z "$as_dir" && as_dir=. 3859 for ac_exec_ext in '' $ac_executable_extensions; do 3860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3861 ac_cv_prog_AS="${ac_tool_prefix}as" 3862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3863 break 2 3864 fi 3865done 3866 done 3867IFS=$as_save_IFS 3868 3869fi 3870fi 3871AS=$ac_cv_prog_AS 3872if test -n "$AS"; then 3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 3874$as_echo "$AS" >&6; } 3875else 3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3877$as_echo "no" >&6; } 3878fi 3879 3880 3881fi 3882if test -z "$ac_cv_prog_AS"; then 3883 ac_ct_AS=$AS 3884 # Extract the first word of "as", so it can be a program name with args. 3885set dummy as; ac_word=$2 3886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3887$as_echo_n "checking for $ac_word... " >&6; } 3888if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : 3889 $as_echo_n "(cached) " >&6 3890else 3891 if test -n "$ac_ct_AS"; then 3892 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 3893else 3894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3895for as_dir in $PATH 3896do 3897 IFS=$as_save_IFS 3898 test -z "$as_dir" && as_dir=. 3899 for ac_exec_ext in '' $ac_executable_extensions; do 3900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3901 ac_cv_prog_ac_ct_AS="as" 3902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3903 break 2 3904 fi 3905done 3906 done 3907IFS=$as_save_IFS 3908 3909fi 3910fi 3911ac_ct_AS=$ac_cv_prog_ac_ct_AS 3912if test -n "$ac_ct_AS"; then 3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 3914$as_echo "$ac_ct_AS" >&6; } 3915else 3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3917$as_echo "no" >&6; } 3918fi 3919 3920 if test "x$ac_ct_AS" = x; then 3921 AS="false" 3922 else 3923 case $cross_compiling:$ac_tool_warned in 3924yes:) 3925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3927ac_tool_warned=yes ;; 3928esac 3929 AS=$ac_ct_AS 3930 fi 3931else 3932 AS="$ac_cv_prog_AS" 3933fi 3934 3935 if test -n "$ac_tool_prefix"; then 3936 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 3937set dummy ${ac_tool_prefix}dlltool; ac_word=$2 3938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3939$as_echo_n "checking for $ac_word... " >&6; } 3940if test "${ac_cv_prog_DLLTOOL+set}" = set; then : 3941 $as_echo_n "(cached) " >&6 3942else 3943 if test -n "$DLLTOOL"; then 3944 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 3945else 3946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3947for as_dir in $PATH 3948do 3949 IFS=$as_save_IFS 3950 test -z "$as_dir" && as_dir=. 3951 for ac_exec_ext in '' $ac_executable_extensions; do 3952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3953 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 3954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3955 break 2 3956 fi 3957done 3958 done 3959IFS=$as_save_IFS 3960 3961fi 3962fi 3963DLLTOOL=$ac_cv_prog_DLLTOOL 3964if test -n "$DLLTOOL"; then 3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 3966$as_echo "$DLLTOOL" >&6; } 3967else 3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3969$as_echo "no" >&6; } 3970fi 3971 3972 3973fi 3974if test -z "$ac_cv_prog_DLLTOOL"; then 3975 ac_ct_DLLTOOL=$DLLTOOL 3976 # Extract the first word of "dlltool", so it can be a program name with args. 3977set dummy dlltool; ac_word=$2 3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3979$as_echo_n "checking for $ac_word... " >&6; } 3980if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : 3981 $as_echo_n "(cached) " >&6 3982else 3983 if test -n "$ac_ct_DLLTOOL"; then 3984 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 3985else 3986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3987for as_dir in $PATH 3988do 3989 IFS=$as_save_IFS 3990 test -z "$as_dir" && as_dir=. 3991 for ac_exec_ext in '' $ac_executable_extensions; do 3992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3993 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3995 break 2 3996 fi 3997done 3998 done 3999IFS=$as_save_IFS 4000 4001fi 4002fi 4003ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4004if test -n "$ac_ct_DLLTOOL"; then 4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4006$as_echo "$ac_ct_DLLTOOL" >&6; } 4007else 4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4009$as_echo "no" >&6; } 4010fi 4011 4012 if test "x$ac_ct_DLLTOOL" = x; then 4013 DLLTOOL="false" 4014 else 4015 case $cross_compiling:$ac_tool_warned in 4016yes:) 4017{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4019ac_tool_warned=yes ;; 4020esac 4021 DLLTOOL=$ac_ct_DLLTOOL 4022 fi 4023else 4024 DLLTOOL="$ac_cv_prog_DLLTOOL" 4025fi 4026 4027 if test -n "$ac_tool_prefix"; then 4028 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4029set dummy ${ac_tool_prefix}objdump; ac_word=$2 4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4031$as_echo_n "checking for $ac_word... " >&6; } 4032if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 4033 $as_echo_n "(cached) " >&6 4034else 4035 if test -n "$OBJDUMP"; then 4036 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4037else 4038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4039for as_dir in $PATH 4040do 4041 IFS=$as_save_IFS 4042 test -z "$as_dir" && as_dir=. 4043 for ac_exec_ext in '' $ac_executable_extensions; do 4044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4045 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4047 break 2 4048 fi 4049done 4050 done 4051IFS=$as_save_IFS 4052 4053fi 4054fi 4055OBJDUMP=$ac_cv_prog_OBJDUMP 4056if test -n "$OBJDUMP"; then 4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4058$as_echo "$OBJDUMP" >&6; } 4059else 4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4061$as_echo "no" >&6; } 4062fi 4063 4064 4065fi 4066if test -z "$ac_cv_prog_OBJDUMP"; then 4067 ac_ct_OBJDUMP=$OBJDUMP 4068 # Extract the first word of "objdump", so it can be a program name with args. 4069set dummy objdump; ac_word=$2 4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4071$as_echo_n "checking for $ac_word... " >&6; } 4072if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 4073 $as_echo_n "(cached) " >&6 4074else 4075 if test -n "$ac_ct_OBJDUMP"; then 4076 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4077else 4078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4079for as_dir in $PATH 4080do 4081 IFS=$as_save_IFS 4082 test -z "$as_dir" && as_dir=. 4083 for ac_exec_ext in '' $ac_executable_extensions; do 4084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4085 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4087 break 2 4088 fi 4089done 4090 done 4091IFS=$as_save_IFS 4092 4093fi 4094fi 4095ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4096if test -n "$ac_ct_OBJDUMP"; then 4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4098$as_echo "$ac_ct_OBJDUMP" >&6; } 4099else 4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4101$as_echo "no" >&6; } 4102fi 4103 4104 if test "x$ac_ct_OBJDUMP" = x; then 4105 OBJDUMP="false" 4106 else 4107 case $cross_compiling:$ac_tool_warned in 4108yes:) 4109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4111ac_tool_warned=yes ;; 4112esac 4113 OBJDUMP=$ac_ct_OBJDUMP 4114 fi 4115else 4116 OBJDUMP="$ac_cv_prog_OBJDUMP" 4117fi 4118 4119 ;; 4120esac 4121 4122test -z "$AS" && AS=as 4123 4124 4125 4126 4127 4128test -z "$DLLTOOL" && DLLTOOL=dlltool 4129 4130 4131 4132 4133 4134test -z "$OBJDUMP" && OBJDUMP=objdump 4135 4136 4137 4138 4139 4140 4141 4142 4143case `pwd` in 4144 *\ * | *\ *) 4145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4146$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4147esac 4148 4149 4150 4151macro_version='2.2.7a' 4152macro_revision='1.3134' 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166ltmain="$ac_aux_dir/ltmain.sh" 4167 4168# Backslashify metacharacters that are still active within 4169# double-quoted strings. 4170sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4171 4172# Same as above, but do not quote variable references. 4173double_quote_subst='s/\(["`\\]\)/\\\1/g' 4174 4175# Sed substitution to delay expansion of an escaped shell variable in a 4176# double_quote_subst'ed string. 4177delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4178 4179# Sed substitution to delay expansion of an escaped single quote. 4180delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4181 4182# Sed substitution to avoid accidental globbing in evaled expressions 4183no_glob_subst='s/\*/\\\*/g' 4184 4185ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4186ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4187ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4188 4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4190$as_echo_n "checking how to print strings... " >&6; } 4191# Test print first, because it will be a builtin if present. 4192if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4193 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4194 ECHO='print -r --' 4195elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4196 ECHO='printf %s\n' 4197else 4198 # Use this function as a fallback that always works. 4199 func_fallback_echo () 4200 { 4201 eval 'cat <<_LTECHO_EOF 4202$1 4203_LTECHO_EOF' 4204 } 4205 ECHO='func_fallback_echo' 4206fi 4207 4208# func_echo_all arg... 4209# Invoke $ECHO with all args, space-separated. 4210func_echo_all () 4211{ 4212 $ECHO "" 4213} 4214 4215case "$ECHO" in 4216 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4217$as_echo "printf" >&6; } ;; 4218 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4219$as_echo "print -r" >&6; } ;; 4220 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4221$as_echo "cat" >&6; } ;; 4222esac 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4238$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4239if test "${ac_cv_path_SED+set}" = set; then : 4240 $as_echo_n "(cached) " >&6 4241else 4242 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4243 for ac_i in 1 2 3 4 5 6 7; do 4244 ac_script="$ac_script$as_nl$ac_script" 4245 done 4246 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4247 { ac_script=; unset ac_script;} 4248 if test -z "$SED"; then 4249 ac_path_SED_found=false 4250 # Loop through the user's path and test for each of PROGNAME-LIST 4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4252for as_dir in $PATH 4253do 4254 IFS=$as_save_IFS 4255 test -z "$as_dir" && as_dir=. 4256 for ac_prog in sed gsed; do 4257 for ac_exec_ext in '' $ac_executable_extensions; do 4258 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4259 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4260# Check for GNU ac_path_SED and select it if it is found. 4261 # Check for GNU $ac_path_SED 4262case `"$ac_path_SED" --version 2>&1` in 4263*GNU*) 4264 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4265*) 4266 ac_count=0 4267 $as_echo_n 0123456789 >"conftest.in" 4268 while : 4269 do 4270 cat "conftest.in" "conftest.in" >"conftest.tmp" 4271 mv "conftest.tmp" "conftest.in" 4272 cp "conftest.in" "conftest.nl" 4273 $as_echo '' >> "conftest.nl" 4274 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4276 as_fn_arith $ac_count + 1 && ac_count=$as_val 4277 if test $ac_count -gt ${ac_path_SED_max-0}; then 4278 # Best one so far, save it but keep looking for a better one 4279 ac_cv_path_SED="$ac_path_SED" 4280 ac_path_SED_max=$ac_count 4281 fi 4282 # 10*(2^10) chars as input seems more than enough 4283 test $ac_count -gt 10 && break 4284 done 4285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4286esac 4287 4288 $ac_path_SED_found && break 3 4289 done 4290 done 4291 done 4292IFS=$as_save_IFS 4293 if test -z "$ac_cv_path_SED"; then 4294 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4295 fi 4296else 4297 ac_cv_path_SED=$SED 4298fi 4299 4300fi 4301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4302$as_echo "$ac_cv_path_SED" >&6; } 4303 SED="$ac_cv_path_SED" 4304 rm -f conftest.sed 4305 4306test -z "$SED" && SED=sed 4307Xsed="$SED -e 1s/^X//" 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4320$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4321if test "${ac_cv_path_GREP+set}" = set; then : 4322 $as_echo_n "(cached) " >&6 4323else 4324 if test -z "$GREP"; then 4325 ac_path_GREP_found=false 4326 # Loop through the user's path and test for each of PROGNAME-LIST 4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4328for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4329do 4330 IFS=$as_save_IFS 4331 test -z "$as_dir" && as_dir=. 4332 for ac_prog in grep ggrep; do 4333 for ac_exec_ext in '' $ac_executable_extensions; do 4334 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4335 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4336# Check for GNU ac_path_GREP and select it if it is found. 4337 # Check for GNU $ac_path_GREP 4338case `"$ac_path_GREP" --version 2>&1` in 4339*GNU*) 4340 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4341*) 4342 ac_count=0 4343 $as_echo_n 0123456789 >"conftest.in" 4344 while : 4345 do 4346 cat "conftest.in" "conftest.in" >"conftest.tmp" 4347 mv "conftest.tmp" "conftest.in" 4348 cp "conftest.in" "conftest.nl" 4349 $as_echo 'GREP' >> "conftest.nl" 4350 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4351 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4352 as_fn_arith $ac_count + 1 && ac_count=$as_val 4353 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4354 # Best one so far, save it but keep looking for a better one 4355 ac_cv_path_GREP="$ac_path_GREP" 4356 ac_path_GREP_max=$ac_count 4357 fi 4358 # 10*(2^10) chars as input seems more than enough 4359 test $ac_count -gt 10 && break 4360 done 4361 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4362esac 4363 4364 $ac_path_GREP_found && break 3 4365 done 4366 done 4367 done 4368IFS=$as_save_IFS 4369 if test -z "$ac_cv_path_GREP"; then 4370 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4371 fi 4372else 4373 ac_cv_path_GREP=$GREP 4374fi 4375 4376fi 4377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4378$as_echo "$ac_cv_path_GREP" >&6; } 4379 GREP="$ac_cv_path_GREP" 4380 4381 4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4383$as_echo_n "checking for egrep... " >&6; } 4384if test "${ac_cv_path_EGREP+set}" = set; then : 4385 $as_echo_n "(cached) " >&6 4386else 4387 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4388 then ac_cv_path_EGREP="$GREP -E" 4389 else 4390 if test -z "$EGREP"; then 4391 ac_path_EGREP_found=false 4392 # Loop through the user's path and test for each of PROGNAME-LIST 4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4394for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4395do 4396 IFS=$as_save_IFS 4397 test -z "$as_dir" && as_dir=. 4398 for ac_prog in egrep; do 4399 for ac_exec_ext in '' $ac_executable_extensions; do 4400 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4401 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4402# Check for GNU ac_path_EGREP and select it if it is found. 4403 # Check for GNU $ac_path_EGREP 4404case `"$ac_path_EGREP" --version 2>&1` in 4405*GNU*) 4406 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4407*) 4408 ac_count=0 4409 $as_echo_n 0123456789 >"conftest.in" 4410 while : 4411 do 4412 cat "conftest.in" "conftest.in" >"conftest.tmp" 4413 mv "conftest.tmp" "conftest.in" 4414 cp "conftest.in" "conftest.nl" 4415 $as_echo 'EGREP' >> "conftest.nl" 4416 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4418 as_fn_arith $ac_count + 1 && ac_count=$as_val 4419 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4420 # Best one so far, save it but keep looking for a better one 4421 ac_cv_path_EGREP="$ac_path_EGREP" 4422 ac_path_EGREP_max=$ac_count 4423 fi 4424 # 10*(2^10) chars as input seems more than enough 4425 test $ac_count -gt 10 && break 4426 done 4427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4428esac 4429 4430 $ac_path_EGREP_found && break 3 4431 done 4432 done 4433 done 4434IFS=$as_save_IFS 4435 if test -z "$ac_cv_path_EGREP"; then 4436 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4437 fi 4438else 4439 ac_cv_path_EGREP=$EGREP 4440fi 4441 4442 fi 4443fi 4444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4445$as_echo "$ac_cv_path_EGREP" >&6; } 4446 EGREP="$ac_cv_path_EGREP" 4447 4448 4449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4450$as_echo_n "checking for fgrep... " >&6; } 4451if test "${ac_cv_path_FGREP+set}" = set; then : 4452 $as_echo_n "(cached) " >&6 4453else 4454 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4455 then ac_cv_path_FGREP="$GREP -F" 4456 else 4457 if test -z "$FGREP"; then 4458 ac_path_FGREP_found=false 4459 # Loop through the user's path and test for each of PROGNAME-LIST 4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4461for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4462do 4463 IFS=$as_save_IFS 4464 test -z "$as_dir" && as_dir=. 4465 for ac_prog in fgrep; do 4466 for ac_exec_ext in '' $ac_executable_extensions; do 4467 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4468 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4469# Check for GNU ac_path_FGREP and select it if it is found. 4470 # Check for GNU $ac_path_FGREP 4471case `"$ac_path_FGREP" --version 2>&1` in 4472*GNU*) 4473 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4474*) 4475 ac_count=0 4476 $as_echo_n 0123456789 >"conftest.in" 4477 while : 4478 do 4479 cat "conftest.in" "conftest.in" >"conftest.tmp" 4480 mv "conftest.tmp" "conftest.in" 4481 cp "conftest.in" "conftest.nl" 4482 $as_echo 'FGREP' >> "conftest.nl" 4483 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4485 as_fn_arith $ac_count + 1 && ac_count=$as_val 4486 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4487 # Best one so far, save it but keep looking for a better one 4488 ac_cv_path_FGREP="$ac_path_FGREP" 4489 ac_path_FGREP_max=$ac_count 4490 fi 4491 # 10*(2^10) chars as input seems more than enough 4492 test $ac_count -gt 10 && break 4493 done 4494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4495esac 4496 4497 $ac_path_FGREP_found && break 3 4498 done 4499 done 4500 done 4501IFS=$as_save_IFS 4502 if test -z "$ac_cv_path_FGREP"; then 4503 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4504 fi 4505else 4506 ac_cv_path_FGREP=$FGREP 4507fi 4508 4509 fi 4510fi 4511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4512$as_echo "$ac_cv_path_FGREP" >&6; } 4513 FGREP="$ac_cv_path_FGREP" 4514 4515 4516test -z "$GREP" && GREP=grep 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536# Check whether --with-gnu-ld was given. 4537if test "${with_gnu_ld+set}" = set; then : 4538 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4539else 4540 with_gnu_ld=no 4541fi 4542 4543ac_prog=ld 4544if test "$GCC" = yes; then 4545 # Check if gcc -print-prog-name=ld gives a path. 4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4547$as_echo_n "checking for ld used by $CC... " >&6; } 4548 case $host in 4549 *-*-mingw*) 4550 # gcc leaves a trailing carriage return which upsets mingw 4551 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4552 *) 4553 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4554 esac 4555 case $ac_prog in 4556 # Accept absolute paths. 4557 [\\/]* | ?:[\\/]*) 4558 re_direlt='/[^/][^/]*/\.\./' 4559 # Canonicalize the pathname of ld 4560 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4561 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4562 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4563 done 4564 test -z "$LD" && LD="$ac_prog" 4565 ;; 4566 "") 4567 # If it fails, then pretend we aren't using GCC. 4568 ac_prog=ld 4569 ;; 4570 *) 4571 # If it is relative, then search for the first ld in PATH. 4572 with_gnu_ld=unknown 4573 ;; 4574 esac 4575elif test "$with_gnu_ld" = yes; then 4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4577$as_echo_n "checking for GNU ld... " >&6; } 4578else 4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4580$as_echo_n "checking for non-GNU ld... " >&6; } 4581fi 4582if test "${lt_cv_path_LD+set}" = set; then : 4583 $as_echo_n "(cached) " >&6 4584else 4585 if test -z "$LD"; then 4586 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4587 for ac_dir in $PATH; do 4588 IFS="$lt_save_ifs" 4589 test -z "$ac_dir" && ac_dir=. 4590 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4591 lt_cv_path_LD="$ac_dir/$ac_prog" 4592 # Check to see if the program is GNU ld. I'd rather use --version, 4593 # but apparently some variants of GNU ld only accept -v. 4594 # Break only if it was the GNU/non-GNU ld that we prefer. 4595 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4596 *GNU* | *'with BFD'*) 4597 test "$with_gnu_ld" != no && break 4598 ;; 4599 *) 4600 test "$with_gnu_ld" != yes && break 4601 ;; 4602 esac 4603 fi 4604 done 4605 IFS="$lt_save_ifs" 4606else 4607 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4608fi 4609fi 4610 4611LD="$lt_cv_path_LD" 4612if test -n "$LD"; then 4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4614$as_echo "$LD" >&6; } 4615else 4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4617$as_echo "no" >&6; } 4618fi 4619test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4621$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4622if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4623 $as_echo_n "(cached) " >&6 4624else 4625 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4626case `$LD -v 2>&1 </dev/null` in 4627*GNU* | *'with BFD'*) 4628 lt_cv_prog_gnu_ld=yes 4629 ;; 4630*) 4631 lt_cv_prog_gnu_ld=no 4632 ;; 4633esac 4634fi 4635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4636$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4637with_gnu_ld=$lt_cv_prog_gnu_ld 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4648$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4649if test "${lt_cv_path_NM+set}" = set; then : 4650 $as_echo_n "(cached) " >&6 4651else 4652 if test -n "$NM"; then 4653 # Let the user override the test. 4654 lt_cv_path_NM="$NM" 4655else 4656 lt_nm_to_check="${ac_tool_prefix}nm" 4657 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4658 lt_nm_to_check="$lt_nm_to_check nm" 4659 fi 4660 for lt_tmp_nm in $lt_nm_to_check; do 4661 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4662 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4663 IFS="$lt_save_ifs" 4664 test -z "$ac_dir" && ac_dir=. 4665 tmp_nm="$ac_dir/$lt_tmp_nm" 4666 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4667 # Check to see if the nm accepts a BSD-compat flag. 4668 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4669 # nm: unknown option "B" ignored 4670 # Tru64's nm complains that /dev/null is an invalid object file 4671 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4672 */dev/null* | *'Invalid file or object type'*) 4673 lt_cv_path_NM="$tmp_nm -B" 4674 break 4675 ;; 4676 *) 4677 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4678 */dev/null*) 4679 lt_cv_path_NM="$tmp_nm -p" 4680 break 4681 ;; 4682 *) 4683 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4684 continue # so that we can try to find one that supports BSD flags 4685 ;; 4686 esac 4687 ;; 4688 esac 4689 fi 4690 done 4691 IFS="$lt_save_ifs" 4692 done 4693 : ${lt_cv_path_NM=no} 4694fi 4695fi 4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4697$as_echo "$lt_cv_path_NM" >&6; } 4698if test "$lt_cv_path_NM" != "no"; then 4699 NM="$lt_cv_path_NM" 4700else 4701 # Didn't find any BSD compatible name lister, look for dumpbin. 4702 if test -n "$DUMPBIN"; then : 4703 # Let the user override the test. 4704 else 4705 if test -n "$ac_tool_prefix"; then 4706 for ac_prog in dumpbin "link -dump" 4707 do 4708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4709set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4711$as_echo_n "checking for $ac_word... " >&6; } 4712if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 4713 $as_echo_n "(cached) " >&6 4714else 4715 if test -n "$DUMPBIN"; then 4716 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4717else 4718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4719for as_dir in $PATH 4720do 4721 IFS=$as_save_IFS 4722 test -z "$as_dir" && as_dir=. 4723 for ac_exec_ext in '' $ac_executable_extensions; do 4724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4725 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4727 break 2 4728 fi 4729done 4730 done 4731IFS=$as_save_IFS 4732 4733fi 4734fi 4735DUMPBIN=$ac_cv_prog_DUMPBIN 4736if test -n "$DUMPBIN"; then 4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4738$as_echo "$DUMPBIN" >&6; } 4739else 4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4741$as_echo "no" >&6; } 4742fi 4743 4744 4745 test -n "$DUMPBIN" && break 4746 done 4747fi 4748if test -z "$DUMPBIN"; then 4749 ac_ct_DUMPBIN=$DUMPBIN 4750 for ac_prog in dumpbin "link -dump" 4751do 4752 # Extract the first word of "$ac_prog", so it can be a program name with args. 4753set dummy $ac_prog; ac_word=$2 4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4755$as_echo_n "checking for $ac_word... " >&6; } 4756if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 4757 $as_echo_n "(cached) " >&6 4758else 4759 if test -n "$ac_ct_DUMPBIN"; then 4760 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4761else 4762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4763for as_dir in $PATH 4764do 4765 IFS=$as_save_IFS 4766 test -z "$as_dir" && as_dir=. 4767 for ac_exec_ext in '' $ac_executable_extensions; do 4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4769 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4771 break 2 4772 fi 4773done 4774 done 4775IFS=$as_save_IFS 4776 4777fi 4778fi 4779ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4780if test -n "$ac_ct_DUMPBIN"; then 4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4782$as_echo "$ac_ct_DUMPBIN" >&6; } 4783else 4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4785$as_echo "no" >&6; } 4786fi 4787 4788 4789 test -n "$ac_ct_DUMPBIN" && break 4790done 4791 4792 if test "x$ac_ct_DUMPBIN" = x; then 4793 DUMPBIN=":" 4794 else 4795 case $cross_compiling:$ac_tool_warned in 4796yes:) 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4799ac_tool_warned=yes ;; 4800esac 4801 DUMPBIN=$ac_ct_DUMPBIN 4802 fi 4803fi 4804 4805 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4806 *COFF*) 4807 DUMPBIN="$DUMPBIN -symbols" 4808 ;; 4809 *) 4810 DUMPBIN=: 4811 ;; 4812 esac 4813 fi 4814 4815 if test "$DUMPBIN" != ":"; then 4816 NM="$DUMPBIN" 4817 fi 4818fi 4819test -z "$NM" && NM=nm 4820 4821 4822 4823 4824 4825 4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4827$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4828if test "${lt_cv_nm_interface+set}" = set; then : 4829 $as_echo_n "(cached) " >&6 4830else 4831 lt_cv_nm_interface="BSD nm" 4832 echo "int some_variable = 0;" > conftest.$ac_ext 4833 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4834 (eval "$ac_compile" 2>conftest.err) 4835 cat conftest.err >&5 4836 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4837 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4838 cat conftest.err >&5 4839 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4840 cat conftest.out >&5 4841 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4842 lt_cv_nm_interface="MS dumpbin" 4843 fi 4844 rm -f conftest* 4845fi 4846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4847$as_echo "$lt_cv_nm_interface" >&6; } 4848 4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4850$as_echo_n "checking whether ln -s works... " >&6; } 4851LN_S=$as_ln_s 4852if test "$LN_S" = "ln -s"; then 4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4854$as_echo "yes" >&6; } 4855else 4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4857$as_echo "no, using $LN_S" >&6; } 4858fi 4859 4860# find the maximum length of command line arguments 4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4862$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4863if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 4864 $as_echo_n "(cached) " >&6 4865else 4866 i=0 4867 teststring="ABCD" 4868 4869 case $build_os in 4870 msdosdjgpp*) 4871 # On DJGPP, this test can blow up pretty badly due to problems in libc 4872 # (any single argument exceeding 2000 bytes causes a buffer overrun 4873 # during glob expansion). Even if it were fixed, the result of this 4874 # check would be larger than it should be. 4875 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4876 ;; 4877 4878 gnu*) 4879 # Under GNU Hurd, this test is not required because there is 4880 # no limit to the length of command line arguments. 4881 # Libtool will interpret -1 as no limit whatsoever 4882 lt_cv_sys_max_cmd_len=-1; 4883 ;; 4884 4885 cygwin* | mingw* | cegcc*) 4886 # On Win9x/ME, this test blows up -- it succeeds, but takes 4887 # about 5 minutes as the teststring grows exponentially. 4888 # Worse, since 9x/ME are not pre-emptively multitasking, 4889 # you end up with a "frozen" computer, even though with patience 4890 # the test eventually succeeds (with a max line length of 256k). 4891 # Instead, let's just punt: use the minimum linelength reported by 4892 # all of the supported platforms: 8192 (on NT/2K/XP). 4893 lt_cv_sys_max_cmd_len=8192; 4894 ;; 4895 4896 mint*) 4897 # On MiNT this can take a long time and run out of memory. 4898 lt_cv_sys_max_cmd_len=8192; 4899 ;; 4900 4901 amigaos*) 4902 # On AmigaOS with pdksh, this test takes hours, literally. 4903 # So we just punt and use a minimum line length of 8192. 4904 lt_cv_sys_max_cmd_len=8192; 4905 ;; 4906 4907 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4908 # This has been around since 386BSD, at least. Likely further. 4909 if test -x /sbin/sysctl; then 4910 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4911 elif test -x /usr/sbin/sysctl; then 4912 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4913 else 4914 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4915 fi 4916 # And add a safety zone 4917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4919 ;; 4920 4921 interix*) 4922 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4923 lt_cv_sys_max_cmd_len=196608 4924 ;; 4925 4926 osf*) 4927 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4928 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4929 # nice to cause kernel panics so lets avoid the loop below. 4930 # First set a reasonable default. 4931 lt_cv_sys_max_cmd_len=16384 4932 # 4933 if test -x /sbin/sysconfig; then 4934 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4935 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4936 esac 4937 fi 4938 ;; 4939 sco3.2v5*) 4940 lt_cv_sys_max_cmd_len=102400 4941 ;; 4942 sysv5* | sco5v6* | sysv4.2uw2*) 4943 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4944 if test -n "$kargmax"; then 4945 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4946 else 4947 lt_cv_sys_max_cmd_len=32768 4948 fi 4949 ;; 4950 *) 4951 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4952 if test -n "$lt_cv_sys_max_cmd_len"; then 4953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4954 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4955 else 4956 # Make teststring a little bigger before we do anything with it. 4957 # a 1K string should be a reasonable start. 4958 for i in 1 2 3 4 5 6 7 8 ; do 4959 teststring=$teststring$teststring 4960 done 4961 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4962 # If test is not a shell built-in, we'll probably end up computing a 4963 # maximum length that is only half of the actual maximum length, but 4964 # we can't tell. 4965 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 4966 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4967 test $i != 17 # 1/2 MB should be enough 4968 do 4969 i=`expr $i + 1` 4970 teststring=$teststring$teststring 4971 done 4972 # Only check the string length outside the loop. 4973 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4974 teststring= 4975 # Add a significant safety factor because C++ compilers can tack on 4976 # massive amounts of additional arguments before passing them to the 4977 # linker. It appears as though 1/2 is a usable value. 4978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4979 fi 4980 ;; 4981 esac 4982 4983fi 4984 4985if test -n $lt_cv_sys_max_cmd_len ; then 4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4987$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4988else 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4990$as_echo "none" >&6; } 4991fi 4992max_cmd_len=$lt_cv_sys_max_cmd_len 4993 4994 4995 4996 4997 4998 4999: ${CP="cp -f"} 5000: ${MV="mv -f"} 5001: ${RM="rm -f"} 5002 5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5004$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5005# Try some XSI features 5006xsi_shell=no 5007( _lt_dummy="a/b/c" 5008 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5009 = c,a/b,, \ 5010 && eval 'test $(( 1 + 1 )) -eq 2 \ 5011 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5012 && xsi_shell=yes 5013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5014$as_echo "$xsi_shell" >&6; } 5015 5016 5017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5018$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5019lt_shell_append=no 5020( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5021 >/dev/null 2>&1 \ 5022 && lt_shell_append=yes 5023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5024$as_echo "$lt_shell_append" >&6; } 5025 5026 5027if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5028 lt_unset=unset 5029else 5030 lt_unset=false 5031fi 5032 5033 5034 5035 5036 5037# test EBCDIC or ASCII 5038case `echo X|tr X '\101'` in 5039 A) # ASCII based system 5040 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5041 lt_SP2NL='tr \040 \012' 5042 lt_NL2SP='tr \015\012 \040\040' 5043 ;; 5044 *) # EBCDIC based system 5045 lt_SP2NL='tr \100 \n' 5046 lt_NL2SP='tr \r\n \100\100' 5047 ;; 5048esac 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5059$as_echo_n "checking for $LD option to reload object files... " >&6; } 5060if test "${lt_cv_ld_reload_flag+set}" = set; then : 5061 $as_echo_n "(cached) " >&6 5062else 5063 lt_cv_ld_reload_flag='-r' 5064fi 5065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5066$as_echo "$lt_cv_ld_reload_flag" >&6; } 5067reload_flag=$lt_cv_ld_reload_flag 5068case $reload_flag in 5069"" | " "*) ;; 5070*) reload_flag=" $reload_flag" ;; 5071esac 5072reload_cmds='$LD$reload_flag -o $output$reload_objs' 5073case $host_os in 5074 darwin*) 5075 if test "$GCC" = yes; then 5076 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5077 else 5078 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5079 fi 5080 ;; 5081esac 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091if test -n "$ac_tool_prefix"; then 5092 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5093set dummy ${ac_tool_prefix}objdump; ac_word=$2 5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5095$as_echo_n "checking for $ac_word... " >&6; } 5096if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5097 $as_echo_n "(cached) " >&6 5098else 5099 if test -n "$OBJDUMP"; then 5100 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5101else 5102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5103for as_dir in $PATH 5104do 5105 IFS=$as_save_IFS 5106 test -z "$as_dir" && as_dir=. 5107 for ac_exec_ext in '' $ac_executable_extensions; do 5108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5109 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5111 break 2 5112 fi 5113done 5114 done 5115IFS=$as_save_IFS 5116 5117fi 5118fi 5119OBJDUMP=$ac_cv_prog_OBJDUMP 5120if test -n "$OBJDUMP"; then 5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5122$as_echo "$OBJDUMP" >&6; } 5123else 5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5125$as_echo "no" >&6; } 5126fi 5127 5128 5129fi 5130if test -z "$ac_cv_prog_OBJDUMP"; then 5131 ac_ct_OBJDUMP=$OBJDUMP 5132 # Extract the first word of "objdump", so it can be a program name with args. 5133set dummy objdump; ac_word=$2 5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5135$as_echo_n "checking for $ac_word... " >&6; } 5136if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5137 $as_echo_n "(cached) " >&6 5138else 5139 if test -n "$ac_ct_OBJDUMP"; then 5140 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5141else 5142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5143for as_dir in $PATH 5144do 5145 IFS=$as_save_IFS 5146 test -z "$as_dir" && as_dir=. 5147 for ac_exec_ext in '' $ac_executable_extensions; do 5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5149 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5151 break 2 5152 fi 5153done 5154 done 5155IFS=$as_save_IFS 5156 5157fi 5158fi 5159ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5160if test -n "$ac_ct_OBJDUMP"; then 5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5162$as_echo "$ac_ct_OBJDUMP" >&6; } 5163else 5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5165$as_echo "no" >&6; } 5166fi 5167 5168 if test "x$ac_ct_OBJDUMP" = x; then 5169 OBJDUMP="false" 5170 else 5171 case $cross_compiling:$ac_tool_warned in 5172yes:) 5173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5175ac_tool_warned=yes ;; 5176esac 5177 OBJDUMP=$ac_ct_OBJDUMP 5178 fi 5179else 5180 OBJDUMP="$ac_cv_prog_OBJDUMP" 5181fi 5182 5183test -z "$OBJDUMP" && OBJDUMP=objdump 5184 5185 5186 5187 5188 5189 5190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5191$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5192if test "${lt_cv_deplibs_check_method+set}" = set; then : 5193 $as_echo_n "(cached) " >&6 5194else 5195 lt_cv_file_magic_cmd='$MAGIC_CMD' 5196lt_cv_file_magic_test_file= 5197lt_cv_deplibs_check_method='unknown' 5198# Need to set the preceding variable on all platforms that support 5199# interlibrary dependencies. 5200# 'none' -- dependencies not supported. 5201# `unknown' -- same as none, but documents that we really don't know. 5202# 'pass_all' -- all dependencies passed with no checks. 5203# 'test_compile' -- check by making test program. 5204# 'file_magic [[regex]]' -- check by looking for files in library path 5205# which responds to the $file_magic_cmd with a given extended regex. 5206# If you have `file' or equivalent on your system and you're not sure 5207# whether `pass_all' will *always* work, you probably want this one. 5208 5209case $host_os in 5210aix[4-9]*) 5211 lt_cv_deplibs_check_method=pass_all 5212 ;; 5213 5214beos*) 5215 lt_cv_deplibs_check_method=pass_all 5216 ;; 5217 5218bsdi[45]*) 5219 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5220 lt_cv_file_magic_cmd='/usr/bin/file -L' 5221 lt_cv_file_magic_test_file=/shlib/libc.so 5222 ;; 5223 5224cygwin*) 5225 # func_win32_libid is a shell function defined in ltmain.sh 5226 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5227 lt_cv_file_magic_cmd='func_win32_libid' 5228 ;; 5229 5230mingw* | pw32*) 5231 # Base MSYS/MinGW do not provide the 'file' command needed by 5232 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5233 # unless we find 'file', for example because we are cross-compiling. 5234 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5235 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5236 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5237 lt_cv_file_magic_cmd='func_win32_libid' 5238 else 5239 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5240 lt_cv_file_magic_cmd='$OBJDUMP -f' 5241 fi 5242 ;; 5243 5244cegcc*) 5245 # use the weaker test based on 'objdump'. See mingw*. 5246 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5247 lt_cv_file_magic_cmd='$OBJDUMP -f' 5248 ;; 5249 5250darwin* | rhapsody*) 5251 lt_cv_deplibs_check_method=pass_all 5252 ;; 5253 5254freebsd* | dragonfly*) 5255 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5256 case $host_cpu in 5257 i*86 ) 5258 # Not sure whether the presence of OpenBSD here was a mistake. 5259 # Let's accept both of them until this is cleared up. 5260 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5261 lt_cv_file_magic_cmd=/usr/bin/file 5262 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5263 ;; 5264 esac 5265 else 5266 lt_cv_deplibs_check_method=pass_all 5267 fi 5268 ;; 5269 5270gnu*) 5271 lt_cv_deplibs_check_method=pass_all 5272 ;; 5273 5274haiku*) 5275 lt_cv_deplibs_check_method=pass_all 5276 ;; 5277 5278hpux10.20* | hpux11*) 5279 lt_cv_file_magic_cmd=/usr/bin/file 5280 case $host_cpu in 5281 ia64*) 5282 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5283 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5284 ;; 5285 hppa*64*) 5286 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]' 5287 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5288 ;; 5289 *) 5290 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5291 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5292 ;; 5293 esac 5294 ;; 5295 5296interix[3-9]*) 5297 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5299 ;; 5300 5301irix5* | irix6* | nonstopux*) 5302 case $LD in 5303 *-32|*"-32 ") libmagic=32-bit;; 5304 *-n32|*"-n32 ") libmagic=N32;; 5305 *-64|*"-64 ") libmagic=64-bit;; 5306 *) libmagic=never-match;; 5307 esac 5308 lt_cv_deplibs_check_method=pass_all 5309 ;; 5310 5311# This must be Linux ELF. 5312linux* | k*bsd*-gnu | kopensolaris*-gnu) 5313 lt_cv_deplibs_check_method=pass_all 5314 ;; 5315 5316netbsd*) 5317 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5319 else 5320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5321 fi 5322 ;; 5323 5324newos6*) 5325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5326 lt_cv_file_magic_cmd=/usr/bin/file 5327 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5328 ;; 5329 5330*nto* | *qnx*) 5331 lt_cv_deplibs_check_method=pass_all 5332 ;; 5333 5334openbsd*) 5335 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5337 else 5338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5339 fi 5340 ;; 5341 5342osf3* | osf4* | osf5*) 5343 lt_cv_deplibs_check_method=pass_all 5344 ;; 5345 5346rdos*) 5347 lt_cv_deplibs_check_method=pass_all 5348 ;; 5349 5350solaris*) 5351 lt_cv_deplibs_check_method=pass_all 5352 ;; 5353 5354sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5355 lt_cv_deplibs_check_method=pass_all 5356 ;; 5357 5358sysv4 | sysv4.3*) 5359 case $host_vendor in 5360 motorola) 5361 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]' 5362 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5363 ;; 5364 ncr) 5365 lt_cv_deplibs_check_method=pass_all 5366 ;; 5367 sequent) 5368 lt_cv_file_magic_cmd='/bin/file' 5369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5370 ;; 5371 sni) 5372 lt_cv_file_magic_cmd='/bin/file' 5373 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5374 lt_cv_file_magic_test_file=/lib/libc.so 5375 ;; 5376 siemens) 5377 lt_cv_deplibs_check_method=pass_all 5378 ;; 5379 pc) 5380 lt_cv_deplibs_check_method=pass_all 5381 ;; 5382 esac 5383 ;; 5384 5385tpf*) 5386 lt_cv_deplibs_check_method=pass_all 5387 ;; 5388esac 5389 5390fi 5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5392$as_echo "$lt_cv_deplibs_check_method" >&6; } 5393file_magic_cmd=$lt_cv_file_magic_cmd 5394deplibs_check_method=$lt_cv_deplibs_check_method 5395test -z "$deplibs_check_method" && deplibs_check_method=unknown 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408if test -n "$ac_tool_prefix"; then 5409 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5410set dummy ${ac_tool_prefix}ar; ac_word=$2 5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5412$as_echo_n "checking for $ac_word... " >&6; } 5413if test "${ac_cv_prog_AR+set}" = set; then : 5414 $as_echo_n "(cached) " >&6 5415else 5416 if test -n "$AR"; then 5417 ac_cv_prog_AR="$AR" # Let the user override the test. 5418else 5419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5420for as_dir in $PATH 5421do 5422 IFS=$as_save_IFS 5423 test -z "$as_dir" && as_dir=. 5424 for ac_exec_ext in '' $ac_executable_extensions; do 5425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5426 ac_cv_prog_AR="${ac_tool_prefix}ar" 5427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5428 break 2 5429 fi 5430done 5431 done 5432IFS=$as_save_IFS 5433 5434fi 5435fi 5436AR=$ac_cv_prog_AR 5437if test -n "$AR"; then 5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5439$as_echo "$AR" >&6; } 5440else 5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5442$as_echo "no" >&6; } 5443fi 5444 5445 5446fi 5447if test -z "$ac_cv_prog_AR"; then 5448 ac_ct_AR=$AR 5449 # Extract the first word of "ar", so it can be a program name with args. 5450set dummy ar; ac_word=$2 5451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5452$as_echo_n "checking for $ac_word... " >&6; } 5453if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5454 $as_echo_n "(cached) " >&6 5455else 5456 if test -n "$ac_ct_AR"; then 5457 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5458else 5459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5460for as_dir in $PATH 5461do 5462 IFS=$as_save_IFS 5463 test -z "$as_dir" && as_dir=. 5464 for ac_exec_ext in '' $ac_executable_extensions; do 5465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5466 ac_cv_prog_ac_ct_AR="ar" 5467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5468 break 2 5469 fi 5470done 5471 done 5472IFS=$as_save_IFS 5473 5474fi 5475fi 5476ac_ct_AR=$ac_cv_prog_ac_ct_AR 5477if test -n "$ac_ct_AR"; then 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5479$as_echo "$ac_ct_AR" >&6; } 5480else 5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5482$as_echo "no" >&6; } 5483fi 5484 5485 if test "x$ac_ct_AR" = x; then 5486 AR="false" 5487 else 5488 case $cross_compiling:$ac_tool_warned in 5489yes:) 5490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5492ac_tool_warned=yes ;; 5493esac 5494 AR=$ac_ct_AR 5495 fi 5496else 5497 AR="$ac_cv_prog_AR" 5498fi 5499 5500test -z "$AR" && AR=ar 5501test -z "$AR_FLAGS" && AR_FLAGS=cru 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513if test -n "$ac_tool_prefix"; then 5514 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5515set dummy ${ac_tool_prefix}strip; ac_word=$2 5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5517$as_echo_n "checking for $ac_word... " >&6; } 5518if test "${ac_cv_prog_STRIP+set}" = set; then : 5519 $as_echo_n "(cached) " >&6 5520else 5521 if test -n "$STRIP"; then 5522 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5523else 5524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5525for as_dir in $PATH 5526do 5527 IFS=$as_save_IFS 5528 test -z "$as_dir" && as_dir=. 5529 for ac_exec_ext in '' $ac_executable_extensions; do 5530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5531 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5533 break 2 5534 fi 5535done 5536 done 5537IFS=$as_save_IFS 5538 5539fi 5540fi 5541STRIP=$ac_cv_prog_STRIP 5542if test -n "$STRIP"; then 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5544$as_echo "$STRIP" >&6; } 5545else 5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5547$as_echo "no" >&6; } 5548fi 5549 5550 5551fi 5552if test -z "$ac_cv_prog_STRIP"; then 5553 ac_ct_STRIP=$STRIP 5554 # Extract the first word of "strip", so it can be a program name with args. 5555set dummy strip; ac_word=$2 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5557$as_echo_n "checking for $ac_word... " >&6; } 5558if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5559 $as_echo_n "(cached) " >&6 5560else 5561 if test -n "$ac_ct_STRIP"; then 5562 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5563else 5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5565for as_dir in $PATH 5566do 5567 IFS=$as_save_IFS 5568 test -z "$as_dir" && as_dir=. 5569 for ac_exec_ext in '' $ac_executable_extensions; do 5570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5571 ac_cv_prog_ac_ct_STRIP="strip" 5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5573 break 2 5574 fi 5575done 5576 done 5577IFS=$as_save_IFS 5578 5579fi 5580fi 5581ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5582if test -n "$ac_ct_STRIP"; then 5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5584$as_echo "$ac_ct_STRIP" >&6; } 5585else 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5587$as_echo "no" >&6; } 5588fi 5589 5590 if test "x$ac_ct_STRIP" = x; then 5591 STRIP=":" 5592 else 5593 case $cross_compiling:$ac_tool_warned in 5594yes:) 5595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5597ac_tool_warned=yes ;; 5598esac 5599 STRIP=$ac_ct_STRIP 5600 fi 5601else 5602 STRIP="$ac_cv_prog_STRIP" 5603fi 5604 5605test -z "$STRIP" && STRIP=: 5606 5607 5608 5609 5610 5611 5612if test -n "$ac_tool_prefix"; then 5613 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5614set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5616$as_echo_n "checking for $ac_word... " >&6; } 5617if test "${ac_cv_prog_RANLIB+set}" = set; then : 5618 $as_echo_n "(cached) " >&6 5619else 5620 if test -n "$RANLIB"; then 5621 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5622else 5623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5624for as_dir in $PATH 5625do 5626 IFS=$as_save_IFS 5627 test -z "$as_dir" && as_dir=. 5628 for ac_exec_ext in '' $ac_executable_extensions; do 5629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5630 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5632 break 2 5633 fi 5634done 5635 done 5636IFS=$as_save_IFS 5637 5638fi 5639fi 5640RANLIB=$ac_cv_prog_RANLIB 5641if test -n "$RANLIB"; then 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5643$as_echo "$RANLIB" >&6; } 5644else 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5646$as_echo "no" >&6; } 5647fi 5648 5649 5650fi 5651if test -z "$ac_cv_prog_RANLIB"; then 5652 ac_ct_RANLIB=$RANLIB 5653 # Extract the first word of "ranlib", so it can be a program name with args. 5654set dummy ranlib; ac_word=$2 5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5656$as_echo_n "checking for $ac_word... " >&6; } 5657if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5658 $as_echo_n "(cached) " >&6 5659else 5660 if test -n "$ac_ct_RANLIB"; then 5661 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5662else 5663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5664for as_dir in $PATH 5665do 5666 IFS=$as_save_IFS 5667 test -z "$as_dir" && as_dir=. 5668 for ac_exec_ext in '' $ac_executable_extensions; do 5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5670 ac_cv_prog_ac_ct_RANLIB="ranlib" 5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5672 break 2 5673 fi 5674done 5675 done 5676IFS=$as_save_IFS 5677 5678fi 5679fi 5680ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5681if test -n "$ac_ct_RANLIB"; then 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5683$as_echo "$ac_ct_RANLIB" >&6; } 5684else 5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5686$as_echo "no" >&6; } 5687fi 5688 5689 if test "x$ac_ct_RANLIB" = x; then 5690 RANLIB=":" 5691 else 5692 case $cross_compiling:$ac_tool_warned in 5693yes:) 5694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5696ac_tool_warned=yes ;; 5697esac 5698 RANLIB=$ac_ct_RANLIB 5699 fi 5700else 5701 RANLIB="$ac_cv_prog_RANLIB" 5702fi 5703 5704test -z "$RANLIB" && RANLIB=: 5705 5706 5707 5708 5709 5710 5711# Determine commands to create old-style static archives. 5712old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5713old_postinstall_cmds='chmod 644 $oldlib' 5714old_postuninstall_cmds= 5715 5716if test -n "$RANLIB"; then 5717 case $host_os in 5718 openbsd*) 5719 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5720 ;; 5721 *) 5722 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5723 ;; 5724 esac 5725 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5726fi 5727 5728case $host_os in 5729 darwin*) 5730 lock_old_archive_extraction=yes ;; 5731 *) 5732 lock_old_archive_extraction=no ;; 5733esac 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755for ac_prog in gawk mawk nawk awk 5756do 5757 # Extract the first word of "$ac_prog", so it can be a program name with args. 5758set dummy $ac_prog; ac_word=$2 5759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5760$as_echo_n "checking for $ac_word... " >&6; } 5761if test "${ac_cv_prog_AWK+set}" = set; then : 5762 $as_echo_n "(cached) " >&6 5763else 5764 if test -n "$AWK"; then 5765 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5766else 5767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5768for as_dir in $PATH 5769do 5770 IFS=$as_save_IFS 5771 test -z "$as_dir" && as_dir=. 5772 for ac_exec_ext in '' $ac_executable_extensions; do 5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5774 ac_cv_prog_AWK="$ac_prog" 5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5776 break 2 5777 fi 5778done 5779 done 5780IFS=$as_save_IFS 5781 5782fi 5783fi 5784AWK=$ac_cv_prog_AWK 5785if test -n "$AWK"; then 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5787$as_echo "$AWK" >&6; } 5788else 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5790$as_echo "no" >&6; } 5791fi 5792 5793 5794 test -n "$AWK" && break 5795done 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815# If no C compiler was specified, use CC. 5816LTCC=${LTCC-"$CC"} 5817 5818# If no C compiler flags were specified, use CFLAGS. 5819LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5820 5821# Allow CC to be a program name with arguments. 5822compiler=$CC 5823 5824 5825# Check for command to grab the raw symbol name followed by C symbol from nm. 5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5827$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5828if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 5829 $as_echo_n "(cached) " >&6 5830else 5831 5832# These are sane defaults that work on at least a few old systems. 5833# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5834 5835# Character class describing NM global symbol codes. 5836symcode='[BCDEGRST]' 5837 5838# Regexp to match symbols that can be accessed directly from C. 5839sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5840 5841# Define system-specific variables. 5842case $host_os in 5843aix*) 5844 symcode='[BCDT]' 5845 ;; 5846cygwin* | mingw* | pw32* | cegcc*) 5847 symcode='[ABCDGISTW]' 5848 ;; 5849hpux*) 5850 if test "$host_cpu" = ia64; then 5851 symcode='[ABCDEGRST]' 5852 fi 5853 ;; 5854irix* | nonstopux*) 5855 symcode='[BCDEGRST]' 5856 ;; 5857osf*) 5858 symcode='[BCDEGQRST]' 5859 ;; 5860solaris*) 5861 symcode='[BDRT]' 5862 ;; 5863sco3.2v5*) 5864 symcode='[DT]' 5865 ;; 5866sysv4.2uw2*) 5867 symcode='[DT]' 5868 ;; 5869sysv5* | sco5v6* | unixware* | OpenUNIX*) 5870 symcode='[ABDT]' 5871 ;; 5872sysv4) 5873 symcode='[DFNSTU]' 5874 ;; 5875esac 5876 5877# If we're using GNU nm, then use its standard symbol codes. 5878case `$NM -V 2>&1` in 5879*GNU* | *'with BFD'*) 5880 symcode='[ABCDGIRSTW]' ;; 5881esac 5882 5883# Transform an extracted symbol line into a proper C declaration. 5884# Some systems (esp. on ia64) link data and code symbols differently, 5885# so use this general approach. 5886lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5887 5888# Transform an extracted symbol line into symbol name and symbol address 5889lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5890lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5891 5892# Handle CRLF in mingw tool chain 5893opt_cr= 5894case $build_os in 5895mingw*) 5896 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5897 ;; 5898esac 5899 5900# Try without a prefix underscore, then with it. 5901for ac_symprfx in "" "_"; do 5902 5903 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5904 symxfrm="\\1 $ac_symprfx\\2 \\2" 5905 5906 # Write the raw and C identifiers. 5907 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5908 # Fake it for dumpbin and say T for any non-static function 5909 # and D for any global variable. 5910 # Also find C++ and __fastcall symbols from MSVC++, 5911 # which start with @ or ?. 5912 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5913" {last_section=section; section=\$ 3};"\ 5914" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5915" \$ 0!~/External *\|/{next};"\ 5916" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5917" {if(hide[section]) next};"\ 5918" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5919" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5920" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5921" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5922" ' prfx=^$ac_symprfx" 5923 else 5924 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5925 fi 5926 5927 # Check to see that the pipe works correctly. 5928 pipe_works=no 5929 5930 rm -f conftest* 5931 cat > conftest.$ac_ext <<_LT_EOF 5932#ifdef __cplusplus 5933extern "C" { 5934#endif 5935char nm_test_var; 5936void nm_test_func(void); 5937void nm_test_func(void){} 5938#ifdef __cplusplus 5939} 5940#endif 5941int main(){nm_test_var='a';nm_test_func();return(0);} 5942_LT_EOF 5943 5944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5945 (eval $ac_compile) 2>&5 5946 ac_status=$? 5947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5948 test $ac_status = 0; }; then 5949 # Now try to grab the symbols. 5950 nlist=conftest.nm 5951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5952 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5953 ac_status=$? 5954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5955 test $ac_status = 0; } && test -s "$nlist"; then 5956 # Try sorting and uniquifying the output. 5957 if sort "$nlist" | uniq > "$nlist"T; then 5958 mv -f "$nlist"T "$nlist" 5959 else 5960 rm -f "$nlist"T 5961 fi 5962 5963 # Make sure that we snagged all the symbols we need. 5964 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5965 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5966 cat <<_LT_EOF > conftest.$ac_ext 5967#ifdef __cplusplus 5968extern "C" { 5969#endif 5970 5971_LT_EOF 5972 # Now generate the symbol file. 5973 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5974 5975 cat <<_LT_EOF >> conftest.$ac_ext 5976 5977/* The mapping between symbol names and symbols. */ 5978const struct { 5979 const char *name; 5980 void *address; 5981} 5982lt__PROGRAM__LTX_preloaded_symbols[] = 5983{ 5984 { "@PROGRAM@", (void *) 0 }, 5985_LT_EOF 5986 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5987 cat <<\_LT_EOF >> conftest.$ac_ext 5988 {0, (void *) 0} 5989}; 5990 5991/* This works around a problem in FreeBSD linker */ 5992#ifdef FREEBSD_WORKAROUND 5993static const void *lt_preloaded_setup() { 5994 return lt__PROGRAM__LTX_preloaded_symbols; 5995} 5996#endif 5997 5998#ifdef __cplusplus 5999} 6000#endif 6001_LT_EOF 6002 # Now try linking the two files. 6003 mv conftest.$ac_objext conftstm.$ac_objext 6004 lt_save_LIBS="$LIBS" 6005 lt_save_CFLAGS="$CFLAGS" 6006 LIBS="conftstm.$ac_objext" 6007 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6009 (eval $ac_link) 2>&5 6010 ac_status=$? 6011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6012 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6013 pipe_works=yes 6014 fi 6015 LIBS="$lt_save_LIBS" 6016 CFLAGS="$lt_save_CFLAGS" 6017 else 6018 echo "cannot find nm_test_func in $nlist" >&5 6019 fi 6020 else 6021 echo "cannot find nm_test_var in $nlist" >&5 6022 fi 6023 else 6024 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6025 fi 6026 else 6027 echo "$progname: failed program was:" >&5 6028 cat conftest.$ac_ext >&5 6029 fi 6030 rm -rf conftest* conftst* 6031 6032 # Do not use the global_symbol_pipe unless it works. 6033 if test "$pipe_works" = yes; then 6034 break 6035 else 6036 lt_cv_sys_global_symbol_pipe= 6037 fi 6038done 6039 6040fi 6041 6042if test -z "$lt_cv_sys_global_symbol_pipe"; then 6043 lt_cv_sys_global_symbol_to_cdecl= 6044fi 6045if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6047$as_echo "failed" >&6; } 6048else 6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6050$as_echo "ok" >&6; } 6051fi 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074# Check whether --enable-libtool-lock was given. 6075if test "${enable_libtool_lock+set}" = set; then : 6076 enableval=$enable_libtool_lock; 6077fi 6078 6079test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6080 6081# Some flags need to be propagated to the compiler or linker for good 6082# libtool support. 6083case $host in 6084ia64-*-hpux*) 6085 # Find out which ABI we are using. 6086 echo 'int i;' > conftest.$ac_ext 6087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6088 (eval $ac_compile) 2>&5 6089 ac_status=$? 6090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6091 test $ac_status = 0; }; then 6092 case `/usr/bin/file conftest.$ac_objext` in 6093 *ELF-32*) 6094 HPUX_IA64_MODE="32" 6095 ;; 6096 *ELF-64*) 6097 HPUX_IA64_MODE="64" 6098 ;; 6099 esac 6100 fi 6101 rm -rf conftest* 6102 ;; 6103*-*-irix6*) 6104 # Find out which ABI we are using. 6105 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6107 (eval $ac_compile) 2>&5 6108 ac_status=$? 6109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6110 test $ac_status = 0; }; then 6111 if test "$lt_cv_prog_gnu_ld" = yes; then 6112 case `/usr/bin/file conftest.$ac_objext` in 6113 *32-bit*) 6114 LD="${LD-ld} -melf32bsmip" 6115 ;; 6116 *N32*) 6117 LD="${LD-ld} -melf32bmipn32" 6118 ;; 6119 *64-bit*) 6120 LD="${LD-ld} -melf64bmip" 6121 ;; 6122 esac 6123 else 6124 case `/usr/bin/file conftest.$ac_objext` in 6125 *32-bit*) 6126 LD="${LD-ld} -32" 6127 ;; 6128 *N32*) 6129 LD="${LD-ld} -n32" 6130 ;; 6131 *64-bit*) 6132 LD="${LD-ld} -64" 6133 ;; 6134 esac 6135 fi 6136 fi 6137 rm -rf conftest* 6138 ;; 6139 6140x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6141s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6142 # Find out which ABI we are using. 6143 echo 'int i;' > conftest.$ac_ext 6144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6145 (eval $ac_compile) 2>&5 6146 ac_status=$? 6147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6148 test $ac_status = 0; }; then 6149 case `/usr/bin/file conftest.o` in 6150 *32-bit*) 6151 case $host in 6152 x86_64-*kfreebsd*-gnu) 6153 LD="${LD-ld} -m elf_i386_fbsd" 6154 ;; 6155 x86_64-*linux*) 6156 case `/usr/bin/file conftest.o` in 6157 *x86-64*) 6158 LD="${LD-ld} -m elf32_x86_64" 6159 ;; 6160 *) 6161 LD="${LD-ld} -m elf_i386" 6162 ;; 6163 esac 6164 ;; 6165 powerpc64le-*linux*) 6166 LD="${LD-ld} -m elf32lppclinux" 6167 ;; 6168 powerpc64-*linux*) 6169 LD="${LD-ld} -m elf32ppclinux" 6170 ;; 6171 s390x-*linux*) 6172 LD="${LD-ld} -m elf_s390" 6173 ;; 6174 sparc64-*linux*) 6175 LD="${LD-ld} -m elf32_sparc" 6176 ;; 6177 esac 6178 ;; 6179 *64-bit*) 6180 case $host in 6181 x86_64-*kfreebsd*-gnu) 6182 LD="${LD-ld} -m elf_x86_64_fbsd" 6183 ;; 6184 x86_64-*linux*) 6185 LD="${LD-ld} -m elf_x86_64" 6186 ;; 6187 powerpcle-*linux*) 6188 LD="${LD-ld} -m elf64lppc" 6189 ;; 6190 powerpc-*linux*) 6191 LD="${LD-ld} -m elf64ppc" 6192 ;; 6193 s390*-*linux*|s390*-*tpf*) 6194 LD="${LD-ld} -m elf64_s390" 6195 ;; 6196 sparc*-*linux*) 6197 LD="${LD-ld} -m elf64_sparc" 6198 ;; 6199 esac 6200 ;; 6201 esac 6202 fi 6203 rm -rf conftest* 6204 ;; 6205 6206*-*-sco3.2v5*) 6207 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6208 SAVE_CFLAGS="$CFLAGS" 6209 CFLAGS="$CFLAGS -belf" 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6211$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6212if test "${lt_cv_cc_needs_belf+set}" = set; then : 6213 $as_echo_n "(cached) " >&6 6214else 6215 ac_ext=c 6216ac_cpp='$CPP $CPPFLAGS' 6217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6219ac_compiler_gnu=$ac_cv_c_compiler_gnu 6220 6221 if test x$gcc_no_link = xyes; then 6222 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 6223fi 6224cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6225/* end confdefs.h. */ 6226 6227int 6228main () 6229{ 6230 6231 ; 6232 return 0; 6233} 6234_ACEOF 6235if ac_fn_c_try_link "$LINENO"; then : 6236 lt_cv_cc_needs_belf=yes 6237else 6238 lt_cv_cc_needs_belf=no 6239fi 6240rm -f core conftest.err conftest.$ac_objext \ 6241 conftest$ac_exeext conftest.$ac_ext 6242 ac_ext=c 6243ac_cpp='$CPP $CPPFLAGS' 6244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6246ac_compiler_gnu=$ac_cv_c_compiler_gnu 6247 6248fi 6249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6250$as_echo "$lt_cv_cc_needs_belf" >&6; } 6251 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6252 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6253 CFLAGS="$SAVE_CFLAGS" 6254 fi 6255 ;; 6256sparc*-*solaris*) 6257 # Find out which ABI we are using. 6258 echo 'int i;' > conftest.$ac_ext 6259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6260 (eval $ac_compile) 2>&5 6261 ac_status=$? 6262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6263 test $ac_status = 0; }; then 6264 case `/usr/bin/file conftest.o` in 6265 *64-bit*) 6266 case $lt_cv_prog_gnu_ld in 6267 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6268 *) 6269 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6270 LD="${LD-ld} -64" 6271 fi 6272 ;; 6273 esac 6274 ;; 6275 esac 6276 fi 6277 rm -rf conftest* 6278 ;; 6279esac 6280 6281need_locks="$enable_libtool_lock" 6282 6283 6284 case $host_os in 6285 rhapsody* | darwin*) 6286 if test -n "$ac_tool_prefix"; then 6287 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6288set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6290$as_echo_n "checking for $ac_word... " >&6; } 6291if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6292 $as_echo_n "(cached) " >&6 6293else 6294 if test -n "$DSYMUTIL"; then 6295 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6296else 6297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6298for as_dir in $PATH 6299do 6300 IFS=$as_save_IFS 6301 test -z "$as_dir" && as_dir=. 6302 for ac_exec_ext in '' $ac_executable_extensions; do 6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6304 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6306 break 2 6307 fi 6308done 6309 done 6310IFS=$as_save_IFS 6311 6312fi 6313fi 6314DSYMUTIL=$ac_cv_prog_DSYMUTIL 6315if test -n "$DSYMUTIL"; then 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6317$as_echo "$DSYMUTIL" >&6; } 6318else 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6320$as_echo "no" >&6; } 6321fi 6322 6323 6324fi 6325if test -z "$ac_cv_prog_DSYMUTIL"; then 6326 ac_ct_DSYMUTIL=$DSYMUTIL 6327 # Extract the first word of "dsymutil", so it can be a program name with args. 6328set dummy dsymutil; ac_word=$2 6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6330$as_echo_n "checking for $ac_word... " >&6; } 6331if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6332 $as_echo_n "(cached) " >&6 6333else 6334 if test -n "$ac_ct_DSYMUTIL"; then 6335 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6336else 6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6338for as_dir in $PATH 6339do 6340 IFS=$as_save_IFS 6341 test -z "$as_dir" && as_dir=. 6342 for ac_exec_ext in '' $ac_executable_extensions; do 6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6344 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6346 break 2 6347 fi 6348done 6349 done 6350IFS=$as_save_IFS 6351 6352fi 6353fi 6354ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6355if test -n "$ac_ct_DSYMUTIL"; then 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6357$as_echo "$ac_ct_DSYMUTIL" >&6; } 6358else 6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6360$as_echo "no" >&6; } 6361fi 6362 6363 if test "x$ac_ct_DSYMUTIL" = x; then 6364 DSYMUTIL=":" 6365 else 6366 case $cross_compiling:$ac_tool_warned in 6367yes:) 6368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6370ac_tool_warned=yes ;; 6371esac 6372 DSYMUTIL=$ac_ct_DSYMUTIL 6373 fi 6374else 6375 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6376fi 6377 6378 if test -n "$ac_tool_prefix"; then 6379 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6380set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6382$as_echo_n "checking for $ac_word... " >&6; } 6383if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6384 $as_echo_n "(cached) " >&6 6385else 6386 if test -n "$NMEDIT"; then 6387 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6388else 6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6390for as_dir in $PATH 6391do 6392 IFS=$as_save_IFS 6393 test -z "$as_dir" && as_dir=. 6394 for ac_exec_ext in '' $ac_executable_extensions; do 6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6396 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6398 break 2 6399 fi 6400done 6401 done 6402IFS=$as_save_IFS 6403 6404fi 6405fi 6406NMEDIT=$ac_cv_prog_NMEDIT 6407if test -n "$NMEDIT"; then 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6409$as_echo "$NMEDIT" >&6; } 6410else 6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6412$as_echo "no" >&6; } 6413fi 6414 6415 6416fi 6417if test -z "$ac_cv_prog_NMEDIT"; then 6418 ac_ct_NMEDIT=$NMEDIT 6419 # Extract the first word of "nmedit", so it can be a program name with args. 6420set dummy nmedit; ac_word=$2 6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6422$as_echo_n "checking for $ac_word... " >&6; } 6423if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6424 $as_echo_n "(cached) " >&6 6425else 6426 if test -n "$ac_ct_NMEDIT"; then 6427 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6428else 6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6430for as_dir in $PATH 6431do 6432 IFS=$as_save_IFS 6433 test -z "$as_dir" && as_dir=. 6434 for ac_exec_ext in '' $ac_executable_extensions; do 6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6436 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6438 break 2 6439 fi 6440done 6441 done 6442IFS=$as_save_IFS 6443 6444fi 6445fi 6446ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6447if test -n "$ac_ct_NMEDIT"; then 6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6449$as_echo "$ac_ct_NMEDIT" >&6; } 6450else 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6452$as_echo "no" >&6; } 6453fi 6454 6455 if test "x$ac_ct_NMEDIT" = x; then 6456 NMEDIT=":" 6457 else 6458 case $cross_compiling:$ac_tool_warned in 6459yes:) 6460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6462ac_tool_warned=yes ;; 6463esac 6464 NMEDIT=$ac_ct_NMEDIT 6465 fi 6466else 6467 NMEDIT="$ac_cv_prog_NMEDIT" 6468fi 6469 6470 if test -n "$ac_tool_prefix"; then 6471 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6472set dummy ${ac_tool_prefix}lipo; ac_word=$2 6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6474$as_echo_n "checking for $ac_word... " >&6; } 6475if test "${ac_cv_prog_LIPO+set}" = set; then : 6476 $as_echo_n "(cached) " >&6 6477else 6478 if test -n "$LIPO"; then 6479 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6480else 6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6482for as_dir in $PATH 6483do 6484 IFS=$as_save_IFS 6485 test -z "$as_dir" && as_dir=. 6486 for ac_exec_ext in '' $ac_executable_extensions; do 6487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6488 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6490 break 2 6491 fi 6492done 6493 done 6494IFS=$as_save_IFS 6495 6496fi 6497fi 6498LIPO=$ac_cv_prog_LIPO 6499if test -n "$LIPO"; then 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6501$as_echo "$LIPO" >&6; } 6502else 6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6504$as_echo "no" >&6; } 6505fi 6506 6507 6508fi 6509if test -z "$ac_cv_prog_LIPO"; then 6510 ac_ct_LIPO=$LIPO 6511 # Extract the first word of "lipo", so it can be a program name with args. 6512set dummy lipo; ac_word=$2 6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6514$as_echo_n "checking for $ac_word... " >&6; } 6515if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6516 $as_echo_n "(cached) " >&6 6517else 6518 if test -n "$ac_ct_LIPO"; then 6519 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6520else 6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6522for as_dir in $PATH 6523do 6524 IFS=$as_save_IFS 6525 test -z "$as_dir" && as_dir=. 6526 for ac_exec_ext in '' $ac_executable_extensions; do 6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6528 ac_cv_prog_ac_ct_LIPO="lipo" 6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6530 break 2 6531 fi 6532done 6533 done 6534IFS=$as_save_IFS 6535 6536fi 6537fi 6538ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6539if test -n "$ac_ct_LIPO"; then 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6541$as_echo "$ac_ct_LIPO" >&6; } 6542else 6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6544$as_echo "no" >&6; } 6545fi 6546 6547 if test "x$ac_ct_LIPO" = x; then 6548 LIPO=":" 6549 else 6550 case $cross_compiling:$ac_tool_warned in 6551yes:) 6552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6554ac_tool_warned=yes ;; 6555esac 6556 LIPO=$ac_ct_LIPO 6557 fi 6558else 6559 LIPO="$ac_cv_prog_LIPO" 6560fi 6561 6562 if test -n "$ac_tool_prefix"; then 6563 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6564set dummy ${ac_tool_prefix}otool; ac_word=$2 6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6566$as_echo_n "checking for $ac_word... " >&6; } 6567if test "${ac_cv_prog_OTOOL+set}" = set; then : 6568 $as_echo_n "(cached) " >&6 6569else 6570 if test -n "$OTOOL"; then 6571 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6572else 6573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6574for as_dir in $PATH 6575do 6576 IFS=$as_save_IFS 6577 test -z "$as_dir" && as_dir=. 6578 for ac_exec_ext in '' $ac_executable_extensions; do 6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6580 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6582 break 2 6583 fi 6584done 6585 done 6586IFS=$as_save_IFS 6587 6588fi 6589fi 6590OTOOL=$ac_cv_prog_OTOOL 6591if test -n "$OTOOL"; then 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6593$as_echo "$OTOOL" >&6; } 6594else 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6596$as_echo "no" >&6; } 6597fi 6598 6599 6600fi 6601if test -z "$ac_cv_prog_OTOOL"; then 6602 ac_ct_OTOOL=$OTOOL 6603 # Extract the first word of "otool", so it can be a program name with args. 6604set dummy otool; ac_word=$2 6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6606$as_echo_n "checking for $ac_word... " >&6; } 6607if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6608 $as_echo_n "(cached) " >&6 6609else 6610 if test -n "$ac_ct_OTOOL"; then 6611 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6612else 6613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6614for as_dir in $PATH 6615do 6616 IFS=$as_save_IFS 6617 test -z "$as_dir" && as_dir=. 6618 for ac_exec_ext in '' $ac_executable_extensions; do 6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6620 ac_cv_prog_ac_ct_OTOOL="otool" 6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6622 break 2 6623 fi 6624done 6625 done 6626IFS=$as_save_IFS 6627 6628fi 6629fi 6630ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6631if test -n "$ac_ct_OTOOL"; then 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6633$as_echo "$ac_ct_OTOOL" >&6; } 6634else 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6636$as_echo "no" >&6; } 6637fi 6638 6639 if test "x$ac_ct_OTOOL" = x; then 6640 OTOOL=":" 6641 else 6642 case $cross_compiling:$ac_tool_warned in 6643yes:) 6644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6646ac_tool_warned=yes ;; 6647esac 6648 OTOOL=$ac_ct_OTOOL 6649 fi 6650else 6651 OTOOL="$ac_cv_prog_OTOOL" 6652fi 6653 6654 if test -n "$ac_tool_prefix"; then 6655 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6656set dummy ${ac_tool_prefix}otool64; ac_word=$2 6657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6658$as_echo_n "checking for $ac_word... " >&6; } 6659if test "${ac_cv_prog_OTOOL64+set}" = set; then : 6660 $as_echo_n "(cached) " >&6 6661else 6662 if test -n "$OTOOL64"; then 6663 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6664else 6665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6666for as_dir in $PATH 6667do 6668 IFS=$as_save_IFS 6669 test -z "$as_dir" && as_dir=. 6670 for ac_exec_ext in '' $ac_executable_extensions; do 6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6672 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6674 break 2 6675 fi 6676done 6677 done 6678IFS=$as_save_IFS 6679 6680fi 6681fi 6682OTOOL64=$ac_cv_prog_OTOOL64 6683if test -n "$OTOOL64"; then 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6685$as_echo "$OTOOL64" >&6; } 6686else 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6688$as_echo "no" >&6; } 6689fi 6690 6691 6692fi 6693if test -z "$ac_cv_prog_OTOOL64"; then 6694 ac_ct_OTOOL64=$OTOOL64 6695 # Extract the first word of "otool64", so it can be a program name with args. 6696set dummy otool64; ac_word=$2 6697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6698$as_echo_n "checking for $ac_word... " >&6; } 6699if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 6700 $as_echo_n "(cached) " >&6 6701else 6702 if test -n "$ac_ct_OTOOL64"; then 6703 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6704else 6705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6706for as_dir in $PATH 6707do 6708 IFS=$as_save_IFS 6709 test -z "$as_dir" && as_dir=. 6710 for ac_exec_ext in '' $ac_executable_extensions; do 6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6712 ac_cv_prog_ac_ct_OTOOL64="otool64" 6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6714 break 2 6715 fi 6716done 6717 done 6718IFS=$as_save_IFS 6719 6720fi 6721fi 6722ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6723if test -n "$ac_ct_OTOOL64"; then 6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6725$as_echo "$ac_ct_OTOOL64" >&6; } 6726else 6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6728$as_echo "no" >&6; } 6729fi 6730 6731 if test "x$ac_ct_OTOOL64" = x; then 6732 OTOOL64=":" 6733 else 6734 case $cross_compiling:$ac_tool_warned in 6735yes:) 6736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6738ac_tool_warned=yes ;; 6739esac 6740 OTOOL64=$ac_ct_OTOOL64 6741 fi 6742else 6743 OTOOL64="$ac_cv_prog_OTOOL64" 6744fi 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6773$as_echo_n "checking for -single_module linker flag... " >&6; } 6774if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 6775 $as_echo_n "(cached) " >&6 6776else 6777 lt_cv_apple_cc_single_mod=no 6778 if test -z "${LT_MULTI_MODULE}"; then 6779 # By default we will add the -single_module flag. You can override 6780 # by either setting the environment variable LT_MULTI_MODULE 6781 # non-empty at configure time, or by adding -multi_module to the 6782 # link flags. 6783 rm -rf libconftest.dylib* 6784 echo "int foo(void){return 1;}" > conftest.c 6785 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6786-dynamiclib -Wl,-single_module conftest.c" >&5 6787 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6788 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6789 _lt_result=$? 6790 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6791 lt_cv_apple_cc_single_mod=yes 6792 else 6793 cat conftest.err >&5 6794 fi 6795 rm -rf libconftest.dylib* 6796 rm -f conftest.* 6797 fi 6798fi 6799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6800$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6802$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6803if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 6804 $as_echo_n "(cached) " >&6 6805else 6806 lt_cv_ld_exported_symbols_list=no 6807 save_LDFLAGS=$LDFLAGS 6808 echo "_main" > conftest.sym 6809 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6810 if test x$gcc_no_link = xyes; then 6811 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 6812fi 6813cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6814/* end confdefs.h. */ 6815 6816int 6817main () 6818{ 6819 6820 ; 6821 return 0; 6822} 6823_ACEOF 6824if ac_fn_c_try_link "$LINENO"; then : 6825 lt_cv_ld_exported_symbols_list=yes 6826else 6827 lt_cv_ld_exported_symbols_list=no 6828fi 6829rm -f core conftest.err conftest.$ac_objext \ 6830 conftest$ac_exeext conftest.$ac_ext 6831 LDFLAGS="$save_LDFLAGS" 6832 6833fi 6834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6835$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6837$as_echo_n "checking for -force_load linker flag... " >&6; } 6838if test "${lt_cv_ld_force_load+set}" = set; then : 6839 $as_echo_n "(cached) " >&6 6840else 6841 lt_cv_ld_force_load=no 6842 cat > conftest.c << _LT_EOF 6843int forced_loaded() { return 2;} 6844_LT_EOF 6845 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6846 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6847 echo "$AR cru libconftest.a conftest.o" >&5 6848 $AR cru libconftest.a conftest.o 2>&5 6849 cat > conftest.c << _LT_EOF 6850int main() { return 0;} 6851_LT_EOF 6852 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6853 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6854 _lt_result=$? 6855 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 6856 lt_cv_ld_force_load=yes 6857 else 6858 cat conftest.err >&5 6859 fi 6860 rm -f conftest.err libconftest.a conftest conftest.c 6861 rm -rf conftest.dSYM 6862 6863fi 6864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6865$as_echo "$lt_cv_ld_force_load" >&6; } 6866 case $host_os in 6867 rhapsody* | darwin1.[012]) 6868 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6869 darwin1.*) 6870 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6871 darwin*) # darwin 5.x on 6872 # if running on 10.5 or later, the deployment target defaults 6873 # to the OS version, if on x86, and 10.4, the deployment 6874 # target defaults to 10.4. Don't you love it? 6875 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6876 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6877 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6878 10.[012][,.]*) 6879 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6880 10.*) 6881 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6882 esac 6883 ;; 6884 esac 6885 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6886 _lt_dar_single_mod='$single_module' 6887 fi 6888 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6889 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6890 else 6891 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6892 fi 6893 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 6894 _lt_dsymutil='~$DSYMUTIL $lib || :' 6895 else 6896 _lt_dsymutil= 6897 fi 6898 ;; 6899 esac 6900 6901ac_ext=c 6902ac_cpp='$CPP $CPPFLAGS' 6903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6905ac_compiler_gnu=$ac_cv_c_compiler_gnu 6906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6907$as_echo_n "checking how to run the C preprocessor... " >&6; } 6908# On Suns, sometimes $CPP names a directory. 6909if test -n "$CPP" && test -d "$CPP"; then 6910 CPP= 6911fi 6912if test -z "$CPP"; then 6913 if test "${ac_cv_prog_CPP+set}" = set; then : 6914 $as_echo_n "(cached) " >&6 6915else 6916 # Double quotes because CPP needs to be expanded 6917 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6918 do 6919 ac_preproc_ok=false 6920for ac_c_preproc_warn_flag in '' yes 6921do 6922 # Use a header file that comes with gcc, so configuring glibc 6923 # with a fresh cross-compiler works. 6924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6925 # <limits.h> exists even on freestanding compilers. 6926 # On the NeXT, cc -E runs the code through the compiler's parser, 6927 # not just through cpp. "Syntax error" is here to catch this case. 6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6929/* end confdefs.h. */ 6930#ifdef __STDC__ 6931# include <limits.h> 6932#else 6933# include <assert.h> 6934#endif 6935 Syntax error 6936_ACEOF 6937if ac_fn_c_try_cpp "$LINENO"; then : 6938 6939else 6940 # Broken: fails on valid input. 6941continue 6942fi 6943rm -f conftest.err conftest.$ac_ext 6944 6945 # OK, works on sane cases. Now check whether nonexistent headers 6946 # can be detected and how. 6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6948/* end confdefs.h. */ 6949#include <ac_nonexistent.h> 6950_ACEOF 6951if ac_fn_c_try_cpp "$LINENO"; then : 6952 # Broken: success on invalid input. 6953continue 6954else 6955 # Passes both tests. 6956ac_preproc_ok=: 6957break 6958fi 6959rm -f conftest.err conftest.$ac_ext 6960 6961done 6962# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6963rm -f conftest.err conftest.$ac_ext 6964if $ac_preproc_ok; then : 6965 break 6966fi 6967 6968 done 6969 ac_cv_prog_CPP=$CPP 6970 6971fi 6972 CPP=$ac_cv_prog_CPP 6973else 6974 ac_cv_prog_CPP=$CPP 6975fi 6976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6977$as_echo "$CPP" >&6; } 6978ac_preproc_ok=false 6979for ac_c_preproc_warn_flag in '' yes 6980do 6981 # Use a header file that comes with gcc, so configuring glibc 6982 # with a fresh cross-compiler works. 6983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6984 # <limits.h> exists even on freestanding compilers. 6985 # On the NeXT, cc -E runs the code through the compiler's parser, 6986 # not just through cpp. "Syntax error" is here to catch this case. 6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6988/* end confdefs.h. */ 6989#ifdef __STDC__ 6990# include <limits.h> 6991#else 6992# include <assert.h> 6993#endif 6994 Syntax error 6995_ACEOF 6996if ac_fn_c_try_cpp "$LINENO"; then : 6997 6998else 6999 # Broken: fails on valid input. 7000continue 7001fi 7002rm -f conftest.err conftest.$ac_ext 7003 7004 # OK, works on sane cases. Now check whether nonexistent headers 7005 # can be detected and how. 7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7007/* end confdefs.h. */ 7008#include <ac_nonexistent.h> 7009_ACEOF 7010if ac_fn_c_try_cpp "$LINENO"; then : 7011 # Broken: success on invalid input. 7012continue 7013else 7014 # Passes both tests. 7015ac_preproc_ok=: 7016break 7017fi 7018rm -f conftest.err conftest.$ac_ext 7019 7020done 7021# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7022rm -f conftest.err conftest.$ac_ext 7023if $ac_preproc_ok; then : 7024 7025else 7026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7027$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7028as_fn_error "C preprocessor \"$CPP\" fails sanity check 7029See \`config.log' for more details." "$LINENO" 5; } 7030fi 7031 7032ac_ext=c 7033ac_cpp='$CPP $CPPFLAGS' 7034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7036ac_compiler_gnu=$ac_cv_c_compiler_gnu 7037 7038 7039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7040$as_echo_n "checking for ANSI C header files... " >&6; } 7041if test "${ac_cv_header_stdc+set}" = set; then : 7042 $as_echo_n "(cached) " >&6 7043else 7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7045/* end confdefs.h. */ 7046#include <stdlib.h> 7047#include <stdarg.h> 7048#include <string.h> 7049#include <float.h> 7050 7051int 7052main () 7053{ 7054 7055 ; 7056 return 0; 7057} 7058_ACEOF 7059if ac_fn_c_try_compile "$LINENO"; then : 7060 ac_cv_header_stdc=yes 7061else 7062 ac_cv_header_stdc=no 7063fi 7064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7065 7066if test $ac_cv_header_stdc = yes; then 7067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7069/* end confdefs.h. */ 7070#include <string.h> 7071 7072_ACEOF 7073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7074 $EGREP "memchr" >/dev/null 2>&1; then : 7075 7076else 7077 ac_cv_header_stdc=no 7078fi 7079rm -f conftest* 7080 7081fi 7082 7083if test $ac_cv_header_stdc = yes; then 7084 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7086/* end confdefs.h. */ 7087#include <stdlib.h> 7088 7089_ACEOF 7090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7091 $EGREP "free" >/dev/null 2>&1; then : 7092 7093else 7094 ac_cv_header_stdc=no 7095fi 7096rm -f conftest* 7097 7098fi 7099 7100if test $ac_cv_header_stdc = yes; then 7101 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7102 if test "$cross_compiling" = yes; then : 7103 : 7104else 7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7106/* end confdefs.h. */ 7107#include <ctype.h> 7108#include <stdlib.h> 7109#if ((' ' & 0x0FF) == 0x020) 7110# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7111# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7112#else 7113# define ISLOWER(c) \ 7114 (('a' <= (c) && (c) <= 'i') \ 7115 || ('j' <= (c) && (c) <= 'r') \ 7116 || ('s' <= (c) && (c) <= 'z')) 7117# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7118#endif 7119 7120#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7121int 7122main () 7123{ 7124 int i; 7125 for (i = 0; i < 256; i++) 7126 if (XOR (islower (i), ISLOWER (i)) 7127 || toupper (i) != TOUPPER (i)) 7128 return 2; 7129 return 0; 7130} 7131_ACEOF 7132if ac_fn_c_try_run "$LINENO"; then : 7133 7134else 7135 ac_cv_header_stdc=no 7136fi 7137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7138 conftest.$ac_objext conftest.beam conftest.$ac_ext 7139fi 7140 7141fi 7142fi 7143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7144$as_echo "$ac_cv_header_stdc" >&6; } 7145if test $ac_cv_header_stdc = yes; then 7146 7147$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7148 7149fi 7150 7151# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7152for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7153 inttypes.h stdint.h unistd.h 7154do : 7155 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7156ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7157" 7158eval as_val=\$$as_ac_Header 7159 if test "x$as_val" = x""yes; then : 7160 cat >>confdefs.h <<_ACEOF 7161#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7162_ACEOF 7163 7164fi 7165 7166done 7167 7168 7169for ac_header in dlfcn.h 7170do : 7171 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7172" 7173if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7174 cat >>confdefs.h <<_ACEOF 7175#define HAVE_DLFCN_H 1 7176_ACEOF 7177 7178fi 7179 7180done 7181 7182 7183 7184 7185 7186# Set options 7187 7188 7189 7190 enable_dlopen=no 7191 7192 7193 7194 # Check whether --enable-shared was given. 7195if test "${enable_shared+set}" = set; then : 7196 enableval=$enable_shared; p=${PACKAGE-default} 7197 case $enableval in 7198 yes) enable_shared=yes ;; 7199 no) enable_shared=no ;; 7200 *) 7201 enable_shared=no 7202 # Look at the argument we got. We use all the common list separators. 7203 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7204 for pkg in $enableval; do 7205 IFS="$lt_save_ifs" 7206 if test "X$pkg" = "X$p"; then 7207 enable_shared=yes 7208 fi 7209 done 7210 IFS="$lt_save_ifs" 7211 ;; 7212 esac 7213else 7214 enable_shared=yes 7215fi 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 # Check whether --enable-static was given. 7226if test "${enable_static+set}" = set; then : 7227 enableval=$enable_static; p=${PACKAGE-default} 7228 case $enableval in 7229 yes) enable_static=yes ;; 7230 no) enable_static=no ;; 7231 *) 7232 enable_static=no 7233 # Look at the argument we got. We use all the common list separators. 7234 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7235 for pkg in $enableval; do 7236 IFS="$lt_save_ifs" 7237 if test "X$pkg" = "X$p"; then 7238 enable_static=yes 7239 fi 7240 done 7241 IFS="$lt_save_ifs" 7242 ;; 7243 esac 7244else 7245 enable_static=yes 7246fi 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257# Check whether --with-pic was given. 7258if test "${with_pic+set}" = set; then : 7259 withval=$with_pic; pic_mode="$withval" 7260else 7261 pic_mode=default 7262fi 7263 7264 7265test -z "$pic_mode" && pic_mode=default 7266 7267 7268 7269 7270 7271 7272 7273 # Check whether --enable-fast-install was given. 7274if test "${enable_fast_install+set}" = set; then : 7275 enableval=$enable_fast_install; p=${PACKAGE-default} 7276 case $enableval in 7277 yes) enable_fast_install=yes ;; 7278 no) enable_fast_install=no ;; 7279 *) 7280 enable_fast_install=no 7281 # Look at the argument we got. We use all the common list separators. 7282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7283 for pkg in $enableval; do 7284 IFS="$lt_save_ifs" 7285 if test "X$pkg" = "X$p"; then 7286 enable_fast_install=yes 7287 fi 7288 done 7289 IFS="$lt_save_ifs" 7290 ;; 7291 esac 7292else 7293 enable_fast_install=yes 7294fi 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306# This can be used to rebuild libtool when needed 7307LIBTOOL_DEPS="$ltmain" 7308 7309# Always use our own libtool. 7310LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337test -z "$LN_S" && LN_S="ln -s" 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352if test -n "${ZSH_VERSION+set}" ; then 7353 setopt NO_GLOB_SUBST 7354fi 7355 7356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7357$as_echo_n "checking for objdir... " >&6; } 7358if test "${lt_cv_objdir+set}" = set; then : 7359 $as_echo_n "(cached) " >&6 7360else 7361 rm -f .libs 2>/dev/null 7362mkdir .libs 2>/dev/null 7363if test -d .libs; then 7364 lt_cv_objdir=.libs 7365else 7366 # MS-DOS does not allow filenames that begin with a dot. 7367 lt_cv_objdir=_libs 7368fi 7369rmdir .libs 2>/dev/null 7370fi 7371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7372$as_echo "$lt_cv_objdir" >&6; } 7373objdir=$lt_cv_objdir 7374 7375 7376 7377 7378 7379cat >>confdefs.h <<_ACEOF 7380#define LT_OBJDIR "$lt_cv_objdir/" 7381_ACEOF 7382 7383 7384 7385 7386case $host_os in 7387aix3*) 7388 # AIX sometimes has problems with the GCC collect2 program. For some 7389 # reason, if we set the COLLECT_NAMES environment variable, the problems 7390 # vanish in a puff of smoke. 7391 if test "X${COLLECT_NAMES+set}" != Xset; then 7392 COLLECT_NAMES= 7393 export COLLECT_NAMES 7394 fi 7395 ;; 7396esac 7397 7398# Global variables: 7399ofile=libtool 7400can_build_shared=yes 7401 7402# All known linkers require a `.a' archive for static linking (except MSVC, 7403# which needs '.lib'). 7404libext=a 7405 7406with_gnu_ld="$lt_cv_prog_gnu_ld" 7407 7408old_CC="$CC" 7409old_CFLAGS="$CFLAGS" 7410 7411# Set sane defaults for various variables 7412test -z "$CC" && CC=cc 7413test -z "$LTCC" && LTCC=$CC 7414test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7415test -z "$LD" && LD=ld 7416test -z "$ac_objext" && ac_objext=o 7417 7418for cc_temp in $compiler""; do 7419 case $cc_temp in 7420 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7421 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7422 \-*) ;; 7423 *) break;; 7424 esac 7425done 7426cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7427 7428 7429# Only perform the check for file, if the check method requires it 7430test -z "$MAGIC_CMD" && MAGIC_CMD=file 7431case $deplibs_check_method in 7432file_magic*) 7433 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7435$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7436if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7437 $as_echo_n "(cached) " >&6 7438else 7439 case $MAGIC_CMD in 7440[\\/*] | ?:[\\/]*) 7441 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7442 ;; 7443*) 7444 lt_save_MAGIC_CMD="$MAGIC_CMD" 7445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7446 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7447 for ac_dir in $ac_dummy; do 7448 IFS="$lt_save_ifs" 7449 test -z "$ac_dir" && ac_dir=. 7450 if test -f $ac_dir/${ac_tool_prefix}file; then 7451 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7452 if test -n "$file_magic_test_file"; then 7453 case $deplibs_check_method in 7454 "file_magic "*) 7455 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7456 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7457 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7458 $EGREP "$file_magic_regex" > /dev/null; then 7459 : 7460 else 7461 cat <<_LT_EOF 1>&2 7462 7463*** Warning: the command libtool uses to detect shared libraries, 7464*** $file_magic_cmd, produces output that libtool cannot recognize. 7465*** The result is that libtool may fail to recognize shared libraries 7466*** as such. This will affect the creation of libtool libraries that 7467*** depend on shared libraries, but programs linked with such libtool 7468*** libraries will work regardless of this problem. Nevertheless, you 7469*** may want to report the problem to your system manager and/or to 7470*** bug-libtool@gnu.org 7471 7472_LT_EOF 7473 fi ;; 7474 esac 7475 fi 7476 break 7477 fi 7478 done 7479 IFS="$lt_save_ifs" 7480 MAGIC_CMD="$lt_save_MAGIC_CMD" 7481 ;; 7482esac 7483fi 7484 7485MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7486if test -n "$MAGIC_CMD"; then 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7488$as_echo "$MAGIC_CMD" >&6; } 7489else 7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7491$as_echo "no" >&6; } 7492fi 7493 7494 7495 7496 7497 7498if test -z "$lt_cv_path_MAGIC_CMD"; then 7499 if test -n "$ac_tool_prefix"; then 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7501$as_echo_n "checking for file... " >&6; } 7502if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7503 $as_echo_n "(cached) " >&6 7504else 7505 case $MAGIC_CMD in 7506[\\/*] | ?:[\\/]*) 7507 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7508 ;; 7509*) 7510 lt_save_MAGIC_CMD="$MAGIC_CMD" 7511 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7512 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7513 for ac_dir in $ac_dummy; do 7514 IFS="$lt_save_ifs" 7515 test -z "$ac_dir" && ac_dir=. 7516 if test -f $ac_dir/file; then 7517 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7518 if test -n "$file_magic_test_file"; then 7519 case $deplibs_check_method in 7520 "file_magic "*) 7521 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7522 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7523 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7524 $EGREP "$file_magic_regex" > /dev/null; then 7525 : 7526 else 7527 cat <<_LT_EOF 1>&2 7528 7529*** Warning: the command libtool uses to detect shared libraries, 7530*** $file_magic_cmd, produces output that libtool cannot recognize. 7531*** The result is that libtool may fail to recognize shared libraries 7532*** as such. This will affect the creation of libtool libraries that 7533*** depend on shared libraries, but programs linked with such libtool 7534*** libraries will work regardless of this problem. Nevertheless, you 7535*** may want to report the problem to your system manager and/or to 7536*** bug-libtool@gnu.org 7537 7538_LT_EOF 7539 fi ;; 7540 esac 7541 fi 7542 break 7543 fi 7544 done 7545 IFS="$lt_save_ifs" 7546 MAGIC_CMD="$lt_save_MAGIC_CMD" 7547 ;; 7548esac 7549fi 7550 7551MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7552if test -n "$MAGIC_CMD"; then 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7554$as_echo "$MAGIC_CMD" >&6; } 7555else 7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7557$as_echo "no" >&6; } 7558fi 7559 7560 7561 else 7562 MAGIC_CMD=: 7563 fi 7564fi 7565 7566 fi 7567 ;; 7568esac 7569 7570# Use C for the default configuration in the libtool script 7571 7572lt_save_CC="$CC" 7573ac_ext=c 7574ac_cpp='$CPP $CPPFLAGS' 7575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7577ac_compiler_gnu=$ac_cv_c_compiler_gnu 7578 7579 7580# Source file extension for C test sources. 7581ac_ext=c 7582 7583# Object file extension for compiled C test sources. 7584objext=o 7585objext=$objext 7586 7587# Code to be used in simple compile tests 7588lt_simple_compile_test_code="int some_variable = 0;" 7589 7590# Code to be used in simple link tests 7591lt_simple_link_test_code='int main(){return(0);}' 7592 7593 7594 7595 7596 7597 7598 7599# If no C compiler was specified, use CC. 7600LTCC=${LTCC-"$CC"} 7601 7602# If no C compiler flags were specified, use CFLAGS. 7603LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7604 7605# Allow CC to be a program name with arguments. 7606compiler=$CC 7607 7608# Save the default compiler, since it gets overwritten when the other 7609# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7610compiler_DEFAULT=$CC 7611 7612# save warnings/boilerplate of simple test code 7613ac_outfile=conftest.$ac_objext 7614echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7615eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7616_lt_compiler_boilerplate=`cat conftest.err` 7617$RM conftest* 7618 7619ac_outfile=conftest.$ac_objext 7620echo "$lt_simple_link_test_code" >conftest.$ac_ext 7621eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7622_lt_linker_boilerplate=`cat conftest.err` 7623$RM -r conftest* 7624 7625 7626## CAVEAT EMPTOR: 7627## There is no encapsulation within the following macros, do not change 7628## the running order or otherwise move them around unless you know exactly 7629## what you are doing... 7630if test -n "$compiler"; then 7631 7632lt_prog_compiler_no_builtin_flag= 7633 7634if test "$GCC" = yes; then 7635 case $cc_basename in 7636 nvcc*) 7637 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7638 *) 7639 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7640 esac 7641 7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7643$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7644if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7645 $as_echo_n "(cached) " >&6 7646else 7647 lt_cv_prog_compiler_rtti_exceptions=no 7648 ac_outfile=conftest.$ac_objext 7649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7650 lt_compiler_flag="-fno-rtti -fno-exceptions" 7651 # Insert the option either (1) after the last *FLAGS variable, or 7652 # (2) before a word containing "conftest.", or (3) at the end. 7653 # Note that $ac_compile itself does not contain backslashes and begins 7654 # with a dollar sign (not a hyphen), so the echo should work correctly. 7655 # The option is referenced via a variable to avoid confusing sed. 7656 lt_compile=`echo "$ac_compile" | $SED \ 7657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7659 -e 's:$: $lt_compiler_flag:'` 7660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7661 (eval "$lt_compile" 2>conftest.err) 7662 ac_status=$? 7663 cat conftest.err >&5 7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7665 if (exit $ac_status) && test -s "$ac_outfile"; then 7666 # The compiler can only warn and ignore the option if not recognized 7667 # So say no if there are warnings other than the usual output. 7668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7670 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7671 lt_cv_prog_compiler_rtti_exceptions=yes 7672 fi 7673 fi 7674 $RM conftest* 7675 7676fi 7677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7678$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7679 7680if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7681 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7682else 7683 : 7684fi 7685 7686fi 7687 7688 7689 7690 7691 7692 7693 lt_prog_compiler_wl= 7694lt_prog_compiler_pic= 7695lt_prog_compiler_static= 7696 7697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7698$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7699 7700 if test "$GCC" = yes; then 7701 lt_prog_compiler_wl='-Wl,' 7702 lt_prog_compiler_static='-static' 7703 7704 case $host_os in 7705 aix*) 7706 # All AIX code is PIC. 7707 if test "$host_cpu" = ia64; then 7708 # AIX 5 now supports IA64 processor 7709 lt_prog_compiler_static='-Bstatic' 7710 fi 7711 lt_prog_compiler_pic='-fPIC' 7712 ;; 7713 7714 amigaos*) 7715 case $host_cpu in 7716 powerpc) 7717 # see comment about AmigaOS4 .so support 7718 lt_prog_compiler_pic='-fPIC' 7719 ;; 7720 m68k) 7721 # FIXME: we need at least 68020 code to build shared libraries, but 7722 # adding the `-m68020' flag to GCC prevents building anything better, 7723 # like `-m68040'. 7724 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7725 ;; 7726 esac 7727 ;; 7728 7729 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7730 # PIC is the default for these OSes. 7731 ;; 7732 7733 mingw* | cygwin* | pw32* | os2* | cegcc*) 7734 # This hack is so that the source file can tell whether it is being 7735 # built for inclusion in a dll (and should export symbols for example). 7736 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7737 # (--disable-auto-import) libraries 7738 lt_prog_compiler_pic='-DDLL_EXPORT' 7739 ;; 7740 7741 darwin* | rhapsody*) 7742 # PIC is the default on this platform 7743 # Common symbols not allowed in MH_DYLIB files 7744 lt_prog_compiler_pic='-fno-common' 7745 ;; 7746 7747 haiku*) 7748 # PIC is the default for Haiku. 7749 # The "-static" flag exists, but is broken. 7750 lt_prog_compiler_static= 7751 ;; 7752 7753 hpux*) 7754 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7755 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7756 # sets the default TLS model and affects inlining. 7757 case $host_cpu in 7758 hppa*64*) 7759 # +Z the default 7760 ;; 7761 *) 7762 lt_prog_compiler_pic='-fPIC' 7763 ;; 7764 esac 7765 ;; 7766 7767 interix[3-9]*) 7768 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7769 # Instead, we relocate shared libraries at runtime. 7770 ;; 7771 7772 msdosdjgpp*) 7773 # Just because we use GCC doesn't mean we suddenly get shared libraries 7774 # on systems that don't support them. 7775 lt_prog_compiler_can_build_shared=no 7776 enable_shared=no 7777 ;; 7778 7779 *nto* | *qnx*) 7780 # QNX uses GNU C++, but need to define -shared option too, otherwise 7781 # it will coredump. 7782 lt_prog_compiler_pic='-fPIC -shared' 7783 ;; 7784 7785 sysv4*MP*) 7786 if test -d /usr/nec; then 7787 lt_prog_compiler_pic=-Kconform_pic 7788 fi 7789 ;; 7790 7791 *) 7792 lt_prog_compiler_pic='-fPIC' 7793 ;; 7794 esac 7795 7796 case $cc_basename in 7797 nvcc*) # Cuda Compiler Driver 2.2 7798 lt_prog_compiler_wl='-Xlinker ' 7799 lt_prog_compiler_pic='-Xcompiler -fPIC' 7800 ;; 7801 esac 7802 else 7803 # PORTME Check for flag to pass linker flags through the system compiler. 7804 case $host_os in 7805 aix*) 7806 lt_prog_compiler_wl='-Wl,' 7807 if test "$host_cpu" = ia64; then 7808 # AIX 5 now supports IA64 processor 7809 lt_prog_compiler_static='-Bstatic' 7810 else 7811 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7812 fi 7813 ;; 7814 7815 mingw* | cygwin* | pw32* | os2* | cegcc*) 7816 # This hack is so that the source file can tell whether it is being 7817 # built for inclusion in a dll (and should export symbols for example). 7818 lt_prog_compiler_pic='-DDLL_EXPORT' 7819 ;; 7820 7821 hpux9* | hpux10* | hpux11*) 7822 lt_prog_compiler_wl='-Wl,' 7823 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7824 # not for PA HP-UX. 7825 case $host_cpu in 7826 hppa*64*|ia64*) 7827 # +Z the default 7828 ;; 7829 *) 7830 lt_prog_compiler_pic='+Z' 7831 ;; 7832 esac 7833 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7834 lt_prog_compiler_static='${wl}-a ${wl}archive' 7835 ;; 7836 7837 irix5* | irix6* | nonstopux*) 7838 lt_prog_compiler_wl='-Wl,' 7839 # PIC (with -KPIC) is the default. 7840 lt_prog_compiler_static='-non_shared' 7841 ;; 7842 7843 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7844 case $cc_basename in 7845 # old Intel for x86_64 which still supported -KPIC. 7846 ecc*) 7847 lt_prog_compiler_wl='-Wl,' 7848 lt_prog_compiler_pic='-KPIC' 7849 lt_prog_compiler_static='-static' 7850 ;; 7851 # icc used to be incompatible with GCC. 7852 # ICC 10 doesn't accept -KPIC any more. 7853 icc* | ifort*) 7854 lt_prog_compiler_wl='-Wl,' 7855 lt_prog_compiler_pic='-fPIC' 7856 lt_prog_compiler_static='-static' 7857 ;; 7858 # Lahey Fortran 8.1. 7859 lf95*) 7860 lt_prog_compiler_wl='-Wl,' 7861 lt_prog_compiler_pic='--shared' 7862 lt_prog_compiler_static='--static' 7863 ;; 7864 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 7865 # Portland Group compilers (*not* the Pentium gcc compiler, 7866 # which looks to be a dead project) 7867 lt_prog_compiler_wl='-Wl,' 7868 lt_prog_compiler_pic='-fpic' 7869 lt_prog_compiler_static='-Bstatic' 7870 ;; 7871 ccc*) 7872 lt_prog_compiler_wl='-Wl,' 7873 # All Alpha code is PIC. 7874 lt_prog_compiler_static='-non_shared' 7875 ;; 7876 xl* | bgxl* | bgf* | mpixl*) 7877 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 7878 lt_prog_compiler_wl='-Wl,' 7879 lt_prog_compiler_pic='-qpic' 7880 lt_prog_compiler_static='-qstaticlink' 7881 ;; 7882 *) 7883 case `$CC -V 2>&1 | sed 5q` in 7884 *Sun\ F* | *Sun*Fortran*) 7885 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7886 lt_prog_compiler_pic='-KPIC' 7887 lt_prog_compiler_static='-Bstatic' 7888 lt_prog_compiler_wl='' 7889 ;; 7890 *Sun\ C*) 7891 # Sun C 5.9 7892 lt_prog_compiler_pic='-KPIC' 7893 lt_prog_compiler_static='-Bstatic' 7894 lt_prog_compiler_wl='-Wl,' 7895 ;; 7896 esac 7897 ;; 7898 esac 7899 ;; 7900 7901 newsos6) 7902 lt_prog_compiler_pic='-KPIC' 7903 lt_prog_compiler_static='-Bstatic' 7904 ;; 7905 7906 *nto* | *qnx*) 7907 # QNX uses GNU C++, but need to define -shared option too, otherwise 7908 # it will coredump. 7909 lt_prog_compiler_pic='-fPIC -shared' 7910 ;; 7911 7912 osf3* | osf4* | osf5*) 7913 lt_prog_compiler_wl='-Wl,' 7914 # All OSF/1 code is PIC. 7915 lt_prog_compiler_static='-non_shared' 7916 ;; 7917 7918 rdos*) 7919 lt_prog_compiler_static='-non_shared' 7920 ;; 7921 7922 solaris*) 7923 lt_prog_compiler_pic='-KPIC' 7924 lt_prog_compiler_static='-Bstatic' 7925 case $cc_basename in 7926 f77* | f90* | f95*) 7927 lt_prog_compiler_wl='-Qoption ld ';; 7928 *) 7929 lt_prog_compiler_wl='-Wl,';; 7930 esac 7931 ;; 7932 7933 sunos4*) 7934 lt_prog_compiler_wl='-Qoption ld ' 7935 lt_prog_compiler_pic='-PIC' 7936 lt_prog_compiler_static='-Bstatic' 7937 ;; 7938 7939 sysv4 | sysv4.2uw2* | sysv4.3*) 7940 lt_prog_compiler_wl='-Wl,' 7941 lt_prog_compiler_pic='-KPIC' 7942 lt_prog_compiler_static='-Bstatic' 7943 ;; 7944 7945 sysv4*MP*) 7946 if test -d /usr/nec ;then 7947 lt_prog_compiler_pic='-Kconform_pic' 7948 lt_prog_compiler_static='-Bstatic' 7949 fi 7950 ;; 7951 7952 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7953 lt_prog_compiler_wl='-Wl,' 7954 lt_prog_compiler_pic='-KPIC' 7955 lt_prog_compiler_static='-Bstatic' 7956 ;; 7957 7958 unicos*) 7959 lt_prog_compiler_wl='-Wl,' 7960 lt_prog_compiler_can_build_shared=no 7961 ;; 7962 7963 uts4*) 7964 lt_prog_compiler_pic='-pic' 7965 lt_prog_compiler_static='-Bstatic' 7966 ;; 7967 7968 *) 7969 lt_prog_compiler_can_build_shared=no 7970 ;; 7971 esac 7972 fi 7973 7974case $host_os in 7975 # For platforms which do not support PIC, -DPIC is meaningless: 7976 *djgpp*) 7977 lt_prog_compiler_pic= 7978 ;; 7979 *) 7980 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7981 ;; 7982esac 7983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7984$as_echo "$lt_prog_compiler_pic" >&6; } 7985 7986 7987 7988 7989 7990 7991# 7992# Check to make sure the PIC flag actually works. 7993# 7994if test -n "$lt_prog_compiler_pic"; then 7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7996$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7997if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 7998 $as_echo_n "(cached) " >&6 7999else 8000 lt_cv_prog_compiler_pic_works=no 8001 ac_outfile=conftest.$ac_objext 8002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8003 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8004 # Insert the option either (1) after the last *FLAGS variable, or 8005 # (2) before a word containing "conftest.", or (3) at the end. 8006 # Note that $ac_compile itself does not contain backslashes and begins 8007 # with a dollar sign (not a hyphen), so the echo should work correctly. 8008 # The option is referenced via a variable to avoid confusing sed. 8009 lt_compile=`echo "$ac_compile" | $SED \ 8010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8012 -e 's:$: $lt_compiler_flag:'` 8013 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8014 (eval "$lt_compile" 2>conftest.err) 8015 ac_status=$? 8016 cat conftest.err >&5 8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8018 if (exit $ac_status) && test -s "$ac_outfile"; then 8019 # The compiler can only warn and ignore the option if not recognized 8020 # So say no if there are warnings other than the usual output. 8021 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8023 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8024 lt_cv_prog_compiler_pic_works=yes 8025 fi 8026 fi 8027 $RM conftest* 8028 8029fi 8030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8031$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8032 8033if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8034 case $lt_prog_compiler_pic in 8035 "" | " "*) ;; 8036 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8037 esac 8038else 8039 lt_prog_compiler_pic= 8040 lt_prog_compiler_can_build_shared=no 8041fi 8042 8043fi 8044 8045 8046 8047 8048 8049 8050# 8051# Check to make sure the static flag actually works. 8052# 8053wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8055$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8056if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8057 $as_echo_n "(cached) " >&6 8058else 8059 lt_cv_prog_compiler_static_works=no 8060 save_LDFLAGS="$LDFLAGS" 8061 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8062 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8063 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8064 # The linker can only warn and ignore the option if not recognized 8065 # So say no if there are warnings 8066 if test -s conftest.err; then 8067 # Append any errors to the config.log. 8068 cat conftest.err 1>&5 8069 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8070 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8071 if diff conftest.exp conftest.er2 >/dev/null; then 8072 lt_cv_prog_compiler_static_works=yes 8073 fi 8074 else 8075 lt_cv_prog_compiler_static_works=yes 8076 fi 8077 fi 8078 $RM -r conftest* 8079 LDFLAGS="$save_LDFLAGS" 8080 8081fi 8082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8083$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8084 8085if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8086 : 8087else 8088 lt_prog_compiler_static= 8089fi 8090 8091 8092 8093 8094 8095 8096 8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8098$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8099if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8100 $as_echo_n "(cached) " >&6 8101else 8102 lt_cv_prog_compiler_c_o=no 8103 $RM -r conftest 2>/dev/null 8104 mkdir conftest 8105 cd conftest 8106 mkdir out 8107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8108 8109 lt_compiler_flag="-o out/conftest2.$ac_objext" 8110 # Insert the option either (1) after the last *FLAGS variable, or 8111 # (2) before a word containing "conftest.", or (3) at the end. 8112 # Note that $ac_compile itself does not contain backslashes and begins 8113 # with a dollar sign (not a hyphen), so the echo should work correctly. 8114 lt_compile=`echo "$ac_compile" | $SED \ 8115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8117 -e 's:$: $lt_compiler_flag:'` 8118 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8119 (eval "$lt_compile" 2>out/conftest.err) 8120 ac_status=$? 8121 cat out/conftest.err >&5 8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8123 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8124 then 8125 # The compiler can only warn and ignore the option if not recognized 8126 # So say no if there are warnings 8127 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8128 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8129 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8130 lt_cv_prog_compiler_c_o=yes 8131 fi 8132 fi 8133 chmod u+w . 2>&5 8134 $RM conftest* 8135 # SGI C++ compiler will create directory out/ii_files/ for 8136 # template instantiation 8137 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8138 $RM out/* && rmdir out 8139 cd .. 8140 $RM -r conftest 8141 $RM conftest* 8142 8143fi 8144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8145$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8146 8147 8148 8149 8150 8151 8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8153$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8154if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8155 $as_echo_n "(cached) " >&6 8156else 8157 lt_cv_prog_compiler_c_o=no 8158 $RM -r conftest 2>/dev/null 8159 mkdir conftest 8160 cd conftest 8161 mkdir out 8162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8163 8164 lt_compiler_flag="-o out/conftest2.$ac_objext" 8165 # Insert the option either (1) after the last *FLAGS variable, or 8166 # (2) before a word containing "conftest.", or (3) at the end. 8167 # Note that $ac_compile itself does not contain backslashes and begins 8168 # with a dollar sign (not a hyphen), so the echo should work correctly. 8169 lt_compile=`echo "$ac_compile" | $SED \ 8170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8172 -e 's:$: $lt_compiler_flag:'` 8173 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8174 (eval "$lt_compile" 2>out/conftest.err) 8175 ac_status=$? 8176 cat out/conftest.err >&5 8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8178 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8179 then 8180 # The compiler can only warn and ignore the option if not recognized 8181 # So say no if there are warnings 8182 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8183 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8184 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8185 lt_cv_prog_compiler_c_o=yes 8186 fi 8187 fi 8188 chmod u+w . 2>&5 8189 $RM conftest* 8190 # SGI C++ compiler will create directory out/ii_files/ for 8191 # template instantiation 8192 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8193 $RM out/* && rmdir out 8194 cd .. 8195 $RM -r conftest 8196 $RM conftest* 8197 8198fi 8199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8200$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8201 8202 8203 8204 8205hard_links="nottested" 8206if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8207 # do not overwrite the value of need_locks provided by the user 8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8209$as_echo_n "checking if we can lock with hard links... " >&6; } 8210 hard_links=yes 8211 $RM conftest* 8212 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8213 touch conftest.a 8214 ln conftest.a conftest.b 2>&5 || hard_links=no 8215 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8217$as_echo "$hard_links" >&6; } 8218 if test "$hard_links" = no; then 8219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8220$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8221 need_locks=warn 8222 fi 8223else 8224 need_locks=no 8225fi 8226 8227 8228 8229 8230 8231 8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8233$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8234 8235 runpath_var= 8236 allow_undefined_flag= 8237 always_export_symbols=no 8238 archive_cmds= 8239 archive_expsym_cmds= 8240 compiler_needs_object=no 8241 enable_shared_with_static_runtimes=no 8242 export_dynamic_flag_spec= 8243 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8244 hardcode_automatic=no 8245 hardcode_direct=no 8246 hardcode_direct_absolute=no 8247 hardcode_libdir_flag_spec= 8248 hardcode_libdir_flag_spec_ld= 8249 hardcode_libdir_separator= 8250 hardcode_minus_L=no 8251 hardcode_shlibpath_var=unsupported 8252 inherit_rpath=no 8253 link_all_deplibs=unknown 8254 module_cmds= 8255 module_expsym_cmds= 8256 old_archive_from_new_cmds= 8257 old_archive_from_expsyms_cmds= 8258 thread_safe_flag_spec= 8259 whole_archive_flag_spec= 8260 # include_expsyms should be a list of space-separated symbols to be *always* 8261 # included in the symbol list 8262 include_expsyms= 8263 # exclude_expsyms can be an extended regexp of symbols to exclude 8264 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8265 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8266 # as well as any symbol that contains `d'. 8267 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8268 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8269 # platforms (ab)use it in PIC code, but their linkers get confused if 8270 # the symbol is explicitly referenced. Since portable code cannot 8271 # rely on this symbol name, it's probably fine to never include it in 8272 # preloaded symbol tables. 8273 # Exclude shared library initialization/finalization symbols. 8274 extract_expsyms_cmds= 8275 8276 case $host_os in 8277 cygwin* | mingw* | pw32* | cegcc*) 8278 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8279 # When not using gcc, we currently assume that we are using 8280 # Microsoft Visual C++. 8281 if test "$GCC" != yes; then 8282 with_gnu_ld=no 8283 fi 8284 ;; 8285 interix*) 8286 # we just hope/assume this is gcc and not c89 (= MSVC++) 8287 with_gnu_ld=yes 8288 ;; 8289 openbsd*) 8290 with_gnu_ld=no 8291 ;; 8292 esac 8293 8294 ld_shlibs=yes 8295 8296 # On some targets, GNU ld is compatible enough with the native linker 8297 # that we're better off using the native interface for both. 8298 lt_use_gnu_ld_interface=no 8299 if test "$with_gnu_ld" = yes; then 8300 case $host_os in 8301 aix*) 8302 # The AIX port of GNU ld has always aspired to compatibility 8303 # with the native linker. However, as the warning in the GNU ld 8304 # block says, versions before 2.19.5* couldn't really create working 8305 # shared libraries, regardless of the interface used. 8306 case `$LD -v 2>&1` in 8307 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8308 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8309 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8310 *) 8311 lt_use_gnu_ld_interface=yes 8312 ;; 8313 esac 8314 ;; 8315 *) 8316 lt_use_gnu_ld_interface=yes 8317 ;; 8318 esac 8319 fi 8320 8321 if test "$lt_use_gnu_ld_interface" = yes; then 8322 # If archive_cmds runs LD, not CC, wlarc should be empty 8323 wlarc='${wl}' 8324 8325 # Set some defaults for GNU ld with shared library support. These 8326 # are reset later if shared libraries are not supported. Putting them 8327 # here allows them to be overridden if necessary. 8328 runpath_var=LD_RUN_PATH 8329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8330 export_dynamic_flag_spec='${wl}--export-dynamic' 8331 # ancient GNU ld didn't support --whole-archive et. al. 8332 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8333 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8334 else 8335 whole_archive_flag_spec= 8336 fi 8337 supports_anon_versioning=no 8338 case `$LD -v 2>&1` in 8339 *GNU\ gold*) supports_anon_versioning=yes ;; 8340 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8341 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8342 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8343 *\ 2.11.*) ;; # other 2.11 versions 8344 *) supports_anon_versioning=yes ;; 8345 esac 8346 8347 # See if GNU ld supports shared libraries. 8348 case $host_os in 8349 aix[3-9]*) 8350 # On AIX/PPC, the GNU linker is very broken 8351 if test "$host_cpu" != ia64; then 8352 ld_shlibs=no 8353 cat <<_LT_EOF 1>&2 8354 8355*** Warning: the GNU linker, at least up to release 2.19, is reported 8356*** to be unable to reliably create shared libraries on AIX. 8357*** Therefore, libtool is disabling shared libraries support. If you 8358*** really care for shared libraries, you may want to install binutils 8359*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8360*** You will then need to restart the configuration process. 8361 8362_LT_EOF 8363 fi 8364 ;; 8365 8366 amigaos*) 8367 case $host_cpu in 8368 powerpc) 8369 # see comment about AmigaOS4 .so support 8370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8371 archive_expsym_cmds='' 8372 ;; 8373 m68k) 8374 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)' 8375 hardcode_libdir_flag_spec='-L$libdir' 8376 hardcode_minus_L=yes 8377 ;; 8378 esac 8379 ;; 8380 8381 beos*) 8382 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8383 allow_undefined_flag=unsupported 8384 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8385 # support --undefined. This deserves some investigation. FIXME 8386 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8387 else 8388 ld_shlibs=no 8389 fi 8390 ;; 8391 8392 cygwin* | mingw* | pw32* | cegcc*) 8393 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8394 # as there is no search path for DLLs. 8395 hardcode_libdir_flag_spec='-L$libdir' 8396 export_dynamic_flag_spec='${wl}--export-all-symbols' 8397 allow_undefined_flag=unsupported 8398 always_export_symbols=no 8399 enable_shared_with_static_runtimes=yes 8400 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8401 8402 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8404 # If the export-symbols file already is a .def file (1st line 8405 # is EXPORTS), use it as is; otherwise, prepend... 8406 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8407 cp $export_symbols $output_objdir/$soname.def; 8408 else 8409 echo EXPORTS > $output_objdir/$soname.def; 8410 cat $export_symbols >> $output_objdir/$soname.def; 8411 fi~ 8412 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8413 else 8414 ld_shlibs=no 8415 fi 8416 ;; 8417 8418 haiku*) 8419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8420 link_all_deplibs=yes 8421 ;; 8422 8423 interix[3-9]*) 8424 hardcode_direct=no 8425 hardcode_shlibpath_var=no 8426 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8427 export_dynamic_flag_spec='${wl}-E' 8428 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8429 # Instead, shared libraries are loaded at an image base (0x10000000 by 8430 # default) and relocated if they conflict, which is a slow very memory 8431 # consuming and fragmenting process. To avoid this, we pick a random, 8432 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8433 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8434 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8435 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' 8436 ;; 8437 8438 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8439 tmp_diet=no 8440 if test "$host_os" = linux-dietlibc; then 8441 case $cc_basename in 8442 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8443 esac 8444 fi 8445 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8446 && test "$tmp_diet" = no 8447 then 8448 tmp_addflag=' $pic_flag' 8449 tmp_sharedflag='-shared' 8450 case $cc_basename,$host_cpu in 8451 pgcc*) # Portland Group C compiler 8452 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' 8453 tmp_addflag=' $pic_flag' 8454 ;; 8455 pgf77* | pgf90* | pgf95* | pgfortran*) 8456 # Portland Group f77 and f90 compilers 8457 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' 8458 tmp_addflag=' $pic_flag -Mnomain' ;; 8459 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8460 tmp_addflag=' -i_dynamic' ;; 8461 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8462 tmp_addflag=' -i_dynamic -nofor_main' ;; 8463 ifc* | ifort*) # Intel Fortran compiler 8464 tmp_addflag=' -nofor_main' ;; 8465 lf95*) # Lahey Fortran 8.1 8466 whole_archive_flag_spec= 8467 tmp_sharedflag='--shared' ;; 8468 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8469 tmp_sharedflag='-qmkshrobj' 8470 tmp_addflag= ;; 8471 nvcc*) # Cuda Compiler Driver 2.2 8472 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' 8473 compiler_needs_object=yes 8474 ;; 8475 esac 8476 case `$CC -V 2>&1 | sed 5q` in 8477 *Sun\ C*) # Sun C 5.9 8478 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' 8479 compiler_needs_object=yes 8480 tmp_sharedflag='-G' ;; 8481 *Sun\ F*) # Sun Fortran 8.3 8482 tmp_sharedflag='-G' ;; 8483 esac 8484 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8485 8486 if test "x$supports_anon_versioning" = xyes; then 8487 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8488 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8489 echo "local: *; };" >> $output_objdir/$libname.ver~ 8490 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8491 fi 8492 8493 case $cc_basename in 8494 xlf* | bgf* | bgxlf* | mpixlf*) 8495 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8496 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8497 hardcode_libdir_flag_spec= 8498 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8499 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8500 if test "x$supports_anon_versioning" = xyes; then 8501 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8502 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8503 echo "local: *; };" >> $output_objdir/$libname.ver~ 8504 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8505 fi 8506 ;; 8507 esac 8508 else 8509 ld_shlibs=no 8510 fi 8511 ;; 8512 8513 netbsd*) 8514 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8515 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8516 wlarc= 8517 else 8518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8519 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8520 fi 8521 ;; 8522 8523 solaris*) 8524 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8525 ld_shlibs=no 8526 cat <<_LT_EOF 1>&2 8527 8528*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8529*** create shared libraries on Solaris systems. Therefore, libtool 8530*** is disabling shared libraries support. We urge you to upgrade GNU 8531*** binutils to release 2.9.1 or newer. Another option is to modify 8532*** your PATH or compiler configuration so that the native linker is 8533*** used, and then restart. 8534 8535_LT_EOF 8536 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8538 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8539 else 8540 ld_shlibs=no 8541 fi 8542 ;; 8543 8544 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8545 case `$LD -v 2>&1` in 8546 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8547 ld_shlibs=no 8548 cat <<_LT_EOF 1>&2 8549 8550*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8551*** reliably create shared libraries on SCO systems. Therefore, libtool 8552*** is disabling shared libraries support. We urge you to upgrade GNU 8553*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8554*** your PATH or compiler configuration so that the native linker is 8555*** used, and then restart. 8556 8557_LT_EOF 8558 ;; 8559 *) 8560 # For security reasons, it is highly recommended that you always 8561 # use absolute paths for naming shared libraries, and exclude the 8562 # DT_RUNPATH tag from executables and libraries. But doing so 8563 # requires that you compile everything twice, which is a pain. 8564 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8566 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8567 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8568 else 8569 ld_shlibs=no 8570 fi 8571 ;; 8572 esac 8573 ;; 8574 8575 sunos4*) 8576 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8577 wlarc= 8578 hardcode_direct=yes 8579 hardcode_shlibpath_var=no 8580 ;; 8581 8582 *) 8583 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8584 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8585 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8586 else 8587 ld_shlibs=no 8588 fi 8589 ;; 8590 esac 8591 8592 if test "$ld_shlibs" = no; then 8593 runpath_var= 8594 hardcode_libdir_flag_spec= 8595 export_dynamic_flag_spec= 8596 whole_archive_flag_spec= 8597 fi 8598 else 8599 # PORTME fill in a description of your system's linker (not GNU ld) 8600 case $host_os in 8601 aix3*) 8602 allow_undefined_flag=unsupported 8603 always_export_symbols=yes 8604 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' 8605 # Note: this linker hardcodes the directories in LIBPATH if there 8606 # are no directories specified by -L. 8607 hardcode_minus_L=yes 8608 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8609 # Neither direct hardcoding nor static linking is supported with a 8610 # broken collect2. 8611 hardcode_direct=unsupported 8612 fi 8613 ;; 8614 8615 aix[4-9]*) 8616 if test "$host_cpu" = ia64; then 8617 # On IA64, the linker does run time linking by default, so we don't 8618 # have to do anything special. 8619 aix_use_runtimelinking=no 8620 exp_sym_flag='-Bexport' 8621 no_entry_flag="" 8622 else 8623 # If we're using GNU nm, then we don't want the "-C" option. 8624 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8625 # Also, AIX nm treats weak defined symbols like other global 8626 # defined symbols, whereas GNU nm marks them as "W". 8627 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8628 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8629 else 8630 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8631 fi 8632 aix_use_runtimelinking=no 8633 8634 # Test if we are trying to use run time linking or normal 8635 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8636 # need to do runtime linking. 8637 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8638 for ld_flag in $LDFLAGS; do 8639 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8640 aix_use_runtimelinking=yes 8641 break 8642 fi 8643 done 8644 ;; 8645 esac 8646 8647 exp_sym_flag='-bexport' 8648 no_entry_flag='-bnoentry' 8649 fi 8650 8651 # When large executables or shared objects are built, AIX ld can 8652 # have problems creating the table of contents. If linking a library 8653 # or program results in "error TOC overflow" add -mminimal-toc to 8654 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8655 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8656 8657 archive_cmds='' 8658 hardcode_direct=yes 8659 hardcode_direct_absolute=yes 8660 hardcode_libdir_separator=':' 8661 link_all_deplibs=yes 8662 file_list_spec='${wl}-f,' 8663 8664 if test "$GCC" = yes; then 8665 case $host_os in aix4.[012]|aix4.[012].*) 8666 # We only want to do this on AIX 4.2 and lower, the check 8667 # below for broken collect2 doesn't work under 4.3+ 8668 collect2name=`${CC} -print-prog-name=collect2` 8669 if test -f "$collect2name" && 8670 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8671 then 8672 # We have reworked collect2 8673 : 8674 else 8675 # We have old collect2 8676 hardcode_direct=unsupported 8677 # It fails to find uninstalled libraries when the uninstalled 8678 # path is not listed in the libpath. Setting hardcode_minus_L 8679 # to unsupported forces relinking 8680 hardcode_minus_L=yes 8681 hardcode_libdir_flag_spec='-L$libdir' 8682 hardcode_libdir_separator= 8683 fi 8684 ;; 8685 esac 8686 shared_flag='-shared' 8687 if test "$aix_use_runtimelinking" = yes; then 8688 shared_flag="$shared_flag "'${wl}-G' 8689 fi 8690 else 8691 # not using gcc 8692 if test "$host_cpu" = ia64; then 8693 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8694 # chokes on -Wl,-G. The following line is correct: 8695 shared_flag='-G' 8696 else 8697 if test "$aix_use_runtimelinking" = yes; then 8698 shared_flag='${wl}-G' 8699 else 8700 shared_flag='${wl}-bM:SRE' 8701 fi 8702 fi 8703 fi 8704 8705 export_dynamic_flag_spec='${wl}-bexpall' 8706 # It seems that -bexpall does not export symbols beginning with 8707 # underscore (_), so it is better to generate a list of symbols to export. 8708 always_export_symbols=yes 8709 if test "$aix_use_runtimelinking" = yes; then 8710 # Warning - without using the other runtime loading flags (-brtl), 8711 # -berok will link without error, but may produce a broken library. 8712 allow_undefined_flag='-berok' 8713 # Determine the default libpath from the value encoded in an 8714 # empty executable. 8715 if test x$gcc_no_link = xyes; then 8716 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 8717fi 8718cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8719/* end confdefs.h. */ 8720 8721int 8722main () 8723{ 8724 8725 ; 8726 return 0; 8727} 8728_ACEOF 8729if ac_fn_c_try_link "$LINENO"; then : 8730 8731lt_aix_libpath_sed=' 8732 /Import File Strings/,/^$/ { 8733 /^0/ { 8734 s/^0 *\(.*\)$/\1/ 8735 p 8736 } 8737 }' 8738aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8739# Check for a 64-bit object if we didn't find anything. 8740if test -z "$aix_libpath"; then 8741 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8742fi 8743fi 8744rm -f core conftest.err conftest.$ac_objext \ 8745 conftest$ac_exeext conftest.$ac_ext 8746if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8747 8748 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8749 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8750 else 8751 if test "$host_cpu" = ia64; then 8752 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8753 allow_undefined_flag="-z nodefs" 8754 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" 8755 else 8756 # Determine the default libpath from the value encoded in an 8757 # empty executable. 8758 if test x$gcc_no_link = xyes; then 8759 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 8760fi 8761cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8762/* end confdefs.h. */ 8763 8764int 8765main () 8766{ 8767 8768 ; 8769 return 0; 8770} 8771_ACEOF 8772if ac_fn_c_try_link "$LINENO"; then : 8773 8774lt_aix_libpath_sed=' 8775 /Import File Strings/,/^$/ { 8776 /^0/ { 8777 s/^0 *\(.*\)$/\1/ 8778 p 8779 } 8780 }' 8781aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8782# Check for a 64-bit object if we didn't find anything. 8783if test -z "$aix_libpath"; then 8784 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8785fi 8786fi 8787rm -f core conftest.err conftest.$ac_objext \ 8788 conftest$ac_exeext conftest.$ac_ext 8789if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8790 8791 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8792 # Warning - without using the other run time loading flags, 8793 # -berok will link without error, but may produce a broken library. 8794 no_undefined_flag=' ${wl}-bernotok' 8795 allow_undefined_flag=' ${wl}-berok' 8796 if test "$with_gnu_ld" = yes; then 8797 # We only use this code for GNU lds that support --whole-archive. 8798 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8799 else 8800 # Exported symbols can be pulled into shared objects from archives 8801 whole_archive_flag_spec='$convenience' 8802 fi 8803 archive_cmds_need_lc=yes 8804 # This is similar to how AIX traditionally builds its shared libraries. 8805 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 8806 fi 8807 fi 8808 ;; 8809 8810 amigaos*) 8811 case $host_cpu in 8812 powerpc) 8813 # see comment about AmigaOS4 .so support 8814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8815 archive_expsym_cmds='' 8816 ;; 8817 m68k) 8818 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)' 8819 hardcode_libdir_flag_spec='-L$libdir' 8820 hardcode_minus_L=yes 8821 ;; 8822 esac 8823 ;; 8824 8825 bsdi[45]*) 8826 export_dynamic_flag_spec=-rdynamic 8827 ;; 8828 8829 cygwin* | mingw* | pw32* | cegcc*) 8830 # When not using gcc, we currently assume that we are using 8831 # Microsoft Visual C++. 8832 # hardcode_libdir_flag_spec is actually meaningless, as there is 8833 # no search path for DLLs. 8834 hardcode_libdir_flag_spec=' ' 8835 allow_undefined_flag=unsupported 8836 # Tell ltmain to make .lib files, not .a files. 8837 libext=lib 8838 # Tell ltmain to make .dll files, not .so files. 8839 shrext_cmds=".dll" 8840 # FIXME: Setting linknames here is a bad hack. 8841 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 8842 # The linker will automatically build a .lib file if we build a DLL. 8843 old_archive_from_new_cmds='true' 8844 # FIXME: Should let the user specify the lib program. 8845 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8846 fix_srcfile_path='`cygpath -w "$srcfile"`' 8847 enable_shared_with_static_runtimes=yes 8848 ;; 8849 8850 darwin* | rhapsody*) 8851 8852 8853 archive_cmds_need_lc=no 8854 hardcode_direct=no 8855 hardcode_automatic=yes 8856 hardcode_shlibpath_var=unsupported 8857 if test "$lt_cv_ld_force_load" = "yes"; then 8858 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\"`' 8859 else 8860 whole_archive_flag_spec='' 8861 fi 8862 link_all_deplibs=yes 8863 allow_undefined_flag="$_lt_dar_allow_undefined" 8864 case $cc_basename in 8865 ifort*) _lt_dar_can_shared=yes ;; 8866 *) _lt_dar_can_shared=$GCC ;; 8867 esac 8868 if test "$_lt_dar_can_shared" = "yes"; then 8869 output_verbose_link_cmd=func_echo_all 8870 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8871 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8872 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}" 8873 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}" 8874 8875 else 8876 ld_shlibs=no 8877 fi 8878 8879 ;; 8880 8881 dgux*) 8882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8883 hardcode_libdir_flag_spec='-L$libdir' 8884 hardcode_shlibpath_var=no 8885 ;; 8886 8887 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8888 # support. Future versions do this automatically, but an explicit c++rt0.o 8889 # does not break anything, and helps significantly (at the cost of a little 8890 # extra space). 8891 freebsd2.2*) 8892 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8893 hardcode_libdir_flag_spec='-R$libdir' 8894 hardcode_direct=yes 8895 hardcode_shlibpath_var=no 8896 ;; 8897 8898 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8899 freebsd2.*) 8900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8901 hardcode_direct=yes 8902 hardcode_minus_L=yes 8903 hardcode_shlibpath_var=no 8904 ;; 8905 8906 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8907 freebsd* | dragonfly*) 8908 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8909 hardcode_libdir_flag_spec='-R$libdir' 8910 hardcode_direct=yes 8911 hardcode_shlibpath_var=no 8912 ;; 8913 8914 hpux9*) 8915 if test "$GCC" = yes; then 8916 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8917 else 8918 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8919 fi 8920 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8921 hardcode_libdir_separator=: 8922 hardcode_direct=yes 8923 8924 # hardcode_minus_L: Not really in the search PATH, 8925 # but as the default location of the library. 8926 hardcode_minus_L=yes 8927 export_dynamic_flag_spec='${wl}-E' 8928 ;; 8929 8930 hpux10*) 8931 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8932 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8933 else 8934 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8935 fi 8936 if test "$with_gnu_ld" = no; then 8937 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8938 hardcode_libdir_flag_spec_ld='+b $libdir' 8939 hardcode_libdir_separator=: 8940 hardcode_direct=yes 8941 hardcode_direct_absolute=yes 8942 export_dynamic_flag_spec='${wl}-E' 8943 # hardcode_minus_L: Not really in the search PATH, 8944 # but as the default location of the library. 8945 hardcode_minus_L=yes 8946 fi 8947 ;; 8948 8949 hpux11*) 8950 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8951 case $host_cpu in 8952 hppa*64*) 8953 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8954 ;; 8955 ia64*) 8956 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8957 ;; 8958 *) 8959 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8960 ;; 8961 esac 8962 else 8963 case $host_cpu in 8964 hppa*64*) 8965 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8966 ;; 8967 ia64*) 8968 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8969 ;; 8970 *) 8971 8972 # Older versions of the 11.00 compiler do not understand -b yet 8973 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 8975$as_echo_n "checking if $CC understands -b... " >&6; } 8976if test "${lt_cv_prog_compiler__b+set}" = set; then : 8977 $as_echo_n "(cached) " >&6 8978else 8979 lt_cv_prog_compiler__b=no 8980 save_LDFLAGS="$LDFLAGS" 8981 LDFLAGS="$LDFLAGS -b" 8982 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8983 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8984 # The linker can only warn and ignore the option if not recognized 8985 # So say no if there are warnings 8986 if test -s conftest.err; then 8987 # Append any errors to the config.log. 8988 cat conftest.err 1>&5 8989 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8991 if diff conftest.exp conftest.er2 >/dev/null; then 8992 lt_cv_prog_compiler__b=yes 8993 fi 8994 else 8995 lt_cv_prog_compiler__b=yes 8996 fi 8997 fi 8998 $RM -r conftest* 8999 LDFLAGS="$save_LDFLAGS" 9000 9001fi 9002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9003$as_echo "$lt_cv_prog_compiler__b" >&6; } 9004 9005if test x"$lt_cv_prog_compiler__b" = xyes; then 9006 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9007else 9008 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9009fi 9010 9011 ;; 9012 esac 9013 fi 9014 if test "$with_gnu_ld" = no; then 9015 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9016 hardcode_libdir_separator=: 9017 9018 case $host_cpu in 9019 hppa*64*|ia64*) 9020 hardcode_direct=no 9021 hardcode_shlibpath_var=no 9022 ;; 9023 *) 9024 hardcode_direct=yes 9025 hardcode_direct_absolute=yes 9026 export_dynamic_flag_spec='${wl}-E' 9027 9028 # hardcode_minus_L: Not really in the search PATH, 9029 # but as the default location of the library. 9030 hardcode_minus_L=yes 9031 ;; 9032 esac 9033 fi 9034 ;; 9035 9036 irix5* | irix6* | nonstopux*) 9037 if test "$GCC" = yes; then 9038 archive_cmds='$CC -shared $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' 9039 # Try to use the -exported_symbol ld option, if it does not 9040 # work, assume that -exports_file does not work either and 9041 # implicitly export all symbols. 9042 save_LDFLAGS="$LDFLAGS" 9043 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9044 if test x$gcc_no_link = xyes; then 9045 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 9046fi 9047cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9048/* end confdefs.h. */ 9049int foo(void) {} 9050_ACEOF 9051if ac_fn_c_try_link "$LINENO"; then : 9052 archive_expsym_cmds='$CC -shared $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' 9053 9054fi 9055rm -f core conftest.err conftest.$ac_objext \ 9056 conftest$ac_exeext conftest.$ac_ext 9057 LDFLAGS="$save_LDFLAGS" 9058 else 9059 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' 9060 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' 9061 fi 9062 archive_cmds_need_lc='no' 9063 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9064 hardcode_libdir_separator=: 9065 inherit_rpath=yes 9066 link_all_deplibs=yes 9067 ;; 9068 9069 netbsd*) 9070 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9071 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9072 else 9073 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9074 fi 9075 hardcode_libdir_flag_spec='-R$libdir' 9076 hardcode_direct=yes 9077 hardcode_shlibpath_var=no 9078 ;; 9079 9080 newsos6) 9081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9082 hardcode_direct=yes 9083 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9084 hardcode_libdir_separator=: 9085 hardcode_shlibpath_var=no 9086 ;; 9087 9088 *nto* | *qnx*) 9089 ;; 9090 9091 openbsd*) 9092 if test -f /usr/libexec/ld.so; then 9093 hardcode_direct=yes 9094 hardcode_shlibpath_var=no 9095 hardcode_direct_absolute=yes 9096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9097 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9098 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9099 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9100 export_dynamic_flag_spec='${wl}-E' 9101 else 9102 case $host_os in 9103 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9104 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9105 hardcode_libdir_flag_spec='-R$libdir' 9106 ;; 9107 *) 9108 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9109 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9110 ;; 9111 esac 9112 fi 9113 else 9114 ld_shlibs=no 9115 fi 9116 ;; 9117 9118 os2*) 9119 hardcode_libdir_flag_spec='-L$libdir' 9120 hardcode_minus_L=yes 9121 allow_undefined_flag=unsupported 9122 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9123 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9124 ;; 9125 9126 osf3*) 9127 if test "$GCC" = yes; then 9128 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9129 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' 9130 else 9131 allow_undefined_flag=' -expect_unresolved \*' 9132 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' 9133 fi 9134 archive_cmds_need_lc='no' 9135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9136 hardcode_libdir_separator=: 9137 ;; 9138 9139 osf4* | osf5*) # as osf3* with the addition of -msym flag 9140 if test "$GCC" = yes; then 9141 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9142 archive_cmds='$CC -shared${allow_undefined_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' 9143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9144 else 9145 allow_undefined_flag=' -expect_unresolved \*' 9146 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' 9147 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~ 9148 $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' 9149 9150 # Both c and cxx compiler support -rpath directly 9151 hardcode_libdir_flag_spec='-rpath $libdir' 9152 fi 9153 archive_cmds_need_lc='no' 9154 hardcode_libdir_separator=: 9155 ;; 9156 9157 solaris*) 9158 no_undefined_flag=' -z defs' 9159 if test "$GCC" = yes; then 9160 wlarc='${wl}' 9161 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9162 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9163 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9164 else 9165 case `$CC -V 2>&1` in 9166 *"Compilers 5.0"*) 9167 wlarc='' 9168 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9169 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9170 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9171 ;; 9172 *) 9173 wlarc='${wl}' 9174 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9175 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9176 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9177 ;; 9178 esac 9179 fi 9180 hardcode_libdir_flag_spec='-R$libdir' 9181 hardcode_shlibpath_var=no 9182 case $host_os in 9183 solaris2.[0-5] | solaris2.[0-5].*) ;; 9184 *) 9185 # The compiler driver will combine and reorder linker options, 9186 # but understands `-z linker_flag'. GCC discards it without `$wl', 9187 # but is careful enough not to reorder. 9188 # Supported since Solaris 2.6 (maybe 2.5.1?) 9189 if test "$GCC" = yes; then 9190 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9191 else 9192 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9193 fi 9194 ;; 9195 esac 9196 link_all_deplibs=yes 9197 ;; 9198 9199 sunos4*) 9200 if test "x$host_vendor" = xsequent; then 9201 # Use $CC to link under sequent, because it throws in some extra .o 9202 # files that make .init and .fini sections work. 9203 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9204 else 9205 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9206 fi 9207 hardcode_libdir_flag_spec='-L$libdir' 9208 hardcode_direct=yes 9209 hardcode_minus_L=yes 9210 hardcode_shlibpath_var=no 9211 ;; 9212 9213 sysv4) 9214 case $host_vendor in 9215 sni) 9216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9217 hardcode_direct=yes # is this really true??? 9218 ;; 9219 siemens) 9220 ## LD is ld it makes a PLAMLIB 9221 ## CC just makes a GrossModule. 9222 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9223 reload_cmds='$CC -r -o $output$reload_objs' 9224 hardcode_direct=no 9225 ;; 9226 motorola) 9227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9228 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9229 ;; 9230 esac 9231 runpath_var='LD_RUN_PATH' 9232 hardcode_shlibpath_var=no 9233 ;; 9234 9235 sysv4.3*) 9236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9237 hardcode_shlibpath_var=no 9238 export_dynamic_flag_spec='-Bexport' 9239 ;; 9240 9241 sysv4*MP*) 9242 if test -d /usr/nec; then 9243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9244 hardcode_shlibpath_var=no 9245 runpath_var=LD_RUN_PATH 9246 hardcode_runpath_var=yes 9247 ld_shlibs=yes 9248 fi 9249 ;; 9250 9251 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9252 no_undefined_flag='${wl}-z,text' 9253 archive_cmds_need_lc=no 9254 hardcode_shlibpath_var=no 9255 runpath_var='LD_RUN_PATH' 9256 9257 if test "$GCC" = yes; then 9258 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9259 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9260 else 9261 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9262 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9263 fi 9264 ;; 9265 9266 sysv5* | sco3.2v5* | sco5v6*) 9267 # Note: We can NOT use -z defs as we might desire, because we do not 9268 # link with -lc, and that would cause any symbols used from libc to 9269 # always be unresolved, which means just about no library would 9270 # ever link correctly. If we're not using GNU ld we use -z text 9271 # though, which does catch some bad symbols but isn't as heavy-handed 9272 # as -z defs. 9273 no_undefined_flag='${wl}-z,text' 9274 allow_undefined_flag='${wl}-z,nodefs' 9275 archive_cmds_need_lc=no 9276 hardcode_shlibpath_var=no 9277 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9278 hardcode_libdir_separator=':' 9279 link_all_deplibs=yes 9280 export_dynamic_flag_spec='${wl}-Bexport' 9281 runpath_var='LD_RUN_PATH' 9282 9283 if test "$GCC" = yes; then 9284 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9285 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9286 else 9287 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9288 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9289 fi 9290 ;; 9291 9292 uts4*) 9293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9294 hardcode_libdir_flag_spec='-L$libdir' 9295 hardcode_shlibpath_var=no 9296 ;; 9297 9298 *) 9299 ld_shlibs=no 9300 ;; 9301 esac 9302 9303 if test x$host_vendor = xsni; then 9304 case $host in 9305 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9306 export_dynamic_flag_spec='${wl}-Blargedynsym' 9307 ;; 9308 esac 9309 fi 9310 fi 9311 9312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9313$as_echo "$ld_shlibs" >&6; } 9314test "$ld_shlibs" = no && can_build_shared=no 9315 9316with_gnu_ld=$with_gnu_ld 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332# 9333# Do we need to explicitly link libc? 9334# 9335case "x$archive_cmds_need_lc" in 9336x|xyes) 9337 # Assume -lc should be added 9338 archive_cmds_need_lc=yes 9339 9340 if test "$enable_shared" = yes && test "$GCC" = yes; then 9341 case $archive_cmds in 9342 *'~'*) 9343 # FIXME: we may have to deal with multi-command sequences. 9344 ;; 9345 '$CC '*) 9346 # Test whether the compiler implicitly links with -lc since on some 9347 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9348 # to ld, don't add -lc before -lgcc. 9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9350$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9351if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 9352 $as_echo_n "(cached) " >&6 9353else 9354 $RM conftest* 9355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9356 9357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9358 (eval $ac_compile) 2>&5 9359 ac_status=$? 9360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9361 test $ac_status = 0; } 2>conftest.err; then 9362 soname=conftest 9363 lib=conftest 9364 libobjs=conftest.$ac_objext 9365 deplibs= 9366 wl=$lt_prog_compiler_wl 9367 pic_flag=$lt_prog_compiler_pic 9368 compiler_flags=-v 9369 linker_flags=-v 9370 verstring= 9371 output_objdir=. 9372 libname=conftest 9373 lt_save_allow_undefined_flag=$allow_undefined_flag 9374 allow_undefined_flag= 9375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9376 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9377 ac_status=$? 9378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9379 test $ac_status = 0; } 9380 then 9381 lt_cv_archive_cmds_need_lc=no 9382 else 9383 lt_cv_archive_cmds_need_lc=yes 9384 fi 9385 allow_undefined_flag=$lt_save_allow_undefined_flag 9386 else 9387 cat conftest.err 1>&5 9388 fi 9389 $RM conftest* 9390 9391fi 9392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9393$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9394 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9395 ;; 9396 esac 9397 fi 9398 ;; 9399esac 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9558$as_echo_n "checking dynamic linker characteristics... " >&6; } 9559 9560if test "$GCC" = yes; then 9561 case $host_os in 9562 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9563 *) lt_awk_arg="/^libraries:/" ;; 9564 esac 9565 case $host_os in 9566 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9567 *) lt_sed_strip_eq="s,=/,/,g" ;; 9568 esac 9569 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9570 case $lt_search_path_spec in 9571 *\;*) 9572 # if the path contains ";" then we assume it to be the separator 9573 # otherwise default to the standard path separator (i.e. ":") - it is 9574 # assumed that no part of a normal pathname contains ";" but that should 9575 # okay in the real world where ";" in dirpaths is itself problematic. 9576 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9577 ;; 9578 *) 9579 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9580 ;; 9581 esac 9582 # Ok, now we have the path, separated by spaces, we can step through it 9583 # and add multilib dir if necessary. 9584 lt_tmp_lt_search_path_spec= 9585 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9586 for lt_sys_path in $lt_search_path_spec; do 9587 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9588 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9589 else 9590 test -d "$lt_sys_path" && \ 9591 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9592 fi 9593 done 9594 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9595BEGIN {RS=" "; FS="/|\n";} { 9596 lt_foo=""; 9597 lt_count=0; 9598 for (lt_i = NF; lt_i > 0; lt_i--) { 9599 if ($lt_i != "" && $lt_i != ".") { 9600 if ($lt_i == "..") { 9601 lt_count++; 9602 } else { 9603 if (lt_count == 0) { 9604 lt_foo="/" $lt_i lt_foo; 9605 } else { 9606 lt_count--; 9607 } 9608 } 9609 } 9610 } 9611 if (lt_foo != "") { lt_freq[lt_foo]++; } 9612 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9613}'` 9614 # AWK program above erroneously prepends '/' to C:/dos/paths 9615 # for these hosts. 9616 case $host_os in 9617 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9618 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9619 esac 9620 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9621else 9622 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9623fi 9624library_names_spec= 9625libname_spec='lib$name' 9626soname_spec= 9627shrext_cmds=".so" 9628postinstall_cmds= 9629postuninstall_cmds= 9630finish_cmds= 9631finish_eval= 9632shlibpath_var= 9633shlibpath_overrides_runpath=unknown 9634version_type=none 9635dynamic_linker="$host_os ld.so" 9636sys_lib_dlsearch_path_spec="/lib /usr/lib" 9637need_lib_prefix=unknown 9638hardcode_into_libs=no 9639 9640# when you set need_version to no, make sure it does not cause -set_version 9641# flags to be left without arguments 9642need_version=unknown 9643 9644case $host_os in 9645aix3*) 9646 version_type=linux 9647 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9648 shlibpath_var=LIBPATH 9649 9650 # AIX 3 has no versioning support, so we append a major version to the name. 9651 soname_spec='${libname}${release}${shared_ext}$major' 9652 ;; 9653 9654aix[4-9]*) 9655 version_type=linux 9656 need_lib_prefix=no 9657 need_version=no 9658 hardcode_into_libs=yes 9659 if test "$host_cpu" = ia64; then 9660 # AIX 5 supports IA64 9661 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9662 shlibpath_var=LD_LIBRARY_PATH 9663 else 9664 # With GCC up to 2.95.x, collect2 would create an import file 9665 # for dependence libraries. The import file would start with 9666 # the line `#! .'. This would cause the generated library to 9667 # depend on `.', always an invalid library. This was fixed in 9668 # development snapshots of GCC prior to 3.0. 9669 case $host_os in 9670 aix4 | aix4.[01] | aix4.[01].*) 9671 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9672 echo ' yes ' 9673 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9674 : 9675 else 9676 can_build_shared=no 9677 fi 9678 ;; 9679 esac 9680 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9681 # soname into executable. Probably we can add versioning support to 9682 # collect2, so additional links can be useful in future. 9683 if test "$aix_use_runtimelinking" = yes; then 9684 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9685 # instead of lib<name>.a to let people know that these are not 9686 # typical AIX shared libraries. 9687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9688 else 9689 # We preserve .a as extension for shared libraries through AIX4.2 9690 # and later when we are not doing run time linking. 9691 library_names_spec='${libname}${release}.a $libname.a' 9692 soname_spec='${libname}${release}${shared_ext}$major' 9693 fi 9694 shlibpath_var=LIBPATH 9695 fi 9696 ;; 9697 9698amigaos*) 9699 case $host_cpu in 9700 powerpc) 9701 # Since July 2007 AmigaOS4 officially supports .so libraries. 9702 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9704 ;; 9705 m68k) 9706 library_names_spec='$libname.ixlibrary $libname.a' 9707 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9708 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 9709 ;; 9710 esac 9711 ;; 9712 9713beos*) 9714 library_names_spec='${libname}${shared_ext}' 9715 dynamic_linker="$host_os ld.so" 9716 shlibpath_var=LIBRARY_PATH 9717 ;; 9718 9719bsdi[45]*) 9720 version_type=linux 9721 need_version=no 9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9723 soname_spec='${libname}${release}${shared_ext}$major' 9724 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9725 shlibpath_var=LD_LIBRARY_PATH 9726 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9727 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9728 # the default ld.so.conf also contains /usr/contrib/lib and 9729 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9730 # libtool to hard-code these into programs 9731 ;; 9732 9733cygwin* | mingw* | pw32* | cegcc*) 9734 version_type=windows 9735 shrext_cmds=".dll" 9736 need_version=no 9737 need_lib_prefix=no 9738 9739 case $GCC,$host_os in 9740 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9741 library_names_spec='$libname.dll.a' 9742 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9743 postinstall_cmds='base_file=`basename \${file}`~ 9744 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9745 dldir=$destdir/`dirname \$dlpath`~ 9746 test -d \$dldir || mkdir -p \$dldir~ 9747 $install_prog $dir/$dlname \$dldir/$dlname~ 9748 chmod a+x \$dldir/$dlname~ 9749 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9750 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9751 fi' 9752 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9753 dlpath=$dir/\$dldll~ 9754 $RM \$dlpath' 9755 shlibpath_overrides_runpath=yes 9756 9757 case $host_os in 9758 cygwin*) 9759 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9760 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9761 9762 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9763 ;; 9764 mingw* | cegcc*) 9765 # MinGW DLLs use traditional 'lib' prefix 9766 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9767 ;; 9768 pw32*) 9769 # pw32 DLLs use 'pw' prefix rather than 'lib' 9770 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9771 ;; 9772 esac 9773 ;; 9774 9775 *) 9776 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9777 ;; 9778 esac 9779 dynamic_linker='Win32 ld.exe' 9780 # FIXME: first we should search . and the directory the executable is in 9781 shlibpath_var=PATH 9782 ;; 9783 9784darwin* | rhapsody*) 9785 dynamic_linker="$host_os dyld" 9786 version_type=darwin 9787 need_lib_prefix=no 9788 need_version=no 9789 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9790 soname_spec='${libname}${release}${major}$shared_ext' 9791 shlibpath_overrides_runpath=yes 9792 shlibpath_var=DYLD_LIBRARY_PATH 9793 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9794 9795 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9796 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9797 ;; 9798 9799dgux*) 9800 version_type=linux 9801 need_lib_prefix=no 9802 need_version=no 9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9804 soname_spec='${libname}${release}${shared_ext}$major' 9805 shlibpath_var=LD_LIBRARY_PATH 9806 ;; 9807 9808freebsd* | dragonfly*) 9809 # DragonFly does not have aout. When/if they implement a new 9810 # versioning mechanism, adjust this. 9811 if test -x /usr/bin/objformat; then 9812 objformat=`/usr/bin/objformat` 9813 else 9814 case $host_os in 9815 freebsd[23].*) objformat=aout ;; 9816 *) objformat=elf ;; 9817 esac 9818 fi 9819 version_type=freebsd-$objformat 9820 case $version_type in 9821 freebsd-elf*) 9822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9823 need_version=no 9824 need_lib_prefix=no 9825 ;; 9826 freebsd-*) 9827 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9828 need_version=yes 9829 ;; 9830 esac 9831 shlibpath_var=LD_LIBRARY_PATH 9832 case $host_os in 9833 freebsd2.*) 9834 shlibpath_overrides_runpath=yes 9835 ;; 9836 freebsd3.[01]* | freebsdelf3.[01]*) 9837 shlibpath_overrides_runpath=yes 9838 hardcode_into_libs=yes 9839 ;; 9840 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9841 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9842 shlibpath_overrides_runpath=no 9843 hardcode_into_libs=yes 9844 ;; 9845 *) # from 4.6 on, and DragonFly 9846 shlibpath_overrides_runpath=yes 9847 hardcode_into_libs=yes 9848 ;; 9849 esac 9850 ;; 9851 9852gnu*) 9853 version_type=linux 9854 need_lib_prefix=no 9855 need_version=no 9856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9857 soname_spec='${libname}${release}${shared_ext}$major' 9858 shlibpath_var=LD_LIBRARY_PATH 9859 hardcode_into_libs=yes 9860 ;; 9861 9862haiku*) 9863 version_type=linux 9864 need_lib_prefix=no 9865 need_version=no 9866 dynamic_linker="$host_os runtime_loader" 9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9868 soname_spec='${libname}${release}${shared_ext}$major' 9869 shlibpath_var=LIBRARY_PATH 9870 shlibpath_overrides_runpath=yes 9871 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 9872 hardcode_into_libs=yes 9873 ;; 9874 9875hpux9* | hpux10* | hpux11*) 9876 # Give a soname corresponding to the major version so that dld.sl refuses to 9877 # link against other versions. 9878 version_type=sunos 9879 need_lib_prefix=no 9880 need_version=no 9881 case $host_cpu in 9882 ia64*) 9883 shrext_cmds='.so' 9884 hardcode_into_libs=yes 9885 dynamic_linker="$host_os dld.so" 9886 shlibpath_var=LD_LIBRARY_PATH 9887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9889 soname_spec='${libname}${release}${shared_ext}$major' 9890 if test "X$HPUX_IA64_MODE" = X32; then 9891 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9892 else 9893 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9894 fi 9895 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9896 ;; 9897 hppa*64*) 9898 shrext_cmds='.sl' 9899 hardcode_into_libs=yes 9900 dynamic_linker="$host_os dld.sl" 9901 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9902 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9904 soname_spec='${libname}${release}${shared_ext}$major' 9905 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9907 ;; 9908 *) 9909 shrext_cmds='.sl' 9910 dynamic_linker="$host_os dld.sl" 9911 shlibpath_var=SHLIB_PATH 9912 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9914 soname_spec='${libname}${release}${shared_ext}$major' 9915 ;; 9916 esac 9917 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 9918 postinstall_cmds='chmod 555 $lib' 9919 # or fails outright, so override atomically: 9920 install_override_mode=555 9921 ;; 9922 9923interix[3-9]*) 9924 version_type=linux 9925 need_lib_prefix=no 9926 need_version=no 9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9928 soname_spec='${libname}${release}${shared_ext}$major' 9929 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9930 shlibpath_var=LD_LIBRARY_PATH 9931 shlibpath_overrides_runpath=no 9932 hardcode_into_libs=yes 9933 ;; 9934 9935irix5* | irix6* | nonstopux*) 9936 case $host_os in 9937 nonstopux*) version_type=nonstopux ;; 9938 *) 9939 if test "$lt_cv_prog_gnu_ld" = yes; then 9940 version_type=linux 9941 else 9942 version_type=irix 9943 fi ;; 9944 esac 9945 need_lib_prefix=no 9946 need_version=no 9947 soname_spec='${libname}${release}${shared_ext}$major' 9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9949 case $host_os in 9950 irix5* | nonstopux*) 9951 libsuff= shlibsuff= 9952 ;; 9953 *) 9954 case $LD in # libtool.m4 will add one of these switches to LD 9955 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9956 libsuff= shlibsuff= libmagic=32-bit;; 9957 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9958 libsuff=32 shlibsuff=N32 libmagic=N32;; 9959 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9960 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9961 *) libsuff= shlibsuff= libmagic=never-match;; 9962 esac 9963 ;; 9964 esac 9965 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9966 shlibpath_overrides_runpath=no 9967 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9968 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9969 hardcode_into_libs=yes 9970 ;; 9971 9972# No shared lib support for Linux oldld, aout, or coff. 9973linux*oldld* | linux*aout* | linux*coff*) 9974 dynamic_linker=no 9975 ;; 9976 9977# This must be Linux ELF. 9978linux* | k*bsd*-gnu | kopensolaris*-gnu) 9979 version_type=linux 9980 need_lib_prefix=no 9981 need_version=no 9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9983 soname_spec='${libname}${release}${shared_ext}$major' 9984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9985 shlibpath_var=LD_LIBRARY_PATH 9986 shlibpath_overrides_runpath=no 9987 9988 # Some binutils ld are patched to set DT_RUNPATH 9989 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 9990 $as_echo_n "(cached) " >&6 9991else 9992 lt_cv_shlibpath_overrides_runpath=no 9993 save_LDFLAGS=$LDFLAGS 9994 save_libdir=$libdir 9995 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9996 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9997 if test x$gcc_no_link = xyes; then 9998 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 9999fi 10000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10001/* end confdefs.h. */ 10002 10003int 10004main () 10005{ 10006 10007 ; 10008 return 0; 10009} 10010_ACEOF 10011if ac_fn_c_try_link "$LINENO"; then : 10012 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10013 lt_cv_shlibpath_overrides_runpath=yes 10014fi 10015fi 10016rm -f core conftest.err conftest.$ac_objext \ 10017 conftest$ac_exeext conftest.$ac_ext 10018 LDFLAGS=$save_LDFLAGS 10019 libdir=$save_libdir 10020 10021fi 10022 10023 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10024 10025 # This implies no fast_install, which is unacceptable. 10026 # Some rework will be needed to allow for fast_install 10027 # before this can be enabled. 10028 hardcode_into_libs=yes 10029 10030 # Append ld.so.conf contents to the search path 10031 if test -f /etc/ld.so.conf; then 10032 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' ' '` 10033 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10034 fi 10035 10036 # We used to test for /lib/ld.so.1 and disable shared libraries on 10037 # powerpc, because MkLinux only supported shared libraries with the 10038 # GNU dynamic linker. Since this was broken with cross compilers, 10039 # most powerpc-linux boxes support dynamic linking these days and 10040 # people can always --disable-shared, the test was removed, and we 10041 # assume the GNU/Linux dynamic linker is in use. 10042 dynamic_linker='GNU/Linux ld.so' 10043 ;; 10044 10045netbsd*) 10046 version_type=sunos 10047 need_lib_prefix=no 10048 need_version=no 10049 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10052 dynamic_linker='NetBSD (a.out) ld.so' 10053 else 10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10055 soname_spec='${libname}${release}${shared_ext}$major' 10056 dynamic_linker='NetBSD ld.elf_so' 10057 fi 10058 shlibpath_var=LD_LIBRARY_PATH 10059 shlibpath_overrides_runpath=yes 10060 hardcode_into_libs=yes 10061 ;; 10062 10063newsos6) 10064 version_type=linux 10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10066 shlibpath_var=LD_LIBRARY_PATH 10067 shlibpath_overrides_runpath=yes 10068 ;; 10069 10070*nto* | *qnx*) 10071 version_type=qnx 10072 need_lib_prefix=no 10073 need_version=no 10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10075 soname_spec='${libname}${release}${shared_ext}$major' 10076 shlibpath_var=LD_LIBRARY_PATH 10077 shlibpath_overrides_runpath=no 10078 hardcode_into_libs=yes 10079 dynamic_linker='ldqnx.so' 10080 ;; 10081 10082openbsd*) 10083 version_type=sunos 10084 sys_lib_dlsearch_path_spec="/usr/lib" 10085 need_lib_prefix=no 10086 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10087 case $host_os in 10088 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10089 *) need_version=no ;; 10090 esac 10091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10093 shlibpath_var=LD_LIBRARY_PATH 10094 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10095 case $host_os in 10096 openbsd2.[89] | openbsd2.[89].*) 10097 shlibpath_overrides_runpath=no 10098 ;; 10099 *) 10100 shlibpath_overrides_runpath=yes 10101 ;; 10102 esac 10103 else 10104 shlibpath_overrides_runpath=yes 10105 fi 10106 ;; 10107 10108os2*) 10109 libname_spec='$name' 10110 shrext_cmds=".dll" 10111 need_lib_prefix=no 10112 library_names_spec='$libname${shared_ext} $libname.a' 10113 dynamic_linker='OS/2 ld.exe' 10114 shlibpath_var=LIBPATH 10115 ;; 10116 10117osf3* | osf4* | osf5*) 10118 version_type=osf 10119 need_lib_prefix=no 10120 need_version=no 10121 soname_spec='${libname}${release}${shared_ext}$major' 10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10123 shlibpath_var=LD_LIBRARY_PATH 10124 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10125 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10126 ;; 10127 10128rdos*) 10129 dynamic_linker=no 10130 ;; 10131 10132solaris*) 10133 version_type=linux 10134 need_lib_prefix=no 10135 need_version=no 10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10137 soname_spec='${libname}${release}${shared_ext}$major' 10138 shlibpath_var=LD_LIBRARY_PATH 10139 shlibpath_overrides_runpath=yes 10140 hardcode_into_libs=yes 10141 # ldd complains unless libraries are executable 10142 postinstall_cmds='chmod +x $lib' 10143 ;; 10144 10145sunos4*) 10146 version_type=sunos 10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10148 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10149 shlibpath_var=LD_LIBRARY_PATH 10150 shlibpath_overrides_runpath=yes 10151 if test "$with_gnu_ld" = yes; then 10152 need_lib_prefix=no 10153 fi 10154 need_version=yes 10155 ;; 10156 10157sysv4 | sysv4.3*) 10158 version_type=linux 10159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10160 soname_spec='${libname}${release}${shared_ext}$major' 10161 shlibpath_var=LD_LIBRARY_PATH 10162 case $host_vendor in 10163 sni) 10164 shlibpath_overrides_runpath=no 10165 need_lib_prefix=no 10166 runpath_var=LD_RUN_PATH 10167 ;; 10168 siemens) 10169 need_lib_prefix=no 10170 ;; 10171 motorola) 10172 need_lib_prefix=no 10173 need_version=no 10174 shlibpath_overrides_runpath=no 10175 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10176 ;; 10177 esac 10178 ;; 10179 10180sysv4*MP*) 10181 if test -d /usr/nec ;then 10182 version_type=linux 10183 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10184 soname_spec='$libname${shared_ext}.$major' 10185 shlibpath_var=LD_LIBRARY_PATH 10186 fi 10187 ;; 10188 10189sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10190 version_type=freebsd-elf 10191 need_lib_prefix=no 10192 need_version=no 10193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10194 soname_spec='${libname}${release}${shared_ext}$major' 10195 shlibpath_var=LD_LIBRARY_PATH 10196 shlibpath_overrides_runpath=yes 10197 hardcode_into_libs=yes 10198 if test "$with_gnu_ld" = yes; then 10199 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10200 else 10201 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10202 case $host_os in 10203 sco3.2v5*) 10204 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10205 ;; 10206 esac 10207 fi 10208 sys_lib_dlsearch_path_spec='/usr/lib' 10209 ;; 10210 10211tpf*) 10212 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10213 version_type=linux 10214 need_lib_prefix=no 10215 need_version=no 10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10217 shlibpath_var=LD_LIBRARY_PATH 10218 shlibpath_overrides_runpath=no 10219 hardcode_into_libs=yes 10220 ;; 10221 10222uts4*) 10223 version_type=linux 10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10225 soname_spec='${libname}${release}${shared_ext}$major' 10226 shlibpath_var=LD_LIBRARY_PATH 10227 ;; 10228 10229*) 10230 dynamic_linker=no 10231 ;; 10232esac 10233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10234$as_echo "$dynamic_linker" >&6; } 10235test "$dynamic_linker" = no && can_build_shared=no 10236 10237variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10238if test "$GCC" = yes; then 10239 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10240fi 10241 10242if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10243 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10244fi 10245if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10246 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10247fi 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10341$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10342hardcode_action= 10343if test -n "$hardcode_libdir_flag_spec" || 10344 test -n "$runpath_var" || 10345 test "X$hardcode_automatic" = "Xyes" ; then 10346 10347 # We can hardcode non-existent directories. 10348 if test "$hardcode_direct" != no && 10349 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10350 # have to relink, otherwise we might link with an installed library 10351 # when we should be linking with a yet-to-be-installed one 10352 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10353 test "$hardcode_minus_L" != no; then 10354 # Linking always hardcodes the temporary library directory. 10355 hardcode_action=relink 10356 else 10357 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10358 hardcode_action=immediate 10359 fi 10360else 10361 # We cannot hardcode anything, or else we can only hardcode existing 10362 # directories. 10363 hardcode_action=unsupported 10364fi 10365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10366$as_echo "$hardcode_action" >&6; } 10367 10368if test "$hardcode_action" = relink || 10369 test "$inherit_rpath" = yes; then 10370 # Fast installation is not supported 10371 enable_fast_install=no 10372elif test "$shlibpath_overrides_runpath" = yes || 10373 test "$enable_shared" = no; then 10374 # Fast installation is not necessary 10375 enable_fast_install=needless 10376fi 10377 10378 10379 10380 10381 10382 10383 if test "x$enable_dlopen" != xyes; then 10384 enable_dlopen=unknown 10385 enable_dlopen_self=unknown 10386 enable_dlopen_self_static=unknown 10387else 10388 lt_cv_dlopen=no 10389 lt_cv_dlopen_libs= 10390 10391 case $host_os in 10392 beos*) 10393 lt_cv_dlopen="load_add_on" 10394 lt_cv_dlopen_libs= 10395 lt_cv_dlopen_self=yes 10396 ;; 10397 10398 mingw* | pw32* | cegcc*) 10399 lt_cv_dlopen="LoadLibrary" 10400 lt_cv_dlopen_libs= 10401 ;; 10402 10403 cygwin*) 10404 lt_cv_dlopen="dlopen" 10405 lt_cv_dlopen_libs= 10406 ;; 10407 10408 darwin*) 10409 # if libdl is installed we need to link against it 10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10411$as_echo_n "checking for dlopen in -ldl... " >&6; } 10412if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10413 $as_echo_n "(cached) " >&6 10414else 10415 ac_check_lib_save_LIBS=$LIBS 10416LIBS="-ldl $LIBS" 10417if test x$gcc_no_link = xyes; then 10418 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10419fi 10420cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10421/* end confdefs.h. */ 10422 10423/* Override any GCC internal prototype to avoid an error. 10424 Use char because int might match the return type of a GCC 10425 builtin and then its argument prototype would still apply. */ 10426#ifdef __cplusplus 10427extern "C" 10428#endif 10429char dlopen (); 10430int 10431main () 10432{ 10433return dlopen (); 10434 ; 10435 return 0; 10436} 10437_ACEOF 10438if ac_fn_c_try_link "$LINENO"; then : 10439 ac_cv_lib_dl_dlopen=yes 10440else 10441 ac_cv_lib_dl_dlopen=no 10442fi 10443rm -f core conftest.err conftest.$ac_objext \ 10444 conftest$ac_exeext conftest.$ac_ext 10445LIBS=$ac_check_lib_save_LIBS 10446fi 10447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10448$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10449if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10450 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10451else 10452 10453 lt_cv_dlopen="dyld" 10454 lt_cv_dlopen_libs= 10455 lt_cv_dlopen_self=yes 10456 10457fi 10458 10459 ;; 10460 10461 *) 10462 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10463if test "x$ac_cv_func_shl_load" = x""yes; then : 10464 lt_cv_dlopen="shl_load" 10465else 10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10467$as_echo_n "checking for shl_load in -ldld... " >&6; } 10468if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10469 $as_echo_n "(cached) " >&6 10470else 10471 ac_check_lib_save_LIBS=$LIBS 10472LIBS="-ldld $LIBS" 10473if test x$gcc_no_link = xyes; then 10474 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10475fi 10476cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10477/* end confdefs.h. */ 10478 10479/* Override any GCC internal prototype to avoid an error. 10480 Use char because int might match the return type of a GCC 10481 builtin and then its argument prototype would still apply. */ 10482#ifdef __cplusplus 10483extern "C" 10484#endif 10485char shl_load (); 10486int 10487main () 10488{ 10489return shl_load (); 10490 ; 10491 return 0; 10492} 10493_ACEOF 10494if ac_fn_c_try_link "$LINENO"; then : 10495 ac_cv_lib_dld_shl_load=yes 10496else 10497 ac_cv_lib_dld_shl_load=no 10498fi 10499rm -f core conftest.err conftest.$ac_objext \ 10500 conftest$ac_exeext conftest.$ac_ext 10501LIBS=$ac_check_lib_save_LIBS 10502fi 10503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10504$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10505if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10506 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10507else 10508 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10509if test "x$ac_cv_func_dlopen" = x""yes; then : 10510 lt_cv_dlopen="dlopen" 10511else 10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10513$as_echo_n "checking for dlopen in -ldl... " >&6; } 10514if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10515 $as_echo_n "(cached) " >&6 10516else 10517 ac_check_lib_save_LIBS=$LIBS 10518LIBS="-ldl $LIBS" 10519if test x$gcc_no_link = xyes; then 10520 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10521fi 10522cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10523/* end confdefs.h. */ 10524 10525/* Override any GCC internal prototype to avoid an error. 10526 Use char because int might match the return type of a GCC 10527 builtin and then its argument prototype would still apply. */ 10528#ifdef __cplusplus 10529extern "C" 10530#endif 10531char dlopen (); 10532int 10533main () 10534{ 10535return dlopen (); 10536 ; 10537 return 0; 10538} 10539_ACEOF 10540if ac_fn_c_try_link "$LINENO"; then : 10541 ac_cv_lib_dl_dlopen=yes 10542else 10543 ac_cv_lib_dl_dlopen=no 10544fi 10545rm -f core conftest.err conftest.$ac_objext \ 10546 conftest$ac_exeext conftest.$ac_ext 10547LIBS=$ac_check_lib_save_LIBS 10548fi 10549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10550$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10551if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10552 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10553else 10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10555$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10556if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10557 $as_echo_n "(cached) " >&6 10558else 10559 ac_check_lib_save_LIBS=$LIBS 10560LIBS="-lsvld $LIBS" 10561if test x$gcc_no_link = xyes; then 10562 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10563fi 10564cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10565/* end confdefs.h. */ 10566 10567/* Override any GCC internal prototype to avoid an error. 10568 Use char because int might match the return type of a GCC 10569 builtin and then its argument prototype would still apply. */ 10570#ifdef __cplusplus 10571extern "C" 10572#endif 10573char dlopen (); 10574int 10575main () 10576{ 10577return dlopen (); 10578 ; 10579 return 0; 10580} 10581_ACEOF 10582if ac_fn_c_try_link "$LINENO"; then : 10583 ac_cv_lib_svld_dlopen=yes 10584else 10585 ac_cv_lib_svld_dlopen=no 10586fi 10587rm -f core conftest.err conftest.$ac_objext \ 10588 conftest$ac_exeext conftest.$ac_ext 10589LIBS=$ac_check_lib_save_LIBS 10590fi 10591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10592$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10593if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10594 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10595else 10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10597$as_echo_n "checking for dld_link in -ldld... " >&6; } 10598if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10599 $as_echo_n "(cached) " >&6 10600else 10601 ac_check_lib_save_LIBS=$LIBS 10602LIBS="-ldld $LIBS" 10603if test x$gcc_no_link = xyes; then 10604 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10605fi 10606cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10607/* end confdefs.h. */ 10608 10609/* Override any GCC internal prototype to avoid an error. 10610 Use char because int might match the return type of a GCC 10611 builtin and then its argument prototype would still apply. */ 10612#ifdef __cplusplus 10613extern "C" 10614#endif 10615char dld_link (); 10616int 10617main () 10618{ 10619return dld_link (); 10620 ; 10621 return 0; 10622} 10623_ACEOF 10624if ac_fn_c_try_link "$LINENO"; then : 10625 ac_cv_lib_dld_dld_link=yes 10626else 10627 ac_cv_lib_dld_dld_link=no 10628fi 10629rm -f core conftest.err conftest.$ac_objext \ 10630 conftest$ac_exeext conftest.$ac_ext 10631LIBS=$ac_check_lib_save_LIBS 10632fi 10633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10634$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10635if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10636 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10637fi 10638 10639 10640fi 10641 10642 10643fi 10644 10645 10646fi 10647 10648 10649fi 10650 10651 10652fi 10653 10654 ;; 10655 esac 10656 10657 if test "x$lt_cv_dlopen" != xno; then 10658 enable_dlopen=yes 10659 else 10660 enable_dlopen=no 10661 fi 10662 10663 case $lt_cv_dlopen in 10664 dlopen) 10665 save_CPPFLAGS="$CPPFLAGS" 10666 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10667 10668 save_LDFLAGS="$LDFLAGS" 10669 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10670 10671 save_LIBS="$LIBS" 10672 LIBS="$lt_cv_dlopen_libs $LIBS" 10673 10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10675$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10676if test "${lt_cv_dlopen_self+set}" = set; then : 10677 $as_echo_n "(cached) " >&6 10678else 10679 if test "$cross_compiling" = yes; then : 10680 lt_cv_dlopen_self=cross 10681else 10682 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10683 lt_status=$lt_dlunknown 10684 cat > conftest.$ac_ext <<_LT_EOF 10685#line 10685 "configure" 10686#include "confdefs.h" 10687 10688#if HAVE_DLFCN_H 10689#include <dlfcn.h> 10690#endif 10691 10692#include <stdio.h> 10693 10694#ifdef RTLD_GLOBAL 10695# define LT_DLGLOBAL RTLD_GLOBAL 10696#else 10697# ifdef DL_GLOBAL 10698# define LT_DLGLOBAL DL_GLOBAL 10699# else 10700# define LT_DLGLOBAL 0 10701# endif 10702#endif 10703 10704/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10705 find out it does not work in some platform. */ 10706#ifndef LT_DLLAZY_OR_NOW 10707# ifdef RTLD_LAZY 10708# define LT_DLLAZY_OR_NOW RTLD_LAZY 10709# else 10710# ifdef DL_LAZY 10711# define LT_DLLAZY_OR_NOW DL_LAZY 10712# else 10713# ifdef RTLD_NOW 10714# define LT_DLLAZY_OR_NOW RTLD_NOW 10715# else 10716# ifdef DL_NOW 10717# define LT_DLLAZY_OR_NOW DL_NOW 10718# else 10719# define LT_DLLAZY_OR_NOW 0 10720# endif 10721# endif 10722# endif 10723# endif 10724#endif 10725 10726/* When -fvisbility=hidden is used, assume the code has been annotated 10727 correspondingly for the symbols needed. */ 10728#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10729void fnord () __attribute__((visibility("default"))); 10730#endif 10731 10732void fnord () { int i=42; } 10733int main () 10734{ 10735 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10736 int status = $lt_dlunknown; 10737 10738 if (self) 10739 { 10740 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10741 else 10742 { 10743 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10744 else puts (dlerror ()); 10745 } 10746 /* dlclose (self); */ 10747 } 10748 else 10749 puts (dlerror ()); 10750 10751 return status; 10752} 10753_LT_EOF 10754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10755 (eval $ac_link) 2>&5 10756 ac_status=$? 10757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10758 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10759 (./conftest; exit; ) >&5 2>/dev/null 10760 lt_status=$? 10761 case x$lt_status in 10762 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10763 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10764 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10765 esac 10766 else : 10767 # compilation failed 10768 lt_cv_dlopen_self=no 10769 fi 10770fi 10771rm -fr conftest* 10772 10773 10774fi 10775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10776$as_echo "$lt_cv_dlopen_self" >&6; } 10777 10778 if test "x$lt_cv_dlopen_self" = xyes; then 10779 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10781$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10782if test "${lt_cv_dlopen_self_static+set}" = set; then : 10783 $as_echo_n "(cached) " >&6 10784else 10785 if test "$cross_compiling" = yes; then : 10786 lt_cv_dlopen_self_static=cross 10787else 10788 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10789 lt_status=$lt_dlunknown 10790 cat > conftest.$ac_ext <<_LT_EOF 10791#line 10791 "configure" 10792#include "confdefs.h" 10793 10794#if HAVE_DLFCN_H 10795#include <dlfcn.h> 10796#endif 10797 10798#include <stdio.h> 10799 10800#ifdef RTLD_GLOBAL 10801# define LT_DLGLOBAL RTLD_GLOBAL 10802#else 10803# ifdef DL_GLOBAL 10804# define LT_DLGLOBAL DL_GLOBAL 10805# else 10806# define LT_DLGLOBAL 0 10807# endif 10808#endif 10809 10810/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10811 find out it does not work in some platform. */ 10812#ifndef LT_DLLAZY_OR_NOW 10813# ifdef RTLD_LAZY 10814# define LT_DLLAZY_OR_NOW RTLD_LAZY 10815# else 10816# ifdef DL_LAZY 10817# define LT_DLLAZY_OR_NOW DL_LAZY 10818# else 10819# ifdef RTLD_NOW 10820# define LT_DLLAZY_OR_NOW RTLD_NOW 10821# else 10822# ifdef DL_NOW 10823# define LT_DLLAZY_OR_NOW DL_NOW 10824# else 10825# define LT_DLLAZY_OR_NOW 0 10826# endif 10827# endif 10828# endif 10829# endif 10830#endif 10831 10832/* When -fvisbility=hidden is used, assume the code has been annotated 10833 correspondingly for the symbols needed. */ 10834#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10835void fnord () __attribute__((visibility("default"))); 10836#endif 10837 10838void fnord () { int i=42; } 10839int main () 10840{ 10841 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10842 int status = $lt_dlunknown; 10843 10844 if (self) 10845 { 10846 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10847 else 10848 { 10849 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10850 else puts (dlerror ()); 10851 } 10852 /* dlclose (self); */ 10853 } 10854 else 10855 puts (dlerror ()); 10856 10857 return status; 10858} 10859_LT_EOF 10860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10861 (eval $ac_link) 2>&5 10862 ac_status=$? 10863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10864 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10865 (./conftest; exit; ) >&5 2>/dev/null 10866 lt_status=$? 10867 case x$lt_status in 10868 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10869 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10870 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10871 esac 10872 else : 10873 # compilation failed 10874 lt_cv_dlopen_self_static=no 10875 fi 10876fi 10877rm -fr conftest* 10878 10879 10880fi 10881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10882$as_echo "$lt_cv_dlopen_self_static" >&6; } 10883 fi 10884 10885 CPPFLAGS="$save_CPPFLAGS" 10886 LDFLAGS="$save_LDFLAGS" 10887 LIBS="$save_LIBS" 10888 ;; 10889 esac 10890 10891 case $lt_cv_dlopen_self in 10892 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10893 *) enable_dlopen_self=unknown ;; 10894 esac 10895 10896 case $lt_cv_dlopen_self_static in 10897 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10898 *) enable_dlopen_self_static=unknown ;; 10899 esac 10900fi 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918striplib= 10919old_striplib= 10920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10921$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10922if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10923 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10924 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10926$as_echo "yes" >&6; } 10927else 10928# FIXME - insert some real tests, host_os isn't really good enough 10929 case $host_os in 10930 darwin*) 10931 if test -n "$STRIP" ; then 10932 striplib="$STRIP -x" 10933 old_striplib="$STRIP -S" 10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10935$as_echo "yes" >&6; } 10936 else 10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10938$as_echo "no" >&6; } 10939 fi 10940 ;; 10941 *) 10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10943$as_echo "no" >&6; } 10944 ;; 10945 esac 10946fi 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 # Report which library types will actually be built 10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10961$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10963$as_echo "$can_build_shared" >&6; } 10964 10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10966$as_echo_n "checking whether to build shared libraries... " >&6; } 10967 test "$can_build_shared" = "no" && enable_shared=no 10968 10969 # On AIX, shared libraries and static libraries use the same namespace, and 10970 # are all built from PIC. 10971 case $host_os in 10972 aix3*) 10973 test "$enable_shared" = yes && enable_static=no 10974 if test -n "$RANLIB"; then 10975 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10976 postinstall_cmds='$RANLIB $lib' 10977 fi 10978 ;; 10979 10980 aix[4-9]*) 10981 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10982 test "$enable_shared" = yes && enable_static=no 10983 fi 10984 ;; 10985 esac 10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10987$as_echo "$enable_shared" >&6; } 10988 10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10990$as_echo_n "checking whether to build static libraries... " >&6; } 10991 # Make sure either enable_shared or enable_static is yes. 10992 test "$enable_shared" = yes || enable_static=yes 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10994$as_echo "$enable_static" >&6; } 10995 10996 10997 10998 10999fi 11000ac_ext=c 11001ac_cpp='$CPP $CPPFLAGS' 11002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11004ac_compiler_gnu=$ac_cv_c_compiler_gnu 11005 11006CC="$lt_save_CC" 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 ac_config_commands="$ac_config_commands libtool" 11021 11022 11023 11024 11025# Only expand once: 11026 11027 11028 11029if test "x$CC" != xcc; then 11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 11031$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 11032else 11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 11034$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 11035fi 11036set dummy $CC; ac_cc=`$as_echo "$2" | 11037 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 11038if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : 11039 $as_echo_n "(cached) " >&6 11040else 11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11042/* end confdefs.h. */ 11043 11044int 11045main () 11046{ 11047 11048 ; 11049 return 0; 11050} 11051_ACEOF 11052# Make sure it works both with $CC and with simple cc. 11053# We do the test twice because some compilers refuse to overwrite an 11054# existing .o file with -o, though they will create one. 11055ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 11056rm -f conftest2.* 11057if { { case "(($ac_try" in 11058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11059 *) ac_try_echo=$ac_try;; 11060esac 11061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11062$as_echo "$ac_try_echo"; } >&5 11063 (eval "$ac_try") 2>&5 11064 ac_status=$? 11065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11066 test $ac_status = 0; } && 11067 test -f conftest2.$ac_objext && { { case "(($ac_try" in 11068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11069 *) ac_try_echo=$ac_try;; 11070esac 11071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11072$as_echo "$ac_try_echo"; } >&5 11073 (eval "$ac_try") 2>&5 11074 ac_status=$? 11075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11076 test $ac_status = 0; }; 11077then 11078 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 11079 if test "x$CC" != xcc; then 11080 # Test first that cc exists at all. 11081 if { ac_try='cc -c conftest.$ac_ext >&5' 11082 { { case "(($ac_try" in 11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11084 *) ac_try_echo=$ac_try;; 11085esac 11086eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11087$as_echo "$ac_try_echo"; } >&5 11088 (eval "$ac_try") 2>&5 11089 ac_status=$? 11090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11091 test $ac_status = 0; }; }; then 11092 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 11093 rm -f conftest2.* 11094 if { { case "(($ac_try" in 11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11096 *) ac_try_echo=$ac_try;; 11097esac 11098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11099$as_echo "$ac_try_echo"; } >&5 11100 (eval "$ac_try") 2>&5 11101 ac_status=$? 11102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11103 test $ac_status = 0; } && 11104 test -f conftest2.$ac_objext && { { case "(($ac_try" in 11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11106 *) ac_try_echo=$ac_try;; 11107esac 11108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11109$as_echo "$ac_try_echo"; } >&5 11110 (eval "$ac_try") 2>&5 11111 ac_status=$? 11112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11113 test $ac_status = 0; }; 11114 then 11115 # cc works too. 11116 : 11117 else 11118 # cc exists but doesn't like -o. 11119 eval ac_cv_prog_cc_${ac_cc}_c_o=no 11120 fi 11121 fi 11122 fi 11123else 11124 eval ac_cv_prog_cc_${ac_cc}_c_o=no 11125fi 11126rm -f core conftest* 11127 11128fi 11129if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11131$as_echo "yes" >&6; } 11132else 11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11134$as_echo "no" >&6; } 11135 11136$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 11137 11138fi 11139 11140# expand $ac_aux_dir to an absolute path 11141am_aux_dir=`cd $ac_aux_dir && pwd` 11142 11143# FIXME: we rely on the cache variable name because 11144# there is no other way. 11145set dummy $CC 11146am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 11147eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 11148if test "$am_t" != yes; then 11149 # Losing compiler, so override with the script. 11150 # FIXME: It is wrong to rewrite CC. 11151 # But if we don't then we get into trouble of one sort or another. 11152 # A longer-term fix would be to have automake use am__CC in this case, 11153 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 11154 CC="$am_aux_dir/compile $CC" 11155fi 11156 11157 11158 11159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 11160$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 11161set x ${MAKE-make} 11162ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 11163if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 11164 $as_echo_n "(cached) " >&6 11165else 11166 cat >conftest.make <<\_ACEOF 11167SHELL = /bin/sh 11168all: 11169 @echo '@@@%%%=$(MAKE)=@@@%%%' 11170_ACEOF 11171# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 11172case `${MAKE-make} -f conftest.make 2>/dev/null` in 11173 *@@@%%%=?*=@@@%%%*) 11174 eval ac_cv_prog_make_${ac_make}_set=yes;; 11175 *) 11176 eval ac_cv_prog_make_${ac_make}_set=no;; 11177esac 11178rm -f conftest.make 11179fi 11180if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11182$as_echo "yes" >&6; } 11183 SET_MAKE= 11184else 11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11186$as_echo "no" >&6; } 11187 SET_MAKE="MAKE=${MAKE-make}" 11188fi 11189 11190 11191# ------- 11192# Headers 11193# ------- 11194 11195# Sanity check for the cross-compilation case: 11196ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 11197if test "x$ac_cv_header_stdio_h" = x""yes; then : 11198 : 11199else 11200 as_fn_error "Can't find stdio.h. 11201You must have a usable C system for the target already installed, at least 11202including headers and, preferably, the library, before you can configure 11203the Objective C runtime system. If necessary, install gcc now with 11204\`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." "$LINENO" 5 11205fi 11206 11207 11208 11209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 11210$as_echo_n "checking for ANSI C header files... " >&6; } 11211if test "${ac_cv_header_stdc+set}" = set; then : 11212 $as_echo_n "(cached) " >&6 11213else 11214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11215/* end confdefs.h. */ 11216#include <stdlib.h> 11217#include <stdarg.h> 11218#include <string.h> 11219#include <float.h> 11220 11221int 11222main () 11223{ 11224 11225 ; 11226 return 0; 11227} 11228_ACEOF 11229if ac_fn_c_try_compile "$LINENO"; then : 11230 ac_cv_header_stdc=yes 11231else 11232 ac_cv_header_stdc=no 11233fi 11234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11235 11236if test $ac_cv_header_stdc = yes; then 11237 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11239/* end confdefs.h. */ 11240#include <string.h> 11241 11242_ACEOF 11243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11244 $EGREP "memchr" >/dev/null 2>&1; then : 11245 11246else 11247 ac_cv_header_stdc=no 11248fi 11249rm -f conftest* 11250 11251fi 11252 11253if test $ac_cv_header_stdc = yes; then 11254 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11256/* end confdefs.h. */ 11257#include <stdlib.h> 11258 11259_ACEOF 11260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11261 $EGREP "free" >/dev/null 2>&1; then : 11262 11263else 11264 ac_cv_header_stdc=no 11265fi 11266rm -f conftest* 11267 11268fi 11269 11270if test $ac_cv_header_stdc = yes; then 11271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11272 if test "$cross_compiling" = yes; then : 11273 : 11274else 11275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11276/* end confdefs.h. */ 11277#include <ctype.h> 11278#include <stdlib.h> 11279#if ((' ' & 0x0FF) == 0x020) 11280# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11281# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11282#else 11283# define ISLOWER(c) \ 11284 (('a' <= (c) && (c) <= 'i') \ 11285 || ('j' <= (c) && (c) <= 'r') \ 11286 || ('s' <= (c) && (c) <= 'z')) 11287# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11288#endif 11289 11290#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11291int 11292main () 11293{ 11294 int i; 11295 for (i = 0; i < 256; i++) 11296 if (XOR (islower (i), ISLOWER (i)) 11297 || toupper (i) != TOUPPER (i)) 11298 return 2; 11299 return 0; 11300} 11301_ACEOF 11302if ac_fn_c_try_run "$LINENO"; then : 11303 11304else 11305 ac_cv_header_stdc=no 11306fi 11307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11308 conftest.$ac_objext conftest.beam conftest.$ac_ext 11309fi 11310 11311fi 11312fi 11313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 11314$as_echo "$ac_cv_header_stdc" >&6; } 11315if test $ac_cv_header_stdc = yes; then 11316 11317$as_echo "#define STDC_HEADERS 1" >>confdefs.h 11318 11319fi 11320 11321 11322for ac_header in sched.h 11323do : 11324 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" 11325if test "x$ac_cv_header_sched_h" = x""yes; then : 11326 cat >>confdefs.h <<_ACEOF 11327#define HAVE_SCHED_H 1 11328_ACEOF 11329 11330fi 11331 11332done 11333 11334 11335# ----------- 11336# Miscellanea 11337# ----------- 11338 11339# Check if we have thread-local storage 11340 11341 11342 # Check whether --enable-tls was given. 11343if test "${enable_tls+set}" = set; then : 11344 enableval=$enable_tls; 11345 case "$enableval" in 11346 yes|no) ;; 11347 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;; 11348 esac 11349 11350else 11351 enable_tls=yes 11352fi 11353 11354 11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5 11356$as_echo_n "checking whether the target supports thread-local storage... " >&6; } 11357if test "${gcc_cv_have_tls+set}" = set; then : 11358 $as_echo_n "(cached) " >&6 11359else 11360 11361 if test "$cross_compiling" = yes; then : 11362 if test x$gcc_no_link = xyes; then 11363 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 11364fi 11365cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11366/* end confdefs.h. */ 11367__thread int a; int b; int main() { return a = b; } 11368_ACEOF 11369if ac_fn_c_try_link "$LINENO"; then : 11370 chktls_save_LDFLAGS="$LDFLAGS" 11371 case $host in 11372 *-*-linux*) 11373 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS" 11374 ;; 11375 esac 11376 chktls_save_CFLAGS="$CFLAGS" 11377 CFLAGS="-fPIC $CFLAGS" 11378 if test x$gcc_no_link = xyes; then 11379 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 11380fi 11381cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11382/* end confdefs.h. */ 11383int f() { return 0; } 11384_ACEOF 11385if ac_fn_c_try_link "$LINENO"; then : 11386 if test x$gcc_no_link = xyes; then 11387 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 11388fi 11389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11390/* end confdefs.h. */ 11391__thread int a; int b; int f() { return a = b; } 11392_ACEOF 11393if ac_fn_c_try_link "$LINENO"; then : 11394 gcc_cv_have_tls=yes 11395else 11396 gcc_cv_have_tls=no 11397fi 11398rm -f core conftest.err conftest.$ac_objext \ 11399 conftest$ac_exeext conftest.$ac_ext 11400else 11401 gcc_cv_have_tls=yes 11402fi 11403rm -f core conftest.err conftest.$ac_objext \ 11404 conftest$ac_exeext conftest.$ac_ext 11405 CFLAGS="$chktls_save_CFLAGS" 11406 LDFLAGS="$chktls_save_LDFLAGS" 11407else 11408 gcc_cv_have_tls=no 11409fi 11410rm -f core conftest.err conftest.$ac_objext \ 11411 conftest$ac_exeext conftest.$ac_ext 11412 11413 11414else 11415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11416/* end confdefs.h. */ 11417__thread int a; int b; int main() { return a = b; } 11418_ACEOF 11419if ac_fn_c_try_run "$LINENO"; then : 11420 chktls_save_LDFLAGS="$LDFLAGS" 11421 LDFLAGS="-static $LDFLAGS" 11422 if test x$gcc_no_link = xyes; then 11423 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 11424fi 11425cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11426/* end confdefs.h. */ 11427int main() { return 0; } 11428_ACEOF 11429if ac_fn_c_try_link "$LINENO"; then : 11430 if test "$cross_compiling" = yes; then : 11431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11433as_fn_error "cannot run test program while cross compiling 11434See \`config.log' for more details." "$LINENO" 5; } 11435else 11436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11437/* end confdefs.h. */ 11438__thread int a; int b; int main() { return a = b; } 11439_ACEOF 11440if ac_fn_c_try_run "$LINENO"; then : 11441 gcc_cv_have_tls=yes 11442else 11443 gcc_cv_have_tls=no 11444fi 11445rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11446 conftest.$ac_objext conftest.beam conftest.$ac_ext 11447fi 11448 11449else 11450 gcc_cv_have_tls=yes 11451fi 11452rm -f core conftest.err conftest.$ac_objext \ 11453 conftest$ac_exeext conftest.$ac_ext 11454 LDFLAGS="$chktls_save_LDFLAGS" 11455 if test $gcc_cv_have_tls = yes; then 11456 chktls_save_CFLAGS="$CFLAGS" 11457 thread_CFLAGS=failed 11458 for flag in '' '-pthread' '-lpthread'; do 11459 CFLAGS="$flag $chktls_save_CFLAGS" 11460 if test x$gcc_no_link = xyes; then 11461 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 11462fi 11463cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11464/* end confdefs.h. */ 11465#include <pthread.h> 11466 void *g(void *d) { return NULL; } 11467int 11468main () 11469{ 11470pthread_t t; pthread_create(&t,NULL,g,NULL); 11471 ; 11472 return 0; 11473} 11474_ACEOF 11475if ac_fn_c_try_link "$LINENO"; then : 11476 thread_CFLAGS="$flag" 11477fi 11478rm -f core conftest.err conftest.$ac_objext \ 11479 conftest$ac_exeext conftest.$ac_ext 11480 if test "X$thread_CFLAGS" != Xfailed; then 11481 break 11482 fi 11483 done 11484 CFLAGS="$chktls_save_CFLAGS" 11485 if test "X$thread_CFLAGS" != Xfailed; then 11486 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS" 11487 if test "$cross_compiling" = yes; then : 11488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11490as_fn_error "cannot run test program while cross compiling 11491See \`config.log' for more details." "$LINENO" 5; } 11492else 11493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11494/* end confdefs.h. */ 11495#include <pthread.h> 11496 __thread int a; 11497 static int *volatile a_in_other_thread; 11498 static void * 11499 thread_func (void *arg) 11500 { 11501 a_in_other_thread = &a; 11502 return (void *)0; 11503 } 11504int 11505main () 11506{ 11507pthread_t thread; 11508 void *thread_retval; 11509 int *volatile a_in_main_thread; 11510 a_in_main_thread = &a; 11511 if (pthread_create (&thread, (pthread_attr_t *)0, 11512 thread_func, (void *)0)) 11513 return 0; 11514 if (pthread_join (thread, &thread_retval)) 11515 return 0; 11516 return (a_in_other_thread == a_in_main_thread); 11517 ; 11518 return 0; 11519} 11520_ACEOF 11521if ac_fn_c_try_run "$LINENO"; then : 11522 gcc_cv_have_tls=yes 11523else 11524 gcc_cv_have_tls=no 11525fi 11526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11527 conftest.$ac_objext conftest.beam conftest.$ac_ext 11528fi 11529 11530 CFLAGS="$chktls_save_CFLAGS" 11531 fi 11532 fi 11533else 11534 gcc_cv_have_tls=no 11535fi 11536rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11537 conftest.$ac_objext conftest.beam conftest.$ac_ext 11538fi 11539 11540fi 11541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5 11542$as_echo "$gcc_cv_have_tls" >&6; } 11543 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then 11544 11545$as_echo "#define HAVE_TLS 1" >>confdefs.h 11546 11547 fi 11548 11549 11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the type of bitfields matters" >&5 11551$as_echo_n "checking if the type of bitfields matters... " >&6; } 11552if test "${gt_cv_bitfield_type_matters+set}" = set; then : 11553 $as_echo_n "(cached) " >&6 11554else 11555 11556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11557/* end confdefs.h. */ 11558struct foo1 { char x; char y:1; char z; }; 11559struct foo2 { char x; long long int y:1; char z; }; 11560int foo1test[ sizeof (struct foo1) < sizeof (struct foo2) ? 1 : -1 ]; 11561int 11562main () 11563{ 11564 11565 ; 11566 return 0; 11567} 11568_ACEOF 11569if ac_fn_c_try_compile "$LINENO"; then : 11570 gt_cv_bitfield_type_matters=yes 11571else 11572 gt_cv_bitfield_type_matters=no 11573fi 11574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11575 11576fi 11577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_bitfield_type_matters" >&5 11578$as_echo "$gt_cv_bitfield_type_matters" >&6; } 11579 if test $gt_cv_bitfield_type_matters = yes; then 11580 11581$as_echo "#define HAVE_BITFIELD_TYPE_MATTERS 1" >>confdefs.h 11582 11583 fi 11584 11585 11586# ----------- 11587# boehm-gc 11588# ----------- 11589 11590# Check whether --enable-objc-gc was given. 11591if test "${enable_objc_gc+set}" = set; then : 11592 enableval=$enable_objc_gc; 11593else 11594 enable_objc_gc=no 11595fi 11596 11597 11598# Check whether --with-target-bdw-gc was given. 11599if test "${with_target_bdw_gc+set}" = set; then : 11600 withval=$with_target_bdw_gc; 11601fi 11602 11603 11604# Check whether --with-target-bdw-gc-include was given. 11605if test "${with_target_bdw_gc_include+set}" = set; then : 11606 withval=$with_target_bdw_gc_include; 11607fi 11608 11609 11610# Check whether --with-target-bdw-gc-lib was given. 11611if test "${with_target_bdw_gc_lib+set}" = set; then : 11612 withval=$with_target_bdw_gc_lib; 11613fi 11614 11615 11616case "$enable_objc_gc" in 11617no) 11618 use_bdw_gc=no 11619 ;; 11620*) 11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 11622$as_echo_n "checking for bdw garbage collector... " >&6; } 11623 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then 11624 BDW_GC_CFLAGS= 11625 BDW_GC_LIBS="-lgc" 11626 else 11627 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then 11628 as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 11629 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then 11630 as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 11631 else 11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 11633$as_echo "using paths configured with --with-target-bdw-gc options" >&6; } 11634 fi 11635 mldir=`${CC-gcc} --print-multi-directory 2>/dev/null` 11636 bdw_val= 11637 if test "x$with_target_bdw_gc" != x; then 11638 for i in `echo $with_target_bdw_gc | tr ',' ' '`; do 11639 case "$i" in 11640 *=*) sd=${i%%=*}; d=${i#*=} ;; 11641 *) sd=.; d=$i ;; 11642 esac 11643 if test "$mldir" = "$sd"; then 11644 bdw_val=$d 11645 fi 11646 done 11647 if test "x$bdw_val" = x; then 11648 as_fn_error "no multilib path ($mldir) found in --with-target-bdw-gc" "$LINENO" 5 11649 fi 11650 bdw_inc_dir="$bdw_val/include" 11651 bdw_lib_dir="$bdw_val/lib" 11652 fi 11653 bdw_val= 11654 if test "x$with_target_bdw_gc_include" != x; then 11655 for i in `echo $with_target_bdw_gc_include | tr ',' ' '`; do 11656 case "$i" in 11657 *=*) sd=${i%%=*}; d=${i#*=} ;; 11658 *) sd=.; d=$i; fallback=$i ;; 11659 esac 11660 if test "$mldir" = "$sd"; then 11661 bdw_val=$d 11662 fi 11663 done 11664 if test "x$bdw_val" = x && test "x$bdw_inc_dir" = x && test "x$fallback" != x; then 11665 bdw_inc_dir="$fallback" 11666 elif test "x$bdw_val" = x; then 11667 as_fn_error "no multilib path ($mldir) found in --with-target-bdw-gc-include" "$LINENO" 5 11668 else 11669 bdw_inc_dir="$bdw_val" 11670 fi 11671 fi 11672 bdw_val= 11673 if test "x$with_target_bdw_gc_lib" != x; then 11674 for i in `echo $with_target_bdw_gc_lib | tr ',' ' '`; do 11675 case "$i" in 11676 *=*) sd=${i%%=*}; d=${i#*=} ;; 11677 *) sd=.; d=$i ;; 11678 esac 11679 if test "$mldir" = "$sd"; then 11680 bdw_val=$d 11681 fi 11682 done 11683 if test "x$bdw_val" = x; then 11684 as_fn_error "no multilib path ($mldir) found in --with-target-bdw-gc-lib" "$LINENO" 5 11685 fi 11686 bdw_lib_dir="$bdw_val" 11687 fi 11688 if test "x$bdw_inc_dir" = x; then 11689 as_fn_error "no multilib path ($mldir) found in --with-target-bdw-gc-include" "$LINENO" 5 11690 fi 11691 if test "x$bdw_lib_dir" = x; then 11692 as_fn_error "no multilib path ($mldir) found in --with-target-bdw-gc-lib" "$LINENO" 5 11693 fi 11694 BDW_GC_CFLAGS="-I$bdw_inc_dir" 11695 if test -f $bdw_lib_dir/libgc.la; then 11696 BDW_GC_LIBS="$bdw_lib_dir/libgc.la" 11697 else 11698 BDW_GC_LIBS="-L$bdw_lib_dir -lgc" 11699 fi 11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 11701$as_echo "found" >&6; } 11702 fi 11703 11704 case "$BDW_GC_LIBS" in 11705 *libgc.la) 11706 use_bdw_gc=yes 11707 ;; 11708 *) 11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system boehm-gc" >&5 11710$as_echo_n "checking for system boehm-gc... " >&6; } 11711 save_CFLAGS=$CFLAGS 11712 save_LIBS=$LIBS 11713 CFLAGS="$CFLAGS $BDW_GC_CFLAGS" 11714 LIBS="$LIBS $BDW_GC_LIBS" 11715 if test x$gcc_no_link = xyes; then 11716 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 11717fi 11718cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11719/* end confdefs.h. */ 11720#include <gc/gc.h> 11721int 11722main () 11723{ 11724GC_init() 11725 ; 11726 return 0; 11727} 11728_ACEOF 11729if ac_fn_c_try_link "$LINENO"; then : 11730 11731 if test "$cross_compiling" = yes; then : 11732 system_bdw_gc_found=no 11733 11734else 11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11736/* end confdefs.h. */ 11737 11738 #include <gc/gc.h> 11739 int main() { 11740 GC_init(); 11741 return 0; 11742 } 11743 11744_ACEOF 11745if ac_fn_c_try_run "$LINENO"; then : 11746 system_bdw_gc_found=yes 11747else 11748 system_bdw_gc_found=no 11749fi 11750rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11751 conftest.$ac_objext conftest.beam conftest.$ac_ext 11752fi 11753 11754 11755else 11756 system_bdw_gc_found=no 11757fi 11758rm -f core conftest.err conftest.$ac_objext \ 11759 conftest$ac_exeext conftest.$ac_ext 11760 CFLAGS=$save_CFLAGS 11761 LIBS=$save_LIBS 11762 if test x$enable_objc_gc = xauto && test x$system_bdw_gc_found = xno; then 11763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system bdw-gc not found, not building libobjc_gc" >&5 11764$as_echo "$as_me: WARNING: system bdw-gc not found, not building libobjc_gc" >&2;} 11765 use_bdw_gc=no 11766 elif test x$enable_objc_gc = xyes && test x$system_bdw_gc_found = xno; then 11767 as_fn_error "system bdw-gc required but not found" "$LINENO" 5 11768 else 11769 use_bdw_gc=yes 11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 11771$as_echo "found" >&6; } 11772 fi 11773 esac 11774esac 11775 11776if test "$use_bdw_gc" = no; then 11777 OBJC_GCFLAGS='' 11778 OBJC_BOEHM_GC='' 11779 OBJC_BOEHM_GC_INCLUDES='' 11780 OBJC_BOEHM_GC_LIBS='' 11781else 11782 OBJC_GCFLAGS='-DOBJC_WITH_GC=1' 11783 OBJC_BOEHM_GC='libobjc_gc$(libsuffix).la' 11784 OBJC_BOEHM_GC_INCLUDES=$BDW_GC_CFLAGS 11785 OBJC_BOEHM_GC_LIBS=$BDW_GC_LIBS 11786fi 11787 11788 11789 11790 11791 11792# Determine what GCC version number to use in filesystem paths. 11793 11794 get_gcc_base_ver="cat" 11795 11796# Check whether --with-gcc-major-version-only was given. 11797if test "${with_gcc_major_version_only+set}" = set; then : 11798 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 11799 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" 11800 fi 11801 11802fi 11803 11804 11805 11806 11807# ------ 11808# Output 11809# ------ 11810 11811if test ${multilib} = yes; then 11812 multilib_arg="--enable-multilib" 11813else 11814 multilib_arg= 11815fi 11816 11817ac_config_files="$ac_config_files Makefile" 11818 11819cat >confcache <<\_ACEOF 11820# This file is a shell script that caches the results of configure 11821# tests run on this system so they can be shared between configure 11822# scripts and configure runs, see configure's option --config-cache. 11823# It is not useful on other systems. If it contains results you don't 11824# want to keep, you may remove or edit it. 11825# 11826# config.status only pays attention to the cache file if you give it 11827# the --recheck option to rerun configure. 11828# 11829# `ac_cv_env_foo' variables (set or unset) will be overridden when 11830# loading this file, other *unset* `ac_cv_foo' will be assigned the 11831# following values. 11832 11833_ACEOF 11834 11835# The following way of writing the cache mishandles newlines in values, 11836# but we know of no workaround that is simple, portable, and efficient. 11837# So, we kill variables containing newlines. 11838# Ultrix sh set writes to stderr and can't be redirected directly, 11839# and sets the high bit in the cache file unless we assign to the vars. 11840( 11841 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11842 eval ac_val=\$$ac_var 11843 case $ac_val in #( 11844 *${as_nl}*) 11845 case $ac_var in #( 11846 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11847$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11848 esac 11849 case $ac_var in #( 11850 _ | IFS | as_nl) ;; #( 11851 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11852 *) { eval $ac_var=; unset $ac_var;} ;; 11853 esac ;; 11854 esac 11855 done 11856 11857 (set) 2>&1 | 11858 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11859 *${as_nl}ac_space=\ *) 11860 # `set' does not quote correctly, so add quotes: double-quote 11861 # substitution turns \\\\ into \\, and sed turns \\ into \. 11862 sed -n \ 11863 "s/'/'\\\\''/g; 11864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11865 ;; #( 11866 *) 11867 # `set' quotes correctly as required by POSIX, so do not add quotes. 11868 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11869 ;; 11870 esac | 11871 sort 11872) | 11873 sed ' 11874 /^ac_cv_env_/b end 11875 t clear 11876 :clear 11877 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11878 t end 11879 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11880 :end' >>confcache 11881if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11882 if test -w "$cache_file"; then 11883 test "x$cache_file" != "x/dev/null" && 11884 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11885$as_echo "$as_me: updating cache $cache_file" >&6;} 11886 cat confcache >$cache_file 11887 else 11888 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11889$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11890 fi 11891fi 11892rm -f confcache 11893 11894test "x$prefix" = xNONE && prefix=$ac_default_prefix 11895# Let make expand exec_prefix. 11896test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11897 11898DEFS=-DHAVE_CONFIG_H 11899 11900ac_libobjs= 11901ac_ltlibobjs= 11902for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11903 # 1. Remove the extension, and $U if already installed. 11904 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11905 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11906 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11907 # will be set to the directory where LIBOBJS objects are built. 11908 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11909 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11910done 11911LIBOBJS=$ac_libobjs 11912 11913LTLIBOBJS=$ac_ltlibobjs 11914 11915 11916if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11917 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 11918Usually this means the macro was only invoked conditionally." "$LINENO" 5 11919fi 11920 11921: ${CONFIG_STATUS=./config.status} 11922ac_write_fail=0 11923ac_clean_files_save=$ac_clean_files 11924ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11925{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11926$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11927as_write_fail=0 11928cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11929#! $SHELL 11930# Generated by $as_me. 11931# Run this file to recreate the current configuration. 11932# Compiler output produced by configure, useful for debugging 11933# configure, is in config.log if it exists. 11934 11935debug=false 11936ac_cs_recheck=false 11937ac_cs_silent=false 11938 11939SHELL=\${CONFIG_SHELL-$SHELL} 11940export SHELL 11941_ASEOF 11942cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11943## -------------------- ## 11944## M4sh Initialization. ## 11945## -------------------- ## 11946 11947# Be more Bourne compatible 11948DUALCASE=1; export DUALCASE # for MKS sh 11949if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11950 emulate sh 11951 NULLCMD=: 11952 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11953 # is contrary to our usage. Disable this feature. 11954 alias -g '${1+"$@"}'='"$@"' 11955 setopt NO_GLOB_SUBST 11956else 11957 case `(set -o) 2>/dev/null` in #( 11958 *posix*) : 11959 set -o posix ;; #( 11960 *) : 11961 ;; 11962esac 11963fi 11964 11965 11966as_nl=' 11967' 11968export as_nl 11969# Printing a long string crashes Solaris 7 /usr/bin/printf. 11970as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11971as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11972as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11973# Prefer a ksh shell builtin over an external printf program on Solaris, 11974# but without wasting forks for bash or zsh. 11975if test -z "$BASH_VERSION$ZSH_VERSION" \ 11976 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11977 as_echo='print -r --' 11978 as_echo_n='print -rn --' 11979elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11980 as_echo='printf %s\n' 11981 as_echo_n='printf %s' 11982else 11983 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11984 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11985 as_echo_n='/usr/ucb/echo -n' 11986 else 11987 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11988 as_echo_n_body='eval 11989 arg=$1; 11990 case $arg in #( 11991 *"$as_nl"*) 11992 expr "X$arg" : "X\\(.*\\)$as_nl"; 11993 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11994 esac; 11995 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11996 ' 11997 export as_echo_n_body 11998 as_echo_n='sh -c $as_echo_n_body as_echo' 11999 fi 12000 export as_echo_body 12001 as_echo='sh -c $as_echo_body as_echo' 12002fi 12003 12004# The user is always right. 12005if test "${PATH_SEPARATOR+set}" != set; then 12006 PATH_SEPARATOR=: 12007 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12008 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12009 PATH_SEPARATOR=';' 12010 } 12011fi 12012 12013 12014# IFS 12015# We need space, tab and new line, in precisely that order. Quoting is 12016# there to prevent editors from complaining about space-tab. 12017# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12018# splitting by setting IFS to empty value.) 12019IFS=" "" $as_nl" 12020 12021# Find who we are. Look in the path if we contain no directory separator. 12022case $0 in #(( 12023 *[\\/]* ) as_myself=$0 ;; 12024 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12025for as_dir in $PATH 12026do 12027 IFS=$as_save_IFS 12028 test -z "$as_dir" && as_dir=. 12029 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12030 done 12031IFS=$as_save_IFS 12032 12033 ;; 12034esac 12035# We did not find ourselves, most probably we were run as `sh COMMAND' 12036# in which case we are not to be found in the path. 12037if test "x$as_myself" = x; then 12038 as_myself=$0 12039fi 12040if test ! -f "$as_myself"; then 12041 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12042 exit 1 12043fi 12044 12045# Unset variables that we do not need and which cause bugs (e.g. in 12046# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12047# suppresses any "Segmentation fault" message there. '((' could 12048# trigger a bug in pdksh 5.2.14. 12049for as_var in BASH_ENV ENV MAIL MAILPATH 12050do eval test x\${$as_var+set} = xset \ 12051 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12052done 12053PS1='$ ' 12054PS2='> ' 12055PS4='+ ' 12056 12057# NLS nuisances. 12058LC_ALL=C 12059export LC_ALL 12060LANGUAGE=C 12061export LANGUAGE 12062 12063# CDPATH. 12064(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12065 12066 12067# as_fn_error ERROR [LINENO LOG_FD] 12068# --------------------------------- 12069# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12070# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12071# script with status $?, using 1 if that was 0. 12072as_fn_error () 12073{ 12074 as_status=$?; test $as_status -eq 0 && as_status=1 12075 if test "$3"; then 12076 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12077 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 12078 fi 12079 $as_echo "$as_me: error: $1" >&2 12080 as_fn_exit $as_status 12081} # as_fn_error 12082 12083 12084# as_fn_set_status STATUS 12085# ----------------------- 12086# Set $? to STATUS, without forking. 12087as_fn_set_status () 12088{ 12089 return $1 12090} # as_fn_set_status 12091 12092# as_fn_exit STATUS 12093# ----------------- 12094# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12095as_fn_exit () 12096{ 12097 set +e 12098 as_fn_set_status $1 12099 exit $1 12100} # as_fn_exit 12101 12102# as_fn_unset VAR 12103# --------------- 12104# Portably unset VAR. 12105as_fn_unset () 12106{ 12107 { eval $1=; unset $1;} 12108} 12109as_unset=as_fn_unset 12110# as_fn_append VAR VALUE 12111# ---------------------- 12112# Append the text in VALUE to the end of the definition contained in VAR. Take 12113# advantage of any shell optimizations that allow amortized linear growth over 12114# repeated appends, instead of the typical quadratic growth present in naive 12115# implementations. 12116if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12117 eval 'as_fn_append () 12118 { 12119 eval $1+=\$2 12120 }' 12121else 12122 as_fn_append () 12123 { 12124 eval $1=\$$1\$2 12125 } 12126fi # as_fn_append 12127 12128# as_fn_arith ARG... 12129# ------------------ 12130# Perform arithmetic evaluation on the ARGs, and store the result in the 12131# global $as_val. Take advantage of shells that can avoid forks. The arguments 12132# must be portable across $(()) and expr. 12133if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12134 eval 'as_fn_arith () 12135 { 12136 as_val=$(( $* )) 12137 }' 12138else 12139 as_fn_arith () 12140 { 12141 as_val=`expr "$@" || test $? -eq 1` 12142 } 12143fi # as_fn_arith 12144 12145 12146if expr a : '\(a\)' >/dev/null 2>&1 && 12147 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12148 as_expr=expr 12149else 12150 as_expr=false 12151fi 12152 12153if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12154 as_basename=basename 12155else 12156 as_basename=false 12157fi 12158 12159if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12160 as_dirname=dirname 12161else 12162 as_dirname=false 12163fi 12164 12165as_me=`$as_basename -- "$0" || 12166$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12167 X"$0" : 'X\(//\)$' \| \ 12168 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12169$as_echo X/"$0" | 12170 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12171 s//\1/ 12172 q 12173 } 12174 /^X\/\(\/\/\)$/{ 12175 s//\1/ 12176 q 12177 } 12178 /^X\/\(\/\).*/{ 12179 s//\1/ 12180 q 12181 } 12182 s/.*/./; q'` 12183 12184# Avoid depending upon Character Ranges. 12185as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12186as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12187as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12188as_cr_digits='0123456789' 12189as_cr_alnum=$as_cr_Letters$as_cr_digits 12190 12191ECHO_C= ECHO_N= ECHO_T= 12192case `echo -n x` in #((((( 12193-n*) 12194 case `echo 'xy\c'` in 12195 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12196 xy) ECHO_C='\c';; 12197 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12198 ECHO_T=' ';; 12199 esac;; 12200*) 12201 ECHO_N='-n';; 12202esac 12203 12204rm -f conf$$ conf$$.exe conf$$.file 12205if test -d conf$$.dir; then 12206 rm -f conf$$.dir/conf$$.file 12207else 12208 rm -f conf$$.dir 12209 mkdir conf$$.dir 2>/dev/null 12210fi 12211if (echo >conf$$.file) 2>/dev/null; then 12212 if ln -s conf$$.file conf$$ 2>/dev/null; then 12213 as_ln_s='ln -s' 12214 # ... but there are two gotchas: 12215 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12216 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12217 # In both cases, we have to default to `cp -p'. 12218 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12219 as_ln_s='cp -p' 12220 elif ln conf$$.file conf$$ 2>/dev/null; then 12221 as_ln_s=ln 12222 else 12223 as_ln_s='cp -p' 12224 fi 12225else 12226 as_ln_s='cp -p' 12227fi 12228rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12229rmdir conf$$.dir 2>/dev/null 12230 12231 12232# as_fn_mkdir_p 12233# ------------- 12234# Create "$as_dir" as a directory, including parents if necessary. 12235as_fn_mkdir_p () 12236{ 12237 12238 case $as_dir in #( 12239 -*) as_dir=./$as_dir;; 12240 esac 12241 test -d "$as_dir" || eval $as_mkdir_p || { 12242 as_dirs= 12243 while :; do 12244 case $as_dir in #( 12245 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12246 *) as_qdir=$as_dir;; 12247 esac 12248 as_dirs="'$as_qdir' $as_dirs" 12249 as_dir=`$as_dirname -- "$as_dir" || 12250$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12251 X"$as_dir" : 'X\(//\)[^/]' \| \ 12252 X"$as_dir" : 'X\(//\)$' \| \ 12253 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12254$as_echo X"$as_dir" | 12255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12256 s//\1/ 12257 q 12258 } 12259 /^X\(\/\/\)[^/].*/{ 12260 s//\1/ 12261 q 12262 } 12263 /^X\(\/\/\)$/{ 12264 s//\1/ 12265 q 12266 } 12267 /^X\(\/\).*/{ 12268 s//\1/ 12269 q 12270 } 12271 s/.*/./; q'` 12272 test -d "$as_dir" && break 12273 done 12274 test -z "$as_dirs" || eval "mkdir $as_dirs" 12275 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 12276 12277 12278} # as_fn_mkdir_p 12279if mkdir -p . 2>/dev/null; then 12280 as_mkdir_p='mkdir -p "$as_dir"' 12281else 12282 test -d ./-p && rmdir ./-p 12283 as_mkdir_p=false 12284fi 12285 12286if test -x / >/dev/null 2>&1; then 12287 as_test_x='test -x' 12288else 12289 if ls -dL / >/dev/null 2>&1; then 12290 as_ls_L_option=L 12291 else 12292 as_ls_L_option= 12293 fi 12294 as_test_x=' 12295 eval sh -c '\'' 12296 if test -d "$1"; then 12297 test -d "$1/."; 12298 else 12299 case $1 in #( 12300 -*)set "./$1";; 12301 esac; 12302 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12303 ???[sx]*):;;*)false;;esac;fi 12304 '\'' sh 12305 ' 12306fi 12307as_executable_p=$as_test_x 12308 12309# Sed expression to map a string onto a valid CPP name. 12310as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12311 12312# Sed expression to map a string onto a valid variable name. 12313as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12314 12315 12316exec 6>&1 12317## ----------------------------------- ## 12318## Main body of $CONFIG_STATUS script. ## 12319## ----------------------------------- ## 12320_ASEOF 12321test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12322 12323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12324# Save the log message, to keep $0 and so on meaningful, and to 12325# report actual input values of CONFIG_FILES etc. instead of their 12326# values after options handling. 12327ac_log=" 12328This file was extended by package-unused $as_me version-unused, which was 12329generated by GNU Autoconf 2.64. Invocation command line was 12330 12331 CONFIG_FILES = $CONFIG_FILES 12332 CONFIG_HEADERS = $CONFIG_HEADERS 12333 CONFIG_LINKS = $CONFIG_LINKS 12334 CONFIG_COMMANDS = $CONFIG_COMMANDS 12335 $ $0 $@ 12336 12337on `(hostname || uname -n) 2>/dev/null | sed 1q` 12338" 12339 12340_ACEOF 12341 12342case $ac_config_files in *" 12343"*) set x $ac_config_files; shift; ac_config_files=$*;; 12344esac 12345 12346case $ac_config_headers in *" 12347"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12348esac 12349 12350 12351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12352# Files that config.status was made for. 12353config_files="$ac_config_files" 12354config_headers="$ac_config_headers" 12355config_commands="$ac_config_commands" 12356 12357_ACEOF 12358 12359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12360ac_cs_usage="\ 12361\`$as_me' instantiates files and other configuration actions 12362from templates according to the current configuration. Unless the files 12363and actions are specified as TAGs, all are instantiated by default. 12364 12365Usage: $0 [OPTION]... [TAG]... 12366 12367 -h, --help print this help, then exit 12368 -V, --version print version number and configuration settings, then exit 12369 -q, --quiet, --silent 12370 do not print progress messages 12371 -d, --debug don't remove temporary files 12372 --recheck update $as_me by reconfiguring in the same conditions 12373 --file=FILE[:TEMPLATE] 12374 instantiate the configuration file FILE 12375 --header=FILE[:TEMPLATE] 12376 instantiate the configuration header FILE 12377 12378Configuration files: 12379$config_files 12380 12381Configuration headers: 12382$config_headers 12383 12384Configuration commands: 12385$config_commands 12386 12387Report bugs to the package provider." 12388 12389_ACEOF 12390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12391ac_cs_version="\\ 12392package-unused config.status version-unused 12393configured by $0, generated by GNU Autoconf 2.64, 12394 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 12395 12396Copyright (C) 2009 Free Software Foundation, Inc. 12397This config.status script is free software; the Free Software Foundation 12398gives unlimited permission to copy, distribute and modify it." 12399 12400ac_pwd='$ac_pwd' 12401srcdir='$srcdir' 12402INSTALL='$INSTALL' 12403AWK='$AWK' 12404test -n "\$AWK" || AWK=awk 12405_ACEOF 12406 12407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12408# The default lists apply if the user does not specify any file. 12409ac_need_defaults=: 12410while test $# != 0 12411do 12412 case $1 in 12413 --*=*) 12414 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12415 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12416 ac_shift=: 12417 ;; 12418 *) 12419 ac_option=$1 12420 ac_optarg=$2 12421 ac_shift=shift 12422 ;; 12423 esac 12424 12425 case $ac_option in 12426 # Handling of the options. 12427 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12428 ac_cs_recheck=: ;; 12429 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12430 $as_echo "$ac_cs_version"; exit ;; 12431 --debug | --debu | --deb | --de | --d | -d ) 12432 debug=: ;; 12433 --file | --fil | --fi | --f ) 12434 $ac_shift 12435 case $ac_optarg in 12436 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12437 esac 12438 as_fn_append CONFIG_FILES " '$ac_optarg'" 12439 ac_need_defaults=false;; 12440 --header | --heade | --head | --hea ) 12441 $ac_shift 12442 case $ac_optarg in 12443 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12444 esac 12445 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12446 ac_need_defaults=false;; 12447 --he | --h) 12448 # Conflict between --help and --header 12449 as_fn_error "ambiguous option: \`$1' 12450Try \`$0 --help' for more information.";; 12451 --help | --hel | -h ) 12452 $as_echo "$ac_cs_usage"; exit ;; 12453 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12454 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12455 ac_cs_silent=: ;; 12456 12457 # This is an error. 12458 -*) as_fn_error "unrecognized option: \`$1' 12459Try \`$0 --help' for more information." ;; 12460 12461 *) as_fn_append ac_config_targets " $1" 12462 ac_need_defaults=false ;; 12463 12464 esac 12465 shift 12466done 12467 12468ac_configure_extra_args= 12469 12470if $ac_cs_silent; then 12471 exec 6>/dev/null 12472 ac_configure_extra_args="$ac_configure_extra_args --silent" 12473fi 12474 12475_ACEOF 12476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12477if \$ac_cs_recheck; then 12478 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12479 shift 12480 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12481 CONFIG_SHELL='$SHELL' 12482 export CONFIG_SHELL 12483 exec "\$@" 12484fi 12485 12486_ACEOF 12487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12488exec 5>>config.log 12489{ 12490 echo 12491 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12492## Running $as_me. ## 12493_ASBOX 12494 $as_echo "$ac_log" 12495} >&5 12496 12497_ACEOF 12498cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12499# 12500# INIT-COMMANDS 12501# 12502 12503srcdir="$srcdir" 12504host="$host" 12505target="$target" 12506with_multisubdir="$with_multisubdir" 12507with_multisrctop="$with_multisrctop" 12508with_target_subdir="$with_target_subdir" 12509ac_configure_args="${multilib_arg} ${ac_configure_args}" 12510multi_basedir="$multi_basedir" 12511CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 12512CC="$CC" 12513CXX="$CXX" 12514GFORTRAN="$GFORTRAN" 12515 12516 12517# The HP-UX ksh and POSIX shell print the target directory to stdout 12518# if CDPATH is set. 12519(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12520 12521sed_quote_subst='$sed_quote_subst' 12522double_quote_subst='$double_quote_subst' 12523delay_variable_subst='$delay_variable_subst' 12524AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 12525DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 12526OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 12527macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 12528macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 12529enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 12530enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 12531pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 12532enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 12533SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 12534ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 12535host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 12536host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 12537host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 12538build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 12539build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 12540build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 12541SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 12542Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 12543GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 12544EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 12545FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 12546LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 12547NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 12548LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 12549max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 12550ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 12551exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 12552lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 12553lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 12554lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 12555reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 12556reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 12557deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 12558file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 12559AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 12560AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 12561STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 12562RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 12563old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12564old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12565old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 12566lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 12567CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 12568CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 12569compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 12570GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 12571lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 12572lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 12573lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 12574lt_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"`' 12575objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 12576MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 12577lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 12578lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 12579lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 12580lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 12581lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 12582need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 12583DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 12584NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 12585LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 12586OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 12587OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 12588libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 12589shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 12590extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12591archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 12592enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 12593export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 12594whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 12595compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 12596old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 12597old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12598archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 12599archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12600module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 12601module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12602with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 12603allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 12604no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 12605hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 12606hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 12607hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 12608hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 12609hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 12610hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 12611hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 12612hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 12613inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 12614link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 12615fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 12616always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 12617export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 12618exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 12619include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 12620prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 12621file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 12622variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 12623need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 12624need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 12625version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 12626runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 12627shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 12628shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 12629libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 12630library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 12631soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 12632install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 12633postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12634postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12635finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 12636finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 12637hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 12638sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 12639sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 12640hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 12641enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 12642enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 12643enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 12644old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 12645striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 12646 12647LTCC='$LTCC' 12648LTCFLAGS='$LTCFLAGS' 12649compiler='$compiler_DEFAULT' 12650 12651# A function that is used when there is no print builtin or printf. 12652func_fallback_echo () 12653{ 12654 eval 'cat <<_LTECHO_EOF 12655\$1 12656_LTECHO_EOF' 12657} 12658 12659# Quote evaled strings. 12660for var in AS \ 12661DLLTOOL \ 12662OBJDUMP \ 12663SHELL \ 12664ECHO \ 12665SED \ 12666GREP \ 12667EGREP \ 12668FGREP \ 12669LD \ 12670NM \ 12671LN_S \ 12672lt_SP2NL \ 12673lt_NL2SP \ 12674reload_flag \ 12675deplibs_check_method \ 12676file_magic_cmd \ 12677AR \ 12678AR_FLAGS \ 12679STRIP \ 12680RANLIB \ 12681CC \ 12682CFLAGS \ 12683compiler \ 12684lt_cv_sys_global_symbol_pipe \ 12685lt_cv_sys_global_symbol_to_cdecl \ 12686lt_cv_sys_global_symbol_to_c_name_address \ 12687lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12688lt_prog_compiler_no_builtin_flag \ 12689lt_prog_compiler_wl \ 12690lt_prog_compiler_pic \ 12691lt_prog_compiler_static \ 12692lt_cv_prog_compiler_c_o \ 12693need_locks \ 12694DSYMUTIL \ 12695NMEDIT \ 12696LIPO \ 12697OTOOL \ 12698OTOOL64 \ 12699shrext_cmds \ 12700export_dynamic_flag_spec \ 12701whole_archive_flag_spec \ 12702compiler_needs_object \ 12703with_gnu_ld \ 12704allow_undefined_flag \ 12705no_undefined_flag \ 12706hardcode_libdir_flag_spec \ 12707hardcode_libdir_flag_spec_ld \ 12708hardcode_libdir_separator \ 12709fix_srcfile_path \ 12710exclude_expsyms \ 12711include_expsyms \ 12712file_list_spec \ 12713variables_saved_for_relink \ 12714libname_spec \ 12715library_names_spec \ 12716soname_spec \ 12717install_override_mode \ 12718finish_eval \ 12719old_striplib \ 12720striplib; do 12721 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12722 *[\\\\\\\`\\"\\\$]*) 12723 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12724 ;; 12725 *) 12726 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12727 ;; 12728 esac 12729done 12730 12731# Double-quote double-evaled strings. 12732for var in reload_cmds \ 12733old_postinstall_cmds \ 12734old_postuninstall_cmds \ 12735old_archive_cmds \ 12736extract_expsyms_cmds \ 12737old_archive_from_new_cmds \ 12738old_archive_from_expsyms_cmds \ 12739archive_cmds \ 12740archive_expsym_cmds \ 12741module_cmds \ 12742module_expsym_cmds \ 12743export_symbols_cmds \ 12744prelink_cmds \ 12745postinstall_cmds \ 12746postuninstall_cmds \ 12747finish_cmds \ 12748sys_lib_search_path_spec \ 12749sys_lib_dlsearch_path_spec; do 12750 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12751 *[\\\\\\\`\\"\\\$]*) 12752 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12753 ;; 12754 *) 12755 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12756 ;; 12757 esac 12758done 12759 12760ac_aux_dir='$ac_aux_dir' 12761xsi_shell='$xsi_shell' 12762lt_shell_append='$lt_shell_append' 12763 12764# See if we are running on zsh, and set the options which allow our 12765# commands through without removal of \ escapes INIT. 12766if test -n "\${ZSH_VERSION+set}" ; then 12767 setopt NO_GLOB_SUBST 12768fi 12769 12770 12771 PACKAGE='$PACKAGE' 12772 VERSION='$VERSION' 12773 TIMESTAMP='$TIMESTAMP' 12774 RM='$RM' 12775 ofile='$ofile' 12776 12777 12778 12779 12780_ACEOF 12781 12782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12783 12784# Handling of arguments. 12785for ac_config_target in $ac_config_targets 12786do 12787 case $ac_config_target in 12788 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 12789 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12790 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12791 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12792 12793 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12794 esac 12795done 12796 12797 12798# If the user did not use the arguments to specify the items to instantiate, 12799# then the envvar interface is used. Set only those that are not. 12800# We use the long form for the default assignment because of an extremely 12801# bizarre bug on SunOS 4.1.3. 12802if $ac_need_defaults; then 12803 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12804 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12805 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12806fi 12807 12808# Have a temporary directory for convenience. Make it in the build tree 12809# simply because there is no reason against having it here, and in addition, 12810# creating and moving files from /tmp can sometimes cause problems. 12811# Hook for its removal unless debugging. 12812# Note that there is a small window in which the directory will not be cleaned: 12813# after its creation but before its name has been assigned to `$tmp'. 12814$debug || 12815{ 12816 tmp= 12817 trap 'exit_status=$? 12818 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12819' 0 12820 trap 'as_fn_exit 1' 1 2 13 15 12821} 12822# Create a (secure) tmp directory for tmp files. 12823 12824{ 12825 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12826 test -n "$tmp" && test -d "$tmp" 12827} || 12828{ 12829 tmp=./conf$$-$RANDOM 12830 (umask 077 && mkdir "$tmp") 12831} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 12832 12833# Set up the scripts for CONFIG_FILES section. 12834# No need to generate them if there are no CONFIG_FILES. 12835# This happens for instance with `./config.status config.h'. 12836if test -n "$CONFIG_FILES"; then 12837 12838 12839ac_cr=`echo X | tr X '\015'` 12840# On cygwin, bash can eat \r inside `` if the user requested igncr. 12841# But we know of no other shell where ac_cr would be empty at this 12842# point, so we can use a bashism as a fallback. 12843if test "x$ac_cr" = x; then 12844 eval ac_cr=\$\'\\r\' 12845fi 12846ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12847if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12848 ac_cs_awk_cr='\r' 12849else 12850 ac_cs_awk_cr=$ac_cr 12851fi 12852 12853echo 'BEGIN {' >"$tmp/subs1.awk" && 12854_ACEOF 12855 12856 12857{ 12858 echo "cat >conf$$subs.awk <<_ACEOF" && 12859 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12860 echo "_ACEOF" 12861} >conf$$subs.sh || 12862 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12863ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 12864ac_delim='%!_!# ' 12865for ac_last_try in false false false false false :; do 12866 . ./conf$$subs.sh || 12867 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12868 12869 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12870 if test $ac_delim_n = $ac_delim_num; then 12871 break 12872 elif $ac_last_try; then 12873 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12874 else 12875 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12876 fi 12877done 12878rm -f conf$$subs.sh 12879 12880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12881cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 12882_ACEOF 12883sed -n ' 12884h 12885s/^/S["/; s/!.*/"]=/ 12886p 12887g 12888s/^[^!]*!// 12889:repl 12890t repl 12891s/'"$ac_delim"'$// 12892t delim 12893:nl 12894h 12895s/\(.\{148\}\).*/\1/ 12896t more1 12897s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12898p 12899n 12900b repl 12901:more1 12902s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12903p 12904g 12905s/.\{148\}// 12906t nl 12907:delim 12908h 12909s/\(.\{148\}\).*/\1/ 12910t more2 12911s/["\\]/\\&/g; s/^/"/; s/$/"/ 12912p 12913b 12914:more2 12915s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12916p 12917g 12918s/.\{148\}// 12919t delim 12920' <conf$$subs.awk | sed ' 12921/^[^""]/{ 12922 N 12923 s/\n// 12924} 12925' >>$CONFIG_STATUS || ac_write_fail=1 12926rm -f conf$$subs.awk 12927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12928_ACAWK 12929cat >>"\$tmp/subs1.awk" <<_ACAWK && 12930 for (key in S) S_is_set[key] = 1 12931 FS = "" 12932 12933} 12934{ 12935 line = $ 0 12936 nfields = split(line, field, "@") 12937 substed = 0 12938 len = length(field[1]) 12939 for (i = 2; i < nfields; i++) { 12940 key = field[i] 12941 keylen = length(key) 12942 if (S_is_set[key]) { 12943 value = S[key] 12944 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12945 len += length(value) + length(field[++i]) 12946 substed = 1 12947 } else 12948 len += 1 + keylen 12949 } 12950 12951 print line 12952} 12953 12954_ACAWK 12955_ACEOF 12956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12957if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12958 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12959else 12960 cat 12961fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 12962 || as_fn_error "could not setup config files machinery" "$LINENO" 5 12963_ACEOF 12964 12965# VPATH may cause trouble with some makes, so we remove $(srcdir), 12966# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12967# trailing colons and then remove the whole line if VPATH becomes empty 12968# (actually we leave an empty line to preserve line numbers). 12969if test "x$srcdir" = x.; then 12970 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12971s/:*\$(srcdir):*/:/ 12972s/:*\${srcdir}:*/:/ 12973s/:*@srcdir@:*/:/ 12974s/^\([^=]*=[ ]*\):*/\1/ 12975s/:*$// 12976s/^[^=]*=[ ]*$// 12977}' 12978fi 12979 12980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12981fi # test -n "$CONFIG_FILES" 12982 12983# Set up the scripts for CONFIG_HEADERS section. 12984# No need to generate them if there are no CONFIG_HEADERS. 12985# This happens for instance with `./config.status Makefile'. 12986if test -n "$CONFIG_HEADERS"; then 12987cat >"$tmp/defines.awk" <<\_ACAWK || 12988BEGIN { 12989_ACEOF 12990 12991# Transform confdefs.h into an awk script `defines.awk', embedded as 12992# here-document in config.status, that substitutes the proper values into 12993# config.h.in to produce config.h. 12994 12995# Create a delimiter string that does not exist in confdefs.h, to ease 12996# handling of long lines. 12997ac_delim='%!_!# ' 12998for ac_last_try in false false :; do 12999 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 13000 if test -z "$ac_t"; then 13001 break 13002 elif $ac_last_try; then 13003 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 13004 else 13005 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13006 fi 13007done 13008 13009# For the awk script, D is an array of macro values keyed by name, 13010# likewise P contains macro parameters if any. Preserve backslash 13011# newline sequences. 13012 13013ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13014sed -n ' 13015s/.\{148\}/&'"$ac_delim"'/g 13016t rset 13017:rset 13018s/^[ ]*#[ ]*define[ ][ ]*/ / 13019t def 13020d 13021:def 13022s/\\$// 13023t bsnl 13024s/["\\]/\\&/g 13025s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13026D["\1"]=" \3"/p 13027s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13028d 13029:bsnl 13030s/["\\]/\\&/g 13031s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13032D["\1"]=" \3\\\\\\n"\\/p 13033t cont 13034s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13035t cont 13036d 13037:cont 13038n 13039s/.\{148\}/&'"$ac_delim"'/g 13040t clear 13041:clear 13042s/\\$// 13043t bsnlc 13044s/["\\]/\\&/g; s/^/"/; s/$/"/p 13045d 13046:bsnlc 13047s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13048b cont 13049' <confdefs.h | sed ' 13050s/'"$ac_delim"'/"\\\ 13051"/g' >>$CONFIG_STATUS || ac_write_fail=1 13052 13053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13054 for (key in D) D_is_set[key] = 1 13055 FS = "" 13056} 13057/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13058 line = \$ 0 13059 split(line, arg, " ") 13060 if (arg[1] == "#") { 13061 defundef = arg[2] 13062 mac1 = arg[3] 13063 } else { 13064 defundef = substr(arg[1], 2) 13065 mac1 = arg[2] 13066 } 13067 split(mac1, mac2, "(") #) 13068 macro = mac2[1] 13069 prefix = substr(line, 1, index(line, defundef) - 1) 13070 if (D_is_set[macro]) { 13071 # Preserve the white space surrounding the "#". 13072 print prefix "define", macro P[macro] D[macro] 13073 next 13074 } else { 13075 # Replace #undef with comments. This is necessary, for example, 13076 # in the case of _POSIX_SOURCE, which is predefined and required 13077 # on some systems where configure will not decide to define it. 13078 if (defundef == "undef") { 13079 print "/*", prefix defundef, macro, "*/" 13080 next 13081 } 13082 } 13083} 13084{ print } 13085_ACAWK 13086_ACEOF 13087cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13088 as_fn_error "could not setup config headers machinery" "$LINENO" 5 13089fi # test -n "$CONFIG_HEADERS" 13090 13091 13092eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13093shift 13094for ac_tag 13095do 13096 case $ac_tag in 13097 :[FHLC]) ac_mode=$ac_tag; continue;; 13098 esac 13099 case $ac_mode$ac_tag in 13100 :[FHL]*:*);; 13101 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 13102 :[FH]-) ac_tag=-:-;; 13103 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13104 esac 13105 ac_save_IFS=$IFS 13106 IFS=: 13107 set x $ac_tag 13108 IFS=$ac_save_IFS 13109 shift 13110 ac_file=$1 13111 shift 13112 13113 case $ac_mode in 13114 :L) ac_source=$1;; 13115 :[FH]) 13116 ac_file_inputs= 13117 for ac_f 13118 do 13119 case $ac_f in 13120 -) ac_f="$tmp/stdin";; 13121 *) # Look for the file first in the build tree, then in the source tree 13122 # (if the path is not absolute). The absolute path cannot be DOS-style, 13123 # because $ac_f cannot contain `:'. 13124 test -f "$ac_f" || 13125 case $ac_f in 13126 [\\/$]*) false;; 13127 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13128 esac || 13129 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13130 esac 13131 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13132 as_fn_append ac_file_inputs " '$ac_f'" 13133 done 13134 13135 # Let's still pretend it is `configure' which instantiates (i.e., don't 13136 # use $as_me), people would be surprised to read: 13137 # /* config.h. Generated by config.status. */ 13138 configure_input='Generated from '` 13139 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13140 `' by configure.' 13141 if test x"$ac_file" != x-; then 13142 configure_input="$ac_file. $configure_input" 13143 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13144$as_echo "$as_me: creating $ac_file" >&6;} 13145 fi 13146 # Neutralize special characters interpreted by sed in replacement strings. 13147 case $configure_input in #( 13148 *\&* | *\|* | *\\* ) 13149 ac_sed_conf_input=`$as_echo "$configure_input" | 13150 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13151 *) ac_sed_conf_input=$configure_input;; 13152 esac 13153 13154 case $ac_tag in 13155 *:-:* | *:-) cat >"$tmp/stdin" \ 13156 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 13157 esac 13158 ;; 13159 esac 13160 13161 ac_dir=`$as_dirname -- "$ac_file" || 13162$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13163 X"$ac_file" : 'X\(//\)[^/]' \| \ 13164 X"$ac_file" : 'X\(//\)$' \| \ 13165 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13166$as_echo X"$ac_file" | 13167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13168 s//\1/ 13169 q 13170 } 13171 /^X\(\/\/\)[^/].*/{ 13172 s//\1/ 13173 q 13174 } 13175 /^X\(\/\/\)$/{ 13176 s//\1/ 13177 q 13178 } 13179 /^X\(\/\).*/{ 13180 s//\1/ 13181 q 13182 } 13183 s/.*/./; q'` 13184 as_dir="$ac_dir"; as_fn_mkdir_p 13185 ac_builddir=. 13186 13187case "$ac_dir" in 13188.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13189*) 13190 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13191 # A ".." for each directory in $ac_dir_suffix. 13192 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13193 case $ac_top_builddir_sub in 13194 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13195 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13196 esac ;; 13197esac 13198ac_abs_top_builddir=$ac_pwd 13199ac_abs_builddir=$ac_pwd$ac_dir_suffix 13200# for backward compatibility: 13201ac_top_builddir=$ac_top_build_prefix 13202 13203case $srcdir in 13204 .) # We are building in place. 13205 ac_srcdir=. 13206 ac_top_srcdir=$ac_top_builddir_sub 13207 ac_abs_top_srcdir=$ac_pwd ;; 13208 [\\/]* | ?:[\\/]* ) # Absolute name. 13209 ac_srcdir=$srcdir$ac_dir_suffix; 13210 ac_top_srcdir=$srcdir 13211 ac_abs_top_srcdir=$srcdir ;; 13212 *) # Relative name. 13213 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13214 ac_top_srcdir=$ac_top_build_prefix$srcdir 13215 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13216esac 13217ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13218 13219 13220 case $ac_mode in 13221 :F) 13222 # 13223 # CONFIG_FILE 13224 # 13225 13226 case $INSTALL in 13227 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13228 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13229 esac 13230_ACEOF 13231 13232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13233# If the template does not know about datarootdir, expand it. 13234# FIXME: This hack should be removed a few years after 2.60. 13235ac_datarootdir_hack=; ac_datarootdir_seen= 13236ac_sed_dataroot=' 13237/datarootdir/ { 13238 p 13239 q 13240} 13241/@datadir@/p 13242/@docdir@/p 13243/@infodir@/p 13244/@localedir@/p 13245/@mandir@/p' 13246case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13247*datarootdir*) ac_datarootdir_seen=yes;; 13248*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13250$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13251_ACEOF 13252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13253 ac_datarootdir_hack=' 13254 s&@datadir@&$datadir&g 13255 s&@docdir@&$docdir&g 13256 s&@infodir@&$infodir&g 13257 s&@localedir@&$localedir&g 13258 s&@mandir@&$mandir&g 13259 s&\\\${datarootdir}&$datarootdir&g' ;; 13260esac 13261_ACEOF 13262 13263# Neutralize VPATH when `$srcdir' = `.'. 13264# Shell code in configure.ac might set extrasub. 13265# FIXME: do we really want to maintain this feature? 13266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13267ac_sed_extra="$ac_vpsub 13268$extrasub 13269_ACEOF 13270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13271:t 13272/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13273s|@configure_input@|$ac_sed_conf_input|;t t 13274s&@top_builddir@&$ac_top_builddir_sub&;t t 13275s&@top_build_prefix@&$ac_top_build_prefix&;t t 13276s&@srcdir@&$ac_srcdir&;t t 13277s&@abs_srcdir@&$ac_abs_srcdir&;t t 13278s&@top_srcdir@&$ac_top_srcdir&;t t 13279s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13280s&@builddir@&$ac_builddir&;t t 13281s&@abs_builddir@&$ac_abs_builddir&;t t 13282s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13283s&@INSTALL@&$ac_INSTALL&;t t 13284$ac_datarootdir_hack 13285" 13286eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 13287 || as_fn_error "could not create $ac_file" "$LINENO" 5 13288 13289test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13290 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13291 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13293which seems to be undefined. Please make sure it is defined." >&5 13294$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13295which seems to be undefined. Please make sure it is defined." >&2;} 13296 13297 rm -f "$tmp/stdin" 13298 case $ac_file in 13299 -) cat "$tmp/out" && rm -f "$tmp/out";; 13300 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 13301 esac \ 13302 || as_fn_error "could not create $ac_file" "$LINENO" 5 13303 ;; 13304 :H) 13305 # 13306 # CONFIG_HEADER 13307 # 13308 if test x"$ac_file" != x-; then 13309 { 13310 $as_echo "/* $configure_input */" \ 13311 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 13312 } >"$tmp/config.h" \ 13313 || as_fn_error "could not create $ac_file" "$LINENO" 5 13314 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 13315 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13316$as_echo "$as_me: $ac_file is unchanged" >&6;} 13317 else 13318 rm -f "$ac_file" 13319 mv "$tmp/config.h" "$ac_file" \ 13320 || as_fn_error "could not create $ac_file" "$LINENO" 5 13321 fi 13322 else 13323 $as_echo "/* $configure_input */" \ 13324 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 13325 || as_fn_error "could not create -" "$LINENO" 5 13326 fi 13327 ;; 13328 13329 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13330$as_echo "$as_me: executing $ac_file commands" >&6;} 13331 ;; 13332 esac 13333 13334 13335 case $ac_file$ac_mode in 13336 "default-1":C) 13337# Only add multilib support code if we just rebuilt the top-level 13338# Makefile. 13339case " $CONFIG_FILES " in 13340 *" Makefile "*) 13341 ac_file=Makefile . ${multi_basedir}/config-ml.in 13342 ;; 13343esac ;; 13344 "libtool":C) 13345 13346 # See if we are running on zsh, and set the options which allow our 13347 # commands through without removal of \ escapes. 13348 if test -n "${ZSH_VERSION+set}" ; then 13349 setopt NO_GLOB_SUBST 13350 fi 13351 13352 cfgfile="${ofile}T" 13353 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13354 $RM "$cfgfile" 13355 13356 cat <<_LT_EOF >> "$cfgfile" 13357#! $SHELL 13358 13359# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13360# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13361# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13362# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13363# 13364# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13365# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 13366# Written by Gordon Matzigkeit, 1996 13367# 13368# This file is part of GNU Libtool. 13369# 13370# GNU Libtool is free software; you can redistribute it and/or 13371# modify it under the terms of the GNU General Public License as 13372# published by the Free Software Foundation; either version 2 of 13373# the License, or (at your option) any later version. 13374# 13375# As a special exception to the GNU General Public License, 13376# if you distribute this file as part of a program or library that 13377# is built using GNU Libtool, you may include this file under the 13378# same distribution terms that you use for the rest of that program. 13379# 13380# GNU Libtool is distributed in the hope that it will be useful, 13381# but WITHOUT ANY WARRANTY; without even the implied warranty of 13382# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13383# GNU General Public License for more details. 13384# 13385# You should have received a copy of the GNU General Public License 13386# along with GNU Libtool; see the file COPYING. If not, a copy 13387# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13388# obtained by writing to the Free Software Foundation, Inc., 13389# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13390 13391 13392# The names of the tagged configurations supported by this script. 13393available_tags="" 13394 13395# ### BEGIN LIBTOOL CONFIG 13396 13397# Assembler program. 13398AS=$lt_AS 13399 13400# DLL creation program. 13401DLLTOOL=$lt_DLLTOOL 13402 13403# Object dumper program. 13404OBJDUMP=$lt_OBJDUMP 13405 13406# Which release of libtool.m4 was used? 13407macro_version=$macro_version 13408macro_revision=$macro_revision 13409 13410# Whether or not to build shared libraries. 13411build_libtool_libs=$enable_shared 13412 13413# Whether or not to build static libraries. 13414build_old_libs=$enable_static 13415 13416# What type of objects to build. 13417pic_mode=$pic_mode 13418 13419# Whether or not to optimize for fast installation. 13420fast_install=$enable_fast_install 13421 13422# Shell to use when invoking shell scripts. 13423SHELL=$lt_SHELL 13424 13425# An echo program that protects backslashes. 13426ECHO=$lt_ECHO 13427 13428# The host system. 13429host_alias=$host_alias 13430host=$host 13431host_os=$host_os 13432 13433# The build system. 13434build_alias=$build_alias 13435build=$build 13436build_os=$build_os 13437 13438# A sed program that does not truncate output. 13439SED=$lt_SED 13440 13441# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13442Xsed="\$SED -e 1s/^X//" 13443 13444# A grep program that handles long lines. 13445GREP=$lt_GREP 13446 13447# An ERE matcher. 13448EGREP=$lt_EGREP 13449 13450# A literal string matcher. 13451FGREP=$lt_FGREP 13452 13453# A BSD- or MS-compatible name lister. 13454NM=$lt_NM 13455 13456# Whether we need soft or hard links. 13457LN_S=$lt_LN_S 13458 13459# What is the maximum length of a command? 13460max_cmd_len=$max_cmd_len 13461 13462# Object file suffix (normally "o"). 13463objext=$ac_objext 13464 13465# Executable file suffix (normally ""). 13466exeext=$exeext 13467 13468# whether the shell understands "unset". 13469lt_unset=$lt_unset 13470 13471# turn spaces into newlines. 13472SP2NL=$lt_lt_SP2NL 13473 13474# turn newlines into spaces. 13475NL2SP=$lt_lt_NL2SP 13476 13477# Method to check whether dependent libraries are shared objects. 13478deplibs_check_method=$lt_deplibs_check_method 13479 13480# Command to use when deplibs_check_method == "file_magic". 13481file_magic_cmd=$lt_file_magic_cmd 13482 13483# The archiver. 13484AR=$lt_AR 13485AR_FLAGS=$lt_AR_FLAGS 13486 13487# A symbol stripping program. 13488STRIP=$lt_STRIP 13489 13490# Commands used to install an old-style archive. 13491RANLIB=$lt_RANLIB 13492old_postinstall_cmds=$lt_old_postinstall_cmds 13493old_postuninstall_cmds=$lt_old_postuninstall_cmds 13494 13495# Whether to use a lock for old archive extraction. 13496lock_old_archive_extraction=$lock_old_archive_extraction 13497 13498# A C compiler. 13499LTCC=$lt_CC 13500 13501# LTCC compiler flags. 13502LTCFLAGS=$lt_CFLAGS 13503 13504# Take the output of nm and produce a listing of raw symbols and C names. 13505global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13506 13507# Transform the output of nm in a proper C declaration. 13508global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13509 13510# Transform the output of nm in a C name address pair. 13511global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13512 13513# Transform the output of nm in a C name address pair when lib prefix is needed. 13514global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13515 13516# The name of the directory that contains temporary libtool files. 13517objdir=$objdir 13518 13519# Used to examine libraries when file_magic_cmd begins with "file". 13520MAGIC_CMD=$MAGIC_CMD 13521 13522# Must we lock files when doing compilation? 13523need_locks=$lt_need_locks 13524 13525# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13526DSYMUTIL=$lt_DSYMUTIL 13527 13528# Tool to change global to local symbols on Mac OS X. 13529NMEDIT=$lt_NMEDIT 13530 13531# Tool to manipulate fat objects and archives on Mac OS X. 13532LIPO=$lt_LIPO 13533 13534# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13535OTOOL=$lt_OTOOL 13536 13537# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13538OTOOL64=$lt_OTOOL64 13539 13540# Old archive suffix (normally "a"). 13541libext=$libext 13542 13543# Shared library suffix (normally ".so"). 13544shrext_cmds=$lt_shrext_cmds 13545 13546# The commands to extract the exported symbol list from a shared archive. 13547extract_expsyms_cmds=$lt_extract_expsyms_cmds 13548 13549# Variables whose values should be saved in libtool wrapper scripts and 13550# restored at link time. 13551variables_saved_for_relink=$lt_variables_saved_for_relink 13552 13553# Do we need the "lib" prefix for modules? 13554need_lib_prefix=$need_lib_prefix 13555 13556# Do we need a version for libraries? 13557need_version=$need_version 13558 13559# Library versioning type. 13560version_type=$version_type 13561 13562# Shared library runtime path variable. 13563runpath_var=$runpath_var 13564 13565# Shared library path variable. 13566shlibpath_var=$shlibpath_var 13567 13568# Is shlibpath searched before the hard-coded library search path? 13569shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13570 13571# Format of library name prefix. 13572libname_spec=$lt_libname_spec 13573 13574# List of archive names. First name is the real one, the rest are links. 13575# The last name is the one that the linker finds with -lNAME 13576library_names_spec=$lt_library_names_spec 13577 13578# The coded name of the library, if different from the real name. 13579soname_spec=$lt_soname_spec 13580 13581# Permission mode override for installation of shared libraries. 13582install_override_mode=$lt_install_override_mode 13583 13584# Command to use after installation of a shared archive. 13585postinstall_cmds=$lt_postinstall_cmds 13586 13587# Command to use after uninstallation of a shared archive. 13588postuninstall_cmds=$lt_postuninstall_cmds 13589 13590# Commands used to finish a libtool library installation in a directory. 13591finish_cmds=$lt_finish_cmds 13592 13593# As "finish_cmds", except a single script fragment to be evaled but 13594# not shown. 13595finish_eval=$lt_finish_eval 13596 13597# Whether we should hardcode library paths into libraries. 13598hardcode_into_libs=$hardcode_into_libs 13599 13600# Compile-time system search path for libraries. 13601sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13602 13603# Run-time system search path for libraries. 13604sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13605 13606# Whether dlopen is supported. 13607dlopen_support=$enable_dlopen 13608 13609# Whether dlopen of programs is supported. 13610dlopen_self=$enable_dlopen_self 13611 13612# Whether dlopen of statically linked programs is supported. 13613dlopen_self_static=$enable_dlopen_self_static 13614 13615# Commands to strip libraries. 13616old_striplib=$lt_old_striplib 13617striplib=$lt_striplib 13618 13619 13620# The linker used to build libraries. 13621LD=$lt_LD 13622 13623# How to create reloadable object files. 13624reload_flag=$lt_reload_flag 13625reload_cmds=$lt_reload_cmds 13626 13627# Commands used to build an old-style archive. 13628old_archive_cmds=$lt_old_archive_cmds 13629 13630# A language specific compiler. 13631CC=$lt_compiler 13632 13633# Is the compiler the GNU compiler? 13634with_gcc=$GCC 13635 13636# Compiler flag to turn off builtin functions. 13637no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13638 13639# How to pass a linker flag through the compiler. 13640wl=$lt_lt_prog_compiler_wl 13641 13642# Additional compiler flags for building library objects. 13643pic_flag=$lt_lt_prog_compiler_pic 13644 13645# Compiler flag to prevent dynamic linking. 13646link_static_flag=$lt_lt_prog_compiler_static 13647 13648# Does compiler simultaneously support -c and -o options? 13649compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13650 13651# Whether or not to add -lc for building shared libraries. 13652build_libtool_need_lc=$archive_cmds_need_lc 13653 13654# Whether or not to disallow shared libs when runtime libs are static. 13655allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13656 13657# Compiler flag to allow reflexive dlopens. 13658export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13659 13660# Compiler flag to generate shared objects directly from archives. 13661whole_archive_flag_spec=$lt_whole_archive_flag_spec 13662 13663# Whether the compiler copes with passing no objects directly. 13664compiler_needs_object=$lt_compiler_needs_object 13665 13666# Create an old-style archive from a shared archive. 13667old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13668 13669# Create a temporary old-style archive to link instead of a shared archive. 13670old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13671 13672# Commands used to build a shared archive. 13673archive_cmds=$lt_archive_cmds 13674archive_expsym_cmds=$lt_archive_expsym_cmds 13675 13676# Commands used to build a loadable module if different from building 13677# a shared archive. 13678module_cmds=$lt_module_cmds 13679module_expsym_cmds=$lt_module_expsym_cmds 13680 13681# Whether we are building with GNU ld or not. 13682with_gnu_ld=$lt_with_gnu_ld 13683 13684# Flag that allows shared libraries with undefined symbols to be built. 13685allow_undefined_flag=$lt_allow_undefined_flag 13686 13687# Flag that enforces no undefined symbols. 13688no_undefined_flag=$lt_no_undefined_flag 13689 13690# Flag to hardcode \$libdir into a binary during linking. 13691# This must work even if \$libdir does not exist 13692hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13693 13694# If ld is used when linking, flag to hardcode \$libdir into a binary 13695# during linking. This must work even if \$libdir does not exist. 13696hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13697 13698# Whether we need a single "-rpath" flag with a separated argument. 13699hardcode_libdir_separator=$lt_hardcode_libdir_separator 13700 13701# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13702# DIR into the resulting binary. 13703hardcode_direct=$hardcode_direct 13704 13705# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13706# DIR into the resulting binary and the resulting library dependency is 13707# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13708# library is relocated. 13709hardcode_direct_absolute=$hardcode_direct_absolute 13710 13711# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13712# into the resulting binary. 13713hardcode_minus_L=$hardcode_minus_L 13714 13715# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13716# into the resulting binary. 13717hardcode_shlibpath_var=$hardcode_shlibpath_var 13718 13719# Set to "yes" if building a shared library automatically hardcodes DIR 13720# into the library and all subsequent libraries and executables linked 13721# against it. 13722hardcode_automatic=$hardcode_automatic 13723 13724# Set to yes if linker adds runtime paths of dependent libraries 13725# to runtime path list. 13726inherit_rpath=$inherit_rpath 13727 13728# Whether libtool must link a program against all its dependency libraries. 13729link_all_deplibs=$link_all_deplibs 13730 13731# Fix the shell variable \$srcfile for the compiler. 13732fix_srcfile_path=$lt_fix_srcfile_path 13733 13734# Set to "yes" if exported symbols are required. 13735always_export_symbols=$always_export_symbols 13736 13737# The commands to list exported symbols. 13738export_symbols_cmds=$lt_export_symbols_cmds 13739 13740# Symbols that should not be listed in the preloaded symbols. 13741exclude_expsyms=$lt_exclude_expsyms 13742 13743# Symbols that must always be exported. 13744include_expsyms=$lt_include_expsyms 13745 13746# Commands necessary for linking programs (against libraries) with templates. 13747prelink_cmds=$lt_prelink_cmds 13748 13749# Specify filename containing input files. 13750file_list_spec=$lt_file_list_spec 13751 13752# How to hardcode a shared library path into an executable. 13753hardcode_action=$hardcode_action 13754 13755# ### END LIBTOOL CONFIG 13756 13757_LT_EOF 13758 13759 case $host_os in 13760 aix3*) 13761 cat <<\_LT_EOF >> "$cfgfile" 13762# AIX sometimes has problems with the GCC collect2 program. For some 13763# reason, if we set the COLLECT_NAMES environment variable, the problems 13764# vanish in a puff of smoke. 13765if test "X${COLLECT_NAMES+set}" != Xset; then 13766 COLLECT_NAMES= 13767 export COLLECT_NAMES 13768fi 13769_LT_EOF 13770 ;; 13771 esac 13772 13773 13774ltmain="$ac_aux_dir/ltmain.sh" 13775 13776 13777 # We use sed instead of cat because bash on DJGPP gets confused if 13778 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13779 # text mode, it properly converts lines to CR/LF. This bash problem 13780 # is reportedly fixed, but why not run on old versions too? 13781 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 13782 || (rm -f "$cfgfile"; exit 1) 13783 13784 case $xsi_shell in 13785 yes) 13786 cat << \_LT_EOF >> "$cfgfile" 13787 13788# func_dirname file append nondir_replacement 13789# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13790# otherwise set result to NONDIR_REPLACEMENT. 13791func_dirname () 13792{ 13793 case ${1} in 13794 */*) func_dirname_result="${1%/*}${2}" ;; 13795 * ) func_dirname_result="${3}" ;; 13796 esac 13797} 13798 13799# func_basename file 13800func_basename () 13801{ 13802 func_basename_result="${1##*/}" 13803} 13804 13805# func_dirname_and_basename file append nondir_replacement 13806# perform func_basename and func_dirname in a single function 13807# call: 13808# dirname: Compute the dirname of FILE. If nonempty, 13809# add APPEND to the result, otherwise set result 13810# to NONDIR_REPLACEMENT. 13811# value returned in "$func_dirname_result" 13812# basename: Compute filename of FILE. 13813# value retuned in "$func_basename_result" 13814# Implementation must be kept synchronized with func_dirname 13815# and func_basename. For efficiency, we do not delegate to 13816# those functions but instead duplicate the functionality here. 13817func_dirname_and_basename () 13818{ 13819 case ${1} in 13820 */*) func_dirname_result="${1%/*}${2}" ;; 13821 * ) func_dirname_result="${3}" ;; 13822 esac 13823 func_basename_result="${1##*/}" 13824} 13825 13826# func_stripname prefix suffix name 13827# strip PREFIX and SUFFIX off of NAME. 13828# PREFIX and SUFFIX must not contain globbing or regex special 13829# characters, hashes, percent signs, but SUFFIX may contain a leading 13830# dot (in which case that matches only a dot). 13831func_stripname () 13832{ 13833 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 13834 # positional parameters, so assign one to ordinary parameter first. 13835 func_stripname_result=${3} 13836 func_stripname_result=${func_stripname_result#"${1}"} 13837 func_stripname_result=${func_stripname_result%"${2}"} 13838} 13839 13840# func_opt_split 13841func_opt_split () 13842{ 13843 func_opt_split_opt=${1%%=*} 13844 func_opt_split_arg=${1#*=} 13845} 13846 13847# func_lo2o object 13848func_lo2o () 13849{ 13850 case ${1} in 13851 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 13852 *) func_lo2o_result=${1} ;; 13853 esac 13854} 13855 13856# func_xform libobj-or-source 13857func_xform () 13858{ 13859 func_xform_result=${1%.*}.lo 13860} 13861 13862# func_arith arithmetic-term... 13863func_arith () 13864{ 13865 func_arith_result=$(( $* )) 13866} 13867 13868# func_len string 13869# STRING may not start with a hyphen. 13870func_len () 13871{ 13872 func_len_result=${#1} 13873} 13874 13875_LT_EOF 13876 ;; 13877 *) # Bourne compatible functions. 13878 cat << \_LT_EOF >> "$cfgfile" 13879 13880# func_dirname file append nondir_replacement 13881# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13882# otherwise set result to NONDIR_REPLACEMENT. 13883func_dirname () 13884{ 13885 # Extract subdirectory from the argument. 13886 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 13887 if test "X$func_dirname_result" = "X${1}"; then 13888 func_dirname_result="${3}" 13889 else 13890 func_dirname_result="$func_dirname_result${2}" 13891 fi 13892} 13893 13894# func_basename file 13895func_basename () 13896{ 13897 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 13898} 13899 13900 13901# func_stripname prefix suffix name 13902# strip PREFIX and SUFFIX off of NAME. 13903# PREFIX and SUFFIX must not contain globbing or regex special 13904# characters, hashes, percent signs, but SUFFIX may contain a leading 13905# dot (in which case that matches only a dot). 13906# func_strip_suffix prefix name 13907func_stripname () 13908{ 13909 case ${2} in 13910 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 13911 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 13912 esac 13913} 13914 13915# sed scripts: 13916my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 13917my_sed_long_arg='1s/^-[^=]*=//' 13918 13919# func_opt_split 13920func_opt_split () 13921{ 13922 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 13923 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 13924} 13925 13926# func_lo2o object 13927func_lo2o () 13928{ 13929 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 13930} 13931 13932# func_xform libobj-or-source 13933func_xform () 13934{ 13935 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 13936} 13937 13938# func_arith arithmetic-term... 13939func_arith () 13940{ 13941 func_arith_result=`expr "$@"` 13942} 13943 13944# func_len string 13945# STRING may not start with a hyphen. 13946func_len () 13947{ 13948 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 13949} 13950 13951_LT_EOF 13952esac 13953 13954case $lt_shell_append in 13955 yes) 13956 cat << \_LT_EOF >> "$cfgfile" 13957 13958# func_append var value 13959# Append VALUE to the end of shell variable VAR. 13960func_append () 13961{ 13962 eval "$1+=\$2" 13963} 13964_LT_EOF 13965 ;; 13966 *) 13967 cat << \_LT_EOF >> "$cfgfile" 13968 13969# func_append var value 13970# Append VALUE to the end of shell variable VAR. 13971func_append () 13972{ 13973 eval "$1=\$$1\$2" 13974} 13975 13976_LT_EOF 13977 ;; 13978 esac 13979 13980 13981 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 13982 || (rm -f "$cfgfile"; exit 1) 13983 13984 mv -f "$cfgfile" "$ofile" || 13985 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13986 chmod +x "$ofile" 13987 13988 ;; 13989 13990 esac 13991done # for ac_tag 13992 13993 13994as_fn_exit 0 13995_ACEOF 13996ac_clean_files=$ac_clean_files_save 13997 13998test $ac_write_fail = 0 || 13999 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 14000 14001 14002# configure is writing to config.log, and then calls config.status. 14003# config.status does its own redirection, appending to config.log. 14004# Unfortunately, on DOS this fails, as config.log is still kept open 14005# by configure, so config.status won't be able to write to it; its 14006# output is simply discarded. So we exec the FD to /dev/null, 14007# effectively closing config.log, so it can be properly (re)opened and 14008# appended to by config.status. When coming back to configure, we 14009# need to make the FD available again. 14010if test "$no_create" != yes; then 14011 ac_cs_success=: 14012 ac_config_status_args= 14013 test "$silent" = yes && 14014 ac_config_status_args="$ac_config_status_args --quiet" 14015 exec 5>/dev/null 14016 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14017 exec 5>>config.log 14018 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14019 # would make configure fail if this is the last instruction. 14020 $ac_cs_success || as_fn_exit $? 14021fi 14022if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14024$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14025fi 14026 14027